This is the mail archive of the guile@cygnus.com mailing list for the guile project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Tim Pierce <twp@skepsis.com> writes: > > In guile, is there any primitive that permits returning a list of all > > interned symbols that match, say, a certain prefix or regular > > expression. (In case it's not obvious, I'm wondering about the > > potential for a richer, completion-enhanced interaction between Emacs > > and guile [in particular, scwm]). > > Not a primitive, but.... take a look at `apropos' and > `apropos-internal' in the (ice-9 session) module. apropos-internal is just what I needed! Here's some elisp code to add basic Guile support to ilisp, including symbol completition. Put the following at the and of ilisp-sch.el: (defdialect guile "Guile" scheme (setq ilisp-directory-command "(getcwd)" ilisp-set-directory-command "(chdir \"%s\")" ilisp-eval-command "%s" ilisp-package-command "nil" ; Ugly hack to make M-C-x work ilisp-complete-command "(map (lambda (sym) (list (symbol->string sym))) (apropos-internal \"^%s\"))")) (if (not guile-program) (setq guile-program "guile")) And put this in yout .emacs: (autoload 'guile "ilisp" "Inferior Guile." t) -- Istvan