Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
newbie drracket usage questions
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
D Herring  
View profile  
 More options Jul 31 2012, 12:53 am
From: D Herring <dherr...@tentpost.com>
Date: Tue, 31 Jul 2012 00:53:52 -0400
Local: Tues, Jul 31 2012 12:53 am
Subject: [racket] newbie drracket usage questions
Hi,

How would one accomplish the following in DrRacket?

"apropos" (CL/shell) or "lookfor" (Matlab)
Given a search string, return a list of symbols with matching name or
documentation.
I found that XRepl has the ,apropos command; but I haven't figured out
an easy way to invoke it in DrRacket.

Finding the source of definitions.
a la ctags or
http://common-lisp.net/project/slime/doc/html/Finding-definitions.html
Given a function or global parameter, open the file that defined it
and scroll to the definition.
I found documentation for storing source locations, but nothing on how
to query the information.

Thanks,
Daniel

____________________
  Racket Users list:
  http://lists.racket-lang.org/users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Cleis  
View profile  
 More options Jul 31 2012, 1:15 am
From: Richard Cleis <rcl...@me.com>
Date: Mon, 30 Jul 2012 23:15:44 -0600
Local: Tues, Jul 31 2012 1:15 am
Subject: Re: [racket] newbie drracket usage questions

On Jul 30, 2012, at 10:53 PM, D Herring wrote:

> Hi,

> How would one accomplish the following in DrRacket?

> "apropos" (CL/shell) or "lookfor" (Matlab)
> Given a search string, return a list of symbols with matching name or documentation.
> I found that XRepl has the ,apropos command; but I haven't figured out an easy way to invoke it in DrRacket.

Do you mean: do that within Racket, or from Racket?

You can use the shell with (system "apropos ..."), but I don't know how useful that is for Racket docs.

Within Racket you can use the F1 key to get to the docs that tell you where a function lives. That
opens a web browser that allows you to type strings for more searching (locally and not).

I fear I am telling you things that you already know. :O)

rac

> Finding the source of definitions.
> a la ctags or http://common-lisp.net/project/slime/doc/html/Finding-definitions.html
> Given a function or global parameter, open the file that defined it and scroll to the definition.
> I found documentation for storing source locations, but nothing on how to query the information.

> Thanks,
> Daniel

> ____________________
> Racket Users list:
> http://lists.racket-lang.org/users

____________________
  Racket Users list:
  http://lists.racket-lang.org/users

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
D Herring  
View profile  
 More options Jul 31 2012, 1:52 am
From: D Herring <dherr...@tentpost.com>
Date: Tue, 31 Jul 2012 01:52:19 -0400
Local: Tues, Jul 31 2012 1:52 am
Subject: Re: [racket] newbie drracket usage questions
On 07/31/2012 01:15 AM, Richard Cleis wrote:

Thanks for the quick response.  Unfortunately, I had found the web
browser thingy (and had to enable javascript for it to work).  :)

I am looking for functions that search for racket functions and return
racket data structures that describe them.  The key pieces of
information is the name (so it can be used) and the source location
(so the implementation can be learned and possibly modified).

Thanks,
Daniel

____________________
  Racket Users list:
  http://lists.racket-lang.org/users

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pierpaolo Bernardi  
View profile  
 More options Jul 31 2012, 3:45 am
From: Pierpaolo Bernardi <olopie...@gmail.com>
Date: Tue, 31 Jul 2012 09:45:00 +0200
Subject: Re: [racket] newbie drracket usage questions

On Tue, Jul 31, 2012 at 7:52 AM, D Herring <dherr...@tentpost.com> wrote:
> On 07/31/2012 01:15 AM, Richard Cleis wrote:

> I am looking for functions that search for racket functions and return
> racket data structures that describe them.  The key pieces of information is
> the name (so it can be used) and the source location (so the implementation
> can be learned and possibly modified).

I don't know about the return data structures part, but, if finding
manually the definition of functions suffices you, you can "check
syntax" and then right clicking on a symbol offers the "jump to
definition" command.

HTH
____________________
  Racket Users list:
  http://lists.racket-lang.org/users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthias Felleisen  
View profile  
 More options Jul 31 2012, 8:38 am
From: Matthias Felleisen <matth...@ccs.neu.edu>
Date: Tue, 31 Jul 2012 08:38:19 -0400
Local: Tues, Jul 31 2012 8:38 am
Subject: Re: [racket] newbie drracket usage questions

On Jul 31, 2012, at 1:52 AM, D Herring wrote:

> Thanks for the quick response.  Unfortunately, I had found the web browser thingy (and had to enable javascript for it to work).  :)

> I am looking for functions that search for racket functions and return racket data structures that describe them.  The key pieces of information is the name (so it can be used) and the source location (so the implementation can be learned and possibly modified).

As someone mentioned, DrRacket provides a GUI-version of this functionality with 'check syntax'. In #lang programs, 'check syntax' is always on and the information is always available.

If you want a programmatic way to access this information, you'd have to hook into 'check syntax' before it colors the editor.

-- Matthias

____________________
  Racket Users list:
  http://lists.racket-lang.org/users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robby Findler  
View profile  
 More options Jul 31 2012, 8:44 am
From: Robby Findler <ro...@eecs.northwestern.edu>
Date: Tue, 31 Jul 2012 07:44:49 -0500
Local: Tues, Jul 31 2012 8:44 am
Subject: Re: [racket] newbie drracket usage questions
Since no one mentioned it yet: if you want a shell-script based way to
tell the docs what to search for, you can use 'raco docs lambda' to
search for 'lambda'.

Robby

On Tue, Jul 31, 2012 at 7:38 AM, Matthias Felleisen

____________________
  Racket Users list:
  http://lists.racket-lang.org/users

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
D Herring  
View profile  
 More options Jul 31 2012, 7:39 pm
From: D Herring <dherr...@tentpost.com>
Date: Tue, 31 Jul 2012 19:39:33 -0400
Local: Tues, Jul 31 2012 7:39 pm
Subject: Re: [racket] newbie drracket usage questions
On 07/31/2012 03:45 AM, Pierpaolo Bernardi wrote:

> I don't know about the return data structures part, but, if finding
> manually the definition of functions suffices you, you can "check
> syntax" and then right clicking on a symbol offers the "jump to
> definition" command.

Thanks to everyone for their help.  Together with the documentation,
this check-syntax technique satisfies my current needs.

- Daniel

____________________
  Racket Users list:
  http://lists.racket-lang.org/users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »