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, 3 Aug 2013 19:09:49 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1375549820 31629 80.91.229.3 (3 Aug 2013 17:10:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Aug 2013 17:10:20 +0000 (UTC) To: 13480@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 03 19:10:20 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 1V5fLQ-0000qt-Jn for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Aug 2013 19:10:20 +0200 Original-Received: from localhost ([::1]:48414 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5fLQ-0005qd-2R for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Aug 2013 13:10:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5fLG-0005hW-TI for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2013 13:10:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V5fL8-0003W8-PK for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2013 13:10:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5fL8-0003VP-MJ for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2013 13:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V5fL7-0007Rt-Tn for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2013 13:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dani Moncayo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Aug 2013 17:10: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.137554979828618 (code B ref 13480); Sat, 03 Aug 2013 17:10:01 +0000 Original-Received: (at 13480) by debbugs.gnu.org; 3 Aug 2013 17:09:58 +0000 Original-Received: from localhost ([127.0.0.1]:38441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V5fL3-0007RW-M0 for submit@debbugs.gnu.org; Sat, 03 Aug 2013 13:09:58 -0400 Original-Received: from mail-la0-f44.google.com ([209.85.215.44]:47744) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V5fL1-0007R8-9o for 13480@debbugs.gnu.org; Sat, 03 Aug 2013 13:09:55 -0400 Original-Received: by mail-la0-f44.google.com with SMTP id fo12so1174002lab.31 for <13480@debbugs.gnu.org>; Sat, 03 Aug 2013 10:09:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=P7BdUvF3LjYPLMla94k8dz/HnXTE53o3Q7ijA6vXupk=; b=ppQyDnWyqU7ouCJ4EqvRSTqu4JYZGvIppgKpOg+Olg/vd6mD1Hk5n2SqAZt/iUOniz 0+4Xk4d05rkHUYEDx6z/qYlJkvCRdeLNj9CFMYYj42DU9EwD6kMOlER/B9IeRZIw7QdG zLjpzIdsBqh+nKq/pzSmh9XUxoXGjnnnRH64EjbO00q8jePdINzbWBeo7237yDhrtVct MnayicBdTZQUOtGWj2DZBsocy3MOJO2GrwHGtxCiC2LvGM493MaCutFBNOb+ObqQxWds Yi/GX1SDvu5+KC1tYg8XFdXk25Ci5AS8tlz5v/sBf6kswVrBFhprkr62xT1hhjEeIi6C OhNw== X-Received: by 10.152.170.197 with SMTP id ao5mr5313659lac.35.1375549789322; Sat, 03 Aug 2013 10:09:49 -0700 (PDT) Original-Received: by 10.114.176.231 with HTTP; Sat, 3 Aug 2013 10:09:49 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:76939 Archived-At: On Thu, Jan 17, 2013 at 9:39 PM, Dani Moncayo wrote: > Hello, > > I have `isearch-lax-whitespace' set to t in my init file, so that I > can search for a sequence of words regardless of whether there is line > breaks or plain spaces between them. > > Now, if the text following point is "foo bar" and I do `C-s C-w C-w' > I'll be searching for any sequence of those two words, separated by > any whitespace (well, controlled by `search-whitespace-regexp'). Ok, > as expected. > > But I've just noticed that if the text following point is > "foobar" and I do the same, I'll be searching exactly for > that fixed sequence of 7 characters, including the . Not > what I want, obviously. There were quite a few post about this problem, but at the end, I think that the right solution is this one: When `isearch-lax-whitespace' is non-nil, a sequence of whitespace chars in the search string (not only a space, as stated now) should match a sequence of whitespace chars in the buffer. Analogous reasoning for `isearch-regexp-lax-whitespace' (for regexp incremental search). (Remember: we must refrain from modifying the text to search for, as supplied by the user, because the search conditions (lax whitespace matching in this case) may vary during the Isearch session) -- Dani Moncayo