diff options
author | Roland Winkler <winkler@gnu.org> | 2013-04-12 20:10:09 -0500 |
---|---|---|
committer | Roland Winkler <winkler@gnu.org> | 2013-04-12 20:10:09 -0500 |
commit | 011cddd649d81956ce13b9325b059dac78e61c4d (patch) | |
tree | 885af8748b9a77e0ec7ad220ac3969337f15fd67 /lisp/cus-theme.el | |
parent | 562c6ee9450073547ae45e88116cfc213c2254e0 (diff) | |
download | emacs-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.el | 2 |
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))) |