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

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

Re: How to see that a variable holds t


From: Pascal J. Bourguignon
Subject: Re: How to see that a variable holds t
Date: Wed, 06 Jan 2010 19:51:40 +0100
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.3 (gnu/linux)

Cecil Westerhof <address@hidden> writes:

> address@hidden (Pascal J. Bourguignon) writes:
>
>>      (defun switch-gnus-idle-daemon-do-log ()
>>        (interactive)
>>        (setq gnus-idle-daemon-do-log
>>              (case gnus-idle-daemon-do-log
>>                ((t)       10)
>>                (otherwise t)))
>>        (message "gnus-idle-daemon-do-log: %s"
>>        gnus-idle-daemon-do-log))
>
> As earlier said: it works, but I do not understand the difference
> between:
>     ((t)       10)

This is a clause that matches only t.


> and:
>     (t       10)

This is the default clause.  It matches anything.

(t) is a list of literal values specifying the case.
t is a symbol that is interpreted as meaning 'anything'.

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/


reply via email to

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