[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 8a9b13b: Allow ffap to do the right thing with 'https://gnu.org'
From: |
Lars Ingebrigtsen |
Subject: |
master 8a9b13b: Allow ffap to do the right thing with 'https://gnu.org' |
Date: |
Fri, 7 Aug 2020 05:31:08 -0400 (EDT) |
branch: master
commit 8a9b13be10fcb95481b177cf8c873fc41e0eb8dc
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Allow ffap to do the right thing with 'https://gnu.org'
* lisp/thingatpt.el (thing-at-point-bounds-of-url-at-point): Don't
include trailing ' in the URL, because it's more likely to be a
punctuation character (bug#29410).
---
lisp/thingatpt.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/thingatpt.el b/lisp/thingatpt.el
index 1a15df3..483a2c9 100644
--- a/lisp/thingatpt.el
+++ b/lisp/thingatpt.el
@@ -334,7 +334,7 @@ the bounds of a possible ill-formed URI (one lacking a
scheme)."
;; may contain parentheses but may not contain spaces (RFC3986).
(let* ((allowed-chars "--:=&?$+@-Z_[:alpha:]~#,%;*()!'")
(skip-before "^[0-9a-zA-Z]")
- (skip-after ":;.,!?")
+ (skip-after ":;.,!?'")
(pt (point))
(beg (save-excursion
(skip-chars-backward allowed-chars)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 8a9b13b: Allow ffap to do the right thing with 'https://gnu.org',
Lars Ingebrigtsen <=