]> git.eshelyaron.com Git - emacs.git/commitdiff
(goto-address): Don't bind C-c RET locally.
authorGerd Moellmann <gerd@gnu.org>
Wed, 14 Jun 2000 13:37:44 +0000 (13:37 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 14 Jun 2000 13:37:44 +0000 (13:37 +0000)
(goto-address-highlight-keymap): Bind C-c RET.

lisp/net/goto-addr.el

index be7c736065f0e30588e2a93f5234c674306bfa3e..d5da380f2e51cb9aa799ec8de5051f089b464f0e 100644 (file)
@@ -104,6 +104,7 @@ But only if `goto-address-highlight-p' is also non-nil."
 (defvar goto-address-highlight-keymap
   (let ((m (make-sparse-keymap)))
     (define-key m [mouse-2] 'goto-address-at-mouse)
+    (define-key m "\C-c\r" 'goto-address-at-point)
     m)
   "keymap to hold goto-addr's mouse key defs under highlighted URLs.")
 
@@ -229,7 +230,6 @@ By default, goto-address binds to mouse-2 and C-c RET.
 Also fontifies the buffer appropriately (see `goto-address-fontify-p' and
 `goto-address-highlight-p' for more information)."
   (interactive)
-  (local-set-key "\C-c\r" 'goto-address-at-point)
   (if goto-address-highlight-p
       (goto-address-fontify)))