aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Fogel2003-08-12 05:14:49 +0000
committerKarl Fogel2003-08-12 05:14:49 +0000
commitaef1a2e639a6e374a1d2bbddd1611681c4f25b0c (patch)
tree8c8807f0e5326a5ee19f978f2afe021430bd1d0e
parent2ff0458dd09c436468f68e8dbf02b29560704d59 (diff)
downloademacs-aef1a2e639a6e374a1d2bbddd1611681c4f25b0c.tar.gz
emacs-aef1a2e639a6e374a1d2bbddd1611681c4f25b0c.zip
* 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.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/menu-bar.el7
2 files changed, 14 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e52ad93c771..9509a871d64 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12003-08-11 Karl Fogel <kfogel@red-bean.com>
2
3 * menu-bar.el (menu-bar-options-menu): Supply a body for the
4 [save-place] binding in the Options menu. Have it require
5 'saveplace' and then toggle the variable manually, to avoid an an
6 unbound variable error. Thanks to <Sebastien.Kirche@sage.com>
7 for the bug report.
8
12003-08-11 Nick Roberts <nick@nick.uklinux.net> 92003-08-11 Nick Roberts <nick@nick.uklinux.net>
2 10
3 * gdb-ui.el (gdb-insert-field, gdb-array-format1) 11 * gdb-ui.el (gdb-insert-field, gdb-array-format1)
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."
870 (menu-bar-make-toggle toggle-save-place-globally save-place 870 (menu-bar-make-toggle toggle-save-place-globally save-place
871 "Save Place in Files between Sessions" 871 "Save Place in Files between Sessions"
872 "Saving place in files %s" 872 "Saving place in files %s"
873 "Visit files of previous session when restarting Emacs")) 873 "Visit files of previous session when restarting Emacs"
874 (require 'saveplace)
875 ;; Do it by name, to avoid a free-variable
876 ;; warning during byte compilation.
877 (set-default
878 'save-place (not (symbol-value 'save-place)))))
874 879
875(define-key menu-bar-options-menu [uniquify] 880(define-key menu-bar-options-menu [uniquify]
876 (menu-bar-make-toggle toggle-uniquify-buffer-names uniquify-buffer-name-style 881 (menu-bar-make-toggle toggle-uniquify-buffer-names uniquify-buffer-name-style