summaryrefslogtreecommitdiff
path: root/etc/NEWS
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2015-12-28 16:01:05 +0000
committerAlan Mackenzie <acm@muc.de>2015-12-28 16:01:05 +0000
commit326ffcce5fbbb0ca368cfa08a33101dbbcaa2ace (patch)
tree1b86615b5bed5089446aa9c5a8ae0619703aa3b0 /etc/NEWS
parent17ab0d10e1db9cc4924ceb778e5c4e6bb9a90c3d (diff)
downloademacs-326ffcce5fbbb0ca368cfa08a33101dbbcaa2ace.tar.gz
Allow line comments ending with escaped NL to be continued to the next line.
Use this in C, C++, and Objective C Modes. Fixes bug#22246 * src/syntax.c (comment-end-can-be-escaped): New buffer local variable. (forw-comment, back-comment): On encountering an end of comment character, test whether it is escaped when `comment-end-can-be-escaped' is non-nil. * doc/lispref/syntax.texi (Control Parsing): Describe `comment-end-can-be-escaped'. * etc/NEWS (Lisp Changes): Describe `comment-end-can-be-escaped'. * lisp/progmodes/cc-langs.el: New c-lang-setvar `comment-end-can-be-escaped'.
Diffstat (limited to 'etc/NEWS')
-rw-r--r--etc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 1aeab35f221..3b86a88197a 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1268,6 +1268,11 @@ Area. The output is still logged to the *Messages* buffer.
buffers to allow certain parts of the text to be writable.
+++
+** A new variable `comment-end-can-be-escaped' is useful in languages
+ such as C and C++ where line comments with escaped newlines are
+ continued to the next line.
+
++++
** New macro `define-advice'.
** `read-buffer' takes a new `predicate' argument.