From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#52751: 27.1; Go back to editing the from part in query replace Date: Thu, 23 Dec 2021 19:18:23 +0200 Organization: LINKOV.NET Message-ID: <8635mjcpts.fsf@mail.linkov.net> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28263"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 52751@debbugs.gnu.org To: ndame Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 23 18:34:14 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 1n0Rym-00077o-Kj for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Dec 2021 18:34:12 +0100 Original-Received: from localhost ([::1]:41860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n0Ryl-0008Fb-29 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Dec 2021 12:34:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0Ryc-00089N-Rz for bug-gnu-emacs@gnu.org; Thu, 23 Dec 2021 12:34:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51503) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n0Ryc-00007M-IO for bug-gnu-emacs@gnu.org; Thu, 23 Dec 2021 12:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n0Ryc-0007kI-Fs for bug-gnu-emacs@gnu.org; Thu, 23 Dec 2021 12:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Dec 2021 17:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52751 X-GNU-PR-Package: emacs Original-Received: via spool by 52751-submit@debbugs.gnu.org id=B52751.164028083329736 (code B ref 52751); Thu, 23 Dec 2021 17:34:02 +0000 Original-Received: (at 52751) by debbugs.gnu.org; 23 Dec 2021 17:33:53 +0000 Original-Received: from localhost ([127.0.0.1]:34812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n0RyT-0007jY-8k for submit@debbugs.gnu.org; Thu, 23 Dec 2021 12:33:53 -0500 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:48849) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n0RyS-0007jJ-C0 for 52751@debbugs.gnu.org; Thu, 23 Dec 2021 12:33:52 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 989F260006; Thu, 23 Dec 2021 17:33:44 +0000 (UTC) In-Reply-To: (ndame via's message of "Thu, 23 Dec 2021 06:55:01 +0000") 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:222991 Archived-At: > I often run into the situation of doing a complicated query replace/regexp, > submitting the FROM part and then during editing the TO part I notice an > error in FROM. But I cannot go back there to fix it, I can either cancel > the replace which deletes the FROM part, because it did not yet go into > history, or I can submit some dummy TO value, cancel the replace, restart > it and then use history to fix the FROM value. > > There should be an easy way to go back to editing FROM without cumbersome > workarounds. > > Mainstream UIs solve this by having different input fields where I can > switch to and edit any input field before submitting. Maybe the FROM -> TO > input should be the default with a preinserted -> arrow, so the user can > switch back an forth easily between FROM and TO? Preinserting an arrow by default would be confusing for users. But maybe M-n could insert it.