1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-24 14:30:43 -08:00
emacs/doc
Michal Nazarewicz fab2332851 cc-mode: add ‘c-lineup-ternary-bodies’ (bug#41061)
Introduce ‘c-lineup-ternary-bodies’ function which, when used as
a c lineup function, aligns question mark and colon of a ternary
operator.  For example:

    return arg % 2 == 0 ? arg / 2
                        : (3 * arg + 1);

* lisp/progmodes/cc-align.el (c-lineup-ternary-bodies): New function.
* doc/misc/cc-mode.texi (Operator Line-Up Functions): Document the
new function.
* test/lisp/progmodes/cc-mode-tests.el (c-lineup-ternary-bodies): New
test case.
2020-05-09 11:30:32 +01:00
..
emacs Allow predicates for matching in browse-url-handlers. 2020-05-08 20:57:19 +02:00
lispintro Merge from origin/emacs-27 2020-04-20 07:50:19 -07:00
lispref Consult browse-url-{default-,}handlers in drag&drop. 2020-05-06 16:48:57 +02:00
man Fix syntax error in man page. 2020-04-05 10:19:31 +02:00
misc cc-mode: add ‘c-lineup-ternary-bodies’ (bug#41061) 2020-05-09 11:30:32 +01:00