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

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

[elpa] externals/org-remark f21ab48aad 62/67: refactor: simple name repl


From: ELPA Syncer
Subject: [elpa] externals/org-remark f21ab48aad 62/67: refactor: simple name replace org-remark-get-epub-source
Date: Sat, 22 Jul 2023 06:59:04 -0400 (EDT)

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

    refactor: simple name replace org-remark-get-epub-source
    
    Replace org-remark with org-remark-nov in the
    org-remark-nov-get-epub-source.
---
 org-remark-nov.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/org-remark-nov.el b/org-remark-nov.el
index ec2f7072e6..e20b6088d1 100644
--- a/org-remark-nov.el
+++ b/org-remark-nov.el
@@ -2,7 +2,7 @@
 
 ;; URL: https://github.com/nobiot/org-remark
 ;; Created: 9 January 2023
-;; Last modified: 14 July 2023
+;; Last modified: 16 July 2023
 
 ;;; Commentary:
 
@@ -26,7 +26,7 @@
       ;; Enable
       (progn
         (add-hook 'org-remark-source-find-file-name-functions
-                  #'org-remark-get-epub-source)
+                  #'org-remark-nov-get-epub-source)
         (add-hook 'org-remark-highlight-link-to-source-functions
                   #'org-remark-nov-link)
         ;; When users turn the page (document in nov-mode's terminology)
@@ -38,7 +38,7 @@
         (add-hook 'nov-post-html-render-hook #'org-remark-highlights-load))
     ;; Disable
     (remove-hook 'org-remark-source-find-file-name-functions
-                 #'org-remark-get-epub-source)
+                 #'org-remark-nov-get-epub-source)
     (remove-hook 'org-remark-highlight-link-to-source-functions
                  #'org-remark-nov-link)
     (remove-hook 'nov-post-html-render-hook #'org-remark-highlights-load)))
@@ -70,7 +70,7 @@ This method is for `nov-mode' MAJOR-MODE."
       (setq filename (expand-file-name filename (file-name-directory 
nov-file-name))))
     filename))
 
-(defun org-remark-get-epub-source ()
+(defun org-remark-nov-get-epub-source ()
   "Return the path of the epub source from which the present session is 
initiated."
   (when (eq major-mode 'nov-mode)
     (concat
@@ -108,7 +108,7 @@ Return the value in a alist like this:
                       "org-remark-nov-file"))
          (headline-2 (list
                       ;; SOURCE-FILENAME-FN
-                      #'org-remark-get-epub-source
+                      #'org-remark-nov-get-epub-source
                       ;; TITLE-FN
                       #'org-remark-nov-get-epub-document-title
                       ;; PROP-TO-FIND



reply via email to

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