diff options
| author | Richard M. Stallman | 1999-11-26 19:47:26 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1999-11-26 19:47:26 +0000 |
| commit | 19d63704de40eb8ba76827980602a1b630bbd89e (patch) | |
| tree | da0480bfa03ebe59f786e5325e918fc0968e9844 | |
| parent | cc7006061317969d6cd6da797a22052133fc51bd (diff) | |
| download | emacs-19d63704de40eb8ba76827980602a1b630bbd89e.tar.gz emacs-19d63704de40eb8ba76827980602a1b630bbd89e.zip | |
(Custom-reset-standard): Doc fix.
(custom-variable-reset-standard): Doc fix.
(custom-face-reset-standard): Doc fix.
(custom-face-menu): "Reset to Standard" => "Erase Customization".
(custom-variable-menu): Likewise.
(custom-reset-menu): Likewise.
(custom-buffer-create-internal): Likewise.
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/cus-edit.el | 27 |
2 files changed, 27 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3273f5d8a0e..294abba1f77 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 1999-11-26 Richard M. Stallman <rms@caffeine.ai.mit.edu> | ||
| 2 | |||
| 3 | * cus-edit.el (Custom-reset-standard): Doc fix. | ||
| 4 | (custom-variable-reset-standard): Doc fix. | ||
| 5 | (custom-face-reset-standard): Doc fix. | ||
| 6 | (custom-face-menu): "Reset to Standard" => "Erase Customization". | ||
| 7 | (custom-variable-menu): Likewise. | ||
| 8 | (custom-reset-menu): Likewise. | ||
| 9 | (custom-buffer-create-internal): Likewise. | ||
| 10 | |||
| 1 | 1999-11-26 Dave Love <fx@gnu.org> | 11 | 1999-11-26 Dave Love <fx@gnu.org> |
| 2 | 12 | ||
| 3 | * progmodes/make-mode.el (makefile-mode-hook): Customize. | 13 | * progmodes/make-mode.el (makefile-mode-hook): Customize. |
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index cb6e8282038..146122c31da 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -657,7 +657,7 @@ groups after non-groups, if nil do not order groups at all." | |||
| 657 | (defvar custom-reset-menu | 657 | (defvar custom-reset-menu |
| 658 | '(("Current" . Custom-reset-current) | 658 | '(("Current" . Custom-reset-current) |
| 659 | ("Saved" . Custom-reset-saved) | 659 | ("Saved" . Custom-reset-saved) |
| 660 | ("Standard Settings" . Custom-reset-standard)) | 660 | ("Erase Customization (use standard settings)" . Custom-reset-standard)) |
| 661 | "Alist of actions for the `Reset' button. | 661 | "Alist of actions for the `Reset' button. |
| 662 | The key is a string containing the name of the action, the value is a | 662 | The key is a string containing the name of the action, the value is a |
| 663 | lisp function taking the widget as an element which will be called | 663 | lisp function taking the widget as an element which will be called |
| @@ -695,7 +695,10 @@ when the action is chosen.") | |||
| 695 | children))) | 695 | children))) |
| 696 | 696 | ||
| 697 | (defun Custom-reset-standard (&rest ignore) | 697 | (defun Custom-reset-standard (&rest ignore) |
| 698 | "Reset all modified, set, or saved group members to their standard settings." | 698 | "Erase all customization (either current or saved) for the group members. |
| 699 | The immediate result is to restore them to their standard settings. | ||
| 700 | This operation eliminates any saved settings for the group members, | ||
| 701 | making them as if they had never been customized at all." | ||
| 699 | (interactive) | 702 | (interactive) |
| 700 | (let ((children custom-options)) | 703 | (let ((children custom-options)) |
| 701 | (mapcar (lambda (widget) | 704 | (mapcar (lambda (widget) |
| @@ -1279,9 +1282,9 @@ Reset all values in this buffer to their saved settings." | |||
| 1279 | :action 'Custom-reset-saved) | 1282 | :action 'Custom-reset-saved) |
| 1280 | (widget-insert " ") | 1283 | (widget-insert " ") |
| 1281 | (widget-create 'push-button | 1284 | (widget-create 'push-button |
| 1282 | :tag "Reset to Standard" | 1285 | :tag "Erase Customization" |
| 1283 | :help-echo "\ | 1286 | :help-echo "\ |
| 1284 | Reset all values in this buffer to their standard settings." | 1287 | Un-customize all values in this buffer. They get their standard settings." |
| 1285 | :action 'Custom-reset-standard)) | 1288 | :action 'Custom-reset-standard)) |
| 1286 | (widget-insert " ") | 1289 | (widget-insert " ") |
| 1287 | (widget-create 'push-button | 1290 | (widget-create 'push-button |
| @@ -2253,7 +2256,7 @@ Otherwise, look up symbol in `custom-guess-type-alist'." | |||
| 2253 | (get (widget-value widget) 'saved-variable-comment)) | 2256 | (get (widget-value widget) 'saved-variable-comment)) |
| 2254 | (memq (widget-get widget :custom-state) | 2257 | (memq (widget-get widget :custom-state) |
| 2255 | '(modified set changed rogue))))) | 2258 | '(modified set changed rogue))))) |
| 2256 | ("Reset to Standard Settings" custom-variable-reset-standard | 2259 | ("Erase Customization" custom-variable-reset-standard |
| 2257 | (lambda (widget) | 2260 | (lambda (widget) |
| 2258 | (and (get (widget-value widget) 'standard-value) | 2261 | (and (get (widget-value widget) 'standard-value) |
| 2259 | (memq (widget-get widget :custom-state) | 2262 | (memq (widget-get widget :custom-state) |
| @@ -2272,7 +2275,7 @@ Each entry has the form (NAME ACTION FILTER) where NAME is the name of | |||
| 2272 | the menu entry, ACTION is the function to call on the widget when the | 2275 | the menu entry, ACTION is the function to call on the widget when the |
| 2273 | menu is selected, and FILTER is a predicate which takes a `custom-variable' | 2276 | menu is selected, and FILTER is a predicate which takes a `custom-variable' |
| 2274 | widget as an argument, and returns non-nil if ACTION is valid on that | 2277 | widget as an argument, and returns non-nil if ACTION is valid on that |
| 2275 | widget. If FILTER is nil, ACTION is always valid.") | 2278 | widget. If FILTER is nil, ACTION is always valid.") |
| 2276 | 2279 | ||
| 2277 | (defun custom-variable-action (widget &optional event) | 2280 | (defun custom-variable-action (widget &optional event) |
| 2278 | "Show the menu for `custom-variable' WIDGET. | 2281 | "Show the menu for `custom-variable' WIDGET. |
| @@ -2401,7 +2404,9 @@ Optional EVENT is the location for the menu." | |||
| 2401 | (custom-redraw widget))) | 2404 | (custom-redraw widget))) |
| 2402 | 2405 | ||
| 2403 | (defun custom-variable-reset-standard (widget) | 2406 | (defun custom-variable-reset-standard (widget) |
| 2404 | "Restore the standard setting for the variable being edited by WIDGET." | 2407 | "Restore the standard setting for the variable being edited by WIDGET. |
| 2408 | This operation eliminates any saved setting for the variable, | ||
| 2409 | restoring it to the state of a variable that has never been customized." | ||
| 2405 | (let* ((symbol (widget-value widget)) | 2410 | (let* ((symbol (widget-value widget)) |
| 2406 | (set (or (get symbol 'custom-set) 'set-default)) | 2411 | (set (or (get symbol 'custom-set) 'set-default)) |
| 2407 | (comment-widget (widget-get widget :comment-widget))) | 2412 | (comment-widget (widget-get widget :comment-widget))) |
| @@ -2682,7 +2687,7 @@ Match frames with dark backgrounds.") | |||
| 2682 | (lambda (widget) | 2687 | (lambda (widget) |
| 2683 | (or (get (widget-value widget) 'saved-face) | 2688 | (or (get (widget-value widget) 'saved-face) |
| 2684 | (get (widget-value widget) 'saved-face-comment)))) | 2689 | (get (widget-value widget) 'saved-face-comment)))) |
| 2685 | ("Reset to Standard Setting" custom-face-reset-standard | 2690 | ("Erase Customization" custom-face-reset-standard |
| 2686 | (lambda (widget) | 2691 | (lambda (widget) |
| 2687 | (get (widget-value widget) 'face-defface-spec))) | 2692 | (get (widget-value widget) 'face-defface-spec))) |
| 2688 | ("---" ignore ignore) | 2693 | ("---" ignore ignore) |
| @@ -2702,7 +2707,7 @@ Each entry has the form (NAME ACTION FILTER) where NAME is the name of | |||
| 2702 | the menu entry, ACTION is the function to call on the widget when the | 2707 | the menu entry, ACTION is the function to call on the widget when the |
| 2703 | menu is selected, and FILTER is a predicate which takes a `custom-face' | 2708 | menu is selected, and FILTER is a predicate which takes a `custom-face' |
| 2704 | widget as an argument, and returns non-nil if ACTION is valid on that | 2709 | widget as an argument, and returns non-nil if ACTION is valid on that |
| 2705 | widget. If FILTER is nil, ACTION is always valid.") | 2710 | widget. If FILTER is nil, ACTION is always valid.") |
| 2706 | 2711 | ||
| 2707 | (defun custom-face-edit-selected (widget) | 2712 | (defun custom-face-edit-selected (widget) |
| 2708 | "Edit selected attributes of the value of WIDGET." | 2713 | "Edit selected attributes of the value of WIDGET." |
| @@ -2828,7 +2833,9 @@ Optional EVENT is the location for the menu." | |||
| 2828 | (custom-redraw-magic widget))) | 2833 | (custom-redraw-magic widget))) |
| 2829 | 2834 | ||
| 2830 | (defun custom-face-reset-standard (widget) | 2835 | (defun custom-face-reset-standard (widget) |
| 2831 | "Restore WIDGET to the face's standard settings." | 2836 | "Restore WIDGET to the face's standard settings. |
| 2837 | This operation eliminates any saved setting for the face, | ||
| 2838 | restoring it to the state of a face that has never been customized." | ||
| 2832 | (let* ((symbol (widget-value widget)) | 2839 | (let* ((symbol (widget-value widget)) |
| 2833 | (child (car (widget-get widget :children))) | 2840 | (child (car (widget-get widget :children))) |
| 2834 | (value (get symbol 'face-defface-spec)) | 2841 | (value (get symbol 'face-defface-spec)) |