mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-05 07:01:11 -08:00
(internal-set-face-1): When calling x-list-fonts, ask for just one match.
This commit is contained in:
parent
fa9e8864b4
commit
abd89b8031
1 changed files with 1 additions and 1 deletions
|
|
@ -675,7 +675,7 @@ also the same size as FACE on FRAME, or fail."
|
|||
(setq frame nil))
|
||||
(if pattern
|
||||
;; Note that x-list-fonts has code to handle a face with nil as its font.
|
||||
(let ((fonts (x-list-fonts pattern face frame)))
|
||||
(let ((fonts (x-list-fonts pattern face frame 1)))
|
||||
(or fonts
|
||||
(if face
|
||||
(if (string-match "\\*" pattern)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue