|
From: | Kevin Rodgers |
Subject: | Re: emacsclient: controlling from an application? |
Date: | Thu, 16 Oct 2003 09:17:33 -0600 |
User-agent: | Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
DrMemory wrote:
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.
Yes.
Would it be (add-hook 'signal-USR1-hook '(save-some-buffers t)) ?
(add-hook 'signal-USR1-hook (lambda () (save-some-buffers t))) -- Kevin Rodgers
[Prev in Thread] | Current Thread | [Next in Thread] |