bpt/emacs.git
31 years ago(num_nonmacro_input_chars): New variable.
Richard M. Stallman [Sat, 12 Sep 1992 08:52:51 +0000 (08:52 +0000)]
(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.

31 years ago*** empty log message ***
Richard M. Stallman [Sat, 12 Sep 1992 08:44:18 +0000 (08:44 +0000)]
*** empty log message ***

31 years ago(init_sys_modes): Handle VDSUSP like V_DSUSP.
Richard M. Stallman [Sat, 12 Sep 1992 07:46:41 +0000 (07:46 +0000)]
(init_sys_modes): Handle VDSUSP like V_DSUSP.
Use CDISABLE, not CDEL.
Turn off IEXTEN if it exists.

31 years agoentered into RCS
Richard M. Stallman [Sat, 12 Sep 1992 07:45:15 +0000 (07:45 +0000)]
entered into RCS

31 years ago*** empty log message ***
Richard M. Stallman [Sat, 12 Sep 1992 01:37:46 +0000 (01:37 +0000)]
*** empty log message ***

31 years ago*** empty log message ***
Jim Blandy [Sat, 12 Sep 1992 01:20:58 +0000 (01:20 +0000)]
*** empty log message ***

31 years ago(internal_self_insert): Assume Fexpand_abbrev expanded
Richard M. Stallman [Fri, 11 Sep 1992 23:34:08 +0000 (23:34 +0000)]
(internal_self_insert): Assume Fexpand_abbrev expanded
something if it incremented MODIFF.

31 years ago(command_loop_1): Bind inhibit-quit to t when in Fsit_for.
Richard M. Stallman [Fri, 11 Sep 1992 23:33:17 +0000 (23:33 +0000)]
(command_loop_1): Bind inhibit-quit to t when in Fsit_for.

31 years ago(Fx_track_pointer): Pass new args to read_char.
Richard M. Stallman [Fri, 11 Sep 1992 23:31:02 +0000 (23:31 +0000)]
(Fx_track_pointer): Pass new args to read_char.
(Fx_select_region, Fx_horizontal_line): Likewise.

31 years ago(Fmake_sparse_keymap, Fmake_keymap): New optional arg. Callers changed.
Richard M. Stallman [Fri, 11 Sep 1992 23:30:25 +0000 (23:30 +0000)]
(Fmake_sparse_keymap, Fmake_keymap): New optional arg.  Callers changed.
(keymap_table): No longer static.

31 years ago(unexec): Allow sections in any order.
Richard M. Stallman [Fri, 11 Sep 1992 23:29:02 +0000 (23:29 +0000)]
(unexec): Allow sections in any order.
Adjust addresses of rdata section as well as data section.

31 years ago(Fy_or_n_p): Pass new args to read_char.
Richard M. Stallman [Fri, 11 Sep 1992 23:28:03 +0000 (23:28 +0000)]
(Fy_or_n_p): Pass new args to read_char.

31 years ago(Fread_char): Pass new args to read_char.
Richard M. Stallman [Fri, 11 Sep 1992 23:27:12 +0000 (23:27 +0000)]
(Fread_char): Pass new args to read_char.

31 years ago*** empty log message ***
Richard M. Stallman [Fri, 11 Sep 1992 09:04:24 +0000 (09:04 +0000)]
*** empty log message ***

31 years ago*** empty log message ***
Richard M. Stallman [Fri, 11 Sep 1992 07:05:14 +0000 (07:05 +0000)]
*** empty log message ***

31 years agoentered into RCS
Roland McGrath [Thu, 10 Sep 1992 22:59:11 +0000 (22:59 +0000)]
entered into RCS

31 years agoentered into RCS
Richard M. Stallman [Thu, 10 Sep 1992 07:49:02 +0000 (07:49 +0000)]
entered into RCS

31 years ago* ralloc.c (r_re_alloc): Instead of allocating a new bloc at the
Jim Blandy [Wed, 9 Sep 1992 00:05:42 +0000 (00:05 +0000)]
* 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.

31 years ago*** empty log message ***
Richard M. Stallman [Sat, 5 Sep 1992 23:19:22 +0000 (23:19 +0000)]
*** empty log message ***

31 years ago(scan_lists): Improve smarts for backwards scan of comments.
Richard M. Stallman [Sat, 5 Sep 1992 05:34:24 +0000 (05:34 +0000)]
(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.

31 years ago(Fcall_interactively): For `K', use last_nonmenu_event.
Richard M. Stallman [Sat, 5 Sep 1992 00:10:28 +0000 (00:10 +0000)]
(Fcall_interactively): For `K', use last_nonmenu_event.
 Make `e' alias for `K'.

31 years ago(last_nonmenu_event): New var.
Richard M. Stallman [Sat, 5 Sep 1992 00:09:33 +0000 (00:09 +0000)]
(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.

31 years ago(xmenu_show): If no panes, just return.
Richard M. Stallman [Sat, 5 Sep 1992 00:08:07 +0000 (00:08 +0000)]
(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.

31 years ago*** empty log message ***
Richard M. Stallman [Fri, 4 Sep 1992 23:38:45 +0000 (23:38 +0000)]
*** empty log message ***

31 years agoentered into RCS
Richard M. Stallman [Fri, 4 Sep 1992 21:51:42 +0000 (21:51 +0000)]
entered into RCS

31 years agoentered into RCS
Roland McGrath [Fri, 4 Sep 1992 21:49:15 +0000 (21:49 +0000)]
entered into RCS

31 years ago*** empty log message ***
Richard M. Stallman [Fri, 4 Sep 1992 21:28:29 +0000 (21:28 +0000)]
*** empty log message ***

31 years ago* xterm.c (x_catch_errors): Don't forget to initialize
Jim Blandy [Fri, 4 Sep 1992 11:17:33 +0000 (11:17 +0000)]
* 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.

31 years agoentered into RCS
Richard M. Stallman [Fri, 4 Sep 1992 07:35:10 +0000 (07:35 +0000)]
entered into RCS

31 years agoentered into RCS
Richard M. Stallman [Fri, 4 Sep 1992 05:21:09 +0000 (05:21 +0000)]
entered into RCS

31 years ago(__do_global_dtors): New dummy function.
Richard M. Stallman [Thu, 3 Sep 1992 00:23:47 +0000 (00:23 +0000)]
(__do_global_dtors): New dummy function.

31 years agoentered into RCS
Richard M. Stallman [Wed, 2 Sep 1992 23:42:24 +0000 (23:42 +0000)]
entered into RCS

31 years ago*** empty log message ***
Roland McGrath [Wed, 2 Sep 1992 23:15:36 +0000 (23:15 +0000)]
*** empty log message ***

31 years agoDoc fix for file-name-handler-alist.
Roland McGrath [Wed, 2 Sep 1992 21:41:14 +0000 (21:41 +0000)]
Doc fix for file-name-handler-alist.

31 years ago(__main): New dummy function.
Richard M. Stallman [Wed, 2 Sep 1992 04:05:47 +0000 (04:05 +0000)]
(__main): New dummy function.
(__do_global_ctors, __do_global_ctors_aux): New dummy fns.
(__CTOR_LIST__, __DTOR_LIST__): New dummy variables.

31 years ago*** empty log message ***
Jim Blandy [Wed, 2 Sep 1992 02:46:03 +0000 (02:46 +0000)]
*** empty log message ***

31 years agoentered into RCS
Richard M. Stallman [Tue, 1 Sep 1992 20:07:45 +0000 (20:07 +0000)]
entered into RCS

31 years agoentered into RCS
Richard M. Stallman [Tue, 1 Sep 1992 19:05:09 +0000 (19:05 +0000)]
entered into RCS

31 years ago*** empty log message ***
Richard M. Stallman [Tue, 1 Sep 1992 00:26:58 +0000 (00:26 +0000)]
*** empty log message ***

31 years ago*** empty log message ***
Roland McGrath [Mon, 31 Aug 1992 23:22:15 +0000 (23:22 +0000)]
*** empty log message ***

31 years ago*** empty log message ***
Richard M. Stallman [Mon, 31 Aug 1992 21:42:28 +0000 (21:42 +0000)]
*** empty log message ***

31 years ago*** empty log message ***
Richard M. Stallman [Mon, 31 Aug 1992 20:22:03 +0000 (20:22 +0000)]
*** empty log message ***

31 years ago*** empty log message ***
Richard M. Stallman [Mon, 31 Aug 1992 18:25:44 +0000 (18:25 +0000)]
*** empty log message ***

31 years ago(__do_global_ctors, __do_global_ctors_aux): New dummy fns.
Richard M. Stallman [Mon, 31 Aug 1992 18:00:11 +0000 (18:00 +0000)]
(__do_global_ctors, __do_global_ctors_aux): New dummy fns.
(__CTOR_LIST__, __DTOR_LIST__): New dummy variables.

31 years ago*** empty log message ***
Richard M. Stallman [Mon, 31 Aug 1992 08:32:48 +0000 (08:32 +0000)]
*** empty log message ***

31 years ago(Fdo_auto_save): Always call record_auto_save.
Richard M. Stallman [Mon, 31 Aug 1992 08:07:09 +0000 (08:07 +0000)]
(Fdo_auto_save): Always call record_auto_save.

31 years ago*** empty log message ***
Richard M. Stallman [Mon, 31 Aug 1992 06:47:03 +0000 (06:47 +0000)]
*** empty log message ***

31 years ago*** empty log message ***
Richard M. Stallman [Mon, 31 Aug 1992 05:54:58 +0000 (05:54 +0000)]
*** empty log message ***

31 years ago*** empty log message ***
Richard M. Stallman [Mon, 31 Aug 1992 05:06:54 +0000 (05:06 +0000)]
*** empty log message ***

31 years agoentered into RCS
Joseph Arceneaux [Sun, 30 Aug 1992 05:01:59 +0000 (05:01 +0000)]
entered into RCS

31 years ago*** empty log message ***
Richard M. Stallman [Sat, 29 Aug 1992 08:27:31 +0000 (08:27 +0000)]
*** empty log message ***

31 years ago* xselect.c: Use the FRAME_X_WINDOW macro, for readability.
Jim Blandy [Sat, 29 Aug 1992 03:33:12 +0000 (03:33 +0000)]
* xselect.c: Use the FRAME_X_WINDOW macro, for readability.

31 years ago* xterm.c (x_make_frame_invisible): Don't forget to check the
Jim Blandy [Sat, 29 Aug 1992 03:31:07 +0000 (03:31 +0000)]
* 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.

31 years ago* xrdb.c (get_user_db): Use XResourceManagerString when available
Jim Blandy [Sat, 29 Aug 1992 03:28:52 +0000 (03:28 +0000)]
* xrdb.c (get_user_db): Use XResourceManagerString when available
[HAVE_X11R4].

31 years ago* xfns.c (x_icon): Don't call x_wm_set_icon_positions if the user
Jim Blandy [Sat, 29 Aug 1992 03:25:25 +0000 (03:25 +0000)]
* 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].

31 years ago* window.c (coordinates_in_window): Do not assume that all
Jim Blandy [Sat, 29 Aug 1992 03:14:44 +0000 (03:14 +0000)]
* 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.

31 years ago* sysdep.c (init_baud_rate): Re-arranged order of conditionals -
Jim Blandy [Sat, 29 Aug 1992 03:07:24 +0000 (03:07 +0000)]
* 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".

31 years ago* process.c: Include "systty.h", not "systerm.h".
Jim Blandy [Sat, 29 Aug 1992 03:05:43 +0000 (03:05 +0000)]
* process.c: Include "systty.h", not "systerm.h".

31 years ago* keyboard.c: Include "systty.h", not "systerm.h".
Jim Blandy [Sat, 29 Aug 1992 03:04:31 +0000 (03:04 +0000)]
* keyboard.c: Include "systty.h", not "systerm.h".

31 years ago* fns.c (Fyes_or_no_p): Call Fsleep_for with the appropriate
Jim Blandy [Sat, 29 Aug 1992 03:03:15 +0000 (03:03 +0000)]
* fns.c (Fyes_or_no_p): Call Fsleep_for with the appropriate
number of arguments.

31 years ago* fileio.c (Fdo_auto_save): Call Fsleep_for with the appropriate
Jim Blandy [Sat, 29 Aug 1992 03:00:41 +0000 (03:00 +0000)]
* fileio.c (Fdo_auto_save): Call Fsleep_for with the appropriate
number of arguments.

31 years ago* emacs.c: Incude "systty.h", not "systerm.h".
Jim Blandy [Sat, 29 Aug 1992 02:58:59 +0000 (02:58 +0000)]
* emacs.c: Incude "systty.h", not "systerm.h".

* emacs.c (Fkill_emacs): Doc fix.
(syms_of_emacs): Doc fix for Vkill_emacs_hook.

31 years ago* dispnew.c: Incude "systty.h", not "systerm.h".
Jim Blandy [Sat, 29 Aug 1992 02:55:05 +0000 (02:55 +0000)]
* 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.

31 years agoFormatting change
Jim Blandy [Sat, 29 Aug 1992 02:41:45 +0000 (02:41 +0000)]
Formatting change

31 years agoentered into RCS
Jim Blandy [Sat, 29 Aug 1992 02:15:08 +0000 (02:15 +0000)]
entered into RCS

31 years ago*** empty log message ***
Jim Blandy [Sat, 29 Aug 1992 02:14:58 +0000 (02:14 +0000)]
*** empty log message ***

31 years ago(syms_of_buffer): Made buffer-display-table,
Richard M. Stallman [Fri, 28 Aug 1992 20:39:57 +0000 (20:39 +0000)]
(syms_of_buffer): Made buffer-display-table,
buffer-field-list and buffer-undo-list allow any type of value.

31 years ago(Fappend): Doc fix.
Richard M. Stallman [Fri, 28 Aug 1992 05:45:03 +0000 (05:45 +0000)]
(Fappend): Doc fix.

31 years ago*** empty log message ***
Jim Blandy [Fri, 28 Aug 1992 03:34:22 +0000 (03:34 +0000)]
*** empty log message ***

31 years ago*** empty log message ***
Jim Blandy [Thu, 27 Aug 1992 22:17:59 +0000 (22:17 +0000)]
*** empty log message ***

31 years ago*** empty log message ***
Richard M. Stallman [Thu, 27 Aug 1992 04:22:31 +0000 (04:22 +0000)]
*** empty log message ***

31 years agoentered into RCS
Richard M. Stallman [Tue, 25 Aug 1992 01:57:37 +0000 (01:57 +0000)]
entered into RCS

31 years ago*** empty log message ***
Richard M. Stallman [Mon, 24 Aug 1992 22:07:53 +0000 (22:07 +0000)]
*** empty log message ***

31 years agoentered into RCS
Richard M. Stallman [Sat, 22 Aug 1992 07:10:23 +0000 (07:10 +0000)]
entered into RCS

31 years ago(WCOREDUMP): Define only if not defined.
Richard M. Stallman [Sat, 22 Aug 1992 02:53:24 +0000 (02:53 +0000)]
(WCOREDUMP): Define only if not defined.
(create_process) [HAVE_SETSID]: Use TIOCSCTTY if exists.

31 years agoInitial revision
Joseph Arceneaux [Fri, 21 Aug 1992 23:45:45 +0000 (23:45 +0000)]
Initial revision

31 years agoFormerly GETTING.GNU.SOFTWARE.~3~
gnulists [Fri, 21 Aug 1992 23:06:13 +0000 (23:06 +0000)]
Formerly GETTING.GNU.SOFTWARE.~3~

31 years ago*** empty log message ***
Richard M. Stallman [Fri, 21 Aug 1992 07:18:16 +0000 (07:18 +0000)]
*** empty log message ***

31 years ago*** empty log message ***
Richard M. Stallman [Thu, 20 Aug 1992 05:09:30 +0000 (05:09 +0000)]
*** empty log message ***

31 years ago*** empty log message ***
Jim Blandy [Wed, 19 Aug 1992 08:13:21 +0000 (08:13 +0000)]
*** empty log message ***

31 years ago*** empty log message ***
Richard M. Stallman [Wed, 19 Aug 1992 07:17:26 +0000 (07:17 +0000)]
*** empty log message ***

31 years ago* abbrev.c (syms_of_abbrev): Call DEFVAR_PER_BUFFER with the new
Jim Blandy [Wed, 19 Aug 1992 07:06:09 +0000 (07:06 +0000)]
* abbrev.c (syms_of_abbrev): Call DEFVAR_PER_BUFFER with the new
TYPE argument.

31 years ago(internal_self_insert): Ignore value of Fexpand_abbrev;
Richard M. Stallman [Wed, 19 Aug 1992 07:00:42 +0000 (07:00 +0000)]
(internal_self_insert): Ignore value of Fexpand_abbrev;
instead, check whether buf is modified when it returns.

31 years ago(Fexpand_abbrev): If pre-expand hook changes the buffer,
Richard M. Stallman [Wed, 19 Aug 1992 07:00:25 +0000 (07:00 +0000)]
(Fexpand_abbrev): If pre-expand hook changes the buffer,
assume that means we "did an expansion".

31 years ago* xterm.c (x_wm_hints): Variable deleted. This has to be
Jim Blandy [Wed, 19 Aug 1992 06:51:44 +0000 (06:51 +0000)]
* xterm.c (x_wm_hints): Variable deleted.  This has to be
per-screen.  Duh.
* xterm.c (x_wm_set_window_state, x_wm_set_icon_pixmap,
x_wm_set_icon_position): Use F->display.x->wm_hints, rather than
x_wm_hints.
(x_term_init): Don't initialize x_wm_hints here.
* xterm.c (x_set_text_property): Properly balance the BLOCK_INPUTs
and UNBLOCK_INPUTs.  And remember that VALUE is the strin we want
to set the name to, not PROPERTY.

* xterm.c (x_set_text_property): Define this appropriately for
X11R3 and X11R4.

* xterm.c (x_set_text_property): Make this take a Lisp_Object
string as an argument, rather than a pointer and a length.

* xterm.c: Doc fixes.

* xterm.c [USG5]: Don't include <sys/types.h>.

* xterm.c (x_make_frame_invisible): Instead of calling XWithdraw
window, which isn't widely available, write out what it does,
since that's not much.
(x_iconify_frame): Explicitly perform both the X11R3 and X11R4
methods for iconification; don't use XIconifyWindow, since that's
not present in R3.

* xterm.c (x_wm_set_size_hint): Don't bother setting the
base_width and base_height members; their function is performed
just as well by the min_width and min_height members, and if we
use XSetNormalHints instead of XSetWMNormalHints, we can be
compatible with R3.

* xterm.c (x_error_handler): There is no way to invoke the default
error handler which works on all versions of X11, so don't bother;
call XGetErrorText and print the message ourselves.

* xterm.c (x_term_init): Don't use MAXHOSTNAMELEN; this isn't
defined on all systems.  Since we only use that as an initial
guess anyway, it's not very important.

* xterm.c (x_set_text_property): New function.

31 years ago* xrdb.c [USG5]: Define SYSV, and then include <unistd.h>. I
Jim Blandy [Wed, 19 Aug 1992 06:51:17 +0000 (06:51 +0000)]
* xrdb.c [USG5]: Define SYSV, and then include <unistd.h>.  I
     wish I knew why.
Don't include <sys/types.h>; just declare getuid to return an
     int.  Big deal.
(MAXPATHLEN): If this is not defined by the system's include
     files, give it a value of 256.
(get_user_db): Fetch the defaults directly from the display
     structure, rather than using XResourceManagerString; that
     function doesn't exist in the older versions of X.

31 years ago* xfns.c (x_set_name): Take new argument EXPLICIT, instead of
Jim Blandy [Wed, 19 Aug 1992 06:46:08 +0000 (06:46 +0000)]
* xfns.c (x_set_name): Take new argument EXPLICIT, instead of
OLDVAL.
(x_explicitly_set_name, x_implicitly_set_name): New functions.
(x_frame_parms): Use x_explicitly_set_name here.
(x_window): Use x_implicitly_set_name here.

* xfns.c (Fx_create_frame): Initialize f->display.x->wm_hints here.

* xfns.c (x_set_name): Call x_set_text_property with a Lisp_Object
string as an argument, rather than a pointer and a length.

* xfns.c (x_get_arg): Accept a new type - symbol.  If we've
retrieved a string from the xrdb database and the user wants a
symbol, intern it.
(Fx_create_frame): Use the symbol type here.

* xfns.c (x_figure_window_size, x_icon, Fx_create_frame): Use
values from enum resource_types for the last arg to x_get_arg,
instead of passing numbers.

* xfns.c (Fx_create_frame): When setting up the scroll bars, use
the type parameter to x_default_parameter, rather than prefixing
the resource name with a question mark.

* xfns.c [not HAVE_X11] (Fx_create_frame): The resource which
determines whether or not to use a bitmapped icon is called
"IconType", not "BitmapIcon".  Update this.

* xfns.c (x_set_name): Used x_set_text_property instead of XSetWMName and
XSetWMIconName.

* xfns.c (select_visual): Fetch the visual id directly from v;
     don't call XVisualIDFromVisual, since that function is not
     available in earlier versions of X.

* xfns.c (x_make_gc): cursor_bits can't be local to the function;
it's static.

* xfns.c (Fx_create_frame): Make the default for the icon-type
     parameter nil, not t.  It seems to cause problems with some X
     servers.

31 years ago* xdisp.c (display_mode_line): Use x_implicitly_set_name here.
Jim Blandy [Wed, 19 Aug 1992 06:43:03 +0000 (06:43 +0000)]
* xdisp.c (display_mode_line): Use x_implicitly_set_name here.

* xdisp.c (redisplay, init_xdisp): Use FRAME_ROOT_WINDOW instead
of minibuf_window->prev.

* xdisp.c (decode_mode_spec): Move lots_of_dashes outside of the
function; Emacs can't use static initialized arrays inside functions.

31 years ago* window.c (Fset_window_configuration): Removed #if 0'd code which
Jim Blandy [Wed, 19 Aug 1992 06:40:02 +0000 (06:40 +0000)]
* window.c (Fset_window_configuration): Removed #if 0'd code which
assumes that minibuf_window is on the same frame as the window
configuration.  Removed special case for windows whose prevs
point to themselves.

* window.c (Fset_window_configuration): Rename the argument from
ARG to CONFIGURATION, so it matches the docstring.  The
make-docfile program cares.

* window.c [MULTI_FRAME] (syms_of_window): Don't staticpro
minibuf_window; the frame list will take care of it.

* window.c (window_loop): This used to keep track of the first
window processed and wait until we came back around to it.  Sadly,
this doesn't work if that window gets deleted.  So instead, use
Fprevious_window to find the last window to process, and loop
until we've done that one.

* window.c [not MULTI_FRAME] (init_window_once): Don't forget to
set the `mini_p' flag on the new minibuffer window to t.

* window.c (Fwindow_at): Don't check the type of the frame
argument.

* window.c [not MULTI_FRAME] (window_loop): Set frame to zero,
instead of trying to decode it.

* window.c (init_window_once): Initialize minibuf_window before
FRAME_ROOT_WINDOW, so the latter actually points to something.

31 years ago* term.c (term_get_fkeys): Some systems define `static' to be the
Jim Blandy [Wed, 19 Aug 1992 06:38:40 +0000 (06:38 +0000)]
* term.c (term_get_fkeys): Some systems define `static' to be the
     empty string, which means that you can't have constant
     initialized arrays inside a function.  So move the `keys' array
     outside of the function.

* term.c (keys): Include definitions for "K2" (the center key on
     an IBM keypad), "F1" (F11), and "F2" (F12).  Handle "k0" and "k;"
     specially; see the code for details.

* term.c (clear_end_of_line): Remember that on some systems,
     "static" gets defined to be the null string, so we can't declare
     an array to be static and then initialize it.  Since the array in
     question (buf) is only one element long, just make it a scalar
     rather than an array; it can then be initialized, even if it's
     not static.

31 years ago* sysdep.c (select): There's no need to cast the return value of
Jim Blandy [Wed, 19 Aug 1992 06:37:58 +0000 (06:37 +0000)]
* sysdep.c (select): There's no need to cast the return value of
     signal anymore, since we have the SIGTYPE macro defined.

* sysdep.c (read_input_waiting): When scanning for quit
     characters, use the value of quit_char, rather than assuming that
     C-g is the quit character.  And don't forget to declare i.

* sysdep.c [USG5]: Don't include fcntl.h.

31 years ago* ralloc.c (get_bloc): When initializing new_bloc->variable, cast
Jim Blandy [Wed, 19 Aug 1992 06:36:35 +0000 (06:36 +0000)]
* ralloc.c (get_bloc): When initializing new_bloc->variable, cast
NIL to (POINTER *).
(malloc_init): Give warning if sbrk returns zero.  Wonder what
that's supposed to mean.

31 years ago* process.c (process_send_signal): Don't send SIGTSTP if the
Jim Blandy [Wed, 19 Aug 1992 06:35:23 +0000 (06:35 +0000)]
* process.c (process_send_signal): Don't send SIGTSTP if the
system doesn't have that facility.

* process.c: [USG5] Don't include <fcntl.h>.
[USG] Don't bother including termios, termio, or fcntl; systerm.h
takes care of all that.
Remove the "mis;tak-+;;" line from the code; apparently this
section of code does get used.

* process.c (wait_reading_process_input): Put comments around
text following #endif.

31 years ago* mocklisp.c (Fml_substr): Put comments around text following #endif.
Jim Blandy [Wed, 19 Aug 1992 06:34:26 +0000 (06:34 +0000)]
* mocklisp.c (Fml_substr): Put comments around text following #endif.

31 years ago* minibuf.c (Fread_from_minibuffer): Put this function's doc
Jim Blandy [Wed, 19 Aug 1992 06:33:46 +0000 (06:33 +0000)]
* minibuf.c (Fread_from_minibuffer): Put this function's doc
string into a comment; it's too long for the PCC preprocessor.
Rah.
(Fcompleting_read): Same deal.

31 years ago* lread.c (defvar_per_buffer): Support new TYPE argument, by
Jim Blandy [Wed, 19 Aug 1992 06:33:16 +0000 (06:33 +0000)]
* lread.c (defvar_per_buffer): Support new TYPE argument, by
setting the appropriate slot in buffer_local_types.

31 years ago* keyboard.c (init_keyboard): Changed "#endif SIGIO" to
Jim Blandy [Wed, 19 Aug 1992 06:31:34 +0000 (06:31 +0000)]
* keyboard.c (init_keyboard): Changed "#endif SIGIO" to
"#endif /* SIGIO */"

* keyboard.c (Fexecute_mouse_event): dyked-out function deleted.
We're not going to use this mouse interface.
(Vmouse_window, Vmouse_event, Vmouse_event_function,
Vmouse_left_hook, Vmap_frame_hook, Vunmap_frame_hook,
Vmouse_motion_handler): Variables deleted; they were to be used by
Fexecute_mouse_event.
(syms_of_keyboard): Same.
(command_loop_1): Remove dyked-out code to support
Fexecute_mouse_event.
(read_char): Same.

* keyboard.c (Vlast_event_frame): Don't define this window if
MULTI_FRAME is not #defined.
(syms_of_keyboard): Same.
(kbd_buffer_store_event): Don't try to work with Vlast_event_frame
if MULTI_FRAME is not #defined.
(kbd_buffer_get_event): Same.

* keyboard.c (Fdiscard_input): Removed dyked-out code from when
unread_command_char's quiescent value was -1, not nil.

31 years ago* frame.c (make_frame): Clear the explicit_name member of the new
Jim Blandy [Wed, 19 Aug 1992 06:26:54 +0000 (06:26 +0000)]
* frame.c (make_frame): Clear the explicit_name member of the new
frame.

31 years ago* floatfns.c (Fexpm1, Flog1p): Function removed; it's not widely
Jim Blandy [Wed, 19 Aug 1992 06:26:13 +0000 (06:26 +0000)]
* floatfns.c (Fexpm1, Flog1p): Function removed; it's not widely
available, and hardly vital.
(syms_of_floatfns): Adjusted appropriately.

* floatfns.c (Flog): Accept optional second arg, being the base
for the logarithm.
[USG] (Flogb): Define this in terms of Flog.

31 years ago* emacs.c [USG5]: Don't #include <fcntl.h> for these systems.
Jim Blandy [Wed, 19 Aug 1992 06:25:25 +0000 (06:25 +0000)]
* emacs.c [USG5]: Don't #include <fcntl.h> for these systems.