From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: attaching to a running emacs process under linux?
Date: Wed, 16 Jan 2008 21:24:21 +0200 [thread overview]
Message-ID: <ufxwxpo9m.fsf@gnu.org> (raw)
In-Reply-To: <32dcc1d9-f51c-49b1-9dc2-e2727ac6aa6c@q77g2000hsh.googlegroups.com> (message from ivowel on Tue, 15 Jan 2008 18:18:18 -0800 (PST))
> From: ivowel <ivowel@gmail.com>
> Date: Tue, 15 Jan 2008 18:18:18 -0800 (PST)
>
>
> is there a way to send a shell signal to ask emacs nicely to save all
> its open buffers? I sometimes forget to save my buffers, then go
> somewhere else and ssh into the original machine, just to find that
> emacs still has my unsaved changes.
Read about sigusr1 and sigusr2 events in the "Misc Events" node of the
ELisp manual. You will need to write some Lisp in your ~/.emacs to
bind these events to some function that calls save-some-buffers or
some such.
If worse comes to worst, you can always send SIGTERM to Emacs: Emacs
always auto-saves before it terminates in an abnormal fashion.
prev parent reply other threads:[~2008-01-16 19:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-16 2:18 attaching to a running emacs process under linux? ivowel
2008-01-16 5:16 ` Dmitry Dzhus
2008-01-16 13:57 ` Matthias Pfeifer
2008-01-16 19:24 ` Eli Zaretskii [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=ufxwxpo9m.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/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.