diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/goto-addr.el | 7 |
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 @@ | |||
| 1 | 2001-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 | |||
| 1 | 2001-05-18 Andrew Innes <andrewi@gnu.org> | 6 | 2001-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 |