aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorAlan Mackenzie2015-12-28 16:01:05 +0000
committerAlan Mackenzie2015-12-28 16:01:05 +0000
commit326ffcce5fbbb0ca368cfa08a33101dbbcaa2ace (patch)
tree1b86615b5bed5089446aa9c5a8ae0619703aa3b0 /etc
parent17ab0d10e1db9cc4924ceb778e5c4e6bb9a90c3d (diff)
downloademacs-326ffcce5fbbb0ca368cfa08a33101dbbcaa2ace.tar.gz
emacs-326ffcce5fbbb0ca368cfa08a33101dbbcaa2ace.zip
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')
-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.
1268buffers to allow certain parts of the text to be writable. 1268buffers to allow certain parts of the text to be writable.
1269 1269
1270+++ 1270+++
1271** A new variable `comment-end-can-be-escaped' is useful in languages
1272 such as C and C++ where line comments with escaped newlines are
1273 continued to the next line.
1274
1275+++
1271** New macro `define-advice'. 1276** New macro `define-advice'.
1272 1277
1273** `read-buffer' takes a new `predicate' argument. 1278** `read-buffer' takes a new `predicate' argument.