我想做的 elisp 相当于
<font color="red">normal<b>bold</b></font>
我试过了
(propertize (concat "normal"
(propertize "bold" 'font-lock-face
'(:weight bold)))
'font-lock-face '(:foreground "red"))
然而,“红色”属性覆盖了“粗体”属性,我最终得到
#("normalbold" 0 6
(font-lock-face
(:foreground "red"))
6 10
(font-lock-face
(:foreground "red")))
可行吗?
谢谢!