aboutsummaryrefslogtreecommitdiffstats
path: root/src/lread.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (read_integer): Remove unused var `tem'.Stefan Monnier2002-06-111-2/+3
| | | | (read1): Fix int/Lisp_Object mixup.
* Fix previous change (oops).Colin Walters2002-05-291-1/+3
|
* (Fread_from_string): Don't depend on order of evaluation for CColin Walters2002-05-291-2/+2
| | | | function parameters.
* lread.c (readchar_count): New variable.Colin Walters2002-05-281-51/+141
| | | | | | | | | | | | | | | | (readchar): Increment it. (unreadchar): Decrement it. (read_multibyte): Decrement it. (Vread_with_symbol_positions): New variable. (Vread_symbol_positions_list): New variable. (read_internal_start): New function, created from Fread and Fread_from_string. Handle Vread_symbol_positions_list and Vread_with_symbol_positions. (readevalloop, Fread, Fread_from_string): Use it. (read1): Use readchar_count to add symbol positions to Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil. (syms_of_lread): DEFVAR_LISP and initialize them.
* * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRINGKen Raeburn2002-05-201-5/+5
| | | | | | instead of XSYMBOL and name field. (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and name field and XSETSTRING.
* (openp): Change arg exec_only to predicate.Stefan Monnier2002-04-301-23/+46
| | | | | | | (build_load_history): Use XCAR/XCDR. (Flocate_file_internal): New fun. (syms_of_lread): Defsubr it. (Fload): Update call to openp.
* (openp, Fload): Encode the file name before pasing itEli Zaretskii2002-03-291-22/+33
| | | | | | to `stat', `access', and `emacs_open'. (openp): GCPRO the encoded file name. Don't recompute Lisp strings unnecessarily.
* (Fload): Don't assume that message_with_ntring uses theGerd Moellmann2002-03-111-4/+9
| | | | string it is given like a C string.
* Change defvar_int def and vars to use EMACS_INT instead of just int.Stefan Monnier2002-03-041-1/+1
|
* (read_filtered_event): Do not call start_hourglass before returning.Pavel Janík2002-03-041-0/+5
|
* (read1): When reading from a file, default string toRichard M. Stallman2002-03-031-2/+4
| | | | multibyte only if it has some multibyte characters.
* (read1): Redesign strategy for force_multibyte andRichard M. Stallman2002-02-031-40/+49
| | | | | force_singlebyte. Now is_multibyte records whether read_buffer is multibyte. Encountering any multibyte character makes it so.
* (init_lread): Move the site-lisp dirs later in the path.Richard M. Stallman2002-01-171-7/+28
|
* (read_escape): New arg BYTEREP for reporting whetherRichard M. Stallman2001-12-301-14/+28
| | | | | escape forces unibyte or multibyte. (read1): When reading a string, take note of that info.
* Doc fix.Pavel Janík2001-12-201-2/+2
|
* (Fload): Detect recursive load error for more than 3Richard M. Stallman2001-11-251-20/+12
| | | | | | nestings of the same file. (Vrecursive_load_depth_limit): Variable deleted. (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
* (read_escape): Use end_of_file_error for reporting eof.Richard M. Stallman2001-11-111-1/+1
|
* (Feval_region): Remove obsolete #ifdef'd-out code (eval-current-buffer).Pavel Janík2001-11-071-207/+179
| | | | Change doc-string comments to `new style' [w/`doc:' keyword].
* (read1): Fix behavior with nested backquoting.Stefan Monnier2001-11-061-4/+4
|
* (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of treating XCAR and XCDRKen Raeburn2001-11-031-5/+5
| | | | | | as lvalues. (openp): Use CHECK_STRING_CAR. (read_list): Use XSETCDR instead of treating XCDR as lvalue.
* Update usage of CHECK_ macros (remove unused second argument).Pavel Janík2001-11-021-9/+9
|
* (to_multibyte): Fix computation of new read_buffer_size.Gerd Moellmann2001-10-311-1/+1
|
* (read1): Remove debugging code.Gerd Moellmann2001-10-301-3/+0
|
* (to_multibyte): Ensure read_buffer is at least twiceGerd Moellmann2001-10-301-1/+4
| | | | as large as the number of bytes to convert.
* (to_multibyte): New function.Gerd Moellmann2001-10-301-13/+50
| | | | (read1): Use it.
* (syms_of_lread)<recursive-load-depth-limit>: Raise toGerd Moellmann2001-10-231-13/+10
| | | | 50.
* Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimentingKen Raeburn2001-10-161-9/+12
| | | | with lisp system changes.
* (substitute_object_recurse): Use traverse_intervals_noorder.Stefan Monnier2001-10-121-3/+5
| | | | (syms_of_lread) <Vafter_load_alist>: Update docstring.
* (syms_of_lread) <load-suffixes>: Fix last change:Eli Zaretskii2001-10-121-1/+1
| | | | multi-line strings without a trailing "\n\".
* (syms_of_lread): Fix init of default_suffixes.Stefan Monnier2001-10-121-1/+2
|
* (Vload_suffixes, default_suffixes): New vars.Stefan Monnier2001-10-121-44/+64
| | | | | | | | (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.
* (Fintern, Funintern): Set symbol's interned and constantGerd Moellmann2001-10-051-9/+21
| | | | | bit-fields. (init_obarray): Likewise for t and nil.
* (Fload): Document that the argument is run via substitute-in-file-name.Eli Zaretskii2001-06-021-1/+2
|
* (Fload): Remove unused label.Gerd Moellmann2001-05-281-2/+0
|
* (read_multibyte): Check the validity of multibyte sequence. IfKenichi Handa2001-03-131-1/+8
| | | | invalid, return the first byte.
* Use display_hourglass_p, start_hourglass, cancel_hourglass instead ofGerd Moellmann2001-02-211-5/+5
| | | | the old names.
* (read_integer): Use type EMACS_INT instead of int.Gerd Moellmann2001-01-251-1/+2
|
* (read1): Recognize end of file after `\\'.Gerd Moellmann2000-12-151-0/+2
|
* (file_offset, file_tell): Depend on HAVE_FSEEKO, notGerd Moellmann2000-12-111-1/+1
| | | | HAVE_FTELLO.
* (read1): Change the way buffers are reallocated to beGerd Moellmann2000-12-081-12/+14
| | | | portable and less obfuscated.
* (Fload): Fix #ifdef for pcc.Dave Love2000-11-171-2/+2
|
* (openp): Return -2 instead of 0 for the `remote file' case.Miles Bader2000-11-131-38/+40
| | | | | (Fload): Use new openp return protocol. Don't try to use Vload_source_file_function to load .elc files.
* (Vrecursive_load_depth_limit): New variable.Gerd Moellmann2000-09-211-26/+45
| | | | | | (Fload): Check recursive loads whose recursion depth exceeds Vrecursive_load_depth_limit. (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
* (Fload): Put code checking for recursive loads in #if 0.Gerd Moellmann2000-09-121-0/+5
|
* (init_lread): Set Vloads_in_progress to nil.Gerd Moellmann2000-09-111-1/+3
| | | | | (Fload): Show list of recursively loaded files, when signaling an error.
* (Vloads_in_progress): New variable.Gerd Moellmann2000-09-111-4/+35
| | | | | | | (record_load_unwind): New function. (Fload): Check for recursive loads. (syms_of_lread): Initialize Vloads_in_progress. (read_integer, read1): Avoid some compiler warnings.
* (syms_of_lread): Change value of regexpGerd Moellmann2000-09-071-1/+1
| | | | Vbytecomp_version_regexp to not match some XEmacs-compiled files.
* (syms_of_lread): Make Vbytecomp_version_regexp a LispGerd Moellmann2000-09-041-2/+8
| | | | variable; recognize Emacs 19 elc files.
* (read1): Accept `?' as symbol constituent, forGerd Moellmann2000-09-011-6/+7
| | | | compatiblity with XEmacs.
* (openp): GCPRO local variable `filename'.Gerd Moellmann2000-08-311-3/+3
|