* [org-cite] autoload oc processors?
@ 2021-11-28 21:59 Bruce D'Arcus
2021-11-28 22:19 ` Nicolas Goaziou
0 siblings, 1 reply; 7+ messages in thread
From: Bruce D'Arcus @ 2021-11-28 21:59 UTC (permalink / raw)
To: org-mode-email
[-- Attachment #1: Type: text/plain, Size: 59 bytes --]
Is there any reason not to autoload the processors?
Bruce
[-- Attachment #2: Type: text/html, Size: 127 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [org-cite] autoload oc processors?
2021-11-28 21:59 [org-cite] autoload oc processors? Bruce D'Arcus
@ 2021-11-28 22:19 ` Nicolas Goaziou
2021-11-29 13:36 ` Bruce D'Arcus
0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2021-11-28 22:19 UTC (permalink / raw)
To: Bruce D'Arcus; +Cc: org-mode-email
Hello,
"Bruce D'Arcus" <bdarcus@gmail.com> writes:
> Is there any reason not to autoload the processors?
I am not sure about what you mean. Could you elaborate?
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [org-cite] autoload oc processors?
2021-11-28 22:19 ` Nicolas Goaziou
@ 2021-11-29 13:36 ` Bruce D'Arcus
2021-11-29 19:04 ` Timothy
2021-11-29 22:08 ` Nicolas Goaziou
0 siblings, 2 replies; 7+ messages in thread
From: Bruce D'Arcus @ 2021-11-29 13:36 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: org-mode-email
On Sun, Nov 28, 2021 at 5:19 PM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
>
> Hello,
>
> "Bruce D'Arcus" <bdarcus@gmail.com> writes:
>
> > Is there any reason not to autoload the processors?
>
> I am not sure about what you mean. Could you elaborate?
Primarily I am asking if there's a way to load the processor as needed
without a user explicitly having to do so.
I probably don't understand autoloading very well, but was thinking of
something like this:
;;;###autoload
(org-cite-register-processor 'oc-natbib ...
Bruce
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [org-cite] autoload oc processors?
2021-11-29 13:36 ` Bruce D'Arcus
@ 2021-11-29 19:04 ` Timothy
2021-11-29 22:48 ` Nicolas Goaziou
2021-11-29 22:08 ` Nicolas Goaziou
1 sibling, 1 reply; 7+ messages in thread
From: Timothy @ 2021-11-29 19:04 UTC (permalink / raw)
To: Bruce D'Arcus; +Cc: emacs-orgmode, Nicolas Goaziou
[-- Attachment #1: Type: text/plain, Size: 925 bytes --]
Hi Bruce,
> Primarily I am asking if there’s a way to load the processor as needed
> without a user explicitly having to do so.
This is actually a thought that occurred to me recently, and I’ve been
considering bringing up on the ML. Thanks for mentioning this.
A more sophisticated solution probably exists, but my thought was that if a cite
export keyword like this is seen:
┌────
│ #+cite_export: FORMAT ...
└────
and there is no known cite backend `FORMAT', then we could just try running
┌────
│ (require 'oc-FORMAT nil t)
└────
before complaining that there’s no cite backend FORMAT loaded.
This relies on consistent naming, but since that seems to hold pretty well so
far and failure to load just results in the current behaviour, I’m inclined to
think this would be a good change in terms of user experience.
All the best,
Timothy
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [org-cite] autoload oc processors?
2021-11-29 19:04 ` Timothy
@ 2021-11-29 22:48 ` Nicolas Goaziou
2021-11-30 9:56 ` Denis Maier
0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2021-11-29 22:48 UTC (permalink / raw)
To: Timothy; +Cc: emacs-orgmode, Bruce D'Arcus
Hello,
Timothy <tecosaur@gmail.com> writes:
> A more sophisticated solution probably exists, but my thought was that if a cite
> export keyword like this is seen:
> ┌────
> │ #+cite_export: FORMAT ...
> └────
>
> and there is no known cite backend `FORMAT', then we could just try running
> ┌────
> │ (require 'oc-FORMAT nil t)
> └────
>
> before complaining that there’s no cite backend FORMAT loaded.
>
> This relies on consistent naming, but since that seems to hold pretty well so
> far and failure to load just results in the current behaviour, I’m inclined to
> think this would be a good change in terms of user experience.
OK. I implemented this on main branch. We'll see how it goes.
Thanks.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [org-cite] autoload oc processors?
2021-11-29 22:48 ` Nicolas Goaziou
@ 2021-11-30 9:56 ` Denis Maier
0 siblings, 0 replies; 7+ messages in thread
From: Denis Maier @ 2021-11-30 9:56 UTC (permalink / raw)
To: Nicolas Goaziou, Timothy; +Cc: emacs-orgmode, Bruce D'Arcus
Am 29.11.2021 um 23:48 schrieb Nicolas Goaziou:
> Hello,
>
> Timothy <tecosaur@gmail.com> writes:
>
>> A more sophisticated solution probably exists, but my thought was that if a cite
>> export keyword like this is seen:
>> ┌────
>> │ #+cite_export: FORMAT ...
>> └────
>>
>> and there is no known cite backend `FORMAT', then we could just try running
>> ┌────
>> │ (require 'oc-FORMAT nil t)
>> └────
>>
>> before complaining that there’s no cite backend FORMAT loaded.
>>
>> This relies on consistent naming, but since that seems to hold pretty well so
>> far and failure to load just results in the current behaviour, I’m inclined to
>> think this would be a good change in terms of user experience.
>
> OK. I implemented this on main branch. We'll see how it goes.
>
Thanks, that sounds like a good change!
Best,
Denis
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [org-cite] autoload oc processors?
2021-11-29 13:36 ` Bruce D'Arcus
2021-11-29 19:04 ` Timothy
@ 2021-11-29 22:08 ` Nicolas Goaziou
1 sibling, 0 replies; 7+ messages in thread
From: Nicolas Goaziou @ 2021-11-29 22:08 UTC (permalink / raw)
To: Bruce D'Arcus; +Cc: org-mode-email
Hello,
"Bruce D'Arcus" <bdarcus@gmail.com> writes:
> I probably don't understand autoloading very well, but was thinking of
> something like this:
>
> ;;;###autoload
> (org-cite-register-processor 'oc-natbib ...
IIUC, this would register `natibib' processor for everyone whenever Org
is loaded. This may not be what you have in mind.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-11-30 9:56 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-28 21:59 [org-cite] autoload oc processors? Bruce D'Arcus
2021-11-28 22:19 ` Nicolas Goaziou
2021-11-29 13:36 ` Bruce D'Arcus
2021-11-29 19:04 ` Timothy
2021-11-29 22:48 ` Nicolas Goaziou
2021-11-30 9:56 ` Denis Maier
2021-11-29 22:08 ` Nicolas Goaziou
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).