summaryrefslogtreecommitdiff
path: root/lisp/cus-edit.el
diff options
context:
space:
mode:
authorNoam Postavsky <npostavs@gmail.com>2016-06-25 13:12:11 -0400
committerNoam Postavsky <npostavs@gmail.com>2016-06-25 13:12:11 -0400
commitf2536958ec711b50a0cf8714defb921193ea8ae4 (patch)
treef576342fb42a489bd1683669e3ae01bf59fe12ef /lisp/cus-edit.el
parent4395aaacd4195d3a5cca9df66cfea13380414a37 (diff)
downloademacs-f2536958ec711b50a0cf8714defb921193ea8ae4.tar.gz
Update docs for `customize-mode'
* lisp/cus-edit.el (customize-mode): This function works with both major and minor modes, make docstring and prompt reflect that (Bug #23649). * doc/lispref/modes.texi (Derived Modes): Remove note about customize-mode being experimental; it has been around since Emacs 22 (Bug #11299). Co-authored-by: Drew Adams <drew.adams@oracle.com>
Diffstat (limited to 'lisp/cus-edit.el')
-rw-r--r--lisp/cus-edit.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index d7db3530099..7826506cc46 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -1072,9 +1072,10 @@ are shown; the contents of those subgroups are initially hidden."
;;;###autoload
(defun customize-mode (mode)
- "Customize options related to the current major mode.
-If a prefix \\[universal-argument] was given (or if the current major mode has no known group),
-then prompt for the MODE to customize."
+ "Customize options related to a major or minor mode.
+By default the current major mode is used. With a prefix
+argument or if the current major mode has no known group, prompt
+for the MODE to customize."
(interactive
(list
(let ((completion-regexp-list '("-mode\\'"))
@@ -1083,8 +1084,8 @@ then prompt for the MODE to customize."
major-mode
(intern
(completing-read (if group
- (format "Major mode (default %s): " major-mode)
- "Major mode: ")
+ (format "Mode (default %s): " major-mode)
+ "Mode: ")
obarray
'custom-group-of-mode
t nil nil (if group (symbol-name major-mode))))))))