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: Mon, 08 Feb 2016 12:19:51 +0300 Message-ID: <87mvrbr22w.fsf@gmail.com> References: <87egctdsb0.fsf@gmail.com> <87lh70vclr.fsf@gmail.com> <87lh7033q9.fsf@gmail.com> <87y4b0tfdn.fsf@gmail.com> <87wpqgzyov.fsf@gmail.com> <87io1z9alx.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]:42536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aShzK-0005UH-5I for bug-guix@gnu.org; Mon, 08 Feb 2016 04:20:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aShzG-0007H4-4m for bug-guix@gnu.org; Mon, 08 Feb 2016 04:20:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:57604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aShzG-0007Gy-0d for bug-guix@gnu.org; Mon, 08 Feb 2016 04:20:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aShzF-0002C3-S5 for bug-guix@gnu.org; Mon, 08 Feb 2016 04:20:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87io1z9alx.fsf@gmail.com> (myglc2@gmail.com's message of "Sun, 07 Feb 2016 21:52:58 -0500") 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-02-08 05:52 +0300) wrote: >> Alex Kost (2016-02-04 23:00 +0300) wrote: >> >> [...] >>> So to recap, you found 2 issues: >>> >>> 1. Emacs packages installed in a system profile are not automatically >>> added to 'load-path'. >> >> Fixed in commit 004ea62=C2=B9. However, it will take effect when the new >> source of "guix-emacs.el" will be used. It will happen only after we'll >> update our guix-devel snapshot (last time it was in commit 2c77615). > > Thanks. Given that I am using git pull, is it feasible to for me test > this change now? Yes, at first you need to "unset EMACSLOADPATH" to prevent Emacs from loading "/run/current-system/profile/share/emacs/site-lisp/guix-emacs.el" (it is required by "guix-init" which is in turn required by "/etc/emacs/site-start.el"). Then you need to configure Emacs interface from git checkout as described in the manual (info "(guix) Emacs Initial Setup"), like this: (let ((dir "~/src/guix/emacs")) (add-to-list 'load-path dir) (setq guix-load-path dir) (require 'guix-init nil t)) A side note: 'guix-init' is a wrapper which is used to perform 2 tasks: 1. To load autoloads for guix commands, so that you can run any "M-x guix-= =E2=80=A6" command without requiring all these "guix-=E2=80=A6.el" modules. 2. To find and autoload Emacs packages installed with Guix in a user profile (and now [thanks to you] in a system profile as well). Not so long ago=C2=B9 our Emacs package was "patched" to take care of the second task, so technically there is no need in "guix-init" anymore. It will be removed soon (or maybe stayed for some time for backward compatibility), and instead 'guix-autoloads' should be required to configure various Emacs modes for Guix. =E2=86=91 (It was a draft of announce about the future change) =E2=86=91 =C2=B9 http://git.savannah.gnu.org/cgit/guix.git/commit/?id=3D13fe4891fa247= d306e203ee14c6886513bd86b52 --=20 Alex