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:32:41 +0300 Organization: LINKOV.NET Message-ID: <865xpz281u.fsf@mail.linkov.net> References: <194a0202fd0c9b752d2f6e4f3ff642d8@webmail.orcon.net.nz> <86a5fc5uq6.fsf@mail.linkov.net> <864j5k2ys4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11757"; 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: psainty@orcon.net.nz, 73723@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 10 19:38:25 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 1syx7J-0002tF-3U for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Oct 2024 19:38:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1syx71-0001P7-U0; Thu, 10 Oct 2024 13:38:07 -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-0001NH-MJ 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-0004ga-4N 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=z5/plKy/hbRslaD9Lk9MFVarP0g7yhbMKJQaz3ZC1Ok=; b=qXCkPQmcfZFq6wub8vakp1GY+FEBIMNZnmgbRAQktL17vVDt2yb/KpEudXqr1XdFtNiYqQdhzvn0gB1P+bxm2PB0YlEHTNrO3i39ps4bhg8NVNVFTKPcKveKe+13uCBXjYTrv/ISNlQz+bhZMNA6qlyLoH7AKau8/19O4iQiagMOC9gIZVdAo5Vdi68zlH4Yoz7QGHuEeIDNkVdYOFOXsmdIrsl9FA3/jqDxl+YN8ll06QJieM+RjfSee0qSCavn68etLrSN9/tSHtVcxZ1kDiV+VFAdTgyyzg5XjyRoFDPpF67WoDi6UXOHG3NU2BzynAKxIbQ1HhzbHe+x4jACWw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1syx6w-0006ob-Fc for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2024 13:38:02 -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.172858184426134 (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:24 +0000 Original-Received: from localhost ([127.0.0.1]:60430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syx6J-0006nS-Lr for submit@debbugs.gnu.org; Thu, 10 Oct 2024 13:37:24 -0400 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:55053) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syx6H-0006nB-3U for 73723@debbugs.gnu.org; Thu, 10 Oct 2024 13:37:21 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 7EB5820007; Thu, 10 Oct 2024 17:37:00 +0000 (UTC) In-Reply-To: <864j5k2ys4.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 10 Oct 2024 10:38:19 +0300") 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:293296 Archived-At: >> > (define-key isearch-mode-map (kbd "M-s M-w") #'isearch-copy-match) >> > (define-key isearch-mode-map (kbd "M-s C-w") #'isearch-kill-match) >> > (define-key isearch-mode-map (kbd "M-s C-SPC") #'isearch-mark-match) >> > (define-key isearch-mode-map (kbd "M-s C-@") #'isearch-mark-match) >> >> I have a patch that I'm using for a long time every day. >> It allows exiting Isearch with 'S-RET' that activates >> the region on the current match. > > S-RET will not work on text terminals. I see that S-left and S-right arrows work on text terminals via 'this-command-keys-shift-translated', but S-RET doesn't set 'this-command-keys-shift-translated'. Then isearch-exit could support a prefix argument to activate the region on exit like Gregory proposed in https://debbugs.gnu.org/47599#34 with three values of prefix arguments to isearch-exit: C-u RET moves point to the other end, C-u C-u RET activates region around match, C-u C-u C-u RET moves point to the other end and activate region around match. But then Ergus proposed M-RET or M-s RET.