aboutsummaryrefslogtreecommitdiffstats
path: root/src/lread.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (readevalloop): Correctly unbind the unwind protect.Richard M. Stallman1994-07-091-1/+2
|
* (readchar): Restart interrupted I/O.Karl Heuer1994-06-281-1/+15
|
* Put config.h first.Richard M. Stallman1994-06-151-1/+1
|
* [MSDOS]: #include "msdos.h".Richard M. Stallman1994-06-071-0/+1
|
* (defvar_bool, defvar_int, defvar_lisp, defvar_lisp_nopro):Richard M. Stallman1994-06-011-10/+4
| | | | Delete third arg DOC.
* (openp): Don't use O_RDONLY.Richard M. Stallman1994-05-251-1/+1
|
* Only lusers assume that O_RDONLY == 0.Michael I. Bushnell1994-05-201-2/+2
|
* Update copyright.Karl Heuer1994-05-041-1/+1
|
* [MSDOS]: Re-enable some #undef's.Karl Heuer1994-04-291-4/+1
|
* (read1): Allow `\C- ' and `\C-?'.Richard M. Stallman1994-04-281-0/+6
|
* (read_filtered_event): Use Vunread_command_events.Richard M. Stallman1994-04-261-1/+1
|
* Pass operation to Ffind_file_name_handler.Karl Heuer1994-04-221-1/+1
|
* (init_lread): Maybe put build-time Lisp dirs on load-path.Richard M. Stallman1994-04-211-5/+14
| | | | (init_lread): Improve warning message.
* (read_filtered_event, intern): Use assignment instead of initialization.Karl Heuer1994-03-231-3/+5
|
* (unreadchar): Don't back up the pointer when unreading EOF.Karl Heuer1994-03-221-1/+5
|
* (read1): Check for invalid modifier bits in a string.Karl Heuer1994-03-221-4/+8
|
* (openp, Fload): GCPRO some things.Karl Heuer1994-03-181-3/+8
|
* (Fload): Cast the args to stat.Richard M. Stallman1994-02-241-2/+2
|
* (read_filtered_event): Retry read_char after a buffer change.Karl Heuer1994-02-111-0/+3
|
* (init_lread): Put non-ex-dir warnings on stderr.Richard M. Stallman1994-01-291-2/+2
|
* (init_lread): Use Vinstallation_directory.Richard M. Stallman1994-01-171-8/+7
|
* (Fload): Record descriptor numbers on load_descriptor_list.Richard M. Stallman1994-01-111-0/+29
| | | | | | (load_descriptor_unwind, close_load_descs): New function. (syms_of_lread): Init and staticpro load_descriptor_list. (init_lread): Clear load_descriptor_list.
* [MSDOS]: Use text mode for all files but ".elc" files.Richard M. Stallman1994-01-081-0/+25
| | | | (complete_file_name) [MSDOS]: Drive letter support.
* Line breaking change.Richard M. Stallman1993-12-231-2/+2
|
* (readevalloop): Get error if buffer being eval'd is killed.Richard M. Stallman1993-11-261-0/+9
|
* (OBARRAY_SIZE): Increase from 509.Richard M. Stallman1993-11-231-1/+1
|
* (read1): If token has a \, don't treat it as a number.Richard M. Stallman1993-11-151-24/+29
|
* Include <paths.h>, not "paths.h".Roland McGrath1993-09-121-1/+1
|
* Include <config.h> instead of "config.h".Roland McGrath1993-09-101-1/+1
|
* (init_lread): Normally put Vinvocation_directoryRichard M. Stallman1993-08-081-1/+14
| | | | at end of Vload_path, if not present already.
* (Fload): Use call5.Richard M. Stallman1993-06-131-10/+1
|
* (Fload): Forward all 4 args to magic-name handler.Richard M. Stallman1993-06-101-1/+19
| | | | | (syms_of_lread): Set up Qload. (Fload): Handle magic file names.
* Don't #undef NULL.Richard M. Stallman1993-05-241-1/+0
|
* Updated copyright years.Jim Blandy1993-05-221-1/+1
|
* (syms_of_lread): Make Vcurrent_load_list ordinary Lisp var.Richard M. Stallman1993-05-191-15/+19
| | | | | | Set up Qcurrent_load_list. (readevalloop): Specbind Qcurrent_load_list instead of ad-hoc saving. (build_load_history): Do nothing when loading pure files.
* * lread.c, data.c: If STDC_HEADERS is #defined, include <stdlib.h>Jim Blandy1993-05-141-0/+3
| | | | | to get the extern declarations for atof. That's where it is in POSIX.
* Arrange for Fy_or_n_p to put off switch-frame events.Jim Blandy1993-05-041-109/+81
| | | | | | | | | | | * lread.c (read_filtered_char): New function, which contains the code which used to be in Fread_char, Fread_event, and Fread_char_exclusive; there was a lot of common code. (Fread_char, Fread_event, Fread_char_exclusive): Rewrite in terms of read_filtered_char. * lisp.h (read_filtered_char): Declare this extern here. * fns.c (Fy_or_n_p): Call read_filtered_char, arranging to delay switch-frame events.
* (readevalloop): New argument is the source file name (or nil if none).Richard M. Stallman1993-04-171-8/+113
| | | | | | | | | All calls changed. Do the two-step necessary to call build_load_history with the correct current-globals list for the current recursion. (build_load_history): New function. (eval_region, eval_buffer): Call readevalloop with new arg. (load_history): New variable.
* Put interrupt input blocking in a separate file from xterm.h.Jim Blandy1993-03-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This isn't specific to X, and it allows us to avoid #including xterm.h in files that don't really have anything to do with X. * blockinput.h: New file. * xterm.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT, UNBLOCK_INPUT_RESIGNAL): These are now in blockinput.h. (x_input_blocked, x_pending_input): Deleted; there are analogs in blockinput.h called interrupt_input_blocked and interrupt_input_pending. * keyboard.c (interrupt_input_blocked, interrupt_input_pending): New variables, used by the macros in blockinput.h. * xterm.c: #include blockinput.h. (x_input_blocked, x_pending_input): Deleted. (XTread_socket): Test and set interrupt_input_blocked and interrupt_input_pending instead of the old variables. * alloc.c, xfaces.c, xfns.c, xmenu.c, xselect.c, keymap.c: #include blockinput.h. * eval.c: #include blockinput.h instead of xterm.h. * keyboard.c: #include blockinput.h. (input_poll_signal): Just test interrupt_input_blocked, instead of testing HAVE_X_WINDOWS and x_input_blocked. Block the processing of interrupt input while we're manipulating the malloc heap. * alloc.c: (xfree): New function, to make it easy to free things safely. (xmalloc, xrealloc): Block X input while doing the deed. (VALIDATE_LISP_STORAGE, gc_sweep, compact_strings): Use xfree instead of free. (uninterrupt_malloc): New function, to install input-blocking hooks into the GNU malloc routines. * emacs.c [not SYSTEM_MALLOC] (main): Call uninterrupt_malloc on startup. * alloc.c: (make_interval, make_float, Fcons, Fmake_vector, Fmake_symbol, Fmake_marker, make_uninit_string, Fgarbage_collect): Use xmalloc instead of malloc; don't bother to check if out of memory here. (Fgarbage_collect): Call xrealloc instead of realloc. * buffer.c: Use xmalloc and xfree instead of malloc and free; don't bother to check if out of memory here. (Fget_buffer_create): Put BLOCK_INPUT/UNBLOCK_INPUT pair around calls to ralloc routines. * insdel.c: Same. * lisp.h (xfree): New extern declaration. * xfaces.c (xfree): Don't #define this to be free; use the definition in alloc.c. * dispnew.c, doc.c, doprnt.c, fileio.c, lread.c, term.c, xfns.c, xmenu.c, xterm.c: Use xfree instead of free. * hftctl.c: Use xfree and xmalloc instead of free and malloc. * keymap.c (current_minor_maps): BLOCK_INPUT while calling realloc and malloc. * search.c: Since the regexp routines can malloc, BLOCK_INPUT while runing them. #include blockinput.h. * sysdep.c: #include blockinput.h. Call xfree and xmalloc instead of free and malloc. BLOCK_INPUT around routines which we know will call malloc. ymakefile (keyboard.o, keymap.o, search.o, sysdep.o, xfaces.o, xfns.o, xmenu.o, xterm.o, xselect.o, alloc.o, eval.o): Note that these depend on blockinput.h.
* (syms_of_lread): Set up Qascii_character.Richard M. Stallman1993-03-071-5/+68
| | | | | | | | (Fread_char, Fread_char_exclusive): Use that property to convert symbols like tab, return, M-return,... to ASCII. Include termhooks.h. (read_escape): Handle \H, \A, \s. Use ..._modifier.
* (read_escape): Handle M-, C- and S- for new convention.Richard M. Stallman1993-03-051-5/+25
| | | | (read1): Move the meta bit to the right place for a string.
* (read1--strings with properties case):Richard M. Stallman1993-03-011-3/+43
| | | | | | Detect end of list, and invalid syntax, using recursive read1 calls. (read1): Handle reading strings with properties.
* * keyboard.c (recursive_edit_1, command_loop_1): Pass the properJim Blandy1993-02-221-1/+1
| | | | | | number of arguments to unbind_to. * lread.c (Feval_buffer): Same. * window.c (Fscroll_other_window): Same.
* (syms_of_lread): Doc fix.Richard M. Stallman1993-02-181-1/+1
|
* * lread.c (read1): Although digits followed by a '.' are anJim Blandy1993-01-291-1/+1
| | | | integer, a single . by itself (like, say, \.) should be a symbol.
* JimB's changes since January 18thJim Blandy1993-01-261-2/+10
|
* (Fload): If warn that .elc file is older,Richard M. Stallman1993-01-101-3/+10
| | | | inhibit the ordinary message that would follow.
* * lread.c: #include "keyboard.h".Jim Blandy1992-11-161-14/+66
| | | | | | | | | | | (Fread_char, Fread_char_exclusive): Don't signal an error for or throw away switch-frame events; instead, put them off until after we've found a character we can respond to. Rename unread_command_char to unread_command_event; it has subtly different semantics now, and we should use `make-obsolete-variable' to warn people. * lread.c (Fread_char): Change reference.
* * lread.c (read_char): Add an extern declaration for this,Jim Blandy1992-10-311-0/+2
| | | | indicating that it returns a Lisp_Object.
* (Fread_char): Pass new args to read_char.Richard M. Stallman1992-09-111-3/+3
|