emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs-25 991c801 3/4: Don't apply the return value of goto


From: Dmitry Gutov
Subject: [Emacs-diffs] emacs-25 991c801 3/4: Don't apply the return value of goto-char as syntax class
Date: Mon, 07 Mar 2016 03:08:21 +0000

branch: emacs-25
commit 991c801cd6b6b323fb4510de9e295b3fea2fb12f
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Don't apply the return value of goto-char as syntax class
    
    * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize): Don't
    apply the return value of goto-char as syntax class.
---
 lisp/progmodes/ruby-mode.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 1395828..c100145 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -1852,7 +1852,8 @@ It will be properly highlighted even when the call omits 
parens.")
        (1 (if (save-excursion
                 (nth 3 (syntax-ppss (match-beginning 0))))
               ;; Within a string, skip.
-              (goto-char (match-end 1))
+              (ignore
+               (goto-char (match-end 1)))
             (string-to-syntax "\\"))))
       ;; Part of symbol when at the end of a method name.
       ("[!?]"



reply via email to

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