all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Canceling dialogues
Date: Mon, 31 Jul 2006 22:57:32 +0300	[thread overview]
Message-ID: <uy7u9mtsj.fsf@gnu.org> (raw)
In-Reply-To: <44CE5BB3.7000008@student.lu.se> (message from Lennart Borgman on Mon, 31 Jul 2006 21:36:19 +0200)

> Date: Mon, 31 Jul 2006 21:36:19 +0200
> From: Lennart Borgman <lennart.borgman.073@student.lu.se>
> CC:  emacs-devel@gnu.org
> 
> Eli Zaretskii wrote:
> >   
> >> I think this is a bug and that a third alternative for canceling should 
> >> be added.
> >>     
> >
> > The menu only has YES and NO, so that's what is displayed.
> >
> >   
> Yes ... - I was suggesting that we should add a Cancel alternative. So I 
> do not understand what you mean. Can you explain?

When Emacs wants to pop the YES/NO dialog, it calls the function
x-popup-dialog (Fx_popup_dialog), which in the Windows port currently
creates a menu instead of a dialog and pops that menu.  This function
(x-popup-dialog) is a general-purpose function, it doesn't know, nor
care, what it gets as the contents of the dialog.  It isn't called
only for the YES/NO type of dialog, you can have other dialogs with
arbitrary long lists of alternatives.

So, unless we somehow program the function to discover that it is
called for YES/NO dialog, we cannot blithely add a CANCEL button to
it.

If you meant to add code to x-popup-dialog that would recognize this
special case, I think fixing the generic dialog code is a better
investment of our resources and energy, and the result is going to be
much cleaner.

In addition, there's the question what to do for CANCEL, as someone
else pointed out.

  reply	other threads:[~2006-07-31 19:57 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-31 17:38 Canceling dialogues Lennart Borgman
2006-07-31 18:51 ` Eli Zaretskii
2006-07-31 19:36   ` Lennart Borgman
2006-07-31 19:57     ` Eli Zaretskii [this message]
2006-07-31 20:16       ` Lennart Borgman
2006-07-31 20:23         ` Eli Zaretskii
2006-07-31 23:16           ` Lennart Borgman
2006-07-31 23:59       ` Richard Stallman
2006-08-01  3:31         ` Eli Zaretskii
2006-08-01  6:21           ` Jan Djärv
2006-07-31 20:49     ` Jason Rumney
2006-07-31 21:19       ` David Kastrup
2006-07-31 23:12       ` Lennart Borgman
2006-08-01  5:55         ` David Kastrup
2006-08-01  6:31           ` Lennart Borgman
2006-08-01 20:09           ` Richard Stallman
2006-08-01  4:35     ` Jan Djärv
2006-08-01  6:36       ` Lennart Borgman
2006-07-31 19:43 ` Stuart D. Herring
2006-07-31 19:53   ` Lennart Borgman
2006-07-31 19:57     ` David Kastrup
2006-07-31 19:59       ` Lennart Borgman
2006-07-31 23:59   ` Richard Stallman
2006-08-01  5:57     ` David Kastrup
2006-08-01 20:09       ` Richard Stallman
2006-07-31 22:17 ` Richard Stallman
2006-08-01  3:26   ` Eli Zaretskii
2006-08-01  6:39     ` Lennart Borgman
2006-08-01  7:02       ` Eli Zaretskii
2006-08-02  5:43       ` Eli Zaretskii
2006-08-02  6:10         ` Lennart Borgman
2006-08-02  7:10           ` Eli Zaretskii
2006-08-02 21:20             ` Richard Stallman
2006-08-02 21:20         ` Richard Stallman
2006-08-03  3:12           ` Eli Zaretskii
2006-08-03  9:46             ` Mathias Dahl
2006-08-03 19:14             ` Richard Stallman
2006-08-03 22:16               ` Jason Rumney
2006-08-01  8:36     ` Jason Rumney
2006-08-01 20:08     ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2006-08-01  8:58 LENNART BORGMAN
2006-08-01 12:06 ` Mathias Dahl
2006-08-03 10:14 LENNART BORGMAN
2006-08-03 11:32 ` Mathias Dahl

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=uy7u9mtsj.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@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.