From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#73723: 31.0.50; Add copy/kill/mark commands to isearch Date: Thu, 10 Oct 2024 20:35:39 +0300 Organization: LINKOV.NET Message-ID: <86cyk7zx7w.fsf@mail.linkov.net> References: <194a0202fd0c9b752d2f6e4f3ff642d8@webmail.orcon.net.nz> <86a5fc5uq6.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13326"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: Phil Sainty , "73723@debbugs.gnu.org" <73723@debbugs.gnu.org> To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 10 19:38:52 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1syx7k-0003Ji-4V for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Oct 2024 19:38:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1syx70-0001OU-R6; Thu, 10 Oct 2024 13:38:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1syx6l-0001NI-WC for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2024 13:37:52 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1syx6l-0004gb-E2 for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2024 13:37:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=3zf9VqLSb6t3oncfIRxFE9Z7seIaFDaw0vd6njRBVwU=; b=O3MMBxvaRE2gB+oIQEeLkeJ7r26DJVOPMlCEpDZCswKoj2mpPk6zkge2gSAocHSikOb5rwYKvTSfcKP1PfFZatDUOp3JiAcngddRwkGcvsvvX7MCkaQSLjAi6Jj/iCzAoZ81MC1x/iPRjhSMBBNsxVHFipDVXLhKqKZ0Dro01fm0AQbTVafWM3S4OZVottquc9Cj6EUw1wYP/s2rQeqyQ+C2LXRKPqI+W3kotCv8wwBsm/iBoLk195qzmFHb6JPfReL1JyZC3gdfnFDxWv7ZuF2ttmXMC/IDSolZAdxoMNwcl019ghAM/mrnW+4jpKzmXFnT/SiCrNBY6Gq63i9F4A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1syx6w-0006oi-VJ for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2024 13:38:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Oct 2024 17:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73723 X-GNU-PR-Package: emacs Original-Received: via spool by 73723-submit@debbugs.gnu.org id=B73723.172858186626173 (code B ref 73723); Thu, 10 Oct 2024 17:38:02 +0000 Original-Received: (at 73723) by debbugs.gnu.org; 10 Oct 2024 17:37:46 +0000 Original-Received: from localhost ([127.0.0.1]:60433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syx6g-0006o4-3f for submit@debbugs.gnu.org; Thu, 10 Oct 2024 13:37:46 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:57287) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syx6e-0006nq-Lj for 73723@debbugs.gnu.org; Thu, 10 Oct 2024 13:37:45 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id EEEA2240002; Thu, 10 Oct 2024 17:37:04 +0000 (UTC) In-Reply-To: (Drew Adams's message of "Thu, 10 Oct 2024 16:58:10 +0000") X-GND-Sasl: juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:293297 Archived-At: >> 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'.