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

10633 commits

Author SHA1 Message Date
Jim Blandy
4b93635c3e * editfns.c (Fcurrent_time_string): Change docstring to
indicate that we will probably add the timezone to the end,
        now that we have it available on many systems.
1992-09-13 12:21:15 +00:00
Jim Blandy
2bda628c55 * doc.c (Fsnarf_documentation): Signal an error if this is
called in a dumped Emacs.
1992-09-13 12:20:40 +00:00
Jim Blandy
afa4c0f3cd * callint.c (Fcall_interactively): Remove the 'K' interactive
code, in favor of 'e'; that's a better name.

	* callint.c (Fcall_interactively): Don't try to get the
	`enable-recursive-minibuffers' property from FUNCTION unless
	FUNCTION is actually a symbol; there are some cases where a key
	sequence is bound directly to a lambda form, and there's no reason
	to break these.
1992-09-13 12:19:42 +00:00
Jim Blandy
8aaa7c8a2e * alloc.c (mark_object): mark a symbol's name after marking its
value, function, and property list rather than before; this way,
	symbols' names are readable, giving us a chance to detect some
	kinds of heap corruption.
1992-09-13 12:14:54 +00:00
Jim Blandy
ec558adcce entered into RCS 1992-09-13 11:44:06 +00:00
Jim Blandy
b7cceaf12a *** empty log message *** 1992-09-13 10:54:38 +00:00
Richard M. Stallman
0bf2eed2fe (Ffile_name_directory, Ffile_name_nondirectory):
(Ffile_name_as_directory, Fdirectory_file_name, Fexpand_file_name):
Call find_file_handler.
(syms_of_fileio): Set up Qfile_name_directory, etc.
(Fcopy_file): Call find_file_handler for newname as well as for filename.
1992-09-12 08:53:08 +00:00
Richard M. Stallman
51172b6d06 (num_nonmacro_input_chars): New variable.
(read_char): Use num_nonmacro_input_chars to decide on auto-save & gc.
Increment it when appropriate.
(record_auto_save): Use num_nonmacro_input_chars.
1992-09-12 08:52:51 +00:00
Richard M. Stallman
e2b40c238e (init_sys_modes): Handle VDSUSP like V_DSUSP.
Use CDISABLE, not CDEL.
Turn off IEXTEN if it exists.
1992-09-12 07:46:41 +00:00
Richard M. Stallman
2102829e7d entered into RCS 1992-09-12 07:45:15 +00:00
Richard M. Stallman
ee8caabbad (internal_self_insert): Assume Fexpand_abbrev expanded
something if it incremented MODIFF.
1992-09-11 23:34:08 +00:00
Richard M. Stallman
f1bed6d8b8 (command_loop_1): Bind inhibit-quit to t when in Fsit_for. 1992-09-11 23:33:17 +00:00
Richard M. Stallman
95be70edc1 (Fx_track_pointer): Pass new args to read_char.
(Fx_select_region, Fx_horizontal_line): Likewise.
1992-09-11 23:31:02 +00:00
Richard M. Stallman
ce6e5d0b57 (Fmake_sparse_keymap, Fmake_keymap): New optional arg. Callers changed.
(keymap_table): No longer static.
1992-09-11 23:30:25 +00:00
Richard M. Stallman
248a26a710 (unexec): Allow sections in any order.
Adjust addresses of rdata section as well as data section.
1992-09-11 23:29:02 +00:00
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
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
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
07f4ea75c3 entered into RCS 1992-09-04 21:51:42 +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
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
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
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
b67f2ca56b (Fdo_auto_save): Always call record_auto_save. 1992-08-31 08:07:09 +00:00
Joseph Arceneaux
ac876a7913 entered into RCS 1992-08-30 05:01:59 +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
Jim Blandy
edc8ae07a5 * emacs.c: Incude "systty.h", not "systerm.h".
* emacs.c (Fkill_emacs): Doc fix.
	(syms_of_emacs): Doc fix for Vkill_emacs_hook.
1992-08-29 02:58:59 +00:00
Jim Blandy
648fa17da6 * dispnew.c: Incude "systty.h", not "systerm.h".
* dispnew.c (update_frame): Change the way we handle
	cursor_in_echo_area.  Firstly, ignore this if the frame we're
	updating doesn't have a minibuffer.  Secondly, don't handle the
	selected frame specially.  Thirdly, don't assume that the
	minibuffer is only one line high.  If cursor_in_echo_area < 0, put
	the cursor in the upper-left corner; if cursor_in_echo_area > 0,
	put it on the lowest non-empty line in the minibuffer window, or
	on the top line.

	* dispnew.c (direct_output_for_insert): Fail if
	cursor_in_echo_area is set; we don't want to do the typing there.
	(direct_output_for_insert): Same.
1992-08-29 02:55:05 +00:00
Jim Blandy
3f5fcd4734 Formatting change 1992-08-29 02:41:45 +00:00
Jim Blandy
d2729198c6 entered into RCS 1992-08-29 02:15:08 +00:00
Jim Blandy
bd3073920f *** empty log message *** 1992-08-29 02:14:58 +00:00
Richard M. Stallman
5d30536766 (syms_of_buffer): Made buffer-display-table,
buffer-field-list and buffer-undo-list allow any type of value.
1992-08-28 20:39:57 +00:00
Richard M. Stallman
aec1184c22 (Fappend): Doc fix. 1992-08-28 05:45:03 +00:00