[racket-users] Small feature request: keyboard shortcut in HelpDesk to go to search

2015-06-16 Thread Laurent
In case it's simple enough, would it be possible to have a keyboard
shortcut in the HelpDesk to go to the search bar, on any help page?

(Btw, I can't even reach the search bar by repeatedly pressing Tab on
Chrome at least.)

Thanks!
Laurent

-- 
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] tex2page and Racket(latest version) problem

2015-06-16 Thread youga

I want to use tex2page on my mac. tex2page use a scheme compiler.
I follow the tex2page install, but I can't run it.

Shell:  
/usr/local/bin/tex2page: line 2: /usr/local/bin/racket: cannot execute binary 
file

how to solve it?
thanks

-- 
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] DrRacket stubbornly indents code as if it were Racket

2015-06-16 Thread Gustavo Massaccesi
You can select the "text mode" in the menu

  Edit>Modes(near the bottom)>Text mode

It disables indentation, but it may disable too many features.

For example it disables also parens matching :( .

And it also disables background syntax expansion, but you can still
use the "check syntax" button manually.

(Perhaps you can create a "no-indent" mode, I didn't look at the code.)

Gustavo

On Tue, Jun 16, 2015 at 1:20 AM, Yuhao Dong  wrote:
> Greetings Racketeers,
>
> I'm trying to make my own #lang that has a non-sexp syntax, like Scribble.
> However, the problem is the DrRacket always tries to indent my code as if it
> were Racket, which is extremely unusable and annoying.
>
> Since changing DrRacket's indenting behaviors seems undocumented, I looked
> at how Scribble did it, and then I put what I thought must be correct code
> here:
>
> https://github.com/quantum1423/mir/blob/master/lang/reader.rkt
>
> However, DrRacket still indents my code as if it were Racket, although it
> does turn off syntax highlighting correctly. I added the with-output-to-file
> line to see if the drracket:indentation branch is ever executed, but
> apparently it isn't.
>
> How does Scribble manage to get DrRacket to indent it in a non-sexp way?
>
> Thanks!
> Yuhao Dong
>
> --
> 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] DrRacket stubbornly indents code as if it were Racket

2015-06-16 Thread Yuhao Dong
I'm clearly referring to the mechanism in which a #lang can tell DrRacket to 
use a different indenting mode in "Racket mode", not anything to do with text 
mode. 

> From: gust...@oma.org.ar
> Date: Tue, 16 Jun 2015 10:22:43 -0300
> Subject: Re: [racket-users] DrRacket stubbornly indents code as if it were 
> Racket
> To: yd2d...@uwaterloo.ca
> CC: racket-users@googlegroups.com
> 
> You can select the "text mode" in the menu
> 
>   Edit>Modes(near the bottom)>Text mode
> 
> It disables indentation, but it may disable too many features.
> 
> For example it disables also parens matching :( .
> 
> And it also disables background syntax expansion, but you can still
> use the "check syntax" button manually.
> 
> (Perhaps you can create a "no-indent" mode, I didn't look at the code.)
> 
> Gustavo
> 
> On Tue, Jun 16, 2015 at 1:20 AM, Yuhao Dong  wrote:
> > Greetings Racketeers,
> >
> > I'm trying to make my own #lang that has a non-sexp syntax, like Scribble.
> > However, the problem is the DrRacket always tries to indent my code as if it
> > were Racket, which is extremely unusable and annoying.
> >
> > Since changing DrRacket's indenting behaviors seems undocumented, I looked
> > at how Scribble did it, and then I put what I thought must be correct code
> > here:
> >
> > https://github.com/quantum1423/mir/blob/master/lang/reader.rkt
> >
> > However, DrRacket still indents my code as if it were Racket, although it
> > does turn off syntax highlighting correctly. I added the with-output-to-file
> > line to see if the drracket:indentation branch is ever executed, but
> > apparently it isn't.
> >
> > How does Scribble manage to get DrRacket to indent it in a non-sexp way?
> >
> > Thanks!
> > Yuhao Dong
> >
> > --
> > 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.
  

-- 
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] DrRacket stubbornly indents code as if it were Racket

2015-06-16 Thread Matthias Felleisen

You will need to find where drracket parses the first line and then install the 
mode that you want. I do not know whether a language per se can access this 
line. But we are moving toward #lang precisely for that purpose. I am sure 
Robby will welcome proposal on how to change this and even patches (he's 
currently in a different time zone). -- Matthias




On Jun 16, 2015, at 10:04 AM, Yuhao Dong  wrote:

> I'm clearly referring to the mechanism in which a #lang can tell DrRacket to 
> use a different indenting mode in "Racket mode", not anything to do with text 
> mode. 
> 
> 
> > From: gust...@oma.org.ar
> > Date: Tue, 16 Jun 2015 10:22:43 -0300
> > Subject: Re: [racket-users] DrRacket stubbornly indents code as if it were 
> > Racket
> > To: yd2d...@uwaterloo.ca
> > CC: racket-users@googlegroups.com
> > 
> > You can select the "text mode" in the menu
> > 
> > Edit>Modes(near the bottom)>Text mode
> > 
> > It disables indentation, but it may disable too many features.
> > 
> > For example it disables also parens matching :( .
> > 
> > And it also disables background syntax expansion, but you can still
> > use the "check syntax" button manually.
> > 
> > (Perhaps you can create a "no-indent" mode, I didn't look at the code.)
> > 
> > Gustavo
> > 
> > On Tue, Jun 16, 2015 at 1:20 AM, Yuhao Dong  wrote:
> > > Greetings Racketeers,
> > >
> > > I'm trying to make my own #lang that has a non-sexp syntax, like Scribble.
> > > However, the problem is the DrRacket always tries to indent my code as if 
> > > it
> > > were Racket, which is extremely unusable and annoying.
> > >
> > > Since changing DrRacket's indenting behaviors seems undocumented, I looked
> > > at how Scribble did it, and then I put what I thought must be correct code
> > > here:
> > >
> > > https://github.com/quantum1423/mir/blob/master/lang/reader.rkt
> > >
> > > However, DrRacket still indents my code as if it were Racket, although it
> > > does turn off syntax highlighting correctly. I added the 
> > > with-output-to-file
> > > line to see if the drracket:indentation branch is ever executed, but
> > > apparently it isn't.
> > >
> > > How does Scribble manage to get DrRacket to indent it in a non-sexp way?
> > >
> > > Thanks!
> > > Yuhao Dong
> > >
> > > --
> > > 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 toracket-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 toracket-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] tex2page and Racket(latest version) problem

2015-06-16 Thread Vincent St-Amour
Hi,

How did you install Racket? It looks like you have used the wrong
installer. You probably want the Mac OS 64 bit version.

Vincent


On Tue, 16 Jun 2015 07:21:30 -0500,
youga wrote:
> 
> I want to use tex2page on my mac. tex2page use a scheme compiler.
> I follow the tex2page install, but I can't run it.
> 
> Shell:  
> /usr/local/bin/tex2page: line 2: /usr/local/bin/racket: cannot execute binary 
> file
> 
> how to solve it?
> thanks
> 
> -- 
> 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.


[racket-users] time_t and size_t ffi types

2015-06-16 Thread Eric Dobson
I'm currently on working on bindings to a foreign library that has elements
in structs that are defined as time_t and size_t. I couldn't find anything
in the core ffi types that corresponded to these, so currently I am using
int64_t as that was what I found was correct for the system I'm currently
working on (OS X), which might not work when I try to port this to other
OS's (Linux).

What is the best practice for using such types, is there any core c-type I
should use or should I just roll my own?

-- 
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] time_t and size_t ffi types

2015-06-16 Thread Marc Burns
What about _size in ffi/unsafe ?

> On Jun 14, 2015, at 1:39 PM, Eric Dobson  wrote:
> 
> I'm currently on working on bindings to a foreign library that has elements 
> in structs that are defined as time_t and size_t. I couldn't find anything in 
> the core ffi types that corresponded to these, so currently I am using 
> int64_t as that was what I found was correct for the system I'm currently 
> working on (OS X), which might not work when I try to port this to other OS's 
> (Linux).
> 
> What is the best practice for using such types, is there any core c-type I 
> should use or should I just roll my own?
> 
> -- 
> 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.


[racket-users] no plot zooming on local build--update procedure wrong?

2015-06-16 Thread 'John Clements' via users-redirect
I notice that currently, plot snips are not zoomable in my local build. The 
release candidate doesn’t seem to have this problem. I believe I’ve had this 
problem since before the release candidate was built. This suggests to me that 
the problem is not that there’s a bug in the code, but rather that my 
installation is messed up somehow. 

I’m up to date on the git.racket-lang.org repo, and I just ran ‘make’, and I’m 
still seeing the problem.

I’m guessing that I could fix this by discarding my tree and building again 
from scratch, but if my update procedure is wrong (git fetch then ‘make’), I’ll 
keep having this problem again and again.

Any ideas?

Many thanks,

John

-- 
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] no plot zooming on local build--update procedure wrong?

2015-06-16 Thread Matthew Butterick
I've had the same issue with plot zooming not working from my git build. I 
don't have a theory but it at least suggests the problem may not be strictly 
localized.



> On Jun 16, 2015, at 1:10 PM, 'John Clements' via users-redirect 
>  wrote:
> 
> I notice that currently, plot snips are not zoomable in my local build. The 
> release candidate doesn’t seem to have this problem. I believe I’ve had this 
> problem since before the release candidate was built. This suggests to me 
> that the problem is not that there’s a bug in the code, but rather that my 
> installation is messed up somehow. 
> 
> I’m up to date on the git.racket-lang.org repo, and I just ran ‘make’, and 
> I’m still seeing the problem.
> 
> I’m guessing that I could fix this by discarding my tree and building again 
> from scratch, but if my update procedure is wrong (git fetch then ‘make’), 
> I’ll keep having this problem again and again.
> 
> Any ideas?
> 
> Many thanks,
> 
> John
> 
> -- 
> 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.