From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#54173: 28.0.91; Training wheels for query-replace Date: Sun, 27 Feb 2022 10:23:37 +0200 Message-ID: <83tuckogza.fsf@gnu.org> References: <87a6edi8b3.fsf@gmail.com> <835yp0pzoh.fsf@gnu.org> <87wnhgwxo8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26499"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54173@debbugs.gnu.org To: Augusto Stoffel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 27 09:24:31 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 1nOEr1-0006kv-2T for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Feb 2022 09:24:31 +0100 Original-Received: from localhost ([::1]:60162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOEqz-00036N-EW for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Feb 2022 03:24:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51228) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOEqY-00036C-Qt for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 03:24:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34687) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOEqY-0007ck-IT for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 03:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nOEqY-0006VE-EA for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 03:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 08:24:02 +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.164595024124990 (code B ref 54173); Sun, 27 Feb 2022 08:24:02 +0000 Original-Received: (at 54173) by debbugs.gnu.org; 27 Feb 2022 08:24:01 +0000 Original-Received: from localhost ([127.0.0.1]:56817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOEqX-0006V0-Ey for submit@debbugs.gnu.org; Sun, 27 Feb 2022 03:24:01 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOEqW-0006Uk-4W for 54173@debbugs.gnu.org; Sun, 27 Feb 2022 03:24:00 -0500 Original-Received: from [2001:470:142:3::e] (port=46124 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOEqN-0007cL-6w; Sun, 27 Feb 2022 03:23:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=VhndjF0k38XTTQBz1nBCOc6ck6mPhsLZ/L6UqX4BKEo=; b=PRDPaV2WmOwaZYvCbAaZ sqsfw70RSHwlZDloco0lnps6ttuxXomcMWHZT+By4XrlHqaBWzcz6qFRfGXdgPuNJfMwcVdTfpySb FGdG1JAzvUyybZh2rnNRZaoz5cSJnaBIQy/iu3PCGzuwcQ1834M5clI8Hkzlhdnp4DFPQHVKnWqvw WZsUVlDFzQdlOqcada5UMi5PPd7xCu3DbXpVHMNHIDb8G7o66H0oNHX1TF2mJnI1v0ilbtmuTCwL7 BKU8A/QCJnEGqkLW36mtCjhfRhsgZsfP62qfP53Wp5adzeJBM7t0QzZyHsO/lC2/BSPp6LoA7bpJE 3KKBbSI2upOynw==; Original-Received: from [87.69.77.57] (port=4885 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOEqM-0001ai-EH; Sun, 27 Feb 2022 03:23:50 -0500 In-Reply-To: <87wnhgwxo8.fsf@gmail.com> (message from Augusto Stoffel on Sun, 27 Feb 2022 08:55:51 +0100) 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:227706 Archived-At: > From: Augusto Stoffel > Cc: 54173@debbugs.gnu.org > Date: Sun, 27 Feb 2022 08:55:51 +0100 > > On Sun, 27 Feb 2022 at 08:54, Eli Zaretskii wrote: > > > 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: (‘?’ for help) > ``` > > and a two-line prompt including a little summary: > > ``` > Query replacing a with b: (‘?’ for help) > Replace ‘y’ once, ‘.’ and exit, ‘!’ all; skip to ‘n’ next, ‘^’ previous; ‘U’ undo all. But since '?' produces a more detailed help, and that help text stays on display thereafter, do we really need one more variant? Maybe the default message could be expanded instead (but not to such a long text, which would resize the mini-window in many cases)? > > 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. Then how about adding '.' and '^' to the default help text? > PS: Should we define 'p' as a synonym for '^' in 'query-replace-map'? Probably.