all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Juri Linkov <juri@linkov.net>
Cc: 22248@debbugs.gnu.org
Subject: bug#22248: gnus-article-mode omits apostrophe from isearch string
Date: Thu, 26 Jan 2017 23:26:18 +0100	[thread overview]
Message-ID: <87poj9a25x.fsf@gnus.org> (raw)
In-Reply-To: <87d1s9cbqm.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 07 Feb 2016 16:48:01 +1100")

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





  reply	other threads:[~2017-01-26 22:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
     [not found]     ` <87a8aa4uwt.fsf@mail.linkov.net>
2017-01-31 16:36       ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87poj9a25x.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=22248@debbugs.gnu.org \
    --cc=juri@linkov.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.