[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How check when symbol is introduced in Emacs?
From: |
Oleksandr Gavenko |
Subject: |
How check when symbol is introduced in Emacs? |
Date: |
Wed, 19 Jan 2011 12:23:59 +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 |
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.
Previously I put version when Emacs don;t fail.
Next I learn to search ChangeLog.
Next I learn use bzr repo with C-x v g and pressing a lot of 'A' command but
it to hard understand which revision goes to release.
Some symbol have properties like :version "20.4". I use it.
Please recommend another simple way or point to docs!
- How check when symbol is introduced in Emacs?,
Oleksandr Gavenko <=