mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-11 16:08:13 +00:00
(thing-at-point-url-at-point): Don't use current
syntax table to determine what is whitespace.
This commit is contained in:
parent
ed956b8194
commit
84841dd1b5
@ -259,7 +259,7 @@ starts with \"ftp\" and not \"ftp:/\", or \"http://\" by default."
|
|||||||
(match-end 0)))
|
(match-end 0)))
|
||||||
(and strip (setq url (substring url 5 -1))) ; Drop "<URL:" & ">"
|
(and strip (setq url (substring url 5 -1))) ; Drop "<URL:" & ">"
|
||||||
;; strip whitespace
|
;; strip whitespace
|
||||||
(while (string-match "\\s +\\|\n+" url)
|
(while (string-match "[ \t\n\r]+" url)
|
||||||
(setq url (replace-match "" t t url)))
|
(setq url (replace-match "" t t url)))
|
||||||
(and short (setq url (concat (cond ((string-match "@" url)
|
(and short (setq url (concat (cond ((string-match "@" url)
|
||||||
"mailto:")
|
"mailto:")
|
||||||
|
Loading…
Reference in New Issue
Block a user