1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-23 10:34:07 +00:00

(thing-at-point-url-at-point): Don't use current

syntax table to determine what is whitespace.
This commit is contained in:
Richard M. Stallman 1998-11-25 21:26:50 +00:00
parent ed956b8194
commit 84841dd1b5

View File

@ -259,7 +259,7 @@ starts with \"ftp\" and not \"ftp:/\", or \"http://\" by default."
(match-end 0)))
(and strip (setq url (substring url 5 -1))) ; Drop "<URL:" & ">"
;; strip whitespace
(while (string-match "\\s +\\|\n+" url)
(while (string-match "[ \t\n\r]+" url)
(setq url (replace-match "" t t url)))
(and short (setq url (concat (cond ((string-match "@" url)
"mailto:")