Age | Commit message (Collapse) | Author |
|
This commit adds support for processing texinfo in docstrings. That allows
using texinfo in them while still having readable, nicely formatted plain text
representation in geiser-doc-symbol-at-point.
Fixes #43.
* geiser-guile.el (geiser-guile-doc-process-texinfo): New custom controlling the
behavior.
(geiser-guile-update-doc-process-texinfo): New procedure to apply change of the
controlling custom to a current REPL.
(geiser-guile--startup): Call it.
* geiser-guile.texi (Start up): Document the custom.
* src/geiser/doc.scm (%process-texinfo?): New variable.
(try-texinfo->plain-text): New procedure.
(docstring): Call it on doc iff doc.
|
|
Fixes issue #38 (use-modules not completed at buffers) by excluding trailing
parens from module name completion prefixes. Things could be better if geiser
detected that in, say
(use-modules (ice-9 and|
one is still completing a module name (right now, it notices that `and' can be
completed as a procedure/macro name), but that has always been above module
name completion's paycheck.
|
|
using ideas and code from Christine Lemmer-Webber, see #25 for discussion.
|
|
|
|
program-arities is expected (in its only usage a few lines below its
definition) to return #f if program-address-range doesn't return anything
useful, and i was incorrectly using when instead of and for that.
|
|
program-arities now returns an empty list if no arities information is found.
This fixes the bug that happens when calling, say, `(autodoc '(display))`,
which leads to following error:
```
scheme@(guile-user)> (autodoc '(display))
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
In procedure map: Wrong type argument: #<unspecified>
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]> ,q
```
|
|
|
|
|
|
Fixes emacs-geiser/guile#9
In geiser-eval REPL meta-command:
All `mod`, `form` and `args` are now syntax objects. The
geiser-guile's logic will handle `mod` and `form` as is because
they're just passed to guile's eval and compile procedures.
`args` are processed by geiser-eval meta-command itself, so
it's necessary to convert it back to a datum. We lose some metadata,
but all elements in the `args` list are also syntax objects so I don't
think it's a big deal.
`syntax->datum` was introduced before guile 2 so this change is
backward compatible.
|
|
|