]> git.eshelyaron.com Git - emacs.git/commitdiff
* button.el (button-map):
authorJason Rumney <jasonr@gnu.org>
Sat, 9 Feb 2008 22:48:06 +0000 (22:48 +0000)
committerJason Rumney <jasonr@gnu.org>
Sat, 9 Feb 2008 22:48:06 +0000 (22:48 +0000)
* wid-edit.el (widget-keymap): Avoid line-end confusion in autoloads.

lisp/ChangeLog
lisp/button.el
lisp/wid-edit.el

index 248cc4e243a9bdbe00186d4dacfb0c7067b2cb7e..133261eb14d600b2fd944e6032285d6fb32df00c 100644 (file)
@@ -1,3 +1,8 @@
+2008-02-09  Jason Rumney  <jasonr@gnu.org>
+
+       * button.el (button-map):
+       * wid-edit.el (widget-keymap): Avoid line-end confusion in autoloads.
+
 2008-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * epa.el (epa-faces, epa):
index 0b45f2cec41fbcedad3bcd9ae2fdb8ed2e1326ad..df954871985f0610a723f132d31a60bdf13dc118 100644 (file)
@@ -64,7 +64,9 @@
 ;;;###autoload
 (defvar button-map
   (let ((map (make-sparse-keymap)))
-    (define-key map "\r" 'push-button)
+    ;; The following definition needs to avoid using escape sequences that
+    ;; might get converted to ^M when building loaddefs.el
+    (define-key map [(control ?m)] 'push-button)
     (define-key map [mouse-2] 'push-button)
     map)
   "Keymap used by buttons.")
index 205f70d32ef6d80f5c6990c23dd85444bc2458ec..26c77e1a172ea30b9f3a0832fff1b66373e5247d 100644 (file)
@@ -874,7 +874,9 @@ button end points."
     (define-key map [backtab] 'widget-backward)
     (define-key map [down-mouse-2] 'widget-button-click)
     (define-key map [down-mouse-1] 'widget-button-click)
-    (define-key map "\C-m" 'widget-button-press)
+    ;; The following definition needs to avoid using escape sequences that
+    ;; might get converted to ^M when building loaddefs.el
+    (define-key map [(control ?m)] 'widget-button-press)
     map)
   "Keymap containing useful binding for buffers containing widgets.
 Recommended as a parent keymap for modes using widgets.")