[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-transclusion dcc0a6ddd8 15/18: Merge branch 'pr214'
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/org-transclusion dcc0a6ddd8 15/18: Merge branch 'pr214' |
|
Date: |
Sun, 21 Jan 2024 15:58:43 -0500 (EST) |
branch: externals/org-transclusion
commit dcc0a6ddd8de593ce7067c19ab1104e64d99cdc6
Merge: f49e6b5098 3f461e3624
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
Merge branch 'pr214'
---
org-transclusion.el | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/org-transclusion.el b/org-transclusion.el
index 3f189c6d16..61a149032a 100644
--- a/org-transclusion.el
+++ b/org-transclusion.el
@@ -1331,15 +1331,15 @@ changes, the logic in this function will need to
reviewed."
m))
(defun org-transclusion-search-or-add-next-empty-line ()
- "Search the next empty line.
-Start with the next line. If the current line is the bottom of
-the line, add a new empty line."
- ;; beginning-of-line 2 moves to the next line if possible
- (beginning-of-line 2)
- (if (eobp)(insert "\n")
- (while (not (looking-at-p "[ \t]*$"))
- (beginning-of-line 2))
- (if (eobp)(insert "\n"))))
+ "Move point to the next empty line.
+If no empty line exists before the next org heading or the end of
+the buffer, stop there and add a newline."
+ (forward-line)
+ (while (not (looking-at-p "^[ \t]*$"))
+ (if (or (org-at-heading-p) (eobp))
+ (progn (insert "\n")
+ (backward-char))
+ (forward-line))))
(defun org-transclusion-wrap-path-to-link (path)
"Return Org link object for PATH string."
- [elpa] externals/org-transclusion a609eb0e36 02/18: fix: Don't ever prompt to create a headline when transcluding, (continued)
- [elpa] externals/org-transclusion a609eb0e36 02/18: fix: Don't ever prompt to create a headline when transcluding, ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion 4628e81909 05/18: refactor: Simplify org-transclusion-search-or-add-next-empty-line, ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion 3f461e3624 06/18: chg: Don't move past org headings when adding transclusion links, ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion cb96247d78 07/18: chg: Allow making transclusion links from any protocol link, ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion 01dfc13a57 09/18: Fix typos in docstrings and comments, ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion e1c68d113d 08/18: Use org-export-before-processing-functions if available, ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion 92b91d02c5 03/18: style: Use and instead of if in org-transclusion-content-org-link, ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion eb29beb1a2 10/18: copyright 2024, ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion da4576da34 11/18: test: minor change, ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion 3024fe5716 13/18: Merge branch 'pr211', ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion dcc0a6ddd8 15/18: Merge branch 'pr214',
ELPA Syncer <=
- [elpa] externals/org-transclusion 18b81641e6 01/18: docs: Update docstring for org-transclusion-with-inhibit-read-only, ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion e65cd19167 18/18: admin: copyright 2024, ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion 2d9290554e 12/18: Merge branch 'pr210', ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion f49e6b5098 14/18: Merge branch 'pr209', ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion ac0c46c004 16/18: Merge branch 'pr216', ELPA Syncer, 2024/01/21
- [elpa] externals/org-transclusion b93eaadd05 17/18: Merge branch 'pr213', ELPA Syncer, 2024/01/21