[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-remark 379e5423c1: fix: killing the main buffer whe
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-remark 379e5423c1: fix: killing the main buffer when no indirect buffer created yet |
Date: |
Tue, 1 Feb 2022 06:02:16 -0500 (EST) |
branch: externals/org-remark
commit 379e5423c15481e13af5642a0d16e302c396a1c5
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
fix: killing the main buffer when no indirect buffer created yet
---
org-remark.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/org-remark.el b/org-remark.el
index 2eeb0187cc..f5dd654143 100644
--- a/org-remark.el
+++ b/org-remark.el
@@ -6,7 +6,7 @@
;; URL: https://github.com/nobiot/org-remark
;; Version: 0.2.0
;; Created: 22 December 2020
-;; Last modified: 31 January 2022
+;; Last modified: 01 February 2022
;; Package-Requires: ((emacs "27.1") (org "9.4"))
;; Keywords: org-mode, annotation, writing, note-taking, marginal-notes
@@ -843,13 +843,14 @@ It's a cloned indirect buffer of a buffer visiting the
margina
notes file of the current buffer. This function ensures there is
only one of the marginal notes buffer per session."
;; Compare the target marginal notes buffer and current marginal notes
buffer.
- ;; The latter needs to be transcluded to the base buffer of an indirect
- ;; buffer.
+ ;; For the latter, we need the base buffer of an indirect buffer.
(let ((cbuf (find-file-noselect (org-remark-notes-get-file-path)))
(ibuf (when (buffer-live-p org-remark-last-notes-buffer)
org-remark-last-notes-buffer)))
(unless (eq (buffer-base-buffer ibuf) cbuf)
- (kill-buffer ibuf)
+ ;; fix issue of killing the main buffer when there is no indirect buffer
+ ;; created yet
+ (when ibuf (kill-buffer ibuf))
(setq ibuf (make-indirect-buffer cbuf org-remark-notes-buffer-name
:clone)))
;; set the variable and return the indirect buffer
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/org-remark 379e5423c1: fix: killing the main buffer when no indirect buffer created yet,
ELPA Syncer <=