From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steven Degutis Newsgroups: gmane.emacs.help Subject: Re: Any way to make minibuffer questions more obvious? Date: Thu, 18 Apr 2013 17:22:18 -0500 Message-ID: References: <2B014952EB7D4AA6B8B47F83BEF26C64@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8ff24c7118899704daaa09c9 X-Trace: ger.gmane.org 1366323755 19547 80.91.229.3 (18 Apr 2013 22:22:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Apr 2013 22:22:35 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 19 00:22:39 2013 Return-path: Envelope-to: geh-help-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 1USxDy-00007p-Gd for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Apr 2013 00:22:38 +0200 Original-Received: from localhost ([::1]:49337 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USxDy-0000lV-38 for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Apr 2013 18:22:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USxDj-0000kb-0a for help-gnu-emacs@gnu.org; Thu, 18 Apr 2013 18:22:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1USxDf-0000TF-7F for help-gnu-emacs@gnu.org; Thu, 18 Apr 2013 18:22:22 -0400 Original-Received: from mail-vc0-f170.google.com ([209.85.220.170]:38332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USxDf-0000TA-2W for help-gnu-emacs@gnu.org; Thu, 18 Apr 2013 18:22:19 -0400 Original-Received: by mail-vc0-f170.google.com with SMTP id lf10so3192751vcb.15 for ; Thu, 18 Apr 2013 15:22:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=g62x15xHA0HFantFO9qliAuHfXW7tIBOwnWG3+hW0to=; b=dmnnY1RV691dAf+WILYS69UkF0Ovu97hwOk8DADBIk63Mu3wjHeKHGbIFfiZMUE92+ TuY/7ywkf4KLHlu6gDWyzsLhGDE0iDQ5zvikENvWMaK/UdxlqApRxR6NIvkdH9kMS1w7 iP95yLlqvQDN558ydAQfcsvvCHqgcErMI21CzGCrS1iFQ8vVvoCS5kyKQXoPsDavy3S7 ImvrCATSaR3xaU0XDQghvjZSJXJ/Gt2IP/o7ikQWEPlNaIoAFSu0ezZUJuPdCfKo7Swl bc0iiwHAqeELLXhMpvsQ06HfCxAA6NTXNsNunp38Iz15IPJKz7pqC+FZQjgS8/DqDErt gz9w== X-Received: by 10.52.170.143 with SMTP id am15mr8213269vdc.87.1366323738738; Thu, 18 Apr 2013 15:22:18 -0700 (PDT) Original-Received: by 10.58.225.38 with HTTP; Thu, 18 Apr 2013 15:22:18 -0700 (PDT) In-Reply-To: <2B014952EB7D4AA6B8B47F83BEF26C64@us.oracle.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.170 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90243 Archived-At: --e89a8ff24c7118899704daaa09c9 Content-Type: text/plain; charset=ISO-8859-1 In that case, are there any built-in functions or things that let me create a "pop up" window/frame/anything? Kinda like a windows dialog "Are you sure" box in the sense that it sits on top of everything else centerde in the screen, but still responds to my keys. -Steven On Thu, Apr 18, 2013 at 5:00 PM, Drew Adams wrote: > > I was in dired, and I deleted a dir using D, then I hit "y" > > to confirm I want to delete it. Next I try to go copy another > > with C, but nothing happens. I look in the minibuffer and it > > says "Please answer y or n. Kill dired buffer of foo, too? > > (y or n)". > > > > I had no idea it was asking me this second question. I > > completely forgot that it would. And the minibuffer where it > > asks it is the bottom left of my screen, while the dired > > buffer is in the top-right, this being a 27" Apple display > > at highest possible resolution, so there's no way I would > > have noticed it. > > > > Is there a way to make this kind of question pop-up a new > > frame or some other more visual way of asking this? > > I think we've all been bitten by that more than once. ;-) > > Dunno whether someone else will have a brilliant suggestion. (I don't.) > > There are ways to make Emacs flash, burp, and wave its arms wildly, and you > could always attach those to (your version of) `y-or-n-p'. But soon you > might > find that annoying. > > FWIW, `y-or-n-p' does not use the minibuffer. It simply reads a > user-initiated > event, which is typically hitting a key (e.g. `y' or `n'). If it doesn't > like > the event it reads then it asks you again. and again. > > --e89a8ff24c7118899704daaa09c9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
In that case, are there any built-in functions or things t= hat let me create a "pop up" window/frame/anything? Kinda like a = windows dialog "Are you sure" box in the sense that it sits on to= p of everything else centerde in the screen, but still responds to my keys.=

-Steven


On Thu, Apr 18, 2013 at 5:00 PM, Drew Adams <dre= w.adams@oracle.com> wrote:
>= I was in dired, and I deleted a dir using D, then I hit "y"
> to confirm I want to delete it. Next I try to go copy another
> with C, but nothing happens. I look in the minibuffer and it
> says "Please answer y or n. =A0Kill dired buffer of foo, too?
> (y or n)".
>
> I had no idea it was asking me this second question. =A0I
> completely forgot that it would. And the minibuffer where it
> asks it is the bottom left of my screen, while the dired
> buffer is in the top-right, this being a 27" Apple display
> at highest possible resolution, so there's no way I would
> have noticed it.
>
> Is there a way to make this kind of question pop-up a new
> frame or some other more visual way of asking this?

I think we've all been bitten by that more than once. ;-)
Dunno whether someone else will have a brilliant suggestion. =A0(I don'= t.)

There are ways to make Emacs flash, burp, and wave its arms wildly, and you=
could always attach those to (your version of) `y-or-n-p'. =A0But soon = you might
find that annoying.

FWIW, `y-or-n-p' does not use the minibuffer. =A0It simply reads a user= -initiated
event, which is typically hitting a key (e.g. `y' or `n'). =A0If it= doesn't like
the event it reads then it asks you again. =A0and again.


--e89a8ff24c7118899704daaa09c9--