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 | ab27ee71db711b8295dfb6e9f89d059d2310cc5e (patch) | |
tree | 484985b8adc32e0d95278f473a307fabd82b5059 | |
parent | 001534d64dd74fd0977c2c4421fe029b7a8f62e7 (diff) | |
download | geiser-guile-ab27ee71db711b8295dfb6e9f89d059d2310cc5e.tar.gz geiser-guile-ab27ee71db711b8295dfb6e9f89d059d2310cc5e.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))) |