aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu1998-04-18 18:20:15 +0000
committerDan Nicolaescu1998-04-18 18:20:15 +0000
commita55d9b3b1357840e9e1d3663b598434bc608523e (patch)
tree77ad1ce3eca8ed48feefc6d5224b9a31bba3239e
parentf170ed7157a9bed92e831f13b2ee4c8f90344d54 (diff)
downloademacs-a55d9b3b1357840e9e1d3663b598434bc608523e.tar.gz
emacs-a55d9b3b1357840e9e1d3663b598434bc608523e.zip
*** empty log message ***
-rw-r--r--lisp/cus-edit.el16
1 files changed, 13 insertions, 3 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index aa9b88c0ee5..f35a075456d 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -858,19 +858,29 @@ are shown; the contents of those subgroups are initially hidden."
858;;;###autoload 858;;;###autoload
859(defun customize-changed-options (since-version) 859(defun customize-changed-options (since-version)
860 "Customize all user option variables whose default values changed recently. 860 "Customize all user option variables whose default values changed recently.
861This means, in other words, variables defined with a `:version' option." 861This means, in other words, variables and groups defined with a `:version'
862option."
862 (interactive "sCustomize options changed, since version (default all versions): ") 863 (interactive "sCustomize options changed, since version (default all versions): ")
863 (if (equal since-version "") 864 (if (equal since-version "")
864 (setq since-version nil)) 865 (setq since-version nil))
865 (let ((found nil)) 866 (let ((found nil))
866 (mapatoms (lambda (symbol) 867 (mapatoms (lambda (symbol)
867 (and (boundp symbol) 868 (and (or (boundp symbol)
869 ;; For groups the previous test fails, this one
870 ;; could be used to determine if symbol is a
871 ;; group. Is there a better way for this?
872 (get symbol 'group-documentation))
868 (let ((version (get symbol 'custom-version))) 873 (let ((version (get symbol 'custom-version)))
869 (and version 874 (and version
870 (or (null since-version) 875 (or (null since-version)
871 (customize-version-lessp since-version version)))) 876 (customize-version-lessp since-version version))))
872 (setq found 877 (setq found
873 (cons (list symbol 'custom-variable) found))))) 878 ;; We have to set the right thing here,
879 ;; depending if we have a group or a
880 ;; variable.
881 (if (get symbol 'group-documentation)
882 (cons (list symbol 'custom-group) found)
883 (cons (list symbol 'custom-variable) found))))))
874 (if (not found) 884 (if (not found)
875 (error "No user options have changed defaults in recent Emacs versions") 885 (error "No user options have changed defaults in recent Emacs versions")
876 (custom-buffer-create (custom-sort-items found t nil) 886 (custom-buffer-create (custom-sort-items found t nil)