unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: David Reitter <david.reitter@gmail.com>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: system "key" events in NS port
Date: Wed, 11 Mar 2009 10:27:36 -0400	[thread overview]
Message-ID: <jwvd4cop2bi.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <B59176DB-F6A7-4FAD-A6C6-742A71FE79F7@gmail.com> (David Reitter's message of "Tue, 10 Mar 2009 23:18:03 -0400")

> The events sent in the NS port to signal menu actions such as "Quit Emacs"
> (application menu) are sent as NON_ASCII_KEYSTROKE_EVENTs,  which lead to
> last_nonmenu_event being set.  This is unfortunate,  because functions like
> y-or-n-p depend on the variable to decide  whether to show a graphical
> dialog when the mouse was used.

> The patch below has an #ifdef HAVE_NS, which can be removed should other
> platforms exhibit the same problem.

I think the right way to do it is to add a new event_kind rather than
abuse `arg'.


        Stefan





      reply	other threads:[~2009-03-11 14:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-11  3:18 system "key" events in NS port David Reitter
2009-03-11 14:27 ` Stefan Monnier [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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwvd4cop2bi.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=david.reitter@gmail.com \
    --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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).