From unknown Tue Jun 17 01:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54173: 28.0.91; Training wheels for query-replace Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Feb 2022 22:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54173 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 54173@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164591372211403 (code B ref -1); Sat, 26 Feb 2022 22:16:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Feb 2022 22:15:22 +0000 Received: from localhost ([127.0.0.1]:56411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nO5LV-0002xr-Qo for submit@debbugs.gnu.org; Sat, 26 Feb 2022 17:15:22 -0500 Received: from lists.gnu.org ([209.51.188.17]:43792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nO5LT-0002xi-SM for submit@debbugs.gnu.org; Sat, 26 Feb 2022 17:15:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nO5LT-00021t-Ai for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 17:15:19 -0500 Received: from [2a00:1450:4864:20::634] (port=34356 helo=mail-ej1-x634.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nO5LR-00012y-Ek for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 17:15:18 -0500 Received: by mail-ej1-x634.google.com with SMTP id gb39so17689234ejc.1 for ; Sat, 26 Feb 2022 14:15:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=7rzzfAjCSVZMCOI65r+jvRxKaBhCvkulq593SVyH6JI=; b=Pufkb3G31Bk6Qcbw/o0jcW4QaK6xpd8rC056D+LhWoxe6K+UsJn1C/lukg0RMIjfs3 bRX778qNuyYmX7ZccZBnOODUyEz3gYVXGMVuB5adp73okgAaqN0gO+SdUMWwbcyXs1EG 5Ipg1RhHZ9vRaQtxP49hoA7xTcIiYl1WpLhnVUl9/MpVwlPTgvJmtMgy01bcpn/wgNLx 4Z47kL7JkyMCBAUJ0uA5SeVug8hcd7nGgX+i0W5D8kEtuJSiALv7tiiKwQk4a/lxfcC+ YP9lj4+9za0jGu6IbSqofg8inznXzSNrjxsSj34WmsJkPvJYyZI/JPUYIUppdFia9l08 G0Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=7rzzfAjCSVZMCOI65r+jvRxKaBhCvkulq593SVyH6JI=; b=ZuZQJVJBUDKXKPdjKYuQvcfTjmFz4i8Z+KKch2PcjjXQqIjTtmcxrYz2qxTfjT9wq1 5EQ+wXMbzqOMOQbBqRVjBkMSAIEyH5MnohrGnXpg9g+tDipPrRWWIqI7QaM4Cz6x3VhQ LRq1hKncRSPdCMNDTePH+LUg3l0vP5e6dLq65vdWj/LP6KinLaOVpYVnhye393lA3TrP jiPyNjifoV+E4otHPLx6khRAmZyMQjGgfT8xbKg97uPlvwWBGWFRzQa7zmhFrc3rTs4V 4Jh6zPomNSlP6lkUMmhgvYLT6zeXsc8+mdt7R57ZvVEVeWMKPtc90N+f+y74+rgpZJzm wYXg== X-Gm-Message-State: AOAM530ga1BUD/rplI3gOzm/jkErliFJOpWAUXcy9P0e359GHiucAGtz 3kZxtyufxdcbDZCbNYbCNmEuwMnrW8u3Iw== X-Google-Smtp-Source: ABdhPJyZ5jcFwqd1sBoOSCH3S0J7TMuf+81qJ4my1ZGLFJMMftLg0hNukw7MyRAzFpSt4UiSy+kfkw== X-Received: by 2002:a17:906:199a:b0:6d1:aa59:2927 with SMTP id g26-20020a170906199a00b006d1aa592927mr10258525ejd.215.1645913714835; Sat, 26 Feb 2022 14:15:14 -0800 (PST) Received: from ars3 ([2a02:8109:8ac0:56d0::758e]) by smtp.gmail.com with ESMTPSA id w19-20020a17090633d300b006ce3d425b22sm2690438eja.1.2022.02.26.14.15.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Feb 2022 14:15:13 -0800 (PST) From: Augusto Stoffel Date: Sat, 26 Feb 2022 23:15:12 +0100 Message-ID: <87a6edi8b3.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::634 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=arstoffel@gmail.com; helo=mail-ej1-x634.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 to i= nclude an extra summary line? See patch attached (note that it also slightly changes the faces of the prompt). --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Make-perform-replace-prompt-help-customizable.patch >From 80710d38d9335101108661a9685c449be2d56fde Mon Sep 17 00:00:00 2001 From: Augusto Stoffel Date: Sat, 26 Feb 2022 23:08:26 +0100 Subject: [PATCH] Make 'perform-replace' prompt help customizable * lisp/replace.el (perform-replace-prompt-help): New defcustom, help string shown next to 'perform-replace' prompt. (query-replace-map): Reorder entries so that 'substitute-command-keys' does the right job. (perform-replace): Use 'perform-replace-prompt-help. --- lisp/replace.el | 46 +++++++++++++++++++++++++++++----------------- 1 file changed, 29 insertions(+), 17 deletions(-) diff --git a/lisp/replace.el b/lisp/replace.el index 06be597855..c9300a22e4 100644 --- a/lisp/replace.el +++ b/lisp/replace.el @@ -148,6 +148,18 @@ query-replace-lazy-highlight :group 'matching :version "22.1") +(defcustom perform-replace-prompt-help "\\(\\[help] for help)" + "Help string to show next to the `perform-replace' prompt." + :type '(choice (const :tag "Just advertise help" + "\\(\\[help] for help)") + (const :tag "One-line summary" + "\\(\\[help] for help) +Replace \\[act] once, \\[act-and-exit] and exit, \\[automatic] all; \ +skip to \\[skip] next, \\[backup] previous; \ +\\[undo-all] undo all.")) + :group 'matching + :version "29.1") + (defface query-replace '((t (:inherit isearch))) "Face for highlighting query replacement matches." @@ -2451,12 +2463,12 @@ query-replace-map (define-key map "\d" 'skip) (define-key map [delete] 'skip) (define-key map [backspace] 'skip) - (define-key map "y" 'act) - (define-key map "n" 'skip) (define-key map "Y" 'act) + (define-key map "y" 'act) (define-key map "N" 'skip) - (define-key map "e" 'edit-replacement) + (define-key map "n" 'skip) (define-key map "E" 'edit-replacement) + (define-key map "e" 'edit-replacement) (define-key map "," 'act-and-show) (define-key map "q" 'exit) (define-key map "\r" 'exit) @@ -2840,20 +2852,20 @@ perform-replace (match-again t) (message - (if query-flag - (apply #'propertize - (concat "Query replacing " - (if backward "backward " "") - (if delimited-flag - (or (and (symbolp delimited-flag) - (get delimited-flag - 'isearch-message-prefix)) - "word ") "") - (if regexp-flag "regexp " "") - "%s with %s: " - (substitute-command-keys - "(\\\\[help] for help) ")) - minibuffer-prompt-properties)))) + (when query-flag + (concat + (apply #'propertize + (concat "Query replacing " + (if backward "backward " "") + (if delimited-flag + (or (and (symbolp delimited-flag) + (get delimited-flag + 'isearch-message-prefix)) + "word ") "") + (if regexp-flag "regexp " "") + "%s with %s: ") + minibuffer-prompt-properties) + (substitute-command-keys perform-replace-prompt-help))))) ;; Unless a single contiguous chunk is selected, operate on multiple chunks. (when region-noncontiguous-p -- 2.35.1 --=-=-=-- From unknown Tue Jun 17 01:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54173: 28.0.91; Training wheels for query-replace Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 06:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54173 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Augusto Stoffel Cc: 54173@debbugs.gnu.org Received: via spool by 54173-submit@debbugs.gnu.org id=B54173.164594488316117 (code B ref 54173); Sun, 27 Feb 2022 06:55:02 +0000 Received: (at 54173) by debbugs.gnu.org; 27 Feb 2022 06:54:43 +0000 Received: from localhost ([127.0.0.1]:56734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nODS7-0004Bt-F5 for submit@debbugs.gnu.org; Sun, 27 Feb 2022 01:54:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nODS6-0004Bg-DP for 54173@debbugs.gnu.org; Sun, 27 Feb 2022 01:54:42 -0500 Received: from [2001:470:142:3::e] (port=45470 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 1nODS1-0001pM-0k; Sun, 27 Feb 2022 01:54:37 -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=8pcScgspgGG3yuuNFaMttIc7XMb99Y5QkIedNRXmlc8=; b=NHCmv3CGT6wqzTletG3B A6kQCntB0BtcgajP6/b2YQX+EZpvyctLSd6CevK/ZIaJ5oNhBV0cx8RrrvvosSFkVXp5Igoq3YiSr keeZd/0CmgbO1DBVzbCT+WJ5drqs+kigtEA/4YAovNnXxswGuYLbaL7u7pqNz6y4sYwtmory+kSrV CJY1ifDHm5OI97X1e0nGGaEFXccqYYiJEr57STHeSPK2t23Hc/BBNvCExBOLZ6QXDAozvf/WGKjzX cKv05PM/TDC0ZUmiopv6z0OxaHbJRwcFSGa4hPULDIvyormVqLmLR4rl9CC8W6AoRJ/b04zJgV9bG 6Vm494BuoZKOBQ==; Received: from [87.69.77.57] (port=3341 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 1nODS0-0005cR-DR; Sun, 27 Feb 2022 01:54:36 -0500 Date: Sun, 27 Feb 2022 08:54:22 +0200 Message-Id: <835yp0pzoh.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87a6edi8b3.fsf@gmail.com> (message from Augusto Stoffel on Sat, 26 Feb 2022 23:15:12 +0100) References: <87a6edi8b3.fsf@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Augusto Stoffel > Date: Sat, 26 Feb 2022 23:15:12 +0100 > > 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 “(? for help)” customizable, with an option to 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. Can you tell why you have trouble remembering some of the keys, and how changing the help message could countermand that? Thanks. From unknown Tue Jun 17 01:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54173: 28.0.91; Training wheels for query-replace 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 X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 54173@debbugs.gnu.org Received: via spool by 54173-submit@debbugs.gnu.org id=B54173.164594856122283 (code B ref 54173); Sun, 27 Feb 2022 07:56:01 +0000 Received: (at 54173) by debbugs.gnu.org; 27 Feb 2022 07:56:01 +0000 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 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 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) 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) From: Augusto Stoffel References: <87a6edi8b3.fsf@gmail.com> <835yp0pzoh.fsf@gnu.org> Date: Sun, 27 Feb 2022 08:55:51 +0100 In-Reply-To: <835yp0pzoh.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 27 Feb 2022 08:54:22 +0200") Message-ID: <87wnhgwxo8.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Sun, 27 Feb 2022 at 08:54, Eli Zaretskii wrote: >> From: Augusto Stoffel >> Date: Sat, 26 Feb 2022 23:15:12 +0100 >> >> I've been using query-replace for years but still seem to have trouble >> remembering some of the keys. How about making the h [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (arstoffel[at]gmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.45 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.45 listed in wl.mailspike.net] 1.5 FROM_FMBLA_NEWDOM From domain was registered in last 7 days -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) 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'? From unknown Tue Jun 17 01:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54173: 28.0.91; Training wheels for query-replace 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 X-GNU-PR-Keywords: To: Augusto Stoffel Cc: 54173@debbugs.gnu.org Received: via spool by 54173-submit@debbugs.gnu.org id=B54173.164595024124990 (code B ref 54173); Sun, 27 Feb 2022 08:24:02 +0000 Received: (at 54173) by debbugs.gnu.org; 27 Feb 2022 08:24:01 +0000 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 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 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==; 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 Date: Sun, 27 Feb 2022 10:23:37 +0200 Message-Id: <83tuckogza.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87wnhgwxo8.fsf@gmail.com> (message from Augusto Stoffel on Sun, 27 Feb 2022 08:55:51 +0100) 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 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From unknown Tue Jun 17 01:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54173: 28.0.91; Training wheels for query-replace Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 08:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54173 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 54173@debbugs.gnu.org Received: via spool by 54173-submit@debbugs.gnu.org id=B54173.164595191227665 (code B ref 54173); Sun, 27 Feb 2022 08:52:01 +0000 Received: (at 54173) by debbugs.gnu.org; 27 Feb 2022 08:51:52 +0000 Received: from localhost ([127.0.0.1]:56832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOFHU-0007C8-7T for submit@debbugs.gnu.org; Sun, 27 Feb 2022 03:51:52 -0500 Received: from mail-ej1-f42.google.com ([209.85.218.42]:35341) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOFHS-0007Bt-7H for 54173@debbugs.gnu.org; Sun, 27 Feb 2022 03:51:50 -0500 Received: by mail-ej1-f42.google.com with SMTP id qk11so19121096ejb.2 for <54173@debbugs.gnu.org>; Sun, 27 Feb 2022 00:51:50 -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=xKtP7E0prVM4H/NNGScPAp5IUQxNVicU2so2/gFZ7dg=; b=q3Hsf4yyV811FtdMNYyzVs72RH8WBquN/XTU36Zute7SbhId810irGOeomsqjMpHfP JPCiC+OhTgCiB9UG09FtvxxEiJ5dF1DIj2KjnerDeP8vJCq3grLnMnftRe9oKdBPmNmO oAyQw1/tlMQiEtTmdfqDvcCEIvz05GvyGLqal03zizpiXd6yyA31/P7jdeIP+E9d4dn3 KhaXC7y0GLrPNyossEr/AHen/fWg7qi61mwbGijZJtIRDV2MUFYyXXn86Yc9vsYCguQK KW8Yu1BiVd2a6nJYbgkEWFCDLFFxB59cuP4HXUH6aDpOkOTzAKt5YPAd8uUVt7uPQCRI 4Rgg== 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=xKtP7E0prVM4H/NNGScPAp5IUQxNVicU2so2/gFZ7dg=; b=E9taCYRcwJMOJcp8foayrxS1gxYBLKTkIfFmTIRsPuGZWh1RfUftFMzRyM7aRgPr9u bu+3EUq5GLzUPJ74pOBBNrwb333SAXVdPJEbtxiljkDW5lA2RfOSyMOidlnHUdV9Hrqg Ydlp5qeBBRhzeRKjDGeUmfRxAyV9NCHgoEnIaEBagS2KjSFm0zbIfKJjnf81xiroW+MU gE/mPkBhyWb/bFjLiwQrHGf3FvQU1vxmAr3R4wlLe9l1rbXPQhuh1ckcPzkxq/Ff/8Zz a6dEeq5Er0LzvB1J1Hhc5+DKKCMo+hRfmkFt3tP8Bu4h6plZLJ1P4+L/DoeqoHx0Ts+Q 2yYA== X-Gm-Message-State: AOAM533Q4cWawXJeaBuAAv6I9Ek86pp5PnDNrCWl1nYSLyN8eXAMp0AS cbau/YmmN72nWz/U0qT1DmfNpFyUuj/v8A== X-Google-Smtp-Source: ABdhPJxU+a3wSUT9XaPki8wvXykEdGjjtGWw6C0LJYk90hzxaT8yKzjz3yEnN38Eae/5epcsIXoEXg== X-Received: by 2002:a17:906:5245:b0:6b8:78e0:5649 with SMTP id y5-20020a170906524500b006b878e05649mr11816780ejm.520.1645951904122; Sun, 27 Feb 2022 00:51:44 -0800 (PST) Received: from ars3 ([2a02:8109:8ac0:56d0::758e]) by smtp.gmail.com with ESMTPSA id r11-20020aa7cfcb000000b00412c58c43ccsm4181577edy.37.2022.02.27.00.51.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Feb 2022 00:51:43 -0800 (PST) From: Augusto Stoffel References: <87a6edi8b3.fsf@gmail.com> <835yp0pzoh.fsf@gnu.org> <87wnhgwxo8.fsf@gmail.com> <83tuckogza.fsf@gnu.org> Date: Sun, 27 Feb 2022 09:51:42 +0100 In-Reply-To: <83tuckogza.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 27 Feb 2022 10:23:37 +0200") Message-ID: <87sfs4wv35.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Sun, 27 Feb 2022 at 10:23, Eli Zaretskii wrote: >> 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 le [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.218.42 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (arstoffel[at]gmail.com) 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.218.42 listed in wl.mailspike.net] 1.5 FROM_FMBLA_NEWDOM From domain was registered in last 7 days 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) On Sun, 27 Feb 2022 at 10:23, Eli Zaretskii wrote: >> From: Augusto Stoffel >> Cc: 54173@debbugs.gnu.org >> Date: Sun, 27 Feb 2022 08:55:51 +0100 >>=20 >> On Sun, 27 Feb 2022 at 08:54, Eli Zaretskii wrote: >>=20 >> > 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. >>=20 >> I agree, and I suggested a defcustom here so the user can choose between >> two predefined options, the default prompt: >>=20 >> ``` >> Query replacing a with b: (=E2=80=98?=E2=80=99 for help) >> ``` >>=20 >> and a two-line prompt including a little summary: >>=20 >> ``` >> 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 pr= evious; =E2=80=98U=E2=80=99 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)? I think =E2=80=98y=E2=80=99 and =E2=80=98n=E2=80=99 are intuitive enough th= at they don't need a reminder. But mentioning the more uncommon ones (=E2=80=98.=E2=80=99 and s= o on) without talking about =E2=80=98y=E2=80=99 and =E2=80=98n=E2=80=99 is weird. So I can't see any meaningful options between the status quo and my suggestion above. The way I use Emacs, this would be a perfectly fine message with no risk of resizing the mini-window: ``` Query replacing a with b: (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 previous; =E2=80=98U=E2=80=99 undo all; =E2=80=98?=E2= =80=99 help) ``` One idea would be to choose between the short and long messages based on the size of the miniwindow as well as the length regexp and replacement text. >> > Can you tell why you have trouble remembering some of the keys, and >> > how changing the help message could countermand that? >>=20 >> 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. From unknown Tue Jun 17 01:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54173: 28.0.91; Training wheels for query-replace Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 09:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54173 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Augusto Stoffel Cc: 54173@debbugs.gnu.org Received: via spool by 54173-submit@debbugs.gnu.org id=B54173.164595391530792 (code B ref 54173); Sun, 27 Feb 2022 09:26:02 +0000 Received: (at 54173) by debbugs.gnu.org; 27 Feb 2022 09:25:15 +0000 Received: from localhost ([127.0.0.1]:56869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOFnn-00080a-Gj for submit@debbugs.gnu.org; Sun, 27 Feb 2022 04:25:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOFnl-00080H-8X for 54173@debbugs.gnu.org; Sun, 27 Feb 2022 04:25:14 -0500 Received: from [2001:470:142:3::e] (port=47016 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 1nOFng-0006uF-0j; Sun, 27 Feb 2022 04:25:08 -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=6BaSNE/OQtkLRQAVszUpW9reLNf5kALqE6ie8KUbuQs=; b=Ek3iwt92d+VWKwY2WgdM XfWeyOVuDPqi54wBPD0cycUunaieUVBO35uy1EXKS2LSzotufVoJQ2uWQ9WVss0PUO/SXIuZTA1/a ewaV5GEBgJ11p7uDmIFF5sQoyQ6BDLIWlrdrljphihuv42NVRWEtqORuOzO5rfz6cxyQaRgJUe2Ho QBInLX3DvjjI3kKreiDRXJbzHVyScGQrrHPU/Qi3SQAO3hDC++t/qkfgTbP/rPl8YzOvPKjPrjpN6 VSieywom6bU6D87H6ObeSWjQDWb3vYI0tYnWZVY+AlBoKHkR5KSlNavwm+6kL7k8ksvA1hQogk83W Qs0uhPv+nrqD3w==; Received: from [87.69.77.57] (port=4822 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 1nOFne-0000hG-Ib; Sun, 27 Feb 2022 04:25:07 -0500 Date: Sun, 27 Feb 2022 11:24:53 +0200 Message-Id: <83sfs4oe56.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87sfs4wv35.fsf@gmail.com> (message from Augusto Stoffel on Sun, 27 Feb 2022 09:51:42 +0100) References: <87a6edi8b3.fsf@gmail.com> <835yp0pzoh.fsf@gnu.org> <87wnhgwxo8.fsf@gmail.com> <83tuckogza.fsf@gnu.org> <87sfs4wv35.fsf@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Augusto Stoffel > Cc: 54173@debbugs.gnu.org > Date: Sun, 27 Feb 2022 09:51:42 +0100 > > > 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)? > > I think ‘y’ and ‘n’ are intuitive enough that they don't need a > reminder. But mentioning the more uncommon ones (‘.’ and so on) without > talking about ‘y’ and ‘n’ is weird. How about the below? (‘y’/‘n’, ‘.’ replace & exit, ‘^’ back up, ‘?’ help) An alternative is to have C-h and F1 temporarily show a longer line with more commands. > One idea would be to choose between the short and long messages based on > the size of the miniwindow as well as the length regexp and replacement > text. That could also be a possibility. From unknown Tue Jun 17 01:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54173: 28.0.91; Training wheels for query-replace Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 10:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54173 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 54173@debbugs.gnu.org Received: via spool by 54173-submit@debbugs.gnu.org id=B54173.16459570393175 (code B ref 54173); Sun, 27 Feb 2022 10:18:01 +0000 Received: (at 54173) by debbugs.gnu.org; 27 Feb 2022 10:17:19 +0000 Received: from localhost ([127.0.0.1]:56895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOGcA-0000p6-KM for submit@debbugs.gnu.org; Sun, 27 Feb 2022 05:17:18 -0500 Received: from mail-ed1-f50.google.com ([209.85.208.50]:44973) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOGc8-0000or-I3 for 54173@debbugs.gnu.org; Sun, 27 Feb 2022 05:17:17 -0500 Received: by mail-ed1-f50.google.com with SMTP id x5so13435769edd.11 for <54173@debbugs.gnu.org>; Sun, 27 Feb 2022 02:17:16 -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; bh=c9Ohne0RpXy46lPcTkdjU+oqJlqUxkEGfQ5pCi0O9Kk=; b=bvT/Bs6Rd4vn+CHkMD1xvgtOR2iKdXQjD/oMisAaESjcZn0sC8feyho6SHbXWxOVot U7hoNhUzCy3CSbdfHiS7vIfYdOVt/N8SiKWrnWt1EyGR+TnEZ1hY0Sji+jOkqZHN7MOA 1VeGUBxydyBI1ngLgFUX+MyAz3deFuGeRD4gqZDAAUh3K1Sp4LGmo2a91I4NxjNBe4Y9 vbTRMzOHsOZbEHSAJxVmc2J0dyeBs/qEewbcBdmDCVgvX5zGL1NdvmTpkzc28Fd2S6l3 9kgDP9IyHrslKWPxT75ZvYuYQ62/oUlRLO9a7whTrPWT1HnNfN7imA4tF4wnfBDFh+LU SDfA== 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; bh=c9Ohne0RpXy46lPcTkdjU+oqJlqUxkEGfQ5pCi0O9Kk=; b=rbqQmsabW54vDAFz6mQjbprE2PrKC3dT7b7AONVf9Tl0gJNvFDnKi2p3Oj1A0a4RN9 vxOdgTFLDQ4836wyanVBqE/pInGLnoALBJPlspL7nUUO/ywSPhlk3sMyhhwwgnNSyeXe Q+UPbkDCPnvfaebh7bcDfR9++3mN9ZbZQumTXfYOZjI2Yyr16eGduUh9rmHcDcVag535 nhCPRkQVmBjK1oa0E661p5ZjW9hue1Tda88P+Tws9x8VGPaNaM3kdhkZ7roA0tHSO0F/ gtbL7yvrvNY/n+of9a7zv8qejwd+92UAB/fHbnc2/RL20piJaylwTMVo6hkPX2HKYXR3 V04Q== X-Gm-Message-State: AOAM5338HHnguWqM2FiBEqzQi1D1UYyGMncitaqGcKlJ0/GcA9l960V4 i6rF9lDefdyw4Ak4wCYEAmYcddsgGBf6pA== X-Google-Smtp-Source: ABdhPJwjlFl9YQlHvsYjLQJ/H1SDVj+zYhRvNVmxWi6r9xhKaLb2dZeh/RORJgOoYt55GeGRgVdROw== X-Received: by 2002:aa7:c446:0:b0:410:9a8e:9b85 with SMTP id n6-20020aa7c446000000b004109a8e9b85mr14215233edr.319.1645957030362; Sun, 27 Feb 2022 02:17:10 -0800 (PST) Received: from ars3 ([2a02:8109:8ac0:56d0::758e]) by smtp.gmail.com with ESMTPSA id v5-20020a056402184500b00412e1a73c7bsm4250154edy.61.2022.02.27.02.17.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Feb 2022 02:17:09 -0800 (PST) From: Augusto Stoffel References: <87a6edi8b3.fsf@gmail.com> <835yp0pzoh.fsf@gnu.org> <87wnhgwxo8.fsf@gmail.com> <83tuckogza.fsf@gnu.org> <87sfs4wv35.fsf@gmail.com> <83sfs4oe56.fsf@gnu.org> Date: Sun, 27 Feb 2022 11:17:08 +0100 In-Reply-To: <83sfs4oe56.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 27 Feb 2022 11:24:53 +0200") Message-ID: <87wnhgtxzv.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sun, 27 Feb 2022 at 11:24, Eli Zaretskii wrote: >> From: Augusto Stoffel >> Cc: 54173@debbugs.gnu.org >> Date: Sun, 27 Feb 2022 09:51:42 +0100 >>=20 >> > 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)? >>=20 >> I think =E2=80=98y=E2=80=99 and =E2=80=98n=E2=80=99 are intuitive enough= that they don't need a >> reminder. But mentioning the more uncommon ones (=E2=80=98.=E2=80=99 an= d so on) without >> talking about =E2=80=98y=E2=80=99 and =E2=80=98n=E2=80=99 is weird. > > How about the below? > > (=E2=80=98y=E2=80=99/=E2=80=98n=E2=80=99, =E2=80=98.=E2=80=99 replace &= exit, =E2=80=98^=E2=80=99 back up, =E2=80=98?=E2=80=99 help) I find this better than the status quo. I've attached the patch. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Expand-help-string-in-perform-replace-prompt.patch >From 290ad346d793d42c654adbde87089b22f4aa0fa5 Mon Sep 17 00:00:00 2001 From: Augusto Stoffel Date: Sat, 26 Feb 2022 23:08:26 +0100 Subject: [PATCH] Expand help string in 'perform-replace' prompt * lisp/replace.el (query-replace-prompt-help): New variable, help string shown next to 'perform-replace' prompt. (query-replace-map): Reorder entries so that 'substitute-command-keys' does the right job. (perform-replace): Use 'query-replace-prompt-help. --- lisp/replace.el | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/lisp/replace.el b/lisp/replace.el index 06be597855..49cf652ddc 100644 --- a/lisp/replace.el +++ b/lisp/replace.el @@ -2445,18 +2445,22 @@ query-replace-help in the current buffer." "Help message while in `query-replace'.") +(defvar query-replace-prompt-help + "\\(\\[act]/\\[skip], \\[act-and-exit] replace & exit, \\[backup] back up, \\[help] help)" + "Help string to show next to the `query-replace' prompt.") + (defvar query-replace-map (let ((map (make-sparse-keymap))) (define-key map " " 'act) (define-key map "\d" 'skip) (define-key map [delete] 'skip) (define-key map [backspace] 'skip) - (define-key map "y" 'act) - (define-key map "n" 'skip) (define-key map "Y" 'act) + (define-key map "y" 'act) (define-key map "N" 'skip) - (define-key map "e" 'edit-replacement) + (define-key map "n" 'skip) (define-key map "E" 'edit-replacement) + (define-key map "e" 'edit-replacement) (define-key map "," 'act-and-show) (define-key map "q" 'exit) (define-key map "\r" 'exit) @@ -2840,20 +2844,20 @@ perform-replace (match-again t) (message - (if query-flag - (apply #'propertize - (concat "Query replacing " - (if backward "backward " "") - (if delimited-flag - (or (and (symbolp delimited-flag) - (get delimited-flag - 'isearch-message-prefix)) - "word ") "") - (if regexp-flag "regexp " "") - "%s with %s: " - (substitute-command-keys - "(\\\\[help] for help) ")) - minibuffer-prompt-properties)))) + (when query-flag + (concat + (apply #'propertize + (concat "Query replacing " + (if backward "backward " "") + (if delimited-flag + (or (and (symbolp delimited-flag) + (get delimited-flag + 'isearch-message-prefix)) + "word ") "") + (if regexp-flag "regexp " "") + "%s with %s: ") + minibuffer-prompt-properties) + (substitute-command-keys query-replace-prompt-help))))) ;; Unless a single contiguous chunk is selected, operate on multiple chunks. (when region-noncontiguous-p -- 2.35.1 --=-=-= Content-Type: text/plain > An alternative is to have C-h and F1 temporarily show a longer line > with more commands. > >> One idea would be to choose between the short and long messages based on >> the size of the miniwindow as well as the length regexp and replacement >> text. > > That could also be a possibility. Between this and your suggestion, I'm undecided what's better. Perhaps this is more complicated than necessary. --=-=-=-- From unknown Tue Jun 17 01:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54173: 28.0.91; Training wheels for query-replace Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 10:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54173 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Augusto Stoffel Cc: 54173@debbugs.gnu.org Received: via spool by 54173-submit@debbugs.gnu.org id=B54173.16459593326737 (code B ref 54173); Sun, 27 Feb 2022 10:56:01 +0000 Received: (at 54173) by debbugs.gnu.org; 27 Feb 2022 10:55:32 +0000 Received: from localhost ([127.0.0.1]:56912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOHDA-0001kb-AI for submit@debbugs.gnu.org; Sun, 27 Feb 2022 05:55:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOHD9-0001kO-6b for 54173@debbugs.gnu.org; Sun, 27 Feb 2022 05:55:31 -0500 Received: from [2001:470:142:3::e] (port=47614 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 1nOHD3-000315-Sy; Sun, 27 Feb 2022 05:55:25 -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=5h+ZVi2hWvruU4J+s0Z9NyZvJnlKWdB+W7IEug6iqiE=; b=UUTi2o6C5mVEf1qgYzJ9 OJ6FaWJn0SOx9aFlWsPudwStKYvn+5vyaO/dhC/SoRm7PnFZNC/3rwB09WIfHIGuyatvSBNqncYLf uaA5GIpTf4mpsMxKZ0MUqZlqHYc+T6/xCy+XaybwrVatMYeI8BU1nWA+09eJ7YzvhGUDrU+H0flrk FWG8BEljfqVc3oZvJ1RfwK3MQzRlLjp0EXWkjdZfaNKOHjyQcNgA8PBSmyqgEPDURsboIuHDfEOjM /ubgutNMfjNZrj7AqQ287TUIXZj2fj720Gle7RNXk7iwkSNGs4SxmGH/3RaY9bhch3qVZlE9fNB6n +xT5gafG6OkbxA==; Received: from [87.69.77.57] (port=2406 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 1nOHD3-0007N6-By; Sun, 27 Feb 2022 05:55:25 -0500 Date: Sun, 27 Feb 2022 12:55:12 +0200 Message-Id: <83o82so9yn.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87wnhgtxzv.fsf@gmail.com> (message from Augusto Stoffel on Sun, 27 Feb 2022 11:17:08 +0100) References: <87a6edi8b3.fsf@gmail.com> <835yp0pzoh.fsf@gnu.org> <87wnhgwxo8.fsf@gmail.com> <83tuckogza.fsf@gnu.org> <87sfs4wv35.fsf@gmail.com> <83sfs4oe56.fsf@gnu.org> <87wnhgtxzv.fsf@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Augusto Stoffel > Cc: 54173@debbugs.gnu.org > Date: Sun, 27 Feb 2022 11:17:08 +0100 > > >> I think ‘y’ and ‘n’ are intuitive enough that they don't need a > >> reminder. But mentioning the more uncommon ones (‘.’ and so on) without > >> talking about ‘y’ and ‘n’ is weird. > > > > How about the below? > > > > (‘y’/‘n’, ‘.’ replace & exit, ‘^’ back up, ‘?’ help) > > I find this better than the status quo. I've attached the patch. Thanks. Let's wait a bit to let others chime in and express their opinions. > >> One idea would be to choose between the short and long messages based on > >> the size of the miniwindow as well as the length regexp and replacement > >> text. > > > > That could also be a possibility. > > Between this and your suggestion, I'm undecided what's better. Perhaps > this is more complicated than necessary. Let's see what others think. From unknown Tue Jun 17 01:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54173: 28.0.91; Training wheels for query-replace Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 13:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54173 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Augusto Stoffel Cc: 54173@debbugs.gnu.org, Eli Zaretskii Received: via spool by 54173-submit@debbugs.gnu.org id=B54173.164596742729499 (code B ref 54173); Sun, 27 Feb 2022 13:11:02 +0000 Received: (at 54173) by debbugs.gnu.org; 27 Feb 2022 13:10:27 +0000 Received: from localhost ([127.0.0.1]:57024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOJJj-0007fj-Jy for submit@debbugs.gnu.org; Sun, 27 Feb 2022 08:10:27 -0500 Received: from quimby.gnus.org ([95.216.78.240]:53652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOJJg-0007fU-Nd for 54173@debbugs.gnu.org; Sun, 27 Feb 2022 08:10:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=vwgdj0KuIidzCD7qce9+vDuDHpLIeGArH1yK+sFSszw=; b=W51w+4/7znRWIGyYSkcA3j1WTt K6DarncW206oHqCLb8Vk1Y1O3vGoIUb4y8qUgBVcXXp7Xdqfha/wp5bsorlhiICxNUiij7Z/EDGze w0+Oj6AHp7tj47nn3BAwqM6cVHlPpVkwqxmV2mBr5/i4Ah/IW3ydb06BblwyLnwHNPtc=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nOJJX-0002Ei-F7; Sun, 27 Feb 2022 14:10:18 +0100 From: Lars Ingebrigtsen References: <87a6edi8b3.fsf@gmail.com> <835yp0pzoh.fsf@gnu.org> <87wnhgwxo8.fsf@gmail.com> <83tuckogza.fsf@gnu.org> <87sfs4wv35.fsf@gmail.com> <83sfs4oe56.fsf@gnu.org> <87wnhgtxzv.fsf@gmail.com> X-Now-Playing: Tom Tom Club's _Tom Tom Club_: "=?UTF-8?Q?L'=C3=89l=C3=A9phant?=" Date: Sun, 27 Feb 2022 14:10:13 +0100 In-Reply-To: <87wnhgtxzv.fsf@gmail.com> (Augusto Stoffel's message of "Sun, 27 Feb 2022 11:17:08 +0100") Message-ID: <87tucksbey.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Augusto Stoffel writes: > - (define-key map "y" 'act) > - (define-key map "n" 'skip) > (define-key map "Y" 'act) > + (define-key map "y" 'act) > (define-key map "N" 'skip) > - (define-key map "e" 'edit-replacement) > + (defi [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Augusto Stoffel writes: > - (define-key map "y" 'act) > - (define-key map "n" 'skip) > (define-key map "Y" 'act) > + (define-key map "y" 'act) > (define-key map "N" 'skip) > - (define-key map "e" 'edit-replacement) > + (define-key map "n" 'skip) > (define-key map "E" 'edit-replacement) > + (define-key map "e" 'edit-replacement) This seems unrelated, and just moves bindings around? >> > (=E2=80=98y=E2=80=99/=E2=80=98n=E2=80=99, =E2=80=98.=E2=80=99 replac= e & exit, =E2=80=98^=E2=80=99 back up, =E2=80=98?=E2=80=99 help) >>=20 >> I find this better than the status quo. I've attached the patch. > > Thanks. Let's wait a bit to let others chime in and express their > opinions. I'm not sure I understood the patch. Is the proposal to append all that to "Query replacing foo with bar"? It'll make prompts commonly be longer than a line, and it's pretty noisy, so if that's the proposal, I'm against it. The help is on `?', so I don't see the point, either. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Jun 17 01:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54173: 28.0.91; Training wheels for query-replace Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 13:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54173 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 54173@debbugs.gnu.org, Eli Zaretskii Received: via spool by 54173-submit@debbugs.gnu.org id=B54173.164596959017632 (code B ref 54173); Sun, 27 Feb 2022 13:47:01 +0000 Received: (at 54173) by debbugs.gnu.org; 27 Feb 2022 13:46:30 +0000 Received: from localhost ([127.0.0.1]:57111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOJsc-0004aJ-0V for submit@debbugs.gnu.org; Sun, 27 Feb 2022 08:46:30 -0500 Received: from mail-ed1-f51.google.com ([209.85.208.51]:38807) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOJsZ-0004a4-JH for 54173@debbugs.gnu.org; Sun, 27 Feb 2022 08:46:28 -0500 Received: by mail-ed1-f51.google.com with SMTP id s24so13922267edr.5 for <54173@debbugs.gnu.org>; Sun, 27 Feb 2022 05:46:27 -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=79hGP3Jtqtp4PEoJ0JrJ306eI2Gu//ah5irfI0wBIEg=; b=HgCLZVg1Zss5maoMVSe/lX5NSZQ9TG9kfpWbv4LNr4md/9K0n4Xf3Nsh6cOrvFxUMS q8HxJgZcXas9phJoIc16IsyZH65RX7GrhK+Jw6yLvIK7XwnJ1VI9wgbYDdDODo8mjO5Y j2rEyItVY3yMSWLvpdgrF3gr7muXNc35KH8pzPTZ51/Y/SLmiNZcccAxtgA6kWMa6J0Q jj8KE+4fsPRqGieBmC+oUPKf81c7eOpcyisCpsA1dVX14xznkW9WoqWRORq6x4vvcDV9 7JQ5zoh5ueVDk+WRj/9fbkW4aJKNW3DIlKs9Kq38pMAdTXnrSlVZO4mhq7ENy8bqocT1 CtcQ== 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=79hGP3Jtqtp4PEoJ0JrJ306eI2Gu//ah5irfI0wBIEg=; b=phGMiZUdA7gnmO9QkS7KNPQGPRc7t7W1k1imtHyy7wAqxwd8zgcwOLLlcW3zdSbUHb lkVKHl+Q83Sw34Q01suU4X3PTOV5ds7R2HOeIK0uZlxzhH9OKwk8D4DR7EOjOnmiBe7Q pXLYzFmuW15boOhwxQh4KsfKSuD+EZVVdbC0HEfOWAET/hGkGjfzR8Ne/Skl+ZKrxIDX SiCKZ1+cbK4FKntvBvWthiy/XO0QaQG/GjtmeqXXKjjmh04OLEiCHVF1RCEbN6vF2Tej ogOM7oFn5/zKUwGa7oEskeEx/hikpVgn48R6ycj8lcRZbP/RJYP+g6gLr9wx9WpC9cBJ armQ== X-Gm-Message-State: AOAM533FNtphQt9ryXP8VzqWegGCzyNJv8H3DtMunuHe6q/pOQGdmoH5 BMPJ+rMW5aahAZLBdfzcAJDzYy5lphMW+w== X-Google-Smtp-Source: ABdhPJwvKX+gDDCYl2/RTbWKbLVeArK4S0/3reEf9hGoSFcZf4BZL3kU1O5Q0EtrA0au9qwjZMFElA== X-Received: by 2002:aa7:c391:0:b0:410:83fb:abab with SMTP id k17-20020aa7c391000000b0041083fbababmr15371001edq.435.1645969581351; Sun, 27 Feb 2022 05:46:21 -0800 (PST) Received: from ars3 ([2a02:8109:8ac0:56d0::758e]) by smtp.gmail.com with ESMTPSA id d8-20020a170906304800b006cdf8a1e146sm3363441ejd.217.2022.02.27.05.46.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Feb 2022 05:46:20 -0800 (PST) From: Augusto Stoffel References: <87a6edi8b3.fsf@gmail.com> <835yp0pzoh.fsf@gnu.org> <87wnhgwxo8.fsf@gmail.com> <83tuckogza.fsf@gnu.org> <87sfs4wv35.fsf@gmail.com> <83sfs4oe56.fsf@gnu.org> <87wnhgtxzv.fsf@gmail.com> <87tucksbey.fsf@gnus.org> Date: Sun, 27 Feb 2022 14:46:18 +0100 In-Reply-To: <87tucksbey.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 27 Feb 2022 14:10:13 +0100") Message-ID: <87tuckjuc5.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sun, 27 Feb 2022 at 14:10, Lars Ingebrigtsen wrote: > Augusto Stoffel writes: > >> - (define-key map "y" 'act) >> - (define-key map "n" 'skip) >> (define-key map "Y" 'act) >> + (define-key map "y" 'act) >> (define-key map "N" 'skip) >> - (define-key map "e" 'edit-replacement) >> + (define-key map "n" 'skip) >> (define-key map "E" 'edit-replacement) >> + (define-key map "e" 'edit-replacement) > > This seems unrelated, and just moves bindings around? This is so that 'substitute-command-keys' pick up the right key for each command, that is, the lower cased ones. >>> > (=E2=80=98y=E2=80=99/=E2=80=98n=E2=80=99, =E2=80=98.=E2=80=99 repla= ce & exit, =E2=80=98^=E2=80=99 back up, =E2=80=98?=E2=80=99 help) >>>=20 >>> I find this better than the status quo. I've attached the patch. >> >> Thanks. Let's wait a bit to let others chime in and express their >> opinions. > > I'm not sure I understood the patch. Is the proposal to append all that > to "Query replacing foo with bar"? It'll make prompts commonly be > longer than a line, and it's pretty noisy, so if that's the proposal, > I'm against it. Well, yes, that's the proposal... At least now that string is a defvar that you can set to nil if you want to save some columns :-) > The help is on `?', so I don't see the point, either. I think it's just nice to have a constant reminder of =E2=80=98.=E2=80=99 a= nd =E2=80=98^=E2=80=99. Of course I'll remember them after all this discussion, but until now I could never quite recall them when the occasion arose. From unknown Tue Jun 17 01:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54173: [External] : bug#54173: 28.0.91; Training wheels for query-replace Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 16:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54173 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , Augusto Stoffel Cc: "54173@debbugs.gnu.org" <54173@debbugs.gnu.org> Received: via spool by 54173-submit@debbugs.gnu.org id=B54173.16459783011451 (code B ref 54173); Sun, 27 Feb 2022 16:12:02 +0000 Received: (at 54173) by debbugs.gnu.org; 27 Feb 2022 16:11:41 +0000 Received: from localhost ([127.0.0.1]:59068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOM96-0000NL-PG for submit@debbugs.gnu.org; Sun, 27 Feb 2022 11:11:41 -0500 Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:30544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOM94-0000NB-3l for 54173@debbugs.gnu.org; Sun, 27 Feb 2022 11:11:39 -0500 Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 21R9iUdo021519; Sun, 27 Feb 2022 16:11:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=rI74k1zvPB5qRZneYkVWYnbsSe4QW4JkjyD4Ca16DyM=; b=jSxOK1TUJmBxsRMc6pix9gYp+0RjcQfErUrXvu2wcCEBu/h9EHSWuAivO5QvZ1xqizoW 1ZHxvpkaBTccYzHYo5k64JbRYobN/pKQmEpCaw9D71Rk0goRDirNs5LaBuSdWIAR+UeT qypZTWR3ZfqjEIRzbRqVh8ntGqje6qAC7+Y3Y1HNzbRMPDfwQZgJc+X/koFkZGWhTMjS ZYwLWWnQehRRiUdF7l6/9Qe1kwcT19ap8bvVL5DW86u5EzHs67rP9ojtL+wwFcx8UX9N tYQH1Gl6g51VephNSXB9bdLcUPRend1QFaNpsAF9fI2/LArbLKlaQbfNDptSyvpL90ib wA== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by mx0b-00069f02.pphosted.com with ESMTP id 3efat1thhu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 27 Feb 2022 16:11:36 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 21RGB3TB084661; Sun, 27 Feb 2022 16:11:35 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1anam02lp2042.outbound.protection.outlook.com [104.47.57.42]) by aserp3020.oracle.com with ESMTP id 3efc127y9q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 27 Feb 2022 16:11:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k6rCjjhDCA+tgqog1CIFFMBpgkLXf098n4dw/2j/N69Jp4Nj867lDrfdNFAxSQLQo4+3L5stt0HgG9sMOUXzg5odp7xU24U2fQzB5T5CoHmQqcges3PJDUHN+zScJsumMWDNATOw3tcv7J2nYxswux+kGE1exEf2oEbpN9D5JeJ9H8sUCOVUwD42QxQc7LJTt3PVUXSa+4MviZQdGYFu+SUg13mhjyo6JkinhbzBhlI+cJmn43hvwa3Jtnef3OUjZt5U/XwKysNa69Dzy7ZRRCAx4R8nV4evriO1Wy/U+XWnrZCpC5Tl8Pk+gVkctDQ1uOaZQu1G4vvzQgLlsAvLiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rI74k1zvPB5qRZneYkVWYnbsSe4QW4JkjyD4Ca16DyM=; b=kASxhEQ76olAciRRDfuHXnGcks8vRWt652NKL6l5YkOzpNIyFR2/w0JoBtwc9cd5pTfGHLpbdHRjlWZ7E3JW/TPwOVZTXsBJkr5rmlS+qvgazkcoqUVliHGa1fq8EpSqyttaCvX+vqcFTK/XagVGLE6TCpBqc7q7OSHecEwd+I6uWNxKeNOEZ5gxtg6edX0Rdu4AkLep2vS0IRXR44NZzlKM+HJCtDrXZyix8TwMLCrKK+Y8lms1fBO445MdN1UhKqMcwUrQTTtgXX3Z3OfYL16ybPfCxFF4rToBnoVsc13+v02rGwSHeQASsC5I2tOyqUudfjQJM0UUoQkrk4u04Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rI74k1zvPB5qRZneYkVWYnbsSe4QW4JkjyD4Ca16DyM=; b=ofpAtszSUdyHQstLbHU02XBQ/V61k6IZ6kqyrBfsOWiDCYIG9v6mESM6QbuiB7H4hL8sY7dI4tgZyOFZQIjaTz4wB0d0WDQnFi3OvyP2PH28vARNsPVcIyBnKmOHTCLj4B1/EmD+4oHOY47iceqV6h0yG90/PTNgjUJpnxMOtds= Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by DM6PR10MB3052.namprd10.prod.outlook.com (2603:10b6:5:68::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.23; Sun, 27 Feb 2022 16:11:33 +0000 Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::f811:66c9:41ab:df79]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::f811:66c9:41ab:df79%7]) with mapi id 15.20.5017.026; Sun, 27 Feb 2022 16:11:33 +0000 From: Drew Adams Thread-Topic: [External] : bug#54173: 28.0.91; Training wheels for query-replace Thread-Index: AQHYK8lVMaVMCAGmFUm7tV29ayIr7aynjUSQ Date: Sun, 27 Feb 2022 16:11:33 +0000 Message-ID: References: <87a6edi8b3.fsf@gmail.com> <835yp0pzoh.fsf@gnu.org> <87wnhgwxo8.fsf@gmail.com> <83tuckogza.fsf@gnu.org> <87sfs4wv35.fsf@gmail.com> <83sfs4oe56.fsf@gnu.org> <87wnhgtxzv.fsf@gmail.com> <83o82so9yn.fsf@gnu.org> In-Reply-To: <83o82so9yn.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7a16e0ff-697a-444d-eef5-08d9fa0bd2b4 x-ms-traffictypediagnostic: DM6PR10MB3052:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /WowNoY6wB4cmqbYTivMOb5g4NrmmnY4D6Zau81qtTDDf1smsoaHWS/xleKVS2vzitEsbNIDz7TBVQXnMgODb/Kax5Acc6dK87h1zLntWUUC5LJwyna2XdSLG7ubCliDVtZnsDoWpx68mZ5oioKoaZH9GadLmXZsVBiFdw2mfR9YuEAO7TzuO8Vlg/lJufHNJlNc+p++6huyxAl+R+SFAfFZONv825XepXsDqlzCDn66uVr/VYab6k7GJTNkl0cZQSbzUEpB2V8y2g4+nuCQW7V4/135Q/YIufQG8RlUwx337qBgdCX6gwpdkCL1sKPEv9EpaPKmE7qp/xMvfbYs4I4hQCN1+mgmc1rTS14iWD6V3lIkDtTY58GCvXLBJGuMkMyylGsvXWqIIGlcPhanvFESmLkev9HwQKcg9OXTapa9HkrKyXMUPaXMc5zlzVkSNaQJlR7eBlENmzki+3DPzv75OGqv+ZTNTGRJj7flgf0x0g0zuxerx61wF0l21OSnso5Ic6GatkToodn3ZgVQexG45Xn4Cda0uBZ0kkYwyL/FYzcCoCmEpUQxg5DVNvwFzueiLinBvKSvfrlwzp6h7yxXB0lkH4uvvagIoPNwyCtDkQ8VEXyH9N9lbGWa2cqV+I3tIRn4M2ADVl3y/GM9SEETRzUX3F3vC7FYcngO2Yjbw/KNDgSKaBrRi3+rX6bmE5fdYW8r5fLhVS6rOVMryA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(83380400001)(110136005)(186003)(26005)(508600001)(33656002)(8676002)(2906002)(4326008)(122000001)(66446008)(38070700005)(64756008)(44832011)(5660300002)(66946007)(316002)(76116006)(66476007)(66556008)(7696005)(6506007)(9686003)(55016003)(71200400001)(86362001)(8936002)(38100700002)(52536014); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: TnvdZhA4c246CRspUqyUPnHTcBcaA7MHBtQqL1tVVKNinxG+lvcCP5Ln8wlvvAmtfQJSqoHsnujrpz0G4ZtQHbXWzdRgD0IpI/LjUwgqmsj0NPULU36xCQiRQI36ei0T30PN71i/DdULeQLJhPd22rSZSX0yTf0AHgzJvE7ieEWs68w3wU5BYW9wYTizyVWn5WcHrHL2g9P7CC0aceaauC75zyN3ncgSST8Uembt5J+DcVCL9O8Xeq9o7p6+B7Vn/0AJrV1HrzHL1ABYxxQ2VwSYPumn2mYJ1gTjgPk1Ajzm2zVj/7jJ4wpsUiZd+O9XfTclOVOAwUh7Qj/mFBfpR6n/n9CVoaJ5nzIY/zFK8Fe8oNs0Q/qXmh9kjnQ2pCrLLtODXNuUsZTf8F39bQG27frbL0+DNIaQP7DvVWlW1FceCZHkG5GPwOgPSymMkvW1QbAwE2yJIc+M0Uu+xEbWNfyInDDz2QiSEUVuUda5J9bM6lCkCVYIlDXsVo2ooPL2Y9EOr8EK+SwyLQiSP04wFyoJwC8c3Fghx0zMtQTRB8Xvbc4Qw+a/DaLgtZK4rbPQXrac3lA5t/777KdDHbP+wBmBRZQ8t2ccjsG7mC/hHpAlsdpOz9mM5SMgWV7VbwPsgKVp7VC0+mRwLiEeuXx26U0yxORJr7sAgSI7Xqu8Nw9rVkqBT67n4fGMjGDtVsUC1sHvnSolKtw3SRaOqH87L5q/DdKygFio1dJfnHk015zwL5QFbzFRiTNbD3iWnMhhKC4Z9z2xvhP/WTp5ImCphv2seDxYUV+Mnb2mU3B945cLpEzg90gaR/k0V8vMr2fvLw1P6ZUx+IHfrGhmHR1ReZT557E/V3hWlBRYgvTIqmiAhSFq9LFTOHlX21n0Ny0sco3thRiucK/lINNbQ0GCkbOTM6GEDwdBXJtG1xdfVEL+vMnel+pTYNYtM/wd9EywYlnNk7qL2lQOM/NQAYf63cowlwf8k/Flv6PIZZAjzxzJQ0fLtNiBkI1sCKerWyUJYgPepZht5LCBNs8/OwZezaPh9n9tBfJ5GolMGeijmlFNoxt67hui+CBCdxKf5HLPglkwIALX75LNmLJ30QAvhpN5sVOLgr8V9A3kFNSZnqc4nOIE+TU11y36tdqgTbcrI/VMRofHFj2FNJxHKG+Asxi4S5afM9MOcgMaC4nZaTnFL28b52w0w5/TDYDFEIU1o/69nd13tPoN4hNaoXjJoEH4mpiMPDgoGIkNqSArDioi/6wPnD8xo7DsAoZ2Xt9rfRAj7QNz0GdP4XkEU1KMRw2k7gCld97IwXUQwiCTOIQb4KV7cOqX/DELaHHgQKtjnQEANIcgYrMhEnsTXnFzxa2nQHLycj/RlM3HOAgdfvmWRo2LtWfJ9/v3BVhpSR972XUOc+kdJMjbwvXN9RomnjK2lOGoLra+33iyvB+kuqQ+xn1k0gBec1qTzpAbLwC2USxKbxyi+jHvh8iEVpWYzceZDV4cj3Ki91ZbvhdIPC9msCPkt/7znGwcq0ZTKbfFJoU/7kkw9c+zgOHU4mbTaqJeiEBus/6MFDGVK3LHdsYTtjC06rG3jS/aryxhR2lmJnJ+uJs+NI2yA3Dx2Y/oEA== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7a16e0ff-697a-444d-eef5-08d9fa0bd2b4 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Feb 2022 16:11:33.5500 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: SyZXApxtfSeeqMsB6UZ1cSzNQwhPxgeP05kiBcUz7wKODftfBoMbHfn3pDt2r9PA/7Fa0umamvZP9hZXALyYeQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR10MB3052 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10271 signatures=684655 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 phishscore=0 bulkscore=0 adultscore=0 spamscore=0 suspectscore=0 mlxlogscore=514 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202270112 X-Proofpoint-GUID: pdb0pouER6A7ojObiB5OfE1MXHCMHT_k X-Proofpoint-ORIG-GUID: pdb0pouER6A7ojObiB5OfE1MXHCMHT_k X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) PiA+ID4gSG93IGFib3V0IHRoZSBiZWxvdz8NCj4gPiA+DQo+ID4gPiAgICjigJh54oCZL+KAmG7i gJksIOKAmC7igJkgcmVwbGFjZSAmIGV4aXQsIOKAmF7igJkgYmFjayB1cCwg4oCYP+KAmSBoZWxw KQ0KPiA+DQo+ID4gSSBmaW5kIHRoaXMgYmV0dGVyIHRoYW4gdGhlIHN0YXR1cyBxdW8uICBJJ3Zl IGF0dGFjaGVkIHRoZSBwYXRjaC4NCj4gDQo+IFRoYW5rcy4gIExldCdzIHdhaXQgYSBiaXQgdG8g bGV0IG90aGVycyBjaGltZSBpbiBhbmQgZXhwcmVzcyB0aGVpcg0KPiBvcGluaW9ucy4NCg0KSnVz dCBhIHF1aWNrIG5pdCBhYm91dCB0aGUgcHJvcG9zZWQgcHJvbXB0IHRleHQuICAoTm90DQpjb21t ZW50aW5nIG9uIHRoZSByZXN0IG9mIHlvdXIgZXhjaGFuZ2U7IHlvdSBzZWVtIHRvDQpiZSBkaXNj dXNzaW5nIGl0IGZydWl0ZnVsbHkuKQ0KDQpNeSBjb21tZW50IG9uIHRoYXQgdGV4dDogVGhlIGNs YXVzZXMgc2VwYXJhdGVkIGJ5DQpjb21tYXMgZWFjaCBzaG93IGEga2V5IGZvbGxvd2VkIGJ5IGEg YnJpZWYgZGVzY3JpcHRpb24NCm9mIHdoYXQgdGhlIGtleSBkb2VzLiAgX0V4Y2VwdF8gZm9yICJg eScvYG4nIi4gIEl0J3MNCm5vdCBuZWNlc3NhcmlseSBvYnZpb3VzIHdoYXQgdGhlIHkvbiBiZWhh dmlvcnMgYXJlLg0KDQpBbmQgZXZlbiBpZiB5b3UgdGhpbmsgdGhlIHkvbiBiZWhhdmlvcnMgYXJl IG9idmlvdXMsDQppdCdzIG5vdCBzbyBlYXN5IHRvIHBhcnNlIHRoZSBtZXNzYWdlLCBzcGxpdHRp bmcgaXQNCnByb3Blcmx5IGF0IGNvbW1hcyAtIGVzcGVjaWFsbHkgZ2l2ZW4gdGhlIGluY29uc2lz dGVudA0KdHJlYXRtZW50IG9mIHkvbi4NCg0KMS4gQ29uc2lkZXIgYWRkaW5nIGF0IGxlYXN0IHNv bWUgdGV4dCBhZnRlciBgeScvYG4nDQoobWF5YmUgInJlcGxhY2UgdGhpcyIgb3IganVzdCAidGhp cyIgb3IganVzdCAiaGVyZSI/KS4NCg0KMi4gSSB3b25kZXIgaWYgaXQgYWxzbyBtaWdodCBiZSBj bGVhcmVyIHRvIGRyb3AgdGhlDQpxdW90ZXMsIGFkZCBhIGNvbG9uLCBhbmQgcGVyaGFwcyB0byB1 c2UgYSBzZW1pY29sb24NCm9yIHNsYXNoIGFzIHNlcGFyYXRvcjoNCg0KKHkvbjogcmVwbGFjZSBo ZXJlIC8gLjogcmVwbGFjZSAmIGV4aXQgLyBeOiBiYWNrIHVwIC8gPzogaGVscCkNCg0KdmVyc3Vz DQoNCijigJh54oCZL+KAmG7igJkgPHdoYXQ/Piwg4oCYLuKAmSByZXBsYWNlICYgZXhpdCwg4oCY XuKAmSBiYWNrIHVwLCDigJg/4oCZIGhlbHApDQoNCkp1c3QgYSBzdWdnZXN0aW9uLCB0byBjb25z aWRlciBib3RoIHkvbiBhY3Rpb24gYW5kDQpiZXR0ZXIgc2VwYXJhdGlvbi4gIFlvdSBtYXkgd2Vs bCBmaW5kIG90aGVyL2JldHRlcg0Kd2F5cyB0byBhZGRyZXNzIHRob3NlIHR3byBxdWVzdGlvbnMu DQo= From unknown Tue Jun 17 01:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54173: 28.0.91; Training wheels for query-replace Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Mar 2022 16:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54173 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: 54173@debbugs.gnu.org, Lars Ingebrigtsen , Eli Zaretskii , Drew Adams Received: via spool by 54173-submit@debbugs.gnu.org id=B54173.16463257245110 (code B ref 54173); Thu, 03 Mar 2022 16:43:02 +0000 Received: (at 54173) by debbugs.gnu.org; 3 Mar 2022 16:42:04 +0000 Received: from localhost ([127.0.0.1]:43535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nPoWh-0001KM-Ta for submit@debbugs.gnu.org; Thu, 03 Mar 2022 11:42:04 -0500 Received: from mail-ej1-f43.google.com ([209.85.218.43]:40838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nPoWg-0001Jt-Jd for 54173@debbugs.gnu.org; Thu, 03 Mar 2022 11:42:02 -0500 Received: by mail-ej1-f43.google.com with SMTP id p15so11895714ejc.7 for <54173@debbugs.gnu.org>; Thu, 03 Mar 2022 08:42:02 -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=w5hcacg76bktkiyF+gYHikoqwVfBcuyVOsM1zs+4RhQ=; b=Px5A4dPUkXrCq8ZTEteMuGRWFy4b4NwSCbGSvKT2rT5GxjLBjTciQzBL/GDxgYzari BeXd01I0aVPnw6RGKFf/FXdTdTvqhf167d6Uc84bUlSDVSbrYNEr8DzWWM8k0Qx3AS5B U28gDwCS06bKUh23zwiEtukiOamB8jht4DW5qUPj4QSycJGmvkv0EvwGLN7DCqlVNNa0 gFv3aHRVp+5sinrdEGGxzme6o3yL7wKzFyhv+GjBdw57o2erfEO6lOV+J6TN35FuEfCq Y1epB/C2JmSNEZAPfiDzxPWjxX0xDJQRuvfzhvyNU2fN8PXnygN+g1m2OGVYbLth3ffa tGFw== 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=w5hcacg76bktkiyF+gYHikoqwVfBcuyVOsM1zs+4RhQ=; b=dXHzC2Vc1kzS0prMmLDqOg/e1Sr/vsqSqtboq3EqItrNgB3gntkmk6xQaxCtzrjzKH 3TRMQPIHdgeyOhFxbgjqxMOc7xerdSCaS8FBx3VqaF4rnio4Kiaf572E8JfNHOtwtbPS ZNb9DUPR3qdUCv7WBC7mYEDvlqYpRY5dDyZof3GK32EmH264DxnhEQ3CneHf/+5xqP8v Y8jPJ3MBdg6IGGYBpRYVcyVcoHhaGIAJ1SDbkchofiL8VdWWfHdElYON/oz1j117/m1l Jc2N5iT3Oe7Orh5PwaQiZTPBk1pyZeHL/ZzsFWh5WZl86CkEy7wiUJEGy/PA+mB0LAFR yY9Q== X-Gm-Message-State: AOAM531nvLwiySSLYaO62qBsdbegRznR9pgaLVc09G2TCKYdjyH18B6A Q9Dzc3gcJer8vUSQCbrMfVs= X-Google-Smtp-Source: ABdhPJxKwbEFHOcpXwtn8HQCAQYvVJMK9IWX8ArDe7NqfbDNQm4Cnj2dNOzLt3c9+hxnnnwKpOpg4A== X-Received: by 2002:a17:907:608b:b0:6da:8fa8:27e8 with SMTP id ht11-20020a170907608b00b006da8fa827e8mr3065557ejc.168.1646325716757; Thu, 03 Mar 2022 08:41:56 -0800 (PST) Received: from ars3 ([2a02:8109:8ac0:56d0::758e]) by smtp.gmail.com with ESMTPSA id d1-20020a17090694c100b006da91d57e93sm779670ejy.207.2022.03.03.08.41.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Mar 2022 08:41:56 -0800 (PST) From: Augusto Stoffel References: <87a6edi8b3.fsf@gmail.com> <835yp0pzoh.fsf@gnu.org> <87wnhgwxo8.fsf@gmail.com> <83tuckogza.fsf@gnu.org> <87sfs4wv35.fsf@gmail.com> <83sfs4oe56.fsf@gnu.org> <87wnhgtxzv.fsf@gmail.com> <87tucksbey.fsf@gnus.org> <87tuckjuc5.fsf@gmail.com> Date: Thu, 03 Mar 2022 17:41:55 +0100 In-Reply-To: <87tuckjuc5.fsf@gmail.com> (Augusto Stoffel's message of "Sun, 27 Feb 2022 14:46:18 +0100") Message-ID: <87r17jc7jg.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> I'm not sure I understood the patch. Is the proposal to append all that >> to "Query replacing foo with bar"? It'll make prompts commonly be >> longer than a line, and it's pretty noisy, so if that's the proposal, >> I'm against it. > > Well, yes, that's the proposal... > > At least now that string is a defvar that you can set to nil if you want > to save some columns :-) I'm including Juri in this thread so maybe we can get one more opinion. Let me also say that we could modify the patch so that the help message remains the same, i.e., just =E2=80=9C(? for help)=E2=80=9D. Then at least= it's not hardcoded anymore. From unknown Tue Jun 17 01:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54173: 28.0.91; Training wheels for query-replace Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Mar 2022 19:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54173 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Augusto Stoffel Cc: 54173@debbugs.gnu.org, Eli Zaretskii Received: via spool by 54173-submit@debbugs.gnu.org id=B54173.164694033918344 (code B ref 54173); Thu, 10 Mar 2022 19:26:01 +0000 Received: (at 54173) by debbugs.gnu.org; 10 Mar 2022 19:25:39 +0000 Received: from localhost ([127.0.0.1]:35529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSOPr-0004lo-7d for submit@debbugs.gnu.org; Thu, 10 Mar 2022 14:25:39 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:53985) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSOPq-0004lX-9h for 54173@debbugs.gnu.org; Thu, 10 Mar 2022 14:25:38 -0500 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 34C53200002; Thu, 10 Mar 2022 19:25:30 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87a6edi8b3.fsf@gmail.com> <835yp0pzoh.fsf@gnu.org> <87wnhgwxo8.fsf@gmail.com> Date: Thu, 10 Mar 2022 21:20:17 +0200 In-Reply-To: <87wnhgwxo8.fsf@gmail.com> (Augusto Stoffel's message of "Sun, 27 Feb 2022 08:55:51 +0100") Message-ID: <865yolpqim.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > PS: Should we define 'p' as a synonym for '^' in 'query-replace-map'? In my config I rebound '^' to 'C-r' to be like in isearch-mode, so 'C-r' goes backward, 'C-s' forward, and 'M-e' is like 'isearch-edit-string': (define-key query-replace-map "\C-s" 'skip) (define-key query-replace-map "\C-r" 'backup) (define-key query-replace-map "\M-e" 'edit-replacement) (define-key query-replace-map "\M-\C-r" 'edit) From unknown Tue Jun 17 01:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54173: 28.0.91; Training wheels for query-replace Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Mar 2022 19:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54173 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Augusto Stoffel Cc: 54173@debbugs.gnu.org, Lars Ingebrigtsen , Eli Zaretskii , Drew Adams Received: via spool by 54173-submit@debbugs.gnu.org id=B54173.164694034418364 (code B ref 54173); Thu, 10 Mar 2022 19:26:02 +0000 Received: (at 54173) by debbugs.gnu.org; 10 Mar 2022 19:25:44 +0000 Received: from localhost ([127.0.0.1]:35532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSOPw-0004m6-E6 for submit@debbugs.gnu.org; Thu, 10 Mar 2022 14:25:44 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:39399) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSOPv-0004ld-9Z for 54173@debbugs.gnu.org; Thu, 10 Mar 2022 14:25:43 -0500 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 2F65D40005; Thu, 10 Mar 2022 19:25:34 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87a6edi8b3.fsf@gmail.com> <835yp0pzoh.fsf@gnu.org> <87wnhgwxo8.fsf@gmail.com> <83tuckogza.fsf@gnu.org> <87sfs4wv35.fsf@gmail.com> <83sfs4oe56.fsf@gnu.org> <87wnhgtxzv.fsf@gmail.com> <87tucksbey.fsf@gnus.org> <87tuckjuc5.fsf@gmail.com> <87r17jc7jg.fsf@gmail.com> Date: Thu, 10 Mar 2022 21:24:05 +0200 In-Reply-To: <87r17jc7jg.fsf@gmail.com> (Augusto Stoffel's message of "Thu, 03 Mar 2022 17:41:55 +0100") Message-ID: <86pmmtobl6.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >>> I'm not sure I understood the patch. Is the proposal to append all that >>> to "Query replacing foo with bar"? It'll make prompts commonly be >>> longer than a line, and it's pretty noisy, so if that's the proposal, >>> I'm against it. >> >> Well, yes, that's the proposal... >> >> At least now that string is a defvar that you can set to nil if you want >> to save some columns :-) > > I'm including Juri in this thread so maybe we can get one more opinion. > > Let me also say that we could modify the patch so that the help message > remains the same, i.e., just “(? for help)”. Then at least it's not > hardcoded anymore. Please don't change the default succinct prompt. If you think someone might want to display reminders for some rarely used keys, then a variable with a help string would be fine. From unknown Tue Jun 17 01:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54173: 28.0.91; Training wheels for query-replace Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Mar 2022 19:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54173 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: 54173@debbugs.gnu.org, Eli Zaretskii , Augusto Stoffel , Drew Adams Received: via spool by 54173-submit@debbugs.gnu.org id=B54173.164694054918706 (code B ref 54173); Thu, 10 Mar 2022 19:30:02 +0000 Received: (at 54173) by debbugs.gnu.org; 10 Mar 2022 19:29:09 +0000 Received: from localhost ([127.0.0.1]:35537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSOTE-0004re-Vu for submit@debbugs.gnu.org; Thu, 10 Mar 2022 14:29:09 -0500 Received: from quimby.gnus.org ([95.216.78.240]:59562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSOTD-0004rF-3o for 54173@debbugs.gnu.org; Thu, 10 Mar 2022 14:29:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=o1yXwCcaDWucTZbnhB+iwW0/RNMKsO9vPiQMFong3EU=; b=kvVkzH0AGpPA30grRBIOsohFbx MmwJM6JqYEyYf+KR/iZugCqlYiNpC3xBHc0kANkV/O+G/KxpUpheekHwxVyueiVj4VD0YDexI+er2 512TnVbjzmd/Jjq8IB08pav9Qj2YfKzN4dmxI92r1uoc2cGGyUptfDM0Tn1XBClPsrOw=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nSOSw-00017L-8u; Thu, 10 Mar 2022 20:28:52 +0100 From: Lars Ingebrigtsen References: <87a6edi8b3.fsf@gmail.com> <835yp0pzoh.fsf@gnu.org> <87wnhgwxo8.fsf@gmail.com> <83tuckogza.fsf@gnu.org> <87sfs4wv35.fsf@gmail.com> <83sfs4oe56.fsf@gnu.org> <87wnhgtxzv.fsf@gmail.com> <87tucksbey.fsf@gnus.org> <87tuckjuc5.fsf@gmail.com> <87r17jc7jg.fsf@gmail.com> <86pmmtobl6.fsf@mail.linkov.net> Date: Thu, 10 Mar 2022 20:28:49 +0100 In-Reply-To: <86pmmtobl6.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 10 Mar 2022 21:24:05 +0200") Message-ID: <878rth4nf2.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > If you think someone might want to display reminders for some rarely used > keys, then a variable with a help string would be fine. I think the likelihood of a user customising such a string is pretty much nil -- if they're able to formulate a longer help string here, then they'll remember the options they typed out. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov writes: > If you think someone might want to display reminders for some rarely used > keys, then a variable with a help string would be fine. I think the likelihood of a user customising such a string is pretty much nil -- if they're able to formulate a longer help string here, then they'll remember the options they typed out. So I don't think a variable here would be generally useful. If the original submitter wants to change the string for themselves, they can advise the function for themselves, or use `set-message-function' to alter the prompt. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Jun 17 01:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54173: 28.0.91; Training wheels for query-replace Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Mar 2022 19:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54173 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 54173@debbugs.gnu.org, Eli Zaretskii , Augusto Stoffel , Drew Adams Received: via spool by 54173-submit@debbugs.gnu.org id=B54173.164694214721605 (code B ref 54173); Thu, 10 Mar 2022 19:56:01 +0000 Received: (at 54173) by debbugs.gnu.org; 10 Mar 2022 19:55:47 +0000 Received: from localhost ([127.0.0.1]:35563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSOt0-0005cP-QW for submit@debbugs.gnu.org; Thu, 10 Mar 2022 14:55:46 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:52501) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSOsz-0005cB-L8 for 54173@debbugs.gnu.org; Thu, 10 Mar 2022 14:55:45 -0500 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id E26A0240005; Thu, 10 Mar 2022 19:55:36 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87a6edi8b3.fsf@gmail.com> <835yp0pzoh.fsf@gnu.org> <87wnhgwxo8.fsf@gmail.com> <83tuckogza.fsf@gnu.org> <87sfs4wv35.fsf@gmail.com> <83sfs4oe56.fsf@gnu.org> <87wnhgtxzv.fsf@gmail.com> <87tucksbey.fsf@gnus.org> <87tuckjuc5.fsf@gmail.com> <87r17jc7jg.fsf@gmail.com> <86pmmtobl6.fsf@mail.linkov.net> <878rth4nf2.fsf@gnus.org> Date: Thu, 10 Mar 2022 21:44:32 +0200 In-Reply-To: <878rth4nf2.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 10 Mar 2022 20:28:49 +0100") Message-ID: <86wnh1mw2n.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> If you think someone might want to display reminders for some rarely used >> keys, then a variable with a help string would be fine. > > I think the likelihood of a user customising such a string is pretty > much nil -- if they're able to formulate a longer help string here, then > they'll remember the options they typed out. I agree that probability tends to zero. OTOH, there is already such a const: (defconst query-replace-help "...") that is used in: (substitute-command-keys query-replace-help) So the same way a new const makes sense: (defconst query-replace-prompt-help "(\\\\[help] for help) ") to be used like this: (substitute-command-keys query-replace-prompt-help) that will help Augusto to solve this problem. From unknown Tue Jun 17 01:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54173: 28.0.91; Training wheels for query-replace Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Mar 2022 17:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54173 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: 54173@debbugs.gnu.org, Eli Zaretskii , Augusto Stoffel , Drew Adams Received: via spool by 54173-submit@debbugs.gnu.org id=B54173.164710435226727 (code B ref 54173); Sat, 12 Mar 2022 17:00:02 +0000 Received: (at 54173) by debbugs.gnu.org; 12 Mar 2022 16:59:12 +0000 Received: from localhost ([127.0.0.1]:40718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nT55E-0006x1-6b for submit@debbugs.gnu.org; Sat, 12 Mar 2022 11:59:12 -0500 Received: from quimby.gnus.org ([95.216.78.240]:50824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nT55C-0006wj-7l for 54173@debbugs.gnu.org; Sat, 12 Mar 2022 11:59:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=IWoV83VwDXRP9etQOiTVzZrMS/nCwz9EOFw2w5zhWmQ=; b=icOb72zTmU4RUI0yANtLiixHHb ySO/kM6pZ34XsN5KHF6w76rbmdAAFWtF43+mWjqpwHCZ6XMgdl0cU9oYlPfHLmn3wfBSLGOM6EeRv IC5KowwvkUgH2HhKkRHq4G+7iNKjGir2++ohLbvRF9RDd7w0wJ6oW9gqIZaAlwPlel8E=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nT54y-0001Oe-HR; Sat, 12 Mar 2022 17:58:58 +0100 From: Lars Ingebrigtsen References: <87a6edi8b3.fsf@gmail.com> <835yp0pzoh.fsf@gnu.org> <87wnhgwxo8.fsf@gmail.com> <83tuckogza.fsf@gnu.org> <87sfs4wv35.fsf@gmail.com> <83sfs4oe56.fsf@gnu.org> <87wnhgtxzv.fsf@gmail.com> <87tucksbey.fsf@gnus.org> <87tuckjuc5.fsf@gmail.com> <87r17jc7jg.fsf@gmail.com> <86pmmtobl6.fsf@mail.linkov.net> <878rth4nf2.fsf@gnus.org> <86wnh1mw2n.fsf@mail.linkov.net> Date: Sat, 12 Mar 2022 17:58:55 +0100 In-Reply-To: <86wnh1mw2n.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 10 Mar 2022 21:44:32 +0200") Message-ID: <87sfrn150w.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: >> I think the likelihood of a user customising such a string is pretty >> much nil -- if they're able to formulate a longer help string here, then >> they'll remember the options they typed out. > > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov writes: >> I think the likelihood of a user customising such a string is pretty >> much nil -- if they're able to formulate a longer help string here, then >> they'll remember the options they typed out. > > I agree that probability tends to zero. > > OTOH, there is already such a const: > > (defconst query-replace-help "...") > > that is used in: > > (substitute-command-keys query-replace-help) > > So the same way a new const makes sense: > > (defconst query-replace-prompt-help "(\\\\[help] > for help) ") > > to be used like this: > > (substitute-command-keys query-replace-prompt-help) > > that will help Augusto to solve this problem. I suspect that the former is just a const because people don't like to put walls of texts inside function definitions because it makes it more difficult to read the code, not because they thought anybody would want to change it. And that's not really the case with the prompt. So I'm leaning towards us not wanting to change anything here, and I'm therefore closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 12 11:59:17 2022 Received: (at control) by debbugs.gnu.org; 12 Mar 2022 16:59:17 +0000 Received: from localhost ([127.0.0.1]:40721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nT55I-0006xI-FY for submit@debbugs.gnu.org; Sat, 12 Mar 2022 11:59:16 -0500 Received: from quimby.gnus.org ([95.216.78.240]:50840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nT55G-0006wt-Ve for control@debbugs.gnu.org; Sat, 12 Mar 2022 11:59:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=CQRDABOzJMVgjDXPE3xeFNpAFJL6GLDKVEmXiBrbASA=; b=PrAnWziyiJu1+y7Lv2qtlW8At4 VNyA95Nnw/ijtVS/xLLggIO/+Oqev2sDLoh/1gGN7fJNRYcb5AsWO1zaGKjYoHUJjtICQ1mEQEmMK wLp3ViYVNo3kpceeTuBuJ8jzrzlGXtT5fYp+61KZGc9BZBdF43lfoSQIys7pj74jj8+4=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nT559-0001Ou-6D for control@debbugs.gnu.org; Sat, 12 Mar 2022 17:59:09 +0100 Date: Sat, 12 Mar 2022 17:59:05 +0100 Message-Id: <87r177150m.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #54173 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 54173 wontfix close 54173 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 54173 wontfix close 54173 quit