That is, I'd like to process the file and add "Patch0004...\nPatch0005..."
after the Patch0003 line, then save the file. What is the best way to do
this in guile? Is it better to read the entire file and then use something
like regexp-substitute or is there a better way?
Thank you,
--
ogram.
Because the backtrace actually doesn't even point in the right place, it's
quite useless in my opinion.
Am I doing anything wrong? I use guile 3.0.1.
Regards,
--
Jan Synacek
Software Engineer, Red Hat
On Wed, Mar 11, 2020 at 7:07 PM Jan Synacek wrote:
> Hello,
>
> consider the following piece of code:
>
> $ cat test.scm
> (use-modules (ice-9 regex))
>
> (define (change text)
> (regexp-substitute #f (string-match "string" text)
> 'pre
>
h the
problem? I've checked how guile-xcb does it and it seems to be building
hash tables with field names as keys. But that basically requires me to
"redefine" all the C structs that I would be interested in at the Scheme
level.
Regards,
--
Jan Synacek
Software Engineer, Red Hat
On Fri, May 15, 2020 at 10:09 PM Taylan Kammer wrote:
>
> On 15.05.2020 15:47, Jan Synacek wrote:
> > Hello,
> >
> > Currently I have something like this:
> >
> > (define libxcb (dynamic-link "libxcb"))
> >
> > ...
> >
> &