aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2005-11-04 14:32:58 +0000
committerEli Zaretskii2005-11-04 14:32:58 +0000
commit98945794d52769666278fe4e0a7d0fe0c8a3f466 (patch)
tree429e6116a2c1152435bfd8fbdedb4d8a0c6a93b9
parent8a658d94211c7be8ad5e14b6081982c681b25315 (diff)
downloademacs-98945794d52769666278fe4e0a7d0fe0c8a3f466.tar.gz
emacs-98945794d52769666278fe4e0a7d0fe0c8a3f466.zip
(goto-address-url-regexp): Remove `data:' URLs from goto-address-url-regexp.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/goto-addr.el18
2 files changed, 17 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 26a056ac990..3f0715379ee 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12005-11-04 Edward O'Connor <hober0@gmail.com> (tiny change)
2
3 * net/goto-addr.el (goto-address-url-regexp): Remove `data:' URLs
4 from goto-address-url-regexp.
5
12005-11-04 Carsten Dominik <dominik@science.uva.nl> 62005-11-04 Carsten Dominik <dominik@science.uva.nl>
2 7
3 * textmodes/org.el: (org-read-date, org-goto-calendar) 8 * textmodes/org.el: (org-read-date, org-goto-calendar)
diff --git a/lisp/net/goto-addr.el b/lisp/net/goto-addr.el
index 98a8b0a29e1..d86a8ecdf2d 100644
--- a/lisp/net/goto-addr.el
+++ b/lisp/net/goto-addr.el
@@ -105,12 +105,18 @@ A value of t means there is no limit--fontify regardless of the size."
105 "A regular expression probably matching an e-mail address.") 105 "A regular expression probably matching an e-mail address.")
106 106
107(defvar goto-address-url-regexp 107(defvar goto-address-url-regexp
108 (concat "\\<\\(" 108 (concat
109 (mapconcat 'identity 109 "\\<\\("
110 (delete "mailto:" (copy-sequence thing-at-point-uri-schemes)) 110 (mapconcat 'identity
111 "\\|") 111 (delete "mailto:"
112 "\\)" 112 ;; Remove `data:', as it's not terribly useful to follow
113 thing-at-point-url-path-regexp) 113 ;; those. Leaving them causes `use Data::Dumper;' to be
114 ;; fontified oddly in Perl files.
115 (delete "data:"
116 (copy-sequence thing-at-point-uri-schemes)))
117 "\\|")
118 "\\)"
119 thing-at-point-url-path-regexp)
114 ;; (concat "\\b\\(s?https?\\|ftp\\|file\\|gopher\\|news\\|" 120 ;; (concat "\\b\\(s?https?\\|ftp\\|file\\|gopher\\|news\\|"
115 ;; "telnet\\|wais\\):\\(//[-a-zA-Z0-9_.]+:" 121 ;; "telnet\\|wais\\):\\(//[-a-zA-Z0-9_.]+:"
116 ;; "[0-9]*\\)?[-a-zA-Z0-9_=?#$@~`%&*+|\\/.,]*" 122 ;; "[0-9]*\\)?[-a-zA-Z0-9_=?#$@~`%&*+|\\/.,]*"