* bug#4128:
@ 2009-08-12 14:22 David Reitter
2009-08-12 16:01 ` bug#4128: Jason Rumney
0 siblings, 1 reply; 2+ messages in thread
From: David Reitter @ 2009-08-12 14:22 UTC (permalink / raw)
To: 4128
> However, binding anything to a power-off command within Emacs sounds
> like a bad idea.
In the contrary, not reacting to the ns-power-off message would be a
bad idea because it would stall and then cancel shutdown (and probably
log out as well) on OS X. The app needs to react correctly to that,
and that is to quit while asking the user whether to save unsaved
buffers.
There is no Super modifier on Macs, but perhaps it's not a good idea
to use Super as a proxy for the Command key on pure Nextstep.
I would generally be in favor for making GNU Emacs "pure", i.e. making
it as compatible with GNU Emacs on other platforms, and leave the Mac-
ification to distributions or contributed packages that can be enabled
by the users.
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#4128:
2009-08-12 14:22 bug#4128: David Reitter
@ 2009-08-12 16:01 ` Jason Rumney
0 siblings, 0 replies; 2+ messages in thread
From: Jason Rumney @ 2009-08-12 16:01 UTC (permalink / raw)
To: David Reitter, 4128
David Reitter wrote:
>> However, binding anything to a power-off command within Emacs sounds
>> like a bad idea.
>
> In the contrary, not reacting to the ns-power-off message would be a
> bad idea because it would stall and then cancel shutdown (and probably
> log out as well) on OS X. The app needs to react correctly to that,
> and that is to quit while asking the user whether to save unsaved
> buffers.
The impression I got from the bug report was that a command
`ns-power-off' was being bound to a key in Emacs. But it sounds
dangerous to make such an event a lisp level event and allow arbitrary
user code to delay or prevent shutdown of the system. On Windows, the
equivalent event auto-saves all buffers and exits, in a way that is not
held up by an infinite lisp loop in user code.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-12 16:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-12 14:22 bug#4128: David Reitter
2009-08-12 16:01 ` bug#4128: Jason Rumney
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.