summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-03-02 01:45:04 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-03-02 01:45:04 +0100
commitab27ee71db711b8295dfb6e9f89d059d2310cc5e (patch)
tree484985b8adc32e0d95278f473a307fabd82b5059 /elisp
parent001534d64dd74fd0977c2c4421fe029b7a8f62e7 (diff)
downloadgeiser-chez-ab27ee71db711b8295dfb6e9f89d059d2310cc5e.tar.gz
geiser-chez-ab27ee71db711b8295dfb6e9f89d059d2310cc5e.tar.bz2
Tiny refactoring.
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-syntax.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el
index 9cb38c0..e050503 100644
--- a/elisp/geiser-syntax.el
+++ b/elisp/geiser-syntax.el
@@ -95,8 +95,8 @@
(insert "XXXpointXX"))
(let ((depth (nth 0 (parse-partial-sexp (point-min) (point)))))
(unless (zerop depth) (insert (make-string depth ?\)))))
- (let ((res (buffer-substring-no-properties (point-min) (point))))
- (and (not (zerop (length res))) res))))
+ (when (< (point-min) (point))
+ (buffer-substring-no-properties (point-min) (point)))))
(defsubst geiser-syntax--get-partial-sexp ()
(unless (zerop (nth 0 (syntax-ppss)))