[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacsclient: controlling from an application?
From: |
DrMemory |
Subject: |
Re: emacsclient: controlling from an application? |
Date: |
Wed, 15 Oct 2003 21:58:35 GMT |
User-agent: |
slrn/0.9.5.7 (UNIX) |
On Wed, 15 Oct 2003 18:24:25 GMT, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>
>You can use `kill -USR1 <emacs process>' in your cron job
>and something akin to (add-hook 'signal-USR1-hook 'save-some-buffers).
>Same thing with USR2 of course. I've never tried it, tho.
>
I can't get this to work. I'm a babe-in-the-woods when it comes to
elisp, but doesn't the save-some-buffers need a non-nil argument to
make it save all? Otherwise, it will try to prompt the (non-existent)
user for each buffer.
Would it be
(add-hook 'signal-USR1-hook '(save-some-buffers t)) ?
That didn't seem to work either. I also tried just putting a function
which doesn't take any arguments (delete-other-windows). No effect
there either.
Sorry to be such a dunce. I'll maybe try your timer idea, but I really
ought to be getting at some of those lines in '2do.txt', the file in
question!
Re: emacsclient: controlling from an application?, Kevin Rodgers, 2003/10/15
Re: emacsclient: controlling from an application?, DrMemory, 2003/10/15