[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-remark a2fcae8d5b 03/67: refactor(mark): save notes
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-remark a2fcae8d5b 03/67: refactor(mark): save notes buf only when create/change |
Date: |
Sat, 22 Jul 2023 06:58:59 -0400 (EDT) |
branch: externals/org-remark
commit a2fcae8d5b23240d5b8b7c71ec4122f326fcb3bc
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
refactor(mark): save notes buf only when create/change
---
org-remark.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/org-remark.el b/org-remark.el
index 2802a18d70..f5ab1718be 100644
--- a/org-remark.el
+++ b/org-remark.el
@@ -762,15 +762,15 @@ round-trip back to the notes file."
(unless (overlay-get ov 'help-echo)
(overlay-put ov 'help-echo (plist-get notes-props :body)))
(overlay-put ov '*org-remark-note-body
- (plist-get notes-props :body)))))
+ (plist-get notes-props :body)))
+ ;; Save the notes buffer when not loading
+ (let ((notes-buf (find-file-noselect
(org-remark-notes-get-file-name))))
+ (unless (eq notes-buf (current-buffer))
+ (with-current-buffer notes-buf (save-buffer))))))
(deactivate-mark)
(org-remark-highlights-housekeep)
(org-remark-highlights-sort)
(setq org-remark-source-setup-done t)
- ;; Save the notes buffer
- (let ((notes-buf (find-file-noselect (org-remark-notes-get-file-name))))
- (unless (eq notes-buf (current-buffer))
- (with-current-buffer notes-buf (save-buffer))))
;; Return overlay
ov)))
- [elpa] externals/org-remark updated (41a615c9f8 -> 498354ace4), ELPA Syncer, 2023/07/22
- [elpa] externals/org-remark 08a197604c 01/67: org-noter, nov epub-reader support initial stage., ELPA Syncer, 2023/07/22
- [elpa] externals/org-remark 85bbee122f 02/67: feat: add a new file for nov.el support (WIP) #49, ELPA Syncer, 2023/07/22
- [elpa] externals/org-remark 883d0018fe 08/67: fix(save): source-setup-done needs to be done in source, ELPA Syncer, 2023/07/22
- [elpa] externals/org-remark 02f2ca5c7c 12/67: fix: Text cut off if the highlight spans across two lines #56, ELPA Syncer, 2023/07/22
- [elpa] externals/org-remark a2fcae8d5b 03/67: refactor(mark): save notes buf only when create/change,
ELPA Syncer <=
- [elpa] externals/org-remark b2e0b37247 04/67: refactor(save): -highlight-save function, ELPA Syncer, 2023/07/22
- [elpa] externals/org-remark 3f71f58603 05/67: feat: dynamic notes headline level - WIP with test code, ELPA Syncer, 2023/07/22
- [elpa] externals/org-remark b2d2d432dd 06/67: feat(save): per-mode options for -notes-create-entry-functions WIP, ELPA Syncer, 2023/07/22
- [elpa] externals/org-remark 8e067b1813 11/67: refactor(save): -highlight-save -> -highlight-add, ELPA Syncer, 2023/07/22
- [elpa] externals/org-remark 3c25682d1d 14/67: fix: typo in regression issue, ELPA Syncer, 2023/07/22
- [elpa] externals/org-remark 97c5f1c8e0 15/67: fix: missing defvar org-remark-source-find-file-name-functions, ELPA Syncer, 2023/07/22
- [elpa] externals/org-remark ba8e3433e0 18/67: feat: test/find-nov-file-buffer, ELPA Syncer, 2023/07/22
- [elpa] externals/org-remark 9f95c8a6f9 22/67: refactor: adjust-positions and sync, ELPA Syncer, 2023/07/22
- [elpa] externals/org-remark 7bf6359fae 23/67: refactor: remove org-remark-notes-update-source, ELPA Syncer, 2023/07/22
- [elpa] externals/org-remark 5bd790cf3c 27/67: docs: docstring, ELPA Syncer, 2023/07/22