From: Jason Rumney <jasonr@gnu.org>
To: David Reitter <david.reitter@gmail.com>, 4128@emacsbugs.donarmstrong.com
Subject: bug#4128:
Date: Thu, 13 Aug 2009 00:01:22 +0800 [thread overview]
Message-ID: <4A82E752.6050502@gnu.org> (raw)
In-Reply-To: <369B88AE-E03F-4934-85E7-B1A0AA408D9B@gmail.com>
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.
prev parent reply other threads:[~2009-08-12 16:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-12 14:22 bug#4128: David Reitter
2009-08-12 16:01 ` Jason Rumney [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A82E752.6050502@gnu.org \
--to=jasonr@gnu.org \
--cc=4128@emacsbugs.donarmstrong.com \
--cc=david.reitter@gmail.com \
/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.