# HG changeset patch # User Jason Rumney # Date 1202597286 0 # Node ID bd5e4ff734029bcbf26c13049cf201b90a179a51 # Parent bda1e76bc03bea78ce718bf5ff49c4637a7e1809 * button.el (button-map): * wid-edit.el (widget-keymap): Avoid line-end confusion in autoloads. diff -r bda1e76bc03b -r bd5e4ff73402 lisp/ChangeLog --- a/lisp/ChangeLog Sat Feb 09 21:59:34 2008 +0000 +++ b/lisp/ChangeLog Sat Feb 09 22:48:06 2008 +0000 @@ -1,3 +1,8 @@ +2008-02-09 Jason Rumney + + * button.el (button-map): + * wid-edit.el (widget-keymap): Avoid line-end confusion in autoloads. + 2008-02-09 Dan Nicolaescu * epa.el (epa-faces, epa): diff -r bda1e76bc03b -r bd5e4ff73402 lisp/button.el --- a/lisp/button.el Sat Feb 09 21:59:34 2008 +0000 +++ b/lisp/button.el Sat Feb 09 22:48:06 2008 +0000 @@ -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.") diff -r bda1e76bc03b -r bd5e4ff73402 lisp/wid-edit.el --- a/lisp/wid-edit.el Sat Feb 09 21:59:34 2008 +0000 +++ b/lisp/wid-edit.el Sat Feb 09 22:48:06 2008 +0000 @@ -874,7 +874,9 @@ (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.")