[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dslide 6d9ebfb79a 08/16: clean up propertize action for sh
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dslide 6d9ebfb79a 08/16: clean up propertize action for showing off |
Date: |
Mon, 25 Nov 2024 01:00:02 -0500 (EST) |
branch: elpa/dslide
commit 6d9ebfb79a89cdd2a9e3015a51edbde00f4d81fd
Author: Psionik K <73710933+psionic-k@users.noreply.github.com>
Commit: Psionik K <73710933+psionic-k@users.noreply.github.com>
clean up propertize action for showing off
first draft was not something I would want others to emulate
---
dslide.el | 30 +++++++++++++-----------------
1 file changed, 13 insertions(+), 17 deletions(-)
diff --git a/dslide.el b/dslide.el
index 27d4076cab..f71916787d 100644
--- a/dslide.el
+++ b/dslide.el
@@ -1292,24 +1292,20 @@ for `dslide-contents-map'.")
(cl-defmethod dslide-begin ((obj dslide-action-propertize))
(dslide-section-map
- obj t
+ obj t ; t for all types
(lambda (e)
- (when-let ((props (org-element-property
- :attr_dslide_propertize e)))
- (let ((overlay (make-overlay (org-element-property :post-affiliated e)
- (1- (org-element-property :end e))))
- (props (car props)) ; TODO multi-value support
- (offset 0))
- (while offset
- (let* ((prop (ignore-error end-of-file
- (read-from-string props offset)))
- (value (ignore-error end-of-file
- (read-from-string props (cdr prop)))))
- (if (and prop value)
- (progn (overlay-put overlay (car prop) (car value))
- (setq offset (cdr value)))
- (setq offset nil))))
- (push overlay dslide-overlays))))))
+ (when-let ((keywords (org-element-property :attr_dslide_propertize e))
+ (overlay (make-overlay (org-element-property :post-affiliated
e)
+ (1- (org-element-property :end e)))))
+ (while-let ((keyword (pop keywords))
+ (offset 0))
+ (while-let ((prop (ignore-error end-of-file
+ (read-from-string keyword offset)))
+ (value (ignore-error end-of-file
+ (read-from-string keyword (cdr prop)))))
+ (overlay-put overlay (car prop) (car value))
+ (setq offset (cdr value))))
+ (push overlay dslide-overlays)))))
(cl-defmethod dslide-end ((obj dslide-action-propertize))
(dslide-begin obj))
- [nongnu] elpa/dslide updated (552e63c6ac -> 0d9a1f6c27), ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 513b1109fb 06/16: Get rid of erroneous step padding in simple slide images, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 8b4336db4d 02/16: use the current slide's filter, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 6d9ebfb79a 08/16: clean up propertize action for showing off,
ELPA Syncer <=
- [nongnu] elpa/dslide f59c85784c 11/16: Aha! image-keyword interplay fixed, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 10b1386cf4 03/16: Hide the newline after each affiliated keyword, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide d2217bc74f 07/16: Quick fix for TODO and tag hiding in contents, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 91652de16a 15/16: Bug fix for reverse-in-place (!), ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 7949a5f337 09/16: Hiding filtered headings needs to collapse display completely, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide ad7f189032 10/16: reverse action list when going backwards or starting at the end, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 0e027e0527 04/16: Clip newline from text property action overlay region, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 1aa45a2223 05/16: Only cleanup overlays in finish, only for this slide, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 0d9a1f6c27 16/16: Release 0.5.5, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 0c5b00b4ec 01/16: line noise, ELPA Syncer, 2024/11/25