From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Newsgroups: gmane.emacs.bugs Subject: bug#35564: [PATCH v5] Tweak dired warning about "wildcard" characters Date: Thu, 14 Nov 2019 08:02:52 +0100 Message-ID: <87d0dv7xer.fsf@gmail.com> 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> <87zhhsd8eq.fsf@web.de> <87imogtqjh.fsf@gmail.com> <87eeyf3bg1.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="164551"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Michael Heerdegen , 35564@debbugs.gnu.org, Noam Postavsky , Stefan Monnier To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 14 08:04:25 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 1iV9B1-000geK-VE for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Nov 2019 08:04:24 +0100 Original-Received: from localhost ([::1]:53938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iV9Az-0006jN-PC for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Nov 2019 02:04:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52236) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iV9Ak-0006j8-D3 for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2019 02:04:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iV9Ag-0001e5-Px for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2019 02:04:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52002) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iV9Ag-0001e1-KP for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2019 02:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iV9Ag-0003wV-Bw for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2019 02:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Nov 2019 07:04: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.157371498215077 (code B ref 35564); Thu, 14 Nov 2019 07:04:02 +0000 Original-Received: (at 35564) by debbugs.gnu.org; 14 Nov 2019 07:03:02 +0000 Original-Received: from localhost ([127.0.0.1]:60823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV99h-0003v1-CO for submit@debbugs.gnu.org; Thu, 14 Nov 2019 02:03:01 -0500 Original-Received: from mail-wm1-f52.google.com ([209.85.128.52]:36834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV99g-0003uo-22 for 35564@debbugs.gnu.org; Thu, 14 Nov 2019 02:03:00 -0500 Original-Received: by mail-wm1-f52.google.com with SMTP id c22so4622995wmd.1 for <35564@debbugs.gnu.org>; Wed, 13 Nov 2019 23:02:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=xfeVxSVPzwQTGG8VPkYdvqyr11w4Ra5BQ0ip+IYjZT4=; b=li4+fD7V6twPqrPA7T15vsSBE3WbxfzzCTOOui3WaF/8fNIHxOPiaoutZ7II7idO/b FD2kKJSp4vpaTQvEiqc0OM7s4pU+eVccRktRv/vYhrKOa468BbewlfO5UUFYNB+TzfC+ 0K0l53KEz+byPWtd+mGpULIAdGHZ+zXlhUXuwhWRPubRmgbRc6ylk8e27phct3zxVV8O pLSoSlLpC0gb7w239n7QrN6KgSDTQLts3k5Femra7YdsAardj2AsgWRxecE2e9lwzdHr xq1tivy2tJCyxuQ/KL8mwXkQjcwXhIMeS2q/SbnSrCIrSO9jmvtmCHf7ibke+gFkifFK MCiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=xfeVxSVPzwQTGG8VPkYdvqyr11w4Ra5BQ0ip+IYjZT4=; b=etRuKYrbA9J4kpPfQAWa7s/I0Z1m9CRDeeicN4UpQXBqaP0Y0gF8ZOYZI4HQmQiY7Z cS7h13XgsQGZhu5zGKvk7v9CJy6mjO0n0rTce1HfDZJ4xJkC62jEPYKCzXOm35ThY8+U 8SeGbdNXnk0Bs5BchV6qOaejAGRsvCx5GZ64In7FxOvjTf8dAFtyzhqGafTcBe81y7f1 5aV3l32I5tznWCDxTtb3MOH5XDZ7SoCsvK8I+ePv+Fbs6CMkicmHvDmFQJvT+7gOk0dl /7PjyeVuUHbSUbg9FEdnpIMuca01STS2CDtEJOTnXwKTpCyHvAGkd4upx8oQKQYn+J4w VVIg== X-Gm-Message-State: APjAAAWlY+CJTea4SVDLu60wgO8f4Pax58sHmKYfVMh7Bzb4IsO3Cepe Z+AfprMi/+wnOEtZzj1FMOQ= X-Google-Smtp-Source: APXvYqy1YJvApaWZhCqmxqQWuSdPgxqKtINaFTWlGsSwHZ9KGdCmFrh6A5FEIod7YBOKH0VtV1KUOA== X-Received: by 2002:a1c:b1d4:: with SMTP id a203mr5844326wmf.160.1573714974076; Wed, 13 Nov 2019 23:02:54 -0800 (PST) Original-Received: from my-little-tumbleweed (200.143.13.109.rev.sfr.net. [109.13.143.200]) by smtp.gmail.com with ESMTPSA id a11sm5208527wmh.40.2019.11.13.23.02.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2019 23:02:53 -0800 (PST) In-Reply-To: <87eeyf3bg1.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 10 Nov 2019 22:29:34 +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:171550 Archived-At: Thanks for your input Juri. I see that your work on read-char-from-minibuffer has been pushed to master; I'll start working on a v6 using that function instead of read-multiple-choice ASAP. Juri Linkov writes: > Please use a shorter prompt like > > 1 occurrence of =E2=80=98?=E2=80=99 will not be substituted. Proceed? = (y, n or ?)=20 Will do. > In the new "Dired help" buffer where there is enough space to add > the command line with '^' markers. Note that the current implementation is quite naive: it falls apart if the command is wider than the help window. E.g.: some-command "first?argument" "sec=E2=A4=B8 =E2=A4=B9ond?argument" "final-argument" ^ =E2=A4=B8 =E2=A4=B9 ^ (=E2=A4=B8 and =E2=A4=B9 represent fringe indicators for wrapped lines.) I don't know how important it is to handle this situation, since read-char-from-minibuffer allows C-x o'ing to the help buffer and toggling truncated lines. >> - Preventing '`' being linked to the backquote macro in the docstring >> for dired-do-shell-command: still no idea how to fix that, but that >> can be investigated independently. > > Maybe use double quotes "`" as an exception. Maybe. The docstring single-quotes every other character it mentions though (?, *, &, ;), so that would look sort of inconsistent. Note that this problem also impacts other docstrings[1]. >> - The details window might not be tall enough, in which case maybe I >> should add [f]orward-/[b]ackward-page actions like nsm.el does. > > Yesterday I added new keybindings C-v/M-v for scrolling the original > window from the minibuffer. Nice! (Out of curiosity, would it make sense to also bind C-x < and C-x >?) >> - UI bikeshedding: maybe drop the leading "Warning:" > > Right, this makes the prompt shorter. Will do then. Again, thank you for your time. [1] subr.el:372:like `%', `\\=3D`' and `\\=3D'', use (error \"%s\" MESSAGE). subr.el:388:like `%', `\\=3D`' and `\\=3D'', use (error \"%s\" MESSAGE). emulation/viper-util.el:1173:symbols like `\\=3D`', `\\=3D'', `:', `\"', `)= ', and `{' are excluded. leim/quail/cyrillic.el:1362:`]', `\\', `\\=3D`' and `[' keys respectively, = Caps Lock does not affect them." leim/quail/hebrew.el:116: `\\=3D`' is used to switch levels instead of Alt-= Gr. leim/quail/hebrew.el:606: `\\=3D`' is used to switch levels instead of Alt-= Gr. leim/quail/thai.el:50: `=E0=B8=83' and `=E0=B8=85' are assigned to `\\= =3D`' and `~' respectively, Note also that there are places where this works as intended: emacs-lisp/backquote.el:253: "See `\\=3D`' (also `pcase') for the usage= of `,'.") emacs-lisp/backquote.el:257: "See `\\=3D`' for the usage of `,@'.")