Ludovic Courtès skribis:
>>From 7fd25c6f15f74fb6e45fc3f0db21a110267f262c Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Ludovic=20Court=C3=A8s?=
> Date: Wed, 16 Feb 2022 11:27:43 +0100
> Subject: [PATCH] gexp: Preserve source location for #~ and #$ read extensions.
>
> Read hash extensions preserve
Hi!
This *ahem* pretty hack works around the problem. I have yet to see if
it works with earlier Guile versions. Thoughts?
I’d have preferred to avoid monkey-patching but I couldn’t think of a
way to do that.
Ludo’.
>From 7fd25c6f15f74fb6e45fc3f0db21a110267f262c Mon Sep 17 00:00:00 2001
From:
Hi,
Maxime Devos skribis:
> Read hash extensions can return syntax objects. In a Guile 3.0.8 REPL:
>
> (define-module (hat))
> (define (hat s-exp)
> `#(hat ,s-exp))
>
> (read-hash-extend #\^
> (lambda (_ port)
> ;; Use 'read-syntax' instead of a combination of 'read' and
> ;; 'datum
Ludovic Courtès schreef op di 15-02-2022 om 20:42 [+0100]:
> The problem is that ‘read’ hash extensions (like those for #~ and #$)
> would so far return sexps with associated source properties, but
> psyntax
> in 3.0.8 ignores those source properties.
Read hash extensions can return syntax objects
Hi!
For now, here’s a workaround: instead of writing
#~(… #$(local-file …) …)
you can write:
(gexp (… (ungexp (local-file …)) …))
or:
(let ((file (local-file …)))
#~(… #$file …))
The problem is that ‘read’ hash extensions (like those for #~ and #$)
would so far return sexps with as
Hello,
Ludovic Courtès writes:
> Hi,
>
> Aleksandr Vityazev skribis:
>
>> The following example also worked before the
>> 076e825dc5d585943ce820a279fffe4af09757fb (gnu: guile: Add version 3.0.8 as
>> 'guile-3.0-latest') commit.
>>
>> in /subdir/home/wm.scm:
>>
>> #+begin_src scheme :scheme gui
Hi,
Aleksandr Vityazev skribis:
> The following example also worked before the
> 076e825dc5d585943ce820a279fffe4af09757fb (gnu: guile: Add version 3.0.8 as
> 'guile-3.0-latest') commit.
>
> in /subdir/home/wm.scm:
>
> #+begin_src scheme :scheme guile :season guile
> (service
> home-rofi-servic
Hi Aleksandr
Am Montag, dem 14.02.2022 um 21:50 + schrieb Aleksandr Vityazev:
> Hi,
>
> I have the following dotfiles directory structure where I store my
> Guix home config:
>
> > -etc
> >
> > -subdir
> > |
> > |-home
>
>
> I often use the 'local-file' procedure in modules in the hom
Hi,
I have the following dotfiles directory structure where I store my Guix home
config:
|-etc
|
|-subdir
| |
| |-home
I often use the 'local-file' procedure in modules in the home directory. For
example in /subdir/home/shells.scm:
#+begin_src scheme :scheme guile :season guile
(simple-ser