Don't list the default hi-lock faces twice in the future history
* lisp/hi-lock.el (hi-lock-read-face-name): Don't include faces twice in the defaults (bug#19877).
This commit is contained in:
parent
8f16b1aef1
commit
ee87c2f8ca
1 changed files with 5 additions and 3 deletions
|
@ -723,9 +723,11 @@ with completion and history."
|
|||
(when hi-lock-interactive-patterns
|
||||
(face-name (hi-lock-keyword->face
|
||||
(car hi-lock-interactive-patterns)))))
|
||||
(defaults (append hi-lock--unused-faces
|
||||
(cdr (member last-used-face hi-lock-face-defaults))
|
||||
hi-lock-face-defaults))
|
||||
(defaults (seq-uniq
|
||||
(append hi-lock--unused-faces
|
||||
(cdr (member last-used-face hi-lock-face-defaults))
|
||||
hi-lock-face-defaults)
|
||||
#'equal))
|
||||
face)
|
||||
(if (and hi-lock-auto-select-face (not current-prefix-arg))
|
||||
(setq face (or (pop hi-lock--unused-faces) (car defaults)))
|
||||
|
|
Loading…
Add table
Reference in a new issue