aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2005-12-11 18:16:20 +0000
committerLuc Teirlinck2005-12-11 18:16:20 +0000
commit27b8781063148a90be85c2e89cf00e88c74020bf (patch)
treecc9fba84880d32a03665578224a4633a634345a5
parent39f617e5f7de8dddcdbc3e309dbff953494ea722 (diff)
downloademacs-27b8781063148a90be85c2e89cf00e88c74020bf.tar.gz
emacs-27b8781063148a90be85c2e89cf00e88c74020bf.zip
(customize-apropos): Avoid listing an option more than once under
different aliases. No longer list user options that are not defined with defcustom (unless a prefix arg is given). Doc fix. (customize-apropos-options): Doc fix.
-rw-r--r--lisp/cus-edit.el16
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index eed12113568..f5d3224731c 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -1252,12 +1252,12 @@ suggest to customize that face, if it's customizable."
1252 1252
1253;;;###autoload 1253;;;###autoload
1254(defun customize-apropos (regexp &optional all) 1254(defun customize-apropos (regexp &optional all)
1255 "Customize all user options matching REGEXP. 1255 "Customize all options, faces and groups matching REGEXP.
1256If ALL is `options', include only options. 1256If ALL is `options', include only options.
1257If ALL is `faces', include only faces. 1257If ALL is `faces', include only faces.
1258If ALL is `groups', include only groups. 1258If ALL is `groups', include only groups.
1259If ALL is t (interactively, with prefix arg), include options which are not 1259If ALL is t (interactively, with prefix arg), include variables
1260user-settable, as well as faces and groups." 1260that are not customizable options, as well as faces and groups."
1261 (interactive "sCustomize regexp: \nP") 1261 (interactive "sCustomize regexp: \nP")
1262 (let ((found nil)) 1262 (let ((found nil))
1263 (mapatoms (lambda (symbol) 1263 (mapatoms (lambda (symbol)
@@ -1270,11 +1270,11 @@ user-settable, as well as faces and groups."
1270 (push (list symbol 'custom-face) found)) 1270 (push (list symbol 'custom-face) found))
1271 (when (and (not (memq all '(groups faces))) 1271 (when (and (not (memq all '(groups faces)))
1272 (boundp symbol) 1272 (boundp symbol)
1273 (eq (indirect-variable symbol) symbol)
1273 (or (get symbol 'saved-value) 1274 (or (get symbol 'saved-value)
1274 (custom-variable-p symbol) 1275 (custom-variable-p symbol)
1275 (if (memq all '(nil options)) 1276 (and (not (memq all '(nil options)))
1276 (user-variable-p symbol) 1277 (get symbol 'variable-documentation))))
1277 (get symbol 'variable-documentation))))
1278 (push (list symbol 'custom-variable) found))))) 1278 (push (list symbol 'custom-variable) found)))))
1279 (if (not found) 1279 (if (not found)
1280 (error "No matches") 1280 (error "No matches")
@@ -1284,8 +1284,8 @@ user-settable, as well as faces and groups."
1284 1284
1285;;;###autoload 1285;;;###autoload
1286(defun customize-apropos-options (regexp &optional arg) 1286(defun customize-apropos-options (regexp &optional arg)
1287 "Customize all user options matching REGEXP. 1287 "Customize all customizable options matching REGEXP.
1288With prefix arg, include options which are not user-settable." 1288With prefix arg, include variables that are not customizable options."
1289 (interactive "sCustomize regexp: \nP") 1289 (interactive "sCustomize regexp: \nP")
1290 (customize-apropos regexp (or arg 'options))) 1290 (customize-apropos regexp (or arg 'options)))
1291 1291