aboutsummaryrefslogtreecommitdiffstats
path: root/src/lread.c
Commit message (Collapse)AuthorAgeFilesLines
* *** empty log message ***Kenichi Handa2003-09-081-283/+427
|\
| * (read1): While reading a string, set force_singlebyteKenichi Handa2003-05-301-0/+4
| | | | | | | | and force_multibyte correctly.
| * Fix last change.Dave Love2003-05-041-1/+1
| |
| * (read_emacs_mule_char) [len==2]: IndexDave Love2003-05-041-1/+1
| | | | | | | | emacs_mule_charset correctly.
| * commentDave Love2002-09-051-0/+2
| |
| * (safe_to_load_p): Fix the logic.Kenichi Handa2002-08-191-2/+2
| |
| * (Fload): Don't load with Qload_force_doc_strings t ifKenichi Handa2002-07-251-1/+1
| | | | | | | | version is 0.
| * Include "coding.h".Kenichi Handa2002-07-241-253/+350
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
| * (Fload) <!load_dangerous_libraries>: Don't leak fd.Dave Love2002-07-181-2/+11
| | | | | | | | <version == 20>: Refuse to load.
| * Remove some unused variables.Dave Love2002-06-241-9/+27
| | | | | | | | | | (safe_to_load_p): If safe, return the magic number version byte. (Fload): Maybe use load-with-code-conversion.
| * Include "character.h".Kenichi Handa2002-03-011-129/+149
| | | | | | | | | | | | | | (read_multibyte): New arg NBYTES. (read_escape): The meaning of returned *BYTEREP changed. (to_multibyte): Deleted. (read1): Adjuted the handling of char table and string.
* | New directoryKenichi Handa2003-09-081-3/+0
| |
* | Add arch taglinesMiles Bader2003-09-011-0/+3
| |
* | [HAVE_FCNTL_H]: Include fcntl.h.Dave Love2003-06-021-0/+3
| |
* | (openp): Make sure STR is a string.Stefan Monnier2003-06-011-0/+2
| |
* | (Fload): Print a message if package is obsolete.Stefan Monnier2003-05-181-2/+7
| |
* | (read1): Before calling index, check if the 2ndKenichi Handa2003-04-091-12/+16
| | | | | | | | arguemnt is in ASCII range.
* | (openp): Get the Qfile_exists_p handler for STRING, not FN.Richard M. Stallman2003-04-081-1/+1
| |
* | (read1): After #!, exit loop on eof.Richard M. Stallman2003-03-141-1/+1
| |
* | (read1): Accept `single space' syntax like (? x).Kim F. Storm2003-02-251-0/+7
| |
* | 2003-02-22 David Ponce <[email protected]>Juanma Barranquero2003-02-221-1/+1
| | | | | | | | (Fload): Don't check STRING_MULTIBYTE.
* | (read1): Allow "?" after a character constant.Kim F. Storm2003-02-181-1/+1
| |
* | (read1): Fix last change; "`" is not always special.Kim F. Storm2003-02-181-4/+8
| |
* | (read1): Fix and relax read syntax.Kim F. Storm2003-02-171-12/+25
| | | | | | | | | | | | | | | | Recognize "[", ";", "#", and "?" after a dotted-pair dot. Only recognize "," after dotted-pair dot if inside backquote. Never include "`" or "," (inside backquote) in a symbol. Allow dotted-pair dot after a character constant. Allow "`" and "," (inside backquote) after a character constant.
* | (read_escape): Interpret \s as a SPACE character, exceptKim F. Storm2003-02-131-2/+16
| | | | | | | | | | | | for \s-X in a character constant which still is the super modifier. (read1): Signal an `invalid read syntax' error if a character constant is immediately followed by a digit or symbol character.
* | Trailing whitespace deleted.Juanma Barranquero2003-02-041-31/+31
| |
* | (load_error_handler): New function.Richard M. Stallman2002-12-211-4/+20
| | | | | | | | | | (Fload): Handle errors in Fsubstitute_in_file_name. Don't expect Fsignal to return.
* | (syms_of_lread) <load-history>: Doc fix.Richard M. Stallman2002-12-071-1/+4
| |
* | (Feval_buffer): Doc fix.John Paul Wallington2002-11-041-1/+1
| |
* | (Fload) <!load_dangerous_libraries>: Close fd.Dave Love2002-10-301-2/+6
| |
* | (syms_of_lread): Fix typos.Juanma Barranquero2002-10-171-2/+2
| |
* | Minor white space fix, just supplement the log for previous change:Markus Rost2002-10-121-1/+1
| | | | | | | | (Fload): Doc fix (load-suffixes).
* | *** empty log message ***Markus Rost2002-10-111-1/+2
| |
* | (read1): Handle #! by skipping the line.Richard M. Stallman2002-09-011-0/+8
| |
* | (build_load_history): Use Fmember to see if a definitionRichard M. Stallman2002-08-241-4/+4
| | | | | | | | | | is already in the Vload_history element. (syms_of_lread): Doc fix.
* | (intern, oblookup, hash_string): String pointer argsKen Raeburn2002-07-161-8/+7
| | | | | | | | | | | | now point to const. (complete_filename_p, openp): Use const for pointer to lisp string data.
* | (Fintern_soft): Use string macros instead of Lisp_String fields.Ken Raeburn2002-07-161-5/+4
| |
* | * lread.c (Fload): Use SDATA, SSET.Ken Raeburn2002-07-161-3/+3
| |
* | * lread.c (read_vector): Use STRING_SET_CHARS.Ken Raeburn2002-07-151-1/+1
| |
* | Most uses of XSTRING combined with STRING_BYTES or indirection changed toKen Raeburn2002-07-151-51/+51
| | | | | | | | | | SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references left unchanged for now.
* | Use macro SPECPDL_INDEX.Juanma Barranquero2002-07-111-5/+5
| |
* | (Fread): Remove redundant and imprecise declaration.Stefan Monnier2002-06-221-1/+0
| |
* | (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.