aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJuri Linkov2005-03-17 19:22:55 +0000
committerJuri Linkov2005-03-17 19:22:55 +0000
commit5a1f9fcfea78b08c75e31af2d8f05c15a3b41622 (patch)
treec79e067f13e0ed79819fc35a1c489567d7d5d024 /lisp
parent3c916d6555803a089eb3fc75223a0a90a21f9b84 (diff)
downloademacs-5a1f9fcfea78b08c75e31af2d8f05c15a3b41622.tar.gz
emacs-5a1f9fcfea78b08c75e31af2d8f05c15a3b41622.zip
(isearch-fallback): Check for `(car previous)'
before calling `isearch-other-end-state'.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/isearch.el6
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c4430437d68..c7ffabf3e6a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12005-03-17 Juri Linkov <juri@jurta.org>
2
3 * isearch.el (isearch-fallback): Check for `(car previous)'
4 before calling `isearch-other-end-state'.
5
12005-03-17 Kim F. Storm <storm@cua.dk> 62005-03-17 Kim F. Storm <storm@cua.dk>
2 7
3 * simple.el (move-beginning-of-line): Move to beginning of buffer 8 * simple.el (move-beginning-of-line): Move to beginning of buffer
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 68247b96980..f44b20b3eda 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -1458,8 +1458,10 @@ barrier."
1458 ;; `stack' now refers the most recent valid regexp that is not at 1458 ;; `stack' now refers the most recent valid regexp that is not at
1459 ;; all optional in its last term. Now dig one level deeper and find 1459 ;; all optional in its last term. Now dig one level deeper and find
1460 ;; what matched before that. 1460 ;; what matched before that.
1461 (let ((last-other-end (or (isearch-other-end-state (car previous)) 1461 (let ((last-other-end
1462 isearch-barrier))) 1462 (or (and (car previous)
1463 (isearch-other-end-state (car previous)))
1464 isearch-barrier)))
1463 (goto-char (if isearch-forward 1465 (goto-char (if isearch-forward
1464 (max last-other-end isearch-barrier) 1466 (max last-other-end isearch-barrier)
1465 (min last-other-end isearch-barrier))) 1467 (min last-other-end isearch-barrier)))