aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-05-18 12:50:27 +0000
committerGerd Moellmann2001-05-18 12:50:27 +0000
commit1c66d9fb23c8dd7618d38853cfde9d4e3616ccd5 (patch)
tree7e6eefc0c9cd7eecfd0bd1fbd12addc5bc63879a
parentc5bdb93d32a3c0fe0d790ac194ca1fa2aa71d967 (diff)
downloademacs-1c66d9fb23c8dd7618d38853cfde9d4e3616ccd5.tar.gz
emacs-1c66d9fb23c8dd7618d38853cfde9d4e3616ccd5.zip
(goto-address-at-point): Deal with URLs
part of which look like email addresses.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/goto-addr.el7
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b48e8091804..5011b176df6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12001-05-18 Gerd Moellmann <gerd@gnu.org>
2
3 * net/goto-addr.el (goto-address-at-point): Deal with URLs
4 part of which look like email addresses.
5
12001-05-18 Andrew Innes <andrewi@gnu.org> 62001-05-18 Andrew Innes <andrewi@gnu.org>
2 7
3 * makefile.w32-in (compile-files-CMD, bootstrap-clean-CMD): Use 8 * makefile.w32-in (compile-files-CMD, bootstrap-clean-CMD): Use
diff --git a/lisp/net/goto-addr.el b/lisp/net/goto-addr.el
index 986489bdd62..bb75508935f 100644
--- a/lisp/net/goto-addr.el
+++ b/lisp/net/goto-addr.el
@@ -201,7 +201,12 @@ there, then load the URL at or before point."
201 (interactive) 201 (interactive)
202 (save-excursion 202 (save-excursion
203 (let ((address (save-excursion (goto-address-find-address-at-point)))) 203 (let ((address (save-excursion (goto-address-find-address-at-point))))
204 (if address 204 (if (and address
205 (save-excursion
206 (goto-char (previous-single-char-property-change
207 (point) 'goto-address nil
208 (line-beginning-position)))
209 (not (looking-at goto-address-url-regexp))))
205 (compose-mail address) 210 (compose-mail address)
206 (let ((url (browse-url-url-at-point))) 211 (let ((url (browse-url-url-at-point)))
207 (if url 212 (if url