emacs-devel
[Top][All Lists]
Advanced

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

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


From: Óscar Fuentes
Subject: Re: Bikeshedding go! Why is <M-f4> unbound?
Date: Mon, 17 Jan 2011 20:27:25 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

"Drew Adams" <address@hidden> writes:

>> > Really?  Good, in that case.  I was under the impression 
>> > that simply hitting the key would mean that Windows grabs it.
>> 
>> Yes, of course. What else should it do?
>
> There are 3 possibilities that have been discussed:
> 1. It is bound in Emacs. Invoke the Emacs binding.
> 2. It is not bound.  Raise an Emacs unbound error.
> 3. It is not bound.  Pass Alt-F4 through to Windows.
>
> No one has disagreed about #1.  You think that #3 is always preferable
> to #2 and should become hard-coded behavior.  I think that the choice
> between #2 and #3 should be up to the user and Emacs libraries if
> possible.

(global-set-key [M-f4]
  (lambda () (interactive) (message "Emacs ate your M-f4")))

See: with #1 and #3 the user can prevent sending Alt-F4 back to
Windows. No need for #2.

BTW: how is useful for the user to show an unbound error instead of
doing what is advertised on a menu and a platform's UI standard
procedure?

[snip]




reply via email to

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