From 135f293b2a0bf4fac7afd802618ccc5c84f2c5d9 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 6 Jan 2003 01:21:15 +0000 Subject: [PATCH] (isearch-repeat): Error if try to repeat search and there was no previou search. --- lisp/isearch.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/isearch.el b/lisp/isearch.el index b8103285aec..5b9fe461068 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -978,7 +978,7 @@ Use `isearch-exit' to quit without signaling." (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 "") -- 2.11.4.GIT