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#13480: 24.3.50; `C-w' from Isearch should translate newlines to spaces Date: Sun, 20 Jan 2013 01:30:07 +0200 Organization: JURTA Message-ID: <878v7okavd.fsf@mail.jurta.org> References: <87r4ljh54a.fsf@mail.jurta.org> <87wqva2lvg.fsf@mail.jurta.org> <87obgl5vuz.fsf@mail.jurta.org> <8738xx30eo.fsf@mail.jurta.org> <753FBC5FA6504FE187B65C5B59C262D1@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1358638630 26765 80.91.229.3 (19 Jan 2013 23:37:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jan 2013 23:37:10 +0000 (UTC) Cc: 13480@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 20 00:37:29 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 1Twhya-000326-UB for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Jan 2013 00:37:29 +0100 Original-Received: from localhost ([::1]:46524 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwhyK-0004wZ-1S for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Jan 2013 18:37:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwhyH-0004w8-5o for bug-gnu-emacs@gnu.org; Sat, 19 Jan 2013 18:37:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwhyG-0008WT-6d for bug-gnu-emacs@gnu.org; Sat, 19 Jan 2013 18:37:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwhyG-0008WP-2Y for bug-gnu-emacs@gnu.org; Sat, 19 Jan 2013 18:37:08 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Twhz8-0004Tx-4v for bug-gnu-emacs@gnu.org; Sat, 19 Jan 2013 18:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Jan 2013 23:38: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.135863863617082 (code B ref 13480); Sat, 19 Jan 2013 23:38:02 +0000 Original-Received: (at 13480) by debbugs.gnu.org; 19 Jan 2013 23:37:16 +0000 Original-Received: from localhost ([127.0.0.1]:40756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TwhyM-0004RS-La for submit@debbugs.gnu.org; Sat, 19 Jan 2013 18:37:15 -0500 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:57628 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TwhyJ-0004RI-VG for 13480@debbugs.gnu.org; Sat, 19 Jan 2013 18:37:12 -0500 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 57B2B200EC1840; Sat, 19 Jan 2013 15:36:15 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Sat, 19 Jan 2013 12:20:15 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) 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:70066 Archived-At: >>> So we could use `isearch-message' to display the translated >>> search string but not to translate it in `isearch-string'. >> Yes, +1. > > IIRC there's the same problem with case-sensitivity. Not downcasing the yanked string could help to fix bug#10118. According to the docstring of `search-upper-case', if its value is `not-yanks', text yanked into the search string is always downcased. So maybe a better default value for `search-upper-case' would be `nil' instead of the current default `not-yanks'. If a tri-state option with three values t/nil/not-yanks is a good customization UI then perhaps `isearch-lax-whitespace' should provide the option `not-yanks' too, specifying whether newlines should be translated to a single space in text yanked into the search string. If the value `not-yanks' is a bad UI then search functions should take care about translating the characters in the search string internally depending on a new set of options specifying how search functions should use the right case and whitespace.