all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: 22248@debbugs.gnu.org
Subject: bug#22248: gnus-article-mode omits apostrophe from isearch string
Date: Sun, 27 Dec 2015 02:28:05 +0200	[thread overview]
Message-ID: <87h9j4g0p2.fsf@mail.linkov.net> (raw)

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.





             reply	other threads:[~2015-12-27  0:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-27  0:28 Juri Linkov [this message]
2016-02-07  5:48 ` bug#22248: gnus-article-mode omits apostrophe from isearch string Lars Ingebrigtsen
2017-01-26 22:26   ` Lars Ingebrigtsen
     [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=87h9j4g0p2.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=22248@debbugs.gnu.org \
    /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.