GNU bug report logs -
#38185
isearch-yank-word-or-char grabs periods at ends of words when used on man pages
Previous Next
Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Date: Tue, 12 Nov 2019 20:38:02 UTC
Severity: normal
Tags: wontfix
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 38185 <at> debbugs.gnu.org (full text, mbox):
> (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)))
This bug report was last modified 5 years and 246 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.