[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/engrave-faces 5089660a60: Normalise single-plist text p
From: |
ELPA Syncer |
Subject: |
[elpa] externals/engrave-faces 5089660a60: Normalise single-plist text property form |
Date: |
Fri, 9 Dec 2022 12:57:38 -0500 (EST) |
branch: externals/engrave-faces
commit 5089660a6060ad99eab76aa0a31ee937a456f9b2
Author: TEC <git@tecosaur.net>
Commit: TEC <git@tecosaur.net>
Normalise single-plist text property form
When trying engrave-faces in an Org buffer I noticed that sometimes it
seems a single plist can be returned, e.g. (:inherit org-block). This is
problematic as the processing method requires a list where each list
item is a text property form, which does not hold true in this case.
We can correct for this by checking to see if the obtained text-property
has the form (:keyword ...), and if so wrap it in a list.
---
engrave-faces.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/engrave-faces.el b/engrave-faces.el
index 4b0cfbc86b..bced9a2b68 100644
--- a/engrave-faces.el
+++ b/engrave-faces.el
@@ -295,6 +295,8 @@ If a POSTPROCESSOR function is provided, it is called
before saving."
;; property take a value (quote X)?
((and (listp prop) (eq (car prop) 'quote))
(eval prop t))
+ ((and (consp prop) (keywordp (car prop)))
+ (list prop))
(t prop)))
text)
engraved-buf))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/engrave-faces 5089660a60: Normalise single-plist text property form,
ELPA Syncer <=