lisp/faces.el (read-face-name): Bug fix, return just one face if arg multiple is nil

This commit is contained in:
Roland Winkler 2013-04-20 12:33:52 -05:00
parent bcd7a0a4c5
commit d7f5c16f47
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2013-04-20 Roland Winkler <winkler@gnu.org>
* faces.el (read-face-name): Bug fix, return just one face if arg
multiple is nil. (Bug#14209)
2013-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/nadvice.el (advice--where-alist): Add :override.

View file

@ -979,9 +979,8 @@ if the user entered more than one face name, return only the first one."
;; (for example, because DEFAULT was "all faces")
(if (facep face) (push (intern face) faces)))
;; Return either a list of faces or just one face.
(if multiple
(nreverse faces)
(last faces))))
(setq faces (nreverse faces))
(if multiple faces (car faces))))
;; Not defined without X, but behind window-system test.
(defvar x-bitmap-file-path)