diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-03-02 01:45:04 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-03-02 01:45:04 +0100 |
commit | 5993ff1119bab5a4ca0985cb50744c18706441e9 (patch) | |
tree | d7810ab4cb905238c8c9da3dcca4465308f603aa | |
parent | 09e96c3c5e766644ca255c3ad704e29550c53ac9 (diff) | |
download | geiser-5993ff1119bab5a4ca0985cb50744c18706441e9.tar.gz geiser-5993ff1119bab5a4ca0985cb50744c18706441e9.tar.bz2 |
Tiny refactoring.
-rw-r--r-- | elisp/geiser-syntax.el | 4 |
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))) |