[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: geiser-edit-symbol-at-point
From: |
Jake Shilling |
Subject: |
Re: geiser-edit-symbol-at-point |
Date: |
Sat, 12 Nov 2022 10:48:54 -0500 |
On 2022-11-11 18:12, jgart wrote:
> But this doesn't work for geiser-edit-symbol-at-point because it is guix API
> code:
>
> (add-after 'build 'install-xsession
> ^^^^^^^^^
`add-after` might not be the best symbol to test on, because (with my
limited understanding of scheme) is not defined to be anything--it's
just used in the pattern matching for the `%modify-phases` macro:
```
(define-syntax %modify-phases
(syntax-rules (delete replace add-before add-after)
((_ phases (delete old-phase-name))
(alist-delete old-phase-name phases))
((_ phases (replace old-phase-name new-phase))
(alist-replace old-phase-name new-phase phases))
((_ phases (add-before old-phase-name new-phase-name new-phase))
(alist-cons-before old-phase-name new-phase-name new-phase phases))
((_ phases (add-after old-phase-name new-phase-name new-phase))
(alist-cons-after old-phase-name new-phase-name new-phase phases))))
```
If I'm reading this right, I belive that this macro is looking for the
'add-after symbol--as a symbol--and not looking for any value referenced
by it.
I am able to run `geiser-edit-symbol-at-point` on `modify-phases`, but
not `add-after` (or related). I should also point out that Geiser only
recognizes `modify-phases` after I've already evaluated the evaluated
the form that imports the (gnu build utils) module. If I simply open the
file, start guile, and try to edit `modify-phases` nothing
happens. Geiser needs me to evaluate the (use-module (gnu build utils))
bit first.
--
Best regards,
Jake Shilling
signature.asc
Description: PGP signature
- Re: geiser-edit-symbol-at-point, (continued)
- Re: geiser-edit-symbol-at-point, jgart, 2022/11/11
- Re: geiser-edit-symbol-at-point, Jake Shilling, 2022/11/11
- Re: geiser-edit-symbol-at-point, jgart, 2022/11/11
- Re: geiser-edit-symbol-at-point, jgart, 2022/11/11
- Re: geiser-edit-symbol-at-point, Jake Shilling, 2022/11/11
- Re: geiser-edit-symbol-at-point, jgart, 2022/11/11
- Re: geiser-edit-symbol-at-point, jgart, 2022/11/11
- Re: geiser-edit-symbol-at-point, jgart, 2022/11/11
- Re: geiser-edit-symbol-at-point,
Jake Shilling <=
- Re: geiser-edit-symbol-at-point, jgart, 2022/11/14
- Re: geiser-edit-symbol-at-point, Jake Shilling, 2022/11/14
- Re: geiser-edit-symbol-at-point, jgart, 2022/11/14
- Re: geiser-edit-symbol-at-point, Jake Shilling, 2022/11/14