emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Bruce D'Arcus" <bdarcus@gmail.com>
To: Matt Price <moptop99@gmail.com>
Cc: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: [org-cite] issues with org-cite-make-insert-processor select-style
Date: Thu, 22 Jul 2021 09:55:04 -0400	[thread overview]
Message-ID: <CAF-FPGMXjV864Vsdm0okXp3d5uDRMXJXJm16338jB0cnJHgn1A@mail.gmail.com> (raw)
In-Reply-To: <CAN_Dec9QBpJNneawDm_gsTVgGOw7h5bCOqnhxhg71RchkUJ-Mw@mail.gmail.com>

Matt - that's not really the problem.

In general, these core org-cite functions
(org-cite-make-insert-processor and org-cite-register-processor) must
be loaded after anything they refer to; e.g. placed at the end of the
package file.

But if they aren't, the resulting error message is really confusing,
and emacs shouldn't break.

On Thu, Jul 22, 2021 at 9:27 AM Matt Price <moptop99@gmail.com> wrote:
>
> Bruce, are you loading this code with use-package? If so, and if I'm reading this right, you can perhaps add the missing functions to the
>
> :commands
>
> directive for org-mode? IIUC that should ensure that they are available to your package, as long as you have an
> :after (org oc)
> line in the package's use-package directive.
>
> On Thu, Jul 22, 2021 at 6:31 AM Bruce D'Arcus <bdarcus@gmail.com> wrote:
>>
>> The problem was load order I guess; putting this of the file fixes it.
>>
>> So when org-citemake-insert-processor is first loaded, it looks for
>> the two functions, which haven't been loaded yet.
>>
>> I still think a) the error message could say that (that the functions
>> aren't found or some such), and b) that it shouldn't break starting
>> Emacs.
>>
>> On Thu, Jul 22, 2021 at 4:27 AM Bruce D'Arcus <bdarcus@gmail.com> wrote:
>>
>> > If I comment out those lines and use the oc-basic style selector
>> > instead to start emacs, and from there reactivate this function and
>> > compile and reload the code from the buffer, THEN it works without
>> > error.
>>


      reply	other threads:[~2021-07-22 13:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-21 15:14 [org-cite] issues with org-cite-make-insert-processor select-style Bruce D'Arcus
2021-07-22  2:17 ` Bruce D'Arcus
2021-07-22  8:27   ` Bruce D'Arcus
2021-07-22 10:30     ` Bruce D'Arcus
2021-07-22 13:27       ` Matt Price
2021-07-22 13:55         ` Bruce D'Arcus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAF-FPGMXjV864Vsdm0okXp3d5uDRMXJXJm16338jB0cnJHgn1A@mail.gmail.com \
    --to=bdarcus@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=moptop99@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).