From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: @#$! new behavior of C-b & C-f in i-search Date: Tue, 18 May 2004 09:05:54 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <8765aup8vx.fsf@mail.jurta.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084860649 6023 80.91.224.253 (18 May 2004 06:10:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 May 2004 06:10:49 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue May 18 08:10:42 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BPxoI-0003oH-00 for ; Tue, 18 May 2004 08:10:42 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BPxoH-0001A7-00 for ; Tue, 18 May 2004 08:10:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BPxnb-00061z-Ec for emacs-devel@quimby.gnus.org; Tue, 18 May 2004 02:09:59 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BPxnG-00060Y-UZ for emacs-devel@gnu.org; Tue, 18 May 2004 02:09:39 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BPxmf-0005ts-5V for emacs-devel@gnu.org; Tue, 18 May 2004 02:09:33 -0400 Original-Received: from [66.33.219.19] (helo=spoon.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BPxme-0005tk-9P; Tue, 18 May 2004 02:09:00 -0400 Original-Received: from mail.jurta.org (80-235-33-218-dsl.mus.estpak.ee [80.235.33.218]) by spoon.dreamhost.com (Postfix) with ESMTP id E686113D88D; Mon, 17 May 2004 23:08:57 -0700 (PDT) Original-To: Miles Bader In-Reply-To: (Miles Bader's message of "18 May 2004 13:51:11 +0900") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23614 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23614 Miles Bader writes: > Grrrrrrrr.... I noticed this problem too. One solution is to always retain one character in the search string. Another solution is to exit isearch when C-b is typed with the empty isearch string. But still apparently C-b and C-f can't be made fully transparent as motion keys, because they change the search string when users use them as motion keys in isearch mode and don't expect that they will change the search history. So other key bindings are needed. I already proposed some of them: (define-key isearch-mode-map "\C-w" 'isearch-yank-word) (define-key isearch-mode-map "\C-\M-w" 'isearch-yank-word-or-char) (define-key isearch-mode-map "\C-\M-b" 'isearch-del-char) (define-key isearch-mode-map "\C-\M-f" 'isearch-yank-char) (define-key isearch-mode-map "\C-w" 'isearch-yank-word-or-char) (define-key isearch-mode-map "\M-w" 'isearch-yank-word) (define-key isearch-mode-map "\C-\M-w" 'isearch-del-char) (define-key isearch-mode-map "\C-\M-y" 'isearch-yank-char) (define-key isearch-mode-map "\C-w" 'isearch-yank-word-or-char) (define-key isearch-mode-map "\M-w" 'isearch-del-char) (define-key isearch-mode-map "\C-\M-w" 'isearch-yank-char) (define-key isearch-mode-map "\C-\M-y" 'isearch-yank-word) The last group seems most preferable since these key are less probable to be used in isearch mode. -- Juri Linkov http://www.jurta.org/emacs/