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: Fri, 18 Jan 2013 00:10:01 +0100 Message-ID: References: <87r4ljh54a.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 1358464226 21772 80.91.229.3 (17 Jan 2013 23:10:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jan 2013 23:10:26 +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 Fri Jan 18 00:10:45 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 1Tvyba-00015K-1Y for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Jan 2013 00:10:42 +0100 Original-Received: from localhost ([::1]:45311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvybJ-0007jZ-3j for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Jan 2013 18:10:25 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvybF-0007jR-0u for bug-gnu-emacs@gnu.org; Thu, 17 Jan 2013 18:10:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvybD-0000M0-SY for bug-gnu-emacs@gnu.org; Thu, 17 Jan 2013 18:10:20 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60241) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvybD-0000Lw-PD for bug-gnu-emacs@gnu.org; Thu, 17 Jan 2013 18:10:19 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tvybu-0006NG-A8 for bug-gnu-emacs@gnu.org; Thu, 17 Jan 2013 18:11: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: Thu, 17 Jan 2013 23:11: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.135846425324488 (code B ref 13480); Thu, 17 Jan 2013 23:11:02 +0000 Original-Received: (at 13480) by debbugs.gnu.org; 17 Jan 2013 23:10:53 +0000 Original-Received: from localhost ([127.0.0.1]:37472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tvybi-0006Ms-Gw for submit@debbugs.gnu.org; Thu, 17 Jan 2013 18:10:52 -0500 Original-Received: from mail-la0-f52.google.com ([209.85.215.52]:41176) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tvybe-0006Mi-EB for 13480@debbugs.gnu.org; Thu, 17 Jan 2013 18:10:47 -0500 Original-Received: by mail-la0-f52.google.com with SMTP id ee20so1135066lab.39 for <13480@debbugs.gnu.org>; Thu, 17 Jan 2013 15:10:02 -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=Fbe5cwy2JsvbCutmClp2Qn4cyy7ZQ2X3qgx0OUvemGI=; b=uym4e4Meu1F+BkeWoWfXaKVDw0HxwBVCGzeMZi4Q7c/tJSv7kKE/pLwOTsSLTEEudO 8XflU3emO4/h4XmXEcoFW+cPl/8nNRlp3VrUFv4YAJDz2VqhJY/Pn42Nov5rbhe3kRa2 eaU4E8CC8zO09p4FH2XYzeN/bRJn0oclYfsiw82XX6cbe2s8tISaI4DVjtfx8bemVUgn 27cc/x5UR6blv+NWhlkKuuz39vsWinjOvL7MKOq37I+ybSwCc/95oKMlwWxUw1hnYU9U WGVEET6UGvHoMV0Jxkp6ES2G3lXqg6sdx54A68nM7KKgXWfpy24ww0UNavcYtIkIOwtc SfUA== X-Received: by 10.152.121.212 with SMTP id lm20mr6405749lab.42.1358464202000; Thu, 17 Jan 2013 15:10:02 -0800 (PST) Original-Received: by 10.114.92.68 with HTTP; Thu, 17 Jan 2013 15:10:01 -0800 (PST) In-Reply-To: <87r4ljh54a.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:69947 Archived-At: >> So I propose that the command `isearch-yank-word-or-char' (C-w in >> Isearch) DTRT in this case, i.e., when `search-whitespace-regexp' is >> non-nil, translate the into a simple space when pulling text >> from the buffer into the search string. > > It makes sense to translate the into a simple space > only when `search-whitespace-regexp' contains > such as e.g. (setq search-whitespace-regexp "\\(\\s-\\|\n\\)+") > Otherwise, the translated space won't match . > It is possible to do this with the patch below. Indeed. Any character that matches the current value of `search-whitespace-regexp' should be translated to a single space. > But then you might also want to translate the into a space > in `isearch-yank-line' as well? And maybe also in `isearch-yank-kill'? I think so. And also `isearch-yank-char' and `isearch-yank-pop'. In general, any command that pulls text from somewhere into the search string. IMO that's what makes sense when `isearch-lax-whitespace' is non-nil. And BTW, I think that an analogous change should be done to regexp Isearch, i.e., perform that translations during regexp Isearch when `isearch-regexp-lax-whitespace' is non-nil. -- Dani Moncayo