unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#14268: 24.3.50; isearch-repeat-forward without isearch-forward first signals error
@ 2013-04-25 18:11 Darren Hoo
  2013-04-25 19:27 ` Darren Hoo
  0 siblings, 1 reply; 5+ messages in thread
From: Darren Hoo @ 2013-04-25 18:11 UTC (permalink / raw)
  To: 14268

Start Emacs cleanly and doing an isearch-repeat-forward, it is
expected to show the message [No previous search string] in the
echo area, but it raises the following instead:

Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  isearch-fail-pos(t)
  isearch-message()
  isearch-update()
  isearch-repeat(forward)
  isearch-repeat-forward()
  call-interactively(isearch-repeat-forward nil nil)
  command-execute(isearch-repeat-forward)


In GNU Emacs 24.3.50.1 (x86_64-apple-darwin12.3.0, NS apple-appkit-1187.37)
 of 2013-04-25 on Darren-rMBP.local
Bzr revision: 112377 yamaoka@jpl.org-20130424220721-t957vh44sdvmxj28
Windowing system distributor `Apple', version 10.3.1187
Configured using:
 `configure --with-ns'

diff --git a/lisp/isearch.el b/lisp/isearch.el
index b36b250..b38bfc8 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'."
        (curr-msg (if msg isearch-message isearch-string))
        succ-msg)
     (when (or (not isearch-success) isearch-error)
-      (while (or (not (isearch--state-success (car cmds)))
-                 (isearch--state-error (car cmds)))
+      (while (and cmds
+                 (or (not (isearch--state-success (car cmds)))
+                     (isearch--state-error (car cmds))))
         (pop cmds))
       (setq succ-msg (and cmds (if msg (isearch--state-message (car cmds))
                                 (isearch--state-string (car cmds)))))





^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-27 22:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-25 18:11 bug#14268: 24.3.50; isearch-repeat-forward without isearch-forward first signals error Darren Hoo
2013-04-25 19:27 ` Darren Hoo
2013-04-25 20:57   ` Juri Linkov
2013-04-26  1:18     ` Darren Hoo
2013-04-27 22:04       ` Juri Linkov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).