From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Is this the way geiser works for others? Date: Fri, 14 Apr 2017 20:28:10 +0300 Message-ID: <87r30uzyol.fsf@gmail.com> References: <8660ia6ytv.fsf@gmail.com> <87o9w20z42.fsf@gmail.com> <8660i7j663.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]:46058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cz518-0002Xo-HV for help-guix@gnu.org; Fri, 14 Apr 2017 13:28:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cz513-0008Ld-KT for help-guix@gnu.org; Fri, 14 Apr 2017 13:28:18 -0400 Received: from mail-lf0-x232.google.com ([2a00:1450:4010:c07::232]:34630) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cz513-0008LR-Ah for help-guix@gnu.org; Fri, 14 Apr 2017 13:28:13 -0400 Received: by mail-lf0-x232.google.com with SMTP id t144so44550258lff.1 for ; Fri, 14 Apr 2017 10:28:13 -0700 (PDT) In-Reply-To: <8660i7j663.fsf@gmail.com> (myglc2@gmail.com's message of "Fri, 14 Apr 2017 12:38:28 -0400") 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: myglc2 Cc: help-guix@gnu.org myglc2 (2017-04-14 12:38 -0400) wrote: > 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-b= ootstrap-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-b= ootstrap-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? I don't really know how Geiser finds the definitions for jumping, but there are some "internal" things that Geiser can't find (for example, "cons", "append", "with-output-to-file", etc.). I just don't know what is the definition of the term "internal" in this context, i.e. what can be found and what cannot. > Thank you for helping me to get "C-c . u", "M-." working. For others > that may care, here are fixes I needed: No problem. > Problem: > > emacs-guix development mode (C-c . _) functions don't work: > > Fix: add in emacs `init ... > > (add-hook 'scheme-mode-hook 'guixlevell-mode) typo: 'guix-devel-mode --=20 Alex