[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-remark 75d8fd3c9d 19/37: refactor(mark): save notes
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-remark 75d8fd3c9d 19/37: refactor(mark): save notes buf only when create/change |
Date: |
Sat, 14 Jan 2023 10:58:01 -0500 (EST) |
branch: externals/org-remark
commit 75d8fd3c9d653873aa0a45870e123f7889459d91
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 (af99b97204 -> f603ad6769), ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 837b25d3d7 01/37: refactor: -highlight-* functions, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 0912cbb0af 04/37: fix: incorrect beg end of a highlight, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark ac09890168 02/37: refactor -notes-* functions, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 754f7c1915 11/37: fix: deleted highlight overlay blocking saving multiple highlights, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 75d8fd3c9d 19/37: refactor(mark): save notes buf only when create/change,
ELPA Syncer <=
- [elpa] externals/org-remark ed5f4314e8 05/37: refactor(sync): remove org-remark-notes-setup-done, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark eb7c4ebf59 10/37: docs: doc string, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark e4ba2bbd41 18/37: chore: copyright years to 2023, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 7367b7d056 20/37: fix: Text cut off in notes if the highlight spans across two lines #56, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark af1d4261f3 24/37: docs: update README, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 05e18aa08c 30/37: docs: README + user manual, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 3d4ff2e030 03/37: doc: update docstring, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 484d36ad89 06/37: docs(sync): doc string 'org-remark-highlight-save', ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark a9a3520a64 07/37: refactor(save) save notes buffer for each highlight, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 2f25bd97bc 15/37: refactor: change the default colors of yellow pen #52, ELPA Syncer, 2023/01/14