From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.bugs Subject: bug#13480: 24.3.50; `C-w' from Isearch should translate newlines to spaces Date: Sat, 19 Jan 2013 11:40:14 +0100 Message-ID: References: <87r4ljh54a.fsf@mail.jurta.org> <87wqva2lvg.fsf@mail.jurta.org> <87obgl5vuz.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1358592073 12591 80.91.229.3 (19 Jan 2013 10:41:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jan 2013 10:41:13 +0000 (UTC) Cc: 13480@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 19 11:41:31 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TwVrf-00076I-CW for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Jan 2013 11:41:31 +0100 Original-Received: from localhost ([::1]:53586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwVrO-0001QE-CC for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Jan 2013 05:41:14 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56660) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwVrL-0001Q5-In for bug-gnu-emacs@gnu.org; Sat, 19 Jan 2013 05:41:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwVrK-00069z-GD for bug-gnu-emacs@gnu.org; Sat, 19 Jan 2013 05:41:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34123) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwVrK-00069u-Cl for bug-gnu-emacs@gnu.org; Sat, 19 Jan 2013 05:41:10 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TwVs9-0000qH-Gu for bug-gnu-emacs@gnu.org; Sat, 19 Jan 2013 05:42:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dani Moncayo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Jan 2013 10:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13480 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13480-submit@debbugs.gnu.org id=B13480.13585920713179 (code B ref 13480); Sat, 19 Jan 2013 10:42:01 +0000 Original-Received: (at 13480) by debbugs.gnu.org; 19 Jan 2013 10:41:11 +0000 Original-Received: from localhost ([127.0.0.1]:39587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TwVrK-0000pC-0e for submit@debbugs.gnu.org; Sat, 19 Jan 2013 05:41:10 -0500 Original-Received: from mail-la0-f47.google.com ([209.85.215.47]:37885) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TwVrH-0000p2-8T for 13480@debbugs.gnu.org; Sat, 19 Jan 2013 05:41:08 -0500 Original-Received: by mail-la0-f47.google.com with SMTP id fh20so4614603lab.20 for <13480@debbugs.gnu.org>; Sat, 19 Jan 2013 02:40:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=+i//l42Kyi80klAmzaUJaIDpTU0vH5kUA5CZscMqO9k=; b=e7WtRSVos7cFd8J65O4aQTP811oYm+zxnhtZPNPhtDg+RmRWIOWgSy0OmlL4Vl1+1U BhmnIK2FNcRZYYkodcV1mu69dd6MIcGxQP5qq96QgwH7JIQnizXKmrZx9iZws6ZmPNnA LBnQT1Y5gHXgAas/NjIIp1EFsNL2qdO+xYqQqj2Ux/6LXAWfro/g7+skoZ0GoditoCo6 xcIjTZuKJCYluFbFy78kYuhMMRo6b4ZVMAuhgT+RxmDfzicp7Q/zx1gTFE0FKkuo0dpE NGtYdoY+V1jYwGZUQpA529jEe4+nB7KUA43AOuhph1/js9z8LkNA7h7Ix4m8mwn4uylD 0Xag== X-Received: by 10.112.13.229 with SMTP id k5mr4937061lbc.125.1358592014557; Sat, 19 Jan 2013 02:40:14 -0800 (PST) Original-Received: by 10.114.92.68 with HTTP; Sat, 19 Jan 2013 02:40:14 -0800 (PST) In-Reply-To: <87obgl5vuz.fsf@mail.jurta.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:70028 Archived-At: >> Well, OTOH it makes a lot of sense to think of the text displayed in >> the echo area (during Isearch) not necessarily as the raw search >> string, but as its "canonical form", according to the current matching >> behavior (which the user should be able to alter on-the-fly). >> >> Definitely that would be a nice behavior, and not only for the laxity >> in whitespace matching, but also in other ones discussed recently like >> those related to accented letters. > > `isearch-yank-string' already downcases the yanked upper case string > to lower case, so it's possible to do the same with lax spaces and > accented letters. Yes, but I see that currently the conversion to lowercase is destructive, i.e., the original text supplied by the user is lost. For example, if I have "Hello" in the kill ring and do `C-s C-y M-s c', obviously I'd like to be searching for "Hello" case-sensitively, but currently I end up searching (case-sensitively) for "hello". That's wrong, IMO. I propose to: 1. Store in one variable the "raw" (untouched) search string, as supplied by the user. 2. Store in another variable (or define a function to get) the "canonical" search string, based on the raw search string and the "laxities" enabled at that moment for the search algorithm (related to whitespace, case-sensitivity, accents, etc). 3. Display the canonical search string in the echo area and use it also in the search algorithm. -- Dani Moncayo