bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#27581: 26.0.50; Error while compiling new Org code


From: Stefan Kangas
Subject: bug#27581: 26.0.50; Error while compiling new Org code
Date: Mon, 10 Aug 2020 10:09:36 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

>> I think I hit this, and doing 'make autoloads' fixed it.
>
> Duh, indeed, so the `declare-function` should be removed.
> Remains my question about the use of eval-after-load.

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

> So it's triggered during the evaluation of org-compat.el's after-load:
>
>     (eval-after-load 'org
>       '(progn
>          (org-link-set-parameters "file+emacs") ;since Org 9.0
>          (org-link-set-parameters "file+sys"))) ;since Org 9.0
>
> There's a (declare-function org-element-update-syntax ...) in org.el but
> it looks like org-element is not loaded in this case.
>
> Not sure which is the right fix, but I do wonder why have this
> eval-after-load in org-compat.el instead of simply moving the code to
> org.el: eval-after-load is normally only used when we need to add code
> to a file that's not under our control.

I can't find that eval-after-load in org-compat.el, so I guess this has
been fixed in the three years since this was reported.

I guess this should be closed then?

Best regards,
Stefan Kangas





reply via email to

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