changeset 49069:50db4854d2eb

(isearch-repeat): Error if try to repeat search and there was no previou search.
author Richard M. Stallman <rms@gnu.org>
date Mon, 06 Jan 2003 01:21:15 +0000
parents a6b76c097634
children 17cf54c383f2
files lisp/isearch.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/isearch.el	Mon Jan 06 01:20:35 2003 +0000
+++ b/lisp/isearch.el	Mon Jan 06 01:21:15 2003 +0000
@@ -978,7 +978,7 @@
 		(or (if isearch-regexp
 			(car regexp-search-ring)
 		      (car search-ring))
-		    "")
+		    (error "No previous search string"))
 		isearch-message
 		(mapconcat 'isearch-text-char-description
 			   isearch-string "")