aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2010-10-28 20:29:29 -0700
committerGlenn Morris2010-10-28 20:29:29 -0700
commit9d7940260552d9ad5f331443aae200094ae2847c (patch)
treef7c3cf42cbf6a057ba2918f03b91e15da25c8b19 /src
parentdcc029e017acab959291f9d938234240ac3cea32 (diff)
downloademacs-9d7940260552d9ad5f331443aae200094ae2847c.tar.gz
emacs-9d7940260552d9ad5f331443aae200094ae2847c.zip
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 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/buffer.c23
-rw-r--r--src/frame.c6
3 files changed, 28 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f3e2ea7854e..d61e20aa600 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-10-29 Glenn Morris <rgm@gnu.org>
2
3 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
4 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
5
12010-10-26 Juanma Barranquero <lekktu@gmail.com> 62010-10-26 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600; 8 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
diff --git a/src/buffer.c b/src/buffer.c
index 5a6bfcba060..67192b4843b 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5600,7 +5600,8 @@ Format with `format-mode-line' to produce a string value. */);
5600 doc: /* Local (mode-specific) abbrev table of current buffer. */); 5600 doc: /* Local (mode-specific) abbrev table of current buffer. */);
5601 5601
5602 DEFVAR_PER_BUFFER ("abbrev-mode", &current_buffer->abbrev_mode, Qnil, 5602 DEFVAR_PER_BUFFER ("abbrev-mode", &current_buffer->abbrev_mode, Qnil,
5603 doc: /* Non-nil turns on automatic expansion of abbrevs as they are inserted. */); 5603 doc: /* Non-nil if Abbrev mode is enabled.
5604Use the command `abbrev-mode' to change this variable. */);
5604 5605
5605 DEFVAR_PER_BUFFER ("case-fold-search", &current_buffer->case_fold_search, 5606 DEFVAR_PER_BUFFER ("case-fold-search", &current_buffer->case_fold_search,
5606 Qnil, 5607 Qnil,
@@ -6098,11 +6099,23 @@ to the value obtained by calling `current-time'.
6098If the buffer has never been shown in a window, the value is nil. */); 6099If the buffer has never been shown in a window, the value is nil. */);
6099 6100
6100 DEFVAR_LISP ("transient-mark-mode", &Vtransient_mark_mode, 6101 DEFVAR_LISP ("transient-mark-mode", &Vtransient_mark_mode,
6101 doc: /* */); 6102 doc: /* Non-nil if Transient Mark mode is enabled.
6103See the command `transient-mark-mode' for a description of this minor mode.
6104
6105Non-nil also enables highlighting of the region whenever the mark is active.
6106The variable `highlight-nonselected-windows' controls whether to highlight
6107all windows or just the selected window.
6108
6109If the value is `lambda', that enables Transient Mark mode temporarily.
6110After any subsequent action that would normally deactivate the mark
6111\(such as buffer modification), Transient Mark mode is turned off.
6112
6113If the value is (only . OLDVAL), that enables Transient Mark mode
6114temporarily. After any subsequent point motion command that is not
6115shift-translated, or any other action that would normally deactivate
6116the mark (such as buffer modification), the value of
6117`transient-mark-mode' is set to OLDVAL. */);
6102 Vtransient_mark_mode = Qnil; 6118 Vtransient_mark_mode = Qnil;
6103 /* The docstring is in simple.el. If we put it here, it would be
6104 overwritten when transient-mark-mode is defined using
6105 define-minor-mode. */
6106 6119
6107 DEFVAR_LISP ("inhibit-read-only", &Vinhibit_read_only, 6120 DEFVAR_LISP ("inhibit-read-only", &Vinhibit_read_only,
6108 doc: /* *Non-nil means disregard read-only status of buffers or characters. 6121 doc: /* *Non-nil means disregard read-only status of buffers or characters.
diff --git a/src/frame.c b/src/frame.c
index 1c9d471cfa9..1f8ff8d562b 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -4571,7 +4571,11 @@ or call the function `menu-bar-mode'. */);
4571 Vmenu_bar_mode = Qt; 4571 Vmenu_bar_mode = Qt;
4572 4572
4573 DEFVAR_LISP ("tool-bar-mode", &Vtool_bar_mode, 4573 DEFVAR_LISP ("tool-bar-mode", &Vtool_bar_mode,
4574 doc: /* Non-nil if Tool-Bar mode is enabled. */); 4574 doc: /* Non-nil if Tool-Bar mode is enabled.
4575See the command `tool-bar-mode' for a description of this minor mode.
4576Setting this variable directly does not take effect;
4577either customize it (see the info node `Easy Customization')
4578or call the function `tool-bar-mode'. */);
4575 Vtool_bar_mode = Qt; 4579 Vtool_bar_mode = Qt;
4576 4580
4577 DEFVAR_KBOARD ("default-minibuffer-frame", Vdefault_minibuffer_frame, 4581 DEFVAR_KBOARD ("default-minibuffer-frame", Vdefault_minibuffer_frame,