Mercurial > emacs
diff lisp/toolbar/tool-bar.el @ 43246:c187056ac630
2002-02-11 Per Abrahamsen <abraham@dina.kvl.dk>
* toolbar/tool-bar.el (tool-bar-mode): Removed standard value.
* menu-bar.el (menu-bar-mode): Ditto.
* cus-edit.el (customize-mark-to-save): Always save variables
without a standard value.
* menu-bar.el (menu-bar-make-toggle): Made it aware of customize.
(menu-bar-options-save): Ditto.
(menu-bar-showhide-menu): Ditto.
(menu-bar-options-menu): Ditto.
(menu-bar-scroll-bar-right, menu-bar-scroll-bar-left,
menu-bar-scroll-bar-none): Removed.
(menu-bar-showhide-scroll-bar-menu): Use customize aware lambda
expressions instead.
* cus-edit.el (customize-set-value): Return value.
(customize-set-variable): Ditto.
(customize-save-variable): Ditto.
(customize-set-variable): Load dependencies before setting value.
(custom-load-symbol): Autoload it.
(customize-mark-as-set): New function.
author | Per Abrahamsen <abraham@dina.kvl.dk> |
---|---|
date | Mon, 11 Feb 2002 16:47:55 +0000 |
parents | a9bd717014f0 |
children | ce181770fa8e |
line wrap: on
line diff
--- a/lisp/toolbar/tool-bar.el Mon Feb 11 15:00:13 2002 +0000 +++ b/lisp/toolbar/tool-bar.el Mon Feb 11 16:47:55 2002 +0000 @@ -1,6 +1,6 @@ ;;; tool-bar.el --- setting up the tool bar ;; -;; Copyright (C) 2000, 2001 Free Software Foundation, Inc. +;; Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. ;; ;; Author: Dave Love <fx@gnu.org> ;; Keywords: mouse frames @@ -67,6 +67,12 @@ (= 1 (length (default-value 'tool-bar-map)))) ; not yet setup (tool-bar-setup)))) +;;; `tool-bar-mode' doesn't really have a standard value, as it depend +;;; on where and how Emacs was started. By removing the standard +;;; value, we ensure that customize will always save it. +;; -- Per Abrahamsen <abraham@dina.kvl.dk> 2002-02-11. +(put 'tool-bar-mode 'standard-value nil) + (defvar tool-bar-map (make-sparse-keymap) "Keymap for the tool bar. Define this locally to override the global tool bar.")