bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C-s C-s... with no previous string


From: Kevin Rodgers
Subject: Re: C-s C-s... with no previous string
Date: Thu, 02 Jan 2003 11:16:17 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

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 ""))

--
<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;";>Kevin Rodgers</a>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]