help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detect if Emacs is running in -nw mode


From: Nuno J. Silva
Subject: Re: Detect if Emacs is running in -nw mode
Date: Mon, 31 Mar 2008 08:32:32 +0100
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.1 (gnu/linux)

Christian Herenz <herenz@physik.hu-berlin.de> writes:

> Rupert Swarbrick schrieb:
>
>> (unless (function-returning-nil) 1 2 3)
>> evaluates to 3. Not that that matters in this situation.
>> Phew. That was more than I intended to write! Hope it makes things a
>> little clearer.
>> Rupert
>
> Yeah-- You wrote much, and I think you missed the point a little bit..
>
> (unless nil (do-stuff) (do-other-stuff)) ... this would only do-stuff?

This will do-stuff and do-other-stuff.

> (unless nil ((do-stuff) (do-other-stuff)) would do-stuff and
> do-other-stuff?

And this will raise an error, I'm afraid.

>
> That was my actual question.


-- 
Nuno J. Silva (aka njsg)
LEIC student at Instituto Superior Técnico
Lisbon, Portugal
Homepage: http://njsg.no.sapo.pt/
Gopherspace: gopher://sdf-eu.org/11/users/njsg
Registered Linux User #402207 - http://counter.li.org

-=-=-
A computer is like an air conditioner, it stops working when you open
Windows.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]