bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#21493: 25.0.50; fix invalid regex in lisp--el-match-keyword introduc


From: martin rudalics
Subject: bug#21493: 25.0.50; fix invalid regex in lisp--el-match-keyword introduced in master
Date: Wed, 16 Sep 2015 09:09:13 +0200

In commit 6d98299e761f18f171e042391138f4f5f5762de7, the form
lisp-mode-symbol-regexp was introduced, but it was added incorrectly
in one place. The form added,

(eval-when-compile "(\\(" lisp-mode-symbol-regexp "\\)\\_>")

is invalid, returning just "\\)\\_>". The fix is simple, and the diff
is given below.

Sorry if this message comes across garbled; I have selected the option
to turn off html in gmail, but I don't know if it works. Also sorry if
the fix is already committed, I just pulled and the fix has not been
made yet.

--Danny McClanahan

diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index 56c2966..fed91b3 100644
--- a/lisp/emacs-lisp/lisp-mode.el
+++ b/lisp/emacs-lisp/lisp-mode.el
@@ -224,7 +224,8 @@
    ;; FIXME: Move to elisp-mode.el.
    (catch 'found
      (while (re-search-forward
-            (eval-when-compile "(\\(" lisp-mode-symbol-regexp "\\)\\_>")
+            (eval-when-compile
+              (concat "(\\(" lisp-mode-symbol-regexp "\\)\\_>"))
              limit t)
        (let ((sym (intern-soft (match-string 1))))
         (when (or (special-form-p sym)

Thank you.  Installed.

martin






reply via email to

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