]> code.delx.au - gnu-emacs-elpa/commitdiff
fix a condition in el-search--do-subsexps
authorMichael Heerdegen <michael_heerdegen@web.de>
Fri, 25 Sep 2015 20:30:38 +0000 (22:30 +0200)
committerMichael Heerdegen <michael_heerdegen@web.de>
Sun, 11 Oct 2015 09:29:10 +0000 (11:29 +0200)
packages/el-search/el-search.el

index 84f98e46c5fe3b21d2d7e927702808ae8d526c13..dd0f2ce2d4c8255b6761e6b0003729bbfe2b8d10 100644 (file)
@@ -337,7 +337,7 @@ return nil (no error)."
   (save-excursion
     (goto-char pos)
     (condition-case nil
-        (while (or (not bound) (< (point) bound))
+        (while (< (point) (or bound (point-max)))
           (let* ((this-sexp-end (save-excursion (thing-at-point--end-of-sexp) (point)))
                  (this-sexp (buffer-substring-no-properties (point) this-sexp-end)))
             (funcall do-fun this-sexp this-sexp-end))