From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#35564: 27.0.50; [PATCH] Tweak dired-do-shell-command warning about "wildcard" characters Date: Sun, 5 May 2019 10:44:21 +0200 Message-ID: <071cc96c-1bf2-f331-8f9e-b3c54a7452da@gmx.at> References: <87zho2cd4f.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="26796"; mail-complaints-to="usenet@blaine.gmane.org" To: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec , 35564@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 05 10:45:10 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hNCli-0006qg-3T for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 May 2019 10:45:10 +0200 Original-Received: from localhost ([127.0.0.1]:38068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNClh-0000yk-4i for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 May 2019 04:45:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNClb-0000yb-7D for bug-gnu-emacs@gnu.org; Sun, 05 May 2019 04:45:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNCla-00041Q-Ar for bug-gnu-emacs@gnu.org; Sun, 05 May 2019 04:45:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39407) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hNCla-0003zz-5t for bug-gnu-emacs@gnu.org; Sun, 05 May 2019 04:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hNClZ-0001Jf-RJ for bug-gnu-emacs@gnu.org; Sun, 05 May 2019 04:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 May 2019 08:45:01 +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.15570458715001 (code B ref 35564); Sun, 05 May 2019 08:45:01 +0000 Original-Received: (at 35564) by debbugs.gnu.org; 5 May 2019 08:44:31 +0000 Original-Received: from localhost ([127.0.0.1]:52951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNCl5-0001Ib-60 for submit@debbugs.gnu.org; Sun, 05 May 2019 04:44:31 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:51381) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNCl3-0001IK-1U for 35564@debbugs.gnu.org; Sun, 05 May 2019 04:44:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1557045862; bh=awhAWkpTDaS3H8cOEFzh8mEyPgTy6TPgLXoYsF6IpVk=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=UegZYBSkFEZTnKpUPr7r2L75ksRIne7w94xJdjf+RpnoDrvNIQvlWK4ubgRBGcOka 37D6Qsfx9zXCx+x77RJgrD8TzpVqdqY0QZQ1G9IEwRepcFiUPrwpqfgE7BvgW8ODDP iwsTk7ZW6davhgFzBBNTxP1QyuFI6gdeHifE8xHk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([212.95.5.233]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MgvrL-1gpHBb1CtZ-00hLMP; Sun, 05 May 2019 10:44:22 +0200 In-Reply-To: <87zho2cd4f.fsf@gmail.com> Content-Language: de-DE X-Provags-ID: V03:K1:l+EaNutZpsMrLi9tb4x+5v7Gx2+U97zcuLfAl3y7kcQaK9L1gE5 U644z4Az8fRveHjU5fbklEPAEYsGuoCAQFPDKG70ECarOZSOvyK2rnYSvf7rpelJeBdbNV9 3nk+OsVdXr18ibzVXxVbvTmO66tQWt3p604GMnqvlpDfldzqxc2CVWEC+ZBeBLvA8hEXiev oNwfKyJFui93DnqmFSr4A== X-UI-Out-Filterresults: notjunk:1;V03:K0:sUfYCCbdBzM=:dvNuSr5kjZcWCGF0bENKnw nGiP8g8jxK3PIIIdhwiio2OEAZ8K7vVLKt9IIXYHyjqIH2OaUQbSClXukPkR4e50ErklCUYMr 1Iy8rCIeX+EpMKk5wWbFzj+VQnl+Wl7eW2h7kbBON/32N9r7P8rXdf8yRyAJfpkjbb/wz7RAr OeAMvODmAViSJEqmOY8CKXzNa4XFCmaDoLk9hDubI71eR9fIdXEgiQfnpP7xEgNZfqbZWTZsZ rYXHTTZZQXLrULLCxj7QxkzGgdzwGGJA/PE3WUHKeDyyOuYZ9zmdv6ogu1PyzotNaEp0iaehL L4oi8lGqYm0UHjugQvVbcigThImCNB4+IVlJ92JOKLPligiqIfFWeXFPp7XzHWFCXXklAlfDG ps8zHANrG8TV6T6/dJpSWKBh0hji50cAyzd4Qubgv85+x+p0L6zwq/rpIb4MAPmpbv2nMkSA1 jbD0Bvj2gopFo+ooyNgkwLG2u9C60x/048opSqmPEPWdhZKGNhbpfpV1xyQVV1hb2XN5nOPiY 1s9YpsGaQ8DftIhpQGnh4H6pmUbdgPtfyKk/uE6lomwOQaQaNvVXu5I4BSBkOuMY2/vUdFYib 2MKFh0leZMxJp/+fKiZFnwlxXyk61FLnf0pju7EEftsOzzQE6JF6HUl4W3zsxESOFm61NAN3+ CcYeVUQkbShFdy6RJ21ymGfIvTaPtLvLkzIkkl0XqPjJsyg6v39HIMhQ4lZgiYFTOFedQtUtv 2gLMpZGlDm2E9xvT6GOOx3yFYnGAJuAiB8Jamk69C+fh2Knm0AYDm0/lf1mg3xe9RmEKwATg 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:158780 Archived-At: > =E2=80=A6 and ended up with the attached patch, which I am not entirel= y > satisfied with (for one, it replaces `y-or-n-p' with `yes-or-no-p' > merely because the former seems to strip my prompt's text attributes > somehow[1]). [...] > [1] Compare: > > (let ((prompt "foobar ")) > (add-face-text-property 3 6 'warning nil prompt) > (yes-or-no-p prompt)) > > With: > > (let ((prompt "foobar ")) > (add-face-text-property 3 6 'warning nil prompt) > (y-or-n-p prompt)) 'y-or-n-p' propertizes the prompt rigidly as (read-key (propertize (if (memq answer scroll-action= s) prompt (concat "Please answer y or = n. " prompt)) 'face 'minibuffer-prompt))))) while 'yes-or-no-p' carefully applies 'minibuffer-prompt-properties' to any text properties provided with PROMPT. martin