Commit graph

281 commits

Author SHA1 Message Date
Gerd Moellmann
714d8c393b (Fload): Don't assume that message_with_ntring uses the
string it is given like a C string.
2002-03-11 18:42:35 +00:00
Stefan Monnier
31ade731e6 Change defvar_int def and vars to use EMACS_INT instead of just int. 2002-03-04 23:41:00 +00:00
Pavel Janík
67868d27f8 (read_filtered_event): Do not call start_hourglass before returning. 2002-03-04 09:27:58 +00:00
Richard M. Stallman
81a268b48c (read1): When reading from a file, default string to
multibyte only if it has some multibyte characters.
2002-03-03 20:06:11 +00:00
Richard M. Stallman
5150eeecd8 (read1): Redesign strategy for force_multibyte and
force_singlebyte.  Now is_multibyte records whether read_buffer
is multibyte.  Encountering any multibyte character makes it so.
2002-02-03 10:35:20 +00:00
Richard M. Stallman
3ddff13835 (init_lread): Move the site-lisp dirs later in the path. 2002-01-17 00:47:16 +00:00
Richard M. Stallman
f6f79b37f8 (read_escape): New arg BYTEREP for reporting whether
escape forces unibyte or multibyte.
(read1): When reading a string, take note of that info.
2001-12-30 03:24:17 +00:00
Pavel Janík
f0529b5b1a Doc fix. 2001-12-20 19:01:00 +00:00
Richard M. Stallman
3ba6fd9a10 (Fload): Detect recursive load error for more than 3
nestings of the same file.
(Vrecursive_load_depth_limit): Variable deleted.
(syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
2001-11-25 02:13:13 +00:00
Richard M. Stallman
da3b886d00 (read_escape): Use end_of_file_error for reporting eof. 2001-11-11 20:10:28 +00:00
Pavel Janík
5de38842f4 (Feval_region): Remove obsolete #ifdef'd-out code (eval-current-buffer).
Change doc-string comments to `new style' [w/`doc:' keyword].
2001-11-07 06:24:06 +00:00
Stefan Monnier
0ffbbdeb44 (read1): Fix behavior with nested backquoting. 2001-11-06 18:48:03 +00:00
Ken Raeburn
f5df591a70 (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of treating XCAR and XCDR
as lvalues.
(openp): Use CHECK_STRING_CAR.
(read_list): Use XSETCDR instead of treating XCDR as lvalue.
2001-11-03 21:30:34 +00:00
Pavel Janík
b782650360 Update usage of CHECK_ macros (remove unused second argument). 2001-11-02 20:46:55 +00:00
Gerd Moellmann
fe957e6553 (to_multibyte): Fix computation of new read_buffer_size. 2001-10-31 13:33:56 +00:00
Gerd Moellmann
f2c41cc0ba (read1): Remove debugging code. 2001-10-30 16:38:10 +00:00
Gerd Moellmann
b4a3be4385 (to_multibyte): Ensure read_buffer is at least twice
as large as the number of bytes to convert.
2001-10-30 16:35:42 +00:00
Gerd Moellmann
a742d646df (to_multibyte): New function.
(read1): Use it.
2001-10-30 16:04:52 +00:00
Gerd Moellmann
990ff03c4d (syms_of_lread)<recursive-load-depth-limit>: Raise to
50.
2001-10-23 14:08:08 +00:00
Ken Raeburn
f3fbd15535 Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimenting
with lisp system changes.
2001-10-16 09:09:51 +00:00
Stefan Monnier
0d74b00686 (substitute_object_recurse): Use traverse_intervals_noorder.
(syms_of_lread) <Vafter_load_alist>: Update docstring.
2001-10-12 22:07:35 +00:00
Eli Zaretskii
2ab7765c62 (syms_of_lread) <load-suffixes>: Fix last change:
multi-line strings without a trailing "\n\".
2001-10-12 08:29:44 +00:00
Stefan Monnier
ddb716ef97 (syms_of_lread): Fix init of default_suffixes. 2001-10-12 03:22:02 +00:00
Stefan Monnier
e61b9b8743 (Vload_suffixes, default_suffixes): New vars.
(openp): Take a lisp list of suffixes.
Check for file-name-handlers even if the file was absolute already.
(syms_of_lread): Declare load-suffixes.
(Fload): Fix up call to openp.
Don't bother checking for file-name-handler at the very beginning.
2001-10-12 03:18:05 +00:00
Gerd Moellmann
44c6c0191f (Fintern, Funintern): Set symbol's interned and constant
bit-fields.
(init_obarray): Likewise for t and nil.
2001-10-05 09:49:16 +00:00
Eli Zaretskii
b75f8eab55 (Fload): Document that the argument is run via substitute-in-file-name. 2001-06-02 06:12:18 +00:00
Gerd Moellmann
e26c408973 (Fload): Remove unused label. 2001-05-28 12:05:45 +00:00
Kenichi Handa
0d5e584357 (read_multibyte): Check the validity of multibyte sequence. If
invalid, return the first byte.
2001-03-13 06:04:12 +00:00
Gerd Moellmann
df6c90d8de Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
the old names.
2001-02-21 13:58:57 +00:00
Gerd Moellmann
5e37dc220a (read_integer): Use type EMACS_INT instead of int. 2001-01-25 11:57:14 +00:00
Gerd Moellmann
4ab11c0962 (read1): Recognize end of file after `\\'. 2000-12-15 13:59:23 +00:00
Gerd Moellmann
79cf851c1f (file_offset, file_tell): Depend on HAVE_FSEEKO, not
HAVE_FTELLO.
2000-12-11 11:57:04 +00:00
Gerd Moellmann
5d65df0d39 (read1): Change the way buffers are reallocated to be
portable and less obfuscated.
2000-12-08 09:59:34 +00:00
Dave Love
26fbf20bb4 (Fload): Fix #ifdef for pcc. 2000-11-17 16:11:26 +00:00
Miles Bader
96dc0f4e12 (openp): Return -2 instead of 0 for the `remote file' case.
(Fload): Use new openp return protocol.  Don't try to use
Vload_source_file_function to load .elc files.
2000-11-13 12:18:37 +00:00
Gerd Moellmann
550a625e34 (Vrecursive_load_depth_limit): New variable.
(Fload): Check recursive loads whose recursion depth exceeds
Vrecursive_load_depth_limit.
(syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
2000-09-21 11:15:01 +00:00
Gerd Moellmann
6a69efd78e (Fload): Put code checking for recursive loads in #if 0. 2000-09-12 10:58:42 +00:00
Gerd Moellmann
f74b07059d (init_lread): Set Vloads_in_progress to nil.
(Fload): Show list of recursively loaded files, when signaling an
error.
2000-09-11 13:01:38 +00:00
Gerd Moellmann
7ee3bd7bf8 (Vloads_in_progress): New variable.
(record_load_unwind): New function.
(Fload): Check for recursive loads.
(syms_of_lread): Initialize Vloads_in_progress.
(read_integer, read1): Avoid some compiler warnings.
2000-09-11 12:52:59 +00:00
Gerd Moellmann
f2e7d5eb70 (syms_of_lread): Change value of regexp
Vbytecomp_version_regexp to not match some XEmacs-compiled files.
2000-09-07 14:05:42 +00:00
Gerd Moellmann
bb970e6721 (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
variable; recognize Emacs 19 elc files.
2000-09-04 12:04:29 +00:00
Gerd Moellmann
3840422988 (read1): Accept `?' as symbol constituent, for
compatiblity with XEmacs.
2000-09-01 11:55:39 +00:00
Gerd Moellmann
8c0f83fec6 (openp): GCPRO local variable `filename'. 2000-08-31 08:51:47 +00:00
Gerd Moellmann
ace46dfee3 (openp): Prevent temporary string passed to
Ffile_readable_p from being garbage collected.
2000-08-29 10:37:38 +00:00
Andrew Innes
03695acef7 [USE_CRT_DLL]: Remove unnecessary extern, which
screws up dllimport attributes.
2000-08-22 22:38:05 +00:00
Dave Love
dcd465573f (Fread): Doc fix. 2000-08-20 19:06:50 +00:00
Dave Love
232ccf275f Prototype readevalloop, load_unwind,
load_descriptor_unwind.
(unreadpure): Give it an arg.
2000-08-17 14:11:00 +00:00
Gerd Moellmann
f38952fe7b (readevalloop): If READCHARFUN sets point to ZV, arrange
to stop reading, even if the form read sets point to a different
value when evaluated.
2000-06-07 12:31:26 +00:00
Dave Love
dba286b6f0 (_XOPEN_SOURCE, __EXTENSIONS__): Don't define. 2000-06-02 15:50:01 +00:00
Gerd Moellmann
ba0d119520 (Fload): Add a comment about the meaning of
Vuser_init_file being t.
2000-05-23 21:58:58 +00:00