[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-remark 1878b9ddce 029/173: fix: Error narrowed sour
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-remark 1878b9ddce 029/173: fix: Error narrowed source for range |
Date: |
Fri, 28 Jan 2022 16:57:56 -0500 (EST) |
branch: externals/org-remark
commit 1878b9ddce339f1a1d270ef70d66ca7e336eb919
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
fix: Error narrowed source for range
Error when the source file is narrowed, and has a marker in the invisible
part. Calling (buffer-substring-no-properties beg end) because the range was
out of range. Fixes by widening with `org-with-wide-buffer` -- as it is a
macro that uses only built-in function, it should work with non-Org source
files.
---
org-marginalia.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/org-marginalia.el b/org-marginalia.el
index e9aa8b4b48..745c0c6ceb 100644
--- a/org-marginalia.el
+++ b/org-marginalia.el
@@ -5,7 +5,7 @@
;; Author: Noboru Ota <me@nobiot.com>
;; URL: https://github.com/nobiot/org-marginalia
;; Version: 0.0.3
-;; Last modified: 2020-12-23T181303
+;; Last modified: 2020-12-24T140044
;; Package-Requires: ((emacs "27.1") (org "9.4"))
;; Keywords: org-mode, annotation, writing, note-taking, margin-notes
@@ -421,7 +421,8 @@ creat a new headline at the end of the buffer."
(let* ((pos (cdr highlight))
(beg (marker-position (car pos)))
(end (marker-position (cdr pos)))
- (text (buffer-substring-no-properties beg end)))
+ ;;`org-with-wide-buffer is a macro that should work for non-Org file'
+ (text (org-with-wide-buffer (buffer-substring-no-properties beg
end))))
;; TODO Want to add a check if save is applicable here.
(with-current-buffer (find-file-noselect om/notes-file-path)
(org-with-wide-buffer
- [elpa] externals/org-remark 697a990a34 158/173: revert f6c3f36 The screen jerking was not OS or version; setup issue, (continued)
- [elpa] externals/org-remark 697a990a34 158/173: revert f6c3f36 The screen jerking was not OS or version; setup issue, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 5e55f8757d 159/173: chg: menu squence; docs: add menu and context menu to user manual, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 0db912919a 163/173: docs: update Makefile, README and user manual, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 82a4afbee0 169/173: add: delete with confirmation promt etc., ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark a1ff9033c1 170/173: add: org-remark-delete, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark dc162bc8ec 172/173: fix: window management for open and remove/delete, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 91d7583495 065/173: add: mark deactivate-mark & set-buffer-modified-p, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark bd01afe043 068/173: add tracking: customizing subgroup, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 0e2a215c40 079/173: readme, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark bc051adab9 022/173: doc: Add some clarification to readme, etc., ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 1878b9ddce 029/173: fix: Error narrowed source for range,
ELPA Syncer <=
- [elpa] externals/org-remark 310b79efc5 033/173: doc: Add a limitatino of moving files, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 6bfac5368e 036/173: intrnl: Add eval org-marginalia-mode to file var, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 067681278f 038/173: fix: next/prev was reversed, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark b595c74a06 045/173: doc: Update docstring for the sort fn, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 9e2341a51f 049/173: [doc] fix code example, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 1ac1f2555b 050/173: Update README.org, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark e6bf242649 058/173: fix: Add highlighter face def for termianl, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 0dd01e91ec 060/173: fix: org-id-uuid is not found, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 1ce0a7dc31 061/173: add: org-marginalia-remove can take C-u to delete, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark e4927186ef 063/173: feat: global auto-tracking, ELPA Syncer, 2022/01/28