all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Petteri Hintsanen <petterih@iki.fi>
Cc: help-gnu-emacs@gnu.org
Subject: Re: yes-or-no-p and dialogs
Date: Tue, 27 Dec 2022 20:28:01 +0300	[thread overview]
Message-ID: <Y6srIbWFbDAM5kkq@protected.localdomain> (raw)
In-Reply-To: <x2mfsd0ltl0.fsf@iki.fi>

* Petteri Hintsanen <petterih@iki.fi> [2022-12-27 19:07]:
> Is there any way to "quit" yes-or-no-p queries with MS Windows dialogs?
> I mean in the same way C-g would do in the minibuffer?

(setq use-dialog-box nil) ➜ t

and now you can interrupt it by using C-g:

(y-or-n-p "OK? ")

> Then I try to close (kill) Emacs by clicking on the "X" button on the
> upper right corner of the frame.
> 
> A dialog pops up, asking whether I'd like to clock out and save.  This
> dialog has "Yes" or "No" buttons, but no way to cancel, as far as I can
> see.

I understand, that is serious usability problem. There shall be option to cancl such dialogs.

On my system I can't see them, I do not know why, even though my variable:

use-dialog-box ➜ nil

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



      parent reply	other threads:[~2022-12-27 17:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-27 16:06 yes-or-no-p and dialogs Petteri Hintsanen
2022-12-27 17:07 ` Eli Zaretskii
2022-12-27 17:37   ` Thibaut Verron
2022-12-27 18:13     ` Eli Zaretskii
2022-12-27 19:09       ` Thibaut Verron
2022-12-27 18:23   ` Petteri Hintsanen
2022-12-27 18:56     ` Eli Zaretskii
2022-12-27 19:38       ` Petteri Hintsanen
2022-12-27 17:28 ` Jean Louis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y6srIbWFbDAM5kkq@protected.localdomain \
    --to=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.org \
    --cc=petterih@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.