From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Raimon Grau Newsgroups: gmane.emacs.bugs Subject: bug#32028: Fix thingatpt url's beginning-op Date: Sun, 01 Jul 2018 23:56:37 +0100 Message-ID: <871scmsgyi.fsf@raikong.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1530485767 7916 195.159.176.226 (1 Jul 2018 22:56:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 1 Jul 2018 22:56:07 +0000 (UTC) To: 32028@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 02 00:56:02 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZlGE-0001ts-Ie for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Jul 2018 00:56:02 +0200 Original-Received: from localhost ([::1]:55897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZlIK-0000jJ-DN for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Jul 2018 18:58:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZlID-0000hE-8n for bug-gnu-emacs@gnu.org; Sun, 01 Jul 2018 18:58:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZlIA-0005V7-7I for bug-gnu-emacs@gnu.org; Sun, 01 Jul 2018 18:58:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34544) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fZlIA-0005Ug-3B for bug-gnu-emacs@gnu.org; Sun, 01 Jul 2018 18:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fZlI9-0002Fk-P1 for bug-gnu-emacs@gnu.org; Sun, 01 Jul 2018 18:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Raimon Grau Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Jul 2018 22:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32028 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15304858738642 (code B ref -1); Sun, 01 Jul 2018 22:58:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Jul 2018 22:57:53 +0000 Original-Received: from localhost ([127.0.0.1]:42441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZlI1-0002FK-DT for submit@debbugs.gnu.org; Sun, 01 Jul 2018 18:57:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46709) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZlI0-0002F8-AL for submit@debbugs.gnu.org; Sun, 01 Jul 2018 18:57:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZlHu-0005DS-9S for submit@debbugs.gnu.org; Sun, 01 Jul 2018 18:57:47 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:59209) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fZlHu-0005DB-5X for submit@debbugs.gnu.org; Sun, 01 Jul 2018 18:57:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZlHs-0000ga-Ay for bug-gnu-emacs@gnu.org; Sun, 01 Jul 2018 18:57:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZlHp-00059T-8h for bug-gnu-emacs@gnu.org; Sun, 01 Jul 2018 18:57:44 -0400 Original-Received: from mail-wr0-x22e.google.com ([2a00:1450:400c:c0c::22e]:35242) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fZlHp-00058h-0n for bug-gnu-emacs@gnu.org; Sun, 01 Jul 2018 18:57:41 -0400 Original-Received: by mail-wr0-x22e.google.com with SMTP id h40-v6so2562946wrh.2 for ; Sun, 01 Jul 2018 15:57:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=q4byviRncvNDC2rRieS6PeE5hZkW+hlF0EyQwiu3zAU=; b=NJVp884u0SnHMxs09oIMdxT6xhD/09Y2BgO4dVoMOFyApUNlTMMBCB7ihwIue1JYol zDOZo0LfQYlwUFIDEYO9gmksfJMRxsC1eyHYjQ//dsaFoexsVlGtoDCbwzhhAjUozVdc WroQ9y8VVw109GxXK29RnGHgFF1J/fdpkexlUAv4Okz30Hcc39KSg1PSi+ZpKf9Uketb ddN8PCBdbYIrRZfMvOJcmS4wqSc/X4Te3Zqn2AajDTo6PBKN31M3B5y64yczjYagHv/V YgVLJTvltl+8B/dSOwGPYa+SRqfyDr5ikJ/Z89uk8UCQ9DhaQWEUCFQvU4qWNCbXbruh Rdfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=q4byviRncvNDC2rRieS6PeE5hZkW+hlF0EyQwiu3zAU=; b=NvE7A+uniJVsXXdgnunf0DVx6yD9LDjInODujYujUv0BvUupIP7dfq4OpPxlHsJZ+m Wa89rfmSW2BDxrz4gtSLcH0UHYVmTs5fL3l/mvX9qK0gsOofDfGVoOk2UKjns/OCwR3a /XLT8Dg4WToC4P13PeHxB6cH+sz9utUPWXnSicarzgkHfcSSGryd1UtwpGhEFkjwKmnL yhj9tU4J0Q5X6h/BDKIY5Rbbm1vEIRg4MzpqVv3KZBpqP+gJf6Okm3KRO7TyTYnEWZu1 KclytobuXj2NgcsCKHkPNZjScuEW9PS0ungZ4DvVtYumSIPYod3P2lIyxoaEzNHAJDDb s2yQ== X-Gm-Message-State: APt69E1DSVyXbNIMn5HLeED8knhbYv9EPAPyar32MCx63FjWpiKxWjig hujkpgpOgBBJ3s4AvectGdfuedcR X-Google-Smtp-Source: AAOMgpc5Z+UETSUkaY6PHHyiD48gLEFQ9SlVn4UM5rcDY3G7nvs+oGXZrvj/USU6OG9/Nw6Dios5CQ== X-Received: by 2002:adf:8281:: with SMTP id 1-v6mr2750903wrc.234.1530485859371; Sun, 01 Jul 2018 15:57:39 -0700 (PDT) Original-Received: from raikong (81.61.106.180.dyn.user.ono.com. [81.61.106.180]) by smtp.gmail.com with ESMTPSA id o8-v6sm6089747wro.68.2018.07.01.15.57.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Jul 2018 15:57:38 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:148066 Archived-At: --=-=-= Content-Type: text/plain Hello, I found a small bug in thingatpt.el. `beginning-op' for url's was using an incorrect helper (end-of-thing) and changed it to the correct one. This is my first time sending a patch to this list so I might be missing something or doing something wrong wrt process. If that's the case, apologises in advance. (My fsf papers are signed, so there's no problem on that regard) Cheers, Raimon Grau --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Fix-url-s-thing-at-point-beginning-op.patch >From e725d737ea4bc5bb8545a10866ac59986c450d12 Mon Sep 17 00:00:00 2001 From: Raimon Grau Date: Sun, 1 Jul 2018 21:31:08 +0100 Subject: [PATCH] Fix url's thing-at-point beginning-op * lisp/thingatpt.el (url): Fix beginning-op making. --- ChangeLog.3 | 6 ++++++ lisp/thingatpt.el | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog.3 b/ChangeLog.3 index 6704d0d..8d0a5dd 100644 --- a/ChangeLog.3 +++ b/ChangeLog.3 @@ -1,3 +1,9 @@ +2018-07-01 Raimon Grau + + Fix url's thing-at-point beginning-op + + * lisp/thingatpt.el (url): Fix beginning-op making. + 2018-05-25 Noam Postavsky Note caveat for backward regexp searching in docstring (Bug#31584) diff --git a/lisp/thingatpt.el b/lisp/thingatpt.el index 4612e95..7fcb3bc 100644 --- a/lisp/thingatpt.el +++ b/lisp/thingatpt.el @@ -484,7 +484,7 @@ thing-at-point-newsgroup-p (put 'url 'end-op (lambda () (end-of-thing 'url))) -(put 'url 'beginning-op (lambda () (end-of-thing 'url))) +(put 'url 'beginning-op (lambda () (beginning-of-thing 'url))) ;; The normal thingatpt mechanism doesn't work for complex regexps. ;; This should work for almost any regexp wherever we are in the -- 2.7.4 --=-=-=--