emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org-remark eaa9dc77da: fix: after-revert-hook is wrongl


From: ELPA Syncer
Subject: [elpa] externals/org-remark eaa9dc77da: fix: after-revert-hook is wrongly set as global (#74)
Date: Sat, 30 Dec 2023 12:58:16 -0500 (EST)

branch: externals/org-remark
commit eaa9dc77da0b281ec568324019140d27ca190dd3
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>

    fix: after-revert-hook is wrongly set as global (#74)
    
    Function `org-remark-highlights-load' is set to `after-revert-hook'.
    Before this fix, it was wrongly set as a global hook. This caused the
    hook to call the function wrongly for buffers that do not have
    `org-remark-mode` enabled -- it is a local minor mode.
---
 org-remark.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/org-remark.el b/org-remark.el
index da560c7173..1c3e4ba9f6 100644
--- a/org-remark.el
+++ b/org-remark.el
@@ -6,7 +6,7 @@
 ;; URL: https://github.com/nobiot/org-remark
 ;; Version: 1.2.1
 ;; Created: 22 December 2020
-;; Last modified: 07 October 2023
+;; Last modified: 30 December 2023
 ;; Package-Requires: ((emacs "27.1") (org "9.4"))
 ;; Keywords: org-mode, annotation, note-taking, marginal-notes, wp,
 
@@ -366,7 +366,7 @@ recommended to turn it on as part of Emacs initialization.
       (add-hook 'after-save-hook #'org-remark-save nil :local)
       (add-hook 'org-remark-highlight-link-to-source-functions
                 #'org-remark-highlight-link-to-source-default 80)
-      (add-hook 'after-revert-hook #'org-remark-highlights-load :local)
+      (add-hook 'after-revert-hook #'org-remark-highlights-load 80 :local)
       (add-hook 'clone-buffer-hook #'org-remark-highlights-load 80 :local))
      (t
       ;; Deactivate



reply via email to

[Prev in Thread] Current Thread [Next in Thread]