mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +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
1 changed files with 1 additions and 1 deletions
|
|
@ -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:")
|
||||
|
|
|
|||
Loading…
Reference in a new issue