changeset 11928:ed1176437be9

(byte-compile-insert-header): When using dynamic docstrings, refuse to load in 19.28 and older. In that error message, don't mention the directory names.
author Karl Heuer <kwzh@gnu.org>
date Fri, 26 May 1995 03:57:42 +0000
parents 20eae371b3f0
children 46487d19cdb3
files lisp/emacs-lisp/bytecomp.el
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/bytecomp.el	Fri May 26 03:54:38 1995 +0000
+++ b/lisp/emacs-lisp/bytecomp.el	Fri May 26 03:57:42 1995 +0000
@@ -1401,11 +1401,16 @@
 	      ;; in files loaded early in loadup.el.
 	      "\n(if (and (boundp 'emacs-version)\n"
 	      "\t (or (and (boundp 'epoch::version) epoch::version)\n"
-	      "\t     (string-lessp emacs-version \"19\")))\n"
+	      (if byte-compile-dynamic-docstrings
+		  "\t     (string-lessp emacs-version \"19.28.90\")))\n"
+		"\t     (string-lessp emacs-version \"19\")))\n")
 	      "    (error \"`"
-	      ;; This escapes all backslashes in FILENAME.  Needed on Windows.
-	      (substring (prin1-to-string filename) 1 -1)
-	      "' was compiled for Emacs 19\"))\n\n"
+	      ;; prin1-to-string is used to quote backslashes.
+	      (substring (prin1-to-string (file-name-nondirectory filename))
+			 1 -1)
+	      (if byte-compile-dynamic-docstrings
+		  "' was compiled for Emacs 19.29 or later\"))\n\n"
+		"' was compiled for Emacs 19\"))\n\n")
 	      )))