diff options
| author | John Paul Wallington | 2005-11-22 22:08:11 +0000 |
|---|---|---|
| committer | John Paul Wallington | 2005-11-22 22:08:11 +0000 |
| commit | 43fb082deb47452415b16bdf531a7c9391724858 (patch) | |
| tree | 9bd2dbfa7ea1272d0dbf32eebc948a6256ca64f8 | |
| parent | 5c4ce34de3e144d545b6bd38d985a78319d6c410 (diff) | |
| download | emacs-43fb082deb47452415b16bdf531a7c9391724858.tar.gz emacs-43fb082deb47452415b16bdf531a7c9391724858.zip | |
(goto-address-fontify): Put `follow-link' property on mail and url overlays.
(goto-address-at-point): Use `posn-set-point' instead of `mouse-set-point'
because the latter is not fbound when configured without X.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/net/goto-addr.el | 4 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f151c0933a5..14536747f03 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2005-11-22 John Paul Wallington <jpw@gnu.org> | ||
| 2 | |||
| 3 | * net/goto-addr.el (goto-address-fontify): Put `follow-link' | ||
| 4 | property on mail and url overlays. | ||
| 5 | (goto-address-at-point): Use `posn-set-point' instead of | ||
| 6 | `mouse-set-point' because the latter is not fbound when configured | ||
| 7 | without X. | ||
| 8 | |||
| 1 | 2005-11-22 Lars Hansen <larsh@soem.dk> | 9 | 2005-11-22 Lars Hansen <larsh@soem.dk> |
| 2 | 10 | ||
| 3 | * ls-lisp.el (ls-lisp-parse-symlink): Delete. | 11 | * ls-lisp.el (ls-lisp-parse-symlink): Delete. |
diff --git a/lisp/net/goto-addr.el b/lisp/net/goto-addr.el index d86a8ecdf2d..9925227619f 100644 --- a/lisp/net/goto-addr.el +++ b/lisp/net/goto-addr.el | |||
| @@ -174,6 +174,7 @@ and `goto-address-fontify-p'." | |||
| 174 | (overlay-put this-overlay 'evaporate t) | 174 | (overlay-put this-overlay 'evaporate t) |
| 175 | (overlay-put this-overlay | 175 | (overlay-put this-overlay |
| 176 | 'mouse-face goto-address-url-mouse-face) | 176 | 'mouse-face goto-address-url-mouse-face) |
| 177 | (overlay-put this-overlay 'follow-link t) | ||
| 177 | (overlay-put this-overlay | 178 | (overlay-put this-overlay |
| 178 | 'help-echo "mouse-2, C-c RET: follow URL") | 179 | 'help-echo "mouse-2, C-c RET: follow URL") |
| 179 | (overlay-put this-overlay | 180 | (overlay-put this-overlay |
| @@ -189,6 +190,7 @@ and `goto-address-fontify-p'." | |||
| 189 | (overlay-put this-overlay 'evaporate t) | 190 | (overlay-put this-overlay 'evaporate t) |
| 190 | (overlay-put this-overlay 'mouse-face | 191 | (overlay-put this-overlay 'mouse-face |
| 191 | goto-address-mail-mouse-face) | 192 | goto-address-mail-mouse-face) |
| 193 | (overlay-put this-overlay 'follow-link t) | ||
| 192 | (overlay-put this-overlay | 194 | (overlay-put this-overlay |
| 193 | 'help-echo "mouse-2, C-c RET: mail this address") | 195 | 'help-echo "mouse-2, C-c RET: mail this address") |
| 194 | (overlay-put this-overlay | 196 | (overlay-put this-overlay |
| @@ -210,7 +212,7 @@ Send mail to address at point. See documentation for | |||
| 210 | there, then load the URL at or before point." | 212 | there, then load the URL at or before point." |
| 211 | (interactive (list last-input-event)) | 213 | (interactive (list last-input-event)) |
| 212 | (save-excursion | 214 | (save-excursion |
| 213 | (if event (mouse-set-point event)) | 215 | (if event (posn-set-point (event-end event))) |
| 214 | (let ((address (save-excursion (goto-address-find-address-at-point)))) | 216 | (let ((address (save-excursion (goto-address-find-address-at-point)))) |
| 215 | (if (and address | 217 | (if (and address |
| 216 | (save-excursion | 218 | (save-excursion |