From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.bugs Subject: bug#54173: 28.0.91; Training wheels for query-replace Date: Sun, 27 Feb 2022 08:55:51 +0100 Message-ID: <87wnhgwxo8.fsf@gmail.com> References: <87a6edi8b3.fsf@gmail.com> <835yp0pzoh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18830"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 54173@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 27 08:56:13 2022 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 1nOEPd-0004nC-M9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Feb 2022 08:56:13 +0100 Original-Received: from localhost ([::1]:55796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOEPc-0006ig-GA for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Feb 2022 02:56:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOEPS-0006gv-0Y for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 02:56:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34663) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOEPR-0001yf-Nb for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 02:56:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nOEPR-0005nZ-Ma for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 02:56:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 07:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54173 X-GNU-PR-Package: emacs Original-Received: via spool by 54173-submit@debbugs.gnu.org id=B54173.164594856122283 (code B ref 54173); Sun, 27 Feb 2022 07:56:01 +0000 Original-Received: (at 54173) by debbugs.gnu.org; 27 Feb 2022 07:56:01 +0000 Original-Received: from localhost ([127.0.0.1]:56793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOEPQ-0005nL-P0 for submit@debbugs.gnu.org; Sun, 27 Feb 2022 02:56:00 -0500 Original-Received: from mail-ed1-f45.google.com ([209.85.208.45]:46921) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOEPP-0005n8-4t for 54173@debbugs.gnu.org; Sun, 27 Feb 2022 02:55:59 -0500 Original-Received: by mail-ed1-f45.google.com with SMTP id s1so13154423edd.13 for <54173@debbugs.gnu.org>; Sat, 26 Feb 2022 23:55:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=Itft+iMmdyfixEalYY4/gb/sI1HitEnB9wyV18CKLiE=; b=f8UWcuE1jE+TKF3dosHJH6i+0+kaxpAuV9tkFn52cYM6QKiA09PE+Z7hpWUFLM97sI JPk0iAZHi79k/2m/eqoxTlocO+des5Gi1TxGJ7kwWjNHHSEGjaOFQoQ5iqtcrW7fWmIp Fw8ETbSVq2jqN/s/5MONKQRiQWfFl606kCj0K6A+dF2PFW/G2z25gWzWFY5BmVu/8exp +5o/NgEXZ+F8LOP9U38xGdvVybieA2aePqifgWqKjTvQuFg1dlyXmNiKNKY7N7/mSFXO f8H5DKV+JBtw4rHN4R+CHf7nzFe2B04VECa16eletxMdzLPoI35tnNuDBSFFiuuOrYOV Kpww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=Itft+iMmdyfixEalYY4/gb/sI1HitEnB9wyV18CKLiE=; b=CYEntzEKgmPX51LznU32B8GuEuHeTf/UrQj/zOGCvZ2zrTCBGdbKVVwbwLAmSq8v6u emGMEtH+TSukyoooqzacazezRNgeLANWd977VGy3/7G1bX0p9CxIqxhdwNNLlo3i+LMG NKhuzXpdOfVx+MIIArNgnjFWUIfASTS7ZSkbveLV2INegkAOyH5VJ/Zbi6WdSm9DVyfp WXY4HOuns6WyuBjJ38cA05FGAf0KI0SwBAsX37flK8ThGLr2OqMdmjbAugoYGYZ5+Ilh d+366HEWEYF+XAo3jR0UIZ1kH3PqAT7yhtaMCTRpWdM/QD2AMytPY6RG0KwIAmbQBXZw zPnA== X-Gm-Message-State: AOAM532aScA6qB23qyRs6iDFw7qrUt1jbUmZNAJVczjbDKk6zpFjBddP o/i384KA/wqz3Bcv983OOZDtYpmSnaEhIA== X-Google-Smtp-Source: ABdhPJy9DjvzmIhaQH3FNVmmInyOWm38oAG853+HAER7Wj2Ffbfnd0GYEr3KLiJn66buvM10uLByHA== X-Received: by 2002:a50:cc89:0:b0:400:8f82:99e8 with SMTP id q9-20020a50cc89000000b004008f8299e8mr13921259edi.7.1645948552777; Sat, 26 Feb 2022 23:55:52 -0800 (PST) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::758e]) by smtp.gmail.com with ESMTPSA id y7-20020a50bb07000000b0040a1a459eacsm4152892ede.42.2022.02.26.23.55.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Feb 2022 23:55:52 -0800 (PST) In-Reply-To: <835yp0pzoh.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 27 Feb 2022 08:54:22 +0200") 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:227704 Archived-At: On Sun, 27 Feb 2022 at 08:54, Eli Zaretskii wrote: >> From: Augusto Stoffel >> Date: Sat, 26 Feb 2022 23:15:12 +0100 >>=20 >> I've been using query-replace for years but still seem to have trouble >> remembering some of the keys. How about making the help message next to >> the prompt =E2=80=9C(? for help)=E2=80=9D customizable, with an option t= o include an >> extra summary line? > > I don't think it's a good idea to leave documentation and help to > users. I'd rather we made the help text better, or maybe introduce a > key to display a more detailed help text. Emacs should not have > sub-optimal help text. I agree, and I suggested a defcustom here so the user can choose between two predefined options, the default prompt: ``` Query replacing a with b: (=E2=80=98?=E2=80=99 for help) ``` and a two-line prompt including a little summary: ``` Query replacing a with b: (=E2=80=98?=E2=80=99 for help) Replace =E2=80=98y=E2=80=99 once, =E2=80=98.=E2=80=99 and exit, =E2=80=98!= =E2=80=99 all; skip to =E2=80=98n=E2=80=99 next, =E2=80=98^=E2=80=99 previo= us; =E2=80=98U=E2=80=99 undo all. ``` (The quotation marks are not actually used, they are just representing the help-key-keybinding face. I choose this particular message because it's the best I can fit in 80 columns.) > Can you tell why you have trouble remembering some of the keys, and > how changing the help message could countermand that? My issue is mainly with '.' and '^'. I rarely need those operations, so by the time I do I already forgot the keys. With a summary help line below the prompt, it's very hard to not be reminded. PS: Should we define 'p' as a synonym for '^' in 'query-replace-map'?