[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Scm-discuss] Re: tab completion
From: |
Aubrey Jaffer |
Subject: |
[Scm-discuss] Re: tab completion |
Date: |
Tue, 3 Jun 2008 12:25:16 -0400 (EDT) |
| Date: Mon, 2 Jun 2008 13:39:49 -0500
| From: address@hidden
|
| On Mon, Jun 02, 2008 at 02:28:41PM -0400, Aubrey Jaffer wrote:
| > | Date: Mon, 2 Jun 2008 11:47:26 -0500
| > | From: address@hidden
| > |
| > | Hello,
| > |
| > | apologies about the direct question but I couldn't find the
| > | answer in the documentation: is there a tab completion for scm
| > | the same way as ipython's? I am running OpenBSD.
| > |
| > | Thanks
| > | michele
| >
| > I am not familiar with ipython, but using the edit-line package
| > [(require 'edit-line)] in SCM will complete filenames with tab.
| > I think you can enable other completion behaviors in your
| > ".inputrc" file.
|
| Thank you for the reply. What I wanted to ask is whether within the
| interpreter pressing tab on "(def" will complete it to "(define".
| Or if a function "funct" was previously defined, "(f TAB" will show
| the list of possible completions, including "funct".
Building scm with the feature "edit-line", or compiling "edline.c" to
a dll (and doing (require 'edit-line)) will enable history and line
editing via the GNU Readline package.
See http://swiss.csail.mit.edu/~jaffer/scm_5.html#SEC84
http://tiswww.case.edu/php/chet/readline/readline.html describes the
readline package. You can configure readline to complete a set of
names like "define" in the .inputrc file in your home directory, or by
calling functions in the readline C library. By calling functions in
the readline C library, one could also implement completion of
variable names. But "edline.c" as it exists currently is minimal. If
someone figures out from
http://tiswww.case.edu/php/chet/readline/readline.html what needs to
be called in the readline library, then I will add hooks and wrappers
for those functions to "edline.c", and SCM will have the spiffy
completion behavior you are interested in.