summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIhor Radchenko <yantar92@posteo.net>2024-01-30 16:20:04 +0100
committerIhor Radchenko <yantar92@posteo.net>2024-01-30 16:20:04 +0100
commitfefdeb5498673949cebe443045c440ca2c9bc43a (patch)
tree855a1d7b954b1bec4277102258915a14b9f3a25b
parenteaef050f28944638510d133788ddbecb8087feaf (diff)
lisp/ox-bibtex.el: Move `declare-function' inside the caller
* lisp/ox-bibtex.el (org-bibtex-goto-citation): `declare-function' is only meaningful withing the scope of `org-bibtex-goto-citation', not for the whole ox-bibtex.el. Link: https://yhetil.org/emacs-devel/jwvwmrratcn.fsf-monnier+emacs@gnu.org/T/#u
-rw-r--r--lisp/ox-bibtex.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ox-bibtex.el b/lisp/ox-bibtex.el
index 8cdf390..412062b 100644
--- a/lisp/ox-bibtex.el
+++ b/lisp/ox-bibtex.el
@@ -157,10 +157,10 @@ to `org-bibtex-citation-p' predicate."
(defvar org-bibtex-file nil
"Org file of BibTeX entries.")
-(declare-function obe-citations "org-bibtex-extras" ())
(defun org-bibtex-goto-citation (&optional citation)
"Visit a citation given its ID."
(interactive)
+ (declare-function obe-citations "org-bibtex-extras" ())
(require 'org-bibtex-extras)
(let ((citation (or citation (completing-read "Citation: " (obe-citations)))))
(find-file (or org-bibtex-file