[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-transclusion b06e6c93d3 1/5: fix:add:line-beginning
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-transclusion b06e6c93d3 1/5: fix:add:line-beginning-position |
Date: |
Sat, 8 Jan 2022 15:57:41 -0500 (EST) |
branch: externals/org-transclusion
commit b06e6c93d3ce3055a5a6095b5bd3fddc5e29333c
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
fix:add:line-beginning-position
Within add, the beginning of position for the begining of transcluded
content
inserted is determined by where the point is at the time of calling the add
function. This can be anywhere in the \#+transclude line. This should be
standardized to the beginning of the line. Otherwise, the text-prop may not
be
added to the text-props for indent-mode, or the correct begin may not be
passed
to the after-add-hook, which is to be added here.
---
org-transclusion.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/org-transclusion.el b/org-transclusion.el
index fcbdd9fda9..260c46521f 100644
--- a/org-transclusion.el
+++ b/org-transclusion.el
@@ -17,7 +17,7 @@
;; Author: Noboru Ota <me@nobiot.com>
;; Created: 10 October 2020
-;; Last modified: 06 January 2022
+;; Last modified: 07 January 2022
;; URL: https://github.com/nobiot/org-transclusion
;; Keywords: org-mode, transclusion, writing
@@ -428,7 +428,7 @@ does not support all the elements.
"No content found with \"%s\". Check the link at point %d,
line %d"
(org-element-property :raw-link link) (point)
(org-current-line))
nil))
- (let ((beg (point))
+ (let ((beg (line-beginning-position))
(end))
(org-transclusion-with-inhibit-read-only
(when (save-excursion