Make tracking faces in Emacs work more reliably
* lisp/erc/erc-track.el (erc-faces-in): Always return lists of faces to avoid later ambiguity (bug#22424). Copyright-paperwork-exempt: Yes
This commit is contained in:
parent
af6ab7efc7
commit
d93d2c5b16
1 changed files with 2 additions and 1 deletions
|
@ -971,7 +971,8 @@ is in `erc-mode'."
|
|||
"Return a list of all faces used in STR."
|
||||
(let ((i 0)
|
||||
(m (length str))
|
||||
(faces (erc-list (get-text-property 0 'face str)))
|
||||
(faces (let ((face1 (get-text-property 0 'face str)))
|
||||
(when face1 (list face1))))
|
||||
cur)
|
||||
(while (and (setq i (next-single-property-change i 'face str m))
|
||||
(not (= i m)))
|
||||
|
|
Loading…
Add table
Reference in a new issue