]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow ffap to do the right thing with 'https://gnu.org'
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 7 Aug 2020 09:30:55 +0000 (11:30 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 7 Aug 2020 09:30:55 +0000 (11:30 +0200)
* 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

index 1a15df33e505003828b3b55cb10d95dd29edd81d..483a2c9bd836bfccf56a06e7abed26a48b3f71c8 100644 (file)
@@ -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)