1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 09:51:22 -08:00
Commit graph

10633 commits

Author SHA1 Message Date
Jim Blandy
f812877e01 * fns.c: #include keyboard.h.
(Fdelete): Check if Fequal returns Qnil, not zero.
1992-10-31 05:20:23 +00:00
Jim Blandy
1cee204565 * floatfns.c (Flog): Don't forget to declare the BASE argument a
Lisp_Object.

	* floatfns.c (Fexpt): Don't return the value of the XSET function
	call; that's not guaranteed to be the value assigned.
1992-10-31 05:19:58 +00:00
Jim Blandy
665d304655 * doc.c: #include keyboard.h.
* doc.c (Fsubstitute_command_keys): Ask get_keymap_1 to
	perform autoloads.  Autoloading might GC; we need to GCPRO our
	local variables now.
	(Fdocumentation, Fdocumentation_property): Autoloading in
	Fsubstitute_command_keys might GC; we need to GCPRO our
	local variables now.
1992-10-31 05:18:48 +00:00
Jim Blandy
bf34ebcf25 * dispextern.h (sit_for): Declare this extern. 1992-10-31 05:18:16 +00:00
Jim Blandy
ccbcf97926 * dired.c (find_file_handler): Declare this extern.
(Ffile_attributes): Use NILP, not == Qnil.

	* dired.c (Ffile_attributes): Doc fix.
1992-10-31 05:17:46 +00:00
Jim Blandy
b06faa915c * data.c (Fset): See if current_alist_element points to itself
using EQ, not ==.
	(float_arith_driver): Declare this extern above arith_driver.
1992-10-31 05:17:14 +00:00
Jim Blandy
3cfd58255d * commands.h (unread_command_char): Declare this to be a
Lisp_Object, not an int.
1992-10-31 04:55:35 +00:00
Jim Blandy
d9da9451b5 * casetab.c (set_case_table): Declare this to be static, and
return a Lisp_Object. Add static declaration for this
	before Fset_case_table and Fset_standard_case_table.
	(Fset_case_table, Fset_standard_case_table): Return the return
	value of set_case_table, instead of returning garbage.
1992-10-31 04:55:02 +00:00
Jim Blandy
39fb55ffbd * casefiddle.c (operate_on_word): Declare end to be an int, not a
Lisp_Object.
1992-10-31 04:54:35 +00:00
Jim Blandy
d177f19458 * callproc.c: Arrange for synchronous processes to get SIGINT the
first time the user quits, or SIGKILL if the user quits again.
	#include "syssignal.h".
	(call_process_kill): New function.
	(call_process_cleanup): Send SIGINT to the subprocess, and then
	arrange to call call_process_kill if the user quits while we wait
	for it to terminate.
	(Fcall_process, Fcall_process_region): Doc fix.
1992-10-31 04:53:11 +00:00
Jim Blandy
3b1f62f3ac * bytecode.c (Fbyte_code): Use EQ to compare string_saved with
bytestr.

	* bytecode.c (Fbyte_code): When metering the Bcall opcodes, make
	sure the count on the symbol's `byte-code-meter' property does not
	overflow.

	* bytecode.c (syms_of_bytecode): Add a docstring for
	byte-metering-on.
1992-10-31 04:52:24 +00:00
Jim Blandy
ea47125f68 * buffer.h (Fbuffer_name, Fget_file_buffer): Added external
declarations.

	* buffer.h (struct buffer_local_types): This declaration needed an
	extern qualifier.
1992-10-31 04:51:36 +00:00
Jim Blandy
291026b51f * buffer.c (reset_buffer): Don't assign to b->save_length as if it
were an int; use XFASTINT.
1992-10-31 04:50:51 +00:00
Jim Blandy
5bc1518a3d * alloc.c (Frope_elt): Declare arguments to be Lisp_Objects. 1992-10-31 04:50:13 +00:00
Jim Blandy
4458687ccf * abbrev.c (Funexpand_abbrev): Just assign the last abbrev's value
to val; don't use XSET.  Make sure that the value of the
	abbrev-symbol is a string.
1992-10-31 04:49:31 +00:00
Richard M. Stallman
03e130d5ca (preserved_fns): New var.
(Fcall_interactively): Preserve fns listed in preserved_fns
when they appear in an interactive spec which is a call to `list'.
(syms_of_callint): Set preserved_fns and staticpro it.
1992-10-30 06:01:13 +00:00
Richard M. Stallman
e36ba27837 (get_system_name): Use gethostname for USG systems
if HAVE_GETHOSTNAME is defined.
1992-10-29 10:44:50 +00:00
Richard M. Stallman
94aa5d2d37 (count_blanks): Leave argument r constant, and increment p. 1992-10-29 06:29:20 +00:00
Richard M. Stallman
66c7840d6b Initial revision 1992-10-28 09:15:05 +00:00
Richard M. Stallman
68431f0bda (HAVE_GETHOSTNAME): Define it. 1992-10-28 09:14:23 +00:00
Richard M. Stallman
6054557352 (HAVE_SETSID, IRIX): Defined.
(HAVE_GETHOSTNAME): Define it.
1992-10-28 09:06:29 +00:00
Richard M. Stallman
a36d8f2954 [sony, IRIS_4D]: Include getpagesize.h and fcntl.h.
(unexec): #if 0 the error check of hdr.fhdr.f_nscns.
Clear text_section->s_scnptr.
1992-10-27 19:42:55 +00:00
Richard M. Stallman
7516b7d521 (relinquish): Adjust page_break_value by amount of memory actually given back.
(r_alloc_sbrk): Provide hysteresis in relocating the blocs.

(relinquish): Never free less than extra_bytes;
keep extra_bytes of empty space.
(obtain): Always get extra_bytes additional space.
(r_alloc_init): Set extra_bytes and page_size.
(ALIGNED, ROUNDUP, ROUND_TO_PAGE): Use page_size.
1992-10-24 04:39:49 +00:00
Jim Blandy
55b0b31972 * emacs.c (main): Correct spelling of HAVE_X_WINDOW to
HAVE_X_WINDOWS in conditionals around the call to syms_of_xmenu.
1992-10-23 20:40:04 +00:00
Richard M. Stallman
debee8fea7 (grow_specpdl): Increase max_specpdl_size before Fsignal. 1992-10-20 06:13:00 +00:00
Richard M. Stallman
f275fd9a94 [emacs]: Define POINTER and SIZE.
[!emacs]: Delete definition of EXCEEDS_LISP_PTR.
1992-10-20 06:12:43 +00:00
Richard M. Stallman
c52713b17b (get_lim_data): Make it static. 1992-10-20 06:12:19 +00:00
Richard M. Stallman
715d93450c (syms_of_keyboard): Properly staticpro this_command_keys. 1992-10-20 06:11:53 +00:00
Jim Blandy
81d478f3c6 * xdisp.c (message): If M is zero, clear echo_area_glyphs and
previous_echo_glyphs, so that the minibuffer shows through.
1992-10-19 18:47:56 +00:00
Jim Blandy
27daff1e90 * window.h (struct window): Doc fix. 1992-10-19 18:47:21 +00:00
Jim Blandy
605be8af79 * window.c: Try to deal coherently with deleted windows:
*	(Flive_window_p): New function.
	(Qlive_window_p): New variable, to name it in type errors.
	(syms_of_window): Defsubr Slive_window_p, init and staticpro
	Qlive_window_p.
	(decode_window): Use CHECK_LIVE_WINDOW instead of
	CHECK_WINDOW; the only thing a user should be able to do to a dead
	window is check its type.
	(Fcoordinates_in_window_p, Fnext_window, Fprevious_window,
	Fdelete_other_windows, Fselect_window, Fsplit_window,
	Fscroll_other_window): Use CHECK_LIVE_WINDOW instead of
	CHECK_WINDOW.
	(Fdelete_window): If WINDOW is a deleted window, do nothing;
	there's no harm in allowing people to delete deleted windows.
	Delete all of WINDOW's subwindows, too.
	(delete_all_subwindows): Set the buffer, vchild, and hchild of the
	windows we delete all to nil.

	* window.c (Fwindow_minibuffer_p): Make the WINDOW argument
	optional, like all the other window-querying functions.

	* window.c (Fpos_visible_in_window_p): Use decode_window to handle
	the WINDOW argument, instead of writing out that function's code.

	* window.c (check_frame_size): Don't define this extern; that
	doesn't mean anything.

	* window.c (Fdelete_window): Choose an alternative when we delete
	any frame's selected window, not just when we delete the selected
	frame's selected window.
1992-10-19 18:46:29 +00:00
Jim Blandy
896adf8499 * minibuf.c (temp_echo_area_glyphs): Don't clear echo_area_glyphs
and previous_echo_glyphs; let message do that work.
1992-10-19 18:44:46 +00:00
Jim Blandy
03273ec57b * lisp.h (CHECK_LIVE_WINDOW): New predicate.
(Qlive_window_p): Extern declaration for this.
1992-10-19 18:41:37 +00:00
Jim Blandy
0188441d06 * keymap.c (store_in_keymap): Don't forget to QUIT in the
keymap-scanning loop.  Don't treat vectors as binding tables if
	they're the wrong length.

	* keymap.c (store_in_keymap): Don't forget to QUIT in the
	keymap-scanning loop.  Don't treat vectors as binding tables if
	they're the wrong length.
1992-10-19 18:41:06 +00:00
Jim Blandy
49fcd3debd * keyboard.h (this_command_keys): Extern declaration changed. Doc fix. 1992-10-19 18:39:37 +00:00
Jim Blandy
6569cc8d18 * keyboard.c (this_command_keys): Make this a vector, instead of
an array of Lisp_Objects.
	(this_command_keys_size): Deleted.
	(echo, add_command_key, Fthis_command_keys): Adjusted
	appropriately.
	(init_keyboard): Don't allocate it here.
	(syms_of_keyboard): Allocate it here, and staticpro it.

	* keyboard.c (read_char): Call ourselves with the appropriate
	number of arguments.
	(read_char_menu_prompt): If USED_MOUSE_MENU is zero, don't try to
	store things in it.

	* keyboard.c (modify_event_symbol): Arrange to set the
	click_modifier bit on otherwise unmodified mouse clicks.

	* keyboard.c (kbd_buffer_get_event): Remember that
	*mouse_position_hook may set *FRAME to 0; don't generate
	switch-frame events in this case.  Fix fencepost bug in fetching
	events from keyboard buffer.
1992-10-19 18:38:58 +00:00
Jim Blandy
3b0182e33a Same. * xfns.c (x_set_face): Dyked out this function; it has no callers,
and refers to an obsolete version of struct face.
1992-10-19 18:36:13 +00:00
Jim Blandy
774910ebd7 * frame.c (make_frame_without_minibuffer, Fwindow_frame): Use
CHECK_LIVE_WINDOW instead of CHECK_WINDOW.
	* sunfns.c (Fsun_menu_internal): Same.
	* xmenu.c (Fx_popup_menu): Same.
1992-10-19 18:33:14 +00:00
Jim Blandy
11edeb0334 * xterm.c (compose_status): New variable.
(XTread_socket): Pass it by reference to XLookupString.

	* xterm.c: Clean up some of the caps lock handling:
	(x_shift_lock_mask): New variable.
	(x_find_modifier_mappings): Set it, based on the modifier mappings.
	(x_convert_modifiers): Use x_shift_lock_mask, instead of assuming
	that the lock bit always means to shift the character.
	(XTread_socket): When handling KeyPress events, don't pass an
	XComposeStatus structure along to XLookupString.  When handling
	MappingNotify events, call XRefreshKeyboardMapping for both
	MappingModifier and MappingKeyboard events, not just the latter.
1992-10-19 18:31:34 +00:00
Richard M. Stallman
02c5fd9981 (BROKEN_FIONREAD): Defined. 1992-10-18 08:09:23 +00:00
Jim Blandy
ccdac5be86 * * editfns.c (Fmessage): With no arguments, clear any active
message; let the minibuffer contents show through.
1992-10-17 22:11:56 +00:00
Jim Blandy
7e6491d3b4 * callint.c (Fcall_interactively): Change handling of 'e' spec;
this_command_keys is now a vector.
1992-10-17 22:11:23 +00:00
Roland McGrath
134994aee8 (check_memory_limits): Declare __morecore.
Remove unused variable `result'.
1992-10-15 23:44:00 +00:00
Roland McGrath
fd0654667e (morecore_with_warning): Removed.
(check_memory_limits): New fn; most code from morecore_with_warning, but
only checks limits, doesn't do any work.
(memory_warnings): Set __after_morecore_hook to check_memory_limits;
don't set __morecore.
1992-10-15 23:29:28 +00:00
Richard M. Stallman
5bfe95c936 Comment fix. 1992-10-15 05:07:42 +00:00
Joseph Arceneaux
e0b634930e * intervals.c (traverse_intervals): New parameter `depth'.
Increment this when passing recursively.
1992-10-14 23:12:09 +00:00
Joseph Arceneaux
433c217556 * alloc.c (mark_interval_tree): Pass 0 as initial depth argument
to traverse_intervals().
1992-10-14 23:10:56 +00:00
Joseph Arceneaux
125f517a5f * scroll.c (do_scrolling): Don't bcopy non-existant `nruns' or
`face_list' elements.  Do copy new `max_ascent' frame element.
1992-10-14 23:00:38 +00:00
Joseph Arceneaux
9f2279add7 * dispextern.h: New element of frame structure `max_ascent'.
Removed elements `nruns' and `face_list'.
	LINE_HEIGHT and LINE_WIDTH macros removed.
	New struct face with associated typedef FACE declared, along with
	accessing macros.
1992-10-14 23:00:18 +00:00
Joseph Arceneaux
9d46c2e6bb * xterm.h: Declaration of struct face removed. 1992-10-14 22:51:35 +00:00