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#10885: Replace expressions: enhance functionality when searching in filled paragraphs Date: Thu, 06 Sep 2012 19:50:58 +0300 Organization: JURTA Message-ID: <871uif3xjh.fsf@mail.jurta.org> References: <33392837.post@talk.nabble.com> <1oipiuxspa.fsf@fencepost.gnu.org> <87d38z1bp3.fsf@mail.jurta.org> <87linm79pc.fsf@mail.jurta.org> <8762ebbehj.fsf@mail.jurta.org> <87oblo21xe.fsf@mail.jurta.org> <87boho1wyz.fsf@mail.jurta.org> <87ligozwx1.fsf@mail.jurta.org> <87y5knpm4r.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1346951879 9228 80.91.229.3 (6 Sep 2012 17:17:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Sep 2012 17:17:59 +0000 (UTC) Cc: 10885@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 06 19:18:01 2012 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 1T9fiK-0006I0-Gd for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Sep 2012 19:18:00 +0200 Original-Received: from localhost ([::1]:60406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9fiH-0005nQ-FR for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Sep 2012 13:17:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9fiA-0005n4-Ol for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2012 13:17:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9fi9-00046e-LQ for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2012 13:17:50 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35001) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9fi9-00046X-Hl for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2012 13:17:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T9fiM-0001mb-0l for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2012 13:18:02 -0400 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: Thu, 06 Sep 2012 17:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10885 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10885-submit@debbugs.gnu.org id=B10885.13469518436775 (code B ref 10885); Thu, 06 Sep 2012 17:18:01 +0000 Original-Received: (at 10885) by debbugs.gnu.org; 6 Sep 2012 17:17:23 +0000 Original-Received: from localhost ([127.0.0.1]:44547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9fhi-0001lE-AG for submit@debbugs.gnu.org; Thu, 06 Sep 2012 13:17:23 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:41335 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9fhf-0001l5-MJ for 10885@debbugs.gnu.org; Thu, 06 Sep 2012 13:17:21 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id E5140451CC02; Thu, 6 Sep 2012 10:17:04 -0700 (PDT) In-Reply-To: (Dani Moncayo's message of "Thu, 6 Sep 2012 17:54:30 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.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 (newer, 2) 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:63865 Archived-At: > 1. You've defined two separate variables (`isearch-lax-whitespace' > and `isearch-regexp-lax-whitespace') to enable/disable the lax > whitespace matching in search commands: one for basic search commands > and the other for regexp search commands. But there is only one > similar variable (replace-lax-whitespace) which controls both basic > and regexp replace commands. Why this inconsistency? I.e. why not > define also a `replace-regexp-lax-whitespace' variable? `isearch-regexp-lax-whitespace' was necessary to provide backward-compatibility for old functionality. Very likely it will be declared obsolete. But of course, it would be better to have `replace-regexp-lax-whitespace' for consistency until they both will be declared obsolete simultaneously. > 2. While in an incremental search commands, it is possible to toggle > the value of the corresponding variable with `M-s SPC'. Why not > having the same possibility in incremental replace commands? Isearch has different implementation than query-replace. query-replace uses the normal minibuffer to read a string to replace. Implementing `M-s SPC' for it means more trouble: `query-replace-read-from' should set the arg `keymap' of `read-from-minibuffer' to a new keymap with the `M-s SPC' keybinding bound to a function to toggle the value of the defcustom option. > 3. Many users will want a consistent behavior wrt whitespace-matching > between (regexp) search and (regexp) replace commands. So, why not > allowing to "connect" the corresponding variables? I.e. why not > defining some special value for `replace-lax-whitespace' and > `replace-regexp-lax-whitespace' which means "get the value from the > corresponding search variable" ? When it will be decided that isearch and query-replace should have the same default values, then `replace-lax-whitespace' could inherit its default value from `isearch-lax-whitespace'.