emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 22ba047: (forward-comment -n): escaped newline is sometimes NOT e


From: Alan Mackenzie
Subject: master 22ba047: (forward-comment -n): escaped newline is sometimes NOT end of comment
Date: Thu, 16 Apr 2020 13:03:28 -0400 (EDT)

branch: master
commit 22ba04742072098be60ec223ed2e97fa9a09b045
Author: Alan Mackenzie <address@hidden>
Commit: Alan Mackenzie <address@hidden>

    (forward-comment -n): escaped newline is sometimes NOT end of comment
    
    * src/syntax.c (Fforward_comment) When comment-end-can-be-escaped is 
non-nil,
    don't attempt back_comment when point is just after an escaped newline, etc.
---
 src/syntax.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/syntax.c b/src/syntax.c
index e24b98d..ff125b1 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -2572,8 +2572,9 @@ between them, return t; otherwise return nil.  */)
            }
          else if (code == Sendcomment)
            {
-             found = back_comment (from, from_byte, stop, comnested, comstyle,
-                                   &out_charpos, &out_bytepos);
+              found = (!quoted || !Vcomment_end_can_be_escaped)
+                && back_comment (from, from_byte, stop, comnested, comstyle,
+                                 &out_charpos, &out_bytepos);
              if (!found)
                {
                  if (c == '\n')



reply via email to

[Prev in Thread] Current Thread [Next in Thread]