]> git.eshelyaron.com Git - emacs.git/commitdiff
* menu-bar.el (menu-bar-options-menu): Supply a body for the
authorKarl Fogel <kfogel@red-bean.com>
Tue, 12 Aug 2003 05:14:49 +0000 (05:14 +0000)
committerKarl Fogel <kfogel@red-bean.com>
Tue, 12 Aug 2003 05:14:49 +0000 (05:14 +0000)
[save-place] binding in the Options menu.  Have it require 'saveplace'
and then toggle the variable manually, to avoid an an unbound variable
error.  Thanks to <Sebastien.Kirche@sage.com> for the bug report.

lisp/ChangeLog
lisp/menu-bar.el

index e52ad93c771878dbe3c79f352b66b9b1ccaadaca..9509a871d6410e8e1ac593dcf1e488e60a55fa9e 100644 (file)
@@ -1,3 +1,11 @@
+2003-08-11  Karl Fogel  <kfogel@red-bean.com>
+
+       * menu-bar.el (menu-bar-options-menu): Supply a body for the
+       [save-place] binding in the Options menu.  Have it require
+       'saveplace' and then toggle the variable manually, to avoid an an
+       unbound variable error.  Thanks to <Sebastien.Kirche@sage.com>
+       for the bug report.
+
 2003-08-11  Nick Roberts  <nick@nick.uklinux.net>
 
        * gdb-ui.el (gdb-insert-field, gdb-array-format1)
index da5def67510a911f6869f415732f2e6f55338e1e..a339da9e73face8e8007d32f28ee33d896a611bc 100644 (file)
@@ -870,7 +870,12 @@ PROPS are additional properties."
   (menu-bar-make-toggle toggle-save-place-globally save-place
                        "Save Place in Files between Sessions"
                        "Saving place in files %s"
-                       "Visit files of previous session when restarting Emacs"))
+                       "Visit files of previous session when restarting Emacs"
+                        (require 'saveplace)
+                        ;; Do it by name, to avoid a free-variable
+                        ;; warning during byte compilation.
+                        (set-default
+                         'save-place (not (symbol-value 'save-place)))))
 
 (define-key menu-bar-options-menu [uniquify]
   (menu-bar-make-toggle toggle-uniquify-buffer-names uniquify-buffer-name-style