1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 01:20:37 -08:00
Commit graph

136 commits

Author SHA1 Message Date
Richard M. Stallman
087a5f816b (scan_buffer): New arg ALLOW_QUIT.
(find_next_newline): Pass new arg.
1994-02-03 05:06:01 +00:00
Richard M. Stallman
ca32516100 (set_search_regs): New subroutine.
(search_buffer): Use set_search_regs.
Record beginning and end after matching null string.
1994-01-10 22:36:49 +00:00
Richard M. Stallman
3acb9a699b (Fskip_chars_backward, Fskip_chars_forward): Doc fix. 1993-11-10 19:52:09 +00:00
Richard M. Stallman
c52419107a (skip_chars): Finish reenabling checks for buffer bounds.
Use XINT, not XFASTINT, when testing.
1993-11-10 08:29:34 +00:00
Brian Fox
16fdc568c3 (Freplace_match): Fix argument names to match doc string.
(Fmatch_beginning): Fix doc string to match argument name.
1993-10-25 05:09:20 +00:00
Brian Fox
d302d40a7f (skip_chars): Fixed typo. 1993-10-08 07:36:11 +00:00
Brian Fox
d97ca6a1a4 (skip_chars): Reinstate check for end of buffer, ignoring cryptic
comment.
1993-10-07 22:58:57 +00:00
Richard M. Stallman
d756355c96 (Freplace_match): Call Finsert_and_inherit. 1993-09-14 12:08:30 +00:00
Roland McGrath
18160b98ce Include <config.h> instead of "config.h". 1993-09-10 06:15:46 +00:00
Richard M. Stallman
b90d9e8043 (compile_pattern): Cast result of re_compile_pattern. 1993-08-14 20:16:43 +00:00
Richard M. Stallman
3f57a49957 (search_buffer): If n is 0, just return POS. 1993-07-27 07:25:54 +00:00
Jim Blandy
2d52e48f10 * search.c (Flooking_at, Fstring_match, fast_string_match,
search_buffer): Don't block input while calling searching and
	matching functions.  These functions may not call malloc under
	Emacs anyway, and we need to be able to check for C-g.
1993-06-10 12:52:31 +00:00
Jim Blandy
eb8c3be94e Apply typo patches from Paul Eggert. 1993-06-09 11:59:12 +00:00
Jim Blandy
c6c5df7f76 Updated copyright years. 1993-05-22 21:34:42 +00:00
Jim Blandy
9a76659df2 * search.c (Freplace_match): Arrange for markers sitting at the
beginning or end of the original text to float to the
	corresponding position in the replacement text.
1993-05-04 02:35:38 +00:00
Richard M. Stallman
42db823b21 (search_buffer): Fix typo in previous change. 1993-04-07 20:08:55 +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
97832bd0c8 (Freplace_match): Clean up criterion about converting case.
If old text has any capitalized words, capitalize new text.
1993-03-28 05:21:24 +00:00
Jim Blandy
b37902c85c * callint.c (Fcall_interactively): Pass the correct number of
arguments to wrong_type_argument.
	* casefiddle.c (caseify_object): Same.
	* casetab.c (check_case_table): Same.
	* search.c (Fstore_match_data): Same.
	* syntax.c (check_syntax_table): Same.
1993-02-22 14:48:45 +00:00
Richard M. Stallman
17431c602d (Fskip_syntax_backward): New function.
(Fskip_syntax_forward): Likewise.
(skip_chars): New argument syntaxp.
1993-02-21 06:03:36 +00:00
Richard M. Stallman
a5f217b86e (search_command): #if 0 previous change. 1993-02-15 05:55:45 +00:00
Richard M. Stallman
481399bfac (search_command): When moving to LIM on failure, return LIM. 1993-02-15 05:42:13 +00:00
Jim Blandy
c1dc99a185 * search.c (Fskip_chars_forward, Fskip_chars_backward): Return the
distance traveled.
	(skip_chars): Return the distance traveled, as a Lisp_Object.
1992-12-12 15:37:30 +00:00
Jim Blandy
d084e9427f * search.c (Fstore_match_data): Don't assume Flength returns an
integer.
1992-10-31 05:38:19 +00:00
Richard M. Stallman
5bfe95c936 Comment fix. 1992-10-15 05:07:42 +00:00
Richard M. Stallman
e59a84533d entered into RCS 1992-07-22 03:10:28 +00:00
Jim Blandy
ebb9e16f98 *** empty log message *** 1992-07-16 22:56:42 +00:00
Jim Blandy
daa3760289 *** empty log message *** 1992-06-24 05:09:26 +00:00
Jim Blandy
1113d9db4b *** empty log message *** 1992-06-10 03:53:16 +00:00
Jim Blandy
ffd56f97cf *** empty log message *** 1992-05-18 08:14:41 +00:00
Jim Blandy
0d5483696f *** empty log message *** 1992-05-10 21:52:58 +00:00
Jim Blandy
e065a56e2d *** empty log message *** 1992-05-10 18:15:10 +00:00
Richard M. Stallman
fe99283db4 *** empty log message *** 1992-05-08 06:55:33 +00:00
Jim Blandy
4746118aca *** empty log message *** 1992-04-24 08:11:54 +00:00
Jim Blandy
8c0e7b739d *** empty log message *** 1992-04-04 05:55:39 +00:00
Jim Blandy
ca1d1d2325 Initial revision 1992-04-01 10:45:51 +00:00