diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-02-13 20:23:43 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-02-13 20:23:43 +0100 |
commit | cfd1fdcd949b71251157acdcb8ab92d6d0c4169c (patch) | |
tree | 678fa7d5fa00ea477ad0b1c405e082d9c69c99f7 /elisp/geiser-syntax.el | |
parent | 4ba2141701d636a8465ea82aaecc29020f3dcde3 (diff) | |
download | geiser-cfd1fdcd949b71251157acdcb8ab92d6d0c4169c.tar.gz geiser-cfd1fdcd949b71251157acdcb8ab92d6d0c4169c.tar.bz2 |
Small improvements.
Diffstat (limited to 'elisp/geiser-syntax.el')
-rw-r--r-- | elisp/geiser-syntax.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el index c192a1f..0218f06 100644 --- a/elisp/geiser-syntax.el +++ b/elisp/geiser-syntax.el @@ -75,11 +75,12 @@ (forward-char) (let ((proc (symbol-at-point)) (arg-no 0)) - (while (< (point) p) - (forward-sexp) - (when (< (point) p) (setq arg-no (1+ arg-no)))) - (push (cons proc arg-no) data))))) - (reverse (push current data))))) + (when proc + (while (< (point) p) + (forward-sexp) + (when (< (point) p) (setq arg-no (1+ arg-no)))) + (push (cons proc arg-no) data)))))) + (reverse (if (car current) (push current data) data))))) (defun geiser-syntax--prepare-scheme-for-elisp-reader () (goto-char (point-min)) |