# HG changeset patch # User Richard M. Stallman # Date 1136692515 0 # Node ID 742bf2516c24a1af2ddd1a4b0956550704b6102d # Parent aad660b490478e0cb83dd2aaaae4f47bbdaa79bf (Custom-set, Custom-save): Doc fix. (Custom-reset-current, Custom-reset-saved): Change question text. (Custom-reset-standard): Likewise. (custom-variable-reset-saved): Doc fix. diff -r aad660b49047 -r 742bf2516c24 lisp/cus-edit.el --- a/lisp/cus-edit.el Sat Jan 07 20:46:49 2006 +0000 +++ b/lisp/cus-edit.el Sun Jan 08 03:55:15 2006 +0000 @@ -744,7 +744,7 @@ "Customization widgets in the current buffer.") (defun Custom-set () - "Set changes in all modified options." + "Set the current value of all edited settings in the buffer." (interactive) (if (y-or-n-p "Set all values according to this buffer? ") (let ((children custom-options)) @@ -755,7 +755,9 @@ (message "Aborted"))) (defun Custom-save () - "Set all modified group members and save them." + "Set all edited settings, then save all settings that have been set. +If a setting was edited and set before, this saves it. +If a setting was merely edited before, this sets it then saves it." (interactive) (if (yes-or-no-p "Save all settings in this buffer? ") (let ((children custom-options)) @@ -786,9 +788,9 @@ (funcall answer)))) (defun Custom-reset-current (&rest ignore) - "Reset all modified group members to their current value." + "Reset all edited settings in the buffer to show their current values." (interactive) - (if (y-or-n-p "Reset buffer to show current settings? ") + (if (y-or-n-p "Reset all settings' buffer text to show current values? ") (let ((children custom-options)) (mapc (lambda (widget) (if (memq (widget-get widget :custom-state) @@ -798,9 +800,10 @@ (message "Aborted"))) (defun Custom-reset-saved (&rest ignore) - "Reset all modified or set group members to their saved value." + "Reset all edited or set settings in the buffer to their saved value. +This also shows the saved values in the buffer." (interactive) - (if (y-or-n-p "Reset all settings to saved values? ") + (if (y-or-n-p "Reset all settings (current values and buffer text) to saved values? ") (let ((children custom-options)) (mapc (lambda (widget) (if (memq (widget-get widget :custom-state) @@ -819,7 +822,7 @@ (if (or (and (= 1 (length children)) (memq (widget-type (car children)) '(custom-variable custom-face))) - (yes-or-no-p "Erase all customizations in this buffer? ")) + (yes-or-no-p "Erase all customizations for settings in this buffer? ")) (mapc (lambda (widget) (and (if (widget-get widget :custom-standard-value) (widget-apply widget :custom-standard-value) @@ -2783,6 +2786,7 @@ (defun custom-variable-reset-saved (widget) "Restore the saved value for the variable being edited by WIDGET. +This also updates the buffer to show that value. The value that was current before this operation becomes the backup value, so you can get it again." (let* ((symbol (widget-value widget))