From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Info-search-isearch Date: Sun, 29 Oct 2006 22:18:51 +0200 Organization: JURTA Message-ID: <87k62inadw.fsf@jurta.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1162153788 11244 80.91.229.2 (29 Oct 2006 20:29:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Oct 2006 20:29:48 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 29 21:29:44 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GeHHd-0005RX-67 for ged-emacs-devel@m.gmane.org; Sun, 29 Oct 2006 21:29:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GeHHc-0003vA-Rm for ged-emacs-devel@m.gmane.org; Sun, 29 Oct 2006 15:29:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GeHHP-0003rM-MD for emacs-devel@gnu.org; Sun, 29 Oct 2006 15:29:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GeHHN-0003nd-Is for emacs-devel@gnu.org; Sun, 29 Oct 2006 15:29:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GeHHN-0003n9-Ci for emacs-devel@gnu.org; Sun, 29 Oct 2006 15:29:13 -0500 Original-Received: from [62.64.120.200] (helo=relay01.kiev.sovam.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GeHHN-0008OC-3b for emacs-devel@gnu.org; Sun, 29 Oct 2006 15:29:13 -0500 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay01.kiev.sovam.com with esmtp (Exim 4.60) (envelope-from ) id 1GeHHB-000Prc-Im; Sun, 29 Oct 2006 22:29:04 +0200 Original-To: "Drew Adams" In-Reply-To: (Drew Adams's message of "Sun, 29 Oct 2006 11:10:57 -0800") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Scanner-Signature: b3971b7ac160fe45482707327a257f38 X-DrWeb-checked: yes X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 413 [Oct 27 2006] X-SpamTest-Info: {received from trusted relay: not dialup} X-SpamTest-Method: none X-SpamTest-Method: Local Lists X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0242], KAS30/Release X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:61348 Archived-At: > Should we, after the release, come up with a quicker, easier way to toggle > incremental search to/from incremental word searching? I have a better idea now for implementing this. A new command like: (defun isearch-toggle-word () "Toggle word searching on or off." (interactive) (setq isearch-word (not isearch-word)) (setq isearch-success t isearch-adjusted t) (isearch-update)) and a new keybinding: (define-key isearch-mode-map "\M-sw" 'isearch-toggle-word) will provide a easier way to toggle on/off incremental word search. A new prefix key M-s seems like a good key to put all other isearch-related keybindings on it too: (define-key isearch-mode-map "\M-s\C-y" 'isearch-yank-kill) (define-key isearch-mode-map "\M-se" 'isearch-edit-string) (define-key isearch-mode-map "\M-sr" 'isearch-toggle-regexp) (define-key isearch-mode-map "\M-sc" 'isearch-toggle-case-fold) ... > WDOT? Should Juri's tip be documented now, say in node Word Search of > the Emacs manual? If so, we should also mention how to toggle back to > non-word incremental search. Since it is too late for this release to make improvements, I think we should at least document this tip in the Emacs manual. > (We should call this incremental word search, BTW, not > "half-incremental" search.) I call it "half-incremental" because when you get into this search mode (via `C-x M-e C-w WORDS C-s'), and start typing more words, incremental search doesn't find them until you finish typing complete words, so word search is not fully incremental. However, I don't propose to use the term "half-incremental" in the documentation, since this is an inherent limitation of incremental word search. -- Juri Linkov http://www.jurta.org/emacs/