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

1060 commits

Author SHA1 Message Date
Richard M. Stallman
ac9a31be41 (Fy_or_n_p): Pass new args to read_char. 1992-09-11 23:28:03 +00:00
Richard M. Stallman
974e187b41 (Fread_char): Pass new args to read_char. 1992-09-11 23:27:12 +00:00
Richard M. Stallman
c9d59fc21a *** empty log message *** 1992-09-11 09:04:24 +00:00
Richard M. Stallman
7adc58e517 *** empty log message *** 1992-09-11 07:05:14 +00:00
Roland McGrath
7931124643 entered into RCS 1992-09-10 22:59:11 +00:00
Richard M. Stallman
34e62ca7f6 entered into RCS 1992-09-10 07:49:02 +00:00
Jim Blandy
16a5c72935 * ralloc.c (r_re_alloc): Instead of allocating a new bloc at the
end of the heap, copying the data to it, and then freeing the
	original bloc, just expand the original block.  This saves a copy
	and a call to sbrk, and also removes the large spike in memory
	allocation that would occur when resizing large buffers.  And it's
	less code.
1992-09-09 00:05:42 +00:00
Richard M. Stallman
6cf420725b *** empty log message *** 1992-09-05 23:19:22 +00:00
Richard M. Stallman
e5d4f4dc54 (scan_lists): Improve smarts for backwards scan of comments.
Don't modify comstyle inside that loop.
If string quotes don't match up, don't take value from OFROM;
instead, parse forward using scan_sexps_forward.
(scan_sexps_forward): Return value via a pointer passed in.
New element in state contains char addr of last comment-starter seen.
(Fparse_partial_sexp): Change call to scan_sexps_forward.
1992-09-05 05:34:24 +00:00
Richard M. Stallman
a4d4c8197b (Fcall_interactively): For `K', use last_nonmenu_event.
Make `e' alias for `K'.
1992-09-05 00:10:28 +00:00
Richard M. Stallman
7d6de00206 (last_nonmenu_event): New var.
(syms_of_keyboard): New Lisp var.
(read_key_sequence): Use that instead of prev_event.

(read_char): Call read_char_menu_prompt here.
Accept 4 new args to pass to it.  Include them in recursive call.
Don't delay before starting echo if prev_event was a mouse event.
Test for eof in batch mode now understands C is a Lisp_Object.
(read_key_sequence): Don't call it here; always call read_char.
Don't change last_event_buffer after a mouse menu input.
(read_char_menu_prompt): Arg PROMPT deleted.
Return nil if nothing to do.

(read_key_sequence): Keep track of prev_event.
Pass new proper args to read_char_menu_prompt.
(read_char_menu_prompt): New arg prev_event.  Use Fx_popup_menu.
Handle any number of keymaps, not just LOCAL and GLOBAL.
Invert meaning of arg PROMPT.  Test of menu_prompting was backwards.

(keymap_table): No longer static.
1992-09-05 00:09:33 +00:00
Richard M. Stallman
088831f649 (xmenu_show): If no panes, just return.
(Fx_popup_menu): Treat coords relative to spec'd window.
(single_keymap_panes): New function; contains guts of keymap_panes.
If a command binding for submenu has a prompt string starting with @,
make a separate pane for it at this level.

(keymap_panes): New function.
(Fx_popup_menu): Accept keymap or list of keymaps as MENU argument.
Accept mouse button event as POSITION argument.
1992-09-05 00:08:07 +00:00
Richard M. Stallman
c9c5649217 *** empty log message *** 1992-09-04 23:38:45 +00:00
Richard M. Stallman
07f4ea75c3 entered into RCS 1992-09-04 21:51:42 +00:00
Roland McGrath
16c15321db entered into RCS 1992-09-04 21:49:15 +00:00
Richard M. Stallman
2c91c85ce0 *** empty log message *** 1992-09-04 21:28:29 +00:00
Jim Blandy
d872b7483c * 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-04 11:17:33 +00:00
Richard M. Stallman
fbc270e73a entered into RCS 1992-09-04 07:35:10 +00:00
Richard M. Stallman
847f73fdb8 entered into RCS 1992-09-04 05:21:09 +00:00
Richard M. Stallman
33143604ea (__do_global_dtors): New dummy function. 1992-09-03 00:23:47 +00:00
Richard M. Stallman
a306d6f16f entered into RCS 1992-09-02 23:42:24 +00:00
Roland McGrath
15d1a8dab6 *** empty log message *** 1992-09-02 23:15:36 +00:00
Roland McGrath
a5f8804e5d Doc fix for file-name-handler-alist. 1992-09-02 21:41:14 +00:00
Richard M. Stallman
c83a706456 (__main): New dummy function.
(__do_global_ctors, __do_global_ctors_aux): New dummy fns.
(__CTOR_LIST__, __DTOR_LIST__): New dummy variables.
1992-09-02 04:05:47 +00:00
Jim Blandy
cac293708c *** empty log message *** 1992-09-02 02:46:03 +00:00
Richard M. Stallman
910476efc9 entered into RCS 1992-09-01 20:07:45 +00:00
Richard M. Stallman
c382a89aa5 entered into RCS 1992-09-01 19:05:09 +00:00
Richard M. Stallman
2bba782ce5 *** empty log message *** 1992-09-01 00:26:58 +00:00
Roland McGrath
450a90e2ea *** empty log message *** 1992-08-31 23:22:15 +00:00
Richard M. Stallman
6ec3899e16 *** empty log message *** 1992-08-31 21:42:28 +00:00
Richard M. Stallman
616ed245e9 *** empty log message *** 1992-08-31 20:22:03 +00:00
Richard M. Stallman
e4790daa39 *** empty log message *** 1992-08-31 18:25:44 +00:00
Richard M. Stallman
efd241cc2d (__do_global_ctors, __do_global_ctors_aux): New dummy fns.
(__CTOR_LIST__, __DTOR_LIST__): New dummy variables.
1992-08-31 18:00:11 +00:00
Richard M. Stallman
6b2154dedb *** empty log message *** 1992-08-31 08:32:48 +00:00
Richard M. Stallman
b67f2ca56b (Fdo_auto_save): Always call record_auto_save. 1992-08-31 08:07:09 +00:00
Richard M. Stallman
e7691e9c5d *** empty log message *** 1992-08-31 06:47:03 +00:00
Richard M. Stallman
6e3ccc70d3 *** empty log message *** 1992-08-31 05:54:58 +00:00
Richard M. Stallman
8b34e79d82 *** empty log message *** 1992-08-31 05:06:54 +00:00
Joseph Arceneaux
ac876a7913 entered into RCS 1992-08-30 05:01:59 +00:00
Richard M. Stallman
1635fcdddd *** empty log message *** 1992-08-29 08:27:31 +00:00
Jim Blandy
fcb9ffc8ae * xselect.c: Use the FRAME_X_WINDOW macro, for readability. 1992-08-29 03:33:12 +00:00
Jim Blandy
c118dd0617 * xterm.c (x_make_frame_invisible): Don't forget to check the
return value of XWithdrawWindow; it could indicate that the window
	wasn't successfully redrawn.

        * xterm.c (x_make_frame_invisible): Use XWithdrawWindow when
	available [HAVE_X11R4]; send the UnmapNotify event when
	appropriate [HAVE_X11]; just unmap the window if that's all that's
	needed [not HAVE_X11].

	* xterm.c (x_set_text_property): Removed; it's only called from
	one place.  Who wants *another* layer of indirection?

	* xterm.c: Use the FRAME_X_WINDOW macro, for readability.

	* xterm.c (x_death_handler): Renamed to x_connection_closed.
	(x_term_init): Use x_connection_closed as the SIGPIPE handler.

	* xterm.c (acceptable_x_error_p, x_handler_error_gracefully,
	x_error_handler): Removed; you can't catch X errors this way,
	since you can't perform X operations from within an X error
	handler, and even though we call error, we're still within an X
	error handler.
	(x_error_quitter, x_error_catcher): New functions, for panicking
	on and catching X protocol errors.
	(x_caught_error_message): Buffer for caught X errors.
	(x_catch_errors, x_check_errors, x_uncatch_errors): New functions
	for catching errors.
	(x_term_init): Set the error handler to x_error_quitter, rather
	than x_error_handler.

	* xterm.c (x_death_handler): Renamed to x_connection_closed.
	(x_term_init): Use x_connection_closed as the SIGPIPE handler.

	* xterm.c (acceptable_x_error_p, x_handler_error_gracefully,
	x_error_handler): Removed; you can't catch X errors this way,
	since you can't perform X operations from within an X error
	handler, and even though we call error, we're still within an X
	error handler.
	(x_error_quitter, x_error_catcher): New functions, for panicking
	on and catching X protocol errors.
	(x_caught_error_message): Buffer for caught X errors.
	(x_catch_errors, x_check_errors, x_uncatch_errors): New functions
	for catching errors.
	(x_term_init): Set the error handler to x_error_quitter, rather
	than x_error_handler.
1992-08-29 03:31:07 +00:00
Jim Blandy
b631f17789 * xrdb.c (get_user_db): Use XResourceManagerString when available
[HAVE_X11R4].
1992-08-29 03:28:52 +00:00
Jim Blandy
fe24a618be * xfns.c (x_icon): Don't call x_wm_set_icon_positions if the user
hasn't specified the icon position.  Let the window manager put
	the icon where it likes.

	* xfns.c (x_set_name): Use XSetWM{Name,IconName} when available
	[HAVE_X11R4], or XSetIconName and XStoreName otherwise.

	* xfns.c: Use the FRAME_X_WINDOW for readability.

	* xfns.c (x_set_mouse_color): Use x_catch_errors, x_check_errors,
	and x_uncatch errors to avoid crashing if the user selects an
	odd cursor.

	* xfns.c (select_visual): Use XVisualIDFromVisual when available
	[HAVE_X11R4].
1992-08-29 03:25:25 +00:00
Jim Blandy
05c2896ac5 * window.c (coordinates_in_window): Do not assume that all
one-line windows are the minibuffer, or that all minibuffers are
	one line high.  Use MINI_WINDOW_P.

	* window.c (change_window_height): If the size of the window will
	shrink below the minimum, this code would only try to delete it if
	it had a parent.  Well, even if the window doesn't have a parent,
	you want Fdelete_window to signal an error, since you're trying to
	resize one of the undeleteable windows into nothingness.  So call
	Fdelete_window even if the window doesn't have a parent.

	* window.c (MINSIZE): Add kludge so that the minibuffer is always
	allowed to shrink to one line in height.
	(MINSIZE, CURBEG, CURSIZE): Change these so that their argument
	are always Lisp_Objects, not struct window *'s.
	(change_window_height): Changed accordingly.
1992-08-29 03:14:44 +00:00
Jim Blandy
e04a4e0dcf * sysdep.c (init_baud_rate): Re-arranged order of conditionals -
test TERMIOS before TERMIO; when two options might both be
	defined, test the most recent first, so that the most recent
	functions get used.

	* sysdep.c [HAVE_TERMIO] (init_baud_rate): Don't use tcgetattr
	unless HAVE_TCATTR is defined.  Only very rarely do termio systems
	have the tc{get,set}attr macros.

	* sysdep.c: #include "systty.h", not "systerm.h".
1992-08-29 03:07:24 +00:00
Jim Blandy
36ebaafa99 * process.c: Include "systty.h", not "systerm.h". 1992-08-29 03:05:43 +00:00
Jim Blandy
6ef5b54f58 * keyboard.c: Include "systty.h", not "systerm.h". 1992-08-29 03:04:31 +00:00
Jim Blandy
99dc4745e6 * fns.c (Fyes_or_no_p): Call Fsleep_for with the appropriate
number of arguments.
1992-08-29 03:03:15 +00:00
Jim Blandy
2fd3c56b6c * fileio.c (Fdo_auto_save): Call Fsleep_for with the appropriate
number of arguments.
1992-08-29 03:00:41 +00:00