From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: C-s C-s... with no previous string Date: Thu, 02 Jan 2003 11:16:17 -0700 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3E1481F1.2090203@ihs.com> References: <874r8so48l.fsf@jidanni.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1041532822 13558 80.91.224.249 (2 Jan 2003 18:40:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 2 Jan 2003 18:40:22 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18UAGN-0003WN-00 for ; Thu, 02 Jan 2003 19:40:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18UAGq-0002Zm-02 for gnu-bug-gnu-emacs@m.gmane.org; Thu, 02 Jan 2003 13:40:44 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18UABQ-00011a-00 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2003 13:35:08 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18UA8E-0008Pl-00 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2003 13:31:52 -0500 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18UA7w-0008L8-00 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2003 13:31:32 -0500 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18UA6k-0002oN-00 for ; Thu, 02 Jan 2003 19:30:18 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18U9s9-0001k8-00 for ; Thu, 02 Jan 2003 19:15:13 +0100 Original-Path: not-for-mail Original-Lines: 36 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4134 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4134 Dan Jacobson wrote: > Maybe emacs should say something if no previous string is known: > $ emacs > C-s C-s [C-s...] > > At it is it feels like one has hit XOFF :-) I agree. Here's one way to do it: *** emacs-20.7/lisp/isearch.el.orig Wed May 31 05:43:30 2000 --- emacs-20.7/lisp/isearch.el Thu Jan 2 11:12:27 2003 *************** *** 906,912 **** (or (if isearch-regexp (car regexp-search-ring) (car search-ring)) ! "") isearch-message (mapconcat 'isearch-text-char-description isearch-string "")) --- 906,915 ---- (or (if isearch-regexp (car regexp-search-ring) (car search-ring)) ! (progn ! (message "Search ring is empty") ! (sleep-for 1) ! "")) isearch-message (mapconcat 'isearch-text-char-description isearch-string "")) -- Kevin Rodgers