diff options
| author | Per Abrahamsen | 2003-03-10 14:06:57 +0000 |
|---|---|---|
| committer | Per Abrahamsen | 2003-03-10 14:06:57 +0000 |
| commit | 963c2e09c084d528cd0432eb7c039c374816df3c (patch) | |
| tree | 6aef687eceb4be231e243f17ecea7f8e15b1f324 | |
| parent | 089bc712c0d71f238435f95b44b3ad391e9c92f9 (diff) | |
| download | emacs-963c2e09c084d528cd0432eb7c039c374816df3c.tar.gz emacs-963c2e09c084d528cd0432eb7c039c374816df3c.zip | |
2003-03-10 Per Abrahamsen <abraham@dina.kvl.dk>
* cus-edit.el (customize-rogue): New command.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/cus-edit.el | 21 |
2 files changed, 24 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e986c6604b6..1eb657773cd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2003-03-10 Per Abrahamsen <abraham@dina.kvl.dk> | ||
| 2 | |||
| 3 | * cus-edit.el (customize-rogue): New command. | ||
| 4 | |||
| 1 | 2003-03-10 Andreas Schwab <schwab@suse.de> | 5 | 2003-03-10 Andreas Schwab <schwab@suse.de> |
| 2 | 6 | ||
| 3 | * info.el (Info-extract-menu-node-name) | 7 | * info.el (Info-extract-menu-node-name) |
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index c85b2a67ac9..18059fcd85b 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; cus-edit.el --- tools for customizing Emacs and Lisp packages | 1 | ;;; cus-edit.el --- tools for customizing Emacs and Lisp packages |
| 2 | ;; | 2 | ;; |
| 3 | ;; Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
| 4 | ;; | 4 | ;; |
| 5 | ;; Author: Per Abrahamsen <abraham@dina.kvl.dk> | 5 | ;; Author: Per Abrahamsen <abraham@dina.kvl.dk> |
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| @@ -1086,6 +1086,25 @@ suggest to customized that face, if it's customizable." | |||
| 1086 | "*Customize Customized*")))) | 1086 | "*Customize Customized*")))) |
| 1087 | 1087 | ||
| 1088 | ;;;###autoload | 1088 | ;;;###autoload |
| 1089 | (defun customize-rogue () | ||
| 1090 | "Customize all user variable modified outside customize." | ||
| 1091 | (interactive) | ||
| 1092 | (let ((found nil)) | ||
| 1093 | (mapatoms (lambda (symbol) | ||
| 1094 | (let ((cval (or (get symbol 'customized-value) | ||
| 1095 | (get symbol 'saved-value) | ||
| 1096 | (get symbol 'standard-value)))) | ||
| 1097 | (when (and cval ;Declared with defcustom. | ||
| 1098 | (default-boundp symbol) ;Has a value. | ||
| 1099 | (not (equal (eval (car cval)) | ||
| 1100 | ;; Which does not match customize. | ||
| 1101 | (default-value symbol)))) | ||
| 1102 | (push (list symbol 'custom-variable) found))))) | ||
| 1103 | (if (not found) | ||
| 1104 | (error "No rogue user options") | ||
| 1105 | (custom-buffer-create (custom-sort-items found t nil) | ||
| 1106 | "*Customize Rogue*")))) | ||
| 1107 | ;;;###autoload | ||
| 1089 | (defun customize-saved () | 1108 | (defun customize-saved () |
| 1090 | "Customize all already saved user options." | 1109 | "Customize all already saved user options." |
| 1091 | (interactive) | 1110 | (interactive) |