diff options
| author | Darren Hoo | 2013-04-28 01:03:42 +0300 |
|---|---|---|
| committer | Juri Linkov | 2013-04-28 01:03:42 +0300 |
| commit | 3ffa2d4f29440a26680c9ceb9cc81ca18e5f3029 (patch) | |
| tree | fa47a5c5dded84151462beb3f9f4b475e9c5cf41 | |
| parent | 201dbb588d3dba1c7deb9bf8d493a5d34b09622a (diff) | |
| download | emacs-3ffa2d4f29440a26680c9ceb9cc81ca18e5f3029.tar.gz emacs-3ffa2d4f29440a26680c9ceb9cc81ca18e5f3029.zip | |
* lisp/isearch.el (isearch-fail-pos): Check for empty `cmds'.
Fixes: debbugs:14268
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/isearch.el | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e69fe4b9d0f..163f2495849 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-04-27 Darren Hoo <darren.hoo@gmail.com> (tiny change) | ||
| 2 | |||
| 3 | * isearch.el (isearch-fail-pos): Check for empty `cmds'. (Bug#14268) | ||
| 4 | |||
| 1 | 2013-04-27 Glenn Morris <rgm@gnu.org> | 5 | 2013-04-27 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * vc/log-view.el (log-view-current-entry): | 7 | * vc/log-view.el (log-view-current-entry): |
diff --git a/lisp/isearch.el b/lisp/isearch.el index b36b250738a..b38bfc885f7 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -1106,8 +1106,9 @@ If MSG is non-nil, use variable `isearch-message', otherwise `isearch-string'." | |||
| 1106 | (curr-msg (if msg isearch-message isearch-string)) | 1106 | (curr-msg (if msg isearch-message isearch-string)) |
| 1107 | succ-msg) | 1107 | succ-msg) |
| 1108 | (when (or (not isearch-success) isearch-error) | 1108 | (when (or (not isearch-success) isearch-error) |
| 1109 | (while (or (not (isearch--state-success (car cmds))) | 1109 | (while (and cmds |
| 1110 | (isearch--state-error (car cmds))) | 1110 | (or (not (isearch--state-success (car cmds))) |
| 1111 | (isearch--state-error (car cmds)))) | ||
| 1111 | (pop cmds)) | 1112 | (pop cmds)) |
| 1112 | (setq succ-msg (and cmds (if msg (isearch--state-message (car cmds)) | 1113 | (setq succ-msg (and cmds (if msg (isearch--state-message (car cmds)) |
| 1113 | (isearch--state-string (car cmds))))) | 1114 | (isearch--state-string (car cmds))))) |