From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.bugs Subject: bug#73723: 31.0.50; Add copy/kill/mark commands to isearch Date: Thu, 10 Oct 2024 09:33:41 +1300 Message-ID: <194a0202fd0c9b752d2f6e4f3ff642d8@webmail.orcon.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25118"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Orcon Webmail To: 73723@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 09 22:37:13 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 1sydQm-0006Ll-93 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Oct 2024 22:37:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sydQV-0006fc-5c; Wed, 09 Oct 2024 16:36:55 -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 1sydQT-0006fE-OP for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2024 16:36:53 -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 1sydQT-0000wI-Eo for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2024 16:36:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:Date:MIME-Version:To:Subject; bh=srkZ+fLe7qFW0XMKAuQ6PXEfTkDHVyhNt3Ooy4lS/0E=; b=Uf+Zi2uc/VTiSTX+afX3zEflGDaC457AHGxWyipAbvh+DX//aQ1XI69uEIBZ3v9UYCYmyHasMOOfs/7SxZNPLGf7AOGdNs4egtVGNGu3C4kMMqxLmLyQA4iGdkR5PRXELYokYi3cgeobFRY2QedVKPJLiO2rYs+RV7xISHDEJpeD1h8cvMCzjTqQUfvClT1M7mrlbNaiQg6o81GOw2n00RI6ZenibmOc+x9oj7gsl0u70Aw7r2B9BxoGy85W1gP1Vh8NUBXAijeU5FB5Bf3y2ngLnVldpLjCdl7FkVwLBr2tSggudY80J4Bz0lgHTnKlRxq8bFR+UwWUNGxob8bVyQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sydQc-0005oz-Bc for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2024 16:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Oct 2024 20:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73723 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.172850618322324 (code B ref -1); Wed, 09 Oct 2024 20:37:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Oct 2024 20:36:23 +0000 Original-Received: from localhost ([127.0.0.1]:57751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sydPy-0005nz-Rs for submit@debbugs.gnu.org; Wed, 09 Oct 2024 16:36:23 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:38908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sydPu-0005nl-L7 for submit@debbugs.gnu.org; Wed, 09 Oct 2024 16:36:22 -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 1sydNb-0005SB-9V for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2024 16:33:57 -0400 Original-Received: from smtp-3.orcon.net.nz ([60.234.4.44]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sydNZ-0000KD-2q for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2024 16:33:55 -0400 Original-Received: from [10.253.37.70] (port=35504 helo=webmail.orcon.net.nz) by smtp-3.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1sydNN-0003yT-Cr for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2024 09:33:41 +1300 Original-Received: from ip-116-251-164-139.as55850.net ([116.251.164.139]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Thu, 10 Oct 2024 09:33:41 +1300 X-Sender: psainty@orcon.net.nz X-GeoIP: -- Received-SPF: pass client-ip=60.234.4.44; envelope-from=psainty@orcon.net.nz; helo=smtp-3.orcon.net.nz X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:293226 Archived-At: I find the following useful, and sometimes see others asking for the same thing. Shall we add these to Emacs? (defun isearch-copy-match () "Copy the currently-matched text to the kill ring." (interactive) (kill-new (buffer-substring (min (point) isearch-other-end) (max (point) isearch-other-end)))) (defun isearch-kill-match () "Kill the currently-matched text." (interactive) (kill-region (min (point) isearch-other-end) (max (point) isearch-other-end))) (defun isearch-mark-match () "Exit isearch, marking the last match." (interactive) (set-mark isearch-other-end) (isearch-exit) (activate-mark)) (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)