GNU bug report logs - #32028
Fix thingatpt url's beginning-op

Previous Next

Package: emacs;

Reported by: Raimon Grau <raimonster <at> gmail.com>

Date: Sun, 1 Jul 2018 22:58:01 UTC

Severity: minor

Tags: fixed

Fixed in version 26.2

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32028 in the body.
You can then email your comments to 32028 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#32028; Package emacs. (Sun, 01 Jul 2018 22:58:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Raimon Grau <raimonster <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 01 Jul 2018 22:58:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Raimon Grau <raimonster <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Fix thingatpt url's beginning-op
Date: Sun, 01 Jul 2018 23:56:37 +0100
[Message part 1 (text/plain, inline)]
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

[0001-Fix-url-s-thing-at-point-beginning-op.patch (text/x-diff, inline)]
From e725d737ea4bc5bb8545a10866ac59986c450d12 Mon Sep 17 00:00:00 2001
From: Raimon Grau <raimonster <at> gmail.com>
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 <raimonster <at> gmail.com>
+
+	Fix url's thing-at-point beginning-op
+
+	* lisp/thingatpt.el (url): Fix beginning-op making.
+
 2018-05-25  Noam Postavsky  <npostavs <at> gmail.com>
 
 	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


Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32028; Package emacs. (Sun, 29 Jul 2018 18:35:01 GMT) Full text and rfc822 format available.

Message #8 received at 32028 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Raimon Grau <raimonster <at> gmail.com>
Cc: 32028 <at> debbugs.gnu.org
Subject: Re: bug#32028: Fix thingatpt url's beginning-op
Date: Sun, 29 Jul 2018 14:34:19 -0400
tags 32028 fixed
close 32028 26.2
quit

Raimon Grau <raimonster <at> gmail.com> writes:

> 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.

Thanks, pushed to emacs-26 [1: dd51434714].

> This is my first time sending a patch to this list so I might be missing
> something or doing something wrong wrt process.

It was fine, but the ChangeLog patch is not needed, that gets generated
automatically from the git log now.


[1: dd51434714]: 2018-07-29 12:07:07 -0400
  Fix url's thing-at-point beginning-op (Bug#32028)
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=dd514347140087112cdc632ac766a76fb4fe27f0




Added tag(s) fixed. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 29 Jul 2018 18:35:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 26.2, send any further explanations to 32028 <at> debbugs.gnu.org and Raimon Grau <raimonster <at> gmail.com> Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 29 Jul 2018 18:35:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 27 Aug 2018 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 12 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.