From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#35564: [PATCH v5] Tweak dired warning about "wildcard" characters Date: Wed, 30 Oct 2019 23:59:36 +0200 Organization: LINKOV.NET Message-ID: <8736f9ao8n.fsf@mail.linkov.net> References: <87zho2cd4f.fsf@gmail.com> <87wohvf22u.fsf@gmail.com> <87h88cvpkj.fsf_-_@gmail.com> <87imsinbmr.fsf_-_@gmail.com> <87o8yoign9.fsf_-_@gmail.com> <87v9sgrf29.fsf@gmail.com> <87d0eoseax.fsf@mail.linkov.net> <87mudstrir.fsf@gmail.com> <87a79l7vk4.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="141246"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Michael Heerdegen , 35564@debbugs.gnu.org, Noam Postavsky , Stefan Monnier To: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 30 23:56:17 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iPwsx-000aZV-MW for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Oct 2019 23:56:16 +0100 Original-Received: from localhost ([::1]:45222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPwsv-0002ke-EP for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Oct 2019 18:56:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45941) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPwsl-0002fi-I1 for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 18:56:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPwsk-0000bU-EZ for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 18:56:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42993) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iPwsk-0000as-Aj for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 18:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iPwsk-0005xW-7o for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 18:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Oct 2019 22:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35564 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 35564-submit@debbugs.gnu.org id=B35564.157247613222866 (code B ref 35564); Wed, 30 Oct 2019 22:56:02 +0000 Original-Received: (at 35564) by debbugs.gnu.org; 30 Oct 2019 22:55:32 +0000 Original-Received: from localhost ([127.0.0.1]:51814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPwsF-0005wk-Hb for submit@debbugs.gnu.org; Wed, 30 Oct 2019 18:55:31 -0400 Original-Received: from bird.elm.relay.mailchannels.net ([23.83.212.17]:59999) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPwsD-0005wa-Kv for 35564@debbugs.gnu.org; Wed, 30 Oct 2019 18:55:30 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 655548C1A68; Wed, 30 Oct 2019 22:55:28 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a39.g.dreamhost.com (100-96-85-194.trex.outbound.svc.cluster.local [100.96.85.194]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id F17018C121F; Wed, 30 Oct 2019 22:55:27 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a39.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Wed, 30 Oct 2019 22:55:28 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Cure-Attack: 2269aeed05e3d1fb_1572476128228_1282773660 X-MC-Loop-Signature: 1572476128228:2043082443 X-MC-Ingress-Time: 1572476128228 Original-Received: from pdx1-sub0-mail-a39.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a39.g.dreamhost.com (Postfix) with ESMTP id AA73A82B60; Wed, 30 Oct 2019 15:55:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=/umRQC aieqN8qz2r5fsXE/KYWRo=; b=fGy/li3jZYvm53v+B03N9coT/SVUcqPzpGHcWq KfqF7HwYxjuSh8NJCMWxk55A9YB7ykjJQ8kvuUKRszBCB7lRBh1U0EDFkka8v3mg enIhREINW3Chp28+8exUjDZA2auAO9rIQl+y6lr9iUf5IlJgy3+RDqN5t+DODw4A ncfAk= Original-Received: from mail.jurta.org (m91-129-101-77.cust.tele2.ee [91.129.101.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a39.g.dreamhost.com (Postfix) with ESMTPSA id BDD9482B59; Wed, 30 Oct 2019 15:55:19 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a39 In-Reply-To: <87a79l7vk4.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 27 Oct 2019 23:40:43 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170482 Archived-At: >>> 1. Why there is the verbose option =E2=80=9Ctoggle [D]etails=E2=80=9D >>> while just =E2=80=9C[?]=E2=80=9D should be enough. For example, l= ike >>> in query-replace typing =E2=80=98?=E2=80=99 displays the Help wind= ow, >>> just typing =E2=80=98?=E2=80=99 here could display the Dired Help. >> >> '?' is an automatic option added by read-multiple-choice. It pops-up = an >> autogenerated buffer repeating the prompt and showing longer >> descriptions for each option. >> >> I would have liked '?' to show what I ended up putting in the "details= " >> buffer; ideally read-multiple-choice would have an optional HELP-MESSA= GE >> argument that could be squeezed between the prompt and the key >> description when showing the help buffer. > > '?' would be more preferable since this is the standard way to ask > for additional information in Dired, for example, on error it shows: > > Dired error--type ? for details > > where '?' shows the details. dired-do-shell-command should do the same > in its prompt. read-multiple-choice could be changed to not add > its own help option when a '?' is provided in its 'choices' arg. I meant using the same logic as in 'read-answer': (if (assoc "help" answers) answers (append answers '(("help" ?? "show this help message")))) i.e. if '?' is provided in the function argument then use it, otherwise use the default value.