Commit graph

46 commits

Author SHA1 Message Date
Richard M. Stallman
7c79a68415 Line breaking change. 1993-12-23 01:31:39 +00:00
Richard M. Stallman
49cf7ff498 (readevalloop): Get error if buffer being eval'd is killed. 1993-11-26 02:18:54 +00:00
Richard M. Stallman
5e88a39e2c (OBARRAY_SIZE): Increase from 509. 1993-11-23 03:33:33 +00:00
Richard M. Stallman
481c63363c (read1): If token has a \, don't treat it as a number. 1993-11-15 06:29:24 +00:00
Roland McGrath
2a6b353709 Include <paths.h>, not "paths.h". 1993-09-12 01:34:01 +00:00
Roland McGrath
18160b98ce Include <config.h> instead of "config.h". 1993-09-10 06:15:46 +00:00
Richard M. Stallman
80667d531d (init_lread): Normally put Vinvocation_directory
at end of Vload_path, if not present already.
1993-08-08 05:01:06 +00:00
Richard M. Stallman
8a2c760a0e (Fload): Use call5. 1993-06-13 00:01:50 +00:00
Richard M. Stallman
c2225d0026 (Fload): Forward all 4 args to magic-name handler.
(syms_of_lread): Set up Qload.
(Fload): Handle magic file names.
1993-06-10 21:15:55 +00:00
Richard M. Stallman
6291710025 Don't #undef NULL. 1993-05-24 22:35:11 +00:00
Jim Blandy
c6c5df7f76 Updated copyright years. 1993-05-22 21:34:42 +00:00
Richard M. Stallman
8a1f153784 (syms_of_lread): Make Vcurrent_load_list ordinary Lisp var.
Set up Qcurrent_load_list.
(readevalloop): Specbind Qcurrent_load_list instead of ad-hoc saving.
(build_load_history): Do nothing when loading pure files.
1993-05-19 16:50:17 +00:00
Jim Blandy
93b9120871 * lread.c, data.c: If STDC_HEADERS is #defined, include <stdlib.h>
to get the extern declarations for atof.  That's where it is in
	POSIX.
1993-05-14 14:42:01 +00:00
Jim Blandy
f42be754b2 Arrange for Fy_or_n_p to put off switch-frame events.
* 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.
1993-05-04 02:35:01 +00:00
Richard M. Stallman
ae321d283e (readevalloop): New argument is the source file name (or nil if none).
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.
1993-04-17 01:27:37 +00:00
Jim Blandy
9ac0d9e041 Put interrupt input blocking in a separate file from xterm.h.
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.
1993-03-31 10:55:33 +00:00
Richard M. Stallman
7bd279cd8e (syms_of_lread): Set up Qascii_character.
(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.
1993-03-07 09:25:28 +00:00
Richard M. Stallman
f405a5850c (read_escape): Handle M-, C- and S- for new convention.
(read1): Move the meta bit to the right place for a string.
1993-03-05 23:57:00 +00:00
Richard M. Stallman
748ef62fff (read1--strings with properties case):
Detect end of list, and invalid syntax, using recursive read1 calls.

(read1): Handle reading strings with properties.
1993-03-01 08:58:52 +00:00
Jim Blandy
cb09ab7ae1 * keyboard.c (recursive_edit_1, command_loop_1): Pass the proper
number of arguments to unbind_to.
	* lread.c (Feval_buffer): Same.
	* window.c (Fscroll_other_window): Same.
1993-02-22 14:46:31 +00:00
Richard M. Stallman
692f86ad16 (syms_of_lread): Doc fix. 1993-02-18 06:26:16 +00:00
Jim Blandy
5e43ddf5ff * lread.c (read1): Although digits followed by a '.' are an
integer, a single . by itself (like, say, \.) should be a symbol.
1993-01-29 21:32:37 +00:00
Jim Blandy
dbc4e1c129 JimB's changes since January 18th 1993-01-26 01:58:16 +00:00
Richard M. Stallman
51ac6f8388 (Fload): If warn that .elc file is older,
inhibit the ordinary message that would follow.
1993-01-10 16:44:36 +00:00
Jim Blandy
e37c080581 * lread.c: #include "keyboard.h".
(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.
1992-11-16 00:45:02 +00:00
Jim Blandy
3d9b22be4c * lread.c (read_char): Add an extern declaration for this,
indicating that it returns a Lisp_Object.
1992-10-31 05:26:04 +00:00
Richard M. Stallman
974e187b41 (Fread_char): Pass new args to read_char. 1992-09-11 23:27:12 +00:00
Jim Blandy
4360b0c609 * lread.c (defvar_per_buffer): Support new TYPE argument, by
setting the appropriate slot in buffer_local_types.
1992-08-19 06:33:16 +00:00
Jim Blandy
e51e47f729 entered into RCS 1992-07-22 20:59:53 +00:00
Jim Blandy
151bdc833e *** empty log message *** 1992-07-21 04:09:28 +00:00
Jim Blandy
12e9492639 *** empty log message *** 1992-07-16 18:29:27 +00:00
Jim Blandy
109d300c73 *** empty log message *** 1992-07-13 18:39:10 +00:00
Jim Blandy
e5d77022e8 *** empty log message *** 1992-06-30 13:54:21 +00:00
Joseph Arceneaux
508b171c56 *** empty log message *** 1992-06-05 18:39:41 +00:00
Richard M. Stallman
94b304d75b *** empty log message *** 1992-06-03 02:55:55 +00:00
Jim Blandy
dfdb645c3e *** empty log message *** 1992-06-02 05:18:06 +00:00
Joseph Arceneaux
228d4b1c2c *** empty log message *** 1992-06-02 04:15:32 +00:00
Jim Blandy
e065a56e2d *** empty log message *** 1992-05-10 18:15:10 +00:00
Jim Blandy
4746118aca *** empty log message *** 1992-04-24 08:11:54 +00:00
Jim Blandy
46947372a3 *** empty log message *** 1992-04-19 08:53:55 +00:00
Jim Blandy
0856496329 *** empty log message *** 1992-04-01 11:14:15 +00:00
Jim Blandy
265a9e559d *** empty log message *** 1992-01-13 21:48:08 +00:00
Jim Blandy
6367dc09a1 *** empty log message *** 1991-12-19 17:24:45 +00:00
Richard M. Stallman
200f684ed7 *** empty log message *** 1991-08-04 21:39:58 +00:00
Jim Blandy
279499f026 *** empty log message *** 1991-07-30 08:36:29 +00:00
Jim Blandy
078e7b4ada Initial revision 1991-07-19 20:51:57 +00:00