emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Max Nikulin <manikulin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Fwd: errors when using org-agenda
Date: Wed, 27 Oct 2021 23:46:59 +0700	[thread overview]
Message-ID: <slbvqa$qom$1@ciao.gmane.io> (raw)
In-Reply-To: <8735oqvn0y.fsf@localhost>

On 24/10/2021 15:34, Ihor Radchenko wrote:
> Max Nikulin writes:
> 
>> `org-version' with FULL argument checks whether org and org-loaddedfs
>> are loaded from the same directory and adds "mixed installation!" to the
>> version string. `org-submit-bug-report' puts full version to the message
>> subject but it is easily to miss this warning since it is in the middle
>> of the long string.
> 
> Yes, but unfortunately it does not handle early Org loading correctly.
> 
> Try the following init.el:
> 
> (require 'org)
> (add-to-list 'load-path (expand-file-name "/path/to/newest/org-mode/lisp"))
> 
> Then run emacs -Q -l /path/to/init.el
> 
> M-x org-version does not report anything suspicious even though
> M-x org-mode will error on current main because old 'org is trying to
> load files from the new load-path.

You are right, `org-version' can not catch such case. However 
improvements of mixed install detection should be incorporated into 
`org-submit-bug-report'. I would not mind to have more prominent warning 
in the message body, maybe even with the link to the FAQ entry.

> +          (loaded-features (seq-filter
> +			    (lambda (f) (memq (alist-get 'provide f)
> +				         org-feature-list))
> +                            load-history))

Some time ago I found `featurep' function, so I am curious if there are 
reasons why it should not be used here.

If earlier loaded org modules is a problem during update and compiling 
of new sources, couldn't it be solved by `eval-when-compile'? E.g. by 
new `org-require' macro that wraps `require' and checks that the file is 
loaded from the same directory (e.g. org-loaddefs, the required file, 
and the compiled file)? The idea is that such code should not depend on 
particular package manager.



  reply	other threads:[~2021-10-27 17:11 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-22 20:35 errors when using org-agenda William McCoy
2021-10-23  0:46 ` Fwd: " William McCoy
2021-10-23  1:57   ` Tim Cross
2021-10-23 10:26     ` Greg Minshall
2021-10-23 11:34       ` Tim Cross
2021-10-23 18:07         ` Greg Minshall
2021-10-23 18:21           ` Tim Cross
2021-10-24  0:45             ` Thomas S. Dye
2021-10-24  5:05         ` Greg Minshall
2021-10-24  6:44           ` Tim Cross
2021-10-24 10:55             ` Greg Minshall
2021-10-24  5:12         ` [PATCH] " Ihor Radchenko
2021-10-24  6:59           ` Tim Cross
2021-10-24  8:16       ` Max Nikulin
2021-10-24  8:34         ` Ihor Radchenko
2021-10-27 16:46           ` Max Nikulin [this message]
2022-09-11  9:22             ` Ihor Radchenko
2021-10-23 14:49     ` William McCoy

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='slbvqa$qom$1@ciao.gmane.io' \
    --to=manikulin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).