summaryrefslogtreecommitdiff
path: root/lisp/menu-bar.el
diff options
context:
space:
mode:
authorKarl Fogel <kfogel@red-bean.com>2003-08-12 05:14:49 +0000
committerKarl Fogel <kfogel@red-bean.com>2003-08-12 05:14:49 +0000
commitaef1a2e639a6e374a1d2bbddd1611681c4f25b0c (patch)
tree8c8807f0e5326a5ee19f978f2afe021430bd1d0e /lisp/menu-bar.el
parent2ff0458dd09c436468f68e8dbf02b29560704d59 (diff)
downloademacs-aef1a2e639a6e374a1d2bbddd1611681c4f25b0c.tar.gz
* 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.
Diffstat (limited to 'lisp/menu-bar.el')
-rw-r--r--lisp/menu-bar.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index da5def67510..a339da9e73f 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -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