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

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

[elpa] externals/org-remark dcdc39e394 22/37: fix: missing defvar org-re


From: ELPA Syncer
Subject: [elpa] externals/org-remark dcdc39e394 22/37: fix: missing defvar org-remark-source-find-file-name-functions
Date: Sat, 14 Jan 2023 10:58:02 -0500 (EST)

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

    fix: missing defvar org-remark-source-find-file-name-functions
    
    Thanks to GitHub user @sati-bodhi in #54
    
    This part of contirubtion is less than 15 lines of code, which does not
    require FSF copyright assignment.
---
 org-remark-eww.el             |  4 ++--
 org-remark-global-tracking.el | 12 +++++++++++-
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/org-remark-eww.el b/org-remark-eww.el
index 1dde594380..3e94593de4 100644
--- a/org-remark-eww.el
+++ b/org-remark-eww.el
@@ -6,7 +6,7 @@
 ;;          Noboru Ota <me@nobiot.com>
 ;; URL: https://github.com/nobiot/org-remark
 ;; Created: 23 December 2022
-;; Last modified: 10 January 2023
+;; Last modified: 11 January 2023
 ;; Package-Requires: ((emacs "27.1") (org "9.4"))
 ;; Keywords: org-mode, annotation, note-taking, marginal-notes, wp
 
@@ -35,7 +35,7 @@
 ;;; Code:
 
 (require 'eww)
-(declare-function org-remark-auto-on "org-remark-global-tracking")
+(require 'org-remark-global-tracking)
 
 ;;;###autoload
 (define-minor-mode org-remark-eww-mode
diff --git a/org-remark-global-tracking.el b/org-remark-global-tracking.el
index ffc58243ac..a7dbc63978 100644
--- a/org-remark-global-tracking.el
+++ b/org-remark-global-tracking.el
@@ -5,7 +5,7 @@
 ;; Author: Noboru Ota <me@nobiot.com>
 ;; URL: https://github.com/nobiot/org-remark
 ;; Created: 15 August 2021
-;; Last modified: 10 January 2023
+;; Last modified: 11 January 2023
 ;; Package-Requires: ((emacs "27.1") (org "9.4"))
 ;; Keywords: org-mode, annotation, note-taking, marginal-notes, wp
 
@@ -61,6 +61,16 @@ Each one is called with FILENAME as an argument."
   :group 'org-remark
   :type '(repeat function))
 
+(defvar org-remark-source-find-file-name-functions nil
+  "List of functions to get the source file name.
+It is an abnormal hook run with no argument and each function
+must return a file-name-equvalent as a string that uniquely
+identifies the source.  The hook is run when `buffer-file-name`
+in source buffer returns nil, meaning the source buffer is not
+visiting a file.
+
+Meant to be set by extensions such as `org-remark-eww'")
+
 ;;;###autoload
 (define-minor-mode org-remark-global-tracking-mode
   "Automatically activates local minor mode `org-remark-mode'.



reply via email to

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