unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#38399: Recent $EMACSLOADPATH changes break emacs-org
@ 2019-11-27 10:00 Diego Nicola Barbato
  2019-11-28  5:11 ` Maxim Cournoyer
  0 siblings, 1 reply; 4+ messages in thread
From: Diego Nicola Barbato @ 2019-11-27 10:00 UTC (permalink / raw)
  To: 38399

Hi Guix,

Since the recent changes to the way Guix handles Emacs packages Emacs
loads the wrong ‘org’ (the one bundled with Emacs instead of the one
provided by the ‘emacs-org’ package installed with Guix).  This happens
because in EMACSLOADPATH the directory containing the bundled ‘org’
precedes the directory containing the ‘org’ provided by ‘emacs-org’.

It stands to reason that the elisp libraries provided by Emacs itself
shouldn’t be in EMACSLOADPATH in the first place as they are already in
‘load-path’ to which the directories in EMACSLOADPATH are prepended (as
described in the Emacs manual).

I’m currently on commit 116787d.

Regards,

Diego

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#38399: Recent $EMACSLOADPATH changes break emacs-org
  2019-11-27 10:00 bug#38399: Recent $EMACSLOADPATH changes break emacs-org Diego Nicola Barbato
@ 2019-11-28  5:11 ` Maxim Cournoyer
  2019-11-28 14:25   ` Diego Nicola Barbato
  0 siblings, 1 reply; 4+ messages in thread
From: Maxim Cournoyer @ 2019-11-28  5:11 UTC (permalink / raw)
  To: Diego Nicola Barbato; +Cc: 38399

Hello Diego,

Diego Nicola Barbato <dnbarbato@posteo.de> writes:

> Hi Guix,
>
> Since the recent changes to the way Guix handles Emacs packages Emacs
> loads the wrong ‘org’ (the one bundled with Emacs instead of the one
> provided by the ‘emacs-org’ package installed with Guix).  This happens
> because in EMACSLOADPATH the directory containing the bundled ‘org’
> precedes the directory containing the ‘org’ provided by ‘emacs-org’.

Thanks for the report!

> It stands to reason that the elisp libraries provided by Emacs itself
> shouldn’t be in EMACSLOADPATH in the first place as they are already in
> ‘load-path’ to which the directories in EMACSLOADPATH are prepended (as
> described in the Emacs manual).

That's not true; when using EMACSLOADPATH the Emacs' bundled libraries
must be included explicitly, or an empty item be present (which means,
an extra ':' present).

See (elisp)Library Search:

        An empty element in the value of the environment variable,
    whether trailing (as in the above example), leading, or embedded, is
    replaced by the default value of ‘load-path’ as determined by the
    standard initialization procedure.  If there are no such empty
    elements, then ‘EMACSLOADPATH’ specifies the entire ‘load-path’.
    You must include either an empty element, or the explicit path to
    the directory containing the standard Lisp files, else Emacs will
    not function.

That said, the search path specification defined in our Emacs packages
should be reordered so that a user profile appears first (before Emacs
bundled libraries).

I'll address this as part of bug #38309 (see:
https://bugs.gnu.org/38309).  I'm planning to have it merged in a few
days at most.

Thanks!

Maxim

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#38399: Recent $EMACSLOADPATH changes break emacs-org
  2019-11-28  5:11 ` Maxim Cournoyer
@ 2019-11-28 14:25   ` Diego Nicola Barbato
  2019-12-07  4:32     ` Maxim Cournoyer
  0 siblings, 1 reply; 4+ messages in thread
From: Diego Nicola Barbato @ 2019-11-28 14:25 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: 38399

Hello Maxim,

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

[...]

>> It stands to reason that the elisp libraries provided by Emacs itself
>> shouldn’t be in EMACSLOADPATH in the first place as they are already in
>> ‘load-path’ to which the directories in EMACSLOADPATH are prepended (as
>> described in the Emacs manual).
>
> That's not true; when using EMACSLOADPATH the Emacs' bundled libraries
> must be included explicitly, or an empty item be present (which means,
> an extra ':' present).
>
> See (elisp)Library Search:
>
>         An empty element in the value of the environment variable,
>     whether trailing (as in the above example), leading, or embedded, is
>     replaced by the default value of ‘load-path’ as determined by the
>     standard initialization procedure.  If there are no such empty
>     elements, then ‘EMACSLOADPATH’ specifies the entire ‘load-path’.
>     You must include either an empty element, or the explicit path to
>     the directory containing the standard Lisp files, else Emacs will
>     not function.

Thanks for the clarification!  And sorry for the noise, I should have
read it more closely.

Regards,

Diego

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#38399: Recent $EMACSLOADPATH changes break emacs-org
  2019-11-28 14:25   ` Diego Nicola Barbato
@ 2019-12-07  4:32     ` Maxim Cournoyer
  0 siblings, 0 replies; 4+ messages in thread
From: Maxim Cournoyer @ 2019-12-07  4:32 UTC (permalink / raw)
  To: Diego Nicola Barbato; +Cc: 38399-done

Hello,

This was fixed on master with commit 3ffdd0026b.

Thank you!

Maxim

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-12-07  4:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-27 10:00 bug#38399: Recent $EMACSLOADPATH changes break emacs-org Diego Nicola Barbato
2019-11-28  5:11 ` Maxim Cournoyer
2019-11-28 14:25   ` Diego Nicola Barbato
2019-12-07  4:32     ` Maxim Cournoyer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.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).