emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/org-contrib fefdeb5498 1/2: lisp/ox-bibtex.el: Move `decla


From: ELPA Syncer
Subject: [nongnu] elpa/org-contrib fefdeb5498 1/2: lisp/ox-bibtex.el: Move `declare-function' inside the caller
Date: Wed, 31 Jan 2024 07:00:57 -0500 (EST)

branch: elpa/org-contrib
commit fefdeb5498673949cebe443045c440ca2c9bc43a
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    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
---
 lisp/ox-bibtex.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ox-bibtex.el b/lisp/ox-bibtex.el
index 8cdf390cf2..412062bb1b 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]