[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [nongnu] elpa/org-contrib eaef050f28: lisp/ox-bibtex.el (org-bibtex-
From: |
Stefan Monnier |
Subject: |
Re: [nongnu] elpa/org-contrib eaef050f28: lisp/ox-bibtex.el (org-bibtex-goto-citation): Add missing require |
Date: |
Tue, 30 Jan 2024 16:41:05 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Ihor Radchenko [2024-01-30 18:59:59] wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>> I am wondering if byte-compiler can somehow detect such scenarios and
>>> throw a warning.
>>
>> In theory, if you "fix" the code as I suggested and call `obe-citations`
>> from outside of `org-bibtex-goto-citation`., the byte-compiler could
>> emit a warning. Is that what you mean?
>
> I mean an opposite: if `declare-function' is called globally, but the
> actual function is only called by a single function in the file, emit
> warning.
I see. Not sure it would be very useful: the issue is not "it's only
used here" but "it's only *available* here" (because of the
`require`).
Stefan