GNU bug report logs -
#39512
28.0.50; Add command isearch-yank-region
Previous Next
Reported by: Tino Calancha <tino.calancha <at> gmail.com>
Date: Sat, 8 Feb 2020 18:06:01 UTC
Severity: wishlist
Tags: fixed, patch
Fixed in version 28.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #23 received at 39512 <at> debbugs.gnu.org (full text, mbox):
> I have added global keybinding `M-s M-.' for my `isearch-yank-region'.
Thanks.
> `isearch-yank-kill' and `isearch-yank-region' are good names for the
> use case of calling them once we are in an interactive search.
>
> The names are not any good for the use case of calling them directly
> (from a global keybinding). We might want:
>
> 1. aliases `isearch-forward-kill', `isearch-forward-region'
Aliases might add more confusion and make impression that
these are separate commands when displayed in a list of isearch commands,
e.g. in completion list, in documentation.
> 2. restrict the use of them for just inside the interactive search, and
> define the new commands (`isearch-forward-kill',`isearch-forward-region')
> as those calling `isearch-mode' at the beginning.
Restricting would be worse.
So maybe `isearch-yank-kill' and `isearch-yank-region' still are
not too bad names to use as entry points to enable isearch mode.
> + (define-key map "\M-." 'isearch-yank-region)
Some doubts are about `M-.' - what if some users might want to use `M-.'
to exit isearch and run its global binding `xref-find-definitions'
on the found symbol? Maybe better to bind `isearch-yank-region'
to `M-s M-.' in isearch-mode too?
> I have some advice in that function that lets me call it with no arguments.
Maybe a new function could be added as a wrapper around
`(funcall region-extract-function)' and with its argument optional.
This bug report was last modified 4 years and 115 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.