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
ad3bb3d260 * ralloc.c (relocate_some_blocs): Handle BLOC == NIL_BLOC.
(free_bloc): This can now be simplified.

	* ralloc.c (r_alloc_sbrk): When we allocate new space for the
	malloc heap, zero it out even if we don't have any blocs in the
	free list.
1992-11-16 00:54:08 +00:00
Jim Blandy
b0310da46a * systty.h, process.c, buffer.h, callproc.c, sysdep.c, dired.c:
Added VMS changes from Roland Roberts.

	* process.c (read_process_output): Save, widen, insert the process
	output, and then restore the restriction if inserting text outside
	the visible region.

	* process.c (Fstart_process): Establish an unwind-protect to
	remove PROC from the process list if an error occurs while
	starting it.
	(start_process_unwind): New function to help with that.
	(create_process): There's no need to explicitly call
	remove_process if the fork fails; the record_unwind_protect in
	Fstart_process will take care of it.

	* process.c (wait_reading_process_input): Test the C preprocessor
	symbol "ultrix", not "__ultrix__" to see if we should ignore
	ENOMEM errors from select.

	* process.c (process_send_signal): On systems which have both
	the TIOCGETC and TCGETA ioctls, just use the former.

	* s/bsd4-2.h, s/bsd4-3.h: #define SIGNALS_VIA_CHARACTERS.
	* process.c (process_send_signal): Put all the code for sending
	signals via characters in a #ifdef SIGNALS_VIA_CHARACTERS.  Decide
	whether to use the Berkeley-style or SYSV-style ioctls by seeing
	which ioctl commands are #defined.

	* process.c (process_send_signal): Doc fix.
1992-11-16 00:53:26 +00:00
Jim Blandy
64a3a3c0b4 * minibuf.c (temp_echo_area_glyphs): Change reference to
unread_command_char to unread_command_event.

	* minibuf.c (read_minibuf): If get_minibuffer gives the
	new minibuffer a nil default directory, find another buffer with a
	better default directory and use that one's instead.
1992-11-16 00:46:19 +00:00
Jim Blandy
2705099422 * mem-limits.h [DATA_SEG_BITS] (EXCEEDS_LISP_PTR): Remember to
remove DATA_SEG_BITS from the pointer before testing if the
	pointer fits in VALBITS.
1992-11-16 00:45:34 +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
8f805655d5 * keyboard.c (unread_switch_frame): Don't declare this static.
* keyboard.c (Vlast_event_frame): Doc fix.

	* keyboard.c (read_char): Write composite events to the dribble
	file properly.

	* keyboard.c (init_keyboard): Initialize Vlast_event_frame to
	Qnil, rather than the selected frame.

	* keyboard.c (lispy_modifier_list): Added sanity check before
	indexing into modifier_symbols.

	* keyboard.c (add_command_key): When copying the contents of the
	old this_command_keys to new_keys, remember to multiply size by
	sizeof (Lisp_Object) to get the amount we really need to copy.

	Rename unread_command_char to unread_command_event; it has
	subtly different semantics now, and we should use
	`make-obsolete-variable' to warn people.
	* keyboard.c (unread_command_char): Rename.
	(command_loop_1, read_char, Finput_pending, Fdiscard_input,
	quit_throw_to_read_char, init_keyboard, syms_of_keyboard): Change
	references.

	* keyboard.c (read_key_sequence): Don't use
	save_excursion_{save,restore} to protect the caller against buffer
	switches; use Fset_buffer and Fcurrent_buffer; redisplay might
	change point, and we don't want to undo that.

	* keyboard.c (kbd_buffer_get_event): When checking a mouse
	movement for a frame switch, don't assume Vlast_event_frame
	contains a Lisp_Frame object.
1992-11-16 00:44:13 +00:00
Jim Blandy
c77d647ec8 * fileio.c (Fexpand_file_name): Don't fiddle with "/." if it's the
entire string.
1992-11-16 00:42:52 +00:00
Jim Blandy
b5c685f402 * dispnew.c [not MULTI_FRAME] (Fredraw_display): Pass the correct
number of arguments to mark_window_display_accurate.

	* dispnew.c (safe_bcopy): Use the right terminating condition in
	the loop which uses multiple bcopy calls to transfer a block to an
	overlapping higher block.
1992-11-16 00:42:24 +00:00
Jim Blandy
ef733244bb * commands.h (unread_command_event): Doc fix.
* commands.h (unread_switch_frame): Declare this extern.
1992-11-16 00:41:30 +00:00
Jim Blandy
a56118855c * buffer.c (Ferase_buffer): Doc fix.
* buffer.c (Fbury_buffer): Make this behave as in 18.59, although
that behavior is very odd - only remove the buffer from the
selected window if BUFFER was nil or omitted.
1992-11-16 00:33:17 +00:00
Jim Blandy
82d3f7435f * Makefile.in (doxemacs, dotemacs): Explicitly pass along the CC
variable in these rules, just as in the `doall' rule.
1992-11-16 00:32:56 +00:00
Jim Blandy
edaf4ff544 * s/sol2.h (LD_SWITCH_SYSTEM): Add -R option. 1992-11-16 00:31:04 +00:00
Jim Blandy
4968c1026f * s/bsd4-2.h, s/bsd4-3.h: #define SIGNALS_VIA_CHARACTERS.
* process.c (process_send_signal): Put all the code for sending
	signals via characters in a #ifdef SIGNALS_VIA_CHARACTERS.  Decide
	whether to use the Berkeley-style or SYSV-style ioctls by seeing
	which ioctl commands are #defined.
1992-11-16 00:30:10 +00:00
Jim Blandy
dc9d84de6a * m/pmax.h: Don't define SYSTEM_MALLOC; this was only necessary
for Ultrix version 4.1, and the current version is 4.3.
1992-11-16 00:27:51 +00:00
Jim Blandy
d074788d47 *** empty log message *** 1992-11-15 10:30:58 +00:00
Jim Blandy
ad85424916 * window.c (Fset_window_configuration): Protect call to
Fselect_frame with a #ifdef MULTI_FRAME.
	[not MULTI_FRAME] (Fcurrent_window_configuration): Don't bother
	setting the window configuration's selected_frame member.
1992-11-07 07:37:42 +00:00
Jim Blandy
92ce5d32cd * systime.h [USG] (EMACS_GET_TZ_OFFSET): Assign to *(offset), not
(offset).  Don't forget the while corresponding to the do.
	Include USG in the list of systems that have a tzname array.
1992-11-07 07:37:08 +00:00
Jim Blandy
2507ce20cd * sysdep.c (init_baud_rate) [HAVE_TERMIO, not HAVE_TCATTR]: Use
TCGETA, not TIOCGETP.
1992-11-07 07:36:36 +00:00
Jim Blandy
7d79e3b431 * process.c [SYSV]: Don't include <termios.h>, <termio.h>, or
<fcntl.h>.
	(process_send_signal): Don't try to send SIGTSTP
	unless SIGTSTP is defined.
1992-11-07 07:36:10 +00:00
Jim Blandy
33b1baf632 * minibuf.c (read_minibuf): Protect call to Fredirect_frame_focus
with a #ifdef MULTI_FRAME.
1992-11-07 07:35:49 +00:00
Jim Blandy
f1b76ec09b * lisp.h [not MULTI_FRAME]: Don't declare the Lisp_Frame tag. 1992-11-07 07:35:20 +00:00
Jim Blandy
8e4dfd5403 * keymap.c (get_keymap_1): Don't try to autoload OBJECT's function
unless the autoload form indicates that it's a keymap.
1992-11-07 07:34:58 +00:00
Jim Blandy
07d2b8de62 * keyboard.c (read_key_sequence): Removed the
replay_sequence_new_buffer label; replay_sequence should be here
	instead.

	* keyboard.c (Vlast_event_frame): Arrange for this to exist iff
	MULTI_FRAME is defined.
	[not MULTI_FRAME] (syms_of_keyboard): Don't DEFVAR Vlast_event_frame.
	[not MULTI_FRAME] (read_char): Don't try to set Vlast_event_frame.
	[not MULTI_FRAME] (kbd_buffer_store_event): Don't try to set
	Vlast_event_frame for quit characters.
	[not MULTI_FRAME] (kbd_buffer_get_event): Don't try to generate
	switch-frame events.
1992-11-07 07:07:16 +00:00
Jim Blandy
ee9ee63cfa * eval.c (Fautoload): Renamed fifth argument TYPE. Document the
fact that (eq TYPE 'keymap) means FUNCTION will become a keymap
	when loaded.
	(Fmacroexpand): Instead of assuming that every autoload
	form with a fifth element is a macro, actually check the fifth
	element against t and `macro', which are the only values which
	denote macroness.
1992-11-07 07:00:37 +00:00
Jim Blandy
2381d13338 * buffer.c (init_buffer): If PWD is accurate, use it instead of
calling getwd.
	#include <sys/types.h> and <sys/stat.h>, for the call to stat.
1992-11-07 07:00:04 +00:00
Jim Blandy
d0f7e1511e * alloc.c: #include "frame.h" unconditionally. frame.h does the
right thing when MULTI_FRAME isn't defined.
1992-11-07 06:59:38 +00:00
Jim Blandy
43a904c120 * Makefile.in: Rearrange dependencies to make sure that xmakefile
is built before we try to use it, even using a parallel make.
1992-11-07 06:59:14 +00:00
Jim Blandy
45c18993b7 Added `mips' command. 1992-11-07 05:29:26 +00:00
Richard M. Stallman
93ae3cfe70 (SYSTEM_TYPE): Use berkeley-unix. 1992-11-06 22:49:53 +00:00
Karl Berry
26a7e2e7a5 *** empty log message *** 1992-11-04 20:39:56 +00:00
Jim Blandy
353cfc1998 * fileio.c (Fmake_directory_internal): Remove extra paren before the
doc string in this function's DEFUN.
1992-11-03 02:24:05 +00:00
Richard M. Stallman
9bbe01fb87 (Fmake_directory_internal): Renamed from Fmake_directory.
Pass nil as third arg to handler.
Lisp function `make-directory' is now in files.el.
1992-10-31 23:27:11 +00:00
Jim Blandy
259c5af9d8 * xterm.h (x_screen_count, x_release, x_screen_height,
x_screen_height_mm, x_screen_width, x_screen_width_mm,
	x_save_under, x_screen_planes): Declare this as ints, to match
	their definitions in xterm.c.
1992-10-31 05:43:42 +00:00
Jim Blandy
7c5283e4d7 * xterm.c (x_convert_modifiers): Declare this to return an
unsigned int, not a Lisp_Object.  Remember that the quiescent
	value for part is Qnil, not zero, that x_mouse_x and x_mouse_y
	are ints, not Lisp_Objects, and that RESULT->x and RESULT->y are
	Lisp_Objects, not ints.
	(XTread_socket): Declare this to return int, not Lisp_Object.
	When calling construct_mouse_click on a non-scrollbar click, pass
	PART as Qnil, not zero.
	(x_calc_absolute_position): Remember that x_screen_width and
	x_screen_height are ints, not Lisp_Objects.
e
1992-10-31 05:43:00 +00:00
Jim Blandy
de02ad0bc7 * xselect.c (own_selection): selection_type is an X Atom value,
not a Lisp_Object.
	(x_selection_arrival): Declare this static, and add a forward
	declaration at the top of the page.
1992-10-31 05:42:28 +00:00
Jim Blandy
a6605e5cca * xfns.c (x_decode_color, Fx_color_display_p): x_screen_planes is
an int, not a Lisp_Object.
	(x_set_mouse_color): Give separate error messages for the
	different cursors we try to set.
	(Fx_geometry): Declare STRING to be a Lisp_Object.
	(Fx_create_frame): No need to use XSET to assign NAME to f->name;
	they're both Lisp_Objects.
	(adjust_scrollbars): Use XINT to access w->hscroll.
	(Fx_open_connection): x_screen_count, x_release, x_screen_height,
	x_screen_height_mm, x_screen_width, x_screen_width_mm,
	x_save_under, and x_screen_planes are integers, not Lisp_Objects.
	(syms_of_xfns): x_mouse_x, x_mouse_y, and mouse_buffer_offset are
	integers, not Lisp_Objects.
1992-10-31 05:41:49 +00:00
Jim Blandy
ded34426d5 * xdisp.c (redisplay): Use ! EQ to compare the old and new arrow
positions, not !=.
	(mark_window_display_accurate): Barf if WINDOW isn't a window.
	(display_string): Test buffer_defaults.ctl_arrow using NILP,
	instead of comparing it with zero.

	* xdisp.c (last_arrow_position, last_arrow_string): Make these
	static.

	* xdisp.c (message): Re-write this in terms of message1.
	(message1): Move code to clear out echo_area_glyphs and
	previous_echo_glyphs from message to here.
1992-10-31 05:41:20 +00:00
Jim Blandy
77511369af * window.h (make_window, window_from_coordinates,
Fwindow_dedicated_p): Add extern declarations for these.
1992-10-31 05:40:28 +00:00
Jim Blandy
7f4161e011 * window.c (Fwindow_width, Fset_window_hscroll): Use accessors on
w->width, w->left, w->hscroll, and arguments.
	(replace_window): Use EQ, not ==.
	(Fdelete_window): p->top and p->left are not C integers.
	(Fnext_window, Fprevious_window): Use EQ, not ==.
1992-10-31 05:39:49 +00:00
Jim Blandy
213861c758 * undo.c (record_insert): Use accessors on BEG and LENGTH.
(truncate_undo_list): Use NILP, not == Qnil.
1992-10-31 05:39:17 +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
Jim Blandy
f97388409e * process.c: (status_convert): Declare this to return a
Lisp_Object at the top of the file.
	(decode_status): Don't untag XCONS (tem)->cdr before storing it in
	tem; tem is a Lisp_Object, too.
	(process_send_signal): Declare this to be static void.  Don't
	return Qnil; nobody cares.
	(sigchld_handler): Use XFASTINT to manipulate p->infd.

	* process.c (pty_process): Variable deleted; it's no longer used.
	(syms_of_process): Don't initialize it.
1992-10-31 05:27:42 +00:00
Jim Blandy
8caf6c73d7 * print.c (print): Cast the frame's address to an integer before
passing it to sprintf to form the frame's printed form.
1992-10-31 05:27:05 +00:00
Jim Blandy
fe0a572112 * minibuf.c (read_minibuf): Use EQ to compare, not ==.
(temp_echo_area_glyphs): Use XFASTINT to assign to
	unread_command_char.
1992-10-31 05:26:29 +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
Jim Blandy
d20c2151e8 * lisp.h (Fdefault_boundp, make_float, Ffloat, Fnth, Fcopy_alist,
Fmake_byte_code, Fverify_visited_file_modtime, Ffile_exists_p,
	Fdirectory_file_name, Ffile_name_directory,
	expand_and_dir_to_file, Ffile_accessible_directory_p, Fbyte_code,
	Fundo_boundary, truncate_undo_list): Add extern declarations for
	these.

	* lisp.h (DEFVARLISP, DEFVARBOOL, DEFVARINT, DEFVARPERBUFFER):
	Removed these definitions; we should be using the versions whose
	names use underscores.
1992-10-31 05:25:29 +00:00
Jim Blandy
d09b20248d * keymap.c (Fdefine_key, Flookup_key, describe_map): Don't assume
that Flength returns an integer.

	* keymap.c: Deal with autoloaded keymaps properly.
        (get_keymap_1): Renamed to inner_get_keymap; made
	static.  New argument AUTOLOAD says to pursue autoloads if
	non-zero.
	(Fkeymapp, get_keymap, get_keyelt, Flookup_key): Ask get_keymap_1
	not to perform autoloads.
	(Fdefine_key): Ask get_keymap_1 to perform autoloads.  Since
	autoloading may GC, remember that we have to GCPRO our local
	variables now.
	(Fminor_mode_key_binding): Call get_keymap instead of calling
	get_keymap_1 with equivalent arguments.
1992-10-31 05:24:47 +00:00
Jim Blandy
5bb46ecf6c * keyboard.h (get_keymap_1, Fkeymapp, reorder_modifiers,
Fmouse_click_p, read_char): Add external declarations for these.
1992-10-31 05:24:03 +00:00
Jim Blandy
f4255cd148 * keyboard.c: #include dispextern.h.
(recursive_edit_unwind, command_loop, Fthis_command_keys): Declare
	these to return Lisp_Objects at the very top of the file, to avoid
	having them implicitly declared as ints.
	(echo_char): Use EQ to compare C to help_char.
	(read_char): Remember to apply XFASTINT to the return value of
	Flength before using it.  Apply XINT to c when clearing its high
	bits and meta bits, and when writing it to the dribble file.
	(read_char_menu_prompt): Use EQ to compare obj with
	menu_prompt_more_char and its control-character analog.
	(read_key_sequence): Declare PROMPT to be char *, not a
	Lisp_Object.  Use the appropriate accessors on keybuf when looking
	for ASCII function key sequences.

	* keyboard.c (echobuf): Make this 300 characters, not 100.  This
	isn't a real fix, but it's quick.

	* keyboard.c (read_char): When returning an unread switch-frame
	event, jump to reread_first to return it, rather than reread; this
	makes sure the event gets echoed (if appropriate) and goes into
	this_command_keys.

	* keyboard.c (read_key_sequence): If the key sequence starts with
	a mouse click, read the key sequence using the keymaps of the
	buffer clicked on, not the current buffer.

	* keyboard.c (unread_switch_frame): Make this static, to indicate
	that nobody outside of this file uses it.

	* keyboard.c (follow_key): Ask get_keymap_1 to perform autoloads.
	(read_key_sequence): When pursuing potential bindings in the
	function key map, ask get_keymap_1 to perform autoloading.  This
	is hardly important, but it's consistent.
1992-10-31 05:21:45 +00:00
Jim Blandy
bff19c8dd1 * frame.c: #include buffer.h. 1992-10-31 05:20:51 +00:00