GNU bug report logs - #31231
Symbol search broken in NEWS and ChangeLogs

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Sat, 21 Apr 2018 20:24:02 UTC

Severity: normal

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: bug-gnu-emacs <at> gnu.org
Subject: Symbol search broken in NEWS and ChangeLogs
Date: Sat, 21 Apr 2018 23:21:05 +0300
Symbol search ‘M-s _’ fails to find symbols in NEWS and ChangeLogs where
symbols are quoted by apostrophes whose syntax is word-constituent.

I see two solutions:

1. Modify syntax tables to redefine syntax of ‘'’ back to its default
   that is punctuation or to expression quote:

   (defvar change-log-mode-syntax-table
     (let ((st (make-syntax-table)))
       (modify-syntax-entry ?' "'   " st)
       st)
     "Syntax table used while in `change-log-mode'.")

This solution is not applicable to NEWS files where
text-mode syntax tables are inherited via outline-mode
whose syntax table can't be changed.

2. In these files replace apostrophes by “LEFT SINGLE QUOTATION MARK” and
   “RIGHT SINGLE QUOTATION MARK” like are used in Info and Help buffers.




This bug report was last modified 4 years and 324 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.