summaryrefslogtreecommitdiff
path: root/lisp/cus-theme.el
diff options
context:
space:
mode:
authorRoland Winkler <winkler@gnu.org>2013-04-12 20:10:09 -0500
committerRoland Winkler <winkler@gnu.org>2013-04-12 20:10:09 -0500
commit011cddd649d81956ce13b9325b059dac78e61c4d (patch)
tree885af8748b9a77e0ec7ad220ac3969337f15fd67 /lisp/cus-theme.el
parent562c6ee9450073547ae45e88116cfc213c2254e0 (diff)
downloademacs-011cddd649d81956ce13b9325b059dac78e61c4d.tar.gz
faces.el (read-face-name): Do not override value of arg default, call instead face-at-point
Diffstat (limited to 'lisp/cus-theme.el')
-rw-r--r--lisp/cus-theme.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/cus-theme.el b/lisp/cus-theme.el
index cc1046eddc5..dbe4fa42d8e 100644
--- a/lisp/cus-theme.el
+++ b/lisp/cus-theme.el
@@ -263,7 +263,7 @@ interactively, this defaults to the current value of VAR."
(defun custom-theme-add-face (face &optional spec)
"Add a widget for FACE (a symbol) to the *New Custom Theme* buffer.
SPEC, if non-nil, should be a face spec to which to set the widget."
- (interactive (list (read-face-name "Face name" nil nil) nil))
+ (interactive (list (read-face-name "Face name" (face-at-point t))))
(unless (or (facep face) spec)
(error "`%s' has no face definition" face))
(let ((entry (assq face custom-theme-faces)))