From: Juri Linkov <juri@linkov.net>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 38185@debbugs.gnu.org, "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
Subject: bug#38185: isearch-yank-word-or-char grabs periods at ends of words when used on man pages
Date: Sat, 16 Nov 2019 22:25:18 +0200 [thread overview]
Message-ID: <87tv73r929.fsf@mail.linkov.net> (raw)
In-Reply-To: <87zhgzqakr.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 14 Nov 2019 06:41:08 +0100")
> (isearch--yank-char-or-syntax '(?w) 'forward-word arg)
>
> so I guess this means that "." has word syntax in Man buffers, but ","
> doesn't?
>
> I guess that makes sense -- you can have stuff like "foo.bar" that
> should be considered a single "word", but I agree that it doesn't make
> much sense to have a terminating "." be part of a word.
>
> I'm not sure how to fix that, though -- switch isearch-yank-word-or-char
> to something like ffap instead of using syntax classes?
isearch-yank-word-or-char was intended to yank exactly the same text
as navigated by forward-word.
However, I can't reproduce this issue in Man buffers: forward-word
doesn't consider "." as part of a word. Ah, this is because I fixed
this long ago in the init file ~/.emacs as:
;; Don't use `man-mode-syntax-table' that sets word syntax to `.', `_', `:'.
(add-hook 'Man-mode-hook
(lambda ()
(set-syntax-table text-mode-syntax-table)))
next prev parent reply other threads:[~2019-11-16 20:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-10 0:02 bug#38185: isearch-yank-word-or-char grabs periods at ends of words when used on man pages 積丹尼 Dan Jacobson
2019-11-14 5:41 ` Lars Ingebrigtsen
2019-11-14 5:43 ` Lars Ingebrigtsen
2019-11-16 20:25 ` Juri Linkov [this message]
2019-11-17 5:51 ` 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=87tv73r929.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=38185@debbugs.gnu.org \
--cc=jidanni@jidanni.org \
--cc=larsi@gnus.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.