[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-remark c6941579e3 09/16: refactor(nov): nov can def
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-remark c6941579e3 09/16: refactor(nov): nov can defer loading org-remark |
Date: |
Sat, 29 Jul 2023 18:58:48 -0400 (EDT) |
branch: externals/org-remark
commit c6941579e36a35a6deff8b911c77970afc424a82
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
refactor(nov): nov can defer loading org-remark
Function `org-remark-highlights-load` has the autoload token; refactored
`org-remark-nov` to not to require the entire `org-remark`, which also
pulls the entire org.
This way, only the light-weight `org-remark-global-tracking` can be
loaded, deferring bootstrapping org-remark and org to when they are
really needed.
---
org-remark-nov.el | 7 +++++--
org-remark.el | 1 +
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/org-remark-nov.el b/org-remark-nov.el
index e20b6088d1..8c28047d0b 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: 16 July 2023
+;; Last modified: 21 July 2023
;;; Commentary:
@@ -10,7 +10,10 @@
(if (locate-library "nov") (require 'nov)
(error "Org-remark: package `nov' is missing"))
-(require 'org-remark)
+(require 'org-remark-global-tracking)
+(declare-function org-remark-highlights-load "org-remark")
+(declare-function org-store-link "org")
+(defvar org-remark-prop-source-file)
;; To silence flymake
(defvar nov-file-name)
(defvar nov-documents)
diff --git a/org-remark.el b/org-remark.el
index e1c217a5e5..9ef4e51127 100644
--- a/org-remark.el
+++ b/org-remark.el
@@ -1350,6 +1350,7 @@ highlight is a property list in the following properties:
highlights)))))
highlights))))))
+;;;###autoload
(defun org-remark-highlights-load (&optional update)
"Visit notes file & load the saved highlights onto current buffer.
If there is no highlights or annotations for current buffer,
- [elpa] externals/org-remark 430066da54 03/16: fix: headline-add, (continued)
- [elpa] externals/org-remark 430066da54 03/16: fix: headline-add, ELPA Syncer, 2023/07/29
- [elpa] externals/org-remark 05d280b5fa 05/16: fix(legacy): compilation warning #66, ELPA Syncer, 2023/07/29
- [elpa] externals/org-remark ef14f4e600 02/16: Merge branch 'dev/nov.el' into dev/1.2.0, ELPA Syncer, 2023/07/29
- [elpa] externals/org-remark 6333938f12 11/16: feat: Allow function to render icons, ELPA Syncer, 2023/07/29
- [elpa] externals/org-remark efe2c4d504 13/16: refactor: logic to add an icon, ELPA Syncer, 2023/07/29
- [elpa] externals/org-remark 346fe9cf69 15/16: refactor: separate org-remark-icon into its own feature/file, ELPA Syncer, 2023/07/29
- [elpa] externals/org-remark ec693af64a 01/16: feat: org-remark-info-mode to support Info-mode #65, ELPA Syncer, 2023/07/29
- [elpa] externals/org-remark 87404b78d3 14/16: Merge branch 'main' into dev/1.2.0, ELPA Syncer, 2023/07/29
- [elpa] externals/org-remark b44092e6cf 06/16: style: make org-remark-highlight-save obsolete and add alias, ELPA Syncer, 2023/07/29
- [elpa] externals/org-remark a0624e2ebc 04/16: fix: make sure new top-level headline is appended, ELPA Syncer, 2023/07/29
- [elpa] externals/org-remark c6941579e3 09/16: refactor(nov): nov can defer loading org-remark,
ELPA Syncer <=
- [elpa] externals/org-remark 6ef0b47bd2 12/16: fix: revert-buffer duplicates highlights, ELPA Syncer, 2023/07/29
- [elpa] externals/org-remark c701d9ceaa 07/16: style: silence compiler warning, ELPA Syncer, 2023/07/29
- [elpa] externals/org-remark 8ae3c426e0 08/16: fix: default highlighter color for dark theme, ELPA Syncer, 2023/07/29
- [elpa] externals/org-remark 0e05580760 10/16: feat(info): Advice to support rendering Info nodes in same buffer, ELPA Syncer, 2023/07/29
- [elpa] externals/org-remark d73c72cfc3 16/16: docs(info): Add copyright and commentary to source header, ELPA Syncer, 2023/07/29