annotate lisp/patcomp.el @ 88886:300f83fb46e1

Include "coding.h". (Qget_emacs_mule_file_char, Qload_force_doc_strings, load_each_byte, unread_char): New variables. (readchar_backlog): This variable deleted. (readchar): Return a character unless load_each_byte is nonzero. Handle the case that readcharfun is Qget_emacs_mule_file_char or a cons. If unread_char is not -1, simply return it. (unreadchar): Handle the case that readcharfun is Qget_emacs_mule_file_char or a cons. Set unread_char if necessary. (read_multibyte): This function deleted. (readbyte_for_lambda, readbyte_from_file, readbyte_from_string) (read_emacs_mule_char): New functions. (Fload): Even if the file doesn't have the extention ".elc", if safe_to_load_p returns a positive version number, assume that the file contains bytecompiled code. If the version is less than 22, load the file while decoding multibyte sequences by emacs-mule. (readevalloop): Don't use readchar_backlog. (Fread): Likewise. Pay attention to the case that STREAM is a cons. (Fread_from_string): Pay attention to the case that STREAM is a cons. (read_escape): The arg BYTEREP deleted. (read1): Set load_each_byte to 1 temporarily while handling #@NUMBER. Don't call read_multibyte. (read_vector): Call Fread with a cons. If readcharfun is Qget_emacs_mule_file_char, decode the read string by emacs-mule. (read_list): If doc_reference is 2, make the cdr part string as unibyte. (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char and Qload_force_doc_strings.
author Kenichi Handa <handa@m17n.org>
date Wed, 24 Jul 2002 10:51:15 +0000
parents 67b464da13ec
children 33d53d287ee4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
22388
2d0bece94ee7 Comment change.
Richard M. Stallman <rms@gnu.org>
parents: 22387
diff changeset
1 ;;; patcomp.el --- used by patch files to update Emacs releases
10015
f6c7d1ab2d6a Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2
38414
67b464da13ec Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 22388
diff changeset
3 ;; This file is part of GNU Emacs.
67b464da13ec Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 22388
diff changeset
4
67b464da13ec Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 22388
diff changeset
5 ;;; Commentary:
67b464da13ec Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 22388
diff changeset
6
67b464da13ec Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 22388
diff changeset
7 ;;; Code:
67b464da13ec Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 22388
diff changeset
8
10015
f6c7d1ab2d6a Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
9 (defun batch-byte-recompile-emacs ()
f6c7d1ab2d6a Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
10 "Recompile the Emacs `lisp' directory.
f6c7d1ab2d6a Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
11 This is used after installing the patches for a new version."
f6c7d1ab2d6a Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
12 (let ((load-path (list (expand-file-name "lisp"))))
f6c7d1ab2d6a Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13 (byte-recompile-directory "lisp")))
10016
de27224b0b43 (batch-byte-compile-emacs): New function.
Richard M. Stallman <rms@gnu.org>
parents: 10015
diff changeset
14
de27224b0b43 (batch-byte-compile-emacs): New function.
Richard M. Stallman <rms@gnu.org>
parents: 10015
diff changeset
15 (defun batch-byte-compile-emacs ()
de27224b0b43 (batch-byte-compile-emacs): New function.
Richard M. Stallman <rms@gnu.org>
parents: 10015
diff changeset
16 "Compile new files installed in the Emacs `lisp' directory.
de27224b0b43 (batch-byte-compile-emacs): New function.
Richard M. Stallman <rms@gnu.org>
parents: 10015
diff changeset
17 This is used after installing the patches for a new version.
de27224b0b43 (batch-byte-compile-emacs): New function.
Richard M. Stallman <rms@gnu.org>
parents: 10015
diff changeset
18 It uses the command line arguments to specify the files to compile."
de27224b0b43 (batch-byte-compile-emacs): New function.
Richard M. Stallman <rms@gnu.org>
parents: 10015
diff changeset
19 (let ((load-path (list (expand-file-name "lisp"))))
de27224b0b43 (batch-byte-compile-emacs): New function.
Richard M. Stallman <rms@gnu.org>
parents: 10015
diff changeset
20 (batch-byte-compile)))
38414
67b464da13ec Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 22388
diff changeset
21
67b464da13ec Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 22388
diff changeset
22 ;;; patcomp.el ends here