
Thanks @gfb
I’ve sent a PR to your branch that adds a simple url pattern: (regexp-match-positions* #px"https?\\://\\S+" str)
so it picks up things that resemble urls. I’m afraid my git-fu is poor - do you mind if I copy/paste your changes? (I don’t quite know how to to apply your https://github.com/gfbee/gui/commit/c0ccf2984e93e3d75cd87371ecc319f0ced3b91d\|commit to the branch I am working on. )

Anyone know why I have two pairs of font size menu items?

Okay that’s odd. Hmm. Is the font sizes at the left and right the same?

Maybe you get menu items to control both the left and right sides?

its a bit weird..

I went to https://docs.racket-lang.org/drracket/Menus.html#%28part._menu~3aview%29 to see what was documented only to find increase/decrease font size is not documented.

the more I look the more I’m convince those menu items are not meant to be there. Font size is in the preferences and works fine.

Well, I am sure one set is supposed to be there. Experimenting with DrRacket 7.6 using splits and and tabs I can’t get another entry to appear.

The code that adds the font size adjusters to the menu, must run twice?

i’m on a 7.7 nightly

it must

I’ve also lost split/unsplit

I’m going to get a clean copy of 7.7 and see if I can reproduce…

@rp has joined the channel

Can anyone help with some basic macrology? I’m getting this error: biginterval.rkt:6:3: λ: unbound identifier;
also, no #%app syntax transformer is bound in the transformer phase
for this code (define-match-expander ival-expander
(λ (stx)
(syntax-case stx ()
[(_ lo hi)
#'(ival (endpoint lo _) (endpoint hi _) _ _)]))
(λ (stx)
(syntax-case stx ()
[(_ lo hi)
#'(ival (endpoint lo #t) (endpoint hi #t) #f #f)])))
I’m not doing any other weird macro stuff, as far as I know.

Since it says that #%app
is not bound in the transformer phase, try (require (for-syntax racket/base))
.

That I’m in #lang racket/base
doesn’t do that?

no

#lang racket
does that

but #lang racket/base
doesn’t bind anything at syntax time

well, basically nothing

huh

I have a console-based program that I would very much like to compile (raco exe) to a single binary. Currently it ends up being split in 2 files: the racket exe and the rest. Is there a way to make it a single executable file on Linux?

What is the rest in this case?

(I think it may be an executable plus the racket
executable, but it’s been long enough that I forget how different configurations work.)

Yes, there’s the myprog executable and the racket executable

Does supplying --orig-exe
to raco exe
work?

~No, --orig-exe
is moving in the wrong direction…~

Thanks I’ll try that tomorrow

I think --orig-exe
may do what you want, although I think that wasn’t its original intent (which is why the name and documentation don’t seem encouraging).

Racket News - Issue 30 is here everyone. Enjoy! https://racket-news.com/2020/05/racket-news-issue-30.html

Nice! I always look forward to these.

Here’s two screenshots.
One of them shows @defmodulelang[@racketfont{u/a} #:module-paths (u/a/lang/reader)]
The other shows @racketmod[u/a ...]
.
I’m guessing that I get the red underline due to a misuse of @defmodulelang
. What’s the error?

After some trial and error, that use of @defmodulelang
is the only one I did that actually builds.

I think you don’t want the use of racketfont

I get an undeclared identifier
error if I don’t have it. The docs say that the underlying defmodule
needs a content-expr
if you use #:lang
.


Sweet, thanks.

here’s another simpler example: https://github.com/racket/scribble/blob/master/scribble-doc/scribblings/scribble/acmart.scrbl#L10

@rodrigo.ribeiro has joined the channel

@sanchom probably just the usual PID–1 problems, not something specific to Racket

@jgaver has joined the channel