From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 26 21:27:39 2020 Received: (at submit) by debbugs.gnu.org; 27 Sep 2020 01:27:39 +0000 Received: from localhost ([127.0.0.1]:48089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMLTW-0002Zs-Tk for submit@debbugs.gnu.org; Sat, 26 Sep 2020 21:27:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:43180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMLTV-0002Zl-AT for submit@debbugs.gnu.org; Sat, 26 Sep 2020 21:27:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMLTU-0000UL-PP for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2020 21:27:37 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:24415) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMLTR-0005c7-UV for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2020 21:27:36 -0400 Date: Sun, 27 Sep 2020 01:27:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1601170049; bh=DW/qO64Fxuv6H2KrLIXSF5btqqNqKTAxgW6e2GK0cG4=; h=Date:To:From:Reply-To:Subject:From; b=K9gCxq36QqKDYaRuJ/XHiJG5InxUDmfbAxGeUNUnXPdqfl979gXTHmyMs2OKkkZzl b0IgArqAYU+k25+7Fdh2nwg4ytzowfzsaOUZbDWGG7vkFj+gLGKPqjLos2DdNTcF/4 ST8xzo8PrZzHz1iKA+W8M0tHSQqy6kY+lUAR574Q= To: bug-gnu-emacs@gnu.org From: ej32u@protonmail.com Subject: Suggest region contents in highlight-regexp when region active Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_WhrCuhBh0j8RkrOExHFDumKU4m8vtVb1oMnvaGAT8" X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Received-SPF: pass client-ip=185.70.40.131; envelope-from=ej32u@protonmail.com; helo=mail-40131.protonmail.ch X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/26 21:27:29 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ej32u@protonmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This is a multi-part message in MIME format. --b1_WhrCuhBh0j8RkrOExHFDumKU4m8vtVb1oMnvaGAT8 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello. It is convenient to highlight a region in transient-mark-mode, and then hav= e=20 highlight-regexp suggest the contents of that region. Thank you. --b1_WhrCuhBh0j8RkrOExHFDumKU4m8vtVb1oMnvaGAT8 Content-Type: text/x-patch; name=0001-When-region-active-suggest-region-contents-in-highli.patch Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=0001-When-region-active-suggest-region-contents-in-highli.patch RnJvbSA5YjNjZTkxMWUxNWExMmY1NWQzNmNmNTZiZTA3YTAyZDI5NjIwMjg3IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBFYXJsIDxlajMydUBwcm90b25tYWlsLmNvbT4KRGF0ZTogU2F0 LCAyNiBTZXAgMjAyMCAyMTowNzowNSAtMDQwMApTdWJqZWN0OiBbUEFUQ0hdIFdoZW4gcmVnaW9u IGFjdGl2ZSwgc3VnZ2VzdCByZWdpb24gY29udGVudHMgaW4KIGhpZ2hsaWdodC1yZWdleHAuCgot LS0KIGxpc3AvaGktbG9jay5lbCB8IDggKysrKysrKy0KIDEgZmlsZSBjaGFuZ2VkLCA3IGluc2Vy dGlvbnMoKyksIDEgZGVsZXRpb24oLSkKCmRpZmYgLS1naXQgYS9saXNwL2hpLWxvY2suZWwgYi9s aXNwL2hpLWxvY2suZWwKaW5kZXggMGZlNjUxYWNlMy4uOGYxY2JmMWRiNSAxMDA2NDQKLS0tIGEv bGlzcC9oaS1sb2NrLmVsCisrKyBiL2xpc3AvaGktbG9jay5lbApAQCAtNDg0LDcgKzQ4NCwxMyBA QCBoaS1sb2NrLWZhY2UtYnVmZmVyCiAgIChpbnRlcmFjdGl2ZQogICAgKGxpc3QKICAgICAoaGkt bG9jay1yZWdleHAtb2theQotICAgICAocmVhZC1yZWdleHAgIlJlZ2V4cCB0byBoaWdobGlnaHQi ICdyZWdleHAtaGlzdG9yeS1sYXN0KSkKKyAgICAgKHJlYWQtcmVnZXhwICJSZWdleHAgdG8gaGln aGxpZ2h0IgorICAgICAgICAgICAgICAgICAgKGlmICh1c2UtcmVnaW9uLXApCisgICAgICAgICAg ICAgICAgICAgICAgKHByb2cxCisgICAgICAgICAgICAgICAgICAgICAgICAgIChidWZmZXItc3Vi c3RyaW5nIChyZWdpb24tYmVnaW5uaW5nKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAocmVnaW9uLWVuZCkpCisgICAgICAgICAgICAgICAgICAgICAgICAoZGVh Y3RpdmF0ZS1tYXJrKSkKKyAgICAgICAgICAgICAgICAgICAgJ3JlZ2V4cC1oaXN0b3J5LWxhc3Qp KSkKICAgICAoaGktbG9jay1yZWFkLWZhY2UtbmFtZSkKICAgICBjdXJyZW50LXByZWZpeC1hcmcp KQogICAob3IgKGZhY2VwIGZhY2UpIChzZXRxIGZhY2UgJ2hpLXllbGxvdykpCi0tIAoyLjI1LjEK Cg== --b1_WhrCuhBh0j8RkrOExHFDumKU4m8vtVb1oMnvaGAT8-- From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 28 08:18:48 2020 Received: (at 43641) by debbugs.gnu.org; 28 Sep 2020 12:18:48 +0000 Received: from localhost ([127.0.0.1]:51836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMs7D-0008Ae-F9 for submit@debbugs.gnu.org; Mon, 28 Sep 2020 08:18:48 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMs7B-0008AO-S4 for 43641@debbugs.gnu.org; Mon, 28 Sep 2020 08:18:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ESS9btlqpDnsF+Ex1lD3ZY5wOBUmsVtJ98mGqxIhZ4M=; b=e29Awr0h18teE7bhV+uQYTGu8t msXQNysgFbuRQPyepmxzlLtaUizmvFBiQcVg678nV6HocbeNtdyF0gik3mP6RW8Dvb+GQgHkeyw9m yfsljdFmBDmK+6glsxmbJNC3nQdlBThP6SgY2SFZGlcee6UYFeCZZYm/AQq6rZIhKwx4=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMs73-0006yN-2P; Mon, 28 Sep 2020 14:18:39 +0200 From: Lars Ingebrigtsen To: ej32u@protonmail.com Subject: Re: bug#43641: Suggest region contents in highlight-regexp when region active References: X-Now-Playing: Sir Stephen's _By Design_: "Milk n Honey" Date: Mon, 28 Sep 2020 14:18:35 +0200 In-Reply-To: (ej32u@protonmail.com's message of "Sun, 27 Sep 2020 01:27:25 +0000") Message-ID: <87wo0eumas.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: ej32u@protonmail.com writes: > It is convenient to highlight a region in transient-mark-mode, and then have > highlight-regexp suggest the contents of that region. I use neither transient-mark-mode nor hi-lock, so I'm not really that qualified here, but the patch makes sense to me, so I've committed it to Emacs 28. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43641 Cc: 43641@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) ej32u@protonmail.com writes: > It is convenient to highlight a region in transient-mark-mode, and then have > highlight-regexp suggest the contents of that region. I use neither transient-mark-mode nor hi-lock, so I'm not really that qualified here, but the patch makes sense to me, so I've committed it to Emacs 28. A tiny nit for future patches -- including ChangeLog-style text (created via `C-x 4 a') would be nice. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 28 08:18:55 2020 Received: (at control) by debbugs.gnu.org; 28 Sep 2020 12:18:55 +0000 Received: from localhost ([127.0.0.1]:51839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMs7L-0008Az-75 for submit@debbugs.gnu.org; Mon, 28 Sep 2020 08:18:55 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMs7I-0008Af-PX for control@debbugs.gnu.org; Mon, 28 Sep 2020 08:18:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=JftcPQDdUMTGTre2nEfymwLQFwsyd7K+HDA6nWbR7vc=; b=AuRNmPbn8AL+YwVFJbf5nVDR9M 89B1ekM6P8BKZGhnwmjt5mCPFEBMiaUmYN/v3mIPgt7sf2lB+brRKgDcvKHEqVrSCbkM5AG/y5Rz8 A+KfIM/99Mf1Jsp4bAB/+9TEHWMR2jTYkJCAObvBnfMoM3Fb0iy3U13dEwHdeMeLfDvk=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMs7B-0006yU-2j for control@debbugs.gnu.org; Mon, 28 Sep 2020 14:18:47 +0200 Date: Mon, 28 Sep 2020 14:18:44 +0200 Message-Id: <87v9fyumaj.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #43641 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 43641 fixed close 43641 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 43641 fixed close 43641 28.1 quit From unknown Sat Jun 21 10:39:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 27 Oct 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator