emacs-diffs
[Top][All Lists]
Advanced

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

master 5cb21859663: Improve 'C-h o' in NEWS files


From: Eli Zaretskii
Subject: master 5cb21859663: Improve 'C-h o' in NEWS files
Date: Sat, 31 Aug 2024 05:13:21 -0400 (EDT)

branch: master
commit 5cb218596639d87f4114968b8555ce19eb2c5ea2
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Improve 'C-h o' in NEWS files
    
    * lisp/textmodes/emacs-news-mode.el (emacs-news--mode-common):
    Modify syntax-table of NEWS modes to consider ' as string-quoting
    character.  Suggested by Visuwesh <visuweshm@gmail.com>.
    (Bug#72757)
---
 lisp/textmodes/emacs-news-mode.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/textmodes/emacs-news-mode.el 
b/lisp/textmodes/emacs-news-mode.el
index edeb1540feb..48e9244a4ef 100644
--- a/lisp/textmodes/emacs-news-mode.el
+++ b/lisp/textmodes/emacs-news-mode.el
@@ -106,6 +106,8 @@
               outline-minor-mode-use-buttons 'in-margins)
   (outline-minor-mode)
   (setq-local imenu-generic-expression outline-imenu-generic-expression)
+  ;; This is so 'C-h o' picks up correctly symbols quoted 'like this'.
+  (modify-syntax-entry ?' "\"")
   (emacs-etc--hide-local-variables))
 
 ;;;###autoload



reply via email to

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