Subject: version test in .elc files is too complicated

From: Dan Nicolaescu <[email-masked]>
Date: Sun, 27 Sep 2009 19:10:11 -0700 (PDT)

The version test in all the .elc files is too complicated:

(if (and (boundp 'emacs-version)
         (< (aref emacs-version (1- (length emacs-version))) ?A)
         (or (and (boundp 'epoch::version) epoch::version)
           (string-lessp emacs-version "19.29")))
    (error "`vc-hooks.el' was compiled for Emacs 19.29 or later"))

if anyone still runs epoch (very doubtful), there are many other things
that will fail when trying to run emacs-23 byte compiled code.

This was discussed on emacs-devel some time ago (can't find the link at
the moment), but nothing happened.

IMVHO a single condition based on emacs-major-version should be enough.