From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#48009: 28.0.50; Support query-regexp-replace using re-builder Date: Sun, 25 Apr 2021 10:19:04 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3834"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48009@debbugs.gnu.org To: Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 25 17:20:38 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lagYo-0000ty-7m for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Apr 2021 17:20:38 +0200 Original-Received: from localhost ([::1]:52096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lagYn-0004XK-AD for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Apr 2021 11:20:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35278) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lagYD-0004WH-Um for bug-gnu-emacs@gnu.org; Sun, 25 Apr 2021 11:20:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60082) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lagYD-00057E-Ne for bug-gnu-emacs@gnu.org; Sun, 25 Apr 2021 11:20:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lagYD-0005Ri-JX for bug-gnu-emacs@gnu.org; Sun, 25 Apr 2021 11:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Apr 2021 15:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48009 X-GNU-PR-Package: emacs Original-Received: via spool by 48009-submit@debbugs.gnu.org id=B48009.161936395220875 (code B ref 48009); Sun, 25 Apr 2021 15:20:01 +0000 Original-Received: (at 48009) by debbugs.gnu.org; 25 Apr 2021 15:19:12 +0000 Original-Received: from localhost ([127.0.0.1]:43395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lagXP-0005Qc-VI for submit@debbugs.gnu.org; Sun, 25 Apr 2021 11:19:12 -0400 Original-Received: from mail-pj1-f45.google.com ([209.85.216.45]:43954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lagXO-0005QM-HI for 48009@debbugs.gnu.org; Sun, 25 Apr 2021 11:19:11 -0400 Original-Received: by mail-pj1-f45.google.com with SMTP id f6-20020a17090a6546b029015088cf4a1eso3833014pjs.2 for <48009@debbugs.gnu.org>; Sun, 25 Apr 2021 08:19:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=dgIAgtQ7sDFcMUkmgekgreAmeGfyexwjWM8YSAjfRmk=; b=b0ICYuJn7JZStFJ7mpb+WRZliHnKmfGu7jy5vcmLRl52dGPHRlRl4u7DcKqlRIH5M/ t9VgNViu3Tfi3kX28nTKWaA2qGIUzK9H5ZfYiTyI6mYvYfn1SRmxQe4RO5czpa7rwShQ fYfxUEzBEWE00neHpyLiV70kg4lRpZyVvTu4kxLw1ej3XAeeHzI2yHvaD7sOp9MM8l0K 7hFAqc3PHhSLRPrBzNakf8pT7atUhiobUipw+3wmM2XrYjdcriVj9+4ZlI3OoODw3dSM qoia/oKcZn1no5GrGLfmrjhkBvEbd/R/ofMug2YCsqHpIQ9QZNtI5oJeMefr8OZNVFJr J6cA== X-Gm-Message-State: AOAM531TAew7oAxgKavyow8CbvX6FC+CUSR2vxH8uZU6gi2/5ILYpr9p rYFlvHvr3YZx171AfVieTUIC6CS76ImaWeXGKdA= X-Google-Smtp-Source: ABdhPJxke3K/IIxKTqJyG6N6yhvB8Fa2hW5SqZh8RqptQKKPE7fzO9By1Zxc3uNMoih15Y3D1ejXpddnzhHM6iCTjm0= X-Received: by 2002:a17:90a:670b:: with SMTP id n11mr16102451pjj.104.1619363944864; Sun, 25 Apr 2021 08:19:04 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 25 Apr 2021 10:19:04 -0500 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:204881 Archived-At: Phil Sainty writes: > That could be very nice, although it feels like a pretty significant > complication. Also, re-builder's interactive updates can sometimes > need a manual C-c C-u (`reb-force-update') if it gets confused (which > I think occasionally happens when the regexp is invalid?), and that > might not be great. True, it would need to be robust enough to handle most of what you throw at it. But even with some warts, it would be a significant improvement, I think. If it is optional, users run less risk of being caught unawares. A naive approach would be to run something akin to `reb-force-update' automatically after some delay, but I have no idea if that would work in practice. > Or did you mean to use the isearch highlighting code, which is perhaps > more forgiving of temporary invalid states? I'm not familiar with the code, so I can't help with ideas for how to best implement something like this, unfortunately.