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
commit1d8477f7cd318b5692e5650901ac5ac9af6f19c6 (patch)
tree240e634b76df74767c5ca641e59413856821fd30 /elisp/geiser-syntax.el
parent5ee2ae3ccd73f5dfae68db011c581f918eea8751 (diff)
downloadgeiser-guile-1d8477f7cd318b5692e5650901ac5ac9af6f19c6.tar.gz
geiser-guile-1d8477f7cd318b5692e5650901ac5ac9af6f19c6.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))