1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-05-30 17:22:17 -07:00

; htmlfontify: Handle 'reset' face attribute value (bug#81032)

* lisp/htmlfontify.el (hfy-face-to-style-i): Add special
handling for the 'reset' face attribute value.
This commit is contained in:
Eshel Yaron 2026-05-14 17:07:30 +02:00
parent d0d657fa90
commit 20500d6200
No known key found for this signature in database
GPG key ID: EF3EE9CA35D78618

View file

@ -1000,6 +1000,12 @@ to be merged by the user - `hfy-flatten-style' should do this."
parent
(hfy-face-to-style-i
(hfy-face-attr-for-class v hfy-display-class))))))
;; The special value `reset' stands for the value of the
;; corresponding attribute (KEY) of the default face.
(when (eq val 'reset)
(setq val (plist-get
(hfy-face-attr-for-class 'default hfy-display-class)
key)))
(setq this
(if val (cl-case key
(:family (hfy-family val))