emacs-devel
[Top][All Lists]
Advanced

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

Re: defvars at compile time


From: Bill Wohler
Subject: Re: defvars at compile time
Date: Thu, 16 Mar 2006 14:51:12 -0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

address@hidden (Johan Bockgård) writes:

> Kevin Rodgers <address@hidden> writes:
>
>> (defmacro symbol-value-safe (symbol)
>>   "Return SYMBOL's value, but avoid signaling an error if it is void.
>> If SYMBOL is void, return nil."
> [...]
>
> ,----[ C-h f bound-and-true-p RET ]
> | bound-and-true-p is a Lisp macro in `bindings.el'.
> | (bound-and-true-p VAR)
> | 
> | Return the value of symbol VAR if it is bound, else nil.
> `----

Nice. Too bad it's not available in XEmacs (21).

Funny name. Seems like value-if-bound would be more accurate.

-- 
Bill Wohler <address@hidden>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.





reply via email to

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