[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-remark ad0c5e39c2 09/37: refactor: org-remark-notes
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-remark ad0c5e39c2 09/37: refactor: org-remark-notes-setup |
Date: |
Sat, 14 Jan 2023 10:58:00 -0500 (EST) |
branch: externals/org-remark
commit ad0c5e39c2ee9c87bac51701bd1b74c9ee9afa1b
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
refactor: org-remark-notes-setup
Made it explictly looks for the base buffer of notes. Docs updated
accordingly.
---
org-remark.el | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/org-remark.el b/org-remark.el
index 54f899fdbb..e953481410 100644
--- a/org-remark.el
+++ b/org-remark.el
@@ -1080,12 +1080,15 @@ properties, add prefix \"*\"."
full-text)))
(defun org-remark-notes-setup (notes-buf source-buf)
- ;;; Start tracking the source buffer in the notes buffer as local variable.
- ;;; This adds variable only to the base-buffer and not to the indrect buffer.
- (with-current-buffer notes-buf
- (unless (member source-buf org-remark-notes-source-buffers)
- (cl-pushnew source-buf org-remark-notes-source-buffers)
- (add-hook 'after-save-hook #'org-remark-notes-sync-with-source nil
:local)))
+ "Set up NOTES-BUF and SOURCE-BUF for sync.
+
+Note that this function adds some local variables only to the
+base-buffer of the notes and not to the indirect buffer."
+ (let ((base-buf (or (buffer-base-buffer notes-buf) notes-buf)))
+ (with-current-buffer base-buf
+ (unless (member source-buf org-remark-notes-source-buffers)
+ (cl-pushnew source-buf org-remark-notes-source-buffers)
+ (add-hook 'after-save-hook #'org-remark-notes-sync-with-source nil
:local))))
(with-current-buffer source-buf
(setq org-remark-source-setup-done t)))
- [elpa] externals/org-remark af1d4261f3 24/37: docs: update README, (continued)
- [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
- [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 <=
- [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
- [elpa] externals/org-remark 1ec641589f 12/37: fix: undo a9a3520., ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 048a39f3f9 14/37: fix(save): modifiedp when source = notes buffer, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark dcdc39e394 22/37: fix: missing defvar org-remark-source-find-file-name-functions, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 4e7db78df3 25/37: docs: README, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark f1f3310c11 28/37: docs: README & user manual, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark a377f92e4a 32/37: Merge branch 'dev/round-off' for v1.1.0-rc (not bumped yet), ELPA Syncer, 2023/01/14