summaryrefslogtreecommitdiff
path: root/elisp/geiser-syntax.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-13 20:23:43 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-13 20:23:43 +0100
commit9cfc4087722156e3cb53e425b2f81fd118844d14 (patch)
tree826d8f25c5f52099f12ef72dbc7003872ec36089 /elisp/geiser-syntax.el
parent62d18ab50a048f83d4a67c9f241e6e725fc32528 (diff)
downloadgeiser-guile-9cfc4087722156e3cb53e425b2f81fd118844d14.tar.gz
geiser-guile-9cfc4087722156e3cb53e425b2f81fd118844d14.tar.bz2
Small improvements.
Diffstat (limited to 'elisp/geiser-syntax.el')
-rw-r--r--elisp/geiser-syntax.el11
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))