[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dslide e4beb23e57 002/230: Match breadcrumb separator to t
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dslide e4beb23e57 002/230: Match breadcrumb separator to text properties from previous heading |
Date: |
Sun, 7 Jul 2024 19:00:06 -0400 (EDT) |
branch: elpa/dslide
commit e4beb23e57bb14ff9ba4e614867596aa19a49559
Author: Psionik K <73710933+psionic-k@users.noreply.github.com>
Commit: Psionik K <73710933+psionic-k@users.noreply.github.com>
Match breadcrumb separator to text properties from previous heading
---
org-tree-slide.el | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/org-tree-slide.el b/org-tree-slide.el
index 3a2d69efdf..16df67fa54 100644
--- a/org-tree-slide.el
+++ b/org-tree-slide.el
@@ -827,19 +827,28 @@ concat the headers."
"Face for `org-tree-slide--header-overlay'."
:group 'org-tree-slide)
+(defun org-tree-slide--breadcrumbs-reducer (delim)
+ (lambda (prev next)
+ (if (not prev) next
+ (let ((props (text-properties-at (1- (length prev)) prev)))
+ (concat prev
+ (apply #'propertize delim props)
+ next)))))
+
(defun org-tree-slide--get-parents (&optional delim)
"Get parent headings and concat them with DELIM."
(setq delim (or delim " > "))
(save-excursion
(save-restriction
(widen)
- (let ((parents nil))
+ (let ((parents nil)
+ (reducer (org-tree-slide--breadcrumbs-reducer delim)))
(while (org-up-heading-safe)
(push (org-get-heading
'no-tags
org-tree-slide-breadcrumbs-hide-todo-state)
parents))
- (mapconcat 'identity parents delim)))))
+ (seq-reduce reducer parents nil)))))
(defun org-tree-slide--set-slide-header (blank-lines)
"Set the header with overlay.
- [nongnu] elpa/dslide 1c92fef5e6 004/230: Add an overriding face to the breadcrumbs, (continued)
- [nongnu] elpa/dslide 1c92fef5e6 004/230: Add an overriding face to the breadcrumbs, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 50e2a8ca37 009/230: use before-string instead of display for header, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide c00b3ac258 017/230: rearrangement, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 1b67456311 013/230: rearrangement, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide e8ccef6575 014/230: rearrangement, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 94357940d8 029/230: Actions track their own headings, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide dd8fe96b10 033/230: Buffer slide -> Push steps, global presentation, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 66215639a5 047/230: Image action displays inline images in its init method, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 27e87a7c6d 003/230: Option to not show author and title in header even when present, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide f8aa534207 001/230: Fix compiler warnings. Obsolete functions, too long comment, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide e4beb23e57 002/230: Match breadcrumb separator to text properties from previous heading,
ELPA Syncer <=
- [nongnu] elpa/dslide 597ed25aa2 022/230: hook cleanup, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 7fbe8db983 005/230: compiler warning, unused variable, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide cb31e38633 041/230: push-restriction uses markers, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 1766661399 037/230: comments & whitespace, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 14e4d670f3 045/230: !ugly Support arguments from heading properties =D, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 645c555272 036/230: minor fixes and no-effect changes, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 57838970e8 059/230: Debug feedback when slides change, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 23cbefa7b8 053/230: clean up begin marker during slide finalization, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide ca778812bf 077/230: Start at beginning of heading to implement end, ELPA Syncer, 2024/07/07
- [nongnu] elpa/dslide 1fb1a599b7 074/230: Ensure buffer before running forward and backward commands, ELPA Syncer, 2024/07/07