]> git.eshelyaron.com Git - emacs.git/commitdiff
remember.el (remember-mode-map): Define and initialize in one step.
authorMichael Olson <mwolson@gnu.org>
Thu, 1 Nov 2007 04:40:55 +0000 (04:40 +0000)
committerMichael Olson <mwolson@gnu.org>
Thu, 1 Nov 2007 04:40:55 +0000 (04:40 +0000)
lisp/ChangeLog
lisp/textmodes/remember.el

index 015ebd9f9dbe7048bc44482ea0476b7057bbed63..10df4e1211d7826ffc51ce81ad5aab3caa1c22bb 100644 (file)
@@ -10,6 +10,7 @@
        remember-buffer to emphasize that this does not have any
        functional overlap with the `remember' function.
        (remember-destroy): Remove autoload cookie.
+       (remember-mode-map): Define and initialize in one step.
 
 2007-11-01  Glenn Morris  <rgm@gnu.org>
 
index e6274b2b56b9c869ed8d0dfb0f349ba37f0ccf32..9f8ad0aa9c7a541d03b7eee3520bb2b2a8a61af7 100644 (file)
@@ -452,13 +452,12 @@ application."
 
 ;;; Internal Functions:
 
-(defvar remember-mode-map ()
+(defvar remember-mode-map
+  (let ((map (make-sparse-keymap)))
+    (define-key map "\C-x\C-s" 'remember-finalize)
+    (define-key map "\C-c\C-c" 'remember-finalize)
+    (define-key map "\C-c\C-k" 'remember-destroy))
   "Keymap used in Remember mode.")
-(when (not remember-mode-map)
-  (setq remember-mode-map (make-sparse-keymap))
-  (define-key remember-mode-map "\C-x\C-s" 'remember-finalize)
-  (define-key remember-mode-map "\C-c\C-c" 'remember-finalize)
-  (define-key remember-mode-map "\C-c\C-k" 'remember-destroy))
 
 (defun remember-mode ()
   "Major mode for output from \\[remember].