* bug#22248: gnus-article-mode omits apostrophe from isearch string
@ 2015-12-27 0:28 Juri Linkov
2016-02-07 5:48 ` Lars Ingebrigtsen
0 siblings, 1 reply; 4+ messages in thread
From: Juri Linkov @ 2015-12-27 0:28 UTC (permalink / raw)
To: 22248
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#22248: gnus-article-mode omits apostrophe from isearch string
2015-12-27 0:28 bug#22248: gnus-article-mode omits apostrophe from isearch string Juri Linkov
@ 2016-02-07 5:48 ` Lars Ingebrigtsen
2017-01-26 22:26 ` Lars Ingebrigtsen
0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2016-02-07 5:48 UTC (permalink / raw)
To: Juri Linkov; +Cc: 22248
Juri Linkov <juri@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?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#22248: gnus-article-mode omits apostrophe from isearch string
2016-02-07 5:48 ` Lars Ingebrigtsen
@ 2017-01-26 22:26 ` Lars Ingebrigtsen
[not found] ` <87a8aa4uwt.fsf@mail.linkov.net>
0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2017-01-26 22:26 UTC (permalink / raw)
To: Juri Linkov; +Cc: 22248
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Juri Linkov <juri@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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-01-31 16:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-27 0:28 bug#22248: gnus-article-mode omits apostrophe from isearch string Juri Linkov
2016-02-07 5:48 ` Lars Ingebrigtsen
2017-01-26 22:26 ` Lars Ingebrigtsen
[not found] ` <87a8aa4uwt.fsf@mail.linkov.net>
2017-01-31 16:36 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.