[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-remark 4b5d9c3fda 171/173: fix:delete quit window i
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-remark 4b5d9c3fda 171/173: fix:delete quit window if it did not exist on calling delete |
Date: |
Fri, 28 Jan 2022 16:58:13 -0500 (EST) |
branch: externals/org-remark
commit 4b5d9c3fda624c73aef7bd557be17b989d06db59
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
fix:delete quit window if it did not exist on calling delete
---
org-remark.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/org-remark.el b/org-remark.el
index 313eb85cc9..6ab1d09289 100644
--- a/org-remark.el
+++ b/org-remark.el
@@ -807,7 +807,7 @@ notes of the entry.
Return t if an entry is removed or deleted."
(let* ((ibuf (org-remark-notes-buffer-get-or-create))
- (ibuf-window (get-buffer-window ibuf)))
+ (window? (get-buffer-window ibuf)))
(with-current-buffer ibuf
(org-with-wide-buffer
(when-let ((id-headline (org-find-property org-remark-prop-id id)))
@@ -832,10 +832,11 @@ Do you really want to delete the notes?"))
;; If there is no content, it's OK
t))
(delete-region (point-min)(point-max))
- (message "Deleted the marginal notes entry")))))
+ (message "Deleted the marginal notes entry")
;; Quit the marginal notes indirect buffer if it was not there
;; before the delete -- go back to the original state.
- ;;(unless ibuf-window (quit-window nil (get-buffer-window
ibuf)))))))
+ (when-let (ibuf-window (get-buffer-window ibuf))
+ (unless window? (quit-window nil ibuf-window )))))))
(when (buffer-modified-p) (save-buffer)))
t))
- [elpa] externals/org-remark 0c7fd2d711 143/173: docs: README for Org-remark, update user manual and css, (continued)
- [elpa] externals/org-remark 0c7fd2d711 143/173: docs: README for Org-remark, update user manual and css, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 1b2db44fa7 145/173: docs: user manaul, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 69d0259e20 146/173: docs: user manaul, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 62cba0ec63 148/173: fix: change now updates the marginal notes, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark f43e4afc34 152/173: add: toggle to menu; intrnl: refactor, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark f353630ddd 153/173: fix:toggle: marking when toggle hidden confuses the state, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark da77d9dfba 154/173: fix: pen menu function for 27.x, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 4782d43f0f 155/173: add: change to menu items, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 713f64b7cb 168/173: docs: minor change to the demo/marginalia.org, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 7226f4d01e 173/173: docs: add delete; add help string to menu items, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 4b5d9c3fda 171/173: fix:delete quit window if it did not exist on calling delete,
ELPA Syncer <=
- [elpa] externals/org-remark 9deaecd211 116/173: add: Legacy data facility wtih org-remark-tracking, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark d36debe2b4 124/173: add: factor out org-remark-legacy-convert, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark f30ad4f570 122/173: fix: program error in save, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark b9a8409e27 126/173: docs: copyright & dates, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark e3dd998e6b 130/173: add: register the default pen function for change, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 9f492e184e 111/173: fix side-window, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 238a023021 141/173: docs: gh-html error, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark bbd5c4795e 144/173: docs: user manual, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark c6dccc3878 161/173: intrnl:create macro: check label to be a string, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark a55d0b7717 165/173: docs: README and user manaul, ELPA Syncer, 2022/01/28