[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-remark a9a3520a64 07/37: refactor(save) save notes
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-remark a9a3520a64 07/37: refactor(save) save notes buffer for each highlight |
Date: |
Sat, 14 Jan 2023 10:58:00 -0500 (EST) |
branch: externals/org-remark
commit a9a3520a646dff84c7729315ff9c7de22fdb3474
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
refactor(save) save notes buffer for each highlight
This was removed in the course of refactoring for sync. Now the
behaviour of highlight-save is back to be the same as before in order
not to surprise users.
---
org-remark.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/org-remark.el b/org-remark.el
index ae7a39d659..b9e6d56f8e 100644
--- a/org-remark.el
+++ b/org-remark.el
@@ -904,6 +904,9 @@ buffer for automatic sync."
(when (and orgid org-remark-use-org-id)
(insert (concat "[[id:" orgid "]" "[" title "]]"))))
(setq notes-props (list :body (org-remark-notes-get-body)))))
+ ;; Save the notes buf to file unless source and notes buffers are
+ ;; the same.
+ (unless (eq notes-buf source-buf) (save-buffer))
notes-props)))
(defun org-remark-highlight-load (highlight)
@@ -953,7 +956,6 @@ Assume the current buffer is the source buffer."
;; or directly with the base buffer. For automatic sync
;; functionality, Org-remark interacts directly with the base buffer.
-
(defun org-remark-notes-remove (id &optional delete)
"Remove the note entry for highlight ID.
By default, it deletes only the properties of the entry keeping
- [elpa] externals/org-remark 754f7c1915 11/37: fix: deleted highlight overlay blocking saving multiple highlights, (continued)
- [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, 2023/01/14
- [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 <=
- [elpa] externals/org-remark 2f25bd97bc 15/37: refactor: change the default colors of yellow pen #52, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark f08df3f524 17/37: fix: prop name _org-remark-note-body -> *org-remark-note-body, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark f661e6c78e 21/37: docs: updated NEWS, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 59b01a827c 27/37: docs: README, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 6cd69b44d2 08/37: docs: corrected based on flymake and checkdoc, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark ad0c5e39c2 09/37: refactor: org-remark-notes-setup, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark a89d5a9645 13/37: fix(save): save per highlight and regession for when source = notes, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 8004555a9b 16/37: fix: highlights housekeep to delete notes when you want to keep, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark f48992594d 26/37: docs: CHANGELOG, NEWS, README, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 4c4d729962 36/37: docs: fix formatting issue of known limitations in user manual, ELPA Syncer, 2023/01/14