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

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

Re: How check when symbol is introduced in Emacs?


From: Oleksandr Gavenko
Subject: Re: How check when symbol is introduced in Emacs?
Date: Wed, 19 Jan 2011 18:02:36 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

On 19.01.2011 17:19, Eli Zaretskii wrote:
From: Oleksandr Gavenko<gavenko@bifit.com.ua>
Date: Wed, 19 Jan 2011 12:23:59 +0200

Usually I get Error with previous Emacs version when symbol is undefined.

To workaround I use code like:

(when (or (>= emacs-major-version 23)
                    (and (= emacs-major-version 22) (>=
emacs-minor-version 2)))
     (setq 'symb val)
    )

But I must know low limit of version to get better code.

Why not use `boundp'?

This is interesting tips. I already use this but not always.




reply via email to

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