aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cus-edit.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/cus-edit.el')
-rw-r--r--lisp/cus-edit.el17
1 files changed, 9 insertions, 8 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 0d7b0733b64..4ed72be06fb 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -1624,7 +1624,9 @@ Otherwise use brackets."
1624 ;; Insert the search field. 1624 ;; Insert the search field.
1625 (when custom-search-field 1625 (when custom-search-field
1626 (widget-insert "\n") 1626 (widget-insert "\n")
1627 (let* ((echo "Search for custom items") 1627 (let* ((echo "Search for custom items.
1628You can enter one or more words separated by spaces,
1629or a regular expression.")
1628 (search-widget 1630 (search-widget
1629 (widget-create 1631 (widget-create
1630 'editable-field 1632 'editable-field
@@ -2599,7 +2601,6 @@ try matching its doc string against `custom-guess-doc-alist'."
2599 :parent widget) 2601 :parent widget)
2600 buttons)) 2602 buttons))
2601 ((memq form '(lisp mismatch)) 2603 ((memq form '(lisp mismatch))
2602 ;; In lisp mode edit the saved value when possible.
2603 (push (widget-create-child-and-convert 2604 (push (widget-create-child-and-convert
2604 widget 'custom-visibility 2605 widget 'custom-visibility
2605 :help-echo "Hide the value of this option." 2606 :help-echo "Hide the value of this option."
@@ -2611,11 +2612,10 @@ try matching its doc string against `custom-guess-doc-alist'."
2611 t) 2612 t)
2612 buttons) 2613 buttons)
2613 (insert " ") 2614 (insert " ")
2614 (let* ((value (cond ((get symbol 'saved-value) 2615 ;; This used to try presenting the saved value or the
2615 (car (get symbol 'saved-value))) 2616 ;; standard value, but it seems more intuitive to present
2616 ((get symbol 'standard-value) 2617 ;; the current value (Bug#7600).
2617 (car (get symbol 'standard-value))) 2618 (let* ((value (cond ((default-boundp symbol)
2618 ((default-boundp symbol)
2619 (custom-quote (funcall get symbol))) 2619 (custom-quote (funcall get symbol)))
2620 (t 2620 (t
2621 (custom-quote (widget-get conv :value)))))) 2621 (custom-quote (widget-get conv :value))))))
@@ -3073,7 +3073,7 @@ to switch between two values."
3073 (funcall set symbol (car value)) 3073 (funcall set symbol (car value))
3074 (error nil))) 3074 (error nil)))
3075 (error "No backup value for %s" symbol)) 3075 (error "No backup value for %s" symbol))
3076 (put symbol 'customized-value (list (car value))) 3076 (put symbol 'customized-value (list (custom-quote (car value))))
3077 (put symbol 'variable-comment comment) 3077 (put symbol 'variable-comment comment)
3078 (put symbol 'customized-variable-comment comment) 3078 (put symbol 'customized-variable-comment comment)
3079 (custom-variable-state-set widget) 3079 (custom-variable-state-set widget)
@@ -3251,6 +3251,7 @@ Also change :reverse-video to :inverse-video."
3251 :args '((const :tag "all" t) 3251 :args '((const :tag "all" t)
3252 (const :tag "defaults" default) 3252 (const :tag "defaults" default)
3253 (checklist 3253 (checklist
3254 :tag "specific display"
3254 :offset 0 3255 :offset 0
3255 :extra-offset 9 3256 :extra-offset 9
3256 :args ((group :sibling-args (:help-echo "\ 3257 :args ((group :sibling-args (:help-echo "\