# HG changeset patch # User Richard M. Stallman # Date 1035915153 0 # Node ID 0560d7169eba04cf5807c2c05537ab4ec8a486fb # Parent 40a74df315210a384ab2749bbb1f6f78f8bdf6d3 (goto-address-url-regexp): Don't match `mailto'. diff -r 40a74df31521 -r 0560d7169eba lisp/net/goto-addr.el --- 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_=?#$@~`%&*+|\\/.,]*"