all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Petteri Hintsanen <petterih@iki.fi>
To: help-gnu-emacs@gnu.org
Subject: yes-or-no-p and dialogs
Date: Tue, 27 Dec 2022 18:06:19 +0200	[thread overview]
Message-ID: <x2mfsd0ltl0.fsf@iki.fi> (raw)

Hello list,

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?

Case in point: I am visiting an Org file with an active (running) clock.
The file has no unsaved changes.

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.

Now occasionally I'd like to interrupt Emacs quitting, and go back to my
file to adjust the clock and whatnot, but with that (modal) dialog it
seems to be impossible -- Emacs will unconditionally quit.  Should the
dialog have "Cancel" or "X" or something?  I could set use-dialog-box to
nil, but occasionally dialogs are useful.

This is Emacs 28.2 on MS Windows 10.

Thanks,
Petteri





             reply	other threads:[~2022-12-27 16:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-27 16:06 Petteri Hintsanen [this message]
2022-12-27 17:07 ` yes-or-no-p and dialogs 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

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=x2mfsd0ltl0.fsf@iki.fi \
    --to=petterih@iki.fi \
    --cc=help-gnu-emacs@gnu.org \
    /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.