mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
(internal): add org-roam-message
(#593)
This macro simplifies message printing, so we can respect `org-roam-verbose` in more places. Also silences more messages when `org-roam-verbose` set to false.
This commit is contained in:
@ -44,6 +44,7 @@
|
||||
;; Library Requires
|
||||
(require 'cl-lib)
|
||||
(require 'org)
|
||||
(require 'org-roam-macs)
|
||||
(require 'org-element)
|
||||
|
||||
(declare-function org-roam-insert "org-roam")
|
||||
@ -51,6 +52,8 @@
|
||||
(declare-function org-roam--list-all-files "org-roam")
|
||||
(declare-function org-roam--org-roam-file-p "org-roam")
|
||||
|
||||
(defvar org-roam-verbose)
|
||||
|
||||
(cl-defstruct (org-roam-doctor-checker (:copier nil))
|
||||
(name 'missing-checker-name)
|
||||
(description "")
|
||||
@ -118,7 +121,7 @@ CHECKERS is the list of checkers used."
|
||||
|
||||
(defun org-roam-doctor--skip ()
|
||||
"Skip the current error."
|
||||
(message "Skipping..."))
|
||||
(org-roam-message "Skipping..."))
|
||||
|
||||
(defun org-roam-doctor--replace-link ()
|
||||
"Replace the current link with a new link."
|
||||
@ -218,7 +221,7 @@ If CHECKALL, run the check only for all Org-roam files."
|
||||
(unless (memq buf existing-buffers)
|
||||
(save-buffer buf)
|
||||
(kill-buffer buf))))))
|
||||
(message "Linting completed."))
|
||||
(org-roam-message "Linting completed."))
|
||||
|
||||
(provide 'org-roam-doctor)
|
||||
|
||||
|
Reference in New Issue
Block a user