Re: Using shtml with htmlprag - output of shtml->html is different to some given HTML

2019-09-04 Thread Kenan Toker
Hi Neil, Brilliant! I'm using the version which is bundled with the guile-lib 0.2.6.1 - https://www.nongnu.org/guile-lib/ for website, https://download.savannah.nongnu.org/releases/guile-lib/ for download. I haven't tried using a different version than this. I can also see from the header that th

Re: How to use-modules within macro?

2019-09-04 Thread pelzflorian (Florian Pelz)
Thank you for giving my approach a kind of “trial by fire”. Considering what you wrote, I still believe in my datum->syntax approach in my special case. After all, datum->syntax exists for a reason, I suppose. I am interested in your further comments. They have been very helpful. On Wed, Sep 04

Re: How to use-modules within macro?

2019-09-04 Thread Mark H Weaver
Hello again, I wrote earlier: > So, instead of using 'match' on the result of 'syntax->datum', you > should instead use 'syntax-case' on the syntax object itself, like this > (untested): > > (let loop ((e #'exp)) > (syntax-case e () > (num >(number? (syntax->datum #'num)) >

Re: extract documentation from (define ...

2019-09-04 Thread Mark H Weaver
Hi Jesse, Jesse Gibbons writes: > I am trying to generate documentation for a project written in guile. I > tried "guild doc-snarf" [0] but apparently it only recognizes > documentation in double-semicolon comments. A lot of the project is > documented in a string like one would document an emac

Re: How to use-modules within macro?

2019-09-04 Thread Mark H Weaver
Hi Florian, "pelzflorian (Florian Pelz)" writes: > To retain unhygienic references, I am now using datum->syntax instead > of local-eval. It is much better. For example, to make a macro that > increments all numbers in a given program by one: > > (use-modules (ice-9 match)) > (define-syntax on

Re: Using shtml with htmlprag - output of shtml->html is different to some given HTML

2019-09-04 Thread Neil Van Dyke
Hi, Kenan. If you can tell me a URL for which `htmlprag` you're using, I'll try to fix the problem. If I can't quickly figure out a simple fix for that `htmlprag`, I might end up trying to quickly do an unofficial port of the current (sadly Racket-specific) incarnation of the `htmlprag` code

Using shtml with htmlprag - output of shtml->html is different to some given HTML

2019-09-04 Thread Kenan Toker
Hi guile-users, Hope you're all very well! I have a question about using shtml with htmlprag - as far as I know this module isn't actually part of Guile, and it looks like it's quite old now and maybe no longer under active development, but if anyone has any insights I'm keen to see if I can get a

Re: How to use-modules within macro?

2019-09-04 Thread pelzflorian (Florian Pelz)
On Thu, Aug 29, 2019 at 07:04:07PM -0400, Mark H Weaver wrote: > Hi Florian, > > "pelzflorian (Florian Pelz)" writes: > > > I am writing a Guile macro to manipulate Scheme code and am stuck on > > what I hope is a simple problem and it would be nice if you could > > explain. I try: > > > > (def