Mercurial > emacs
diff src/frame.c @ 111222:cdad894f9ed0
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.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Thu, 28 Oct 2010 20:29:29 -0700 |
parents | bf6806de6892 |
children | 8da6c861bf9f |
line wrap: on
line diff
--- a/src/frame.c Thu Oct 28 21:05:38 2010 -0400 +++ b/src/frame.c Thu Oct 28 20:29:29 2010 -0700 @@ -4571,7 +4571,11 @@ Vmenu_bar_mode = Qt; DEFVAR_LISP ("tool-bar-mode", &Vtool_bar_mode, - doc: /* Non-nil if Tool-Bar mode is enabled. */); + doc: /* Non-nil if Tool-Bar mode is enabled. +See the command `tool-bar-mode' for a description of this minor mode. +Setting this variable directly does not take effect; +either customize it (see the info node `Easy Customization') +or call the function `tool-bar-mode'. */); Vtool_bar_mode = Qt; DEFVAR_KBOARD ("default-minibuffer-frame", Vdefault_minibuffer_frame,