aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS17
1 files changed, 17 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 9c71752b621..12406eea822 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -305,6 +305,23 @@ use ‘doxygen’ by default one might evaluate:
305 305
306or use it in a custom ‘c-style’. 306or use it in a custom ‘c-style’.
307 307
308*** Added support to line up ‘?’ and ‘:’ of a ternary operator.
309The new ‘c-lineup-ternary-bodies’ function can be used as a lineup
310function to align question mark and colon which are part of a ternary
311operator (‘?:’). For example:
312
313 return arg % 2 == 0 ? arg / 2
314 : (3 * arg + 1);
315
316To enable, add it to appropriate entries in ‘c-offsets-alist’, e.g.:
317
318 (c-set-offset 'arglist-cont '(c-lineup-ternary-bodies
319 c-lineup-gcc-asm-reg))
320 (c-set-offset 'arglist-cont-nonempty '(c-lineup-ternary-bodies
321 c-lineup-gcc-asm-reg
322 c-lineup-arglist))
323 (c-set-offset 'statement-cont '(c-lineup-ternary-bodies +))
324
308** browse-url 325** browse-url
309 326
310*** Added support for custom URL handlers 327*** Added support for custom URL handlers