aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-02-10 06:44:41 +0000
committerRichard M. Stallman2005-02-10 06:44:41 +0000
commit9f5d3236b9d24311ad27a63f69edd461eea078a7 (patch)
treefeb4e06cc64224f7988a56553292371979890a40
parent84acdbc35868d0be7a663054ca14758b6e8d15ef (diff)
downloademacs-9f5d3236b9d24311ad27a63f69edd461eea078a7.tar.gz
emacs-9f5d3236b9d24311ad27a63f69edd461eea078a7.zip
(custom-buffer-create-internal): Improve help-echo.
-rw-r--r--lisp/cus-edit.el100
1 files changed, 99 insertions, 1 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 1a20c54f0d1..9ac11a85803 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -34,6 +34,103 @@
34;; that interferes with completion. Use `customize-' for commands 34;; that interferes with completion. Use `customize-' for commands
35;; that the user will run with M-x, and `Custom-' for interactive commands. 35;; that the user will run with M-x, and `Custom-' for interactive commands.
36 36
37;; The identity of a customize option is represented by a Lisp symbol.
38;; There is the following values associated with an option.
39
40;; 0. The current value.
41
42;; This is the value of the option as seen by "the rest of Emacs".
43
44;; Usually extracted by 'default-value', but can be extracted with
45;; different means if the option symbol has the 'custom-get'
46;; property. Similarly, set-default (or the 'custom-set' property)
47;; can set it.
48
49;; 1. The widget value.
50
51;; This is the value shown in the widget in a customize buffer.
52
53;; 2. The customized value.
54
55;; This is the last value given to the option through customize.
56
57;; It is stored in the 'customized-value' property of the option, in a
58;; cons-cell whose car evaluate to the customized value.
59
60;; 3. The saved value.
61
62;; This is last value saved from customize.
63
64;; It is stored in the 'saved-value' property of the option, in a
65;; cons-cell whose car evaluate to the saved value.
66
67;; 4. The standard value.
68
69;; This is the value given in the 'defcustom' declaration.
70
71;; It is stored in the 'standard-value' property of the option, in a
72;; cons-cell whose car evaluate to the standard value.
73
74;; 5. The "think" value.
75
76;; This is what customize think the current value should be.
77
78;; This is the customize value, if any such value exists, otherwise
79;; the saved value, if that exists, and as a last resort the standard
80;; value.
81
82;; The reason for storing values unevaluated: This is so you can have
83;; values that depend on the environment. For example, you can have a
84;; valiable that has one value when Emacs is running under a window
85;; system, and another value on a tty. Since the evaluation is only done
86;; when the variable is firsty initialized, this is only relevant for the
87;; saved (and standard) values, but affect others values for
88;; compatibility.
89
90;; You can see (and modify and save) this unevaluated value by selecting
91;; "Show initial Lisp expression" from the Lisp interface. This will
92;; give you the unevaluated saved value, if any, otherwise the
93;; unevaluated standard value.
94
95;; The possible states for a customize widget are:
96
97;; 0. unknown
98
99;; The state has not been determined yet.
100
101;; 1. modified
102
103;; The widget value is different from the current value.
104
105;; 2. changed
106
107;; The current value is different from the "think" value.
108
109;; 3. set
110
111;; The "think" value is the customized value.
112
113;; 4. saved
114
115;; The "think" value is the saved value.
116
117;; 5. standard
118
119;; The "think" value is the standard value.
120
121;; 6. rogue
122
123;; There are no standard value.
124
125;; 7. hidden
126
127;; There is no widget value.
128
129;; 8. mismatch
130
131;; The widget value is not valid member of the :type specified for the
132;; option.
133
37;;; Code: 134;;; Code:
38 135
39(require 'cus-face) 136(require 'cus-face)
@@ -1299,7 +1396,8 @@ Make your editing in this buffer take effect for this session."
1299 (widget-create 'push-button 1396 (widget-create 'push-button
1300 :tag "Save for Future Sessions" 1397 :tag "Save for Future Sessions"
1301 :help-echo "\ 1398 :help-echo "\
1302Make your editing in this buffer take effect for future Emacs sessions." 1399Make your editing in this buffer take effect for future Emacs sessions.
1400This updates your Emacs initialization file or creates a new one one."
1303 :action (lambda (widget &optional event) 1401 :action (lambda (widget &optional event)
1304 (Custom-save))) 1402 (Custom-save)))
1305 (if custom-reset-button-menu 1403 (if custom-reset-button-menu