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#10885: Replace expressions: enhance functionality when searching in filled paragraphs Date: Thu, 6 Sep 2012 21:45:25 +0200 Message-ID: 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> <871uif3xjh.fsf@mail.jurta.org> <87ehmfx8yi.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 1346960757 24481 80.91.229.3 (6 Sep 2012 19:45:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Sep 2012 19:45:57 +0000 (UTC) Cc: 10885@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 06 21:45:59 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 1T9i1U-0007wX-4j for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Sep 2012 21:45:56 +0200 Original-Received: from localhost ([::1]:40216 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9i1R-0005Ii-3y for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Sep 2012 15:45:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9i1O-0005IG-RF for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2012 15:45:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9i1N-0003LJ-C4 for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2012 15:45:50 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9i1N-0003L9-6f for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2012 15:45:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T9i1a-0005a4-65 for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2012 15:46:02 -0400 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, 06 Sep 2012 19:46:02 +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.134696074521425 (code B ref 10885); Thu, 06 Sep 2012 19:46:02 +0000 Original-Received: (at 10885) by debbugs.gnu.org; 6 Sep 2012 19:45:45 +0000 Original-Received: from localhost ([127.0.0.1]:44788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9i1H-0005ZV-Hq for submit@debbugs.gnu.org; Thu, 06 Sep 2012 15:45:45 -0400 Original-Received: from mail-ob0-f172.google.com ([209.85.214.172]:63729) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9i1F-0005ZN-3F for 10885@debbugs.gnu.org; Thu, 06 Sep 2012 15:45:41 -0400 Original-Received: by obbwc20 with SMTP id wc20so3026536obb.3 for <10885@debbugs.gnu.org>; Thu, 06 Sep 2012 12:45:25 -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 :cc:content-type; bh=6Q1+daiN9xea6MAudtFr8TOvXxaTqaT3KAAQecDyyjc=; b=JGksKPwXkecErVhlx4Dv8c+A6D0HRlDzf1ccpAqbi98Dk1nY4t+rNrrDBsRg5/1nLd gNcpqUw0Wqeam1An4y/RE4GxaVFIkeNdW61e5eUGMoQsXlWIMUsXDy7U58J1VVQNkCcY vx69jg25zGQjFFNbCMt8L9Xm8mgXUhYAcrigixuM9vGQ3d8ZJsX3RZbHcAGN5fRKFkLa n8B4FfcPSUMACL+PTpE+MqsYtSuQDHK8Hybg+EFB19iIftD1btC/ZCqCKJIuCAOVquO5 yDYOLAVTmJcrCs6w/k9/yhoDFwL1szhDu2iMkGwr4v/jg7g/EbZ9jHQK+4156nu7zwMA NqyQ== Original-Received: by 10.60.30.168 with SMTP id t8mr3634997oeh.89.1346960725861; Thu, 06 Sep 2012 12:45:25 -0700 (PDT) Original-Received: by 10.60.50.130 with HTTP; Thu, 6 Sep 2012 12:45:25 -0700 (PDT) In-Reply-To: <87ehmfx8yi.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 (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:63872 Archived-At: On Thu, Sep 6, 2012 at 9:11 PM, Juri Linkov wrote: >> But I meant to bind `M-s SPC' not while reading the arguments, but >> right after that, i.e. during the interactive replacing. > > If you meant `query-replace-map' then it lacks other isearch > keybindings too, e.g. toggling case-fold, regexp and word mode. Well, I think all these commands would make sense during a query-replace, for adjusting the search (that is taking place as part of the replace operation) in the same way that they would adjust an Isearch. So, why not binding them in `query-replace-map'? That would make Isearch and query-replace more coherent. > It has a similar feature to edit the replacement string but it's bound > to the `E' key unlike `M-e' to edit the search string in isearch. IMO, here `M-e' would be better, for consistency with Isearch. >> But I don't meant that. What I want is the possibility to have these >> two variables "synchronized" or "connected" at every moment, even >> after toggling its value with `M-s SPC'. IOW: make Isearch and >> query-replace _share_ the same setting (at every moment). > > They are already shared and synchronized when you run query-replace > from isearch like e.g. `C-s replace this M-s SPC M-%'. That's fine, but it's not the case I'm talking about. It seems that my English is worse than I thought :) I'll try to explain it in yet another way: I'd like to configure my Emacs so that, at any moment, an Isearch would find exactly the same matches than a query-replace (with the same search string, of course), and without the need to start the query-replace from an Isearch. One way to achieve that goal would be to define a special value for `replace-lax-whitespace' whose meaning be "use the current value of `isearch-lax-whitespace'". -- Dani Moncayo