Skip to content

Commit

Permalink
fix: Don't message about already compiled functions
Browse files Browse the repository at this point in the history
  • Loading branch information
meedstrom committed Aug 24, 2024
1 parent 18b47e2 commit 1b98f21
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions org-node-fakeroam.el
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,22 @@ defer compiling org-node-fakeroam.el until runtime after ensuring
that org-roam is available."
(if (not (require 'org-roam nil t))
(user-error "Install org-roam to use org-node-fakeroam library")
;; NOTE: Do not native-compile, it would be a slow init every time
(mapc #'byte-compile
'(org-node-fakeroam--run-without-fontifying
org-node-fakeroam--accelerate-get-contents
org-node-fakeroam--mk-node
org-node-fakeroam--mk-backlinks
org-node-fakeroam--mk-reflinks
org-node-fakeroam--db-update-files
org-node-fakeroam--db-add-file-level-data
org-node-fakeroam--db-add-node
org-node-fakeroam-db-rebuild
org-node-fakeroam-list-files
org-node-fakeroam-list-dailies
org-node-fakeroam-daily-note-p
org-node-fakeroam-daily-create))))
(dolist (fn '(org-node-fakeroam--run-without-fontifying
org-node-fakeroam--accelerate-get-contents
org-node-fakeroam--mk-node
org-node-fakeroam--mk-backlinks
org-node-fakeroam--mk-reflinks
org-node-fakeroam--db-update-files
org-node-fakeroam--db-add-file-level-data
org-node-fakeroam--db-add-node
org-node-fakeroam-db-rebuild
org-node-fakeroam-list-files
org-node-fakeroam-list-dailies
org-node-fakeroam-daily-note-p
org-node-fakeroam-daily-create))
(unless (compiled-function-p (symbol-function fn))
;; NOTE: Do not native-compile, it would be a slow init every time
(byte-compile fn)))))

;;;###autoload
(define-minor-mode org-node-fakeroam-redisplay-mode
Expand Down

0 comments on commit 1b98f21

Please sign in to comment.