]> git.eshelyaron.com Git - emacs.git/commitdiff
(emacs-lisp-mode-syntax-table): Fix bug#24542
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 12 Apr 2024 17:28:45 +0000 (13:28 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sun, 14 Apr 2024 17:09:30 +0000 (19:09 +0200)
* lisp/progmodes/elisp-mode.el (emacs-lisp-mode-syntax-table):
Remove `p` from the flags of `@`.

(cherry picked from commit 648b7bf7e22577c2f917e389694a76ce1f42dc0e)

lisp/progmodes/elisp-mode.el

index 680dd331fbf6227f711fc8de99f7af4c8260b577..44dc4a5d5eec24515394f2ffe4f05546a821b14d 100644 (file)
@@ -40,9 +40,10 @@ It has `lisp-mode-abbrev-table' as its parent."
 
 (defvar emacs-lisp-mode-syntax-table
   (let ((table (make-syntax-table lisp-data-mode-syntax-table)))
-    ;; These are redundant, now.
-    ;;(modify-syntax-entry ?\[ "(]  " table)
-    ;;(modify-syntax-entry ?\] ")[  " table)
+    ;; Remove the "p" flag from the entry of `@' because we use instead
+    ;; `syntax-propertize' to take care of `,@', which is more precise.
+    ;; FIXME: We should maybe do the same in other Lisp modes?  (bug#24542)
+    (modify-syntax-entry ?@ "_" table)
     table)
   "Syntax table used in `emacs-lisp-mode'.")