From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Chris Marusich <cmmarusich@gmail.com>
Cc: myglc2@gmail.com, 38015@debbugs.gnu.org,
Pierre Neidhardt <mail@ambrevar.xyz>,
help-guix@gnu.org, Alex Kost <alezost@gmail.com>
Subject: [bug#38015] Emacs in multiple profiles
Date: Mon, 18 Nov 2019 14:50:32 +0900 [thread overview]
Message-ID: <87r225u40n.fsf@gmail.com> (raw)
In-Reply-To: <87eeyc452y.fsf@gmail.com> (Chris Marusich's message of "Tue, 12 Nov 2019 23:18:29 -0800")
Hello Chris,
Chris Marusich <cmmarusich@gmail.com> writes:
[...]
I've skipped your previous questions, as I believe they were well
answered by Pierre (thank you, Pierre!).
>> Subject: [PATCH 2/3] build-system: emacs: Simplify the SET-EMACS-LOAD-PATH
>> phase.
>>
>> +(define* (add-source-to-load-path #:key dummy #:allow-other-keys)
>> + "Augment the EMACSLOADPATH environment variable with the source directory."
>> (let* ((source-directory (getcwd))
>> - (input-elisp-directories (input-directories->el-directories
>> - (inputs->directories inputs)))
>> - (emacs-load-path-value
>> - (string-join
>> - (append input-elisp-directories (list source-directory))
>> - ":" 'suffix)))
>> + (emacs-load-path-value (string-append (getenv "EMACSLOADPATH") ":"
>> + source-directory)))
>> (setenv "EMACSLOADPATH" emacs-load-path-value)
>> - (format #t "environment variable `EMACSLOADPATH' set to ~a\n"
>> - emacs-load-path-value)))
>> + (format #t "source directory ~s appended to the `EMACSLOADPATH' \
>> +environment variable\n" source-directory)))
>
> It looks like the change is as follows: previously, we added multiple
> directories, including the source-directory, to the load path; after
> this change, we append just the source-directory to the EMACSLOADPATH.
> Can you remind me why we don't need to add the other elisp directories
> to the EMACSLOADPATH, too? It seems to work, so I'm probably just
> missing something obvious.
The magic is in the set-paths phase that is inherited from the
gnu-build-system. It uses the search path specification now specified in
the Emacs package to set the EMACSLOADPATH environment variable itself.
When building Elisp packages, it is useful to add the current source
directory to that environment variable, so that 'require' directives are
able to find the package's own modules (say, when running its test
suite).
>> Subject: [PATCH 3/3] gnu: emacs: Adapt the autoloads auxiliary code to use
>> EMACSLOADPATH.
>
> As far as I can tell, this looks good to me, too.
>
> Finally: do you anticipate that this will cause any user-visible or
> backwards-incompatible changes that we should mention in the Guix
> channel's news file (and in the Guix NEWS file)?
Thanks for the review! I can't anticipate any user-visible changes
except the current (incorrect) behavior.
This change is now live on master, with commit
47b3b4c2aa49e21f4cc32c97ff7bbbd069bb849c. Thanks for testing :-).
Maxim
prev parent reply other threads:[~2019-11-18 5:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <9c395fd0-9458-7894-af8b-9294d212c60b@fastmail.net>
[not found] ` <878tajzu03.fsf@gmail.com>
[not found] ` <m1efkb6x7v.fsf@ordinateur-de-catherine--konrad.home>
[not found] ` <87a7uyd7qy.fsf@gmail.com>
[not found] ` <m17eq17jsb.fsf@ordinateur-de-catherine--konrad.home>
[not found] ` <874ll51mq3.fsf@gmail.com>
[not found] ` <m1zi2v5jo0.fsf@ordinateur-de-catherine--konrad.home>
[not found] ` <87zi2t4jgh.fsf@gmail.com>
[not found] ` <877ep4z44b.fsf@gmail.com>
[not found] ` <87tv88ihzc.fsf@ambrevar.xyz>
[not found] ` <878spgo7ex.fsf@gmail.com>
[not found] ` <87o8yccwtq.fsf@ambrevar.xyz>
[not found] ` <871rv1ed8v.fsf@gmail.com>
[not found] ` <87mudpm5nt.fsf@ambrevar.xyz>
[not found] ` <874kzscpgs.fsf@gmail.com>
[not found] ` <87eeyvespq.fsf@ambrevar.xyz>
[not found] ` <87zhhhbhzl.fsf@gmail.com>
[not found] ` <877e4l5c9h.fsf@ambrevar.xyz>
2019-11-01 4:25 ` [bug#38015] Emacs in multiple profiles Maxim Cournoyer
2019-11-01 19:06 ` Pierre Neidhardt
2019-11-02 1:12 ` Maxim Cournoyer
2019-11-02 9:41 ` Pierre Neidhardt
2019-11-12 5:14 ` Chris Marusich
2019-11-12 7:16 ` Pierre Neidhardt
2019-11-13 7:18 ` Chris Marusich
2019-11-13 11:08 ` Pierre Neidhardt
2019-11-18 5:50 ` Maxim Cournoyer [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://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r225u40n.fsf@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=38015@debbugs.gnu.org \
--cc=alezost@gmail.com \
--cc=cmmarusich@gmail.com \
--cc=help-guix@gnu.org \
--cc=mail@ambrevar.xyz \
--cc=myglc2@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/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).