Ship Mints <shipmi...@gmail.com> writes: > I ran package-upgrade cherry picking org in an Emacs session that was > running for a week or so. I restarted it after package-upgrade and got the > warnings below. > > I ran package-reinstall to force it all to be recompiled and I restarted > Emacs with no warnings. I have a feeling what happened is that not every > file was recompiled and perhaps there were macro expansion or something > else that was stale. Unless there's a special step for org upgrades? Just > guesses.
Yes, it is usually stale macros. Unfortunately, Emacs cannot reliably detect macro changes and users keep running into similar issues over and over. At least, in your case, Org detected the problem, and it did not manifest itself in cryptic failures caused by mixing old and new code. The best I can suggest is installing Org mode from clean Emacs session (with minimal config). Sometimes, cleaning elpa directory helps. Not only for Org mode, but for other packages as well. > If normal ELPA update warnings/errors are more widespread, you may get more > noise from whatever this is due to. FYI, both Org and Emacs devs are trying to address this problem for the last dozen of years. But alas, it keeps appearing because library version management is simply not there in Elisp. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>