From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#67600: [PATCH] Add dashes to 'thing-at-point-email-regexp' Date: Sun, 03 Dec 2023 12:52:04 +0000 Message-ID: <87v89fh2iz.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2672"; mail-complaints-to="usenet@ciao.gmane.io" To: 67600@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 03 13:53:13 2023 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 1r9lyC-0000WW-Nr for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Dec 2023 13:53:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r9lxu-0008SR-BD; Sun, 03 Dec 2023 07:52:54 -0500 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 1r9lxt-0008SI-12 for bug-gnu-emacs@gnu.org; Sun, 03 Dec 2023 07:52:53 -0500 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 1r9lxs-0000Iv-Ob for bug-gnu-emacs@gnu.org; Sun, 03 Dec 2023 07:52:52 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r9ly2-0007oG-JE for bug-gnu-emacs@gnu.org; Sun, 03 Dec 2023 07:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Dec 2023 12:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67600 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.170160795529986 (code B ref -1); Sun, 03 Dec 2023 12:53:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Dec 2023 12:52:35 +0000 Original-Received: from localhost ([127.0.0.1]:59220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9lxa-0007nZ-Qv for submit@debbugs.gnu.org; Sun, 03 Dec 2023 07:52:35 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:36288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9lxY-0007nF-7R for submit@debbugs.gnu.org; Sun, 03 Dec 2023 07:52:33 -0500 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 1r9lxD-0008NK-JE for bug-gnu-emacs@gnu.org; Sun, 03 Dec 2023 07:52:12 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r9lxB-0000CX-Em for bug-gnu-emacs@gnu.org; Sun, 03 Dec 2023 07:52:11 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7C336240028 for ; Sun, 3 Dec 2023 13:52:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1701607925; bh=AMNBe9zwKBdfzsJMao6E1wm3uoSQ6LaPIRuoMQWmEBg=; h=From:To:Subject:Autocrypt:Date:Message-ID:MIME-Version:From; b=r4tnY/hF1jrgYBbH3UPO+BP8cPXwmWMd5vU71FyhiZ0F/ps1doyshDGvY00oMlk37 UaI3dSAa8BUnt+VQ0vHNthfoziWE/8Ej9lHXdgP5woDwCXS22qnEUVc4UfFtsXSPOW a6AdsrY3DO1Y71gz7l1lwrG19v5oJeZLtKImUHHcwWiEYHlb0Cr0WDl1n8k2YnOaYa gF7shMP1FgYDWdZpEPD3BSSHxh4FUi2K9iqha9iAq2Z9OmQU2E96rxIlXc1F06b6NM uAnxtcRlnGzd96XxfnVATwPjhXkpjDWIGm97BIWW4W6t+TYlkLaWAcHlGVaKphk4mh utXWyXQD7wy4Q== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SjmsJ6TSpz6twQ for ; Sun, 3 Dec 2023 13:52:04 +0100 (CET) X-Hashcash: 1:20:231203:bug-gnu-emacs@gnu.org::77mbEpjCPC/yelyp:0RUJ Autocrypt: addr=philipk@posteo.net; keydata= mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof z4oM Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -53 X-Spam_score: -5.4 X-Spam_bar: ----- X-Spam_report: (-5.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:275415 Archived-At: --=-=-= Content-Type: text/plain Tags: patch I noticed this recently when trying to extract a link to an mailing list of mine hosted on SourceHut. In GNU Emacs 30.0.50 (build 3, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) of 2023-11-25 built on icterid Repository revision: 78eb99c72c6834a9161fc4e3f3cef3fc6bdffefd Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: Debian GNU/Linux 12 (bookworm) Configured using: 'configure --with-imagemagick --with-x-toolkit=lucid --with-native-compilation=aot --with-tree-sitter 'CFLAGS=-O2 -march=native -mtune=native -pipe'' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Add-dashes-to-thing-at-point-email-regexp.patch >From 1caf9c71b7b0ad4a31a9318932b242f7a46183f5 Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Sun, 3 Dec 2023 13:49:07 +0100 Subject: [PATCH] Add dashes to 'thing-at-point-email-regexp' * lisp/thingatpt.el (thing-at-point-email-regexp): Allow for a (thing-at-point 'email) query to match addresses with dashes, as used by Sourcehut. --- lisp/thingatpt.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/thingatpt.el b/lisp/thingatpt.el index 88efbf73beb..80dc5ee60b7 100644 --- a/lisp/thingatpt.el +++ b/lisp/thingatpt.el @@ -652,7 +652,7 @@ thing-at-point-looking-at ;; Email addresses (defvar thing-at-point-email-regexp - "?" + "?" "A regular expression probably matching an email address. This does not match the real name portion, only the address, optionally with angle brackets.") -- 2.39.2 --=-=-= Content-Type: text/plain -- Philip Kaludercic --=-=-=--