diff options
author | Chong Yidong <cyd@gnu.org> | 2012-05-31 14:08:06 +0800 |
---|---|---|
committer | Chong Yidong <cyd@gnu.org> | 2012-05-31 14:08:06 +0800 |
commit | efc00ab16e2890b75d7224434ac43fe944ade4dd (patch) | |
tree | 28c1078ca32b96402cd1a5f618a17b3526143f27 /lisp/emacs-lisp | |
parent | ba93a18774352c97d6dd73c73141cbff6305581b (diff) | |
parent | dd41169b6cb0105b0766f3d368c657ebafc19cba (diff) | |
download | emacs-efc00ab16e2890b75d7224434ac43fe944ade4dd.tar.gz emacs-efc00ab16e2890b75d7224434ac43fe944ade4dd.tar.bz2 emacs-efc00ab16e2890b75d7224434ac43fe944ade4dd.zip |
Merge from emacs-24; up to 2012-04-24T21:47:24Z!michael.albinus@gmx.de
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index ce4d5d64ae2..bbf029700a3 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -1937,7 +1937,7 @@ and will be removed soon. See (elisp)Backquote in the manual.")) (byte-compile-fix-header byte-compile-current-file)))) byte-compile--outbuffer))) -(defun byte-compile-fix-header (filename) +(defun byte-compile-fix-header (_filename) "If the current buffer has any multibyte characters, insert a version test." (when (< (point-max) (position-bytes (point-max))) (goto-char (point-min)) @@ -1962,12 +1962,10 @@ and will be removed soon. See (elisp)Backquote in the manual.")) ;; don't try to check the version number. " (< (aref emacs-version (1- (length emacs-version))) ?A)\n" (format " (string-lessp emacs-version \"%s\")\n" minimum-version) - " (error \"`" - ;; prin1-to-string is used to quote backslashes. - (substring (prin1-to-string (file-name-nondirectory filename)) - 1 -1) - (format "' was compiled for Emacs %s or later\"))\n\n" - minimum-version)) + ;; Because the header must fit in a fixed width, we cannot + ;; insert arbitrary-length file names (Bug#11585). + " (error \"`%s' was compiled for " + (format "Emacs %s or later\" load-file-name))\n\n" minimum-version)) ;; Now compensate for any change in size, to make sure all ;; positions in the file remain valid. (setq delta (- (point-max) old-header-end)) |