2009-08-13

proper way to determine emacs version

what's the proper way to determine emacs version?

i use this code:

(if (string= (substring-no-properties emacs-version 0 2) "23" )
; is 23
; not 23
)

is there more robust way?

thanks.

Xah
∑ http://xahlee.org/

-------------------------------------
Thanks to Teemu Likonen.

Variables emacs-major-version and emacs-minor-version..

but more properly, check on the function with fboundp.


No comments:

Post a Comment