diff options
author | Glenn Morris <rgm@gnu.org> | 2010-10-28 20:29:29 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2010-10-28 20:29:29 -0700 |
commit | 9d7940260552d9ad5f331443aae200094ae2847c (patch) | |
tree | f7c3cf42cbf6a057ba2918f03b91e15da25c8b19 /lisp/menu-bar.el | |
parent | dcc029e017acab959291f9d938234240ac3cea32 (diff) | |
download | emacs-9d7940260552d9ad5f331443aae200094ae2847c.tar.gz |
Remove duplicate Lisp definitions of define-minor-mode variables defined in C.
* lisp/abbrev.el (abbrev-mode):
* lisp/composite.el (auto-composition-mode):
* lisp/menu-bar.el (menu-bar-mode):
* lisp/simple.el (transient-mark-mode):
* lisp/tool-bar.el (tool-bar-mode): Adjust the define-minor-mode calls so
that they do not define the associated variables twice.
* lisp/simple.el (transient-mark-mode): Remove defvar.
* lisp/composite.el (auto-composition-mode): Make variable auto-buffer-local.
* lisp/cus-start.el: Add transient-mark-mode, menu-bar-mode, tool-bar-mode.
Handle multiple groups, and also custom-delayed-init-variables.
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix.
* src/buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
* src/frame.c (syms_of_frame) <tool-bar-mode>: Move docs here from Lisp.
Diffstat (limited to 'lisp/menu-bar.el')
-rw-r--r-- | lisp/menu-bar.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index f75bbc5eb76..ac33940011a 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el @@ -2073,7 +2073,8 @@ With a numeric argument, if the argument is positive, turn on menu bars; otherwise, turn off menu bars." :init-value t :global t - :group 'frames + ;; It's defined in C/cus-start, this stops the d-m-m macro defining it again. + :variable menu-bar-mode ;; Turn the menu-bars on all frames on or off. (let ((val (if menu-bar-mode 1 0))) |