Function: hsys-org-id-find-advice

hsys-org-id-find-advice is a byte-compiled function defined in hsys-org.el.

Signature

(hsys-org-id-find-advice &rest _)

Documentation

Remove the org-roam advice from org-id-find if present.

If org-roam is loaded and has advised org-id-find with the function org-roam-id-find but Emacs does not have the sqlite module, then any call to org-id-find will fail. This :before advice function fixes this by removing the org-roam advice from org-id-find.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hsys-org.el
(defun hsys-org-id-find-advice (&rest _)
  "Remove the `org-roam' advice from `org-id-find' if present.
If `org-roam' is loaded and has advised `org-id-find' with the function
`org-roam-id-find' but Emacs does not have the `sqlite' module, then any
call to `org-id-find' will fail.  This :before advice function fixes this by
removing the `org-roam' advice from `org-id-find'."
  (when (and (fboundp 'org-roam-id-find)
             (not (hypb:sqlite-p))
             (hypb:advised-p 'org-id-find 'org-roam-id-find))
    (advice-remove #'org-id-find #'org-roam-id-find)))