summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-12-07 20:34:15 +0000
committerRichard M. Stallman <rms@gnu.org>1996-12-07 20:34:15 +0000
commit1dac56f21112f8e97b16344e98adbacdbc7f7679 (patch)
treec46407662804d40c80f0f03ab134e0196c01f24c /lisp/emacs-lisp
parent1ab3c914dbc8ae9ed3cca9af94ab0e26cbe2e66b (diff)
downloademacs-1dac56f21112f8e97b16344e98adbacdbc7f7679.tar.gz
(byte-compile-insert-header): If emacs-version
ends with a letter, don't check the version number.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/bytecomp.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 4373e81405a..db47ef974ad 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -10,7 +10,7 @@
;;; This version incorporates changes up to version 2.10 of the
;;; Zawinski-Furuseth compiler.
-(defconst byte-compile-version "$Revision: 2.21 $")
+(defconst byte-compile-version "$Revision: 2.22 $")
;; This file is part of GNU Emacs.
@@ -1437,6 +1437,9 @@ With argument, insert value in current buffer after the form."
;; in files loaded early in loadup.el.
"\n(if (and (boundp 'emacs-version)\n"
"\t (or (and (boundp 'epoch::version) epoch::version)\n"
+ ;; If there is a name at the end of emacs-version,
+ ;; don't try to check the version number.
+ "\t (< (aref emacs-version (1- (length emacs-version))) ?A)"
(if dynamic-docstrings
"\t (string-lessp emacs-version \"19.29\")))\n"
"\t (string-lessp emacs-version \"19\")))\n")