From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: save-buffers-kill-emacs from remote unix signal?
Date: Mon, 16 Oct 2006 09:58:00 -0600 [thread overview]
Message-ID: <eh0a89$3db$1@sea.gmane.org> (raw)
In-Reply-To: <1160841107.556566.18240@h48g2000cwc.googlegroups.com>
georgeryoung@gmail.com wrote:
> [GNU emacs 22.0.50.1 sparc-sun-solaris2.9 X-toolkit]
> Is there some way I can use a unix signal to remotely cause
> emacs to save-buffers-kill-emacs without query,
> i.e. as if I had typed ^U^X^C ? If I leave emacs up in my
> office with many unsaved buffers, I'd like to log in from home
> and do "kill -something <emacs-pid>" and have it save all
> buffers unconditionally and exit.
Does this work (-something is -USR1):
;; See the Misc[ellaneous System] Events node of the Emacs Lisp manual:
(global-set-key [usr1-signal]
(lambda ()
(interactive)
(save-buffers-kill-emacs t)))
--
Kevin
next prev parent reply other threads:[~2006-10-16 15:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-14 15:51 save-buffers-kill-emacs from remote unix signal? georgeryoung
2006-10-14 17:16 ` David Hansen
2006-10-14 17:45 ` Magnus Henoch
2006-10-16 15:58 ` Kevin Rodgers [this message]
[not found] ` <mailman.8213.1161014465.9609.help-gnu-emacs@gnu.org>
2006-10-16 18:10 ` georgeryoung
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='eh0a89$3db$1@sea.gmane.org' \
--to=ihs_4664@yahoo.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.
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).