GNU bug report logs -
#73723
31.0.50; Add copy/kill/mark commands to isearch
Previous Next
Full log
View this message in rfc822 format
>> It allows exiting Isearch with 'S-RET' that activates
>> the region on the current match. This allows using
>> the standard keys afterwards: 'M-w' to copy the match,
>> 'C-w' to kill the match, etc.
>
> FWIW, in isearch+.el I define `isearchp-kill-ring-save'
> and bind it to `M-w'.
> This has been the case since 2013.
>
> (defun isearchp-kill-ring-save () ; Bound to `M-w' in `isearch-mode-map'.
> "Copy the current search string to the kill ring."
> (interactive)
> (kill-new isearch-string)
> (let ((message-log-max nil)) (message "Copied search string as kill"))
> (sit-for 1)
> (isearch-update))
Since `M-w' can't be used according to the comments in
https://old.reddit.com/r/emacs/comments/1fzvwig/copy_search_string_to_killring/
what remains is `M-s M-w'.
OTOH, `S-RET M-w' is shorter than `M-s M-w RET'.
But since `S-RET' is not available on text terminals
what remains is still `M-s M-w RET' or `M-s RET M-w'.
This bug report was last modified 166 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.