unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: Zelphir Kaltstahl <zelphirkaltstahl@posteo.de>,
	Michael Rohleder <mike@rohleder.de>
Cc: guix-devel@gnu.org
Subject: Re: Missing dependency for emacs-magit
Date: Tue, 15 Feb 2022 20:54:43 +0100	[thread overview]
Message-ID: <db26027fdc5ef5c39d57871a2f55ba36c80e1d76.camel@gmail.com> (raw)
In-Reply-To: <58bffd3e-cd4d-ed22-93f7-2be34df216ad@posteo.de>

Hi Zelphir,

Am Dienstag, dem 15.02.2022 um 09:45 +0000 schrieb Zelphir Kaltstahl:
> Hello Liliana,
> 
> On 2/14/22 20:33, Liliana Marie Prikler wrote:
> > Hi Zelphir,
> > 
> > Am Montag, dem 14.02.2022 um 18:41 +0000 schrieb Zelphir Kaltstahl:
> > > [...]
> > I think we need some multi-level printf debugging here.
> > 
> > First, after  `source "${GUIX_PROFILE}/etc/profile"`, is
> > EMACSLOADPATH
> > correctly pointing to the share/emacs/site-lisp of
> > ${GUIX_EXTRA_PROFILES}/emacs-test-profile?
> > 
> > Second, before and after executing your init.el snippet, what are
> > the
> > contents of load-path?
> > Do they contain /gnu/store/SOME_LONG_HASH-magit-MAGIT_VERSION?
> > 
> > Cheers
> 
> To simplify things, I created a shell script, which does the calls:
> 
> ~~~~
> #!/usr/bin/env bash
> 
> set -Eeuxo pipefail
> 
> # source the environment
> GUIX_PROFILE="${GUIX_EXTRA_PROFILES}/emacs-test-profile"
> . "${GUIX_PROFILE}/etc/profile"
> printf "emacs load path: %s\n" "${EMACSLOADPATH}"
> 
> # run emacs
> env XMODIFIERS='' emacs
> ~~~~
> 
> This outputs the following:
> 
> ~~~~
> [...]
> ~~~~
> 
> Magit line is:
> 
> ~~~~
> "/gnu/store/f0461m96rhnpkmhjlj06yz058pqyj02d-emacs-magit-
> 3.3.0/share/emacs/site-lisp/magit-3.3.0"
> ~~~~
Okay, this means that subdirs.el is correctly expanded.  The next
question regards autoloads.  Is (featurep 'magit-autoloads) t or nil?

> Seems to be the same as without running the `init.el` file regarding
> magit at least. This makes sense, as I don't add things to the load-
> path in the whole `init.el` file, except for:
> 
> ~~~~
> (defconst xl-home "~")
> (defconst xl-guix-profiles (concat xl-home "/" ".guix-extra-
> profiles"))
> (defconst xl-emacs-profile (concat xl-guix-profiles "/" "emacs-test-
> profile"))
> (defconst xl-site-lisp-dir (concat xl-emacs-profile "/"
> "share/emacs/site-lisp/"))
> (add-to-list 'load-path
>               xl-site-lisp-dir)
> ~~~~
That snippet should not be needed.  As can be seen from EMACSLOADPATH,
xl-site-lisp-dir should already be in load-path.

> (Not sure if defconst is the best thing to use, but emacs was
> complaining when using setq, that I was assigning to variables, which
> are free, and those strings are actually constant, so I figured that
> would be appropriate to do and emacs does not complain about it any
> longer.)
Let-binding would be nicer, but this is not the coding academy awards,
so anything goes.

Cheers


  reply	other threads:[~2022-02-15 20:04 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-13 23:51 Missing dependency for emacs-magit Zelphir Kaltstahl
2022-02-14  2:50 ` Michael Rohleder
2022-02-14 18:41   ` Zelphir Kaltstahl
2022-02-14 19:33     ` Liliana Marie Prikler
2022-02-15  9:45       ` Zelphir Kaltstahl
2022-02-15 19:54         ` Liliana Marie Prikler [this message]
2022-02-16 22:23           ` Zelphir Kaltstahl
2022-02-17 17:49             ` Liliana Marie Prikler
2022-02-17 19:26               ` Ricardo Wurmus
2022-02-18  1:10               ` Zelphir Kaltstahl
2022-02-18  4:51                 ` Liliana Marie Prikler
2022-02-19  2:34                   ` Zelphir Kaltstahl
2022-02-19  7:30                     ` Liliana Marie Prikler
2022-02-19 15:43                       ` Zelphir Kaltstahl
2022-02-19 16:04                         ` Liliana Marie Prikler
2022-02-22  9:34                       ` Zelphir Kaltstahl
2022-02-22 10:39                         ` Liliana Marie Prikler

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=db26027fdc5ef5c39d57871a2f55ba36c80e1d76.camel@gmail.com \
    --to=liliana.prikler@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=mike@rohleder.de \
    --cc=zelphirkaltstahl@posteo.de \
    /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).