[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-remark 57bd3ab847 078/173: add: tracking-save to lo
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-remark 57bd3ab847 078/173: add: tracking-save to local kill-buffer-hook |
Date: |
Fri, 28 Jan 2022 16:58:03 -0500 (EST) |
branch: externals/org-remark
commit 57bd3ab8472941474303c8dfe766b518b47eea91
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
add: tracking-save to local kill-buffer-hook
---
org-marginalia.el | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/org-marginalia.el b/org-marginalia.el
index 39c6a785cc..aea9fd3ca0 100644
--- a/org-marginalia.el
+++ b/org-marginalia.el
@@ -253,7 +253,8 @@ the mode, `toggle' toggles the state.
(org-marginalia-mode
;; Activate
(org-marginalia-load)
- (add-hook 'after-save-hook #'org-marginalia-save nil t))
+ (add-hook 'after-save-hook #'org-marginalia-save nil t)
+ (add-hook 'kill-buffer-hook #'org-marginalia-tracking-save nil t))
(t
;; Deactivate
(when org-marginalia-highlights
@@ -261,7 +262,8 @@ the mode, `toggle' toggles the state.
(delete-overlay highlight)))
(setq org-marginalia-highlights nil)
(setq org-marginalia-loaded nil)
- (remove-hook 'after-save-hook #'org-marginalia-save t))))
+ (remove-hook 'after-save-hook #'org-marginalia-save t)
+ (remove-hook 'kill-buffer-hook #'org-marginalia-tracking-save t))))
;;;###autoload
(defun org-marginalia-mark (beg end &optional id)
@@ -678,6 +680,8 @@ notes of the entry."
(defun org-marginalia-housekeep ()
"Housekeep the internal variable `org-marginalia-highlights'.
+This is a private function; housekeep is automatically done on
+save.
Case 1. Both start and end of an overlay are identical
@@ -689,8 +693,6 @@ Case 2. The overlay points to no buffer
This case happens when overlay is deleted by
`overlay-delete' but the variable not cleared."
-
- (interactive)
(dolist (ov org-marginalia-highlights)
;; Both start and end of an overlay are indentical; this should not happen
;; when you manually mark a text region. A typical cause of this case is
- [elpa] externals/org-remark b595c74a06 045/173: doc: Update docstring for the sort fn, (continued)
- [elpa] externals/org-remark b595c74a06 045/173: doc: Update docstring for the sort fn, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 9e2341a51f 049/173: [doc] fix code example, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 1ac1f2555b 050/173: Update README.org, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark e6bf242649 058/173: fix: Add highlighter face def for termianl, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 0dd01e91ec 060/173: fix: org-id-uuid is not found, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 1ce0a7dc31 061/173: add: org-marginalia-remove can take C-u to delete, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark e4927186ef 063/173: feat: global auto-tracking, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark b62c6b3de4 072/173: readme, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 6b0bbad4b3 070/173: feat: link with org-id (WIP), ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark a9acfcd106 077/173: doc: README for 0.0.6, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 57bd3ab847 078/173: add: tracking-save to local kill-buffer-hook,
ELPA Syncer <=
- [elpa] externals/org-remark c1adffe077 082/173: docs: 0.0.6 docs, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 60cbbc4e99 083/173: Merge dev/0.0.6-revise, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 2d11de2ec2 085/173: docs: README, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 3037be5ebc 087/173: docs: update README with global-tracking-mode, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark b988d580d8 090/173: add: Create pen to have different colors, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 02d7b56265 088/173: fix: tracking does not save for the first file, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 7242c83d8f 094/173: copyright year, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark f988330790 091/173: add: make-pen props work as intended, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark bdbde4eda8 093/173: refactor: macro to make different pen, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark b3a8e3e2ec 097/173: add: Org-HANA: Org to Highlight & ANnotate Any text file (HANA), ELPA Syncer, 2022/01/28