changeset 48068:0560d7169eba

(goto-address-url-regexp): Don't match `mailto'.
author Richard M. Stallman <rms@gnu.org>
date Tue, 29 Oct 2002 18:12:33 +0000
parents 40a74df31521
children 518adc9496ed
files lisp/net/goto-addr.el
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/net/goto-addr.el	Tue Oct 29 14:14:56 2002 +0000
+++ b/lisp/net/goto-addr.el	Tue Oct 29 18:12:33 2002 +0000
@@ -102,7 +102,13 @@
   "[-a-zA-Z0-9._+]+@\\([-a-zA-z0-9_]+\\.\\)+[a-zA-Z0-9]+"
   "A regular expression probably matching an e-mail address.")
 
-(defvar goto-address-url-regexp thing-at-point-url-regexp
+(defvar goto-address-url-regexp
+  (concat "\\<\\("
+	  (mapconcat 'identity
+		     (delete "mailto:" (copy-sequence thing-at-point-uri-schemes))
+		     "\\|")
+	  "\\)"
+          thing-at-point-url-path-regexp)
   ;; (concat "\\b\\(s?https?\\|ftp\\|file\\|gopher\\|news\\|"
   ;; 	  "telnet\\|wais\\):\\(//[-a-zA-Z0-9_.]+:"
   ;; 	  "[0-9]*\\)?[-a-zA-Z0-9_=?#$@~`%&*+|\\/.,]*"