unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Alex Kost <alezost@gmail.com>
Cc: 27686@debbugs.gnu.org, Adonay Felipe Nogueira <adfeno@openmailbox.org>
Subject: bug#27686: emacs-ess: Not installed in "${output}/share/emacs/site-lisp/guix.d"
Date: Tue, 15 Aug 2017 12:08:03 -0400	[thread overview]
Message-ID: <CAN-vT6QPR1E_Ex7ScKckTGY13OjEubYzygj40==jOXkoBzK0jw@mail.gmail.com> (raw)
In-Reply-To: <87h8y9ua1n.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1752 bytes --]

Hi,

On Tue, Jul 18, 2017 at 9:52 AM, Alex Kost <alezost@gmail.com> wrote:

> Adonay Felipe Nogueira (2017-07-13 09:20 -0300) wrote:
>
> > It seems that Emacs ESS mode isn't installed in the same location as
> > other packages are.
> >
> > Also note that emacs-ess doesn't use the Emacs build system. I don't
> > know if this is indeed the issue (and if we can force it to use such
> > build system), but I think this is an important note to make.
>
> It's not a problem: we just need to install *.el files in
> ".../share/emacs/site-lisp/guix.d/ess" instead of
> ".../share/emacs/site-lisp/ess" as it is done by default.  The attached
> patch should fix it.
>
> A side note: this is one of the reasons why I don't like "guix.d"
> sub-directory.  I think it is a useless extra level in the file
> hierarchy.  If we used:
>
>   .../share/emacs/site-lisp/<package>
>

While I agree that packaging elisp files in their own folder is cleaner, it
also introduces some complexity such as the requirement to add some glue
code in the Emacs site-start.el for packages discovery. This mechanism is
only valid when working with a profile; at build time (say, you want to run
tests which depend on other Emacs packages), another hack is required +
manual fiddling.

By contrast, if all of our Emacs packages were laid out flat under the
usual share/emacs/site-lisp/ like it's done on other distributions, we
could simply define the EMACSLOADPATH `search-path' at the Emacs package
definition level, and the rest would be taken care of by Guix native
mechanisms (no hacks required).

IMHO, this would be more "Guixy".

Alternatively, we would need to extend the seacrh-path facility to be able
to deal with our own added complexity. I'm not sure if it's worth it.

[-- Attachment #2: Type: text/html, Size: 2338 bytes --]

  parent reply	other threads:[~2017-08-15 16:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-13 12:20 bug#27686: emacs-ess: Not installed in "${output}/share/emacs/site-lisp/guix.d" Adonay Felipe Nogueira
2017-07-18 13:52 ` Alex Kost
2017-07-29 20:34   ` Alex Kost
2017-08-15 14:38   ` Adonay Felipe Nogueira
2017-08-15 16:08   ` Maxim Cournoyer [this message]
2017-08-19 18:32     ` Alex Kost

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='CAN-vT6QPR1E_Ex7ScKckTGY13OjEubYzygj40==jOXkoBzK0jw@mail.gmail.com' \
    --to=maxim.cournoyer@gmail.com \
    --cc=27686@debbugs.gnu.org \
    --cc=adfeno@openmailbox.org \
    --cc=alezost@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).