[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bikeshedding go! Why is <M-f4> unbound?

From: grischka
Subject: Re: Bikeshedding go! Why is <M-f4> unbound?
Date: Fri, 14 Jan 2011 02:20:46 +0100
User-agent: Thunderbird (Windows/20090812)

When Alt-F4 is delegated to Windows, it generates events for closing the
active window.
Thanks.  So the right thing to do here is to change Emacs so it delegates
the Alt-F4 to the standard Windows routine that turns it into a WM_CLOSE.
Patch welcome,
Binding Alt-F4 to a function such as handle-delete-frame will do
fine. That's far easier than dealing with the Windows API from the C

It's likely to end up approximating the right behavior, and lead to
more reports.  E.g. should it bind A-f4 or M-f4?

There is this in w32fns.c:
    case WM_KEYDOWN:

which basically should be
        if (!is_key_bound_in_emacs(key_param))
             goto dflt;
    case WM_KEYDOWN:

Provided that emacs has a way to check whether a key is bound,
on that level.  And if so that the method can be called from
another thread ;)

--- grischka

reply via email to

[Prev in Thread] Current Thread [Next in Thread]