From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.help Subject: Re: Custom backspace delete in mini-buffer Date: Fri, 08 Aug 2008 02:10:09 +0200 Message-ID: <489B8EE1.7060905@gmail.com> References: <18881785.post@talk.nabble.com> <003a01c8f8e6$0ff414c0$c2b22382@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218154250 17239 80.91.229.12 (8 Aug 2008 00:10:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2008 00:10:50 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 08 02:11:41 2008 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.50) id 1KRFZz-0007Do-NG for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Aug 2008 02:11:40 +0200 Original-Received: from localhost ([127.0.0.1]:45242 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRFZ3-0002lA-2P for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Aug 2008 20:10:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRFYm-0002ks-02 for help-gnu-emacs@gnu.org; Thu, 07 Aug 2008 20:10:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRFYk-0002kg-Dl for Help-gnu-emacs@gnu.org; Thu, 07 Aug 2008 20:10:23 -0400 Original-Received: from [199.232.76.173] (port=52547 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRFYk-0002kd-Ay for Help-gnu-emacs@gnu.org; Thu, 07 Aug 2008 20:10:22 -0400 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]:41307) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KRFYj-0007NO-Ji for Help-gnu-emacs@gnu.org; Thu, 07 Aug 2008 20:10:22 -0400 Original-Received: from c83-254-151-176.bredband.comhem.se ([83.254.151.176]:64837 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KRFYg-0004Kb-6c; Fri, 08 Aug 2008 02:10:18 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <003a01c8f8e6$0ff414c0$c2b22382@us.oracle.com> X-Antivirus: avast! (VPS 080807-0, 2008-08-07), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.176 X-ACL-Warn: Too high rate of unknown addresses received from you X-Scan-Result: No virus found in message 1KRFYg-0004Kb-6c. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KRFYg-0004Kb-6c 4d793b2dada2f01cce445175af00097c X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:56266 Archived-At: Drew Adams wrote: >> It works fine, but there is a problem. When I am in i-search >> mode, pressing backspace deletes the last character in the >> window, not in the i-search mini-buffer. >> >> I do not know much about elisp. The function above I just >> "stole" together. What can I do? > > I don't have time to look at this now - hopefully someone else will help you. > > But here's one piece of info that might help a little: isearch does not use the > minibuffer (for normal searching); it uses the echo area. It reads your input > events without using the minibuffer, and it echoes your keys to the echo area in > an incremental way. I am not sure and I have no idea why it should be needed, but try this (define-key isearch-mode-map [backspace] 'isearch-delete-char)