[TuxOnIce-users] hibernate scriptlets

Nix nix at esperi.org.uk
Tue Apr 6 00:50:26 UTC 2010


On 5 Apr 2010, Nigel Cunningham outgrape:

> On 06/04/10 01:40, Matt Price wrote:
>> WanderlustSuspend() {
>>      /usr/bin/emacsclient --socket-name /tmp/emacs1000/server --eval
>> "(wl-toggle-plugged 'off)"
>> }
>>
>> WanderlustResume() {
>>      /usr/bin/emacsclient --socket-name /tmp/emacs1000/server --eval
>> "(wl-toggle-plugged 'on)"
>> }
>
> I'm no expert in the hibernate script, but it looks good to me - apart from those single quotes in the emacsclient commands. Are
> they right?

Yes, this is a quoted form, so that you get the symbol 'off' (or 'on')
out of the evaluator, rather than trying to figure out the value of the
variable named 'off' (which probably doesn't exist). This is a shorthand
for

(wl-toggle-plugged (quote off))

but the long form is hardly ever used, because it's ridiculously
verbose, even though its syntax is more regular than that of '.

(Regardless of your opinion of Emacs, Lisp is worth looking at. There's
a reason it keeps cropping up over and over in countless variants: it's
got some ideas that no later language has ever been able to match.)


More information about the TuxOnIce-users mailing list