From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#8861: 24.0.50; Isearch: Repeating the last search Date: Tue, 14 Jun 2011 21:33:09 +0400 Organization: JURTA Message-ID: <87d3ig1foq.fsf@mail.jurta.org> References: <19F65DC210FE45AC84732F8E76A374AA@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308073922 8845 80.91.229.12 (14 Jun 2011 17:52:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Jun 2011 17:52:02 +0000 (UTC) Cc: 8861@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 14 19:51:58 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QWXmP-0002rO-V9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Jun 2011 19:51:58 +0200 Original-Received: from localhost ([::1]:33453 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWXmO-000807-Fb for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Jun 2011 13:51:56 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWXY1-0004JJ-N5 for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2011 13:37:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWXXz-0006WJ-PH for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2011 13:37:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34089) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWXXz-0006W5-EI for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2011 13:37:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QWXXy-00013d-D8; Tue, 14 Jun 2011 13:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Jun 2011 17:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8861 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8861-submit@debbugs.gnu.org id=B8861.13080730114044 (code B ref 8861); Tue, 14 Jun 2011 17:37:02 +0000 Original-Received: (at 8861) by debbugs.gnu.org; 14 Jun 2011 17:36:51 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QWXXn-00013B-4H for submit@debbugs.gnu.org; Tue, 14 Jun 2011 13:36:51 -0400 Original-Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QWXXl-00012y-Ub for 8861@debbugs.gnu.org; Tue, 14 Jun 2011 13:36:50 -0400 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 579236E80B3; Tue, 14 Jun 2011 10:36:44 -0700 (PDT) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 16298451C0C4; Tue, 14 Jun 2011 10:36:42 -0700 (PDT) In-Reply-To: (Dani Moncayo's message of "Tue, 14 Jun 2011 15:52:30 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 14 Jun 2011 13:37:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:47140 Archived-At: > I expect that, whenever Isearch is active, the search string will > always be highlighted to reflect the matched and unmatched parts at > every moment, regardless of how that string has been introduced > (char by char, by copy&paste, by "C-s C-s", Currently it's possible to reproduce the behavior you are asking for, by copy&paste from the system clipboard into Emacs running in xterm (it pastes char by char): 1. emacs -Q -nw 2. M-< 3. C-s S-Ins When trying this, it seems it's worse than the default behavior because treating the search string char by char is useful only when you are typing it because highlighting the failed part helps to correct typos. But when you want to search for the previous search string by `C-s C-s' or by copy&paste from the clipboard/kill-ring it's more useful to treat it as a whole. For instance, often it's necessary to put a string into the search ring (`C-s string RET') and search its exact occurrence in another buffer (`C-x o C-s C-s'). It would be annoying when searching for e.g. "caterpillar" will stop at "cat" and highlight it. However, your idea is not completely useless. Currently isearch mode is interactively incremental but you propose to extend it it into non-interactively incremental (i.e. incremental even when the search string is not composed interactively). Maybe a new option/mode could do that but I think it should not be enabled by default.