(isearch-fallback): Check for `(car previous)'
authorJuri Linkov <juri@jurta.org>
Thu, 17 Mar 2005 19:22:55 +0000 (19:22 +0000)
committerJuri Linkov <juri@jurta.org>
Thu, 17 Mar 2005 19:22:55 +0000 (19:22 +0000)
before calling `isearch-other-end-state'.

lisp/ChangeLog
lisp/isearch.el

index c443043..c7ffabf 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-17  Juri Linkov  <juri@jurta.org>
+
+       * isearch.el (isearch-fallback): Check for `(car previous)'
+       before calling `isearch-other-end-state'.
+
 2005-03-17  Kim F. Storm  <storm@cua.dk>
 
        * simple.el (move-beginning-of-line): Move to beginning of buffer
index 68247b9..f44b20b 100644 (file)
@@ -1458,8 +1458,10 @@ barrier."
          ;; `stack' now refers the most recent valid regexp that is not at
          ;; all optional in its last term.  Now dig one level deeper and find
          ;; what matched before that.
-         (let ((last-other-end (or (isearch-other-end-state (car previous))
-                                   isearch-barrier)))
+         (let ((last-other-end
+                (or (and (car previous)
+                         (isearch-other-end-state (car previous)))
+                    isearch-barrier)))
            (goto-char (if isearch-forward
                           (max last-other-end isearch-barrier)
                         (min last-other-end isearch-barrier)))