(fix)autoloads: Point autoloads to org-roam.el file (#1673)

At the current state autoloads from non `org-roam.el` unable to start
loading of the package from their own file. See the following to learn
more about the problem:

  https://github.com/org-roam/org-roam/issues/1590#issuecomment-885817825

This is no more than a workaround to bandage a more deeper underlying
problem. Until the more fundamental problem won't be fixed, all autoload
cookies from non "org-roam.el" file will need to manually point to the
main entry point of the package -- "org-roam.el" file, to load it
without causing errors.

Fixes #1590, #1620, #1600 and other similar issues.
This commit is contained in:
Wetlize
2021-07-27 15:33:50 +03:00
committed by GitHub
parent 04a0fec5c1
commit de47f0a28d
7 changed files with 17 additions and 17 deletions

View File

@ -786,7 +786,7 @@ properties to be added to the template."
(_
(signal 'invalid-template template))))
;;;###autoload
;;;###autoload (autoload 'org-roam-capture- "org-roam" nil t)
(cl-defun org-roam-capture- (&key goto keys node info props templates)
"Main entry point.
GOTO and KEYS correspond to `org-capture' arguments.
@ -806,7 +806,7 @@ TEMPLATES is a list of org-roam templates."
(setq keys (caar org-capture-templates)))
(org-capture goto keys)))
;;;###autoload
;;;###autoload (autoload 'org-roam-capture "org-roam" nil t)
(defun org-roam-capture (&optional goto keys)
"Launches an `org-capture' process for a new or existing note.
This uses the templates defined at `org-roam-capture-templates'.