]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow C-s C-w to yank ' to the search ring in the Gnus article buffer
authorJuri Linkov <juri@linkov.net>
Tue, 31 Jan 2017 16:36:06 +0000 (17:36 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 31 Jan 2017 16:36:59 +0000 (17:36 +0100)
* lisp/gnus/gnus-art.el (gnus-article-mode-syntax-table): Make
M-. in article buffers work for `foo' strings, and still allow
C-s C-w to yank ' to the search ring (bug#22248).

lisp/gnus/gnus-art.el

index 43e1231914c8a24e7963cacf5724bd80fc61259e..a4ff840f75545690dd709f9bff44071993480faa 100644 (file)
@@ -1713,9 +1713,10 @@ regexp."
     ;; (modify-syntax-entry ?- "w" table)
     (modify-syntax-entry ?> ")<" table)
     (modify-syntax-entry ?< "(>" table)
-    ;; make M-. in article buffers work for `foo' strings
-    (modify-syntax-entry ?' " " table)
-    (modify-syntax-entry ?` " " table)
+    ;; make M-. in article buffers work for `foo' strings,
+    ;; and still allow C-s C-w to yank ' to the search ring
+    (modify-syntax-entry ?' "'" table)
+    (modify-syntax-entry ?` "'" table)
     table)
   "Syntax table used in article mode buffers.
 Initialized from `text-mode-syntax-table'.")