summaryrefslogtreecommitdiff
path: root/elisp/geiser-syntax.el
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
commit5993ff1119bab5a4ca0985cb50744c18706441e9 (patch)
treed7810ab4cb905238c8c9da3dcca4465308f603aa /elisp/geiser-syntax.el
parent09e96c3c5e766644ca255c3ad704e29550c53ac9 (diff)
downloadgeiser-5993ff1119bab5a4ca0985cb50744c18706441e9.tar.gz
geiser-5993ff1119bab5a4ca0985cb50744c18706441e9.tar.bz2
Tiny refactoring.
Diffstat (limited to 'elisp/geiser-syntax.el')
-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)))