[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-tree-slide 9da1d00777 141/144: Allow empty date and au
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-tree-slide 9da1d00777 141/144: Allow empty date and author to save on-screen space |
Date: |
Tue, 18 Jan 2022 08:59:56 -0500 (EST) |
branch: elpa/org-tree-slide
commit 9da1d00777d848e0060b46e22f74ee1b3f4db249
Author: Jan Ypma <jan@ypmania.nl>
Commit: Jan Ypma <jan@ypmania.nl>
Allow empty date and author to save on-screen space
I tend to just put the author and date on the title page, preferring
them to be not displayed on each slide.
This commit will not use the line that's currently displaying date and
author, removing the empty "\n" if both author and date are set to empty
strings.
---
org-tree-slide.el | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/org-tree-slide.el b/org-tree-slide.el
index e035b5c008..7dbcc00bef 100644
--- a/org-tree-slide.el
+++ b/org-tree-slide.el
@@ -796,12 +796,16 @@ Some number of BLANK-LINES will be shown below the
header."
(overlay-put org-tree-slide--header-overlay 'display
(concat (if org-tree-slide-title org-tree-slide-title
(buffer-name))
- "\n"
- org-tree-slide-date " "
- (when org-tree-slide-author
- (concat org-tree-slide-author " "))
- (when org-tree-slide-email
- (concat "<" org-tree-slide-email ">"))
+
+ ;; Use one line for date and author (but only if
either of those is set)
+ (when (or org-tree-slide-date org-tree-slide-author
org-tree-slide-email)
+ "\n"
+ org-tree-slide-date " "
+ (when org-tree-slide-author
+ (concat org-tree-slide-author " "))
+ (when org-tree-slide-email
+ (concat "<" org-tree-slide-email ">")))
+
(when org-tree-slide-breadcrumbs
(concat "\n" (org-tree-slide--get-parents
org-tree-slide-breadcrumbs)))
- [nongnu] elpa/org-tree-slide 8e2ab19663 072/144: Default keymap was changed, (continued)
- [nongnu] elpa/org-tree-slide 8e2ab19663 072/144: Default keymap was changed, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 933d6dc6e5 079/144: Merge pull request #14 from bennati/display-tree-with-narrow, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide dff8f1a4a6 094/144: Added a hook for CONTENT viewing mode, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 20784de420 103/144: Update ChangeLog, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 508157fb21 104/144: Avoid max-lisp-eval-depth error #29, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide aa2140f62b 126/144: Create custom variable org-tree-slide-content-margin-top, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide c9487e51b0 133/144: Add some links to useful videos, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 27f8bb6a96 140/144: Merge branch 'master' of github.com:takaxp/org-tree-slide, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide a9dcef402a 128/144: Update the docstring of org-tree-slide-content-margin-top variable, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 917612a0d1 142/144: Merge pull request #47 from jypma/allow-empty-date-author, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 9da1d00777 141/144: Allow empty date and author to save on-screen space,
ELPA Syncer <=
- [nongnu] elpa/org-tree-slide 8c301414bb 060/144: Remove brackets in title, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 0ef103eb14 087/144: Merge pull request #19 from kaushalmodi/lighter-defvar-plus-typo-fixes, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 403f5c002e 086/144: Add a defvar for lighter and minor typo fixes, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide fed7ec7e6d 093/144: Added breadcrumbs feature (by Matus), ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 16007b48c6 108/144: Refine skipping slide algorithm, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 7bf09a02bd 114/144: Merge pull request #31 from ndw/slide-date, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide a041b92c14 115/144: Add demo, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 0fc7d31d12 120/144: Update ChangeLog, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide a8dfaf5dd4 143/144: Revert "Allow empty date and author to save on-screen space", ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide b1ba1189f1 139/144: invisible org-meta-line (see README), ELPA Syncer, 2022/01/18