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

10633 commits

Author SHA1 Message Date
Jim Blandy
fde3a52f24 * keymap.c (access_keymap): Remove code to notice bindings for
Qt.

	* keymap.c (Fwhere_is_internal): Don't forget to advance map to
	the next element when we find something that is neither a vector
	nor a cons.  Don't forget to QUIT in the appropriate places,
	either.
1992-09-28 02:20:23 +00:00
Richard M. Stallman
ab6ee1a0bc (single_keymap_panes): Handle vectors properly. 1992-09-25 23:23:17 +00:00
Joseph Arceneaux
9c79dd1b20 See ChangeLog 1992-09-24 01:29:22 +00:00
Jim Blandy
ff462f26fd * xmenu.c (single_keymap_panes): Comment out the code which
tries to handle a dense keymap's table; it uses keymap_table, and
	the rest of the code never uses the table contents anyway.
1992-09-23 12:48:12 +00:00
Jim Blandy
f5b79c1c36 * keymap.c (DENSE_TABLE_SIZE): Doc fix.
(keymap_table): Function removed; this function exists only to
	support an incorrect understanding of the format of keymaps.
	(access_keymap, store_in_keymap, Fcopy_keymap,
	Faccessible_keymaps): Correctly handle vectors at any point in the
	keymap; don't assume it must be at the front.
	(describe_map): Instead of calling describe_vector on the vector
	in the cadr of the keymap (if present) and then calling
	describe_alist to do the rest, just call describe_map_2.
	(describe_alist): Renamed to describe_map_2; call describe_vector
	when we encounter a vector in the list.

	* keymap.c (access_keymap, store_in_keymap): Clarify error message
	for non-ASCII characters.

	* keymap.c (access_keymap): Return the binding of Qt as the
	binding for all unbound characters.
1992-09-23 12:46:52 +00:00
Jim Blandy
230a4cbd80 * indent.c (Fmove_to_column): Pass the right number of arguments
to Findent_to.
1992-09-23 12:45:50 +00:00
Jim Blandy
63528b78dd * process.c [SIGCHLD && !BSD && !UNIPLUS && !HPUX]
(create_process): #if 0 out the code which sets the child's
	handler for SIGCHLD to sigchld; the code which gives sigchld its
	value has been diked out under these CPP symbols, so this should
	be diked out too.
1992-09-23 11:51:59 +00:00
Jim Blandy
483a2e101d * fileio.c (syms_of_fileio): Don't try to defsubr Sunix_sync
unless it's actually been defined - that is, if unix is #defined.
1992-09-23 03:51:58 +00:00
Jim Blandy
1593c2fe36 * sysdep.c (sys_suspend): Don't try to use "nice (- nice (0))" to
set the subshell's priority to normal; nice doesn't return a
	defined value on all systems.  Instead, since emacs_priority gives
	the priority that Emacs was nastied to, we can use it to reset the
	priority in a straightforward way.
	[BSD4_1], [USG], [VMS] (setpriority): Remove dummy and
	compatibility definitions of setpriority.
1992-09-23 03:51:13 +00:00
Jim Blandy
5aa7f46a74 * emacs.c (emacs_priority): Doc fix.
(main): Use nice, not setpriority; we just need a
	simple, portable call to nice here.
1992-09-23 03:46:12 +00:00
Jim Blandy
4f0b9d4994 * callproc.c (child_setup): Don't use setpriority; we just need a
simple, portable call to nice here.
1992-09-23 03:43:10 +00:00
Jim Blandy
41ab0754d3 * xrdb.c (x_get_resource): Cast the value being assigned to
ret_value->addr, rather than ret_value->addr itself; only GCC
	allows you to cast lvalues.
1992-09-22 06:43:04 +00:00
Jim Blandy
ba410f40e9 * eval.c (unbind_catch): Do the long-jump here. Take a VALUE
argument, which specifies the value to return to the catch, or the
	data to give to the condition handler.  Renamed to
	unwind_to_catch, to reflect new role.
	(Fsignal, Fthrow): Removed code to set catch tag value and do the
	long-jump; this is taken care of by unwind_to_catch.
1992-09-22 06:23:30 +00:00
Jim Blandy
5d6533f186 Thu Sep 17 15:51:18 1992 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* minibuf.c (get_minibuffer): Enable undo in minibuffers.
1992-09-22 05:19:09 +00:00
Jim Blandy
78ca380c45 * lisp.h (struct handler): Remove the poll_suppress_count member
of this structure; it is always equal to the poll_suppress_count
	of its catchtag structure.  The non-local exit code in eval.c is
	difficult enough to understand as it is; needless duplication
	doesn't help.

	* lisp.h (struct specbinding, struct handler): More documentation.
1992-09-22 05:18:34 +00:00
Jim Blandy
82da7701c8 * eval.c (Fcondition_case): Rearranged for clarity. Don't worry
about setting h.poll_suppress_count; it's guaranteed to be the
	same as c.poll_suppress_count.
	(internal_condition_case): Don't worry about
	h.poll_suppress_count.
	(Fsignal): Use h->tag->poll_suppress_count instead of
	h->poll_suppress_count.

	* eval.c (Fsignal): It's okay for the debugger to return to the
	caller if the caller was signalling a quit.

	* eval.c (unbind_catch): Restore the polling suppression count
	here, instead of in Fsignal and Fthrow.
	(Fthrow, Fsignal): Don't restore the polling suppression count here.

	* eval.c (struct catchtag): More documentation.

	* eval.c (entering_debugger): Variable renamed
	when_entered_debugger, and is now a timestamp based on
	num_nonmacro_input_chars.
	(init_eval): Initialize when_entered_debugger, not
	entering_debugger.
	(call_debugger): Set when_entered_debugger to the current value of
	num_nonmacro_input_chars.
	(find_handler_clause): Don't call debugger unless
	num_nonmacro_input_chars is greater than when_entered_debugger;
	that way, we won't call the debugger unless the user has had a
	chance to take control.
	(Fbacktrace): Don't clear entering_debugger here.
1992-09-22 05:17:48 +00:00
Jim Blandy
b44895bc92 * buffer.c (Fget_buffer_create): Doc fix. 1992-09-22 05:16:47 +00:00
Jim Blandy
20aa96aad8 Doc fix. 1992-09-22 04:32:26 +00:00
Jim Blandy
088880f13a * fns.c (Fy_or_n_p): After testing for a QUIT, clear Vquit_flag.
Otherwise, if Fy_or_n_p is called while Vinhibit_quit is true and
	the user presses C-g, this function goes into an infinite loop.
1992-09-22 04:29:25 +00:00
Jim Blandy
7c3c72eca1 * dispnew.c (get_display_line): Don't abort if the frame is
invisible; since unmap events are handled at the interrupt level,
	a screen may become invisible at any time.
1992-09-22 04:29:12 +00:00
Jim Blandy
0ca96cef67 * keyboard.h (num_nonmacro_input_chars): Added extern declaration
for this.
1992-09-22 04:28:52 +00:00
Joseph Arceneaux
1d1d7ba08e comment changes 1992-09-21 23:57:58 +00:00
Richard M. Stallman
35a4d1439f entered into RCS 1992-09-21 08:28:43 +00:00
Richard M. Stallman
de946e5aac (Faccept_process_output): Initialize useconds. 1992-09-20 21:06:42 +00:00
Richard M. Stallman
c21d3ee2cf entered into RCS 1992-09-20 20:58:22 +00:00
Richard M. Stallman
09121adc4e Don't include sys/dir.h.
(Fverify_visited_file_modtime):
Pass buffer itself to handler, if have handler.
(Fwrite_region): GCPRO around Fexpand_file_name, Ffie_name_directory.
(Fread_file_name_internal): GCPRO around file name manip.
(Ffile_writable_p, Ffile_readable_p): Use abspath, not filename,
(Ffile_executable_p, Ffile_exists_p): to run the handler.
(Fset_file_modes, Ffile_directory_p, Ffile_modes): Likewise.
(Ffile_newer_than_file_p): GCPRO around expand_and_dir_to_file.
1992-09-20 20:17:16 +00:00
Richard M. Stallman
69b57d353e Update copyright year. 1992-09-19 21:24:56 +00:00
Richard M. Stallman
3ed991aac1 [VMS]: Include string.h, rms.h, rmsdef.h.
[VMS] (Ffile_version_limit): New function.
1992-09-19 21:24:30 +00:00
Richard M. Stallman
88191e3635 (sys_suspend): Read EMACS_PARENT_PID envvar for parent. 1992-09-19 20:41:32 +00:00
Richard M. Stallman
785cd37f2b (mark_object): Save last 500 values of objptr.
Check for clobberage of ptr, when marking a vector.
1992-09-19 17:52:29 +00:00
Richard M. Stallman
37bef2308f (scan_lists): When searching back for comment:
if comment-end is 2 chars, assume it does end a comment.
Otherwise, scan back to previous comment-end to see if there's
a comment starter between.  Also record whether the string quotes
between the start and the end are paired and uniform.
If so, skip to comment starter.  If not, scan from start of
defun to find comment starter if any.
(find_defun_start): New function.
1992-09-19 17:52:07 +00:00
Joseph Arceneaux
90ba40fc70 entered into RCS 1992-09-19 01:11:21 +00:00
Richard M. Stallman
1a8c3f100a (get_keyelt): Skip menu help string after menu item name. 1992-09-18 07:29:36 +00:00
Joseph Arceneaux
a50699fdb4 Initial revision 1992-09-17 02:26:53 +00:00
Karl Berry
bc78d34823 Initial revision 1992-09-16 14:52:41 +00:00
Karl Berry
b1fe2cfc2b Initial revision 1992-09-16 12:19:41 +00:00
Richard M. Stallman
3005da00b9 (main): Use X menu code if HAVE_X_WINDOWS and not NO_X_MENU.
Eliminate HIGHPRI as compilation option.
(emacs_priority): New C variable, also Lisp variable.
(main): Set the priority iff emacs_priority is nonzero.
1992-09-14 22:11:23 +00:00
Richard M. Stallman
72cea080f2 (read_char_menu_prompt): Use X menu code if HAVE_X_WINDOWS and not NO_X_MENU. 1992-09-14 22:10:55 +00:00
Richard M. Stallman
2c44309ae2 entered into RCS 1992-09-14 22:08:02 +00:00
Jim Blandy
7b89707ca3 entered into RCS 1992-09-13 13:08:15 +00:00
Jim Blandy
b0342f1711 * xterm.c (x_wm_set_size_hint): Set the base_width and base_height
members of size_hints, if they're available (X11R4 and after);
	otherwise, approximate the right thing, by using min_width and
	min_height as the base size.

	* xterm.c (x_catch_errors): Don't forget to initialize
	x_caught_error_message to the null string, so x_check_errors can
	tell when an error has occurred.
1992-09-13 12:54:09 +00:00
Jim Blandy
dfc35f5fca * xrdb.c: Don't include <X11/Xos.h>. Under R4, it stupidly
insists on defining SIGCHLD, even if it already has a definition.
	(file_p): Use the constant 4 instead of R_OK; empirically, the
	number is more portable than the symbol if you count the #include
	hair you have to go through to get R_OK defined.  Ffile_readable_p
	does this too.

	* xrdb.c (getuid): Declare this to return short.
1992-09-13 12:48:38 +00:00
Jim Blandy
252500313b Declare x_implicitly_set_name to be void. 1992-09-13 12:46:45 +00:00
Jim Blandy
0956dd969c * xdisp.c (display_mode_line): If the only other frames are
minibuffer frames, don't name the frame after the in the selected
	window.  We can use Fnext_frame to do this test easily.
1992-09-13 12:45:33 +00:00
Jim Blandy
83762ba49a * window.c (minibuffer_window): Accept an optional FRAME argument;
if specified, return the minibuffer used by that frame.

	* window.c (Fset_window_configuration): Don't signal an error
	if the frame size saved in the window configuration doesn't
	match the frame's current size; instead, temporarily resize
	the frame while installing the window configuration.  This is
	important because using the minibuffer saves and restores the
	current window configuration, and you don't want to signal an
	error just because the user resized the frame while using the
	minibuffer.
1992-09-13 12:38:21 +00:00
Jim Blandy
4fbc0284b1 * unexmips.c (mark_x): Declare this as static void at the top of
the file and at the function definition.
1992-09-13 12:37:43 +00:00
Jim Blandy
0abf54e322 Fix typo. 1992-09-13 12:35:06 +00:00
Jim Blandy
4726a9f1c0 * keymap.c (describe_buffer_bindings): Adjust key_heading to match
the format used by describe_map_tree.  Also, don't reprint the
	"key    binding" header above the global bindings if we've already
	printed it for the local bindings; it's clear enough that the
	columns mean the same thing as above.

	* keymap.c (describe_buffer_bindings): Declare buf and bufend...

	* keymap.c (describe_buffer_bindings): Set the current buffer to
	descbuf before calling current_minor_maps; that function's value
	depends on the values of buffer-local variables.  Don't set the
	current buffer to Vstandard_output until afterwards.

	* keymap.c (describe_buffer_bindings): If
	Vkeyboard_translate_table is in effect, describe its effects.
1992-09-13 12:33:23 +00:00
Jim Blandy
2ce30ea2e6 * keyboard.c (kbd_buffer_get_event): When performing the
FRAME_FOCUS_FRAME redirection, don't modify the frame field of
	the event; that fatally corrupts mouse click events.  Instead,
	just perform the redirection on the value assigned to
	Vlast_event_frame.

	* keyboard.c (input_available_signal): Declare this to return
	SIGTYPE.
1992-09-13 12:31:15 +00:00
Jim Blandy
d06a8a56c2 * frame.c (choose_minibuf_frame): abort if the selected frame has
nil in its minibuffer_window slot; this shouldn't happen any more.
1992-09-13 12:29:01 +00:00