diff options
| author | Kenichi Handa | 2000-08-07 01:47:27 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2000-08-07 01:47:27 +0000 |
| commit | 447a052b48491587aa54bcbc43bf0d3e2beec2a9 (patch) | |
| tree | 8732c40af77504e95efd68e1c43e70b09e836235 | |
| parent | 24d55b8f9636fe98f3983edeb0a1ccb86669ef2a (diff) | |
| download | emacs-447a052b48491587aa54bcbc43bf0d3e2beec2a9.tar.gz emacs-447a052b48491587aa54bcbc43bf0d3e2beec2a9.zip | |
(byte-compile-fix-header): Fix the way of checking the existence of
any multibyte characters.
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 0d183fa9ec0..57cbc63a9bf 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -1522,10 +1522,8 @@ With argument, insert value in current buffer after the form." | |||
| 1522 | (defun byte-compile-fix-header (filename inbuffer outbuffer) | 1522 | (defun byte-compile-fix-header (filename inbuffer outbuffer) |
| 1523 | (save-excursion | 1523 | (save-excursion |
| 1524 | (set-buffer outbuffer) | 1524 | (set-buffer outbuffer) |
| 1525 | (goto-char (point-min)) | ||
| 1526 | ;; See if the buffer has any multibyte characters. | 1525 | ;; See if the buffer has any multibyte characters. |
| 1527 | (skip-chars-forward "\0-\377") | 1526 | (when (< (point-max) (position-bytes (point-max))) |
| 1528 | (when (not (eobp)) | ||
| 1529 | (when (byte-compile-version-cond byte-compile-compatibility) | 1527 | (when (byte-compile-version-cond byte-compile-compatibility) |
| 1530 | (error "Version-18 compatibility not valid with multibyte characters")) | 1528 | (error "Version-18 compatibility not valid with multibyte characters")) |
| 1531 | (goto-char (point-min)) | 1529 | (goto-char (point-min)) |