diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2013-06-10 00:06:55 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2013-06-10 00:06:55 +0200 |
commit | 7b1a1d046059eb2ce68ea02706a0e7494c39684f (patch) | |
tree | 8a72cf5b83d913cc29802ecc4d1083b5c8386423 /elisp/geiser-syntax.el | |
parent | bba166c3ccb136fa8321ad9acc9cfd48a5fed357 (diff) | |
download | geiser-guile-7b1a1d046059eb2ce68ea02706a0e7494c39684f.tar.gz geiser-guile-7b1a1d046059eb2ce68ea02706a0e7494c39684f.tar.bz2 |
racket: new ,geiser-load command in REPL
... and used also internally for C-c C-k, although it doesn't yet work
as well as i wanted when it comes to load modules. The reason is
probably in geiser/enter, where we don't record modification times per
submodule but per path, which is not correct in the presence of submodules.
Diffstat (limited to 'elisp/geiser-syntax.el')
-rw-r--r-- | elisp/geiser-syntax.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el index 42e265e..d790734 100644 --- a/elisp/geiser-syntax.el +++ b/elisp/geiser-syntax.el @@ -202,6 +202,9 @@ implementation-specific entries for font-lock-keywords.") (save-excursion (insert string)) (cons (ignore-errors (geiser-syntax--read)) (point)))))) +(defun geiser-syntax--form-from-string (s) + (car (geiser-syntax--read-from-string s))) + (defsubst geiser-syntax--form-after-point (&optional boundary) (let ((geiser-syntax--read/buffer-limit (and (numberp boundary) boundary))) (save-excursion (values (geiser-syntax--read) (point))))) |