GNU bug report logs - #22248
gnus-article-mode omits apostrophe from isearch string

Previous Next

Packages: emacs, gnus;

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

Date: Sun, 27 Dec 2015 01:19:01 UTC

Severity: normal

Tags: fixed, patch

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: 22248 <at> debbugs.gnu.org
Subject: bug#22248: gnus-article-mode omits apostrophe from isearch string
Date: Thu, 26 Jan 2017 23:26:18 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Juri Linkov <juri <at> linkov.net> writes:
>
>> Trying to put an expression like (setq var 'foo) into the isearch ring
>> by moving point at its beginning and typing C-s C-w C-w C-w ...
>> doesn't add apostrophe in Gnus because gnus-article-mode modifies
>> syntax of ' to whitespace:
>>
>>   (defvar gnus-article-mode-syntax-table
>>     (let ((table (copy-syntax-table text-mode-syntax-table)))
>>       ;; make M-. in article buffers work for `foo' strings
>>       (modify-syntax-entry ?' " " table)
>>       (modify-syntax-entry ?` " " table)
>>
>> and lax-whitespace search together with isearch-yank-word-or-char
>> squeeze apostrophe in a sequence of space characters.
>>
>> One solution is to modify syntax of ' and ` in gnus-article-mode-syntax-table
>> to syntax discussed in bug#22238, i.e. not whitespace and not part
>> of a symbol, still allowing M-. in article buffers work for `foo' strings,
>> and allowing isearch to search in other buffers the same string yanked
>> to the search ring from Gnus.
>
> Sounds good.  Could you supply a patch for doing that?

Did you have a look at doing this?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 8 years and 171 days ago.

Previous Next


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