Mercurial > emacs
comparison lisp/net/goto-addr.el @ 29653:dfb2dd2b862a
(goto-address): Don't bind C-c RET locally.
(goto-address-highlight-keymap): Bind C-c RET.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 14 Jun 2000 13:37:44 +0000 |
parents | 67618bef1515 |
children | 3e03d72fadea |
comparison
equal
deleted
inserted
replaced
29652:35fabb4b6bab | 29653:dfb2dd2b862a |
---|---|
102 "A regular expression probably matching a URL.") | 102 "A regular expression probably matching a URL.") |
103 | 103 |
104 (defvar goto-address-highlight-keymap | 104 (defvar goto-address-highlight-keymap |
105 (let ((m (make-sparse-keymap))) | 105 (let ((m (make-sparse-keymap))) |
106 (define-key m [mouse-2] 'goto-address-at-mouse) | 106 (define-key m [mouse-2] 'goto-address-at-mouse) |
107 (define-key m "\C-c\r" 'goto-address-at-point) | |
107 m) | 108 m) |
108 "keymap to hold goto-addr's mouse key defs under highlighted URLs.") | 109 "keymap to hold goto-addr's mouse key defs under highlighted URLs.") |
109 | 110 |
110 (defcustom goto-address-url-face 'bold | 111 (defcustom goto-address-url-face 'bold |
111 "*Face to use for URLs." | 112 "*Face to use for URLs." |
227 By default, goto-address binds to mouse-2 and C-c RET. | 228 By default, goto-address binds to mouse-2 and C-c RET. |
228 | 229 |
229 Also fontifies the buffer appropriately (see `goto-address-fontify-p' and | 230 Also fontifies the buffer appropriately (see `goto-address-fontify-p' and |
230 `goto-address-highlight-p' for more information)." | 231 `goto-address-highlight-p' for more information)." |
231 (interactive) | 232 (interactive) |
232 (local-set-key "\C-c\r" 'goto-address-at-point) | |
233 (if goto-address-highlight-p | 233 (if goto-address-highlight-p |
234 (goto-address-fontify))) | 234 (goto-address-fontify))) |
235 | 235 |
236 (provide 'goto-addr) | 236 (provide 'goto-addr) |
237 | 237 |