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 13:11:15 +0100 Message-ID: References: <87r4ljh54a.fsf@mail.jurta.org> <87wqva2lvg.fsf@mail.jurta.org> <87obgl5vuz.fsf@mail.jurta.org> <8738xx30eo.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 1358597535 22201 80.91.229.3 (19 Jan 2013 12:12:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jan 2013 12:12:15 +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 13:12:34 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 1TwXHk-0005QF-Cz for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Jan 2013 13:12:32 +0100 Original-Received: from localhost ([::1]:36723 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwXHS-0005px-Vu for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Jan 2013 07:12:14 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwXHQ-0005pm-Fs for bug-gnu-emacs@gnu.org; Sat, 19 Jan 2013 07:12:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwXHP-0004lZ-4t for bug-gnu-emacs@gnu.org; Sat, 19 Jan 2013 07:12:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwXHO-0004lT-Uy for bug-gnu-emacs@gnu.org; Sat, 19 Jan 2013 07:12:11 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TwXIE-00033t-GL for bug-gnu-emacs@gnu.org; Sat, 19 Jan 2013 07:13:02 -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 12:13:02 +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.135859753111701 (code B ref 13480); Sat, 19 Jan 2013 12:13:02 +0000 Original-Received: (at 13480) by debbugs.gnu.org; 19 Jan 2013 12:12:11 +0000 Original-Received: from localhost ([127.0.0.1]:39668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TwXHP-00032g-HB for submit@debbugs.gnu.org; Sat, 19 Jan 2013 07:12:11 -0500 Original-Received: from mail-lb0-f181.google.com ([209.85.217.181]:57501) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TwXHM-00032W-PJ for 13480@debbugs.gnu.org; Sat, 19 Jan 2013 07:12:10 -0500 Original-Received: by mail-lb0-f181.google.com with SMTP id ge1so3364010lbb.12 for <13480@debbugs.gnu.org>; Sat, 19 Jan 2013 04:11:15 -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=b+PRQfgahwipgS2IeQZJaAHWwGU+MJ25qPJKJjDeDhs=; b=J6QEMZqG9cE6VWnMp/nR4JGsKmDmDpQxiay4vNGGGcxCAu37+DK4kfd7f8vXptZJ0J g6OxqI5XB+mXEhXEvykT3yspVinUN18MrUwMgHlO/MBlN8+lXAndefZcLIT0dmdU7Hnh jCD+7bgu2LRwVh00YOtLGMb9HsEpV/67CIJJ10BlV7oLiqzy78hxsIyz3GM/ewlAfUVH 9E+XiNmsUaXEHg4w7wSdj/iWP7tUQ6DuLuNM5AhUUSQ4VRNDZ/EF9JBxKOD2fk+rPbfu 6bOVUheE/SH2U22eY6zt3wvC6QnSegsPRjH8WGqHjIUSHYaaQLs9ZKaYeWHK4LXsRk4a lCvQ== X-Received: by 10.152.112.36 with SMTP id in4mr11591063lab.35.1358597475442; Sat, 19 Jan 2013 04:11:15 -0800 (PST) Original-Received: by 10.114.92.68 with HTTP; Sat, 19 Jan 2013 04:11:15 -0800 (PST) In-Reply-To: <8738xx30eo.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:70032 Archived-At: >> 1. Store in one variable the "raw" (untouched) search string, as >> supplied by the user. > > Such variable that holds the raw search string already exists. > It is `isearch-string'. Currently that's not true. For example, after invoking `isearch-yank-string', `isearch-string' ends up holding the translated version of the raw search string, which is not available anymore. >> 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. > > Such variable used to display the search string in the echo area already exists. > It is `isearch-message'. > > So we could use `isearch-message' to display the translated search string > but not to translate it in `isearch-string'. Not sure what you mean. If you are going to use `isearch-string' to store the raw search string, obviously that variable should not be overwritten with the translated version. So you need another variable for the translated version, but I don't think `isearch-message' is a good name, because the intent is not (only) to be a mere message for the user, but to serve as input for the search algorithm. Therefore I'd look for a name which better reflects that intent. For example `isearch-string-canonical' or `isearch-string-normalized' or something like that (see http://en.wikipedia.org/wiki/Canonicalization for inspiration). -- Dani Moncayo