From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#16424: 24.3.50; y-or-n-p prompt no more visible in minibuffer Date: Sun, 12 Jan 2014 10:22:26 -0800 (PST) Message-ID: <0f117281-9f53-4a40-aeb5-247f46cd5109@default> References: <8761ppb0wp.fsf@gmail.com> <52D2D06D.7010909@gmx.at> <87r48dqel4.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1389551016 7081 80.91.229.3 (12 Jan 2014 18:23:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Jan 2014 18:23:36 +0000 (UTC) Cc: 16424@debbugs.gnu.org To: Thierry Volpiatto , martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 12 19:23:39 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W2PhC-0002aD-2i for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Jan 2014 19:23:38 +0100 Original-Received: from localhost ([::1]:38927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2PhB-0001Mh-MA for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Jan 2014 13:23:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2Pgu-0001LP-Tc for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2014 13:23:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2Pgc-0000xn-PB for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2014 13:23:20 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2Pgc-0000xK-JF for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2014 13:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W2Pgc-0003AK-0F for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2014 13:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Jan 2014 18:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16424 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16424-submit@debbugs.gnu.org id=B16424.138955096212126 (code B ref 16424); Sun, 12 Jan 2014 18:23:01 +0000 Original-Received: (at 16424) by debbugs.gnu.org; 12 Jan 2014 18:22:42 +0000 Original-Received: from localhost ([127.0.0.1]:48024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W2PgG-00039V-SU for submit@debbugs.gnu.org; Sun, 12 Jan 2014 13:22:41 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:36931) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W2PgE-00039M-G8 for 16424@debbugs.gnu.org; Sun, 12 Jan 2014 13:22:39 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s0CIMaaQ024935 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 12 Jan 2014 18:22:37 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s0CIMXJe015232 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 12 Jan 2014 18:22:34 GMT Original-Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s0CIMXfR017100; Sun, 12 Jan 2014 18:22:33 GMT In-Reply-To: <87r48dqel4.fsf@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:83361 Archived-At: OT for this bug, but you might (anyway) consider using a different function for this question about acting on a list of files. Dired offers some code for this kind of thing. See, for instance, `dired-map-over-marks-check'. Some of what it does might be pertinent here. In Dired+ I have a function `diredp-y-or-n-files-p', which does just the following, and so is probably more pertinent here (but it does not log errors as `dired-map-over-marks-check' does): ,---- | diredp-y-or-n-files-p is a compiled Lisp function in `dired+'. | (diredp-y-or-n-files-p PROMPT FILES &optional PREDICATE) |=20 | PROMPT user with a "y or n" question about a list of FILES. | Return t if answer is "y". Otherwise, return nil. |=20 | Like `y-or-n-p', but the user can also hit `l' to display the list of | files that the confirmation is for, in buffer `*Files'. When | finished, buffer `*Files*' is killed if it was never shown, or is | hidden and buried otherwise. Thus, if it was shown then it is still | available to revisit afterward (even if the user quit using `C-g'). |=20 | PREDICATE is passed to `diredp-list-files', to list only file names | for which it returns non-nil. `---- `diredp-list-files' does this: ,---- | diredp-list-files is a compiled Lisp function in `dired+'. | (diredp-list-files FILES &optional DIR BUFNAME PREDICATE) |=20 | Display FILES, a list of file names. Wildcard patterns are expanded. | The files are shown in a new buffer, `*Files*' by default. | Optional arg DIR serves as the default directory for expanding file | names that are not absolute. It defaults to `default-directory'. | Optional arg BUFNAME is the name of the buffer for the display. | It defaults to `*Files*' (or `*Files*' if `*Files*' exists). `---- These functions are not really Dired-specific, as you can tell from the descriptions. HTH. Again, I realize it is OT for the bug.