From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joseph Garvin Newsgroups: gmane.emacs.help Subject: How to make emacs clear search when pressing Ctrl+g? Date: Wed, 10 Feb 2010 15:34:35 -0600 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1265859292 15669 80.91.229.12 (11 Feb 2010 03:34:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Feb 2010 03:34:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 11 04:34:50 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NfPoZ-0004XN-Hi for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Feb 2010 04:34:03 +0100 Original-Received: from localhost ([127.0.0.1]:51881 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfPoZ-0006bk-00 for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Feb 2010 22:34:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfKCn-0006CZ-Eo for help-gnu-emacs@gnu.org; Wed, 10 Feb 2010 16:34:41 -0500 Original-Received: from [199.232.76.173] (port=49308 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfKCm-0006Bl-Kt for help-gnu-emacs@gnu.org; Wed, 10 Feb 2010 16:34:40 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NfKCj-0001JW-LD for help-gnu-emacs@gnu.org; Wed, 10 Feb 2010 16:34:40 -0500 Original-Received: from mail-iw0-f195.google.com ([209.85.223.195]:58157) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NfKCj-0001JN-7w for help-gnu-emacs@gnu.org; Wed, 10 Feb 2010 16:34:37 -0500 Original-Received: by iwn33 with SMTP id 33so631497iwn.5 for ; Wed, 10 Feb 2010 13:34:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=/l5iX/lB1Efhsw/YQ5/fGTSurYb73XVpzkBM87ZNezY=; b=mqUif9F8zdUAEZfN23Wuz8BboDuKzLgfhDzgPTrxMrbkllupjIh+ZbhaBzGDZiXAmF 0PlGc5STrw7waw2FjIE4AsEzjzPLE7V0mLOS6W8YOWHnxb94D1VbElzIxYTjLA4TaxpB KHr9lqIb6IKo/jejirRUH9qw/nUub0CK1bdys= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=Qyo7hqJfiS6AFewuog1n5yzY1J0eKLP/gQj22sXwVyt3fJSLb5pOt3YoKiWICEA7YZ OOfSa3ytUNtyyvBAW8MUHiIptzC/VUWH2qxvDVUhbZuujWUxicLEj9THhManmM/BwkaI hCv+yqz+a1trmrzSItrCR7hNReVuY7FCah5ps= Original-Received: by 10.231.156.205 with SMTP id y13mr1464783ibw.27.1265837675671; Wed, 10 Feb 2010 13:34:35 -0800 (PST) X-Google-Sender-Auth: ffb3ac7c92e35474 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Wed, 10 Feb 2010 22:30:10 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71786 Archived-At: Sometimes when I'm doing a forward search (Ctrl+s) I realize I actually wanted to search for something different. As a shortcut to clear the search rather than having to backspace, I press Ctrl+g to cancel the search then press Ctrl+s again to begin a new search. But if you do this without moving the cursor between the Ctrl+g and the Ctrl+s steps, then the minibuffer will keep what I was searching for before in it, defeating the whole point. Is there a good reason this is the default behavior? I'm not sure what the advantage would be. And regardless, is there an easy way to make it always clear as if I had moved the cursor between the Ctrl+g and Ctrl+s steps?