summaryrefslogtreecommitdiff
path: root/elisp/geiser-syntax.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-14 22:15:09 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-02-14 22:15:09 +0100
commit740a937e41497baeb57d73a89db113bcdd7644ca (patch)
tree46d5dde00143ad37668d68aab582cd5066f760a1 /elisp/geiser-syntax.el
parent11a64e7405ade65d48c28c578dfb18d15f9499d1 (diff)
downloadgeiser-740a937e41497baeb57d73a89db113bcdd7644ca.tar.gz
geiser-740a937e41497baeb57d73a89db113bcdd7644ca.tar.bz2
Autodoc: try symbol at point first. Some cleanups.
Diffstat (limited to 'elisp/geiser-syntax.el')
-rw-r--r--elisp/geiser-syntax.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el
index 0218f06..24e51df 100644
--- a/elisp/geiser-syntax.el
+++ b/elisp/geiser-syntax.el
@@ -65,9 +65,9 @@
(defun geiser-syntax--enclosing-form-data ()
(save-excursion
- (let ((p (geiser-syntax--end-of-thing))
- (current (cons (symbol-at-point) 0))
- (data))
+ (let* ((p (geiser-syntax--end-of-thing))
+ (current (cons (symbol-at-point) 0))
+ (data (when (car current) (list current))))
(ignore-errors
(while (not (bobp))
(backward-up-list)
@@ -80,7 +80,7 @@
(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)))))
+ (reverse data))))
(defun geiser-syntax--prepare-scheme-for-elisp-reader ()
(goto-char (point-min))