From mboxrd@z Thu Jan 1 00:00:00 1970 From: myglc2 Subject: Re: Is this the way geiser works for others? Date: Fri, 14 Apr 2017 12:38:28 -0400 Message-ID: <8660i7j663.fsf@gmail.com> References: <8660ia6ytv.fsf@gmail.com> <87o9w20z42.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]:34855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cz4F3-0002Nl-6a for help-guix@gnu.org; Fri, 14 Apr 2017 12:38:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cz4Ey-00008b-AG for help-guix@gnu.org; Fri, 14 Apr 2017 12:38:37 -0400 Received: from mail-qk0-x22b.google.com ([2607:f8b0:400d:c09::22b]:36479) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cz4Ey-00008C-4s for help-guix@gnu.org; Fri, 14 Apr 2017 12:38:32 -0400 Received: by mail-qk0-x22b.google.com with SMTP id d131so70983608qkc.3 for ; Fri, 14 Apr 2017 09:38:31 -0700 (PDT) In-Reply-To: <87o9w20z42.fsf@gmail.com> (Alex Kost's message of "Wed, 12 Apr 2017 12:11:25 +0300") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Alex Kost Cc: help-guix@gnu.org On 04/12/2017 at 12:11 Alex Kost writes: > myglc2 (2017-04-12 00:21 -0400) wrote: > >> I am starting to wonder if something is horribly wrong. Why? Well, if I >> do 'M-x guix-edit emacs.scm', do 'M-x run-geiser', select >> 'define-module', and press M-. I see ... >> >> geiser-edit-symbol-at-point: Couldn=E2=80=99t find edit location for >> =E2=80=99define-module=E2=80=99 >> >> If I select 'emacs-build-system' and press M-. I see ... >> >> geiser-edit-symbol-at-point: Couldn=E2=80=99t find edit location for >> =E2=80=99emacs-build-system=E2=80=99 >> >> Is this how geiser works for others? > > Yes, it is, that's why I added "C-c . u" to Emacs-Guix: before you can > jump to a definition, you need to use the current module, so after > pressing "C-c . u", "M-." on 'emacs-build-system' should work. > > As for 'define-module', you'll never be able to "edit" it with "M-.", > because it is internal. See . This puzzles me. If I use etags I can get *xref* to show ... /home/g1/src/guix/test-tmp/store/ywpd8i2s87fzmzfpl2h96m949p7rwmcd-guile-boo= tstrap-2.0/share/guile/2.0/ice-9/curried-definitions.scm 44: (define-syntax define-public /home/g1/src/guix/test-tmp/store/ywpd8i2s87fzmzfpl2h96m949p7rwmcd-guile-boo= tstrap-2.0/share/guile/2.0/ice-9/boot-9.scm 3576: (define-syntax define-public /home/g1/src/guix/test-tmp/store/v229gc83qn1j7c7l6r65bfw2b8j7rx2w-boot-9.scm 3685: (define-syntax define-public Isn't one of these what I want to look at? Thank you for helping me to get "C-c . u", "M-." working. For others that may care, here are fixes I needed: Problem: emacs-guix development mode (C-c . _) functions don't work: Fix: add in emacs `init ... (add-hook 'scheme-mode-hook 'guixlevell-mode) Problem: 'C-c . u' is horribly slow and 'M-.' produces ... geiser-ediot-symbol-at-point: Couldn=E2=80=99t find edit location for =E2= =80=99define-module=E2=80=99 As you explained off-list ... > guix is still compiled with Guile 2.0! (Ludovic plans to switch Guix > to Guile 2.2 really soon). And these two Guile versions are > incompatible! So whenever you start guile (no matter in a shell or > with "M-x run-guile" or via Guix REPL), guile 2.2 doesn't find > compatible .go files (that's where errors come from) and it compiles > .scm again for 2.2 version. Fix: remove guile from user and/or system profiles! Problem: 'C-c . u' is not so horribly slow and 'M-.' produces .... geiser-ediot-symbol-at-point: Couldn=E2=80=99t find edit location for =E2= =80=99define-module=E2=80=99 Fix: remove ... (with-eval-after-load 'geiser-guile (add-to-list 'geiser-guile-load-path "~/src/guix")) ... from emacs init. Add this to .bash_profile ... export GUILE_LOAD_PATH=3D"$HOME/src/guix${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PA= TH" export GUILE_LOAD_COMPILED_PATH=3D"$HOME/src/guix${GUILE_LOAD_COMPILED_PATH= :+:}$GUILE_LOAD_COMPILED_PATH"