Re: [racket-users] Non-ASCII characters stripped from input in macOS Terminal

2018-09-14 Thread Jon Kleiser
Thanks, Matthew! That was the final touch. I guess I will have to repeat 
that "ln -s" line after I upgrade Racket to the next version. Right?

fredag 14. september 2018 15.55.57 UTC+2 skrev Matthew Flatt følgende:
>
> I forgot that Mac OS provides "/usr/lib/libreadline.dylib" as a symlink 
> to libedit, so installing readline via Homebrew doesn't (and shouldn't) 
> replace it. 
>
> To point Racket at your Homebrew-installred readline, go to the "lib" 
> directory adjacent to the "bin" directory that contains "racket", and 
> run 
>
>   ln -s /usr/local/opt/readline/lib/libreadline.dylib 
>
> That way, Racket will find the "libreadline.dylib" from Homebrew 
> instead of the not-libreadline from the OS, since Racket looks in its 
> own "lib" first. 
>
> At Fri, 14 Sep 2018 06:43:25 -0700 (PDT), Jon Kleiser wrote: 
> > Thanks for the info. However, there must be one detail I'm missing. 
> > I have done "brew install readline", and "raco pkg install 
> readline-gpl", 
> > and when I now do "raco pkg show", I get this: 
> > 
> > Installation-wide: 
> >  PackageChecksum Source 
> >  main-distribution  34484fc4a83e3441...  catalog...tribution 
> >  racket-lib 570306a2bfa6057f...  catalog racket-lib 
> >  [198 auto-installed packages not shown] 
> > User-specific for installation "7.0": 
> >  Package   Checksum   Source 
> >  readline-gpl  2990d5f3a3d43c2d2f...  catalog...eadline-gpl 
> > 
> > However, when I do "racket", I still get 
> > "\U+FFC3\U+FFA6\U+FFC3\U+FFB8\U+FFC3\U+FFA5" when typing "æøå" at the 
> > prompt. Is there something I should (require ...)? 
> > 
> > fredag 14. september 2018 13.54.07 UTC+2 skrev Matthew Flatt følgende: 
> > > 
> > > This is a problem with libedit, which Racket uses by default, and the 
> > > version of libedit that comes with Mac OS is not built with Unicode 
> > > support. 
> > > 
> > > If you insteall readline (e.g., through Homebrew), then installing the 
> > > "readline-gpl" Racket package will use readline and support Unicode 
> > > input. 
> > > 
> > > At Fri, 14 Sep 2018 01:28:46 -0700 (PDT), Jon Kleiser wrote: 
> > > > If I enter this in the REPL in my macOS Terminal 
> > > > (string->list "hei") 
> > > > then I get '(#\h #\e #\i), as expected, but if I replace "hei" with 
> > > "høy", 
> > > > the input line suddenly looks like this 
> > > > (string->list "h\U+FFC3\U+FFB8y") 
> > > > and what I get back is '(#\h #\y). The letter "ø" has been stripped 
> > > away. 
> > > > The same happens with letters "æ" and "ø", typical Norwegian 
> characters. 
> > > > Is there something I can do to make the macOS Terminal REPL handle 
> these 
> > > > Norwegian characters better? 
> > > > In the DrRacket REPL this strange translation and stripping does not 
> > > happen. 
> > > > 
> > > > -- 
> > > > You received this message because you are subscribed to the Google 
> > > Groups 
> > > > "Racket Users" group. 
> > > > To unsubscribe from this group and stop receiving emails from it, 
> send 
> > > an 
> > > > email to racket-users...@googlegroups.com . 
> > > > For more options, visit https://groups.google.com/d/optout. 
> > > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Racket Users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to racket-users...@googlegroups.com . 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Non-ASCII characters stripped from input in macOS Terminal

2018-09-14 Thread Matthew Flatt
I forgot that Mac OS provides "/usr/lib/libreadline.dylib" as a symlink
to libedit, so installing readline via Homebrew doesn't (and shouldn't)
replace it.

To point Racket at your Homebrew-installred readline, go to the "lib"
directory adjacent to the "bin" directory that contains "racket", and
run

  ln -s /usr/local/opt/readline/lib/libreadline.dylib 

That way, Racket will find the "libreadline.dylib" from Homebrew
instead of the not-libreadline from the OS, since Racket looks in its
own "lib" first.

At Fri, 14 Sep 2018 06:43:25 -0700 (PDT), Jon Kleiser wrote:
> Thanks for the info. However, there must be one detail I'm missing.
> I have done "brew install readline", and "raco pkg install readline-gpl", 
> and when I now do "raco pkg show", I get this:
> 
> Installation-wide:
>  PackageChecksum Source
>  main-distribution  34484fc4a83e3441...  catalog...tribution
>  racket-lib 570306a2bfa6057f...  catalog racket-lib
>  [198 auto-installed packages not shown]
> User-specific for installation "7.0":
>  Package   Checksum   Source
>  readline-gpl  2990d5f3a3d43c2d2f...  catalog...eadline-gpl
> 
> However, when I do "racket", I still get 
> "\U+FFC3\U+FFA6\U+FFC3\U+FFB8\U+FFC3\U+FFA5" when typing "æøå" at the 
> prompt. Is there something I should (require ...)?
> 
> fredag 14. september 2018 13.54.07 UTC+2 skrev Matthew Flatt følgende:
> >
> > This is a problem with libedit, which Racket uses by default, and the 
> > version of libedit that comes with Mac OS is not built with Unicode 
> > support. 
> >
> > If you insteall readline (e.g., through Homebrew), then installing the 
> > "readline-gpl" Racket package will use readline and support Unicode 
> > input. 
> >
> > At Fri, 14 Sep 2018 01:28:46 -0700 (PDT), Jon Kleiser wrote: 
> > > If I enter this in the REPL in my macOS Terminal 
> > > (string->list "hei") 
> > > then I get '(#\h #\e #\i), as expected, but if I replace "hei" with 
> > "høy", 
> > > the input line suddenly looks like this 
> > > (string->list "h\U+FFC3\U+FFB8y") 
> > > and what I get back is '(#\h #\y). The letter "ø" has been stripped 
> > away. 
> > > The same happens with letters "æ" and "ø", typical Norwegian characters. 
> > > Is there something I can do to make the macOS Terminal REPL handle these 
> > > Norwegian characters better? 
> > > In the DrRacket REPL this strange translation and stripping does not 
> > happen. 
> > > 
> > > -- 
> > > You received this message because you are subscribed to the Google 
> > Groups 
> > > "Racket Users" group. 
> > > To unsubscribe from this group and stop receiving emails from it, send 
> > an 
> > > email to racket-users...@googlegroups.com . 
> > > For more options, visit https://groups.google.com/d/optout. 
> >
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Non-ASCII characters stripped from input in macOS Terminal

2018-09-14 Thread Jon Kleiser
Thanks for the info. However, there must be one detail I'm missing.
I have done "brew install readline", and "raco pkg install readline-gpl", 
and when I now do "raco pkg show", I get this:

Installation-wide:
 PackageChecksum Source
 main-distribution  34484fc4a83e3441...  catalog...tribution
 racket-lib 570306a2bfa6057f...  catalog racket-lib
 [198 auto-installed packages not shown]
User-specific for installation "7.0":
 Package   Checksum   Source
 readline-gpl  2990d5f3a3d43c2d2f...  catalog...eadline-gpl

However, when I do "racket", I still get 
"\U+FFC3\U+FFA6\U+FFC3\U+FFB8\U+FFC3\U+FFA5" when typing "æøå" at the 
prompt. Is there something I should (require ...)?

fredag 14. september 2018 13.54.07 UTC+2 skrev Matthew Flatt følgende:
>
> This is a problem with libedit, which Racket uses by default, and the 
> version of libedit that comes with Mac OS is not built with Unicode 
> support. 
>
> If you insteall readline (e.g., through Homebrew), then installing the 
> "readline-gpl" Racket package will use readline and support Unicode 
> input. 
>
> At Fri, 14 Sep 2018 01:28:46 -0700 (PDT), Jon Kleiser wrote: 
> > If I enter this in the REPL in my macOS Terminal 
> > (string->list "hei") 
> > then I get '(#\h #\e #\i), as expected, but if I replace "hei" with 
> "høy", 
> > the input line suddenly looks like this 
> > (string->list "h\U+FFC3\U+FFB8y") 
> > and what I get back is '(#\h #\y). The letter "ø" has been stripped 
> away. 
> > The same happens with letters "æ" and "ø", typical Norwegian characters. 
> > Is there something I can do to make the macOS Terminal REPL handle these 
> > Norwegian characters better? 
> > In the DrRacket REPL this strange translation and stripping does not 
> happen. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Racket Users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to racket-users...@googlegroups.com . 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Re: Using racket with emacs

2018-09-14 Thread Eric Eide
Neil Van Dyke  writes:

> Use Greg Hendershott's `racket-mode`:
> https://github.com/greghendershott/racket-mode

Seconded!  Racket-mode is excellent, and it grows more excellent over time.

-- 
---
Eric Eide   . University of Utah School of Computing
http://www.cs.utah.edu/~eeide/ . +1 (801) 585-5512 voice, +1 (801) 581-5843 FAX

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Using racket with emacs

2018-09-14 Thread Neil Van Dyke
Use Greg Hendershott's `racket-mode`: 
https://github.com/greghendershott/racket-mode


--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Using racket with emacs

2018-09-14 Thread tejaswi prakash
Hello everyone,
I am new to racket and intend on using it for my projects.

I was wondering about how to use racket with emacs instead of using
drracket as that's a more familiar environment for me.

Any advice?
Thank you,
Tejaswi

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Non-ASCII characters stripped from input in macOS Terminal

2018-09-14 Thread Matthew Flatt
This is a problem with libedit, which Racket uses by default, and the
version of libedit that comes with Mac OS is not built with Unicode
support.

If you insteall readline (e.g., through Homebrew), then installing the
"readline-gpl" Racket package will use readline and support Unicode
input.

At Fri, 14 Sep 2018 01:28:46 -0700 (PDT), Jon Kleiser wrote:
> If I enter this in the REPL in my macOS Terminal
> (string->list "hei")
> then I get '(#\h #\e #\i), as expected, but if I replace "hei" with "høy", 
> the input line suddenly looks like this
> (string->list "h\U+FFC3\U+FFB8y")
> and what I get back is '(#\h #\y). The letter "ø" has been stripped away. 
> The same happens with letters "æ" and "ø", typical Norwegian characters.
> Is there something I can do to make the macOS Terminal REPL handle these 
> Norwegian characters better?
> In the DrRacket REPL this strange translation and stripping does not happen.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Non-ASCII characters stripped from input in macOS Terminal

2018-09-14 Thread Jon Kleiser
My Terminal "Advanced" tab also says "Unicode (UTF-8)".
When I run the PicoLisp REPL, then I have no translation and stripping, 
"høy" is entered as "høy", it seems.

fredag 14. september 2018 10.55.28 UTC+2 skrev Jens Axel Søgaard følgende:
>
>
> Den fre. 14. sep. 2018 kl. 10.28 skrev Jon Kleiser  >:
>
>> If I enter this in the REPL in my macOS Terminal
>> (string->list "hei")
>> then I get '(#\h #\e #\i), as expected, but if I replace "hei" with 
>> "høy", the input line suddenly looks like this
>> (string->list "h\U+FFC3\U+FFB8y")
>> and what I get back is '(#\h #\y). The letter "ø" has been stripped 
>> away. The same happens with letters "æ" and "ø", typical Norwegian 
>> characters.
>> Is there something I can do to make the macOS Terminal REPL handle these 
>> Norwegian characters better?
>> In the DrRacket REPL this strange translation and stripping does not 
>> happen.
>>
>
> FWIW It is more a terminal problem than a Racket problem.
> If I paste  høy  into the terminal, I see  h\U+FFC3\U+FFB8y.
> My "Text Encoding" in the "Advanced" tab in the settings for terminal says 
> "Unicode (UTF-8)".
>  
> -- 
> Jens Axel Søgaard
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Non-ASCII characters stripped from input in macOS Terminal

2018-09-14 Thread Jens Axel Søgaard
Den fre. 14. sep. 2018 kl. 10.28 skrev Jon Kleiser :

> If I enter this in the REPL in my macOS Terminal
> (string->list "hei")
> then I get '(#\h #\e #\i), as expected, but if I replace "hei" with
> "høy", the input line suddenly looks like this
> (string->list "h\U+FFC3\U+FFB8y")
> and what I get back is '(#\h #\y). The letter "ø" has been stripped away.
> The same happens with letters "æ" and "ø", typical Norwegian characters.
> Is there something I can do to make the macOS Terminal REPL handle these
> Norwegian characters better?
> In the DrRacket REPL this strange translation and stripping does not
> happen.
>

FWIW It is more a terminal problem than a Racket problem.
If I paste  høy  into the terminal, I see  h\U+FFC3\U+FFB8y.
My "Text Encoding" in the "Advanced" tab in the settings for terminal says
"Unicode (UTF-8)".

-- 
Jens Axel Søgaard

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Where to start in DrRacket to support highlighting for Syntax Warnings?

2018-09-14 Thread Tom Gillespie
Hi all,
The language I'm developing has a strong use case for syntax warnings 
 for reporting cases of missing 
information (aka optional syntactic elements) to the user. I have done a 
first pass integration, and after reading Jack Firth's slides 
 (which end by suggesting 
DrRacket integration) I set out to complete the task. However after mucking 
about in the DrRacket source code for a while I have been unable to figure 
out the right place to hook in to provide DrRacket with the syntax location 
information (pretending that the warnings are errors for the purposes of 
display). Can someone point me in the right direction to get started? Many 
thanks!
Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Non-ASCII characters stripped from input in macOS Terminal

2018-09-14 Thread Jon Kleiser
If I enter this in the REPL in my macOS Terminal
(string->list "hei")
then I get '(#\h #\e #\i), as expected, but if I replace "hei" with "høy", 
the input line suddenly looks like this
(string->list "h\U+FFC3\U+FFB8y")
and what I get back is '(#\h #\y). The letter "ø" has been stripped away. 
The same happens with letters "æ" and "ø", typical Norwegian characters.
Is there something I can do to make the macOS Terminal REPL handle these 
Norwegian characters better?
In the DrRacket REPL this strange translation and stripping does not happen.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Re: Using ctags and vim with Racket

2018-09-14 Thread Marc Kaufmann
Thanks Alex, that was it. I thought I had tried it by setting .rkt to be 
interpreted as .scm, but I think that got overridden by vim-racket plugin. 
What I now did is:

ctags --language-force=scheme *.rkt

Cheers,
Marc

On Friday, September 14, 2018 at 12:24:32 AM UTC+2, Alex Harsanyi wrote:
>
>
>
> On Thursday, September 13, 2018 at 10:19:37 PM UTC+8, Marc Kaufmann wrote:
>>
>> Hi all,
>>
>> for the first time I wanted to use ctags today, which generates a bunch 
>> of tags so that one can jump to and from function definitions and the like 
>> in vim. However, the program generates no tags whatsoever for Racket, which 
>> wasn't too surprising.
>>
>> I am using the vim-racket plugin. Does anyone use vim with ctags -- or 
>> vim with any plugin that does a good job of jumping between definitions and 
>> works with Racket?
>>
>
> The likely problem is that ctags does not recognize the .rkt file 
> extension as a scheme file.  You will need to find what command line option 
> to use to map the .rkt file extension to scheme.  For example, in etags 
> (the Emacs equivalent), I use:
>
> find . -name "*.rkt" -print | etags -l scheme -
>
> Alex. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.