From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: bug#22550: (require 'magit) produces error: "no such file or directory" "dash" Date: Sat, 26 Mar 2016 03:08:14 +0300 Message-ID: <87pouixfrl.fsf@gmail.com> References: <87egctdsb0.fsf@gmail.com> <87lh70vclr.fsf@gmail.com> <87lh7033q9.fsf@gmail.com> <87y4b0tfdn.fsf@gmail.com> <87pov764td.fsf@gmail.com> <871t7mir9w.fsf@gmail.com> <87lh57n8yn.fsf@gmail.com> <86vb4azirc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajbmr-0008B5-DK for bug-guix@gnu.org; Fri, 25 Mar 2016 20:09:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ajbmo-0006Zv-6S for bug-guix@gnu.org; Fri, 25 Mar 2016 20:09:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:41031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajbmo-0006Zk-2R for bug-guix@gnu.org; Fri, 25 Mar 2016 20:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ajbmn-00060q-Rp for bug-guix@gnu.org; Fri, 25 Mar 2016 20:09:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <86vb4azirc.fsf@gmail.com> (myglc2@gmail.com's message of "Fri, 25 Mar 2016 11:20:39 -0400") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: myglc2 Cc: 22550@debbugs.gnu.org myglc2 (2016-03-25 18:20 +0300) wrote: > Alex Kost writes: [...] >> This issue should be completely fixed now (after commit 092dd65=C2=B9). >> (Just to remind) the original issue is a request for auto-finding emacs >> packages installed globally (in a system profile). >> >> So, if you update your Emacs, it should automatically find emacs >> packages (magit, etc.) installed both in user and system profiles. >> >> To update Emacs, one need to: >> >> 1. If emacs is installed in a user profile: >> >> $ guix pull >> $ guix package --upgrade=3Demacs >> >> 2. If emacs is installed in a system profile: >> >> # guix pull >> # guix system reconfigure >> >> =C2=B9 http://git.savannah.gnu.org/cgit/guix.git/commit/?id=3D092dd6541f= c75ed19ebbb1f9d8e6f32a88cb3445 > > Hi Alex, Thank you for the followup. > > I can't test on GuixSD right now, but '2.' looks good here. > > If you have a moment, Is there a way to set up my git checkout guix > environment to use changes like this as they are made in the development > version? > > My current 'Guix checkout' config (on a Guix/Debian install) looks like > this ... > > /home/g1/.config/guix: > lrwxrwxrwx 1 g1 g1 14 Mar 24 13:49 latest -> ../../src/guix > > ... in ~/.profile I have ... > > # guix > export GUIX_LOCPATH=3D$HOME/.guix-profile/lib/locale > GUIX_PROFILE=3D"$HOME/.guix-profile" > source "$HOME/.guix-profile/etc/profile" > > ... and in ~/.emacs.d/init.el I have ... > > ;; start: guix emacs setup > > ;; to run emacs interface from git checkout and have guix-edit operate > ;; on git checkout files > (let ((dir "/home/g1/src/guix/emacs")) > (add-to-list 'load-path dir) > (setq guix-load-path dir)) > (require 'guix-init nil t) Use (require 'guix-autoloads nil t) instead. Nowadays, the only thing 'guix-init' does is it requires 'guix-autoloads'. > ;; to read the guix manual from git checkout > (with-eval-after-load 'info > (info-initialize) > (add-to-list 'Info-directory-list > "/home/g1/src/guix/doc")) > > ;; from #guix for guix compatible diffs > (setq ediff-patch-options "-b -f") I have no idea what it is used for (I don't have this setting in my emacs config), but "-b" is probably should not be specified here. If you do: 1. M-: (require 'ediff-ptch) 2. C-h v ediff-patch-options you'll see a note about "-b" option. The rest looks good to me, I use pretty much the same configurations to set up Guix (and emacs stuff) from git. --=20 Alex