How can I find out which version of emacs introduced a function?

Posted by Chris R on Stack Overflow See other posts from Stack Overflow or by Chris R
Published on 2010-03-22T14:57:17Z Indexed on 2010/03/22 15:01 UTC
Read the original article Hit count: 344

I want to write a .emacs that uses as much of the mainline emacs functionality as possible, falling back gracefully when run under previous versions. I've found through trial and error some functions that didn't exist, for example, in emacs 22 but now do in emacs 23 on the rare occasion that I've ended up running my dotfiles under emacs 22. However, I'd like to take a more proactive approach to this, and have subsets of my dotfiles that only take effect when version >= <some-threshold> (for example). The function I'm focusing on right now is scroll-bar-mode but I'd like a general solution.

I have not seen a consistent source for this info; I've checked the gnu.org online docs, the function code itself, and so far nothing. How can I determine this, without keeping every version of emacs I want to support kicking around?

© Stack Overflow or respective owner

Related posts about emacs

Related posts about version-independence