1 1993-05-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3 * Version 19.10 released.
5 1993-05-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7 * keyboard.c (read_key_sequence): If we changed buffers during
8 read_char, go to replay_sequence.
10 * frame.c (Ficonify_frame, Fmake_frame_invisible):
11 Select some other frame. Move minibuffer off this frame.
13 * frame.c (Fhandle_switch_frame): Don't call Ffocus_frame.
14 (Fredirect_frame_focus): Call Ffocus_frame here.
16 * xterm.c (x_bitmap_icon): Don't free icon_bitmap;
17 create it if it hasn't been created before.
19 * xterm.c (XTread_socket): For UnmapNotify, if frame was visible,
20 mark it now as iconified.
21 (x_make_frame_invisible): If async_iconic, work does need to be done.
22 Don't let this frame stay highlighted.
23 (x_iconify_frame): Don't let this frame stay highlighted.
25 * s/usg5-4-2.h (sigsetmask): #undef this.
27 * sysdep.c (sys_signal): Use 0, not NULL, to set sa_flags.
29 1993-05-29 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
31 * linux.h (C_OPTIMIZE_SWITCH): Set this to the empty string;
32 configure guesses just fine.
34 * tekXD88.h: New file, from Kaveh Ghazi.
36 * systty.h (CDISABLE): #undef it before re-#defining it.
38 * sysdep.c (sys_siglist): Comment out #endif trailer.
39 * xmenu.c (TRUE, FALSE): Same.
40 * xterm.c (dumprectangle): Same.
42 * emacs.c: Don't include termios.h directly--let systty.h do it.
44 1993-05-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
46 * xfaces.c [HPUX]: Include time.h and define __TIMEVAL__.
48 * emacs.c (shut_down_emacs): Maybe close X connection. New arg NO_X.
49 (Fkill_emacs): Don't close it here. Pass new arg.
50 (fatal_error_signal): Pass new arg.
51 * xterm.c (x_connection_closed): Pass new arg.
53 * xdisp.c (syms_of_xdisp): Make highlight-nonselected-windows Lisp var.
54 (display_text_line): Obey it.
55 (display_text_line): Really check for just the selected window.
57 * s/usg5-4-2.h: New file.
59 * keyboard.c (menu_bar_items): Save Vinhibit_quit by hand
60 instead of using specbind.
61 (menu_bar_items): Call Fnreverse before restoring Vinhibit_quit.
63 * s/hpux8.h (OLDXMENU_OPTIONS): Add quotations.
65 * m/ibmrt.h (C_SWITCH_MACHINE): Define only if not __GNUC__.
66 (HAVE_FTIME): Defined.
67 (EMACS_BITMAP_FILES): Defined.
69 * xfns.c (Fx_close_current_connection): Clear x_current_display.
70 * xterm.c (XTring_bell): Do nothing if x_current_connection is 0.
72 * buffer.c (reset_buffer): Clear mark_active field here.
73 (reset_buffer_local_variables): Not here.
74 (Fswitch_to_buffer, Fpop_to_buffer): Return the buffer.
75 (Fmove_overlay): Fix data types in last change.
77 * sysdep.c (gettimeofday): Don't store in *tzp if tzp is 0.
79 * process.c (MAXDESC): Get it from FD_SETSIZE if that exists.
81 * s/sco4.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
83 (SIGNALS_VIA_CHARACTERS): Defined.
84 [HAVE_SOCKETS] (HAVE_GETTIMEOFDAY): Defined.
85 (MAIL_PROGRAM_NAME): Defined (two alternate definitions).
87 * xfns.c (Fx_list_fonts): Use CHECK_LIVE_FRAME on the frame arg.
89 1993-05-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
91 * s/hpux8.h (LIBX11_SYSTEM): Defined.
93 * ymakefile: Replace config.h as dep with $(config_h).
94 (really-oldXMenu): Use two make vars to pass values
95 of C_SWITCH_... within doublequotes.
97 * xfns.c (x_figure_window_size): Never set PPosition or PSize.
99 * keymap.c (syms_of_keymap): Create global_map 256 slots long.
100 * cmds.c (keys_of_cmds): Predefined 0240-0376 as self-insert.
102 * xterm.c (XTread_socket, case KeyPress) [HPUX]:
103 Recognize the extended function keys.
105 * buffer.c (Fgenerate_new_buffer_name): New arg IGNORE.
106 (Frename_buffer): Pass new arg.
108 1993-05-28 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
110 * keyboard.c (menu_bar_items): Bind Qinhibit_quit to Qt while we
111 call the keymap accessors; this gets called during redisplay.
113 * ymakefile (alloca.o): Call $(CC), not cc.
115 * s/linux.h (SIGNALS_VIA_CHARACTERS): Try this out for a bit.
117 * buffer.c (Fmove_overlay): If the overlay is changing buffers,
118 do a thorough redisplay.
120 * xfns.c (x_set_frame_parameters): Use the first
121 position/size parameter we find, not the last.
123 * s/hpux8.h: Don't define HAVE_RANDOM.
125 * config.h.in (UNEXEC_SRC): New macro, set by the configure
127 * ymakefile (UNEXEC_SRC): Give it a default value here, and make
130 * ymakefile (lispdir): Set this in terms of ${srcdir}.
132 1993-05-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
134 * dispnew.c (Fsleep_for): Don't return without waiting when SEC is 0.
136 * emacs.c (syms_of_emacs) [CANNOT_DUMP]: Don't defsubr Sdump_emacs*.
138 * alloc.c (mark_object): Add debugging code to check for ptr clobbered.
140 1993-05-27 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
142 * Version 19.9 released.
144 1993-05-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
146 * keyboard.c (read_char): Correct previous change.
148 1993-05-27 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
150 * systty.h: Always terminate comments, to avoid confusion.
152 * xfns.c: Make resource manager work correctly even when
153 Vinvocation_name has periods and asterisks in it.
154 (Vxrdb_name): New variable.
155 (Fx_get_resource): Use it instead of Vinvocation_name.
156 (Fx_open_connection): Initialize it to a copy of Vinvocation_name,
157 with the dots and stars replaced by hyphens.
158 (syms_of_xfns): staticpro it here.
160 * xfns.c (Fx_get_resource): Use the proper format string when the
161 attribute has been specified.
163 1993-05-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
165 * xfns.c (x_get_resource_string): New function.
167 * ymakefile (ALL_CFLAGS): Put CFLAGS last.
169 1993-05-26 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
171 * s/sol2.h (SOLARIS_BROKEN_ACCESS): Don't define this.
173 * s/aix3-2.h (C_SWITCH_SYSTEM): Don't define this to be "-ma" if
174 we're using GCC - that's an XLC switch.
176 * s/aix3-2.h (LIBS_SYSTEM): Put -LIM -Liconv here.
178 * systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
179 we have those structures, but *don't* define them if we have
180 TERMIOS, whose functions take care of those parameters; that
182 (struct emacs_tty): Test those symbols, instead of the ioctl
184 * sysdep.c (emacs_get_tty, emacs_set_tty, new_ltchars, new_tchars)
185 (init_sys_modes): Same.
187 * config.h.in (HAVE_RENAME): Include an #undef for this, so
188 configure will have something to edit.
190 1993-05-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
192 * window.c (window_loop, case GET_LRU_WINDOW):
193 Get frame's width properly.
195 * xselect.c (x_get_local_selection): If no conversion function
196 exists for the requested type, just return nil.
198 * s/linux.h (HAVE_TCATTR): Defined.
200 * sysdep.c [HAVE_SOCKETS]: Include socket.h, netdb.h.
201 (get_system_name) [HAVE_SOCKETS]: Use gethostbyname.
203 1993-05-26 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
205 * s/hpux8.h (LIB_X11_LIB, C_SWITCH_SYSTEM, LD_SWITCH_SYSTEM)
206 (LD_SWITCH_SYSTEM, OLDXMENU_OPTIONS): Add X11R5 directories to the
207 search paths in these lists; they shouldn't do any harm if they
210 * s/aix3-2.h (C_SWITCH_SYSTEM): Don't #define this if we're using
213 1993-05-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
215 * xrdb.c (magic_searchpath_decoder): Fix typos.
217 * xdisp.c (display_text_line): Don't call compute_char_face
220 * xfns.c (Fx_rebind_key, Fx_rebind_keys): X10 definitions deleted.
221 (syms_of_xfns): Install them only if X11.
223 * ralloc.c (r_alloc_sbrk): Declare already_available as long, not SIZE.
225 * xfns.c (x_set_cursor_type): If arg not recognized, use box cursor.
227 * s/hpux8.h (LD_SWITCH_SYSTEM) [__GNUC__]: Pass -a archive to ld.
228 (HAVE_RANDOM): Defined.
230 * s/hpux.h (rand, srand): Definitions deleted.
232 * keyboard.c (Fcurrent_input_mode): Fix the call to Flist.
233 (make_lispy_event): Fix off-by-1 error with hpos in menu bar.
235 * s/sunos4-1-3.h: New file.
237 * ymakefile (XOBJ) [!HAVE_X_MENU]: Add xfaces.o.
239 * s/irix4-0.h (SIGNALS_VIA_CHARACTERS): Defined.
241 * xterm.c (x_wm_set_size_hint): Don't set hints for max size.
243 1993-05-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
245 * m/ibmrs6000.h (LIBS_MACHINE): Add -lIM and -liconv.
246 (HAVE_GETTIMEOFDAY): Deleted.
248 * sysdep.c (wait_for_termination): Don't use the BSD alternative
249 for LINUX. Use the UNIPLUS alternative.
251 * keyboard.c (read_char): If kbd_buffer_get_event returns nil,
253 (kbd_buffer_get_event): If event is handled here, return nil.
254 (swallow_events): New function.
255 * process.c (wait_reading_process_input): Call that.
257 * ralloc.c (POINTER): Always use char *.
259 * s/sol2.h (C_SWITCH_X_SYSTEM): Deleted.
260 (LD_SWITCH_SYSTEM): Delete the -L option, leave just -R.
262 * m/symmetry.h (PTY_TTY_NAME_SPRINTF, PTY_NAME_SPRINTF):
263 Use pty_name, not ptyname.
265 * syntax.c (Fforward_comment): Arg is a Lisp_Object.
266 Convert it to an int.
268 * ymakefile (alloca.o): Get alloca.c and alloca.s from ${srcdir}.
270 * floatfns.c (logb): Don't declare if hpux.
272 * syntax.c (Fforward_comment): Always set point.
274 * s/dgux.h, s/hpux.h, s/esix.h (HAVE_GETTIMEOFDAY): Deleted.
276 * s/irix4-0.h (C_ALLOCA, alloca): Definitions deleted.
277 [!NOT_C_CODE]: Include alloca.h.
278 (NEED_SIOCTL): #undef this.
280 * xterm.h (PIXEL_TO_CHAR_COL, PIXEL_TO_CHAR_ROW):
281 Fix mismatch in arg names.
283 * xfns.c (Fx_open_connection): Set xrm_option correctly.
285 1993-05-25 David J. MacKenzie (djm@wiki.eng.umd.edu)
287 * xfns.c (x_figure_window_size): Make the default frame coords (0,0).
289 1993-05-25 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
291 * Version 19.8 released.
293 1993-05-25 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
295 * xfns.c: Clear out the old face stuff.
296 (x_face_table, n_faces, x_set_face, x_set_glyph, Fx_set_face_font)
297 (Fx_set_face, Fx_get_face): Removed.
298 (syms_of_xfns): Remove defsubr for Fx_set_face.
300 Arrange for font names to get fully resolved - no wildcards.
301 * xfns.c (x_set_frame_parameters): Store the value in the frame
302 parameter alist before we call the setter function, so the setter
303 function can touch up the value if it chooses.
304 (x_set_foreground_color, x_set_background_color): Call
305 recompute_basic_faces, so their GC's will reflect the changes.
306 (x_new_font): Add extern declaration - this returns a Lisp_Object
307 now, the fully resolved font name.
308 (x_set_font): Accept the fully resolved name from x_new_font, and
309 put it in the frame's parameter alist. Call recompute_basic_faces.
310 * xterm.c (x_new_font): Return the fully resolved font name, Qnil
311 (if no match), or Qt (match, but unacceptable metrics).
312 * xterm.c (x_new_font): Don't call init_frame_faces.
314 * xterm.h: New section for declarations for xfaces.c.
315 (init_frame_faces, free_frame_faces, intern_face)
316 (face_name_id_number, same_size_fonts, recompute_basic_faces)
317 (compute_char_face, compute_glyph_face): Declare these here.
318 * xfaces.c (same_size_fonts): We can now remove this extern
320 * xfns.c (face_name_id_number): Likewise.
321 * xterm.c (intern_face): Likewise.
323 * xterm.c (dumpglyphs): Remember that the default faces can have
326 * xfns.c (Fx_list_fonts): Remember that FACE may not have a font
327 specified. Don't specify 30000 as the maximum limit on the number
328 of fonts returned - 2000 is more reasonable.
330 * xfaces.c (build_face, unload_font, free_frame_faces): Don't
331 forget to block input while making X calls.
333 Treat faces as structures specifying modifications to the frame's
334 parameters, rather than things which need to specify a complete
335 set of parameters by themselves.
336 * xfaces.c (init_frame_faces): Don't set up the two frame display
337 faces by querying the GC - just leave all their fields blank, and
338 call recompute_basic_faces, letting build_face do the work of
339 consulting the frame when necessary.
340 (recompute_basic_faces): New function.
341 (compute_base_faces): New function for obtaining the "identity"
342 for compute_char_face and compute_glyph_face.
343 (compute_char_face, compute_glyph_face): Call it, instead of copying
345 * xfns.c (x_make_gc): No need to call init_frame_faces here.
347 * xfaces.c (intern_frame_face): This can be static.
349 * dispextern.h (struct face): New field - `copy', to help us with
351 * xfaces.c (free_frame_faces): Do free the first two faces; don't
352 free anything from a face that's a copy.
353 (intern_frame_face): Mark every face we intern as a copy; its
354 resources are actually a combination of the real faces.
355 (Fset_face_attribute_internal): No need to check if we're trying
356 to free one of the frame's GC's; they never enter into the
359 * casetab.c: Fix formatting, so as not to confuse etags.
361 * xfns.c (Fx_list_fonts): New function.
362 (face_name_id_number): Add extern declaration for this.
363 * xfaces.c (face_name_id_number): Make this externally visible,
364 and make the FRAME argument a FRAME_PTR, not a Lisp_Object.
365 (compute_char_face): Call face_name_id_number properly.
367 * xfaces.c (unload_color): Don't free the pixel for now.
369 * xfaces.c (merge_faces): You can't tell if a font is a
370 character-cell font or not by testing whether or not it has a
371 per_char table. They all do.
372 * xterm.c (x_new_font): Same deal.
373 * xfns.c (Fx_list_fonts): Same deal.
375 * m/iris4d.h: Dyke out the section which specifies how to get the
378 * paths.h (PATH_INFO): New path, to edited by the configuration
380 * callproc.c (Vconfigure_info_directory): New variable, used
381 internally by build process.
382 (syms_of_callproc): DEFVAR it and initialize it.
384 * keyboard.c (Fcurrent_input_mode): Use XFASTINT to build the last
385 element of the return value, not XSETINT.
387 1993-05-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
390 * mem-limits.h [__osf__ && (__mips || mips)]: #include
391 <sys/time.h> and <sys/resource.h>.
392 (get_lim_data): OSF wants a definition like BSD4_2's.
393 * s/osf1.h: #include "bsd4-3.h", not "s-bsd4-3.h".
395 * ymakefile (LIBX): Put LD_SWITCH_X_SITE before the libraries, so
396 it actually has an effect.
398 Some makes can't handle form feed characters in their makefiles.
399 * s/usg5-3.h: Remove form feed.
400 * s/template.h, m/template.h: Remove form feeds.
402 * xfns.c (select_visual): Include the screen number in the
403 template of things XGetVisualInfo must match.
405 1993-05-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
407 * s/dgux.h (NO_GET_LOAD_AVG): Test _M88KBCS_TARGET, not __GNUC__.
409 * xterm.c (XTread_socket, ConfigureNotify case):
410 Convert from parent window, not Emacs window.
411 (XTread_socket): Handle ReparentNotify events.
413 * m/i860.h: New file.
415 * keyboard.c (lispy_function_keys): Add kp-numlock. Fix kp-backspace.
417 1993-05-24 Thorsten Ohl (ohl@chico.harvard.edu)
419 * m/next.h (C_SWITCH_MACHINE): Definition deleted.
421 * lread.c: Don't #undef NULL.
423 1993-05-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
425 * buffer.c (Fmake_overlay): Put beg and end in the right order.
426 (Fmove_overlay): If beg and end are markers, make sure they're in
429 1993-05-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
431 * keyboard.c (modify_event_symbol): If a name_table elt is null,
432 generate a name to use. Don't crash.
434 * fileio.c (Fread_file_name): If input is empty, do return the default
435 even if !insert_default_directory.
437 * xterm.c (XTread_socket): For ConfigureNotify event,
438 translate coordinates if send_event field is false
439 provided the x-coord value is not large.
441 1993-05-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
443 * s/irix4-0.h (NO_MATHERR): Defined.
444 * floatfns.c [NO_MATHERR]: Undef HAVE_MATHERR.
446 1993-05-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
448 * fileio.c (Ffile_writable_p): Pass XSTRING (foo)->data to
449 ro_fsys, not XSTRING (foo).
451 * xterm.c (x_new_font): Reject fonts with varying spacing. We
452 don't support them yet.
453 * xfns.c (x_set_font): Report the error message properly.
455 * xfns.c (Fx_parse_geometry): No need to call check_x here; it
456 doesn't interact with the server at all, and we need it in order
457 to create our first frame.
459 1993-05-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
461 * s/linux.h (HAVE_SETSID): Defined.
462 (HAVE_SOCKETS): Defined.
464 * process.c (create_process): Ignore retval from TIOCSTTY.
465 (sys_siglist) [LINUX]: Don't even declare it.
467 1993-05-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
469 * syssignal.h (sys_signal): Declare the second argument to have
470 type signal_handler_t. We're told this is necessary for Linux.
472 1993-05-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
474 * s/dgux.h (NO_GET_LOAD_AVG): Define, if __GNUC__.
476 1993-05-23 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
478 * s/hpux8.h (NO_SIOCTL_H): Defined.
480 1993-05-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
482 * s/linux.h (HAVE_DUP2, HAVE_ALLOCA_H): Deleted.
484 1993-05-23 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
486 * syssignal.h: Don't #include <signal.h>
487 * alloc.c: #include <signal.h>, but before "config.h".
489 1993-05-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
491 * xfaces.c (Fset_face_attribute_internal): Don't call unload_font
492 for the frame's own font.
494 * xfns.c (check_x): New function.
495 Call it in almost every Lisp function in this file.
496 (x_set_menu_bar_lines_1): Pass both args in recursive call.
498 1993-05-23 Paul Eggert (eggert@twinsun.com)
500 * editfns.c (Fcurrent_time_zone): Make `am' an int, not long.
502 1993-05-23 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
504 Changes for SGI from Matthew J Brown <mjb@doc.ic.ac.uk>.
505 * m/iris4d.h, m/iris5d.h: Don't use the --cckr CC switch if we're
507 * m/iris4d.h (NEED_SIOCTL): Move this to...
508 * s/irix3-3.h (NEED_SIOCTL): ... here; apparently it's not
509 necessary in irix4-0.h.
510 * s/irix4-0.h: Remove declaration of getpty; apparently Irix 4.0
511 already declares this elsewhere.
512 (PTY_TTY_NAME_SPRINTF): #undef this before re-#defining it.
513 * m/ibmps2-aix.h, m/pfa50.h, s/hpux.h, s/isc2-2.h, s/linux.h,
514 * s/sco4.h, s/usg5-4.h: Remove HAVE_RENAME; configure guesses that now.
516 * config.h.in (LD_SWITCH_X_SITE, C_SWITCH_X_SITE): Change the
517 #defines to #undef's, so ../configure knows it should tweak them.
519 * xterm.c (x_scroll_bar_report_motion): Set *TIME whether or not
520 the mouse is over a scroll bar.
522 * xfaces.c (Fset_face_attribute_internal): Don't free the frame's
523 normal_gc or reverse_gc.
525 * keyboard.c (make_lispy_movement): Deal properly with mouse
526 motion outside of all windows.
528 * lisp.h (GLYPH_FACE): Remember that the face portion of a glyph
529 can be 24 bits, not just eight.
531 1993-05-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
533 * xterm.c: Move signal.h and stdio.h before config.h.
535 * editfns.c (Fcurrent_time_zone): Assign gmt, instead of init.
537 1993-05-22 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
539 * Version 19.7 released.
541 * Makefile.in (SUBMAKEFLAGS): Add CFLAGS to the list.
543 * puresize.h [not HAVE_X_WINDOWS] (PURESIZE): Make this 185k,
544 not 196k. We're actually using ~180k.
546 * editfns.c: #include <sys/types.h>, to get time_t for Eggert's
549 1993-05-22 Richard Stallman (rms@mole.gnu.ai.mit.edu)
551 * ymakefile (FRAME_SUPPORT): Add mouse.elc, select.elc, scroll-bar.elc.
553 * xdisp.c (display_text_line): Highlight in any frame's sel window.
555 * keyboard.c (modifier_names): Update to match *_modifier in termhooks.
557 1993-05-22 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
559 * xterm.c (x_scroll_bar_handle_click): Never grab the scroll bar;
560 that feature requires more support to work correctly.
562 * keyboard.c (make_ctrl_char): New function.
563 (read_char): Call it.
564 (kbd_buffer_store_event): Call it to see if the new character is
565 the quit or stop character.
566 (make_lispy_event): Call it.
568 1993-05-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
570 * xfns.c (x_window_to_frame): Use XGCTYPE.
572 1993-05-21 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
574 * process.c (Fopen_network_stream): Deal with older systems, which
575 only have the h_addr field in their struct hostent.
577 * systty.h [SYSV_PTYS]: #include <sys/types.h>. Francesco
578 Potortì <pot@fly.CNUCE.CNR.IT> says it's necessary on his
579 machine, and it should be harmless.
581 1993-05-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
583 * sysdep.c (wait_for_termination): Copy code from 18.59
584 (but sans BSD4_1 alternatives).
586 1993-05-21 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
588 * ymakefile (alloca.o): #define malloc and free to be xmalloc and
589 xfree on the command line of this compilation.
591 * s/sco4.h (TIME_WITH_SYS_TIME): This is no longer needed.
593 * s/linux.h: Remove copyright notices by Michael K. Johnson and
594 Rik Faith. They have both sent in papers now which make their
595 changes public domain.
597 * sysdep.c (sys_suspend): Set synch_process_alive, so that
598 wait_for_termination has something to wait for.
600 1993-05-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
602 * xdisp.c (display_text_line): Highlight only in selected window.
604 * xfns.c (syms_of_xfns): Don't make Lisp vars
605 x-mode-pointer-shape and x-nontext-pointer-shape.
607 1993-05-20 Ian Lance Taylor (ian@cygnus.com)
609 * s/sco4.h (SCO): Don't define (no longer needed).
610 (HAVE_SYS_TIME_H): Don't define (set by configure).
611 (TIME_WITH_SYS_TIME): Define.
613 1993-05-20 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615 * dispnew.c (preserve_other_columns): Remember to multiply the
616 size argument to bcopy by the size of a glyph.
618 1993-05-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
620 * keyboard.c (read_key_sequence): Reexamine this_command
621 after pre-command-hook runs.
623 * xterm.c (x_find_modifier_meanings): If some keys are meta and alt,
624 make them just meta, not alt.
626 1993-05-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
628 Some time-handling patches from Paul Eggert:
629 * editfns.c (Fcurrent_time_zone): Take an optional argument specifying
630 what (absolute) time should be used to determine the current time zone.
631 Yield just offset and name of time zone, including DST correction.
632 Yield time zone offset in seconds, not minutes.
633 (lisp_time_argument, difftm): New functions.
634 (Fcurrent_time_string): Use lisp_time_argument.
635 * systime.h (EMACS_CURRENT_TIME_ZONE, EMACS_GET_TZ_OFFSET,
636 EMACS_GET_TZ_NAMES): Remove.
637 * config.h.in: Add HAVE_TM_ZONE.
639 Some more changes from Michael K. Johnson for Linux.
640 * s/template.h: Mention that you should #define HAVE_TERMIO or
641 HAVE_TERMIOS, but not both, and that HAVE_TERMIOS is preferred.
642 * systty.h (EMACS_SET_TTY_PGRP): Don't assign the return value of
643 tcsetpgrp to *pgid; it's just a status value.
644 * config.h.in (HAVE_RANDOM): This shouldn't be defined on Linux
645 systems using XFree386, and perhaps is inappropriate in general.
646 * m/intel386.h: #undefine the integer size macros, since the Linux
647 <values.h> file #defines them itself.
648 * mem-limits.h (get_lim_data): Linux has the ulimit call; if it
649 fails, fall back on ULIMIT_BREAK_VALUE.
650 * process.c: Linux needs the WAITTYPE, etc. definitions.
651 * unexec.c (hdr, ohdr): Linux has the ordinary `struct exec' type;
652 no need to use SYSV names.
653 * s/linux.h: New file.
655 Some changes from Michael K. Johnson for Linux.
656 * sysdep.c (sys_siglist): Don't define this if HAVE_SYS_SIGLIST is
657 #defined. That lets the system provide it, if it has it.
658 * syssignal.h (sigmask): Only define this if <signal.h> hasn't
659 given us a definition already.
660 * syssignal.h (sys_sigpause): Fix argument in prototype.
661 * sysdep.c (init_signals): The masks are called empty_mask and
662 full_mask, not signal_empty_mask and signal_full_mask.
663 (signal_handler_t): Moved ....
664 * syssignal.h: ... to here.
665 * systty.h (EMACS_SET_TTY_PGRP): Call tcsetpgrp with the correct
667 * emacs.c (main): Don't try to establish signal handlers for
668 SIGBUS and SIGSYS unless they're actually #defined.
670 * systty.h [HAVE_TERMIO, __DGUX]: #include <sys/ioctl.h>.
672 * xdisp.c (redisplay_window): Compute the scrollbar start and end
675 1993-05-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
677 * keyboard.c (Fcurrent_input_mode): Return META as 3-way flag.
679 1993-05-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
681 * fileio.c (Ffind_file_name_handler): Check that FILENAME is a
684 * process.c (wait_reading_process_input): Undo change of April
685 29th, since that re-introduces the race condition the comments are
686 warning about. Call clear_waiting_for_input before calling
687 status_notify, though.
689 * process.c (wait_reading_process_input): Don't forget to call
690 clear_waiting_for_input when we exit the loop because process
693 Changes for Silicon Graphics Iris 5D.
694 * unexelfsgi.c: New file; like unexelf.c, but tolerates program
696 * m/iris5d.h: New file.
697 * s/irix5-0.h: New file.
698 * process.c [__sgi] (allocate_pty): Give up immediately if pty is
701 1993-05-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
703 * keyboard.c (follow_key): Check char in range before UPPERCASEP.
705 1993-05-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
707 * xfns.c (x_set_menu_bar_lines): Fix typo in last change.
709 * keyboard.c (make_lispy_event): Controlify lower case letters too.
711 1993-05-18 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
713 * xdisp.c (display_text_line): If the newline (or C-m, in
714 selective-display) has a non-default face, apply that face to the
715 remainder of the line, so that the fill occupies the entire line.
717 * xterm.c (x_new_font): Tell the frame display faces about the
720 Make sure that all the display faces use fonts of the
721 same dimensions as the default face, so as not to confuse the rest
722 of the redisplay code.
723 * xfaces.c (same_size_fonts): New function.
724 (merge_faces): Only merge in a new font from the FROM face if it
725 is the same size as the font in the TO face.
727 * xfns.c (x_set_menu_bar_lines): Minibuffer-only frames can't have
730 * keyboard.c (read_key_sequence): Don't lay down an unwind_protect
731 to restore the original buffer until we actually get a mouse click.
733 * window.c (window-dedicated-p): Doc fix.
735 1993-05-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
737 * xterm.c (XTread_socket): Turn off ControlMask for XLookupString.
738 * keyboard.c (make_lispy_event): Controlify here.
740 1993-05-17 Jim Blandy (jimb@totoro.cs.oberlin.edu)
742 * xdisp.c (redisplay_window): Make the scrollbar reflect the
743 extent of the visible region, not the whole buffer.
745 * xfaces.c (free_frame_faces): Don't free the resources from the
748 * lisp.h (malloc, realloc): Declare these to return void *, to
749 avoid conflicts with ANSI header files.
751 * sysdep.c (reset_sys_modes): Test the return value of
752 EMACS_SET_TTY properly.
753 * systty.h (EMACS_GET_TTY, EMACS_SET_TTY): Document the return
756 1993-05-16 Jim Blandy (jimb@totoro.cs.oberlin.edu)
758 * config.h.in (STDC_HEADERS, TIME_WITH_SYS_TIME,
759 CRAY_STACKSEG_END, STACK_DIRECTION): Add #undef clauses for these,
760 since otherwise the autoconf tests in configure.in won't do us
763 1993-05-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
765 * buffer.c (overlays_at): New arg EXTEND.
766 (Foverlays_at, Fnext_overlay_change): Pass 1.
767 * xfaces.c (compute_char_face): Pass 0.
768 Try first with small overlay_vec, then use a big enough one.
770 * lread.c (syms_of_lread): Make Vcurrent_load_list ordinary Lisp var.
771 Set up Qcurrent_load_list.
772 (readevalloop): Specbind Qcurrent_load_list instead of ad-hoc saving.
773 (build_load_history): Do nothing when loading pure files.
775 * xterm.c (dumpglyphs): Create a temporary merged gc
776 when cursor falls on char with non-default face.
778 * xterm.h (x_display): New field cursor_foreground_pixel.
779 * xfns.c (x_set_cursor_color): Set cursor_foreground_pixel.
781 * casefiddle.c (casify_region): Remove mistaken arg to record_change.
783 1993-05-15 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
785 * xfaces.c (Fset_face_attribute_internal): Jolt redisplay, so it
786 knows something has changed.
788 * xfaces.c (unload_color): Don't try to unload the standard black
791 More changes from David Mackenzie.
792 * ymakefile (emacs): No need to edit srcdir into a lisp file and
793 then load it; we can just take advantage of the PATH_DUMPLOADSEARCH.
794 (crt0.o): Remember that crt0.c is in ${srcdir}.
796 Install David Mackenzie's patches to make ${srcdir} work.
797 * Makefile.in (srcdir, VPATH): Get this value from the top-level
799 (xmakefile): Use ${srcdir} to find the files from which we produce
800 xmakefile. Edit the values for srcdir and VPATH into xmakefile.
801 * ymakefile (srcdir, VPATH): New definitions for the Makefile
803 (ALL_CFLAGS): Remove `-Is' and `-Im'; add `-I${srcdir}', and
805 (emacs): Adjust dumping commands to deal with a separate source
807 (${etc}DOC): Pass `-d ${srcdir}' to make-docfile, to tell it where
808 to find the source files.
809 (prefix-args): Find the source code in ${srcdir}.
811 * process.c (wait_reading_process_input): If we're running
812 Solaris, it's not necessary to check if we should redeliver SIGIO,
813 according to David Mackenzie.
814 * s/sol2.h: #include "usg5-4.h", and #define const.
816 * systime.h: Borrow CPP sequence from getdate.y to include the
817 proper combination of <time.h> and <sys/time.h>.
819 1993-05-15 Richard Stallman (rms@mole.gnu.ai.mit.edu)
821 * window.h (struct window): New slot region_showing.
822 * xdisp.c (mark_window_display_accurate): Set region_showing fields.
823 (redisplay_window): Update region_showing field.
824 (display_text_line): Set region_showing to t if will show one.
826 * xselect.c (Fx_selection_exists_p): Handle nil, t as SELECTION arg.
827 Don't die if SELECTION is not recognized.
829 * dispnew.c (direct_output_forward_char): Just give up
830 if region is being highlighted.
832 * xdisp.c (redisplay, redisplay_window): Don't use the cursor-motion
833 special-case code if the region is or was highlighted.
835 * xfaces.c (compute_char_face): New args REGION_BEG, REGION_END.
836 Don't sort if noverlays is 0 or 1.
838 * dispnew.c (direct_output_for_insert): Pass those args.
839 * xdisp.c (display_text_line): Pass those args,
840 describing the region if the mark is transient and active.
842 1993-05-14 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
844 * buffer.c (Fmove_overlay): If the overlay is in no buffer and the
845 BUFFER argument has been omitted, put it in the current buffer,
846 for symmetry with move-marker.
848 * buffer.c (Fdelete_overlay): Make the overlay's markers point
849 nowhere, not at 1. Do this after calling redisplay_region, so
850 that code knows what section has changed.
852 1993-05-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
854 * xdisp.c (display_menu_bar): Update FRAME_MENU_BAR_ITEMS here.
855 * keyboard.c (command_loop_1): Don't do it here.
857 * keymap.c (access_keymap): Handle any length vector.
858 (store_in_keymap): Likewise.
859 (Fcopy_keymap): Likewise.
861 1993-05-14 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
863 * buffer.c (Foverlay_start, Foverlay_end, Foverlay_buffer)
864 (Foverlay_properties): Functions moved here from subr.el.
866 1993-05-13 Jim Blandy (jimb@totoro.cs.oberlin.edu)
868 * xfaces.c (compute_char_face): When merging the overlays,
869 traverse sortvec, not overlay_vec; the latter isn't the one we
872 * xterm.c (dumpglyphs): Give the cursor higher priority than the
873 face specified by the glyph under it.
875 * xterm.c (dumpglyphs): Move the underline up a row. I dislike
876 the way X addresses pixels. Quickdraw is much nicer.
878 * xfaces.c (intern_face): If the face has a GC, but it's not the
879 default or modeline face, abort. Nothing but those two faces
880 should have a GC *and* be passed to intern_face.
881 (compute_char_face, compute_glyph_face): After copying
882 the frame's default face into face, to use as a base case for
883 calculation, set the `gc' member to zero; that way we don't have
884 things lying around that look like display faces but aren't.
886 * xfaces.c (intern_frame_face): When copying the new face into the
887 frame's face array, remember that the number of bytes to copy is
888 sizeof (*new_face), not sizeof (new_face).
890 * xfaces.c (compute_char_face): Assume that W is displaying the
891 current buffer. Abort if it isn't.
893 * lisp.h (Lisp_Overlay): New tag.
894 (OVERLAYP): New predicate.
895 (CHECK_OVERLAY): New type-checker.
896 (Qoverlayp): New extern declaration.
897 * buffer.c (Foverlayp): New function.
898 (Qoverlayp): New atom.
899 (overlays_at, recenter_overlay_lists): Abort if we encounter an
901 (syms_of_buffer): defsubr Soverlayp; initialize Qoverlayp.
902 (Fdelete_overlay): Set the overlay's markers to point nowhere.
903 Use CHECK_OVERLAY instead of signaling a special error.
904 (Fmove_overlay, Foverlay_put): Use CHECK_OVERLAY instead of
905 signaling a special error.
906 (Foverlay_get): Use CHECK_OVERLAY.
907 * fns.c (internal_equal): Define this for overlays.
908 * buffer.h (OVERLAY_VALID): Define in terms of OVERLAYP.
909 * print.c (print): Give overlays their own print syntax.
910 * alloc.c (mark_object): Treat overlays like conses.
912 * lisp.h (FLOATP): Define this appropriately when LISP_FLOAT_TYPE
915 * buffer.c (Foverlay_get): Return Qnil if the requested property
916 is missing from the property list.
918 The text property routines can now modify buffers other
919 than the current one.
920 * insdel.c (modify_region): New argument BUFFER. Select that
921 buffer while we prepare for the modification, and switch back when
923 * textprop.c (add_properties, remove_properties): Pass
924 the buffer being modified as the first argument to modify_region.
925 * editfns.c (Fsubst_char_in_region, Ftranslate_region): Pass the
926 current_buffer as the first argument to modify_region.
927 * casefiddle.c (casify_region): Same.
929 * dispnew.c (direct_output_for_insert): Compute the face of the
930 character we're inserting properly.
932 * xterm.c (dumpglyphs): Pass the proper arguments to intern_face.
934 * xterm.c (dumpglyphs): Don't increment left twice.
936 * intervals.c (set_point): Check for point out of bounds before
937 checking for an empty interval tree.
939 * cmds.c (Fforward_char): Check proposed new position, and then
940 set point, instead of setting point to a potentially invalid
943 * lread.c, data.c: If STDC_HEADERS is #defined, include <stdlib.h>
944 to get the extern declarations for atof. That's where it is in
947 1993-05-12 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
949 * ymakefile (xfaces.o): Add window.h to the dependencies.
951 * xfaces.c (intern_frame_face): Exchange order of arguments, to
952 make callers correct.
954 * xfaces.c (compute_char_face): Notice the next property change
957 * xfaces.c (face_name_id_number): Return 0 (the default face) if
958 the name is undefined.
960 * xfaces.c (Fset_face_attribute_internal): Do nothing unless FRAME
963 * xdisp.c (copy_rope, copy_part_of_rope): Add face argument.
964 (display_text_line): Initialize current_face to zero. Apply it
965 to characters as we write them to the display matrix.
966 (display_string): Pass the new argument to copy_rope.
968 * xdisp.c (display_text_line): Handle the locations of face
971 * textprop.c (Fnext_single_property_change,
972 Fprevious_single_property_change): Pass arguments to textget in
975 * ymakefile (xfns.o): Remove duplication of buffer.h in dependencies.
977 * ymakefile ($(OLDXMENU)): Remove extraneous call to `rm'.
979 1993-05-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
981 * keymap.c (Faccessible_keymaps): Use whatever size the vector has.
982 (Fwhere_is_internal): Likewise.
983 (describe_vector): Likewise.
984 (current_minor_maps): Call Findirect_function, so symbols
985 can be used in place of actual maps.
987 * xdisp.c (display_text_line): Use break; to exit loop at eol.
988 Duplicate the short MAKE_GLYPH loop after the main loop.
989 If no display table, do obey selective_display_ellipses.
990 (copy_part_of_rope): Arg FROM is now Lisp_Object *.
992 * xfaces.c: Do include window.h.
993 (compute_char_face): Supply third arg of Fget_text_property.
995 * keyboard.c (make_lispy_event): Don't set shift modifier for C-^.
997 * callproc.c (child_setup): Omit duplicates from new env array.
999 1993-05-10 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1001 * fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
1002 filesystem being ro, since Solaris 2.1 doesn't.
1003 (file-writable-p): Call ro_fsys.
1004 * s/sol2.h (SOLARIS_BROKEN_ACCESS): Define this.
1006 * systime.h: Use the strategy from getdate.y to include the proper
1007 combination of <time.h> and <sys/time.h>.
1009 * xfns.c (Fx_create_frame): Use an XLFD name for the default font,
1010 instead of "9x15" or whatever it was.
1012 * xdisp.c (display_text_line): Make face-handling code conditional
1013 on HAVE_X_WINDOWS macro. Perhaps this isn't the best approach,
1014 but it'll do for now.
1016 * xdisp.c (display_text_line): We can't use the FRAME_DEFAULT_FACE
1017 macro here; that's x-specific. Just don't pass the second
1019 * xfaces.c (compute_glyph_face): Remove the BASIC_FACE argument;
1020 use F's default face.
1022 1993-05-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1024 * xfaces.c (Fmake_face_internal): Do nothing for non-X frames.
1026 * dispextern.h (struct face): Add cached_index member.
1027 * xfaces.c (get_cached_face): Use it to avoid unnecessary
1028 searches of face_vector.
1030 * xfaces.c (intern_face): Renamed from get_display_face.
1032 * xfns.c (x_make_gc): After building the GC's for the frame, call
1033 init_frame_faces to set up the first two faces.
1034 * xfaces.c (init_frame_faces): Don't just try to copy the default
1035 and mode line faces from some other random frame; instead, consult
1036 the normal_gc and reverse_gc members of the frame, and build the
1037 faces based on their parameters.
1039 Adjust the face computation functions to return frame face ID's,
1040 not pointers to display faces; since we call these functions
1041 during display construction, we don't want the display faces yet.
1042 * xfaces.c (intern_frame_face): New function.
1043 (compute_char_face, compute_glyph_face): Apply intern_frame_face
1044 to the computed face, and return the frame face's ID, instead of
1045 calling intern_face and returning a pointer to a display frame.
1047 * xfaces.c: Describe the facial data structures. It took me a
1048 while to figure them out; perhaps this will save someone else the
1051 Arrange to tell redisplay about changes in overlays.
1052 * xdisp.c (redisplay_region): New function.
1053 * buffer.c (Fmove_overlay): Call redisplay_region on the areas the
1054 overlay has enclosed or left.
1055 (Fdelete_overlay): Call redisplay_region on the area the overlay
1057 (Foverlay_put): Call redisplay_region on the area the overlay now
1058 occupies; we may have put a face property on it.
1060 * buffer.c (Fmove_overlay): Doc fix.
1062 * xdisp.c (redisplay): If we're doing a thorough redisplay (all
1063 windows on all frames involved), go ahead and flush the GC cache -
1064 call clear_face_vector.
1066 * xdisp.c (display_text_line): Apply faces to characters
1067 according to overlays and text properties; use
1068 compute_char_face and compute_glyph_face to figure out what
1069 face to use, and where a new face starts.
1070 * xterm.c (dumpglyphs): Use the upper bits of the glyphs to decide
1071 which frame face to use. Call GLYPH_FOLLOW_ALIASES to make sure
1072 we're implementing the glyph table properly. If we're not using
1073 the default or mode line face, call intern_face to find a display
1074 face for the frame face selected by the glyph code. Implement
1075 underlining. Remove the `font' argument; we have to derive this
1076 from the frame and face anyway. Change all callers.
1077 * disptab.h (GLYPH_FOLLOW_ALIASES): New macro.
1079 * xterm.c (x_destroy_window): Call free_frame_faces.
1081 The GNU coding standards specify that CFLAGS should be left for
1083 * ymakefile (ALL_CFLAGS): Set this to the long string of
1084 compilation switches, not CFLAGS. Changed all uses.
1085 (CFLAGS): Make this default to just -g.
1086 (.c.o): Define new default rule, to make sure that the right flags
1087 get to the compilations.
1089 1993-05-09 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1091 * keyboard.c (read_char): Exit kbd macro if Vexecuting_macro is t.
1093 * pwd.h: File deleted.
1095 1993-05-08 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1097 * s/sunos4shr.h: Apply changes from David J. Mackenzie; this isn't
1098 used by any configuration right now, but he's trying to make it
1100 #include "sunos4-1.h" instead of "bsd4-2.h".
1101 (O_NDELAY): Don't define this.
1102 (SYSTEM_MALLOC): Don't define this, either.
1103 (LD_SWITCH_SYSTEM): Remove the definition for this.
1105 * Makefile.in (DEFS): Remove this; we have configure build a
1106 config.h file directly, instead of having lots of -D flags.
1108 * Makefile.in (CFLAGS): Don't make this carry DEFS from the
1109 configure script; the coding standards say that CFLAGS should be
1110 left for the user to tweak.
1112 1993-05-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1114 * keyboard.c (do_mouse_tracking): Now static.
1116 * xmenu.c (Fx_popup_menu): Add a vector of prefix keys for the panes.
1117 (keymap_panes): Allocate that vector.
1118 (single_keymap_panes): Fill in that vector.
1119 (xmenu_show): Return a list of events, not just one event.
1121 * keyboard.c (read_char_menu_prompt): Expect Fx_popup_menu
1122 to return a list of events. Don't lose any of them.
1124 * xfns.c (Fx_get_mouse_event, Fx_mouse_events): Code deleted.
1125 * window.c (Vmouse_event): Var deleted.
1126 (syms_of_window): Don't make it a Lisp var.
1128 * keyboard.c (read_avail_input, Fset_input_mode): Make
1129 meta_key a three-value variable to support 8-bit input.
1131 1993-05-07 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1133 * ymakefile [__GNUC__ && __GNUC__ > 1] (LIB_GCC): Set this even if
1136 * ymakefile ($(OLDXMENU)): Remove the link before we re-create it;
1137 not all versions of ln have the `-f' flag. Use the LN_S variable,
1138 inherited from src/Makefile.
1140 * Makefile.in (LN_S): New variable, edited by top Makefile.
1141 (SUBMAKEFILE): New variable, containing all flags to pass to
1144 * config.h.in: Adjust this for use by autoconf's AC_CONFIG_HEADER,
1145 instead of AC_OUTPUT.
1147 * xfaces.c (get_display_face): Use face_eql instead of writing it out.
1149 1993-05-06 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1151 * keymap.c (Fwhere_is_internal): If FIRSTONLY is non-nil, avoid
1152 returning a non-ascii key sequence unless FIRSTONLY is the symbol
1155 * config.h.in: Remove mention of GLYPH datatype; that shouldn't be
1157 * lisp.h (GLYPH, MAKE_GLYPH, GLYPH_CHAR, GLYPH_FACE): New macros.
1159 1993-05-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1161 * xfns.c (x_get_arg): Call Fintern, not intern.
1163 * systime.h [SCO]: Include time.h.
1164 * s/sco4.h: New file.
1166 * ymakefile (LIBXMENU): Delete -loldX.
1168 * emacs.c (main): Handle -display like -d.
1170 1993-05-05 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1172 * s/template.h: Explain the relative significance of the SIGIO and
1173 INTERRUPT_INPUT macros.
1175 * ymakefile (buffer.o, insdel.o): Note that these files also
1176 depend on blockinput.h.
1178 * blockinput.h (UNBLOCK_INPUT): We cannot assume that SIGIO is
1179 defined everywhere this file is #included; merge the two
1180 definitions for defined (SIGIO) and ! defined (SIGIO) into one,
1181 which calls reinvoke_input_signal if interrupt_input_pending is
1183 * keyboard.c (reinvoke_input_signal): New function.
1185 1993-05-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1187 * window.c (Fdisplay_buffer): Add space to prompt.
1189 1993-05-04 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1191 * keyboard.c (syms_of_keyboard): Doc fix for
1192 extra-keyboard-modifiers.
1194 * lisp.h (CHAR_ALT, CHAR_SUPER, CHAR_HYPER, CHAR_SHIFT, CHAR_CTL)
1195 (CHAR_META): Shift these all up one bit, back to where they were.
1197 1993-05-02 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1199 * keymap.c (Fdefine_prefix_command): Doc fix.
1201 * ymakefile (C_DEBUG_SWITCH): Undo April 10 change.
1203 1993-05-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1205 * keyboard.c (Fsuspend_emacs): Doc fix.
1207 1993-04-30 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1209 * data.c (Ffset): Refuse to set the function value of t or nil.
1211 1993-04-29 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1213 Implement extra_keyboard_modifiers properly.
1214 * keyboard.c (syms_of_keyboard): Doc fix for
1215 extra-keyboard-modifiers; use the same modifier bits as we do for
1217 (read_char): Apply all the modifiers in extra_keyboard_modifiers
1218 to the input characters, so you can get hyper, super, and the rest
1220 * xterm.c (x_emacs_to_x_modifiers): New function.
1221 (x_convert_modifiers): Renamed to x_x_to_emacs_modifiers, for
1222 consistency. Callers changed.
1223 (XTread_socket): Apply x_emacs_to_x_modifiers to
1224 extra_keyboard_modifiers before setting the state member of the
1225 event; this will get all the modifiers on ASCII characters.
1227 * xterm.c (x_text_icon): Don't call XSetIconName; it should be
1228 unnecessary, and perhaps it's killing the icon pixmap.
1230 * lisp.h (CHAR_ALT, CHAR_SUPER, CHAR_HYPER): New constants, in
1232 * termhooks.h (alt_modifier, super_modifier, hyper_modifier)
1233 (shift_modifier, ctrl_modifier, meta_modifier): Define these in
1234 terms of the CHAR_mumble macros, to avoid having the same thing
1235 defined in two places.
1237 * keyboard.c (kbd_buffer_get_event): Don't generate switch-frame
1238 events if they'd only switch to the frame already selected. This
1239 avoids lots of extra switch-frame events when using a separate
1242 1993-04-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1244 * keyboard.c (Fthis_command_keys): Doc fix.
1246 * process.c (wait_reading_process_input): Move the status_notify
1247 call before the set_waiting_for_input call.
1249 * fileio.c (Fexpand_file_name): Undo last change--too risky for now.
1251 * data.c (Fdefine_function): New function (same code as Fdefalias).
1253 1993-04-28 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
1255 * eval.c (do_autoload): Fixed the bug in the autoload-saving code.
1257 1993-04-28 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1259 * keyboard.c (Fcurrent_input_mode): New function.
1261 1993-04-27 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
1263 * eval.c (un_autoload): Don't try to save old autoload forms when
1264 we load something in. Something about the code now conditioned
1265 out by UNLOAD was screwing up ordinary autoloads, notably of
1266 picture.el. When I figure out what, I'll fix and re-enable this
1269 1993-04-27 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1271 * buffer.c (syms_of_buffer): Doc fix for buffer-display-table.
1273 * systime.h: Doc fix.
1274 (EMACS_SET_USECS): Remember that a `usec' is a microsecond, not a
1275 millisecond. What's three orders of magnitude between friends?
1276 * dispnew.c (Fsit_for, Fsleep_for): Remember to multiply the
1277 `milliseconds' argument by 1000 to get microseconds.
1279 1993-04-26 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1281 * fileio.c (Fexpand_file_name):
1282 Don't remove trailing / from NEWDIR if just "/".
1284 1993-04-26 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1286 * m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/mips.h,
1287 * m/sps7.h, s/hpux.h, s/usg5-4.h (HAVE_DUP2): Removed; derived by
1289 * s/hpux.h, s/irix3-3.h, s/aix3-1.h (HAVE_GETHOSTNAME): Removed;
1290 derived by configure script.
1292 Arrange for Fy_or_n_p to put off switch-frame events.
1293 * lread.c (read_filtered_char): New function, which contains the
1294 code which used to be in Fread_char, Fread_event, and
1295 Fread_char_exclusive; there was a lot of common code.
1296 (Fread_char, Fread_event, Fread_char_exclusive): Rewrite in terms
1297 of read_filtered_char.
1298 * lisp.h (read_filtered_char): Declare this extern here.
1299 * fns.c (Fy_or_n_p): Call read_filtered_char, arranging to delay
1300 switch-frame events.
1302 * keyboard.c (read_key_sequence): Let the `modifiers' variable in
1303 the code which deals with KEY being unbound be an int, not a
1306 * config.h.in (getenv): Don't test THIS_IS_YMAKEFILE to see if we
1307 should exclude the getenv declaration; instead, test NOT_C_CODE.
1308 Per suggestion from Francesco Potortì.
1309 * ymakefile (NOT_C_CODE): Define this; it's true, and useful.
1311 * dispnew.c (Fsleep_for, Fsit_for): Allow SECONDS to be a
1312 floating point value.
1314 1993-04-26 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
1316 * sysdep.c (read_pending_input):
1317 Fix the garbaged-modifiers bug under System Vs previous
1320 1993-04-25 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1322 * systty.h (EMACS_GET_TTY, EMACS_SET_TTY): Move these into
1323 functions in sysdep.c.
1324 * sysdep.c (emacs_get_tty, emacs_set_tty): Here they are.
1326 * sysdep.c (emacs_set_tty): Call tcsetattr over and over again
1327 until it does all of what we ask it to, or returns an error.
1329 * search.c (Freplace_match): Arrange for markers sitting at the
1330 beginning or end of the original text to float to the
1331 corresponding position in the replacement text.
1333 1993-04-25 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
1335 * window.c (Fset-window-buffer):
1336 Set horizontal-scrolling on a window to zero when
1337 we connect it to a new buffer.
1339 * buffer.c: Doc fix.
1341 1993-04-24 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1343 Make the modifier manipulation functions more robust. The old way
1344 caused a bug once, and probably would again.
1345 * termhooks.h (alt_modifier, super_modifier, hyper_modifier)
1346 (shift_modifier, ctrl_modifier, meta_modifier): Shift these all
1347 down one bit in value, to avoid sign extension problems.
1348 * lisp.h (CHAR_META, CHAR_CTL, CHAR_SHIFT): Fix these definitions too.
1349 * keyboard.c (lispy_modifier_list): Ignore modifier bits beyond
1350 what our table of modifier names can handle.
1351 (apply_modifiers): Don't abort if you see extra modifier bits,
1354 1993-04-23 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
1356 * data.c (Fdefine_function):
1357 Changed name back to Fdefalias, so we get things
1358 in a known-good state.
1360 * buffer.h (BUF_NARROWED, NARROWED):
1361 New macros to test whether a region
1362 restriction has narrowed the buffer.
1364 1993-04-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1366 * systime.h: Comment fixes.
1368 * data.c (Fdefine_function): New function.
1370 * lisp.h (LOADHIST_ATTACH): New macro.
1371 (Vcurrent_load_list, Vload_history): Vars declared.
1373 * eval.c (defun, defmacro, defvar, defconst):
1374 Attach symbol argument to the list of globals for the input source.
1375 (do_autoload): Save the old autoloads, in case we ever unload.
1377 * fns.c (provide, require): Put appropriately-marked
1378 conses in the current-globals list.
1380 * lread.c (readevalloop):
1381 New argument is the source file name (or nil if none).
1382 All calls changed. Do the two-step
1383 necessary to call build_load_history with the correct current-globals
1384 list for the current recursion.
1385 (build_load_history): New function.
1386 (eval_region, eval_buffer): Call readevalloop with new arg.
1387 (load_history): New variable.
1389 1993-04-16 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
1391 * lread.c (readevalloop): New argument is the source file name (or
1392 nil if none). All calls changed. Do the two-step
1393 necessary to call build_load_history with the correct current-globals
1394 list for the current recursion.
1395 (build_load_history): New function.
1396 (Feval_region, Feval_buffer): Call readevalloop with new arg.
1397 (Vload_history): New variable.
1399 * fns.c (Fprovide, Frequire): Put appropriately-marked
1400 conses in the current-globals list.
1402 * eval.c (Fdefun, Fdefmacro, Fdefvar, Fdefconst):
1403 Attach symbol argument to the list of globals for the input source.
1404 (do_autoload): Save the old autoloads, in case we ever unload.
1406 * data.c (Fdefine_function): New function.
1408 1993-04-16 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1410 * fileio.c (Fmake_symbolic_link): If a file already exists under
1411 the link's filename, delete the file which the link
1412 would replace, not the file the link would point at.
1414 * config.h.in (volatile): Don't define this to be the empty string
1415 if some file has #defined HAVE_VOLATILE.
1417 * emacs.c (SEPCHAR): Instead of defining this to be ',' on VMS and
1418 ':' elsewhere, just have it default to ':' if not #defined, and
1419 #define it to be ',' in s/vms.h; OS/2 will need it to be ';'.
1420 * s/vms.h (SEPCHAR): #define this to be ','.
1421 * s/template.h (SEPCHAR): Mention this.
1423 1993-04-13 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1425 * s/vms.h (xfree): #define this to emacs_xfree, to avoid case
1426 conflict with XFree; on VMS, external symbols are case-insensitive.
1428 * s/usg5-4.h (HAVE_GETTIMEOFDAY): Deleted; ../configure figures
1431 Changes for Emacs 19 from Thorsten Ohl <ohl@chico.harvard.edu>:
1432 * s/mach2.h: Copied from the Emacs 18.59 distribution.
1433 Don't define NO_REMAP, define START_FILES as
1434 `pre-crt0.o' instead. Define LIB_MATH as `-lm', to override the
1435 default `-lm -lc' (there is no libc on the NeXT).
1436 * ymakefile (STARTFILES): Allow config.h to set this value even if
1437 ORDINARY_LINK is defined.
1438 * unexnext.c: Fix subdirectories for the machine dependent include
1439 files for NeXTStep 3.0; #include <mach/mach.h> and
1440 <mach-o/loader.h> instead of <mach.h> and <sys/loader.h>.
1441 (getsectbyname): Remove prototype for this; the system #include
1442 files take care of that.
1443 (malloc_cookie): New variable.
1444 (unexec_doit): Set malloc_cookie to the result returned by
1446 * emacs.c (main): Declare malloc_cookie to be extern, so that we can
1447 get the value set when we dumped and pass it to malloc_jumpstart.
1448 * systime.h: The NeXT has a timezone function.
1450 1993-04-12 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1452 * ymakefile ($(OLDXMENU)): Remove $(OLDXMENU) before trying to
1453 link in a new version.
1455 * lisp.h (Qrange_error, Qdomain_error, Qsingularity_error)
1456 (Qoverflow_error, Qunderflow_error): Add extern to these declarations.
1458 1993-04-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1460 * xfaces.c: Don't include Xmu/Drawing.h.
1462 1993-04-10 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1464 * Makefile.in (xmakefile): Recognize the -O option with a numeric
1467 * ymakefile (C_DEBUG_SWITCH): If we're using version 2 of GCC or
1468 higher, use -O99 instead of plain -O.
1470 1993-04-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1472 * keyboard.c (command_loop_1): Rebuild menu bar if
1473 update_mode_lines is set.
1475 long_to_cons and cons_to_long are generally useful things; they're
1476 needed whether or not X is defined.
1477 * xselect.c (long_to_cons, cons_to_long): Moved from here...
1478 * data.c (long_to_cons, cons_to_long): ... to here.
1479 * lisp.h (long_to_cons, cons_to_long): Add extern declaration.
1481 * xmenu.c (Qmenu_enable): Definition moved...
1482 (syms_of_xmenu): ... along with initialization ...
1483 * keyboard.c (Qmenu_enable): ... to here ...
1484 (syms_of_keyboard): ... and here.
1486 * keyboard.c (kbd_buffer_get_event): If we get a selection clear
1487 or selection request event, but we were compiled without the
1488 window-system-specific code to handle it, abort. Don't try to
1489 call a function which doesn't exist.
1491 * keyboard.c (make_lispy_event): In the code which processes mouse
1492 clicks, declare f to be a FRAME_PTR, not a struct frame *; this
1493 works when MULTI_FRAME is not #defined.
1495 * xfaces.c (sort_overlays): Define this to be static, as declared.
1497 * callproc.c (relocate_fd): Make messages string literals, not
1500 * alloc.c (__malloc_hook, __realloc_hook, __free_hook): Declare
1501 these extern, not static. (!)
1503 * alloc.c (__malloc_hook, old_malloc_hook, __realloc_hook)
1504 (old_realloc_hook): Declare that the functions these point to return
1507 Adjust for autoconf merger.
1508 * config.h.in: Add extra line to top, in case autoconf gets fixed
1509 and decides not to add Makefile-style comments to the top of the
1510 files it generates which we are forced to lop off.
1511 Indicate that the boolean macros here get their definitions via
1512 the DEFS Makefile variable.
1513 Adjust the operating system and machine #includes to use
1514 autoload's @cookies@.
1515 (RETSIGTYPE): Give this a default value.
1516 (SIGTYPE): Set this from RETSIGTYPE.
1517 (LD_SWITCH_X_SITE, C_SWITCH_X_SITE): Get values via @cookies@.
1518 * Makefile.in (DEFS): Renamed from CONFIG_CFLAGS.
1519 (xmakefile): Pass CFLAGS to ${CPP}.
1521 * buffer.c (Fmake_overlay, Fmove_overlay): New optional BUFFER
1523 (recenter_overlay_lists): New argument BUF, to use instead of the
1525 (Foverlay_recenter): Pass the appropriate arguments to
1526 recenter_overlay_lists.
1528 * buffer.c (Fdelete_overlay): Don't assume that overlay is in the
1529 current buffer. Don't forget to declare the argument a Lisp_Object.
1531 * dispnew.c (getenv): Extern declaration deleted; this is done in
1534 * Makefile.in (tagsfiles): Remove external-lisp from this list of
1535 files; we're not distributing it, so the normal build process
1536 shouldn't depend on it.
1538 * dispnew.c (init_display): Compare the return value of getenv to
1539 zero before setting display_arg, instead of just using the pointer
1542 1993-04-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1544 * xdisp.c (message, message1): If noninteractive and
1545 cursor_in_echo_area, don't print a newline at end of message.
1547 * fns.c (Fy_or_n_p): Echo the answer just once, at exit.
1549 * keyboard.c (echo_dash): Do nothing if echoptr is 0.
1551 * buffer.c (Fkill_all_local_variables): Store each var's current value
1552 in the buffer's alist entry, before reverting to the default value.
1554 1993-04-07 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1556 * keyboard.c (apply_modifiers): Fix typo in sanity check.
1558 * keyboard.c (interrupt_input_blocked, interrupt_input_pending):
1559 Remove `extern' keywords - these are the definitions.
1561 1993-04-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1563 * blockinput.h (UNBLOCK_INPUT): Fix typo.
1564 (interrupt_input_blocked): Make this signed int.
1566 * search.c (search_buffer): Fix typo in previous change.
1568 * insdel.c, buffer.c: Include blockinput.h.
1570 * xterm.c: Fix typo in comment delimiter.
1572 1993-04-07 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
1574 * m/imbrs6000.h: If we're using GCC, define ORDINARY_LINK instead
1575 of defining LINKER to use cc.
1576 * s/aix3-1.h (LINKER): Don't use cc for linking command if we're
1578 * s/aix3-2.h (SYSTEM_MALLOC): Undefine this.
1580 * xterm.c (updating_frame): Declare this extern instead of static,
1581 so it's the same variable as the updating_frame in term.c.
1582 (XTupdate_begin, XTupdate_end): Don't bother to set
1583 updating_frame; the term.c functions take care of that for us.
1585 1993-04-05 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
1587 * s/vms.h (EXEC_SUFFIXES): Add definition for this.
1589 1993-03-31 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1591 * xfaces.c: Doc fixes.
1593 Put interrupt input blocking in a separate file from xterm.h.
1594 This isn't specific to X, and it allows us to avoid #including
1595 xterm.h in files that don't really have anything to do with X.
1596 * blockinput.h: New file.
1597 * xterm.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
1598 (UNBLOCK_INPUT_RESIGNAL): These are now in blockinput.h.
1599 (x_input_blocked, x_pending_input): Deleted; there are analogs
1600 in blockinput.h called interrupt_input_blocked and
1601 interrupt_input_pending.
1602 * keyboard.c (interrupt_input_blocked, interrupt_input_pending):
1603 New variables, used by the macros in blockinput.h.
1604 * xterm.c: #include blockinput.h.
1605 (x_input_blocked, x_pending_input): Deleted.
1606 (XTread_socket): Test and set interrupt_input_blocked and
1607 interrupt_input_pending instead of the old variables.
1608 * alloc.c, xfaces.c, xfns.c, xmenu.c, xselect.c, keymap.c:
1609 #include blockinput.h.
1610 * eval.c: #include blockinput.h instead of xterm.h.
1611 * keyboard.c: #include blockinput.h.
1612 (input_poll_signal): Just test
1613 interrupt_input_blocked, instead of testing HAVE_X_WINDOWS and
1616 Block the processing of interrupt input while we're manipulating the
1618 * alloc.c (xfree): New function, to make it easy to free things safely.
1619 (xmalloc, xrealloc): Block X input while doing the deed.
1620 (VALIDATE_LISP_STORAGE, gc_sweep, compact_strings): Use xfree
1622 (uninterrupt_malloc): New function, to install input-blocking
1623 hooks into the GNU malloc routines.
1624 * emacs.c [not SYSTEM_MALLOC] (main): Call uninterrupt_malloc
1626 * alloc.c (make_interval, make_float, Fcons, Fmake_vector)
1627 (Fmake_symbol, Fmake_marker, make_uninit_string, Fgarbage_collect):
1628 Use xmalloc instead of malloc; don't bother to check if out of
1630 (Fgarbage_collect): Call xrealloc instead of realloc.
1631 * buffer.c: Use xmalloc and xfree instead of malloc and free;
1632 don't bother to check if out of memory here.
1633 (Fget_buffer_create): Put BLOCK_INPUT/UNBLOCK_INPUT pair around
1634 calls to ralloc routines.
1636 * lisp.h (xfree): New extern declaration.
1637 * xfaces.c (xfree): Don't #define this to be free; use the
1638 definition in alloc.c.
1639 * dispnew.c, doc.c, doprnt.c, fileio.c, lread.c, term.c, xfns.c,
1640 * xmenu.c, xterm.c: Use xfree instead of free.
1641 * hftctl.c: Use xfree and xmalloc instead of free and malloc.
1642 * keymap.c (current_minor_maps): BLOCK_INPUT while calling realloc
1644 * search.c: Since the regexp routines can malloc, BLOCK_INPUT
1645 while running them. #include blockinput.h.
1646 * sysdep.c: #include blockinput.h. Call xfree and xmalloc instead
1647 of free and malloc. BLOCK_INPUT around routines which we know
1650 * ymakefile (keyboard.o, keymap.o, search.o, sysdep.o, xfaces.o)
1651 (xfns.o, xmenu.o, xterm.o, xselect.o, alloc.o, eval.o): Note that
1652 these depend on blockinput.h.
1654 * keyboard.c (parse_modifiers, apply_modifiers): Make sure we're
1655 not trying to create modifier masks using integers which are
1656 unrepresentable as lisp values.
1658 1993-03-30 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1660 New macros NULL_DEVICE and EXEC_SUFFIXES, to give the name of the
1661 equivalent of /dev/null, and the suffixes used by executable
1662 files. This is simple, and helps people porting Emacs to other
1664 * process.h (NULL_DEVICE): Give this a default value.
1665 * process.c (Fstart_process): Pass EXEC_SUFFIXES to openp.
1666 (Fprocess_send_eof): Use NULL_DEVICE instead of "/dev/null".
1667 * callproc.c (Fcall_process): Pass EXEC_SUFFIXES to openp.
1668 Use NULL_DEVICE instead of "/dev/null".
1669 * s/vms.h (NULL_DEVICE): #define this.
1671 Rename int-to-string to number-to-string, since it can handle
1672 floating-point as well as integer arguments. subr.el defines the
1673 former as an alias for the latter.
1674 * data.c (Fnumber_to_string): Renamed from Fint_to_string.
1675 (wrong_type_argument): Adjust caller.
1676 (syms_of_data): Adjust defsubr.
1677 * fns.c (concat): Adjust caller.
1678 * lisp.h (Fnumber_to_string): Adjust extern declaration.
1679 * mocklisp.c (Finsert_string): Adjust caller.
1680 * process.c (status_message): Adjust caller.
1682 1993-03-28 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
1684 * systty.h [NO_PTY_H]: Don't include pty.h.
1686 * m/delta88k.h [USG5_4]: Alternate defining of LIBS_SYSTEM,
1687 LIBX11_SYSTEM, HAVE_RANDOM, BSTRING.
1688 (NO_PTY_H): Defined.
1690 * fileio.c (Fwrite_region): Don't fail to set visit_file.
1692 * keyboard.c (command_loop_1): Clear force_start of selected_window
1693 after reading each key sequence.
1694 (read_char): Clear Vquit_flag when we return C-g for it.
1696 * fileio.c (Fexpand_file_name): Default DEFALT at beginning,
1697 before expanding it. But avoid unneeded or infinite recursive expand.
1699 1993-03-26 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
1701 * editfns.c (Fchar_equal): Don't ignore high bits of character.
1703 * fileio.c (Fwrite_region): Set visit_file after expanding file arg.
1704 Also expand VISIT arg if specified.
1706 * frame.c (make_frame): Init face_alist field.
1708 1993-03-25 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1710 * xselect.c (SELECTION_QUANTUM): Don't use XMaxRequestSize on R3;
1711 access the display structure directly.
1713 1993-03-25 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
1715 * ymakefile (xfns.o): Depend on buffer.h.
1717 * buffer.h (struct buffer): Field `fieldlist' deleted.
1719 * search.c (Freplace_match): Clean up criterion about converting case.
1720 If old text has any capitalized words, capitalize new text.
1722 * xfaces.c: New file.
1724 * ymakefile (XOBJ): Add xfaces.o.
1725 (xfaces.o): New target.
1726 * emacs.c (main): Call syms_of_xfaces.
1728 * buffer.h (OVERLAY_START, OVERLAY_END, OVERLAY_VALID): New macros.
1729 (OVERLAY_POSITION): Likewise.
1730 (searchbuf): Decl deleted--doesn't belong here.
1731 Delete include of regex.h for VMS.
1732 * dired.c (searchbuf): Declare here.
1734 * frame.h (struct frame): New field face_alist.
1735 * alloc.c (mark_object): Mark face_alist of a frame.
1737 * ymakefile (xselect.o): Depend on dispextern.h.
1739 * xterm.h (FRAME_FACES, FRAME_N_FACES, FRAME_DEFAULT_FACE)
1740 (FRAME_MODE_LINE_FACE): New macros.
1741 (struct x_display): New fields faces, n_faces.
1743 * dispextern.h (struct face): New fields pixmap_h, pixmap_w.
1744 Field `font' is now a pointer.
1746 * fns.c (Fy_or_n_p): Ensure cursor_in_echo_area = 0 when quit.
1748 1993-03-24 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1750 * dispnew.c (getenv): Add extern declaration.
1752 * ymakefile (really-oldXMenu): Pass C_SWITCH_SITE and
1753 C_SWITCH_SYSTEM to the inferior make as separate flags, instead of
1754 passing just C_SWITCH_SITE as CFLAGS.
1756 * keymap.c (Fkeymapp): Doc fix.
1758 * xterm.h (x_focus_frame): Add extern keyword to declaration.
1760 * xterm.c [VMS]: Don't #include <sys/termio.h> and <string.h>.
1761 * xfns.c [VMS]: Get the gray_bits from [.bitmaps]gray.xbm.
1762 * process.c [VMS] (DCL_PROMPT): Remove hack.
1763 (WIFSTOPPED, WIFSIGNALED, WIFEXITED, XRETCODE, WSTOPSIG)
1764 (WCOREDUMP, WTERMSIG): New dummy definitions.
1765 (deactivate_process): Add missing semicolon.
1766 * dispnew.c (init_display): Get display name from environment
1767 properly on VMS as well as Unix.
1769 1993-03-24 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
1771 * buffer.c (init_buffer_once, reset_buffer):
1772 Delete last vestige of fieldlist slot.
1773 (Fregion_fields): Finally deleted.
1775 * keymap.c (push_key_description): Ignore bits above meta_modifier.
1777 1993-03-23 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
1779 * buffer.c (overlays_at, recenter_overlay_lists): New functions.
1780 (Fmake_overlay, Fdelete_overlay, Foverlay_get, Foverlay_put): Likewise.
1781 (Fmove_overlay, Foverlays_at, Fnext_overlay_change): Likewise.
1782 (Foverlay_lists, Foverlay_recenter): Likewise.
1784 * buffer.h (struct buffer): New fields overlay_center,
1785 overlays_before, overlays_after.
1787 1993-03-23 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1789 * config.h.in (HAVE_XFREE386): New flag, set by configure script.
1790 If it's set, #define LIBX11_SYSTEM and HAVE_RANDOM as appropriate
1792 * sysdep.c (random, srandom): Don't define these if HAVE_RANDOM is
1795 * config.h.in (C_SWITCH_X_SITE, LD_SWITCH_X_SITE): New flags.
1796 * ymakefile (C_SWITCH_X_SITE, LD_SWITCH_X_SITE): Provide default
1797 values. Include C_SWITCH_X_SITE in CFLAGS, include
1798 LD_SWITCH_X_SITE in LIBX, and pass C_SWITCH_X_SITE to the make
1799 which builds the X Menu library.
1801 1993-03-22 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1803 * xfns.c (Fx_parse_geometry): Renamed from Fx_geometry.
1804 (Fx_color_defined_p): Renamed from Fx_defined_color.
1805 (syms_of_xfns): Adjusted.
1807 1993-03-22 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
1809 * indent.c (current_column, Findent_to, position_indentation)
1810 (Fmove_to_column, compute_motion): Allow tab_width up to 1000.
1812 * xdisp.c (display_string, display_text_line):
1813 Allow tab_width up to 1000.
1815 * keyboard.c (Fsuspend_emacs):
1816 Change suspend-hooks back to suspend-hook and make it a normal hook.
1818 * s/dgux.h: Decide automatically whether to use COFF or ELF.
1820 1993-03-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1822 * fns.c (Fy_or_n_p): Handle `recenter' response type.
1824 * s/dgux.h (HAVE_TERMIO, SIGNALS_VIA_CHARACTERS): Defined.
1826 1993-03-21 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1828 * frame.c (Fhandle_switch_frame): Renamed from Fselect_frame.
1829 Doc changed in anticipation of new purpose.
1830 (Fselect_frame): Just call Fhandle_switch_frame for now.
1832 1993-03-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1834 * xdisp.c (decode_mode_spec): Handle `%l'.
1835 (display_count_lines): New function.
1836 (redisplay_window): Update base_line_number and base_line_pos fields.
1837 Always update mode line if it's an integer.
1838 * window.h (struct window):
1839 New fields base_line_number and base_line_pos.
1841 * window.c (Fselect_window): Use Fhandle_switch_frame.
1842 (Fset_window_configuration): Likewise.
1844 1993-03-20 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1846 Use the `visibility' parameter to determine the initial state of
1847 the frame, instead of the `iconic-startup' and
1848 `suppress-initial-map' parameters.
1849 * xfns.c (x_icon): Test the Qvisibility parameter against Qicon,
1850 instead of the Qiconic_startup against Qt.
1851 (x_create_frame): Test Qvisibility against Qnil and
1852 Qicon, instead of testing Qsuppress_initial_map and Qvisibility.
1853 (Qicon): New symbol.
1854 (Qiconic_startup, Qsuppress_initial_map): Removed.
1855 (syms_of_xfns): Adjusted appropriately.
1857 * xfns.c (x_set_visibility): Instead of interpreting only Qt as
1858 `make the frame visible' and everything else as `iconify the
1859 frame', interpret Qicon as `iconify the frame' and everything else
1860 as `make the frame visible.'
1862 * xfns.c (x_get_arg): When the type of the resource is `symbol',
1863 return `true' and `on' as Qt, and `false' and `off' as Qnil.
1865 1993-03-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1867 * emacs.c (init_cmdargs): Fix simple bug in previous change.
1869 1993-03-20 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1871 * dispnew.c (Fsleep_for): Make this take two arguments SECONDS and
1872 MILLISECONDS, which add, rather than a second argument which says
1873 "treat the first argument as milliseconds."
1874 (Fsit_for): Same thing.
1875 (Fsleep_for_milliseconds): Deleted; this can be done with Fsleep_for.
1877 * process.c (wait_reading_process_input): Doc fix.
1879 * systime.h (EMACS_HAS_USECS): #define this if HAVE_TIMEVAL is
1882 * dispnew.c (sit_for): Doc fix.
1884 * sysdep.c (reset_sys_modes): Fix usage of EMACS_SET_TTY.
1886 * callproc.c (child_setup): Make sure that in, out, and err are
1887 not less than three.
1888 (relocate_fd): New function.
1890 * xterm.c (x_term_init): If the X connection is already in file
1891 descriptor zero, don't dup it and close the old one.
1893 * s/hpux8.h, s/sunos4-1.h (OLDXMENU_OPTIONS): Define this, as in
1896 * xfns.c (Fx_open_connection): If we have X11R5, use
1897 XrmSetDatabase to set the display's database. In older versions,
1898 just store the value into x_current_display->db.
1899 * xterm.h (HAVE_X11R5): Define this where appropriate.
1901 * frame.c (Fraise_frame, Flower_frame): Renamed from
1902 Fframe_to_front and Fframe_to_back.
1903 (syms_of_frame): Adjusted appropriately.
1905 * fileio.c (HAVE_FSYNC): Define, if appropriate.
1906 (Fwrite_region): Use HAVE_FSYNC.
1907 * s-aix3-2.h (HAVE_FSYNC): Define.
1909 * emacs.c (Finvocation_name): New function.
1910 (Vinvocation_name): New variable.
1911 (init_cmdargs): Set it.
1912 (syms_of_emacs): defsubr Finvocation_name, staticpro and
1913 initialize Vinvocation_name.
1914 * lisp.h (Vinvocation_name): New extern declaration.
1915 * xterm.c (invocation_name): Variable deleted; use
1916 Vinvocation_name now.
1917 (x_text_icon, x_term_init): Use Vinvocation_name now instead of
1919 (x_term_init): Don't initialize invocation_name.
1920 (syms_of_xterm): Don't initialize or staticpro invocation_name.
1921 * xfns.c (invocation_name): Remove extern declaration for this.
1922 [HAVE_X11] (Fx_get_resource): Use Vinvocation_name now instead of
1924 [not HAVE_X11] (Fx_get_default): Same.
1926 1993-03-20 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
1928 * xfns.c (Fx_display_color_p): Renamed from Fx_color_display_p.
1929 (syms_of_xfns): Use new name in defsubr.
1931 1993-03-19 Eric S. Raymond (eric@geech.gnu.ai.mit.edu)
1933 * Makefile.in (unlock, relock): New productions to assist with
1936 1993-03-19 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
1938 * fileio.c (Fvisited_file_modtime): New function.
1939 (Fset_visited_file_modtime): Accept an argument specifying time value.
1940 If arg is nil, really use the filename handler.
1942 * xselect.c (cons_to_long, long_to_cons): No longer static.
1944 1993-03-18 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1946 * frame.h (FOR_EACH_FRAME): Change the definition so that
1947 FRAME_VAR is a lisp object.
1948 * dispnew.c (WINDOW_CHANGE_SIGNAL, do_pending_window_change):
1949 Adjusted appropriately.
1950 * xdisp.c (redisplay): Adjusted appropriately.
1952 * dispnew.c (Fredraw_frame): Give this appropriate definitions for
1953 MULTI_FRAME and non-MULTI_FRAME configurations.
1954 (Fredraw_display): Give this a non-MULTI_FRAME-dependent definition.
1956 1993-03-18 Richard Stallman (rms@geech.gnu.ai.mit.edu)
1958 * lisp.h (CHECK_LIVE_WINDOW): Use Qlive_window_p.
1960 * xfns.c (x_screen): Make this var file scope.
1961 (Fx_server_version): Use Fcons, not list3.
1963 1993-03-17 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
1965 * xterm.c (term_get_fkeys): Less klugey version of the last fix.
1967 * Makefile.in (versionclean): New production nukes binaries and
1968 DOC files, forcing a re-load, re-dump and re-makedoc.
1970 1993-03-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1972 * fileio.c: Doc fix.
1974 1993-03-17 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
1976 * xterm.c (x_display_box_cursor, x_display_bar_cursor): Don't
1977 display the cursor on garbaged frames.
1979 1993-03-17 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
1981 * term.c (term_get_fkeys) Supply second args for all tgetstr calls.
1983 1993-03-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1985 * process.c (Fprocess_send_eof): Make sure proc is running.
1987 * s/irix4-0.h (_getpty): Declare this, not _get_pty.
1989 1993-03-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1991 * xfns.c (Fx_server_vendor, Fx_server_version, Fx_display_pixel_width)
1992 (Fx_display_pixel_height, Fx_display_mm_width, Fx_display_mm_height)
1993 (Fx_display_screens, Fx_display_planes, Fx_display_color_cells)
1994 (Fx_display_visual_class, Fx_display_backing_store)
1995 (Fx_display_save_under): New functions.
1996 (x_screen_count, Vx_vendor, x_release, x_screen_height_mm)
1997 (x_screen_width_mm, Vx_backing_store, x_save_under, Vx_screen_visual)
1998 (x_visual_strings): Vars deleted.
1999 (Fx_open_connection): Don't init those vars.
2000 (syms_of_xfns): Set up new functions.
2001 Don't set up those vars as Lisp vars.
2002 Nor x-screen-width and x-screen-height.
2004 1993-03-16 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
2006 * cmds.c (overwrite_binary_mode): Deleted; this implements the
2008 (Qoverwrite_mode_binary): New variable.
2009 (internal_self_insert): If current_buffer->overwrite_mode is
2010 `overwrite-mode-binary', do as overwrite_binary_mode used to.
2011 (syms_of_cmds): Remove defvar of overwrite_binary_mode; initialize
2012 Qoverwrite_mode_binary.
2013 * buffer.c (syms_of_buffer): Doc fix for overwrite_mode.
2014 * buffer.h (struct buffer): Doc fix.
2016 Rename `live-window-p' to `window-live-p', for consistency with
2018 * window.c (Fwindow_live_p): Renamed from Flive_window_p.
2019 * lisp.h (CHECK_LIVE_WINDOW): Change to use Qwindow_live_p.
2020 (Qwindow_live_p): Extern declaration renamed from Qlive_window_p.
2022 1993-03-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2024 * xmenu.c (xmenu_show): Do BLOCK_INPUT; unblock just before returning.
2026 * xterm.h [SIGIO] (UNBLOCK_INPUT): Resignal if x_pending_input.
2028 1993-03-15 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
2030 * frame.c (Fframe_height, Fframe_width): Fix doc strings to match
2031 those of the multi-frame versions in frame.el. Accept an optional
2032 argument FRAME, also for consistency.
2034 * floatfns.c (logb): Add extern declaration for this.
2036 * floatfns.c (Flogb): Under SYSV, implement this using frexp.
2038 1993-03-15 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2040 * ymakefile (dispnew.o): Depend on termhooks.h.
2042 * xmenu.c (list_of_items): Allow strings among the alist items;
2043 they make nonselectable lines.
2045 1993-03-14 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
2047 * dired.c (Fdirectory_files): Recompile MATCH (if specified) after
2048 expanding the file name and all; those might compile regexp of
2049 their own, and change searchbuf.
2051 * keyboard.h (internal_last_event_frame): This should be extern,
2054 * fns.c (Fy_or_n_p): Display the answer.
2056 Some VMS changes from Richard Levitte <levitte@e.kth.se>:
2057 * [VMS] systime.h: Include vmstime.h. VMS has the timezone
2058 variable and the tzname array.
2059 * s/vms.h: VMS does have select.
2060 mth$dmod is the same as Unix's drem.
2061 Use the time functions in vmstime.c.
2062 No need to rename the malloc routines if we're using GNU malloc.
2063 PURESIZE needs to be 330000.
2064 * vmstime.c, vmstime.h: New files.
2065 * systty.h: Don't try to initialize extern declarations under VAX C.
2066 * vmspaths.h (PATH_LOADSEARCH): Include EMACS_LIBRARY:[LOCAL-LISP]
2068 (PATH_EXEC): Use EMACS_LIBRARY:[LIB-SRC] instead of [ETC].
2069 * sysdep.c [VMS] (init_sys_modes): Don't allocate process_ef.
2070 [VMS] (queue_kbd_input): Build events structure correctly.
2071 [VMS] (gethostname): New function.
2072 [VMS] (getwd): Don't get the PATH environment variable; that's
2075 1993-03-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2077 * xdisp.c (display_menu_bar): Assume FRAME_MENU_BAR_ITEMS already set.
2078 Fill out line with spaces.
2079 Put explicit spaces between items.
2080 * keyboard.c (command_loop_1): Set FRAME_MENU_BAR_ITEMS here.
2082 * window.c (Fdelete_other_windows): Handle FRAME_MENU_BAR_LINES.
2084 * keyboard.c (menu_bar_items): Reverse the list when done.
2086 * xmenu.c (single_keymap_panes): When storing in ENABLES,
2087 check def before enabled.
2089 * ymakefile (really-oldXMenu): Renamed from ${oldXMenudir}$(OLDXMENU).
2091 ($(OLDXMENU)): Depend on really-oldXMenu.
2092 The idea is to make sure libXMenu11.a is always updated if nec.
2094 * keyboard.c (command_loop_1): Typo calling Qrecompute_lucid_menubar.
2095 (read_key_sequence): Likewise. Also fix call to Vrun_hooks.
2097 1993-03-13 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
2099 * ymakefile (YMF_PASS_LDFLAGS): Doc fix.
2101 1993-03-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2103 * print.c (PRINTPREPARE): Handle marker that points nowhere.
2105 * apollo.h (NO_X_DESTROY_DATABASE): Defined.
2107 * undo.c (record_property_change, record_delete, record_insert):
2108 Don't make boundary or touch last_undo_buffer if cur buf has no undo.
2110 * ymakefile [__GNUC__ > 1]: Delete the conditional for GCC 2.4.
2111 [__GNUC__ > 1] (LIB_GCC): Use -print-libgcc-file-name to find libgcc.a.
2112 (YMF_FIND_LIBGCC_A): Definitions and uses deleted.
2114 1993-03-13 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
2116 * s/usg5-4.h: Remove extraneous text after #undef LIB_X11_LIB.
2118 1993-03-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2120 * xterm.c (Xatom_wm_change_state): Define here.
2121 * xfns.c (Xatom_wm_change_state): Just declare.
2122 (Xatom_emacs_selection, Xatom_clipboard, Xatom_clipboard_selection)
2123 (Xatom_wm_change_state, Xatom_incremental, Xatom_multiple)
2124 (Xatom_targets, Xatom_timestamp, Xatom_delete, Xatom_insert_selection)
2125 (Xatom_pair, Xatom_insert_property, Xatom_text): Decls deleted.
2126 (x_begin_selection_own): Decls deleted.
2127 (Fx_open_connection): Set up only the wm atoms here.
2128 Call Xatoms_of_xselect.
2130 * dispnew.c: Include termhooks.h.
2132 * frame.h (FRAMEP): Macro deleted.
2134 * xselect.c: Total rewrite, derived from Lucid's version.
2136 * keyboard.c (kbd_buffer_get_event): Handle selection_clear_event
2137 and selection_request_event events.
2139 * xterm.c (XTread_socket): Handle NEW_SELECTIONS alternative:
2140 queue events for SelectionRequest and SelectionClear;
2141 call functions for SelectionNotify and PropertyNotify.
2143 * termhooks.h (selection_request_event, selection_clear_event):
2146 * xterm.h (SELECTION_EVENT_DISPLAY): New macro.
2147 (SELECTION_EVENT_REQUESTOR, SELECTION_EVENT_SELECTION)
2148 (SELECTION_EVENT_TARGET, SELECTION_EVENT_PROPERTY)
2149 (SELECTION_EVENT_TIME): New macros.
2150 (struct selection_input_event): New structure.
2152 * process.c (wait_reading_process_input): New option to wait
2153 till a given cons cell has a non-nil car.
2154 Delete vipc conditionals.
2156 1993-03-12 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2158 * ymakefile (YMF_FIND_LIBGCC_A): New macro, to help GCC find
2159 libgcc.a even when -nostdlib is in effect. Define it to be the
2160 empty string if nobody else establishes a value for it.
2161 (temacs): Include it in the list of flags passed to the linker.
2163 * ymakefile (LINKER): If we have GCC 2.4 or later, use the
2164 -nostartfiles option instead of -nostdlib.
2165 (LIBGCC): Under GCC 2.4 or later, define this to be the empty string.
2167 1993-03-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2169 * xmenu.c (xmenu_show): New arg enable_list.
2170 (keymap_panes): New arg enables.
2171 (single_keymap_panes): New arg enables. Fill in its contents.
2172 (list_of_panes, list_of_items): New arg enables. Fill in contents.
2173 (Fx_popup_menu): Pass enable and enable_list args.
2174 (single_keymap_panes): Set enable flag to -1 if cmd definition is nil.
2176 * lisp.h (INTEGERP, SYMBOLP, MARKERP, STRINGP, VECTORP): New macros.
2177 (COMPILEDP, BUFFERP, SUBRP, PROCESSP, FRAMEP, WINDOWP): New macros.
2178 (WINDOW_CONFIGURATIONP, FLOATP): New macros.
2180 1993-03-12 Paul Eggert (eggert@twinsun.com)
2182 * cmd.c (internal_self_insert): Check that tab_width does not
2183 exceed 20, to be consistent with indent.c and xdisp.c.
2185 1993-03-12 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
2187 * term.c (CONDITIONAL_REASSIGN): Fixed reference to tigetstr.
2188 This should have been tgetstr, but I typoed and tigetstr happens
2189 to link and even do the right thing if you're on a System V box.
2191 1993-03-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2193 * keyboard.c (read_key_sequence): Support Vcurrent_menubar
2194 and Qactivate_menubar_hook. Call Qrecompute_lucid_menubar.
2195 (syms_of_keyboard): Set up Vcurrent_menubar, Vprevious_lucid_menubar,
2196 Qactivate_menubar_hook, and Qrecompute_lucid_menubar.
2198 * xmenu.c (Fx_popup_menu): Allow a frame instead of a window, in arg.
2199 Use Fcar, Fcdr when extracting from event, to check data types.
2201 1993-03-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2203 * frame.h (FRAME_MENU_BAR_ITEMS): New macro (two versions).
2204 (struct frame): New field menu_bar_items.
2205 * alloc.c (mark_object): Mark the menu_bar_items field.
2207 * xdisp.c (display_menu_bar): New function.
2208 (redisplay_window): Call display_menu_bar.
2210 * term.c (tigetstr): Add dummy definition to make Emacs link again.
2212 * keyboard.c (syms_of_keyboard): Set up Qmenu_bar.
2213 (menu_bar_items): New function.
2214 (menu_bar_one_keymap, menu_bar_item): New functions.
2215 (make_lispy_event): Handle menu bar events.
2216 (read_key_sequence): Make dummy prefix `menu-bar' for menu bar events.
2218 1993-03-11 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
2220 * term.c (fkey_table): Added many more keycap cookies to the
2221 fkey_table; it now supports the full intersection of the set of X
2222 keysyms and terminfo capabilities. See my lisp directory
2223 ChangeLog entry for this date, and lisp/term/README, for details.
2225 1993-03-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2227 * floatfns.c (Flogb): Fix use of IN_FLOAT.
2228 Fix arg names. Don't confuse Lisp_Object with integer.
2230 1993-03-11 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2232 * process.c (process_send_signal): In the TERMIOS code for sending
2233 control characters to processes, don't try to return Qnil; just
2236 1993-03-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2238 * dispnew.c (change_frame_size): Handle FRAME_MENU_BAR_LINES.
2240 * frame.c (Fframe_parameters): Report menu-bar-lines parm.
2241 (syms_of_frame): Set up Qmenu_bar_lines.
2243 * frame.h (FRAME_MENU_BAR_LINES): New macro.
2244 (struct frame): New field menu_bar_lines.
2246 * xfns.c (x_frame_parms): Add elts for visibility and menu-bar-lines.
2247 (enum x_frame_parm): Likewise.
2248 (x_set_menu_bar_lines, x_set_menu_bar_lines_1): New functions.
2249 (x_set_visibility): New function.
2250 (Fx_create_frame): Handle menu-bar-lines parm.
2251 (x_report_frame_params): Report Qvisibility.
2252 (syms_of_xfns): Set up Qvisibility.
2254 * keyboard.c (command_loop_1): Typo in last change.
2256 * xmenu.c (syms_of_xmenu): Set up Qmenu_enable.
2257 (single_keymap_panes): Test menu-enable property of symbol
2258 to decide whether to include it in the menu.
2260 1993-03-10 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
2262 * keyboard.c (command_loop_1): Adjust to the fact that display
2263 tables are now vectors of vectors, not vectors of strings.
2265 1993-03-10 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2267 * floatfns.c (Flogb): Undo the change of Feb 22.
2269 * ymakefile (OLDXMENU): Don't assume that we have symbolic links
2270 available; use `ln -f' instead of `ln -s'.
2272 * xterm.c (x_find_modifier_meanings): XDisplayKeycodes only
2273 appeared in X11R4; for earlier versions, just access the members
2274 of the Display directly.
2276 * xrdb.c (get_user_db): Since xrdb.c doesn't #include xterm.h,
2277 we can't test HAVE_X11R4 to see how we should get the resource
2278 manager string; cheat.
2280 * unexec.c (copy_text_and_data): Error message tweaked.
2282 * systime.h (timezone): Add an explicit declaration for this
2283 variable under USG 5-4.
2285 * sysdep.c (read_input_waiting): Set e.frame_or_window, not
2286 e.frame; the latter doesn't exist anymore.
2288 * sysdep.c (start_of_data): If ORDINARY_LINK is #defined, we don't
2289 have the data_start symbol defined, so we'll just use the address
2292 * s/usg5-4.h: Changes from Eric Raymond:
2293 If we're doing ordinary linking, define LIB_STANDARD appropriately.
2294 Give LIBS_DEBUG a null definition; usg5-4 has no -lg.
2295 #define LIBS_STANDARD as "-lc"; usg5-4 has no -lPW.
2296 #define NSIG, if it's not already defined.
2297 #define HAVE_TERMIOS instead of HAVE_TCATTR.
2298 Provide our own definition of LIB_X11_LIB.
2300 * s/usg5-3.h (LIBX11_SYSTEM): Eric Raymond says the libraries here
2301 were slightly wrong.
2303 * m/intel386.h (LIB_STANDARD): If USG5_4 is #defined, there's no
2304 need to include `-lPW'; that has been merged with `-lc'.
2306 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2307 (__do_global_dtors, __CTOR_LIST__, __DTOR_LIST__, __main): Don't
2308 define these if ORDINARY_LINK is #defined; in that case, the
2309 standard linking procedure will find definitions for these.
2311 * syssignal.h (sigunblock): Add definition which works under SYSVr4.
2312 * emacs.c (fatal_error_signal): Unblock the signal which we're
2313 handling using sigunblock.
2315 1993-03-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2317 * xfns.c (x_make_gc): Don't forget to block X input around the
2318 X calls in this function.
2320 * xfns.c [not HAVE_X11R4] (select_visual): It's v->visualid, not
2321 x->visualid. x isn't defined.
2323 * m/template.h, s/template.h: Mention that `etc/MACHINES' and
2324 `configure' should be updated whenever support for a configuration
2325 is added or improved.
2327 * process.c [! subprocesses] (wait_reading_process_input):
2328 Remember to re-enable polling for input.
2330 * keyboard.c [POLL_FOR_INPUT] (quit_throw_to_read_char): If
2331 we're polling for input, abort; input polling should always be
2332 suppressed while we're waiting for input.
2334 * keyboard.c (interrupt_signal): Remove extern declaration of
2335 Vwindow_system; this is no longer used.
2337 1993-03-09 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2339 * editfns.c (Fcurrent_time_string): Optional arg specifies time.
2341 * keymap.c (Fdefine_key): Use proper meta-bit to clear.
2343 * intervals.c (set_point): Check invisibility of following character,
2344 not previous character.
2346 * floatfns.c (FLOAT_CHECK_ERRNO): Define unless NO_FLOAT_CHECK_ERRNO.
2348 * floatfns.c: Changes from Lucid.
2349 (HAVE_MATHERR, FLOAT_CHECK_ERRNO, FLOAT_CATCH_SIGILL): New parm macros.
2350 (FLOAT_CHECK_DOMAIN, HAVE_RINT): New parm macros.
2351 (HAVE_INVERSE_HYPERBOLIC, HAVE_CBRT): New parm macros.
2352 [!HAVE_RINT]: Define rint as macro.
2353 (IN_FLOAT): Major rewrite; several alternate versions.
2354 (IN_FLOAT2): New macro.
2355 (arith_error, range_error, domain_error, domain_error2): New macros.
2356 (Facos, Fasin, Fatan, Fcos, Fsin, Ftan, Fexp, Fexpt, Flog): Changed.
2357 (Flog10, Fsqrt, Fabs, Ffloat, Flogb): Changed.
2358 (Ffloor, Fceiling, Fround, Ftruncate): Changed.
2359 (Fcube_root): Renamed from Fcbrt.
2360 (matherr): New function.
2361 (float_error): Only if FLOAT_CATCH_SIGILL.
2363 * fns.c (Fy_or_n_p): Use query-replace-map.
2365 * keymap.c (access_keymap): Handle ints beyond the ASCII range.
2366 (store_in_keymap): Likewise.
2367 (Faccessible_keymaps): Use meta_modifier.
2368 Use vectors for the key sequences.
2369 (Fwhere_is_internal): Use meta_modifier.
2370 (append_key): Always return a vector.
2372 * lisp.h (Qrange_error, Qdomain_error, Qsingularity_error)
2373 (Qoverflow_error, Qunderflow_error): New vars.
2375 * data.c (syms_of_data) [LISP_FLOAT_TYPE]: Define new error conditions:
2376 Qarith_error, Qrange_error, Qdomain_error,
2377 Qsingularity_error, Qoverflow_error, Qunderflow_error.
2379 1993-03-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2381 * systty.h: Define HAVE_TCATTR based on HAVE_TERMIOS earlier.
2382 (struct emacs_tty): Separate the struct decl
2383 from the EMACS_..._TTY... macro definitions.
2384 Use HAVE_TCATTR to decide whether to use `struct termios'.
2386 * xfns.c (Fx_pixel_width, Fx_pixel_height): Fns deleted.
2387 (syms_of_xfns): Don't install them.
2388 (x_user_set_name): Function deleted.
2389 (x_char_height, x_char_width): New functions.
2391 * frame.c (Fframe_char_height, Fframe_char_width)
2392 (Fframe_pixel_height, Fframe_pixel_width):
2393 New functions, two versions of each.
2394 [MULTI_FRAME] (syms_of_frame): Make them Lisp functions.
2395 [!MULTI_FRAME] (syms_of_frame): Likewise. Also Fselected_frame.
2397 * xterm.c (XTread_socket):
2398 Don't reverse the chars that XLookupString returns. Use all of them.
2399 Save last 100 chars and keysyms in temp_buffer.
2401 1993-03-07 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2403 * buffer.c (syms_of_buffer): Make erase-buffer a disabled command.
2405 1993-03-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2407 * ymakefile (keyboard.o): Depend on intervals.h.
2408 (keymap.o): Depend on termhooks.h.
2410 * keyboard.c: Include intervals.h.
2411 (read_key_sequence): Use get_local_map.
2413 * textprop.c (Fget_text_property): Use textget.
2414 (Fnext_single_property_change): Likewise.
2415 (Fprevious_single_property_change): Likewise.
2417 * intervals.c (textget): Handle categories.
2418 (get_local_map): New function.
2419 (verify_interval_modification): Call textget correctly.
2421 * textprop.c (syms_of_textprop): Set up Qcategory, Qlocal_map.
2422 * intervals.h: Declare those vars. Declare textget, get_local_map.
2424 * keymap.c: Include termhooks.h.
2425 (push_key_description): Handle all modifiers.
2426 Handle large character codes.
2427 (Fkey_description): Move the meta bit, if arg is string.
2428 (Fsingle_key_description): Don't alter integer value.
2429 Make tem long enough.
2431 * keyboard.c (read_key_sequence):
2432 Use meta_modifier for meta keys when handling function_key_map.
2434 * lread.c (syms_of_lread): Set up Qascii_character.
2435 (Fread_char, Fread_char_exclusive): Use that property
2436 to convert symbols like tab, return, M-return,... to ASCII.
2438 * keyboard.c (follow_key): Downcase shift_modifier as well as ASCII.
2439 (command_loop_1): Run pre-command-hook and post-command-hook.
2440 Set this_command before running pre-command-hook.
2441 (syms_of_keyboard): Set up vars for those hooks.
2443 * buffer.c (reset_buffer_local_variables): Reset mark_active.
2444 (syms_of_buffer): New buffer-local var `mark-active'.
2445 (init_buffer_once): Initialize mechanism for it.
2447 1993-03-06 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2449 * dispnew.c (init_display): Initialize Vwindow_system.
2451 * ymakefile (SHELL): No need to set this twice; remove one.
2453 * emacs.c (main): SIGIOT isn't defined on all systems; don't set
2454 its signal handler unless it is.
2456 * sysdep.c (init_baud_rate): Use input_fd, instead of fd; the
2457 latter is undefined.
2459 * dired.c (NAMLEN): Never use d_nameln to get the length of the
2460 directory entry's name; it is used inconsistently. Always call
2463 1993-03-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2465 * keyboard.c (syms_of_keyboard): Handle gaps in modifier_names.
2466 (modifier_names): Reorder to match termhooks.h.
2468 * keyboard.c (parse_modifiers_uncached): Detect `s-', not `super-'.
2469 (apply_modifiers_uncached): Make `s-', not `super-'.
2471 * lread.c: Include termhooks.h.
2472 (read_escape): Handle \H, \A, \s. Use ..._modifier.
2473 * ymakefile (lread.o): Depend on termhooks.h.
2475 * termhooks.h (alt_modifier, super_modifier, hyper_modifier)
2476 (shift_modifier, ctrl_modifier, meta_modifier):
2478 * keyboard.c (make_lispy_event): For ASCII event, the ..._modifier
2479 bits are the right bits to return.
2481 * keyboard.c (lispy_function_keys): Add codes starting at 0xff00
2482 and running through 0xffff.
2484 * xterm.c (x_alt_mod_mask, x_super_mod_mask, x_hyper_mod_mask):
2486 (x_find_modifier_meanings): Set them.
2487 (x_convert_modifiers): Check for them.
2488 (XTread_socket): Handle BackSpace, etc, function keys.
2490 * keyboard.c (read_char): Move metabit when fetching from string macro.
2492 * callint.c (check_mark): Error if mark is not active.
2494 * editfns.c (save_excursion_save): Save mark_active of buffer.
2495 (save_excursion_restore): Restore mark_active of buffer.
2496 Run activate-mark-hook if it's on, or deactivate-mark-hook
2498 (region_limit): Error if mark inactive, if transient-mark-mode.
2500 * insdel.c (prepare_to_modify_buffer): Set Vdeactivate_mark.
2502 * keyboard.c (command_loop_1): Clear Vdeactivate_mark before cmd.
2503 Clear mark_active if command set Vdeactivate_mark.
2504 Run deactivate-mark-hook at that time, or activate-mark-hook.
2505 (syms_of_keyboard): Define variable deactivate-mark.
2507 * buffer.c (syms_of_buffer): New buffer-local var `mark-active'.
2508 (init_buffer_once): Initialize mechanism for it.
2510 * buffer.h (struct buffer): New field mark_active.
2512 * intervals.c (verify_interval_modification): Handle insertions
2513 specially. For non-insertions, check only the chars being changed.
2514 `modification-hooks' property is now a list of functions.
2515 (set_point): Ignore chars outside current restriction.
2517 * textprop.c (Qmodification_hooks): Renamed from Qmodification.
2518 (syms_of_textprop): Changed accordingly.
2520 * keyboard.c (syms_of_keyboard): New lisp var unread-command-char.
2521 (Finput_pending_p): Test unread_command_char.
2522 (Fdiscard_input, quit_throw_to_read_char, init_keyboard): Set it.
2523 (read_char): Fetch from it.
2525 1993-03-05 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2527 * textprop.c (Fadd_text_properties): Initialize the modified flag.
2528 Use a "for (;;)" loop at the end of the function, to indicate that
2529 all exiting is taken care of inside the loop.
2530 (Fremove_text_properties): Same.
2532 1993-03-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2534 * ymakefile (LIB_MATH): Delete -lc, since duplicates LIB_STANDARD.
2536 * buffer.c (check_protected_fields): Variable deleted.
2537 (syms_of_buffer): Delete vars buffer-field-list
2538 and check-protected-fields.
2539 * insdel.c (check_protected_fields): Delete decl.
2541 * disptab.h (DISP_INVIS_VECTOR): Renamed from DISP_INVIS_ROPE.
2542 (DISP_CHAR_VECTOR): Renamed from DISP_CHAR_ROPE.
2543 All callers changed.
2545 * xdisp.c (copy_rope): Expect FROM to be a vector.
2546 (copy_part_of_rope): New function.
2547 (display_string): Expect display table elts to be vectors.
2548 * indent.c (current_column, Fmove_to_column, compute_motion):
2549 Expect display table elts to be vectors.
2551 * alloc.c (Fmake_rope, Frope_elt): Fns deleted.
2553 * lisp.h (CHAR_META, CHAR_SHIFT, CHAR_CTL): New macros.
2555 * lread.c (read_escape): Handle M-, C- and S- for new convention.
2556 (read1): Move the meta bit to the right place for a string.
2558 * keyboard.c (Fthis_command_keys, Fread_key_sequence):
2559 Fix calls to make_event_array.
2561 * macros.c (Fend_kbd_macro): Fix call to make_event_array.
2563 * alloc.c (make_event_array): Renamed from make_array.
2564 Chars that fit in a string are 0...127 and their meta variants.
2566 * keyboard.c (make_lispy_event): Put meta and shift modifiers
2568 (read_avail_input): Set the modifiers field in the events read.
2569 (kbd_buffer_get_event): Pass thru integer event untruncated.
2570 (read_char): Likewise.
2571 (read_key_sequence, read_char): Only -1 means EOF.
2572 (kbd_buffer_store_event): Don't ignore 0200 bit in quit char.
2573 (follow_key): Use new meta bit flag.
2575 * xterm.c (XTread_socket): Set bufp->modifiers for all kinds of keys.
2577 * keymap.c (Flookup_key): Use 0x800000 as meta-bit if from vector.
2578 (Fdefine_key): Likewise.
2580 1993-03-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2582 * dgux.h (ELF): Handle this parameter.
2583 [! COFF] (UNEXEC, USG_SHARED_LIBRARIES): New definitions.
2584 (_BSD_TTY_FLAVOR): Don't define if already defined.
2585 (C_COMPILER, LINKER, MAKE_COMMAND): New definitions.
2587 1993-03-04 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2589 * keyboard.c (Fsuspend_emacs): Remember that `suspend-hooks' isn't
2592 1993-03-04 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
2594 * Makefile.in (xmakefile): Add missing quote.
2596 1992-03-03 Wilson H. Tien (wtien@urbana.mcd.mot.com)
2598 * unexelf.c (unexec): Move data2 section header up so all section
2599 headers will be in ascending order. This will prevent the unexeced
2600 emacs that being processed by other applications (such as strip)
2603 1993-03-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2605 * s/isc2-2.h (S_IFLNK): Add #undef.
2606 (C_SWITCH_SYSTEM): Add conditional definition.
2607 (NO_ASM, USE_UTIME, NO_X_DESTROY_DATABASE): Defined.
2608 (LIB_STANDARD): Alternate definition if __GNUC__.
2609 (SIGTSTP): #undef deleted.
2610 (LIBS_SYSTEM): Define only if HAVE_X_WINDOWS.
2611 * s/isc3-0.h: New file.
2613 * unexelf.c: Handle rounding of section boundaries.
2614 (round_up): New function.
2616 1993-03-02 Karl Berry (karl@cs.umb.edu)
2618 * s/isc2-2.h (USG_SHARED_LIBRARIES, CLASH_DETECTION, NO_FCHMOD):
2620 (HAVE_TIMEVAL): Do not define.
2621 (NO_ASM): Only define once.
2623 1993-03-02 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2625 * print.c (float_to_string): Define buf to be an unsigned char, to
2626 match the data field of strings.
2628 * keyboard.c (kbd_buffer_get_event): Protect assignment to
2629 Vlast_event_frame in a "#ifdef MULTI_FRAME" clause.
2631 * syntax.c (describe_syntax_1): Delete excess arg to describe_vector.
2632 (check_syntax_table): Delete excess arg to wrong_type_argument.
2634 1993-03-01 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2636 * buffer.c (buffer-undo-list): Doc fix.
2638 * xdisp.c (redisplay): Protect calls to request_sigio and
2639 unrequest_sigio in "#ifdef SIGIO" clauses; these are not defined
2641 * cmds.c (Fnewline): Doc fix.
2643 1993-03-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2645 * insdel.c (del_range): Update point before offset_intervals.
2647 * intervals.h: Don't include dispextern.h more than once.
2648 (INTERVAL_VISIBLE_P): NILP test was backwards.
2650 * intervals.c (intervals_equal): Handle one arg null and other not.
2651 (set_point): Considerable rewrite. Handle intervals both
2652 before and after the old and new point values.
2653 Redo handling of invisible intervals, and of motion hooks.
2654 (textget): New function.
2656 * textprop.c (Fadd_text_properties, Fremove_text_properties):
2657 Add len>0 as condition for main loop.
2658 Abort if reach a null interval.
2659 (Fset_text_properties): Abort if reach a null interval.
2660 (Ftext_properties_at, Fget_text_property):
2661 Return nil if POS is end of OBJECT.
2662 (add_properties): Use NILP to test result of Fequal.
2664 (remove_properties): No longer inline.
2665 (set_properties): Total rewrite as function.
2666 (validate_interval_range): Don't alter *begin at end of buffer.
2667 But do search for a position just before the end.
2668 Return null for an empty string.
2670 1993-02-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2672 * Makefile.in (emacs, temacs): Add @true to prevent Make confusion.
2674 * lread.c (read1--strings with properties case):
2675 Detect end of list, and invalid syntax, using recursive read1 calls.
2677 * intervals.c (graft_intervals_into_buffer):
2678 create_root_interval needs Lisp object arg.
2679 Set tree to new root interval.
2680 Don't test TREE_LENGTH if buffer has no intervals.
2681 Rearrange code to copy properties so that it really
2682 does merge the inserted ones into the inherited ones.
2683 (traverse_intervals): Pass `arg' on recursive calls.
2684 (split_interval_left): Use new_length as basis for length of new.
2686 * print.c (print--string case):
2687 Any non-null interval means print intervals.
2688 Get rid of var obj1; just use obj.
2690 * textprop.c (validate_interval_range): Allow 0 as position in string.
2691 Add 1 to specified string positions.
2692 (Fprevious_single_property_change): Subtract 1 if object is string.
2693 (Fnext_single_property_change): Likewise.
2694 (Fprevious_property_change, Fnext_property_change): Likewise.
2696 * xterm.c (x_do_pending_expose, XTframe_rehighlight)
2697 (x_window_to_scrollbar): Use XGCTYPE.
2699 1993-02-28 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2701 Use the term `scroll bar', instead of `scrollbar'.
2702 * alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h,
2703 * lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c,
2704 * xterm.c, xterm.h: Terminology changed.
2706 Don't generate switch-frame events by checking Vlast_event_frame;
2707 use a separate variable for that bookkeeping. In order to
2708 generate them properly, we may need to fiddle with it.
2709 * keyboard.c (internal_last_event_frame): New variable.
2710 (command_loop_1): Check internal_last_event_frame, not
2712 (read_char, kbd_buffer_store_event): Set both Vlast_event_frame and
2713 internal_last_event_frame.
2714 (kbd_buffer_get_event): Check internal_last_event_frame to decide
2715 whether to generate a switch-frame event. Set Vlast_event_frame
2717 (init_keyboard): Initialize both Vlast_event_frame and
2718 internal_last_event_frame.
2719 * keyboard.h (internal_last_event_frame): Add extern declaration
2721 * frame.c (Vlast_event_frame): Remove external declaration for
2723 (Fselect_frame): Set internal_last_event_frame to Qnil to force a
2724 switch-frame event, not Vlast_event_frame; the latter is supposed
2725 to convey information to the user.
2727 * keyboard.c (syms_of_keyboard): Doc fix for unread_command_events.
2729 1993-02-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2731 * keyboard.c (syms_of_keyboard): Doc fix.
2733 1993-02-26 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2735 * ymakefile (LIBES): Exchange the order of LIB_MATH and
2736 LIB_STANDARD, to avoid duplicated symbols under SunOS.
2738 * buffer.c (syms_of_buffer): Add the extra argument to the
2739 commented-out DEFVAR_PER_BUFFER for `mode-line-format', so
2740 make-docfile will find the docstring properly.
2742 1993-02-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2744 * ymakefile (intervals.o): Dep on intervals.c, not textprop.c.
2746 * textprop.c (remove_properties): Call modify_buffer.
2747 (add_properties): Likewise.
2749 * undo.c (record_property_change): Typo in last change.
2751 * cmds.c (syms_of_cmds): Typo in last change.
2753 * print.c (print): Never declare OBJ arg as `register'.
2754 Special handling for strings with intervals.
2755 (print_intervals): New function.
2756 * lread.c (read1): Handle reading strings with properties.
2758 * intervals.c (traverse_intervals): New arg ARG.
2759 * alloc.c (mark_interval): Add ignored arg.
2760 (mark_interval_tree): Pass new arg to traverse_intervals.
2762 1993-02-24 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2764 * xterm.c (x_window_to_scrollbar, x_scrollbar_expose,
2765 x_scrollbar_handle_click, x_scrollbar_note_movement): Remember
2766 that these can be called during GC; we have to ignore mark bits.
2767 * lisp.h (GC_NILP, GC_EQ): New macros to help with that.
2769 * print.c (float_to_string): Define buf to be an unsigned char, to
2770 match the data field of strings.
2772 * lisp.h (RETURN_UNGCPRO): Remove "do ... while (0)" wrapper
2775 * data.c (Fstring_to_number): Declare p to be an unsigned char, to
2776 match the data field of strings.
2778 * data.c (Fstring_to_number): Just skip tabs and spaces; don't use
2779 the <ctype.h> macros. The <ctype.h> stuff apparently varies from
2780 locale to locale more than we'd like. Don't include <ctype.h>.
2782 1993-02-24 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2784 * buffer.c (Ferase_buffer): Added interactive spec.
2786 1993-02-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2788 * undo.c (Fprimitive_undo): Handle property-change undo entry.
2789 (record_property_change): New function.
2791 * textprop.c (Fadd_text_properties): Pass new arg to add_properties.
2792 (Fremove_text_properties): Likewise.
2793 (add_properties, remove_properties): New arg OBJECT. Record undo info.
2794 (Fput_text_property): New function.
2796 * buffer.c (syms_of_buffer): Doc fix.
2798 * cmds.c (syms_of_cmds): New var `overwrite-binary-mode'.
2799 (internal_self_insert): Handle that var.
2801 1993-02-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2803 * keyboard.c (read_avail_input): Args to `kill' were backwards.
2805 1993-02-23 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
2807 * alloc.c (make_pure_float): Assure that PUREBEG + pureptr is
2808 aligned, not pureptr itself.
2810 * emacs.c (fatal_error_signal): Unblock the signal before we try
2811 to deliver it to ourselves. #include "syssignal.h" to get the
2814 * abbrev.c (Fexpand_abbrev): Only copy the text we're going to
2815 expand - from wordstart to wordend, not from wordstart to point -
2816 into the buffer. There might be non-word text between wordend and
2819 1993-02-23 Richard Stallman (rms@geech.gnu.ai.mit.edu)
2821 * unexec.c (adjust_lnnoptrs): Handle symentry.n_type == 0x2400.
2822 (make_hdr) [USG_SHARED_LIBRARIES]: Set bias using bss_start.
2824 1993-02-22 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2826 * process.c: Make sure we don't miss processes exiting, by having
2827 the sigchld handler clear *input_available_clear_time.
2828 (wait_reading_process_input): Check for process activity after
2829 setting the timeout and calling set_waiting_for_input.
2830 (sigchld_handler): If the process which has exited is one we care
2831 about, clear *input_available_clear_time.
2833 * frame.c (Fselect_frame): Set Vlast_event_frame to Qnil after
2834 switching frames, to make sure we'll get a switch-frame event.
2835 (Vlast_event_frame): Add external declaration for this here.
2837 * alloc.c (make_pure_float): Align pureptr according to __alignof,
2838 if it's available, or sizeof (struct Lisp_Float) if it's not.
2840 * .gdbinit (xprocess): New command.
2842 * floatfns.c (Flogb): Always implement this by calling Flog, even
2843 on non-USG systems, which supposedly have a logb function.
2844 (Fround): Always implement this by calling floor, even on systems
2847 * process.c (process_send_signal): Use TERMIOS functions in
2848 preference to BSD ioctls. Some systems attempt to provide the BSD
2849 functions for backward compatibility, and get it wrong.
2851 * data.c (Fstring_to_number): Skip initial spaces, to make Emacs
2852 lisp parse consistently on different operating systems.
2853 #include <ctype.h> to help with this.
2855 * data.c (Fstring_to_int): Rename this to Fstring_to_number, since
2856 it parses floats as well as integers. Fix docstring.
2857 (syms_of_data): Fix defsubr.
2858 (wrong_type_argument): Change use.
2859 (Fint_to_string): Doc fix.
2860 * lisp.h (Fstring_to_int): Change extern declaration.
2862 1993-02-22 Charles Hannum (mycroft@hal.gnu.ai.mit.edu)
2864 * ibmrs6000.h (C_ALLOCA, STACK_DIRECTION): Only define if HAVE_ALLOCA
2866 (X_DEFAULT_FONT): Change to `fixed', as `Rom14.500' only works on the
2869 * aix3-1.h: Changes from 18.58.
2870 (HAVE_TERMIOS): Changed from HAVE_TERMIO.
2873 * sysdep.c (child_setup_tty): Recognize HAVE_TERMIOS as well as
2876 * xrdb.c (getuid): Remove declaration.
2878 * systty.h [HAVE_TERMIOS]: Include fcntl.h.
2880 * systime.h [_AIX]: Move test outside of previous #if.
2881 (EMACS_GET_TZ_OFFSET) [USG]: Don't declare twice. Prefer tzset.
2883 * keyboard.c (init_keyboard): Recognize HAVE_TERMIOS as well as
2886 * aix3-2.h: New file. Specifies difference between AIX 3.1 and 3.2.
2888 1993-02-20 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
2890 * keyboard.c (Fsuspend_emacs): Make tem not register.
2892 * syntax.c (Fforward_comment): New function.
2894 * search.c (Fskip_syntax_backward): New function.
2895 (Fskip_syntax_forward): Likewise.
2896 (skip_chars): New argument syntaxp.
2898 * alloc.c (Fmemory_limit): Doc fix.
2900 1993-02-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2902 * keyboard.c (Fsuspend_emacs): Rename suspend-hook to suspend-hooks
2903 and run it manually.
2905 * keymap.c (describe_map): Call Fkey_description before build_string.
2907 1993-02-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2909 * keyboard.c (Fopen_dribble_file): Doc fix.
2911 * lread.c (syms_of_lread): Doc fix.
2913 1993-02-18 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2915 * textprop.c (Fget_text_property): Fix typo in function's declaration.
2917 * floatfns.c (IN_FLOAT): Make this work properly when SIGTYPE is void.
2919 * alloc.c: Add description lines to the top of each page.
2921 * alloc.c (mark_interval_tree): Remove spurious & in front of
2924 * alloc.c (UNMARK_BALANCE_INTERVALS): Fix to accommodate compilers
2925 other than GCC, which do not allow casts on the LHS of an
2928 * config.h.in: #define USE_TEXT_PROPERTIES by default.
2930 * alloc.c (mark_object, mark_buffer): Remove some unused
2933 * buffer.c (Fswitch_to_buffer): Pass the correct number of
2934 arguments to Fnext_window.
2936 * buffer.c (Fbury_buffer): Pass the correct number of arguments to
2939 * bytecode.c (Fbyte_code): Pass the correct number of arguments to
2940 temp_output_buffer_show.
2942 * callint.c (Fcall_interactively): Pass the correct number of
2943 arguments to wrong_type_argument.
2944 * casefiddle.c (caseify_object): Same.
2945 * casetab.c (check_case_table): Same.
2946 * search.c (Fstore_match_data): Same.
2947 * syntax.c (check_syntax_table): Same.
2949 * callproc.c (delete_temp_file): Declare this to return
2950 Lisp_Object, to smooth type-checking.
2952 * data.c (wrong_type_argument): Pass the correct number of
2953 arguments to Fstring_to_int.
2955 * data.c (arithcompare): Add a default case which aborts, just to
2958 * dispnew.c (sit_for): Pass the correct number of arguments to
2961 * editfns.c (Fmessage): Don't forget to return a value when
2964 * fns.c (Fequal): Call internal_equal to recurse on elements of
2965 lists and vectors, not Fequal.
2967 * frame.c (Fdelete_frame): If FRAME is a dead frame, return Qnil,
2970 * keyboard.c (echo_char): Apply XINT to c before passing it to
2971 push_key_description.
2973 * keyboard.c (recursive_edit_1, command_loop_1): Pass the proper
2974 number of arguments to unbind_to.
2975 * lread.c (Feval_buffer): Same.
2976 * window.c (Fscroll_other_window): Same.
2978 * keyboard.c (command_loop_1): Apply XINT to c before passing it
2979 to internal_self_insert and direct_output_for_insert.
2981 * keyboard.c (make_lispy_movement): Rename the variable `part'
2982 declared in the block handling scrollbar movement to `part_sym',
2983 to avoid potential conflicts with the argument named `part'.
2984 Apparently the semantics of expressions like this are unclear.
2986 * keyboard.c (Fread_key_sequence): Backslash the newlines in this
2988 * textprop.c (Fget_text_property): Same.
2990 * keymap.c (Fdescribe_vector): Pass the proper number of arguments
2992 * syntax.c (describe_syntax_1): Same.
2994 * minibuf.c (Fdisplay_completion_list): Pass the proper number of
2995 arguments to Flength.
2996 * xmenu.c (list_of_items): Same.
2998 * window.c (Fset_window_configuration): Pass the proper number of
2999 arguments to Fselect_frame.
3001 * xfns.c (x_set_icon_type): Pass the proper number of arguments to
3004 * xterm.c (XTread_socket): Pass the proper number of arguments to
3005 construct_mouse_click.
3007 * config.h.in (HAVE_CONST): New macro. If it's not #defined, #define
3008 const to be the empty string.
3010 * config.h.in: If we're not __STDC__, define volatile to be the
3013 * buffer.h: Remove code which #includes "undo.h" if lint is
3014 defined. undo.h no longer exists.
3016 * buffer.c (buffer_slot_type_mismatch): Make symbol_name an
3017 unsigned char *, to match the type of a string's data.
3019 1993-02-17 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
3021 * process.c (Fstart_process): Jimb's change of December 11
3022 had a misplaced paren. This only became apparent because of
3023 jimb's change on February 8 to Fexpand_file_name.
3024 * callproc.c (Fcall_process): Ditto.
3026 1993-02-17 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3028 * callproc.c (init_callproc): Move the initialization of
3029 Vprocess_environment to its own function.
3030 (set_process_environment): This is that.
3031 * emacs.c (main): Call set_process_environment earlier than
3034 1993-02-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3036 * buffer.c (Frename_buffer): Make prefix arg set UNIQUE.
3038 1993-02-14 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3040 * xterm.c (x_set_window_size): Call change_frame_size instead of
3041 just setting the `rows' and `cols' members of the frame, and
3042 leaving the window tree in complete disarray.
3044 * dispnew.c (remake_frame_glyphs): When re-allocating the frame's
3045 message buffer when echo_area_glyphs is pointing at it, relocate
3046 echo_area_glyphs too. Same for previous_echo_glyphs.
3047 * window.h (previous_echo_glyphs): Add extern declaration for this.
3049 * frame.c (Fframe_parameters): Report the `minibuffer' parameter of
3050 minibufferless frames as nil, not `none'.
3051 (Qnone): Remove declaration and initialization for this. It's not
3053 * xfns.c (Qnone): Add them here; we still accept "none" as a valid
3054 value for the `minibuffer' parameter.
3056 * xfns.c (x_frame_params): Remember that the parameters are called
3057 "auto-raise" and "auto-lower", not "autoraise" and "autolower".
3059 * xdisp.c (message): Set echo_frame to the frame whose message buf
3060 we want to use, not to the message buf itself.
3062 1993-02-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3064 * textprop.c (Fadd_text_properties): Put OBJECT arg last.
3066 (Fset_text_properties, Fremove_text_properties): Likewise.
3067 (Fnext_single_property_change, Fprevious_single_property_change)
3068 (Fnext_property_change, Fprevious_property_change): Likewise.
3069 (Ferase_text_properties): #if 0.
3070 (Fget_text_property): New function.
3072 * s/irix4-0.h (C_SWITCH_MACHINE): Don't define if GCC.
3074 1993-02-13 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3076 * s/usg5-4.h: #include "usg5-3.h", not "s-usg5-3.h".
3078 1993-02-11 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3080 * xterm.c (x_io_error_quitter): New function.
3081 (x_error_quitter): Note that this is only used for protocol
3082 errors now, not I/O errors.
3083 (x_term_init): Set the I/O error handler to x_io_error_quitter.
3085 1993-02-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3087 * editfns.c (Finsert_buffer_substring): Proper error for non-ex buffer.
3088 (Fcompare_buffer_substrings): Likewise.
3090 1993-02-10 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3092 * fileio.c (Fdo_auto_save): If NO_MESSAGE is non-nil, don't tell
3093 users that buffers have shrunk a lot. This is called when Emacs
3094 is crashing, so we don't want to run any code that isn't
3095 absolutely necessary. Also, autosave buffers which don't have
3096 specially handled autosave file names first.
3098 1993-02-10 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3100 * editfns.c (Fcompare_buffer_substrings): Ignore case
3101 if case-fold-search is non-nil.
3103 1993-02-08 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3105 * keymap.c (Flookup_key, Fkey_binding, Flocal_key_binding)
3106 (Fglobal_key_binding, Fminor_mode_key_binding): Add a new optional
3107 argument ACCEPT_DEFAULT, to control whether this function sees
3109 (Fwhere_is_internal, describe_map_tree, describe_map_2)
3110 (describe_vector): Pass the proper arguments to Flookup_key.
3112 * fileio.c (Fexpand_file_name): Pass DEFALT through
3113 Fexpand_file_name before using it.
3115 * fileio.c (Fexpand_file_name): Doc fix.
3117 1993-02-07 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3119 * xdisp.c (message): Use the message buffer of the frame we're
3120 going to display the message on to format the message, not that of
3123 1993-02-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3125 * Makefile (emacs, temacs): Add no-op commands to these rules.
3127 * dispnew.c (char_ins_del_cost): Use FRAME_WIDTH, not FRAME_HEIGHT.
3129 * editfns.c (Fcompare_buffer_substrings): New function.
3131 1993-02-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3133 * keyboard.c (extra_keyboard_modifiers): New Lisp var.
3134 (read_char): Support ctl and meta bits in extra_keyboard_modifiers.
3135 * xterm.c (XTread_socket): Support extra_keyboard_modifiers.
3137 1993-01-29 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
3139 * window.c (Fscroll_left, Fscroll_right): Don't forget to apply
3140 XWINDOW to selected_window before passing it to window_internal_width.
3142 * xmenu.c (Fx_popup_menu): Don't forget to turn the frame-relative
3143 coordinates for the menu position into root-window-relative
3146 * lread.c (read1): Although digits followed by a '.' are an
3147 integer, a single . by itself (like, say, \.) should be a symbol.
3149 1993-01-25 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
3151 * fns.c (internal_equal): Protect the clause for comparing numbers
3152 of different types with a "#ifdef LISP_FLOAT_TYPE".
3154 1993-01-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3156 * s/hpux8.h [__GNUC__] (LD_SWITCH_SYSTEM): Remove -a.
3157 [__GNUC__] (ORDINARY_LINK): Defined.
3159 * m/sparc.h [TERMINFO]: Don't define LIBS_TERMCAP.
3161 1993-01-25 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3163 `live-frame-p' has become `frame-live-p'.
3164 * frame.c (Qlive_frame_p): Renamed to Qframe_live_p.
3165 (Flive_frame_p): Renamed to Fframe_live_p.
3166 (syms_of_frame): Defsubrs and initializations adjusted.
3167 * frame.h (CHECK_LIVE_FRAME): Use Qframe_live_p, not Qlive_frame_p.
3168 (Qlive_frame_p): Changed extern declaration to Qframe_live_p.
3170 * lread.c (read1): Treat a string of digits ending in a period as
3173 Turn `first-change-function' into `first-change-hook'.
3174 * buffer.c (Vfirst_change_function): Renamed to Vfirst_change_hook.
3175 (Qfirst_change_hook): New symbol, for passing to Vrun_hooks.
3176 (syms_of_buffer): Change DEFVAR; initialize Qfirst_change_hook.
3177 * buffer.h (Vfirst_change_function): Renamed to Vfirst_change_hook.
3178 (Qfirst_change_hook): Added declaration.
3179 * insdel.c (signal_before_change): Change references to
3180 Vfirst_change_function, and apply Vrun_hooks to
3181 Qfirst_change_hook, instead of just calling Vfirst_change_function
3184 x-selection-value has been renamed to x-selection.
3185 x-own-selection has been renamed to x-set-selection, and the order
3186 of its arguments has been reversed, for consistency with other
3187 lisp functions like put and aset.
3188 * xselect.c (Fx_own_selection): Rename to Fx_set_selection,
3189 reverse the order of the args, and therefore make the type
3190 non-optional. Doc fix.
3191 (Fx_selection_value): Rename to Fx_selection; make the type
3192 argument non-optional, for symmetry with Fx_set_selection. Doc
3194 (syms_of_xselect): Adjusted.
3196 * xselect.c (Fx_own_selection, Fx_selection_value): Remove "#if
3197 0"'ed code which made cut buffers look like a special selection
3200 * xfns.c (Vx_selection_value): Removed extern declaration for
3201 this; it's never used.
3203 * data.c (Fcompiled_function_p): Renamed to Fbyte_code_function_p.
3204 (syms_of_data): Adjusted.
3206 * data.c (Fnumberp, Fnumber_or_marker_p): Use the NUMBERP macro,
3207 instead of writing it out.
3209 * fns.c (internal_equal): If the operands are both numbers,
3210 compare them numerically, so that (equal 1.0 1) => t.
3211 Compare Lisp_Compiled objects like vectors.
3213 Add lisp functions to raise and lower frames.
3214 * termhooks.h (frame_raise_lower_hook): New hook.
3215 * term.c (frame_raise_lower_hook): Define it.
3216 * frame.c (Fframe_to_front, Fframe_to_back): New functions.
3217 (syms_of_frame): defsubr them.
3218 * xterm.c (XTframe_raise_lower): New function.
3219 (x_term_init): Set frame_raise_lower_hook to XTframe_raise_lower.
3221 * frame.c: Doc fixes.
3223 1993-01-24 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3225 Make the cursor style a frame parameter.
3226 * xterm.h (struct x_display): Rename the `text_cursor_kind' member
3227 to `current_cursor'; add new member `desired_cursor'.
3228 (FRAME_DESIRED_CURSOR): New accessor for new member.
3229 * xterm.c (x_display_bar_cursor): Rewritten so as not to damage
3230 the characters the cursor is displayed over, and to handle
3231 transitions between box and bar styles.
3232 (x_display_bar_cursor, x_display_box_cursor): Use current_cursor
3233 instead of text_cursor_kind.
3234 (Vbar_cursor): Delete external declaration.
3235 (x_display_cursor): Use the FRAME_DESIRED_CURSOR accessor instead
3236 of Vbar_cursor to decide how to draw the cursor.
3237 * xfns.c (Vbar_cursor): Remove definition.
3238 (Qbar, Qbox, Qcursor_type): New symbols.
3239 (syms_of_xfns): Init and staticpro them; remove DEFVAR for
3241 (x_set_cursor_type): New setter.
3242 (x_frame_parms): Add it to the list.
3243 (Fx_create_frame): Get default values for the cursor type.
3245 * frame.c (Fmouse_position): Pass the appropriate arguments to
3246 *mouse_position_hook; the protocol was changed, but this caller
3249 * xterm.c (XTclear_frame): Call x_scrollbar_clear.
3250 (x_scrollbar_clear): New function.
3252 * xterm.c (XTflash): Totally rewritten. Only defined if
3253 HAVE_TIMEVAL and HAVE_SELECT are defined, since we use select for
3255 (timeval_subtract): New function, to help XTflash.
3256 (x_invert_frame): Removed. This didn't work anyway.
3257 (XTring_bell): Remove "#if 0" around call to XTflash, and remove
3258 calls to x_invert_frame. If both HAVE_TIMEVAL and HAVE_SELECT
3259 aren't defined, then just do the ordinary beep.
3261 * window.c (Fscroll_other_window): Prefer windows on the selected
3262 frame, then look for windows on other visible frames.
3264 * keyboard.c (Fmouse_click_p): Removed; with the 'e' spec, this
3265 isn't necessary anymore.
3266 (syms_of_keyboard): Remove defsubr for it.
3267 * keyboard.h (Fmouse_click_p): Remove extern declaration for it.
3269 * xfns.c (gray_bits): Remove this declaration; the same data is in
3270 <X11/bitmaps/gray>. #include that instead.
3271 [not HAVE_X11] (x_set_border_pixel): Use gray_width and
3272 gray_height, instead of assuming that the bitmap is 16x16.
3273 (x_make_gc): Instead of creating a pixmap and then calling
3274 XPutImage to make it into a gray stipple, just call
3275 XCreatePixmapFromBitmapData to do it all at once.
3277 * xterm.c (x_text_icon): Move the request for font information
3278 into the "not HAVE_X11" part of the function; the X11 code doesn't
3281 * xterm.c (x_wm_set_icon_pixmap): Instead of setting the
3282 icon_pixmap to None, just remove IconPixmapHint from the flags of
3283 the XWMHints structure.
3285 * window.c (Fprevious_frame): Use prev_frame when we get to the
3286 end of the current frame, not next_frame. Doc fix.
3287 * frame.c (prev_frame): Remove "#if 0" from this function. It
3288 turns out we do need it, to make prev_frame work right.
3290 * frame.c (next_frame): Check that FRAME is a live frame.
3292 * frame.c (Fselect_frame): Remove "#ifdef MULTI_FRAME" clause
3293 around the code which calls Ffocus_frame; this code is already
3294 inside an "#ifdef MULTI_FRAME" clause.
3295 (next_frame, prev_frame, Fnext_frame): For the same reasons,
3296 remove the "#ifdef MULTI_FRAME" clause around these functions.
3298 unread-command-event has been replaced by unread-command-events.
3299 * commands.h (unread_command_event): Change extern declaration.
3300 * keyboard.c (unread_command_event): Change the definition.
3301 (syms_of_keyboard): Change DEFVAR, and adjust the docstring.
3302 (command_loop_1, read_char, Finput_pending, Fdiscard_input)
3303 (quit_throw_to_read_char, init_keyboard): Change to use
3304 unread_command_events, with the new semantics.
3305 * lread.c (read_char): Same.
3306 * minibuf.c (temp_echo_area_glyphs): Same.
3307 * xterm.c (unread_command_event): Remove external declaration for
3308 this; it is only used by obsolete code.
3310 * Makefile.in: Some makes can't handle comments in the middle of
3311 commands; move them to before the whole rule.
3313 1993-01-21 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3315 * keyboard.c (make_lispy_event): When handling a mouse click event
3316 on a window, change x and y from screen coordinates to window
3317 coordinates even when the click isn't in the text area.
3319 * xterm.c (x_scrollbar_create): Remove code which asks for
3320 EastGravity for windows; Emacs can't correctly deal with them
3321 moving around unexpectedly.
3323 * xterm.c (XTread_socket): Minor reformatting.
3325 * xterm.c (x_set_window_size): Always mark the frame garbaged.
3327 * window.c (Vmouse_window): Variable removed; it can't be handled
3328 properly without race conditions, and the events give you all the
3329 information you need anyway.
3330 (syms_of_window): Remove DEFVAR.
3331 * callint.c (Fcall_interactively): Change the `@' spec to select
3332 the window of the first parameterized event in the key sequence
3333 which invoked the command, instead of using Vmouse_window, which
3334 isn't even updated anymore. Adjust the documentation
3337 1993-01-20 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3339 * xterm.c (x_scrollbar_create): Set the scrollbars to use
3342 * keyboard.c (make_lispy_event): Deal with button releases with no
3343 stored down-going position. Make sure we always store a Qnil in
3344 the right button_down_location element after using it.
3346 1993-01-19 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3348 * frame.c (Fdelete_frame): Clear the frame's display after calling
3349 the window-system-dependent frame destruction routine. We
3350 no longer need to pass the display as a separate argument to
3352 * xterm.c (x_destroy_window): Put the code which clears out f's
3353 display here, right after we free the storage it points to. Put
3354 everything, including the code which clears x_focus_frame and
3355 x_highlight_frame, inside the BLOCK/UNBLOCK_INPUT pair.
3357 * dispnew.c (Fredraw_display): Undo change of Jan 12; redraw only
3358 frames whose garbaged flag is set. The change to
3359 FRAME_SAMPLE_VISIBILITY on Jan 14 should address the problem better.
3361 keyboard.c (read_char_menu_prompt): Test HAVE_X_WINDOWS, not
3364 The CPP symbol indicating whether or not we have mouse menu
3365 support under X Windows is HAVE_X_MENU, not not NO_X_MENU.
3366 * emacs.c (main): Test HAVE_X_MENU, instead of NO_X_MENU.
3367 * keyboard.c (read_char_menu_prompt): Same.
3370 * keyboard.c (read_char, read_char_menu_prompt): Use the
3371 EVENT_HAS_PARAMETERS macro from keyboard.h, instead of writing it
3374 * keyboard.c (read_char_menu_prompt): Doc fix.
3376 * keyboard.c (read_char_menu_prompt): Fix test for no menus;
3377 comparing name to Qnil doesn't work if we are called with no maps.
3379 * keymap.c (Fdefine_key): Call Fkey_description to make the string
3380 to use in the error message.
3382 1993-01-18 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3384 * window.c (Fdisplay_buffer): Doc fix.
3386 1993-01-16 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
3388 * xterm.c (x_window_to_scrollbar): Search frames'
3389 condemned_scrollbars list as well; input might arrive during
3391 (x_scrollbar_report_motion): Don't forget to BLOCK_INPUT.
3392 (XTjudge_scrollbars): Clear the condemned scrollbar list before
3393 traversing it, so we don't try to process an event on a scrollbar
3396 1993-01-15 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3398 * keyboard.c (Frecent_keys): Doc fix.
3400 1993-01-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3402 * window.c (Fwindow_at): Doc fix.
3404 1993-01-14 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3406 * xterm.c (x_scrollbar_create): Include PointerMotionHintMask in
3407 the event mask for scrollbars.
3409 * dispnew.c (Fredraw_display): DEFUN was missing a closing paren.
3411 * term.c (set_vertical_scrollbar_hook, condemn_scrollbars_hook,
3412 redeem_scrollbar_hook, judge_scrollbars_hook): Removed dumbo
3413 "externs" from these. They're supposed to be real definitions.
3415 * .gdbinit: Add "-geometry +0+0" to default args.
3416 (xscrollbar): New command.
3418 Make scrollbar structures into lisp objects, so that they can be
3419 GC'd; this allows windows and scrollbars can refer to each other
3420 without worrying about dangling pointers.
3421 * xterm.h (struct x_display): vertical_scrollbars and
3422 judge_timestamp members deleted.
3423 (struct scrollbar): Redesigned to be a template for a Lisp_Vector.
3424 (SCROLLBAR_VEC_SIZE, XSCROLLBAR, SCROLLBAR_PACK, SCROLLBAR_UNPACK)
3425 (SCROLLBAR_X_WINDOW, SET_SCROLLBAR_X_WINDOW)
3426 (VERTICAL_SCROLLBAR_INSIDE_WIDTH, VERTICAL_SCROLLBAR_TOP_RANGE)
3427 (VERTICAL_SCROLLBAR_INSIDE_HEIGHT, VERTICAL_SCROLLBAR_MIN_HANDLE):
3428 New macros, to help deal with the lispy structures, and deal with
3430 * frame.h (WINDOW_VERTICAL_SCROLLBAR): Macro deleted.
3431 (struct frame): New fields `scrollbars' and
3432 `condemned_scrollbars', for use by the scrollbar implementation.
3433 [MULTI_FRAME and not MULTI_FRAME] (FRAME_SCROLLBARS,
3434 FRAME_CONDEMNED_SCROLLBARS): Accessors for the new field.
3435 * window.h (struct window): Doc fix for vertical_scrollbar field.
3436 * frame.c (make_frame): Initialize the `scrollbars' and
3437 `condemned_scrollbars' fields of the new frame.
3438 * alloc.c (mark_object): Mark the `scrollbars' and
3439 `condemned_scrollbars' slots of frames.
3440 * xterm.c (x_window_to_scrollbar): Scrollbars are chained on
3441 frames' scrollbar field, not their x.display->vertical_scrollbars
3443 (x_scrollbar_create, x_scrollbar_set_handle, x_scrollbar_move)
3444 (x_scrollbar_remove, XTset_vertical_scrollbar)
3445 (XTcondemn_scrollbars, XTredeem_scrollbar, XTjudge_scrollbars)
3446 (x_scrollbar_expose, x_scrollbar_handle_click)
3447 (x_scrollbar_handle_motion): Substantially rewritten to correct
3448 typos and brainos, and to accommodate the lispy structures.
3450 * xterm.c (x_scrollbar_background_expose): Function deleted; we
3451 don't want anything in the background there after all.
3452 (XTread_socket): Don't call x_scrollbar_background_expose. We
3455 * frame.h (FRAME_SAMPLE_VISIBILITY): Make sure frame is marked as
3456 garbaged whenever it goes from invisible to visible.
3457 * dispextern.h (frame_garbaged): Move extern declaration from here...
3458 * frame.h (frame_garbaged): ... to here. The FRAME_SAMPLE_VISIBILITY
3459 macro uses it now, and this seems to be just as modular. Make a
3460 new page, just for this and message_buf_print.
3461 (struct frame): Doc fix for the `visible' field.
3462 * process.c: #include "frame.h" instead of "dispextern.h"; the
3463 only thing we care about from it is the frame_garbaged
3465 * ymakefile: Note dependency change.
3467 * xfns.c (Fx_create_frame): After mapping the frame, call
3468 SET_FRAME_GARBAGED, not just plain FRAME_GARBAGED.
3470 * window.c (window_internal_width): New function, which accounts
3471 for scrollbars if present.
3472 * lisp.h (window_internal_height, window_internal_width): Add
3473 extern declarations for these.
3474 * dispnew.c (direct_output_for_insert, direct_output_forward_char,
3475 buffer_posn_from_coords): Use window_internal_width instead of
3476 writing out its definition.
3477 * indent.c (compute_motion): Doc fix; mention scrollbars and
3478 window_internal_width.
3479 (pos_tab_offset, Fvertical_motion): Use window_internal_width
3480 instead of writing it out.
3481 * window.c (Fpos_visible_in_window_p, Fwindow_width, Fscroll_left)
3482 (Fscroll_right): Same.
3483 * xdisp.c (redisplay, try_window, try_window_id)
3484 (display_text_line): Same.
3486 * xdisp.c (display_string): Add new variable `f', to be W's
3487 frame. Use it to set desired_glyphs, and to get the frame's width
3488 to decide whether or not to draw vertical bars.
3490 * xdisp.c (display_text_line): If we're using vertical scrollbars,
3491 don't draw the vertical bars separating side-by-side windows.
3492 (display_string): Same thing. Draw spaces to fill in the part of
3493 the mode line that is under the scrollbar in partial-width
3496 * xfns.c (Qvertical_scrollbars): New symbol. Use it as the name
3497 of the parameter which decides whether or not the frame has
3498 scrollbars, instead of Qvertical_scrollbar.
3499 (Fx_create_frame): Adjusted accordingly.
3500 (syms_of_xfns): Initialize and staticpro Qvertical_scrollbars.
3501 (x_set_vertical_scrollbar): Renamed to x_set_vertical_scrollbars.
3502 (x_frame_parms): Adjusted accordingly.
3504 * xterm.h (CHAR_TO_PIXEL_WIDTH, CHAR_TO_PIXEL_HEIGHT)
3505 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Rewritten, using:
3506 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, PIXEL_TO_CHAR_ROW)
3507 (PIXEL_TO_CHAR_COL): New macros.
3508 * xfns.c [not HAVE_X11] (Fx_create_frame): Use the
3509 PIXEL_TO_CHAR_{HEIGHT,WIDTH} macros to figure the frame's
3510 character size, and the CHAR_TO_PIXEL* macros for vice versa.
3511 * xterm.c (XTwrite_glyphs, XTclear_end_of_line, stufflines)
3512 (scraplines, dumprectangle, pixel_to_glyph_coords, x_draw_box)
3513 (clear_cursor, x_display_bar_cursor, x_draw_single_glyph)
3514 (x_set_mouse_position): Use the CHAR_TO_PIXEL_* macros.
3516 * xterm.c (x_wm_set_size_hint): The max_width and max_height
3517 members of the size_hints are expressed in pixels, not columns.
3519 * xterm.c (x_set_window_size): Remove ibw var; it's not used.
3520 Set FRAME_WIDTH (f) to cols instead of rows. Duh.
3522 * xterm.c (pixel_to_glyph_coords): Properly set *bounds to the
3523 character cell bounding the position, even when the position is
3526 * xfns.c (x_set_name): To request that the modelines be redrawn,
3527 execute the statement "update_mode_lines = 1;" instead of the
3528 silly statement "update_mode_lines;".
3530 * xfns.c (x_set_vertical_scrollbars): Don't try to set the
3531 X window's size if the frame's X window hasn't been created yet.
3533 * xfns.c (x_figure_window_size): Set the frame's
3534 vertical_scrollbar_extra field before trying to calculate its
3537 * xfns.c (x_window): When calling x_implicitly_set_name for the
3538 sake of drawing the name for the first time, remember to clear and
3539 set the frame's explicit_name member as well as its name member.
3540 (Fx_create_frame): Set the frame's explicit_name member if the
3541 user specified the name explicitly.
3543 * xdisp.c (display_text_line): Use the usable internal width of
3544 the window, as calculated above, as the limit on the length of the
3545 overlay arrow's image, rather than using the window's width field,
3548 * xdisp.c (redisplay): Call condemn_scrollbars_hook and
3549 judge_scrollbars_hook whenever they are set, not just when the
3550 frame has vertical scrollbars.
3552 * termhooks.h (mouse_position_hook): Doc fix.
3553 (set_vertical_scrollbar_hook): This doesn't return anything any
3554 more, and doesn't take a struct scrollbar * argument any more.
3555 (condemn_scrollbars_hook, redeem_scrollbar_hook,
3556 judge_scrollbars_hook): Doc fixes.
3557 * term.c (mouse_position_hook): Doc fix.
3558 (set_vertical_scrollbar_hook): This doesn't return
3559 anything any more. Doc fixes.
3560 * keyboard.c (kbd_buffer_get_event): Receive the scrollbar's
3561 window from *mouse_position_hook and pass it to
3562 make_lispy_movement, instead of working with a pointer to a struct
3564 (make_lispy_event): We don't need a window_from_scrollbar function
3565 anymore; we are given the window directly in *EVENT.
3566 Unify the code which generates
3567 text-area mouse clicks and scrollbar clicks; use the same code to
3568 distinguish clicks from drags on the scrollbar as in the text area.
3569 Distinguish clicks from drags by storing a copy of the lispy
3570 position list returned as part of the event.
3571 (button_down_location): Make this a lisp vector, rather than an
3572 array of random structures.
3573 (struct mouse_position): Remove this; it's been replaced by a lisp
3575 (make_lispy_movement): Accept the scrollbar's window as a
3576 parameter, rather than the scrollbar itself.
3577 If FRAME is zero, assume that the other arguments are garbage.
3578 (syms_of_keyboard): No need to staticpro each window of
3579 button_down_location now; just initialize and staticpro it.
3580 * window.c (window_from_scrollbar): Function deleted; no longer
3582 * xdisp.c (redisplay_window): Just pass the window to
3583 set_vertical_scrollbar hook; don't pass the scrollbar object too.
3584 * xterm.c (XTmouse_position): Don't return a pointer to the
3585 scrollbar for scrollbar motion; instead, return the scrollbar's
3588 * xterm.c (XTmouse_position): Entirely rewritten, using
3589 XTranslateCoordinates. Call x_scrollbar_report_motion to handle
3590 scrollbar movement events.
3591 (x_scrollbar_report_motion): New function, to help out
3594 * keyboard.c (apply_modifiers): Don't assume that the Qevent_kind
3595 property of BASE is set when we first create the new modified
3596 symbol. Check that the Qevent_kind property is properly set each
3597 time we return any symbol.
3599 * termhooks.h (struct input_event): Replace the frame member with
3600 a Lisp_Object member by the name of frame_or_window. Doc fixes.
3601 Remove the scrollbar member; instead, use frame_or_window to hold the
3602 window whose scrollbar was clicked.
3603 * keyboard.c (kbd_buffer_store_event, kbd_buffer_get_event,
3604 make_lispy_event): Adjust references to frame member of struct
3605 input_event to use frame_or_window now.
3606 * xterm.c (construct_mouse_click, XTread_socket): Same.
3608 * xterm.c (last_mouse_bar, last_mouse_bar_frame, last_mouse_part)
3609 (last_mouse_scroll_range_start, last_mouse_scroll_range_end):
3611 (last_mouse_scrollbar): New variable.
3612 (note_mouse_movement): Clear last_mouse_scrollbar when we have
3613 received a new motion.
3614 (syms_of_xterm): Staticpro last_mouse_scrollbar.
3616 * xterm.c (note_mouse_position): Renamed to note_mouse_movement,
3617 because that's what it really does.
3618 (x_scrollbar_handle_motion): Renamed to x_scrollbar_note_movement,
3620 (XTread_socket): Adjusted.
3622 * xterm.c (XTset_scrollbar): Renamed to XTset_vertical_scrollbar.
3623 (x_term_init): Adjusted.
3625 * keyboard.c (kbd_buffer_frames): Renamed to
3626 kbd_buffer_frame_or_window, and made to exist even when
3627 MULTI_FRAME isn't defined; single-frame systems might have
3628 scrollbars. Use it to GCPRO the frame_or_window field in the
3630 (kbd_buffer_store_event, kbd_buffer_get_event,
3631 stuff_buffered_input): Set and clear the
3632 appropriate element of kbd_buffer_frame_or_window, whether or not
3633 MULTI_FRAME is #defined.
3634 (read_avail_input): When reading characters directly from stdin,
3635 set the frame_or_window field of the event appropriately,
3636 depending on whether or not MULTI_FRAME is #defined.
3637 (Fdiscard_input, init_keyboard): Zap kbd_buffer_frame_or_window,
3638 not kbd_buffer_frames.
3639 (syms_of_keyboard): Initialize and staticpro
3640 kbd_buffer_frame_or_window, whether or not MULTI_FRAME is
3643 * keyboard.c (head_table): Make Qscrollbar_movement have a
3644 Qevent_kind property of Qmouse_movement, not Qscrollbar_movement.
3646 * keyboard.c (read_key_sequence): If we decide to throw away a
3647 mouse event which has prefix symbols (`mode-line',
3648 `vertical-scrollbar', etcetera), remember that we may have to
3649 unwind two characters, not just one.
3651 * keyboard.c (read_key_sequence): Doc fixes.
3653 * keyboard.c (kbd_buffer_store_event): Fix reversed sense of test
3654 for focus redirection.
3656 * keyboard.c (read_char): Don't echo mouse movements.
3658 * emacs.c (shut_down_emacs): New function.
3659 (fatal_error_signal, Fkill_emacs): Call it, instead of writing it out.
3660 * xterm.c (x_connection_closed): Call shut_down_emacs instead of
3661 Fkill_emacs; the latter will try to perform operations on the X
3662 server and die a horrible death.
3663 * lisp.h (shut_down_emacs): Add extern declaration for it.
3665 * xterm.c (x_error_quitter): Move the abort call to after we print
3666 the error message. No harm in that.
3668 * xdisp.c (echo_area_display): Move the assignment of f and the
3669 check for visibility out of the "#ifdef MULTI_FRAME" clause; they
3670 should work under any circumstances.
3672 * xdisp.c (redisplay_window): If we're not going to redisplay this
3673 window because it's a minibuffer whose contents have already been
3674 updated, go ahead and jump to the scrollbar refreshing code
3675 anyway; they still need to be updated. Initialize opoint, so it's
3676 known to be valid when we jump. Calculate the scrollbar settings
3677 properly for minibuffers, no matter what they are displaying at
3680 * xdisp.c (redisplay_windows): Don't restore the current buffer
3681 and its point before refreshing the scrollbars; we need the buffer
3684 1993-01-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3686 * print.c (float_to_string): Add final 0 if text ends with decimal pt.
3688 * dispnew.c (Fredraw_display): Redraw all visible frames.
3689 Make the non-multi-frame version interactive.
3691 1993-01-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3693 * fileio.c (Fset_default_file_modes, Fdefault_file_modes):
3694 Renamed from Fset_umask and Fumask; sense of arg is reversed.
3695 (Fwrite_region): Doc fix.
3697 1993-01-10 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3699 * print.c (float_to_string): Add `.0' at end if needed.
3701 * lread.c (Fload): If warn that .elc file is older, inhibit
3702 the ordinary message that would follow.
3704 1993-01-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3706 * fileio.c (Fdo_auto_save): Add CURRENT_ONLY argument, as
3707 described in doc string.
3709 1993-01-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3711 * fns.c (Frandom): Change arg name.
3713 * editfns.c: Doc fixes.
3715 1993-01-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3717 * unexhp9k800.c (unexec): Don't call exit, just return.
3719 1993-01-07 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3721 * config.h.in: Protect against multiple #inclusions.
3723 * config.h.in: Add a declaration for getenv.
3725 * xfns.c (Fx_get_resource): Add CLASS argument, to give class of
3727 [not HAVE_X11]: Change definition of Fx_get_resource macro
3729 (x_get_arg): Add CLASS argument, to give the class of ATTRIBUTE.
3730 Pass it along to Fx_get_resource.
3731 (x_figure_window_size, x_icon): Pass new argument to x_get_arg.
3732 (x_default_parameter): Add XCLASS argument, to give the class of
3733 XPROP. Pass it along to x_get_arg.
3734 (Fx_create_frame): Pass new args to x_get_arg and
3735 x_default_parameter.
3737 * xfns.c (Fx_create_frame): Use the same resource names and
3738 classes as xterm and Emacs 18.
3740 1993-01-03 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3742 * xfns.c (Fx_get_resource): Use EMACS_CLASS to make class_key
3743 even if SUBCLASS is specified. I don't know whether that is
3744 right, but that's what the doc says.
3745 Cosmetic changes in arg names and doc string.
3747 1992-12-29 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3749 * ralloc.c: [! emacs] [HAVE_CONFIG_H]: #include "config.h"
3751 1992-12-21 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3753 * Makefile.in (tagsfiles): New variable.
3754 (TAGS): Depend on $(tagsfiles); use that in cmds.
3755 (tags): Separate phony rule; depends on TAGS.
3757 1992-12-21 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3759 * keyboard.c: Protect all references to kbd_buffer_frames with
3762 * frame.h (struct frame): New fields `can_have_scrollbars' and
3763 `has_vertical_scrollbars'.
3764 (FRAME_CAN_HAVE_SCROLLBARS, FRAME_HAS_VERTICAL_SCROLLBARS): New
3765 accessors, for both the MULTI_FRAME and non-MULTI_FRAME.
3766 (VERTICAL_SCROLLBAR_WIDTH, WINDOW_VERTICAL_SCROLLBAR,
3767 WINDOW_VERTICAL_SCROLLBAR_COLUMN,
3768 WINDOW_VERTICAL_SCROLLBAR_HEIGHT): New macros.
3769 * window.h (struct window): New field `vertical_scrollbar'.
3770 * xterm.h (struct x_display): vertical_scrollbars,
3771 judge_timestamp, vertical_scrollbar_extra: New fields.
3772 (struct scrollbar): New struct.
3773 (VERTICAL_SCROLLBAR_PIXEL_WIDTH, VERTICAL_SCROLLBAR_PIXEL_HEIGHT)
3774 (VERTICAL_SCROLLBAR_LEFT_BORDER, VERTICAL_SCROLLBAR_RIGHT_BORDER)
3775 (VERTICAL_SCROLLBAR_TOP_BORDER, VERTICAL_SCROLLBAR_BOTTOM_BORDER)
3776 (CHAR_TO_PIXEL_WIDTH, CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_WIDTH)
3777 (PIXEL_TO_CHAR_HEIGHT): New accessors and macros.
3778 * frame.c (make_frame): Initialize the `can_have_scrollbars' and
3779 `has_vertical_scrollbars' fields of the frame.
3780 * term.c (term_init): Note that TERMCAP terminals don't support
3782 (mouse_position_hook): Document new args.
3783 (set_vertical_scrollbar_hook, condemn_scrollbars_hook,
3784 redeem_scrollbar_hook, judge_scrollbars_hook): New hooks.
3785 * termhooks.h: Declare and document them.
3786 (enum scrollbar_part): New type.
3787 (struct input_event): Describe the new form of the scrollbar_click
3788 event type. Change `part' from a Lisp_Object to an enum
3789 scrollbar_part. Add a new field `scrollbar'.
3790 * keyboard.c (kbd_buffer_get_event): Pass appropriate new
3791 parameters to *mouse_position_hook, and make_lispy_movement.
3792 * xfns.c (x_set_vertical_scrollbar): New function.
3793 (x_figure_window_size): Use new macros to calculate frame size.
3794 (Fx_create_frame): Note that X Windows frames do support scroll
3795 bars. Default to "yes".
3796 * xterm.c: #include <X11/cursorfont.h> and "window.h".
3797 (x_vertical_scrollbar_cursor): New variable.
3798 (x_term_init): Initialize it.
3799 (last_mouse_bar, last_mouse_bar_frame, last_mouse_part)
3800 (last_mouse_scroll_range_start, last_mouse_scroll_range_end): New
3802 (XTmouse_position): Use them to return scrollbar movement events.
3803 Take new arguments, for that purpose.
3804 (x_window_to_scrollbar, x_scrollbar_create)
3805 (x_scrollbar_set_handle, x_scrollbar_remove, x_scrollbar_move)
3806 (XTset_scrollbar, XTcondemn_scrollbars, XTredeem_scrollbar)
3807 (XTjudge_scrollbars, x_scrollbar_expose)
3808 (x_scrollbar_background_expose, x_scrollbar_handle_click)
3809 (x_scrollbar_handle_motion): New functions to implement scrollbars.
3810 (x_term_init): Set the termhooks.h hooks to point to them.
3811 (x_set_window_size): Use new macros to calculate frame size. Set
3812 vertical_scrollbar_extra field.
3813 (x_make_frame_visible): Use the frame accessor
3814 FRAME_HAS_VERTICAL_SCROLLBARS to decide if we need to map the
3815 frame's subwindows as well.
3816 (XTread_socket): Use new size-calculation macros from xterm.h when
3817 processing ConfigureNotify events.
3818 (x_wm_set_size_hint): Use PIXEL_TO_CHAR_WIDTH and
3819 PIXEL_TO_CHAR_HEIGHT macros.
3820 * ymakefile (xdisp.o): This now depends on termhooks.h.
3821 (xterm.o): This now depends on window.h.
3823 * xdisp.c: #include "termhooks.h".
3824 (redisplay, redisplay_window): Use set_vertical_scrollbar_hook,
3825 condemn_scrollbars_hook, redeem_scrollbar_hook, and
3826 judge_scrollbars_hook to make scrollbars redisplay properly.
3828 * keyboard.c (Qscrollbar_movement, Qvertical_scrollbar,
3829 Qabove_handle, Qhandle, Qbelow_handle): New symbols.
3830 (make_lispy_event): New code to build scrollbar clicks.
3831 (make_lispy_movement): New code to handle scrollbar movement.
3832 (head_table): Include Qscrollbar_movement in the event heads.
3833 (syms_of_keyboard): Init and staticpro Qvertical_scrollbar,
3834 Qabove_handle, Qhandle, and Qbelow_handle.
3835 * keyboard.h (Qscrollbar_movement): Declare this along with the
3837 * lisp.h (Qvertical_scrollbar): Declare this.
3838 * window.c (window_from_scrollbar): New function.
3840 * xterm.h (struct x_display): Delete v_scrollbar, v_thumbup,
3841 v_thumbdown, v_slider, h_scrollbar, h_thumbup,
3842 h_thumbdown, h_slider, v_scrollbar_width, h_scrollbar_height
3844 * keyboard.c (Qvscrollbar_part, Qvslider_part, Qvthumbup_part)
3845 (Qvthumbdown_part, Qhscrollbar_part, Qhslider_part, Qhthumbup_part)
3846 (Qhthumbdown_part, Qscrollbar_click): Deleted; part of an obsolete
3848 (head_table): Removed from here as well.
3849 (syms_of_keyboard): And here.
3850 * keyboard.h: And here.
3851 (POSN_SCROLLBAR_BUTTON): Removed.
3852 * xscrollbar.h: File removed - no longer necessary.
3853 * xfns.c: Don't #include it any more.
3854 (Qhorizontal_scroll_bar, Qvertical_scroll_bar): Deleted.
3855 (syms_of_xfns): Don't initialize or staticpro them.
3856 (gray_bits): Salvaged from xscrollbar.h.
3857 (x_window_to_scrollbar): Deleted.
3858 (x_set_horizontal_scrollbar): Deleted.
3859 (enum x_frame_parm, x_frame_parms): Remove references to
3860 x_set_horizontal_scrollbar.
3861 (x_set_foreground_color, x_set_background_color,
3862 x_set_border_pixel): Remove special code to support scrollbars.
3863 (Fx_create_frame): Remove old scrollbar setup code.
3864 (install_vertical_scrollbar, install_horizontal_scrollbar,
3865 adjust_scrollbars, x_resize_scrollbars): Deleted.
3866 * xterm.c (construct_mouse_click): This doesn't need to take care of
3867 scrollbar clicks anymore.
3868 (XTread_socket): Remove old code to support scrollbars. Call new
3869 functions instead for events which occur in scrollbar windows.
3870 (XTupdate_end): Remove call to adjust_scrollbars; the main
3871 redisplay code takes care of that now.
3872 (enum window_type): Deleted.
3873 * ymakefile: Note that xfns.o no longer depends on xscrollbar.h.
3875 * xterm.c (x_set_mouse_position): Clip mouse position to be within
3878 * xterm.c: Adjust the first line of each page to have a reasonable
3879 description. This makes pages-directory more useful.
3881 * xterm.c (x_do_pending_expose): Declare this routine only if
3882 HAVE_X11 is not #defined; X11 doesn't need it.
3883 (XTread_socket): Protect call to x_do_pending_expose with `#ifdef
3886 * xfns.c (syms_of_xfns): Delete defvars for x_mouse_x and
3887 x_mouse_y. That interface hasn't been live for years.
3888 (x_mouse_x, x_mouse_y): Delete these variables.
3890 * xterm.c (notice_mouse_movement): Deleted; obsolete and unused.
3892 * keyboard.c (Fread_key_sequence): Doc fix.
3894 * keyboard.c (make_lispy_event): Buttons are numbered starting
3897 * keyboard.c (make_lispy_event): Use the proper accessors when
3898 manipulating the `x' and `y' fields of struct input_event.
3900 * keyboard.c (parse_modifiers_uncached): Remember that strncmp
3901 returns zero if the two substrings are equal.
3903 * keyboard.c (do_mouse_tracking, Ftrack_mouse): Doc fix.
3905 * keyboard.c (read_char): Don't put mouse movements in
3908 * xfns.c (Fx_create_frame): Don't initialize the wm_hints field here.
3909 (x_window): Do it here, along with all the similar stuff.
3911 1992-12-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3913 * callint.c (Fcall_interactively): For `s', use Fread_string.
3915 1992-12-20 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3917 Properly handle focus shift events, so the cursor is filled and
3918 hollow at the appropriate times, even in titleless windows.
3919 * xterm.c (x_focus_event_frame): New variable.
3920 (XTread_socket): When we receive a FocusIn event that's not
3921 NotifyPointer, record the frame in x_focus_event_frame. When we
3922 receive a FocusOut event that's not NotifyPointer, clear it. When
3923 we get a LeaveNotify event, don't take it seriously if we still
3926 * xterm.c (XTread_socket): Remove special code in EnterNotify case
3927 to handle scrollbars and fake mouse motion events.
3929 1992-12-19 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3931 * floatfns.c (Flog): Fix unescaped newline in string.
3932 * frame.c (Fnext_frame): Same.
3933 * textprop.c (Fprevious_single_property_change): Same.
3934 (syms_of_textprop): Same, for DEFVAR for
3935 `interval_balance_threshold'.
3937 Change the meaning of focus redirection to make switching windows
3938 work properly. Fredirect_frame_focus has the details.
3939 * frame.h (focus_frame): Doc fix.
3940 [not MULTI_FRAME] (FRAME_FOCUS_FRAME): Make this Qnil, which
3941 indicates no focus redirection, instead of zero, which is
3943 * frame.c (make_frame): Initialize f->focus_frame to Qnil, rather
3944 than making it point to frame itself.
3945 (Fselect_frame): If changing the selected frame from FOO to BAR,
3946 make all redirections to FOO shift to BAR as well. Doc fix.
3947 (Fredirect_frame_focus): Doc fix. Accept nil as a valid
3948 redirection, not just as a default for FRAME.
3949 (Fframe_focus): Doc fix.
3950 * keyboard.c (kbd_buffer_store_event, kbd_buffer_get_event): Deal
3951 with focus redirections being nil.
3952 * xterm.c (XTframe_rehighlight): Doc fix. Deal with focus
3953 redirections being nil.
3955 * window.c (Fset_window_configuration): Don't restore the frame's
3956 focus redirection if the target frame is now dead.
3958 * ymakefile (ralloc.o): This no longer depends on xterm.h.
3960 * ymakefile (all, xemacs): We build an executable called `emacs' now,
3962 * Makefile.in (distclean, xemacs, doxemacs): Same.
3964 * xterm.h (PIXEL_WIDTH, PIXEL_HEIGHT): Change name of parameter
3965 from `s' to `f'; it's a frame pointer.
3967 1992-12-18 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3969 * keyboard.c (kbd_buffer_frames): New vector, to GCPRO frames in
3971 (kbd_buffer_store_event): When we add an event to kbd_buffer, make
3972 sure to store its frame in kbd_buffer_frames.
3973 (kbd_buffer_get_event): When we remove an event from kbd_buffer,
3974 make sure to set the corresponding element of kbd_buffer_frames to
3975 Qnil, to allow the frame to get GC'd.
3976 (Fdiscard_input, init_keyboard): Clear all elements of
3977 kbd_buffer_frames to nil.
3978 (syms_of_keyboard): Create and staticpro kbd_buffer_frames.
3980 * xterm.c (x_error_quitter): Just abort, so we can look at the
3981 core to see what happened.
3983 1992-12-17 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3985 * buffer.c (Frename_buffer): Set update_mode_lines.
3987 1992-12-14 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3989 * scroll.c (do_scrolling): When bcopying the max_ascent field from
3990 current_frame to temp_frame, remember that max_ascent is an array
3991 of shorts, not ints.
3993 It's a pain to remember that you can't assign to FRAME->visible.
3994 Let's change all references to the `visible' member of struct
3995 frame to use the accessor macros, and then write a setter for the
3996 `visible' field that does the right thing.
3997 * frame.h (FRAME_VISIBLE_P): Make this not an l-value.
3998 (FRAME_SET_VISIBLE): New macro.
3999 * frame.c (make_terminal_frame, Fdelete_frame): Use FRAME_SET_VISIBLE.
4000 (Fframe_visible_p, Fvisible_frame_list): Use FRAME_VISIBLE_P and
4002 * dispnew.c (Fredraw_display): Use the FRAME_VISIBLE_P and
4003 FRAME_GARBAGED_P accessors.
4004 * xdisp.c (redisplay): Use the FRAME_VISIBLE_P accessor.
4005 * xfns.c (x_set_foreground_color, x_set_background_color,
4006 x_set_cursor_color, x_set_border_pixel, x_set_icon_type): Use the
4007 FRAME_VISIBLE_P accessor.
4008 (Fx_create_frame): Use FRAME_SET_VISIBILITY.
4009 * xterm.c (clear_cursor, x_display_bar_cursor,
4010 x_display_box_cursor): Use FRAME_SET_VISIBILITY.
4012 1992-12-12 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4014 * ymakefile (CFLAGS): #define HAVE_CONFIG_H too.
4016 * Makefile.in (distclean): Don't delete machine.h or system.h;
4017 they don't exist anymore.
4019 * Makefile.in (distclean): Don't delete autosave or backup files.
4020 (extraclean): New target; like distclean, but delete autosave
4021 and backup files too.
4023 1992-12-11 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4025 * search.c (Fskip_chars_forward, Fskip_chars_backward): Return the
4027 (skip_chars): Return the distance traveled, as a Lisp_Object.
4029 * macros.c (Fend_kbd_macro): Don't use XFASTINT to check if arg is
4030 negative; XFASTINT only works on values known to be positive.
4031 (Fexecute_kbd_macro): Check QUIT in the repetition loop. If the
4032 macro is null, no characters are actually being read, so this
4035 * Makefile.in (srcdir): New variable, not fully implemented.
4036 (xmakefile): Turn -g and -O in CFLAGS into C_DEBUG_SWITCH and
4037 C_OPTIMIZE_SWITCH in C_SWITCH_SITE's definition. Delete junk.cpp
4039 * ymakefile (archlib): Variable definition deleted. Run programs
4040 from ../lib-src directly, or use ${archlibdir}.
4041 (${etc}DOC): Run make-docfile from ${libsrc}, not ${archlib}.
4042 (${archlib}make-docfile, ${archlib}emacstool): Use ${libsrc}, not
4045 * ymakefile (lisp): Don't include version.el in this list.
4047 Give subprocess creation a way to find a valid current directory
4048 for subprocesses when the buffer's default-directory is a handled
4050 * fileio.c (Funhandled_file_name_directory): New function.
4051 (Qunhandled_file_name_directory): New file-name-handler operation.
4052 (syms_of_fileio): Defsubr Sunhandled_file_name_directory, and
4053 initialize and staticpro Qunhandled_file_name_directory.
4054 * callproc.c (Fcall_process): Call Funhandled_file_name_directory
4055 on the buffer's default directory. Do it earlier in the function
4056 so there's less to GCPRO.
4057 * process.c (create_process): Don't check the validity of the
4058 buffer's default directory here...
4059 (Fstart_process): Instead, do it here; if we call
4060 Funhandled_file_name_directory here, there's less GCPROing to do.
4062 * callproc.c (Fcall_process_region): Return the value returned by
4065 * fileio.c (find_file_handler): Rename this to
4066 Ffind_file_name_handler, and make it visible to lisp. Add a QUIT
4067 to the loop which scans file-name-handler-alist. All uses
4069 (syms_of_fileio): Mention this new function in the docstring for
4070 Vfile_name_handler_alist. defsubr Sfind_file_name_handler.
4071 * lisp.h (Ffind_file_name_handler): Added extern declaration.
4072 * dired.c: All uses of find_file_handler changed here too.
4074 * fileio.c (syms_of_fileio): Add staticpros for Qexpand_file_name,
4075 Qdirectory_file_name, Qfile_name_directory,
4076 Qfile_name_nondirectory, Qfile_name_as_directory.
4078 1992-12-07 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4080 * window.c (Fset_window_configuration): If we're restoring the
4081 configuration of a dead frame, don't bother rebuilding its window
4082 tree, restoring its focus redirection, or temporarily resizing it
4083 to fit the saved window configuration. If the frame which was
4084 selected when the configuration was captured is now dead, don't
4087 * frame.c (Fdelete_frame): Delete all the windows in the frame's
4088 window tree, using delete_all_subwindows.
4089 * window.c (delete_all_subwindows): Don't make this static
4092 1992-12-03 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4094 Make sure that frames' visible flag only changes at acceptable
4095 times. See FRAME_SAMPLE_VISIBILITY's comments for details.
4096 * frame.h (struct frame): New fields called async_visible and
4098 (FRAME_SAMPLE_VISIBILITY): New macro, with MULTI_FRAME and
4099 non-MULTI_FRAME definitions.
4100 * xdisp.c (redisplay): Call FRAME_SAMPLE_VISIBILITY to set the
4101 visible and iconified flags appropriately for each frame.
4102 (message1): Call FRAME_SAMPLE_VISIBILITY to set the visible and
4103 iconified flags for the minibuffer frame.
4104 * frame.c (make_frame): Initialize async_visible and
4105 async_iconified properly.
4106 * xfns.c (Fx_create_frame): Initialize f->async_visible too.
4107 * xterm.c (XTread_socket): When we get MapNotify, UnmapNotify,
4108 Expose, ExposeWindow, or UnmapWindow, set f->async_visible, not
4110 (x_do_pending_expose, x_raise_frame, x_lower_frame)
4111 (x_make_frame_invisible, x_make_frame_visible, x_iconify_frame):
4112 Test and set f->async_visible and f->async_iconified, not
4113 f->visible or f->async_iconified.
4115 * keyboard.c (kbd_store_ptr): Declare this to be volatile, if
4116 __STDC__ is #defined.
4117 (Fdiscard_input): Use cast to keep GCC from complaining about the
4118 assignment of kbd_store_ptr to kbd_fetch_ptr.
4120 * xdisp.c (redisplay): Use FOR_EACH_FRAME to apply
4121 redisplay_windows to the root window of each frame. This makes a
4122 #ifdef MULTI_FRAME unneeded, but it also means we recompute
4123 buffer_shared from scratch even on non-MULTI_FRAME configurations.
4124 Don't skip elements of Vframe_list that aren't frames; go ahead
4127 * xdisp.c (redisplay): Remove #ifdef MULTI_FRAME around the code
4128 which updates separate minibuffer frames specially; there's
4129 nothing there that won't work on a single-frame configuration.
4131 * dispextern.h (struct frame_glyphs): Doc fix.
4133 1992-12-02 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
4135 * dispnew.c: Remove dyked-out copy of safe_bcopy.
4137 * environ.c: File removed; Changes on 1/13/1992 made it
4140 1992-12-01 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4142 * process.c (wait_reading_process_input): Doc fix.
4144 1992-11-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4146 * next.h: Copy changes from 18.59:
4148 (BIG_ENDIAN): Define only if __BIG_ENDIAN__.
4149 (m68000, COMPILER_REGISTER_BUG): Defs deleted.
4150 (SIGN_EXTEND_CHAR, LIB_X11_LIB, NO_T_CHARS_DEFINES, UNEXEC): Defined.
4151 (LIBS_DEBUG, LIB_GCC, C_SWITCH_MACHINE, ORDINARY_LINK): Defined.
4152 (TEXT_START, TEXT_END, DATA_END, LD_SWITCH_MACHINE): Defined.
4153 (KERNEL_FILE): #undef it.
4154 (environ): Define as _environ.
4156 1992-11-25 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4158 * doc.c (store_function_docstring): New function, made from part
4159 of Fsnarf_documentation, which handles docstrings for macros
4161 (Fsnarf_documentation): Call store_function_docstring.
4163 * data.c (indirect_function): Delete unused argument ERROR.
4165 1992-11-23 Jim Blandy (jimb@apple-gunkies.gnu.ai.mit.edu)
4167 * Makefile.in (clean): Remove prefix-args.
4169 1992-11-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4171 * s/sol2.h (LD_SWITCH_SYSTEM): Make alternate version for GCC.
4173 1992-11-19 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4175 * m/sparc.h: Don't include <sys/param.h> here; that screws up the
4176 xmakefile. Instead, include it in getloadavg.c, which is the only
4177 place that uses LOAD_AVE_CVT, which is the only reason
4178 <sys/param.h> was here in the first place.
4180 1992-11-15 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4182 * dispnew.c [not MULTI_FRAME] (Fredraw_display): Pass the correct
4183 number of arguments to mark_window_display_accurate.
4185 * undo.c (Fprimitive_undo): Remove whitespace in front of #ifdef
4188 * systty.h: Doc fix.
4190 * systty.h, process.c, buffer.h, callproc.c, sysdep.c, dired.c:
4191 Added VMS changes from Roland Roberts.
4192 * vmspaths.h: New version from Roland Roberts.
4194 * xdisp.c (display_string): Use w's buffer's value of
4195 tab-width to display the string, instead of the current buffer's,
4196 which could be anything.
4198 * s/sol2.h (LD_SWITCH_SYSTEM): Add -R option.
4200 * process.c (read_process_output): Save, widen, insert the process
4201 output, and then restore the restriction if inserting text outside
4204 1992-11-14 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4206 * buffer.c (Ferase_buffer): Doc fix.
4208 * dispnew.c (safe_bcopy): Use the right terminating condition in
4209 the loop which uses multiple bcopy calls to transfer a block to an
4210 overlapping higher block.
4212 1992-11-13 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4214 * process.c (Fstart_process): Establish an unwind-protect to
4215 remove PROC from the process list if an error occurs while
4217 (start_process_unwind): New function to help with that.
4218 (create_process): There's no need to explicitly call
4219 remove_process if the fork fails; the record_unwind_protect in
4220 Fstart_process will take care of it.
4222 * commands.h (unread_command_event): Doc fix.
4224 Don't ever throw away switch-frame events.
4225 * lread.c: #include "keyboard.h".
4226 (Fread_char, Fread_char_exclusive): Don't signal an
4227 error for or throw away switch-frame events; instead, put them off
4228 until after we've found a character we can respond to.
4229 * commands.h (unread_switch_frame): Declare this extern.
4230 * keyboard.c (unread_switch_frame): Don't declare this static.
4231 * ymakefile (lread.o): Note that this depends on keyboard.h.
4233 * keyboard.c (Vlast_event_frame): Doc fix.
4235 * process.c (wait_reading_process_input): Test the C preprocessor
4236 symbol "ultrix", not "__ultrix__" to see if we should ignore
4237 ENOMEM errors from select.
4239 * fileio.c (Fexpand_file_name): Don't fiddle with "/." if it's the
4242 * buffer.c (Fbury_buffer): Make this behave as in 18.59, although
4243 that behavior is very odd - only remove the buffer from the
4244 selected window if BUFFER was nil or omitted.
4246 * keyboard.c (read_char): Write composite events to the dribble
4249 * keyboard.c (init_keyboard): Initialize Vlast_event_frame to
4250 Qnil, rather than the selected frame.
4252 * mem-limits.h [DATA_SEG_BITS] (EXCEEDS_LISP_PTR): Remember to
4253 remove DATA_SEG_BITS from the pointer before testing if the
4254 pointer fits in VALBITS.
4256 * Makefile.in (doxemacs, dotemacs): Explicitly pass along the CC
4257 variable in these rules, just as in the `doall' rule.
4259 * ralloc.c (relocate_some_blocs): Handle BLOC == NIL_BLOC.
4260 (free_bloc): This can now be simplified.
4262 * ralloc.c (r_alloc_sbrk): When we allocate new space for the
4263 malloc heap, zero it out even if we don't have any blocs in the
4266 1992-11-12 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4268 * process.c (process_send_signal): On systems which have both
4269 the TIOCGETC and TCGETA ioctls, just use the former.
4271 * xselect.c (Fx_get_cut_buffer): Correct check for buf_num in
4274 * xselect.c (Fx_get_cut_buffer, Fx_set_cut_buffer): Fix error
4275 message format; use NUM_CUT_BUFFERS instead of literal 7.
4277 * keyboard.c (lispy_modifier_list): Added sanity check before
4278 indexing into modifier_symbols.
4280 * keyboard.c (add_command_key): When copying the contents of the
4281 old this_command_keys to new_keys, remember to multiply size by
4282 sizeof (Lisp_Object) to get the amount we really need to copy.
4284 Rename unread_command_char to unread_command_event; it has
4285 subtly different semantics now, and we should use
4286 `make-obsolete-variable' to warn people.
4287 * command.h (unread_command_char): Change name in extern declaration.
4288 * keyboard.c (unread_command_char): Rename.
4289 (command_loop_1, read_char, Finput_pending, Fdiscard_input)
4290 (quit_throw_to_read_char, init_keyboard, syms_of_keyboard): Change
4292 * lread.c (Fread_char): Change reference.
4293 * minibuf.c (temp_echo_area_glyphs): Change reference to
4294 unread_command_char to unread_command_event.
4295 * xfns.c (unread_command_char): Change name in extern declaration
4296 to unread_command_event.
4298 1992-11-11 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4300 * m/pmax.h: Don't define SYSTEM_MALLOC; this was only necessary
4301 for Ultrix version 4.1, and the current version is 4.3.
4303 * s/bsd4-2.h, s/bsd4-3.h: #define SIGNALS_VIA_CHARACTERS.
4304 * process.c (process_send_signal): Put all the code for sending
4305 signals via characters in a #ifdef SIGNALS_VIA_CHARACTERS. Decide
4306 whether to use the Berkeley-style or SYSV-style ioctls by seeing
4307 which ioctl commands are #defined.
4309 * minibuf.c (read_minibuf): If get_minibuffer gives the
4310 new minibuffer a nil default directory, find another buffer with a
4311 better default directory and use that one's instead.
4313 1992-11-10 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4315 * process.c (process_send_signal): Doc fix.
4317 * keyboard.c (read_key_sequence): Don't use
4318 save_excursion_{save,restore} to protect the caller against buffer
4319 switches; use Fset_buffer and Fcurrent_buffer; redisplay might
4320 change point, and we don't want to undo that.
4322 * keyboard.c (kbd_buffer_get_event): When checking a mouse
4323 movement for a frame switch, don't assume Vlast_event_frame
4324 contains a Lisp_Frame object.
4326 1992-11-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4328 * s/dgux.h (SYSTEM_TYPE): Use berkeley-unix.
4330 1992-11-04 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4332 * alloc.c: #include "frame.h" unconditionally. frame.h does the
4333 right thing when MULTI_FRAME isn't defined.
4335 * Makefile.in: Rearrange dependencies to make sure that xmakefile
4336 is built before we try to use it, even using a parallel make.
4338 Changes for SYSV from Eric Raymond:
4339 * process.c [SYSV]: Don't include <termios.h>, <termio.h>, or
4341 (process_send_signal): Don't try to send SIGTSTP
4342 unless SIGTSTP is defined.
4343 * sysdep.c (init_baud_rate) [HAVE_TERMIO, not HAVE_TCATTR]: Use
4344 TCGETA, not TIOCGETP.
4345 * systime.h [USG] (EMACS_GET_TZ_OFFSET): Assign to *(offset), not
4346 (offset). Don't forget the while corresponding to the do.
4347 Include USG in the list of systems that have a tzname array.
4349 * keyboard.c (read_key_sequence): Removed the
4350 replay_sequence_new_buffer label; replay_sequence should be here
4353 Arrange to get compile-time errors for uses of Lisp_Frame in a
4354 non-MULTI_FRAME configuration.
4355 * lisp.h [not MULTI_FRAME]: Don't declare the Lisp_Frame tag.
4356 * minibuf.c (read_minibuf): Protect call to Fredirect_frame_focus
4357 with a #ifdef MULTI_FRAME.
4358 * window.c (Fset_window_configuration): Protect call to
4359 Fselect_frame with a #ifdef MULTI_FRAME.
4360 [not MULTI_FRAME] (Fcurrent_window_configuration): Don't bother
4361 setting the window configuration's selected_frame member.
4362 * keyboard.c (Vlast_event_frame): Arrange for this to exist iff
4363 MULTI_FRAME is defined.
4364 [not MULTI_FRAME] (syms_of_keyboard): Don't DEFVAR Vlast_event_frame.
4365 [not MULTI_FRAME] (read_char): Don't try to set Vlast_event_frame.
4366 [not MULTI_FRAME] (kbd_buffer_store_event): Don't try to set
4367 Vlast_event_frame for quit characters.
4368 [not MULTI_FRAME] (kbd_buffer_get_event): Don't try to generate
4369 switch-frame events.
4371 * buffer.c (init_buffer): If PWD is accurate, use it instead of
4373 #include <sys/types.h> and <sys/stat.h>, for the call to stat.
4375 Indicate whether an autoload form stands for a keymap or not.
4376 * eval.c (Fautoload): Renamed fifth argument TYPE. Document the
4377 fact that (eq TYPE 'keymap) means FUNCTION will become a keymap
4379 (Fmacroexpand): Instead of assuming that every autoload
4380 form with a fifth element is a macro, actually check the fifth
4381 element against t and `macro', which are the only values which
4383 * keymap.c (get_keymap_1): Don't try to autoload OBJECT's function
4384 unless the autoload form indicates that it's a keymap.
4386 1992-11-03 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4388 * .gdbinit (mips): New command.
4390 1992-10-31 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4392 * fileio.c (Fmake_directory_internal): Renamed from Fmake_directory.
4393 Pass nil as third arg to handler.
4394 Lisp function `make-directory' is now in files.el.
4396 1992-10-30 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4398 Clean up errors due to treating Lisp_Objects like integers.
4399 * abbrev.c (Funexpand_abbrev): Just assign the last abbrev's value
4400 to val; don't use XSET. Make sure that the value of the
4401 abbrev-symbol is a string.
4402 * alloc.c (Frope_elt): Declare arguments to be Lisp_Objects.
4403 * buffer.c (reset_buffer): Don't assign to b->save_length as if it
4404 were an int; use XFASTINT.
4405 * buffer.h (Fbuffer_name, Fget_file_buffer): Added external
4407 * bytecode.c (Fbyte_code): Use EQ to compare string_saved with
4409 * casefiddle.c (operate_on_word): Declare end to be an int, not a
4411 * casetab.c (set_case_table): Declare this to be static, and
4412 return a Lisp_Object. Add static declaration for this
4413 before Fset_case_table and Fset_standard_case_table.
4414 (Fset_case_table, Fset_standard_case_table): Return the return
4415 value of set_case_table, instead of returning garbage.
4416 * commands.h (unread_command_char): Declare this to be a
4417 Lisp_Object, not an int.
4418 * data.c (Fset): See if current_alist_element points to itself
4420 (float_arith_driver): Declare this extern above arith_driver.
4421 * dired.c (find_file_handler): Declare this extern.
4422 (Ffile_attributes): Use NILP, not == Qnil.
4423 * dispextern.h (sit_for): Declare this extern.
4424 * doc.c: #include keyboard.h.
4425 * floatfns.c (Flog): Don't forget to declare the BASE argument a
4427 * fns.c: #include keyboard.h.
4428 (Fdelete): Check if Fequal returns Qnil, not zero.
4429 * frame.c: #include buffer.h.
4430 * keyboard.c: #include dispextern.h.
4431 (recursive_edit_unwind, command_loop, Fthis_command_keys): Declare
4432 these to return Lisp_Objects at the very top of the file, to avoid
4433 having them implicitly declared as ints.
4434 (echo_char): Use EQ to compare C to help_char.
4435 (read_char): Remember to apply XFASTINT to the return value of
4436 Flength before using it. Apply XINT to c when clearing its high
4437 bits and meta bits, and when writing it to the dribble file.
4438 (read_char_menu_prompt): Use EQ to compare obj with
4439 menu_prompt_more_char and its control-character analog.
4440 (read_key_sequence): Declare PROMPT to be char *, not a
4441 Lisp_Object. Use the appropriate accessors on keybuf when looking
4442 for ASCII function key sequences.
4443 * keyboard.h (get_keymap_1, Fkeymapp, reorder_modifiers)
4444 (Fmouse_click_p, read_char): Add external declarations for these.
4445 * keymap.c (Fdefine_key, Flookup_key, describe_map): Don't assume
4446 that Flength returns an integer.
4447 * lisp.h (Fdefault_boundp, make_float, Ffloat, Fnth, Fcopy_alist)
4448 (Fmake_byte_code, Fverify_visited_file_modtime, Ffile_exists_p)
4449 (Fdirectory_file_name, Ffile_name_directory)
4450 (expand_and_dir_to_file, Ffile_accessible_directory_p, Fbyte_code)
4451 (Fundo_boundary, truncate_undo_list): Add extern declarations for
4453 * lread.c (read_char): Add an extern declaration for this,
4454 indicating that it returns a Lisp_Object.
4455 * minibuf.c (read_minibuf): Use EQ to compare, not ==.
4456 (temp_echo_area_glyphs): Use XFASTINT to assign to
4457 unread_command_char.
4458 * print.c (print): Cast the frame's address to an integer before
4459 passing it to sprintf to form the frame's printed form.
4460 * process.c (status_convert): Declare this to return a
4461 Lisp_Object at the top of the file.
4462 (decode_status): Don't untag XCONS (tem)->cdr before storing it in
4463 tem; tem is a Lisp_Object, too.
4464 (process_send_signal): Declare this to be static void. Don't
4465 return Qnil; nobody cares.
4466 (sigchld_handler): Use XFASTINT to manipulate p->infd.
4467 * search.c (Fstore_match_data): Don't assume Flength returns a
4469 * undo.c (record_insert): Use accessors on BEG and LENGTH.
4470 (truncate_undo_list): Use NILP, not == Qnil.
4471 * window.c (Fwindow_width, Fset_window_hscroll): Use accessors on
4472 w->width, w->left, w->hscroll, and arguments.
4473 (replace_window): Use EQ, not ==.
4474 (Fdelete_window): p->top and p->left are not C integers.
4475 (Fnext_window, Fprevious_window): Use EQ, not ==.
4476 * window.h (make_window, window_from_coordinates,
4477 Fwindow_dedicated_p): Add extern declarations for these.
4478 * xdisp.c (redisplay): Use ! EQ to compare the old and new arrow
4480 (mark_window_display_accurate): Barf if WINDOW isn't a window.
4481 (display_string): Test buffer_defaults.ctl_arrow using NILP,
4482 instead of comparing it with zero.
4483 * xfns.c (x_decode_color, Fx_color_display_p): x_screen_planes is
4484 an int, not a Lisp_Object.
4485 (x_set_mouse_color): Give separate error messages for the
4486 different cursors we try to set.
4487 (Fx_geometry): Declare STRING to be a Lisp_Object.
4488 (Fx_create_frame): No need to use XSET to assign NAME to f->name;
4489 they're both Lisp_Objects.
4490 (adjust_scrollbars): Use XINT to access w->hscroll.
4491 (Fx_open_connection): x_screen_count, x_release, x_screen_height,
4492 x_screen_height_mm, x_screen_width, x_screen_width_mm,
4493 x_save_under, and x_screen_planes are integers, not Lisp_Objects.
4494 (syms_of_xfns): x_mouse_x, x_mouse_y, and mouse_buffer_offset are
4495 integers, not Lisp_Objects.
4496 * xselect.c (own_selection): selection_type is an X Atom value,
4498 (x_selection_arrival): Declare this static, and add a forward
4499 declaration at the top of the page.
4500 * xterm.c (x_convert_modifiers): Declare this to return an
4501 unsigned int, not a Lisp_Object. Remember that the quiescent
4502 value for part is Qnil, not zero, that x_mouse_x and x_mouse_y
4503 are ints, not Lisp_Objects, and that RESULT->x and RESULT->y are
4504 Lisp_Objects, not ints.
4505 (XTread_socket): Declare this to return int, not Lisp_Object.
4506 When calling construct_mouse_click on a non-scrollbar click, pass
4507 PART as Qnil, not zero.
4508 (x_calc_absolute_position): Remember that x_screen_width and
4509 x_screen_height are ints, not Lisp_Objects.
4510 * xterm.h (x_screen_count, x_release, x_screen_height)
4511 (x_screen_height_mm, x_screen_width, x_screen_width_mm)
4512 (x_save_under, x_screen_planes): Declare this as ints, to match
4513 their definitions in xterm.c.
4514 * ymakefile: Note the new dependencies caused by the new
4517 * xdisp.c (last_arrow_position, last_arrow_string): Make these
4520 * process.c (pty_process): Variable deleted; it's no longer used.
4521 (syms_of_process): Don't initialize it.
4523 * buffer.h (struct buffer_local_types): This declaration needed an
4526 * floatfns.c (Fexpt): Don't return the value of the XSET function
4527 call; that's not guaranteed to be the value assigned.
4529 * dired.c (Ffile_attributes): Doc fix.
4531 * lisp.h (DEFVARLISP, DEFVARBOOL, DEFVARINT, DEFVARPERBUFFER):
4532 Removed these definitions; we should be using the versions whose
4533 names use underscores.
4535 * keyboard.c (echobuf): Make this 300 characters, not 100. This
4536 isn't a real fix, but it's quick.
4538 1992-10-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4540 * callint.c (preserved_fns): New var.
4541 (Fcall_interactively): Preserve all fns listed in preserved_fns.
4542 (syms_of_callint): Set preserved_fns and staticpro it.
4543 Don't set up Qregion_beginning or Qregion_end.
4545 1992-10-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4547 * dispnew.c (count_blanks): Leave argument r constant, and increment p.
4549 1992-10-28 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4551 * xdisp.c (message): Re-write this in terms of message1.
4552 (message1): Move code to clear out echo_area_glyphs and
4553 previous_echo_glyphs from message to here.
4555 * keyboard.c (read_char): When returning an unread switch-frame
4556 event, jump to reread_first to return it, rather than reread; this
4557 makes sure the event gets echoed (if appropriate) and goes into
4560 * keyboard.c (read_key_sequence): If the key sequence starts with
4561 a mouse click, read the key sequence using the keymaps of the
4562 buffer clicked on, not the current buffer.
4564 * keyboard.c (unread_switch_frame): Make this static, to indicate
4565 that nobody outside of this file uses it.
4567 * keymap.c: Deal with autoloaded keymaps properly.
4568 (get_keymap_1): Renamed to inner_get_keymap; made
4569 static. New argument AUTOLOAD says to pursue autoloads if
4571 (Fkeymapp, get_keymap, get_keyelt, Flookup_key): Ask get_keymap_1
4572 not to perform autoloads.
4573 (Fdefine_key): Ask get_keymap_1 to perform autoloads. Since
4574 autoloading may GC, remember that we have to GCPRO our local
4576 (Fminor_mode_key_binding): Call get_keymap instead of calling
4577 get_keymap_1 with equivalent arguments.
4578 * keyboard.c (follow_key): Ask get_keymap_1 to perform autoloads.
4579 (read_key_sequence): When pursuing potential bindings in the
4580 function key map, ask get_keymap_1 to perform autoloading. This
4581 is hardly important, but it's consistent.
4582 * doc.c (Fsubstitute_command_keys): Ask get_keymap_1 to
4583 perform autoloads. Autoloading might GC; we need to GCPRO our
4584 local variables now.
4585 (Fdocumentation, Fdocumentation_property): Autoloading in
4586 Fsubstitute_command_keys might GC; we need to GCPRO our
4587 local variables now.
4589 1992-10-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4591 * s/irix3-3.h (HAVE_SETSID, IRIX): Defined.
4593 * s/irix4-0.h: New file.
4595 1992-10-27 Noah Friedman (friedman@nutrimat.gnu.ai.mit.edu)
4597 * sysdep.c (get_system_name): Use gethostname for USG systems if
4598 HAVE_GETHOSTNAME is defined.
4599 * s/hpux7.h, s/irix3-3.h (HAVE_GETHOSTNAME): Define it.
4601 1992-10-27 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4603 * callproc.c: Arrange for synchronous processes to get SIGINT the
4604 first time the user quits, or SIGKILL if the user quits again.
4605 #include "syssignal.h".
4606 (call_process_kill): New function.
4607 (call_process_cleanup): Send SIGINT to the subprocess, and then
4608 arrange to call call_process_kill if the user quits while we wait
4609 for it to terminate.
4610 (Fcall_process, Fcall_process_region): Doc fix.
4612 1992-10-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4614 * unexmips.c [sony, IRIS_4D]: Include getpagesize.h and fcntl.h.
4615 (unexec): #if 0 the error check of hdr.fhdr.f_nscns.
4616 Clear text_section->s_scnptr.
4618 * callint.c (Fcall_interactively): Preserve (region-beginning)
4619 and (region-end) into the command history when they appear
4620 in an interactive spec which is a call to `list'.
4622 * batcomp.com: New file. Waiting for papers from richard@ttt.kth.se.
4624 1992-10-23 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
4626 * emacs.c (main): Correct spelling of HAVE_X_WINDOW to
4627 HAVE_X_WINDOWS in conditionals around the call to syms_of_xmenu.
4629 1992-10-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4631 * ralloc.c (relinquish):
4632 Adjust page_break_value by amount of memory actually given back.
4633 (r_alloc_sbrk): Provide hysteresis in relocating the blocs.
4635 1992-10-22 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4637 * ralloc.c (relinquish): Sign of arg to *real_morecore was backwards.
4639 1992-10-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4641 * ralloc.c (relinquish): Never free less than extra_bytes;
4642 keep extra_bytes of empty space.
4643 (obtain): Always get extra_bytes additional space.
4644 (r_alloc_init): Set extra_bytes and page_size.
4645 (ALIGNED, ROUNDUP, ROUND_TO_PAGE): Use page_size.
4647 1992-10-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4649 * keyboard.c (syms_of_keyboard): Properly staticpro this_command_keys.
4651 * mem-limits.h (get_lim_data): Make it static.
4653 * ymakefile (mallocobj): Use vm-limit.o along with ralloc.o.
4655 * ralloc.c [emacs]: Define POINTER and SIZE.
4656 [!emacs]: Delete definition of EXCEEDS_LISP_PTR.
4658 * eval.c (grow_specpdl): Increase max_specpdl_size before Fsignal.
4660 1992-10-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
4662 * xfns.c (x_set_face): Dyked out this function; it has no callers,
4663 and refers to an obsolete version of struct face.
4665 * xterm.c (compose_status): New variable.
4666 (XTread_socket): Pass it by reference to XLookupString.
4668 1992-10-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4670 * s/esix5r4.h (BROKEN_FIONREAD): Defined.
4672 1992-10-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4674 * s/vms5-5.h: New file.
4676 1992-10-16 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4678 * xdisp.c (message): If M is zero, clear echo_area_glyphs and
4679 previous_echo_glyphs, so that the minibuffer shows through.
4680 * editfns.c (Fmessage): With no arguments, clear any active
4681 message; let the minibuffer contents show through.
4682 * minibuf.c (temp_echo_area_glyphs): Don't clear echo_area_glyphs
4683 and previous_echo_glyphs; let message do that work.
4685 * keyboard.c (this_command_keys): Make this a vector, instead of
4686 an array of Lisp_Objects.
4687 (this_command_keys_size): Deleted.
4688 (echo, add_command_key, Fthis_command_keys): Adjusted
4690 (init_keyboard): Don't allocate it here.
4691 (syms_of_keyboard): Allocate it here, and staticpro it.
4692 * keyboard.h (this_command_keys): Extern declaration changed. Doc fix.
4693 * callint.c (Fcall_interactively): Change handling of 'e' spec;
4694 this_command_keys is now a vector.
4696 * keyboard.c (read_char): Call ourselves with the appropriate
4697 number of arguments.
4698 (read_char_menu_prompt): If USED_MOUSE_MENU is zero, don't try to
4701 * window.c: Try to deal coherently with deleted windows:
4702 (Flive_window_p): New function.
4703 (Qlive_window_p): New variable, to name it in type errors.
4704 (syms_of_window): Defsubr Slive_window_p, init and staticpro
4706 * lisp.h (CHECK_LIVE_WINDOW): New predicate.
4707 (Qlive_window_p): Extern declaration for this.
4708 * window.c (decode_window): Use CHECK_LIVE_WINDOW instead of
4709 CHECK_WINDOW; the only thing a user should be able to do to a dead
4710 window is check its type.
4711 (Fcoordinates_in_window_p, Fnext_window, Fprevious_window)
4712 (Fdelete_other_windows, Fselect_window, Fsplit_window)
4713 (Fscroll_other_window): Use CHECK_LIVE_WINDOW instead of
4715 * frame.c (make_frame_without_minibuffer, Fwindow_frame): Same.
4716 * sunfns.c (Fsun_menu_internal): Same.
4717 * xmenu.c (Fx_popup_menu): Same.
4718 * window.c (Fdelete_window): If WINDOW is a deleted window, do nothing;
4719 there's no harm in allowing people to delete deleted windows.
4720 Delete all of WINDOW's subwindows, too.
4721 (delete_all_subwindows): Set the buffer, vchild, and hchild of the
4722 windows we delete all to nil.
4723 * window.h (struct window): Doc fix.
4725 * window.c (Fwindow_minibuffer_p): Make the WINDOW argument
4726 optional, like all the other window-querying functions.
4728 * window.c (Fpos_visible_in_window_p): Use decode_window to handle
4729 the WINDOW argument, instead of writing out that function's code.
4731 * window.c (check_frame_size): Don't define this extern; that
4732 doesn't mean anything.
4734 * xterm.c: Clean up some of the caps lock handling:
4735 (x_shift_lock_mask): New variable.
4736 (x_find_modifier_mappings): Set it, based on the modifier mappings.
4737 (x_convert_modifiers): Use x_shift_lock_mask, instead of assuming
4738 that the lock bit always means to shift the character.
4739 (XTread_socket): When handling KeyPress events, don't pass an
4740 XComposeStatus structure along to XLookupString. When handling
4741 MappingNotify events, call XRefreshKeyboardMapping for both
4742 MappingModifier and MappingKeyboard events, not just the latter.
4744 1992-10-15 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4746 * window.c (Fdelete_window): Choose an alternative when we delete
4747 any frame's selected window, not just when we delete the selected
4748 frame's selected window.
4750 1992-10-15 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4752 * vm-limit.c (check_memory_limits): Declare __morecore.
4753 Remove unused variable `result'.
4755 1992-10-15 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4757 * vm-limit.c (morecore_with_warning): Removed.
4758 (check_memory_limits): New fn; most code from
4759 morecore_with_warning, but only checks limits, doesn't do any work.
4760 (memory_warnings): Set __after_morecore_hook to check_memory_limits;
4761 don't set __morecore.
4763 1992-10-14 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
4765 * intervals.c (traverse_intervals): New parameter `depth'.
4766 Increment this when passing recursively.
4768 * alloc.c (mark_interval_tree): Pass 0 as initial depth argument
4769 to traverse_intervals.
4771 * xterm.h: Declaration of struct face removed.
4773 * dispextern.h: New element of frame structure `max_ascent'.
4774 Removed elements `nruns' and `face_list'.
4775 LINE_HEIGHT and LINE_WIDTH macros removed.
4776 New struct face with associated typedef FACE declared, along with
4779 * scroll.c (do_scrolling): Don't bcopy non-existent `nruns' or
4780 `face_list' elements. Do copy new `max_ascent' frame element.
4782 * dispnew.c (scroll_frame_lines): All references to frame elements
4783 `nruns' and 'face_list' removed. Handle new element `max_ascent'.
4784 (free_frame_glyphs): Don't free nonexistent elements `nruns' and
4785 `face_list'; do free `max_ascent' element.
4786 (make_frame_glyphs): Don't allocate nonexistent elements `nruns'
4787 and `face_list'; do allocate `max_ascent' element.
4788 (update_frame): Replaced use of macro LINE_HEIGHT with element
4789 frame element `pix_height'.
4791 1992-10-14 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4793 * keyboard.c (modify_event_symbol): Arrange to set the
4794 click_modifier bit on otherwise unmodified mouse clicks.
4796 * keymap.c (store_in_keymap): Don't forget to QUIT in the
4797 keymap-scanning loop. Don't treat vectors as binding tables if
4798 they're the wrong length.
4800 1992-10-12 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
4802 * keyboard.c (kbd_buffer_get_event): Remember that
4803 *mouse_position_hook may set *FRAME to 0; don't generate
4804 switch-frame events in this case. Fix fencepost bug in fetching
4805 events from keyboard buffer.
4807 1992-10-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4809 * ymakefile (ralloc.o): Delete dep mem_limits.h.
4810 (vm-limit.o): Rename dep to mem-limits.h.
4812 1992-10-12 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4814 * ralloc.c: Removed #include "mem-limits.h".
4815 [emacs]: Moved #undef NULL and #include "getpagesize.h" here.
4816 [! emacs]: #include <unistd.h>, <malloc.h>, <string.h>.
4817 (r_alloc_init): Use NIL, not NULL.
4819 1992-10-12 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4821 * ralloc.c (sbrk): Removed decl.
4822 (real_morecore): New static variable.
4823 (warnlevel, warn_function, check_memory_limits): Removed.
4824 (obtain): Don't call check_memory_limits.
4825 (obtain, relinquish, r_alloc_sbrk): Use (*real_morecore) in place
4826 of sbrk; it returns 0 for errors, not -1.
4827 (r_alloc_init): Set real_morecore to old value of __morecore.
4828 Don't initialize lim_data or warnlevel, and don't call get_lim_data.
4829 (memory_warnings): Function removed.
4831 1992-10-12 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4833 * vm-limit.c (warnfunction): Renamed to warn_function (was used
4835 (morecore_with_warning, memory_warnings): Change callers (were
4838 1992-10-12 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4840 * mem-limits.h (start_of_data): Removed extra defn.
4841 (get_lim_data): Define to return void.
4843 1992-10-12 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4845 * mem_limits.h: File renamed to mem-limits.h.
4846 * vm-limit.c, ralloc.c: Changed #includes.
4848 1992-10-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4850 * syntax.c (find_defun_start): scan_buffer returns start of line;
4851 no need to advance over newline.
4853 * vm-limit.c (morecore_with_warning):
4854 Reduce warnlevel when usage drops far enough.
4855 * ralloc.c (check_memory_limits): Likewise.
4857 * vm-limit.c (memory_warnings): Renamed from malloc_init.
4858 Don't set lim_data or warnlevel. Use start_of_data if start is 0.
4859 * ralloc.c (memory_warnings): New function; just set warning data.
4860 Use start_of_data if start is 0.
4861 * emacs.c (Fdump_emacs, main): Use memory_warnings.
4863 * mem_limits.h [!emacs]: Don't define POINTER, SIZE or NULL.
4864 (start_of_data): Define as macro, if !emacs.
4865 * ralloc.c [!emacs]: Don't include config.h or lisp.h;
4866 instead, use stddef.h. Define POINTER, SIZE, EXCEEDS_LISP_PTR.
4867 * vm-limit.c [!emacs]: Don't include config.h or lisp.h;
4868 instead, use stddef.h. Define POINTER, SIZE, EXCEEDS_LISP_PTR.
4870 * ralloc.c [!emacs] (safe_bcopy): Define as macro using memmove.
4871 (r_alloc_free): Clear *ptr.
4872 (r_alloc_init): Renamed from malloc_init. Take no args.
4873 Make it static; declare at top of file.
4874 (r_alloc): Call r_alloc_init, if not initialized yet.
4875 (r_alloc_initialized): Renamed from malloc_initialized; moved to top.
4876 (ROUNDUP): Subtract 1, in case arg is already aligned.
4878 * mem_limits.h (EXCEEDS_LISP_PTR): Renamed from EXCEEDS_ELISP_PTR.
4879 * vm-limit.c (morecore_with_warning): Use EXCEEDS_LISP_PTR.
4880 * ralloc.c (check_memory_limits): Use EXCEEDS_LISP_PTR.
4882 1992-10-10 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4884 * keyboard.c (Vlast_event_frame): Make this variable exist even
4885 when MULTI_FRAME isn't #defined. People might find it
4886 necessary for writing correct programs, even when the programs
4887 don't explicitly use multiple frames.
4888 (read_char, kbd_buffer_store_event, kbd_buffer_get_event): No need
4889 to test MULTI_FRAME before setting Vlast_event_frame.
4890 (syms_of_keyboard): DEFVAR Vlast_event_frame whether or not
4891 MULTI_FRAME is defined.
4893 * keyboard.c: Add switch-frame events.
4894 (Qswitch_frame): New event header symbol.
4895 (head_table): Include Qswitch_frame in the table of event heads.
4896 (kbd_buffer_get_event): Detect when a frame switch has occurred,
4897 and return a frame switch event before the enqueued event.
4898 (make_lispy_switch_frame): New function.
4899 (unread_switch_frame): New variable.
4900 (read_key_sequence): Don't throw away the key sequence if the user
4901 switches frames in the middle of the sequence. Instead, when we
4902 receive a switch-frame event in the middle of a key sequence, save
4903 it, and stuff it into unread_switch_frame when the sequence
4905 (read_char): If unread_switch_frame is set, return that value.
4906 (command_loop_1): No need to check Vlast_event_frame and select
4907 new frames here; that's taken care of by switch-frame events now.
4908 (syms_of_keyboard): Initialize and staticpro unread_switch_frame.
4909 * keyboard.h (Qswitch_frame): Declare this extern.
4911 * frame.c: #include "commands.h" and "keyboard.h".
4912 (Fselect_frame): Make this interactive, and accept
4913 switch-frame events as arguments, so we can bind this function to
4914 switch-frame events.
4915 (keys_of_frame): New function; bind switch-frame to Fselect_frame.
4916 * emacs.c (main): Call keys_of_frame.
4917 * keymap.c (initial_define_lispy_key): New function, for defining
4919 * ymakefile: Note that frame.o depends on commands.h and keyboard.h.
4921 * callint.c (Fcall_interactively): Allow multiple 'e' specs.
4922 (Finteractive): Doc fix.
4923 * keyboard.h (this_command_keys, this_command_key_count): Added
4924 external declarations.
4926 * keymap.c (access_keymap): Treat bindings for Qt as default
4927 bindings, when new argument T_OK is non-zero.
4928 (get_keyelt, Fdefine_key, Flookup_key): Call access_keymap with
4930 * keyboard.c (follow_key, read_key_sequence): Call access_keymap
4933 * keyboard.c (apply_modifiers): Copy the value of BASE's
4934 Qevent_kind property to the new symbol.
4936 * keyboard.c (syms_of_keyboard): Qevent_kind should be initialized
4937 to intern ("event-kind"), not intern ("event-type").
4939 1992-10-10 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4941 * fileio.c (Fwrite_region): If VISIT is a file name,
4942 use that as file name to visit, and print it in the message.
4943 Use it for file locking too.
4945 * m-ibmps2-aix.h [__GNUC__ >= 2] (LIB_STANDARD): Don't define.
4947 1992-10-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4949 * ymakefile (FLOATSUP): Renamed to FLOAT_SUPPORT.
4950 (FRAME_SUPPORT, VMS_SUPPORT): New macros.
4951 (lisp): Rebuild this from loadup.el, using the _SUPPORT macros.
4953 * ymakefile [HAVE_X_WINDOWS, not NO_X_MENU, HAVE_X11] (LIBXMENU):
4954 Link against -loldX, to get the association table functions.
4956 * xterm.c, xrdb.c: #include <stdio.h> before "xterm.h", to avoid
4957 warnings about redefining NULL under GCC 2.2.2.
4959 1992-10-09 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4961 * m/pyrmips.h: New file.
4963 * s/aix3-1.h (PTY_ITERATION, etc.): Defined.
4964 (FIRST_PTY_LETTER): Deleted.
4966 1992-10-07 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
4968 * m/sparc.h: Include <sys/param.h>, to define the FSCALE constant.
4970 * ymakefile (YMF_PASS_LDFLAGS): Refer to the prefix-args program
4971 using "./prefix-args", not just "prefix-args"; some people don't
4972 have . in their paths.
4974 1992-10-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4976 * link.com: Use gcclib if compiling with GCC.
4978 * fileio.c (directory_file_name): Don't clobber the envvar
4979 when handling top-level rooted dir.
4981 * ymakefile (LIB_STANDARD): If ORDINARY_LINK, default this to empty.
4983 * m/ibmps2-aix.h [USG_SHARED_LIBRARIES]: Define ORDINARY_LINK.
4984 Undef LIB_STANDARD. Modify LD_SWITCH_MACHINE.
4986 * unexnext.c: New file.
4987 * emacs.c (main) [NeXT]: Call malloc_jumpstart.
4989 1992-10-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4991 * window.c (window_loop): Pass 2nd arg to Fother_buffer.
4992 * frame.c (make_frame): Likewise.
4993 * callint.c (Fcall_interactively): Likewise.
4994 * buffer.c (Fkill_buffer): Likewise.
4995 (Fswitch_to_buffer, Fpop_to_buffer, Fbury_buffer): Likewise.
4997 1992-10-03 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
4999 * keyboard.c (read_key_sequence): Treat mouse clicks on non-text
5000 areas as if they were prefixed with the symbol denoting the
5001 area clicked on - `mode-line', etcetera.
5002 When we throw away an unbound `down-' event, reset mock_input as
5005 * keyboard.c (Qevent_symbol_element_mask, Qmodifier_cache): Two
5006 new symbols, used to implement caches on event heads. These take
5007 the place of some of the caching that modify_event_symbol used to do.
5008 (parse_modifiers_uncached, apply_modifiers_uncached,
5009 lispy_modifier_list, parse_modifiers, apply_modifiers): New
5010 functions, which replace format_modifiers and reorder_modifiers;
5011 they can be useful elsewhere too.
5012 (reorder_modifiers, modify_event_symbol): Re-implement these in
5013 terms of parse_modifiers and apply_modifiers. modify_event_symbol
5014 now uses a much simpler cache, and takes advantage of the caches
5015 maintained by parse_ and apply_modifiers.
5016 (follow_key): Don't modify NEXT if KEY has no bindings.
5017 (read_key_sequence): Drop unbound `down-' events, and turn unbound
5018 `drag-' events into clicks if that would make them bound. This
5019 benefits from the rewriting of the modifier key handling code.
5020 (syms_of_keyboard): Initialize and intern
5021 Qevent_symbol_element_mask and Qmodifier_cache.
5023 * keyboard.c (echo_prompt): Terminate the echo buffer properly
5024 even when the string is too long to display in the minibuffer.
5025 (echo_truncate): Just return echoptr - echobuf, rather than
5026 calling strlen on echobuf.
5028 * alloc.c (Fmemory_limit): New function.
5029 (syms_of_alloc): Defsubr it.
5031 * window.c (SAVE_WINDOW_DATA_SIZE): Define this using sizeof,
5032 instead of just saying it's 7; that way, we won't get screwed if
5033 we add members to struct save_window_data.
5035 * window.c (struct save_window_data): Save the currently selected
5037 (Fset_window_configuration): Restore the frame's selected window
5038 using Fselect_window, and then restore the selected frame using
5040 (Fcurrent_window_configuration): Record the currently selected
5041 frame. Update docstring to describe the information now recorded.
5043 1992-10-02 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
5045 * process.c (wait_reading_process_input): Ultrix select seems to
5046 return ENOMEM when interrupted. So, under Ultrix, treat ENOMEM
5049 * keyboard.c (modifier_names): The modifier is named "control",
5052 * keyboard.c (modify_event_symbol): Make sure that the unmodified
5053 event header gets the proper properties set on it, by recursing
5054 and letting the same code build the properties for all event symbols.
5056 * keyboard.c (Qmouse_click): Fix typo which assigned `mouse-click'
5057 symbol to Qmouse_movement.
5059 1992-10-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5061 * undo.c (Fprimitive_undo):
5062 When undoing an insert, move point and then delete.
5064 1992-10-02 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
5066 * intervals.c: `copy_intervals' no longer static.
5068 * intervals.h: Declare `copy_intervals'.
5070 * buffer.c: #include intervals.h.
5072 * ymakefile: New macro "INTERVALS", controlled by "USE_INTERVALS",
5073 which defines the interval include file "intervals.h".
5074 New entries for "intervals.c" and "textprop.c".
5076 * lisp.h: Declare Qbuffer_or_string_p.
5078 1992-10-02 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
5080 * xterm.c (x_find_modifier_meanings): If there are no
5081 modifiers containing a Meta_ keysym, use the Alt keysyms to
5083 (construct_mouse_click): Set the down_modifier bit on mouse
5084 button press events.
5085 (XTread_socket): When processing keypress events, use
5086 x_meta_mod_mask when processing ordinary ASCII characters, not
5087 just when processing function keys and other non-ASCII events.
5088 (XTread_socket): If we receive a MappingNotify event with the
5089 `request' member set to `MappingModifier', then call
5090 x_find_modifier_meanings to refresh x_meta_mod_mask.
5092 * window.c (Fset_window_configuration): Clean up the way we save
5093 and restore the frame's size.
5095 * termhooks.h (struct input_event): Doc fix.
5096 (NUM_MOUSE_BUTTONS): New constant.
5097 (click_modifier): New modifier.
5098 (NUM_MODIFIER_COMBOS): Removed.
5100 * keyboard.h (EVENT_HAS_PARAMETERS): Definition changed - all events
5101 are not 5 elements long.
5102 (EVENT_HEAD): Work correctly on all sorts of events, not just
5103 events with parameters.
5104 (EVENT_WINDOW, EVENT_BUFFER_POSN, EVENT_SCROLLBAR_BUTTON)
5105 (EVENT_WINDOW_POSN, EVENT_TIMESTAMP): These aren't useful
5106 anymore; this information may appear twice in an event. These
5107 are replaced by the POSN_ accessors, which are meant to be
5108 composed with the EVENT_START and EVENT_END accessors.
5109 (EVENT_START, EVENT_END): Two new accessors, to get at the
5110 starting and ending position of an event.
5111 (POSN_WINDOW, POSN_BUFFER_POSN, PONS_SCROLLBAR_BUTTON)
5112 (POSN_WINDOW_POSN, POSN_TIMESTAMP): New macros, to further
5113 disassemble the values returned by EVENT_START and EVENT_END.
5114 * keyboard.c (echo_char, read_char): Apply EVENT_HEAD without first
5115 testing for EVENT_HAS_PARAMETERS; EVENT_HEAD works properly on
5116 all sorts of events now.
5117 (read_key_sequence): Use the new accessors to decide in which window
5119 * keymap.c (access_keymap, store_in_keymap,
5120 Fsingle_key_description): No need to check for
5121 EVENT_HAS_PARAMETERS before using EVENT_HEAD; the latter now
5122 works properly on all sorts of events.
5124 * keyboard.c (Qevent_unmodified): Replaced by...
5125 (Qevent_symbol_elements): New property.
5126 (syms_of_keyboard): Initialize and staticpro the latter, not the
5128 * keyboard.h (Qevent_unmodified): Extern declaration replaced by...
5129 (Qevent_symbol_elements): This.
5130 (EVENT_HEAD_UNMODIFIED): Use the Qevent_symbol_elements
5131 property, rather than the Qevent_unmodified property.
5133 * keyboard.c (readable_events): This doesn't need to scan and
5134 discard mouse release events anymore; it just uses
5136 (kbd_buffer_get_event): No need to skip past mouse release events.
5138 * keyboard.c (button_down_location): New variable, which
5139 stores the location at which each button was pressed, so we
5140 can build a complete drag event when the button is released.
5141 (make_lispy_event): When a button is pressed, record its
5142 location in button_down_location, and turn it into a `down'
5143 event. When a button is released, compare its release
5144 location with its press location, and decide whether to call
5145 it a `click' or `drag' event.
5146 Change mouse movement events to be arranged like click events.
5147 (format_modifiers): Note that the click modifier has no
5148 written representation.
5149 (modifier_names, modifier_symbols): New variables, used to
5150 create the Qevent_symbol_elements property.
5151 (modify_event_symbol): Change the format of the modified
5152 symbol cache; there are too many modifier bits now to use a
5153 vector indexed by a modifier mask. Use an assoc-list instead.
5154 Document the format of the cache.
5155 Put the Qevent_symbol_elements property on each new symbol,
5156 instead of a Qevent_unmodified property.
5157 (symbols_of_keyboard): Put Qevent_symbol_elements properties on the
5158 symbols specified in head_table, not Qevent_unmodified properties.
5159 Initialize and staticpro modifier_symbols, and staticpro the
5160 window elements of button_down_location.
5162 * xmenu.c: #include "keyboard.h".
5163 (Fx_popup_menu): Use the event accessors defined in keyboard.h,
5164 instead of writing out cars and cdrs.
5165 * ymakefile: Note that xmenu.o depends on keyboard.h.
5167 1992-10-02 Joseph Arceneaux (jla@wookumz.gnu.ai.mit.edu)
5169 * textprop.c: Conditionalize all functions on
5170 "USE_TEXT_PROPERTIES".
5171 * intervals.c: Conditionalize all functions on
5172 "USE_TEXT_PROPERTIES".
5173 Removed #include of "screen.h".
5175 * alloc.c: #include "intervals.h".
5176 (init_intervals, make_interval,
5177 mark_interval, mark_interval_tree): New functions conditionally
5179 (make_uninit_string): Call INITIALIZE_INTERVAL.
5180 (INIT_INTERVALS, UNMARK_BALANCE_INTERVALS, MARK_INTERVAL_TREE):
5181 New macros, conditionally defined.
5182 (mark_object): Call MARK_INTERVAL_TREE in case Lisp_String.
5183 (gc_sweep): If text properties are in use, place all unmarked
5184 intervals on the free list. Call UNMARK_BALANCE_INTERVALS on
5185 `buffer->intervals' when unmarking `buffer'.
5186 (compact_strings): Include INTERVAL_PTR_SIZE in calculation for
5187 target of bcopy when relocating strings.
5188 (init_alloc_once): Call INIT_INTERVALS.
5189 (make_pure_string): Include INTERVAL_PTR_SIZE in calculation of
5191 Moved static declaration of `mark_object' and other functions up
5194 * fileio.c (Finsert_file_contents): Call offset_intervals if
5195 text was actually inserted.
5196 #include "intervals.h".
5198 1992-09-30 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
5200 * data.c: Qbuffer_or_string_p added.
5202 * syntax.c (describe_syntax): Use insert_char to insert `match'.
5204 * buffer.c (reset_buffer): Do INITIALIZE_INTERVAL on the buffer's
5206 (Fkill_buffer): Likewise.
5208 * editfns.c (make_buffer_string): Call copy_intervals_to_string.
5209 (Finsert_buffer_substring): Call graft_intervals_into_buffer.
5210 #include "intervals.h".
5212 * insdel.c: #include "intervals.h".
5213 (prepare_to_modify_buffer): Call verify_interval_modification.
5214 (insert_from_string): Call offset_intervals and
5215 graft_intervals_into_buffer.
5216 (del_range): Call offset_intervals.
5217 (insert): Call offset_intervals.
5219 * emacs.c: #include "intervals.h".
5220 (main): Call syms_of_textprop. This is only really present if
5221 Emacs is compiled with USE_TEXT_PROPERTIES defined.
5223 * buffer.h: New macro TEMP_SET_PT. If intervals are used, SET_PT
5224 and TEMP_SET_PT are function calls.
5225 Similarly for BUF_SET_PT and BUF_TEMP_SET_PT.
5226 Added DECLARE_INTERVALS to buffer structure to conditionally
5227 compile an interval tree into it.
5229 * intervals.h: Declare temp_set_point.
5231 1992-09-30 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
5233 * ymakefile (config.h): Doc fix.
5235 1992-09-30 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
5237 * config.h.in: Added a slot for definition of USE_TEXT_PROPERTIES,
5238 controlling compilation of interval code.
5239 If using GNUC, support inline functions.
5241 * lisp.h: Conditionally define interval structure and macros.
5242 Add DECLARE_INTERVALS to struct Lisp_String.
5244 1992-09-30 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
5246 * buffer.c (Fother_buffer): Add back the VISIBLE_OK argument. It
5247 got removed with no comment or ChangeLog entry, and
5248 append-to-buffer uses it.
5250 * window.c (struct save_window_data): Add a member called
5251 focus_frame, to save and restore the screen's focus frame.
5252 (Fset_window_configuration): Redirect the frame's focus as
5253 indicated in the window configuration.
5254 (Fcurrent_window_configuration): Record the frame's current focus.
5255 * minibuf.c (read_minibuf): Don't bother to save the current
5256 frame's focus, and have read_minibuf_unwind restore it; saving and
5257 restoring the window configurations will take care of that.
5258 (read_minibuf_unwind): Don't worry about restoring the frame's focus.
5260 * window.c (Fset_window_configuration): Don't select the frame
5261 just because we restored its configuration.
5263 * window.c (Fset_window_configuration): Don't forget to set the
5264 frame's selected window when we can't call Fselect_window.
5266 * xterm.c (x_meta_mod_mask): New variable, indicating which X
5267 modifier bits denote meta keys.
5268 (x_find_modifier_meanings): New function, to set x_meta_mod_mask.
5269 (x_convert_modifiers): Use that.
5270 (x_term_init): Call x_find_modifier_meanings.
5272 * data.c (Fmake_local_variable): If SYM forwards to a C variable,
5273 swap in the value for the current buffer immediately.
5275 * lisp.h: Doc elaboration for Lisp_Buffer_Local_Value.
5277 1992-09-29 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
5279 * textprop.c (Ferase_text_properties): Merge intervals when
5282 1992-09-29 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
5284 * xselect.c (Qcut_buffer0): Symbol removed; we're using a new
5285 interface to the cut buffer now.
5286 (NUM_CUT_BUFFERS, cut_buffer_atom, cut_buffer_value)
5287 (cut_buffer_cached, cut_buffer_just_set): New variables.
5288 (Fx_own_selection, Fx_selection_value): Dike out the code to
5289 handle CUT_BUFFER0 requests.
5290 (Fx_get_cut_buffer, Fx_set_cut_buffer, x_watch_cut_buffer_cache)
5291 (x_invalidate_cut_buffer_cache): New functions.
5292 (syms_of_xselect): Don't bother to initialize Qcut_buffer0.
5293 Initialize and staticpro cut_buffer_value, and defsubr
5294 Sx_get_cut_buffer and Sx_set_cut_buffer.
5295 * xterm.c (XTread_socket): Pass PropertyNotify events from the
5296 root window to x_invalidate_cut_buffer_cache.
5297 (x_term_init): Call x_watch_cut_buffer_cache here.
5299 * keymap.c (access_keymap): Don't forget to QUIT while scanning
5302 * keyboard.c (recent_keys): This needs to be staticpro'ed. Change
5303 it from a C array, which is a pain in the neck to staticpro, into
5304 a lisp vector, which is easier.
5305 (read_char, Frecent_keys): Access recent_keys as a lisp vector,
5307 (syms_of_keyboard): Set recent_keys to be a vector, and staticpro it.
5309 * ymakefile (xfns.o): This doesn't depend on xselect.c.
5311 * xterm.h (ROOT_WINDOW): Use the DefaultScreen macro, not the
5312 XDefaultScreen function.
5314 * frame.c (Fdelete_frame): Call Fselect_frame with the appropriate
5315 number of arguments.
5317 * data.c (Frem): Use the `fmod' function under SunOS, Ultrix, and
5318 HP/UX, not just under USG systems.
5320 * buffer.c (Fbury_buffer): This used to undisplay the buffer being
5321 buried only if the BUFFER argument was nil. Instead, undisplay the
5322 buffer whenever it's displayed in the selected window, no matter
5323 how it was specified by BUFFER. This is how it behaves in 18.58,
5324 and I can't find any ChangeLog entry in 18.58 or 19.0 saying why
5325 they differ. Fix the doc string accordingly.
5327 1992-09-28 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
5329 * frame.c (Fselect_frame, Fframe_root_window)
5330 (Fframe_selected_window, Fnext_frame, Fmake_frame_visible)
5331 (Fmake_frame_invisible, Ficonify_frame): Doc fixes.
5333 * ralloc.c: Since the users of the relocating allocation code
5334 handle memory exhaustion, it's better to return an error code to
5335 them than to call abort.
5336 (obtain): If we cannot allocate more memory, don't call
5337 abort. Instead, return non-zero iff the allocation is successful.
5338 (get_more_space): If obtain fails, return zero.
5339 (get_bloc): Return zero if we can't allocate the new bloc.
5340 (r_alloc_sbrk): Return zero if we can't allocate more memory.
5341 (r_alloc): If we can't allocate more memory, set *PTR to zero and
5343 (r_re_alloc): If we can't allocate more memory, leave *PTR
5344 unchanged, and return zero.
5346 * ralloc.c (warnfunction): Renamed to warn_function; users changed.
5348 1992-09-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5350 * insdel.c (del_range): Call record_delete before updating point.
5352 * fileio.c (Finsert_file_contents): Do record_insert, then inc MODIFF.
5354 * undo.c (record_delete): Record pos before the deletion.
5355 (Fprimitive_undo): Go back to recorded position.
5357 1992-09-28 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
5359 * window.c (delete_all_subwindows): Save the window's buffer in
5360 its `height' field; we may need to know the window's old buffer
5361 once we have restored it from a window configuration.
5362 (Fset_window_configuration): When we restore a window, if its
5363 `height' field is a buffer, restore its `buffer' field from that.
5364 This allows us to leave the window's buffer unchanged if the
5365 buffer recorded in the configuration is dead.
5367 * window.c (delete_all_subwindows): Removed unused variable named
5370 1992-09-27 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
5372 * keyboard.c (read_char): If we're returning an event from a
5373 macro, set Vlast_event_frame to Qmacro, instead of leaving it set
5374 to the frame of the previous real event.
5375 (read_key_sequence): If Vlast_event_frame isn't a frame, don't
5376 bother switching buffers.
5377 (syms_of_keyboard): Doc fix for Vlast_event_frame.
5378 (Vlast_event_frame): Doc fix.
5380 * termhooks.h (alt_modifier, hyper_modifier, super_modifier)
5381 (down_modifier, drag_modifier): New modifiers, to support the new
5382 input system. Re-arranged modifiers so that their bits are in
5383 canonical order; this makes reorder_modifiers slightly simpler.
5384 * keyboard.c (format_modifiers, reorder_modifiers): Handle the new
5387 * keymap.c (access_keymap): Remove code to notice bindings for
5390 1992-09-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5392 * xmenu.c (single_keymap_panes): Handle vectors properly.
5394 1992-09-25 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
5396 * keymap.c (Fwhere_is_internal): Don't forget to advance map to
5397 the next element when we find something that is neither a vector
5398 nor a cons. Don't forget to QUIT in the appropriate places,
5401 1992-09-23 Joseph Arceneaux (jla@geech.gnu.ai.mit.edu)
5403 * textprop.c (Fset_text_properties): Merge adjacent intervals with
5404 the same properties.
5405 (Fnext_single_property_change, Fprevious_single_property_change):
5408 * intervals.c (merge_interval_left, merge_interval_right): Abort
5409 if caller tries to merge first (or last, respectively) interval.
5410 Delete the interval node after merging.
5411 (copy_intervals): Use `split_interval_right' rather than creating
5412 new intervals with make_new_interval and attaching them
5414 (verify_interval_modification): Changed error message. GCPRO
5415 hooks before calling Fnreverse, and correctly Fcdr down the list.
5416 Also, don't cons multiple copies of the same consecutive
5418 (temp_set_point): New function.
5419 (set_point): Call point-left and point-entered hooks if moving
5420 between text with different properties. Use the old and new
5421 positions as arguments to these calls.
5423 * intervals.c, intervals.h (map_intervals, make_buffer_interval)
5424 (make_string_interval, run_hooks): Deleted.
5426 1992-09-23 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
5428 * keymap.c (DENSE_TABLE_SIZE): Doc fix.
5429 (keymap_table): Function removed; this function exists only to
5430 support an incorrect understanding of the format of keymaps.
5431 (access_keymap, store_in_keymap, Fcopy_keymap)
5432 (Faccessible_keymaps): Correctly handle vectors at any point in the
5433 keymap; don't assume it must be at the front.
5434 (describe_map): Instead of calling describe_vector on the vector
5435 in the cadr of the keymap (if present) and then calling
5436 describe_alist to do the rest, just call describe_map_2.
5437 (describe_alist): Renamed to describe_map_2; call describe_vector
5438 when we encounter a vector in the list.
5439 * xmenu.c (single_keymap_panes): Comment out the code which
5440 tries to handle a dense keymap's table; it uses keymap_table, and
5441 the rest of the code never uses the table contents anyway.
5443 * keymap.c (access_keymap, store_in_keymap): Clarify error message
5444 for non-ASCII characters.
5446 * process.c [SIGCHLD && !BSD && !UNIPLUS && !HPUX]
5447 (create_process): #if 0 out the code which sets the child's
5448 handler for SIGCHLD to sigchld; the code which gives sigchld its
5449 value has been diked out under these CPP symbols, so this should
5452 * indent.c (Fmove_to_column): Pass the right number of arguments
5455 1992-09-22 Jim Blandy (jimb@kropotkin.gnu.ai.mit.edu)
5457 * emacs.c (emacs_priority): Doc fix.
5458 (main): Use nice, not setpriority; we just need a
5459 simple, portable call to nice here.
5460 * callproc.c (child_setup): Use nice, not setpriority.
5461 * sysdep.c (sys_suspend): Don't try to use "nice (- nice (0))" to
5462 set the subshell's priority to normal; nice doesn't return a
5463 defined value on all systems. Instead, since emacs_priority gives
5464 the priority that Emacs was nastied to, we can use it to reset the
5465 priority in a straightforward way.
5466 [BSD4_1], [USG], [VMS] (setpriority): Remove dummy and
5467 compatibility definitions of setpriority.
5469 * keymap.c (access_keymap): Return the binding of Qt as the
5470 binding for all unbound characters.
5472 * fileio.c (syms_of_fileio): Don't try to defsubr Sunix_sync
5473 unless it's actually been defined - that is, if unix is #defined.
5475 * xrdb.c (x_get_resource): Cast the value being assigned to
5476 ret_value->addr, rather than ret_value->addr itself; only GCC
5477 allows you to cast lvalues.
5479 * eval.c (unbind_catch): Do the long-jump here. Take a VALUE
5480 argument, which specifies the value to return to the catch, or the
5481 data to give to the condition handler. Renamed to
5482 unwind_to_catch, to reflect new role.
5483 (Fsignal, Fthrow): Removed code to set catch tag value and do the
5484 long-jump; this is taken care of by unwind_to_catch.
5486 1992-09-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5488 * alloc.c (mark_object): Avoid car recursion on cons with nil in cdr.
5489 Avoid recursion on constants-vector of a compiled function.
5491 * oldXMenu: Symlink deleted; anything that uses it needs fixing
5492 in any case to work properly on systems without symlinks.
5494 1992-09-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5496 * s/sol2.h: New file.
5498 * fileio.c: Don't include sys/dir.h.
5500 * s/usg5-4.h (LIBS_SYSTEM): Move non-default libraries here.
5501 (LIB_STANDARD, START_FILES): Deleted.
5502 (ORDINARY_LINK): Defined.
5504 * ymakefile [ORDINARY_LINK]: Default LD to $(CC)
5505 and make START_FILES and LIB_STANDARD empty.
5506 (C_SWITCH_X_MACHINE, C_SWITCH_X_SYSTEM): New macros, default empty.
5509 1992-09-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5511 * ymakefile (${etc}DOC): Use OBJECTS_SYSTEM and OBJECTS_MACHINE.
5513 * dired.c [VMS]: Include string.h, rms.h, rmsdef.h.
5514 [VMS] (Ffile_version_limit): New function.
5516 * sysdep.c (sys_suspend): Read EMACS_PARENT_PID envvar for parent.
5518 * syntax.c (scan_lists): When searching back for comment:
5519 if comment-end is 2 chars, assume it does end a comment.
5520 Otherwise, scan back to previous comment-end to see if there's
5521 a comment starter between. Also record whether the string quotes
5522 between the start and the end are paired and uniform.
5523 If so, skip to comment starter. If not, scan from start of
5524 defun to find comment starter if any.
5525 (find_defun_start): New function.
5527 * alloc.c (mark_object): Save last 500 values of objptr.
5528 Check for clobberage of ptr, when marking a vector.
5530 1992-09-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5532 * keymap.c (get_keyelt): Skip menu help string after menu item name.
5534 1992-09-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5536 * buffer.c (Fget_buffer_create): Doc fix.
5538 * lisp.h (struct handler): Remove the poll_suppress_count member
5539 of this structure; it is always equal to the poll_suppress_count
5540 of its catchtag structure. The non-local exit code in eval.c is
5541 difficult enough to understand as it is; needless duplication
5543 * eval.c (Fcondition_case): Rearranged for clarity. Don't worry
5544 about setting h.poll_suppress_count; it's guaranteed to be the
5545 same as c.poll_suppress_count.
5546 (internal_condition_case): Don't worry about
5547 h.poll_suppress_count.
5548 (Fsignal): Use h->tag->poll_suppress_count instead of
5549 h->poll_suppress_count.
5551 * eval.c (Fsignal): It's okay for the debugger to return to the
5552 caller if the caller was signaling a quit.
5554 * eval.c (unbind_catch): Restore the polling suppression count
5555 here, instead of in Fsignal and Fthrow.
5556 (Fthrow, Fsignal): Don't restore the polling suppression count here.
5558 * lisp.h (struct specbinding, struct handler): More documentation.
5559 * eval.c (struct catchtag): More documentation.
5561 1992-09-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5563 * ymakefile (LIBX): Don't use -loldX.
5565 1992-09-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5567 * minibuf.c (get_minibuffer): Enable undo in minibuffers.
5569 1992-09-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5571 * ymakefile (LIBXMENU): Check NO_X_MENU, not HAVE_X_MENU
5572 * emacs.c (main): Use X menu code if HAVE_X_WINDOWS and not NO_X_MENU.
5573 * keyboard.c (read_char_menu_prompt): Likewise.
5575 * config.h.in: Delete everything about config.h.
5577 * emacs.c: Eliminate HIGHPRI as compilation option.
5578 (emacs_priority): New C variable, also Lisp variable.
5579 (main): Set the priority iff emacs_priority is nonzero.
5581 1992-09-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5583 * eval.c (entering_debugger): Variable renamed
5584 when_entered_debugger, and is now a timestamp based on
5585 num_nonmacro_input_chars.
5586 (init_eval): Initialize when_entered_debugger, not
5588 (call_debugger): Set when_entered_debugger to the current value of
5589 num_nonmacro_input_chars.
5590 (find_handler_clause): Don't call debugger unless
5591 num_nonmacro_input_chars is greater than when_entered_debugger;
5592 that way, we won't call the debugger unless the user has had a
5593 chance to take control.
5594 (Fbacktrace): Don't clear entering_debugger here.
5595 * keyboard.h (num_nonmacro_input_chars): Added extern declaration
5598 * fns.c (Fy_or_n_p): After testing for a QUIT, clear Vquit_flag.
5599 Otherwise, if Fy_or_n_p is called while Vinhibit_quit is true and
5600 the user presses C-g, this function goes into an infinite loop.
5602 * dispnew.c (get_display_line): Don't abort if the frame is
5603 invisible; since unmap events are handled at the interrupt level,
5604 a screen may become invisible at any time.
5606 1992-09-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5608 * fileio.c (Fverify_visited_file_modtime):
5609 Pass buffer itself to handler, if have handler.
5610 (Fwrite_region): GCPRO around Fexpand_file_name, Ffile_name_directory.
5611 (Fread_file_name_internal): GCPRO around file name manip.
5612 (Ffile_writable_p, Ffile_readable_p): Use abspath, not filename.
5613 (Ffile_executable_p, Ffile_exists_p): to run the handler.
5614 (Fset_file_modes, Ffile_directory_p, Ffile_modes): Likewise.
5615 (Ffile_newer_than_file_p): GCPRO around expand_and_dir_to_file.
5617 1992-09-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5619 * s/bsd4-3.h: Give the BSD4_3 and BSD symbols the same numeric
5620 definitions they'll get in <sys/param.h>, to avoid warnings.
5622 * m/hp9000s300.h: Don't include <sys/wait.h>. This really
5623 shouldn't be necessary.
5624 (BIG_ENDIAN): Define this as "4321", to agree with
5625 <machines/endian.h>, and avoid warnings.
5627 * systime.h: Re-arrange inclusion of <sys/time.h> and <time.h> so
5628 that they don't both get included under BSD, and do both get
5631 * xdisp.c (display_mode_line): If the only other frames are
5632 minibuffer frames, don't name the frame after the in the selected
5633 window. We can use Fnext_frame to do this test easily.
5635 1992-09-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5637 * process.c (Faccept_process_output): Initialize useconds.
5639 * keyboard.c (num_nonmacro_input_chars): New variable.
5640 (read_char): Use num_nonmacro_input_chars to decide on auto-save & gc.
5641 Increment it when appropriate.
5642 (record_auto_save): Use num_nonmacro_input_chars.
5644 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory)
5645 (Ffile_name_as_directory, Fdirectory_file_name, Fexpand_file_name):
5646 Call find_file_handler.
5647 (syms_of_fileio): Set up Qfile_name_directory, etc.
5648 (Fcopy_file): Call find_file_handler for newname as well as for filename.
5649 (syms_of_fileio): Initialize Vfile_name_handler_alist.
5651 1992-09-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5653 * callint.c (Fcall_interactively): Remove the 'K' interactive
5654 code, in favor of 'e'; that's a better name.
5656 1992-09-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5658 * s/esix5r4.h: New file.
5660 * sysdep.c (init_sys_modes): Handle VDSUSP like V_DSUSP.
5661 Use CDISABLE, not CDEL.
5662 Turn off IEXTEN if it exists.
5663 * systty.h (CDISABLE): New macro; may be defined from CDEL.
5665 * keyboard.c (command_loop_1): Bind inhibit-quit to t when in Fsit_for.
5667 1992-09-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5669 * Makefile.in: Add comments starting with "# DIST: " explaining
5670 that this gets munged by the configure script.
5672 1992-09-10 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5674 * s-aix3-1.h (HAVE_GETHOSTNAME): Defined.
5676 1992-09-09 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5678 * frame.c (choose_minibuf_frame): Abort if the selected frame has
5679 nil in its minibuffer_window slot; this shouldn't happen any more.
5680 * window.c (minibuffer_window): Accept an optional FRAME argument;
5681 if specified, return the minibuffer used by that frame.
5683 * keymap.c (describe_buffer_bindings): Adjust key_heading to match
5684 the format used by describe_map_tree. Also, don't reprint the
5685 "key binding" header above the global bindings if we've already
5686 printed it for the local bindings; it's clear enough that the
5687 columns mean the same thing as above.
5689 1992-09-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5691 * ralloc.c (r_re_alloc): Instead of allocating a new bloc at the
5692 end of the heap, copying the data to it, and then freeing the
5693 original bloc, just expand the original block. This saves a copy
5694 and a call to sbrk, and also removes the large spike in memory
5695 allocation that would occur when resizing large buffers. And it's
5698 * keyboard.h (Vkeyboard_translate_table): Declare this extern
5699 here, so describe_buffer_bindings can use it.
5700 * keymap.c (describe_buffer_bindings): Declare buf and bufend...
5702 1992-09-05 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5704 * systime.h: Always #include <time.h>, not just when NEED_TIME_H
5705 is defined. It gets us struct tm. #include <sys/time.h> whenever
5706 HAVE_TIMEVAL is defined and NEED_TIME_H isn't.
5708 * systime.h: Note that the tz_dsttime field of the struct timezone
5709 returned by gettimeofday doesn't say whether daylight saving is
5710 _currently- active; rather it specifies whether it is *ever*
5712 (EMACS_GET_TZ_OFFSET_AND_SAVINGS): Removed `savings_flag'
5713 argument, and renamed to EMACS_GET_TZ_OFFSET. Don't try to
5714 extract savings information. EMACS_CURRENT_TIME_ZONE should call
5715 localtime to figure out whether DST is active.
5717 * m/hp9000s300.h: #include <sys/wait.h> before doing anything
5718 else, to avoid conflicts between the system's and Emacs's
5719 definitions of BIG_ENDIAN.
5721 * keymap.c (describe_buffer_bindings): Set the current buffer to
5722 descbuf before calling current_minor_maps; that function's value
5723 depends on the values of buffer-local variables. Don't set the
5724 current buffer to Vstandard_output until afterwards.
5726 * keymap.c (describe_buffer_bindings): If
5727 Vkeyboard_translate_table is in effect, describe its effects.
5729 * frame.c (Fnext_frame): Doc fix.
5731 * frame.c (prev_frame): #if 0'd out; nobody uses this.
5733 * frame.c (next_frame): The logic which determines whether a frame
5734 is acceptable to return was misarranged; rewrote it.
5735 (prev_frame): Same thing.
5737 1992-09-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5739 * syntax.c (scan_lists): Improve smarts for backwards scan of comments.
5740 Don't modify comstyle inside that loop.
5741 If string quotes don't match up, don't take value from OFROM;
5742 instead, parse forward using scan_sexps_forward.
5743 (scan_sexps_forward): Return value via a pointer passed in.
5744 New element in state contains char addr of last comment-starter seen.
5745 (Fparse_partial_sexp): Change call to scan_sexps_forward.
5747 1992-09-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5749 * xmenu.c (xmenu_show): If no panes, just return.
5751 * keyboard.c (last_nonmenu_event): New var.
5752 (syms_of_keyboard): New Lisp var.
5753 (read_key_sequence): Use that instead of prev_event.
5754 * commands.h (last_nonmenu_event): Declared.
5755 * callint.c (Fcall_interactively): For `K', use last_nonmenu_event.
5756 Make `e' alias for `K'.
5758 1992-09-03 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5760 * editfns.c (Fcurrent_time_string): Change docstring to
5761 indicate that we will probably add the timezone to the end,
5762 now that we have it available on many systems.
5764 * xrdb.c: Don't include <X11/Xos.h>. Under R4, it stupidly
5765 insists on defining SIGCHLD, even if it already has a definition.
5766 (file_p): Use the constant 4 instead of R_OK; empirically, the
5767 number is more portable than the symbol if you count the #include
5768 hair you have to go through to get R_OK defined. Ffile_readable_p
5771 * xterm.c (x_wm_set_size_hint): Set the base_width and base_height
5772 members of size_hints, if they're available (X11R4 and after);
5773 otherwise, approximate the right thing, by using min_width and
5774 min_height as the base size.
5776 1992-09-02 Barry A. Warsaw (warsaw@anthem.nlm.nih.gov)
5778 Extended syntax.c in the following ways to support up to 2
5779 orthogonal comment styles per mode. This is needed for C++.
5780 Bit 6 of syntax table entry for a character indicates
5781 it is part of the `b' comment style. Otherwise it is
5782 part of the `a' style.
5783 * syntax.h (SYNTAX_COMMENT_STYLE): New macro.
5784 * syntax.c (Fmodify_syntax_entry): Set that flag for `b'.
5785 (describe_syntax): Print the `b' flag.
5786 (scan_lists, scan_sexps_forward): Handle the new flag.
5787 (Fparse_partial_sexp): Return new element in value.
5789 1992-09-02 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5791 * fileio.c (syms_of_fileio): Doc fix for Vfile_name_handler_alist.
5793 1992-09-02 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5795 * keyboard.c (kbd_buffer_get_event): When performing the
5796 FRAME_FOCUS_FRAME redirection, don't modify the frame field of
5797 the event; that fatally corrupts mouse click events. Instead,
5798 just perform the redirection on the value assigned to
5801 * callint.c (Fcall_interactively): Don't try to get the
5802 `enable-recursive-minibuffers' property from FUNCTION unless
5803 FUNCTION is actually a symbol; there are some cases where a key
5804 sequence is bound directly to a lambda form, and there's no reason
5807 * window.c (Fset_window_configuration): Don't signal an error
5808 if the frame size saved in the window configuration doesn't
5809 match the frame's current size; instead, temporarily resize
5810 the frame while installing the window configuration. This is
5811 important because using the minibuffer saves and restores the
5812 current window configuration, and you don't want to signal an
5813 error just because the user resized the frame while using the
5816 * doc.c (Fsnarf_documentation): Signal an error if this is
5817 called in a dumped Emacs.
5819 * alloc.c (mark_object): Mark a symbol's name after marking its
5820 value, function, and property list rather than before; this way,
5821 symbols' names are readable, giving us a chance to detect some
5822 kinds of heap corruption.
5824 1992-09-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5826 * emacs.c (__main, __do_global_dtors): New dummy functions.
5827 (__do_global_ctors_aux, __do_global_ctors): Fix typo in fn names.
5829 1992-09-01 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5831 * prefix-args.c: New file. See comment at top of file.
5832 * ymakefile (YMF_PASS_LDFLAGS): Use the prefix-args program to
5833 affix the -Xlinker prefix to the linker arguments.
5834 (prefix-args): New target.
5835 (temacs): Depend on prefix-args.
5837 * xterm.c (x_catch_errors): Don't forget to initialize
5838 x_caught_error_message to the null string, so x_check_errors can
5839 tell when an error has occurred.
5841 * unexmips.c (mark_x): Declare this as static void at the top of
5842 the file and at the function definition.
5844 * keyboard.c (input_available_signal): Declare this to return
5847 * xrdb.c (getuid): Declare this to return short.
5849 * s/bsd4-3.h: Remove definition of SIGTYPE macro; Mt. Xinu says
5850 it's int, but Ultrix says it's void. Since the SIGTYPE guessing
5851 code in the `configure' script gives the correct answer for both
5852 of these cases, there's no point in listing it here.
5854 * systime.h (EMACS_CURRENT_TIMEZONE): Change documentation to
5855 indicate that *OFFSET should be set to the number of minutes EAST
5856 of Greenwich, which is what Ed Reingold says real time gurus want.
5857 Changed the definition of the EMACS_GET_TZ_OFFSET_AND_SAVINGS
5858 macro to reflect this. Buggily, the Fcurrent_time_zone function
5859 was already expecting minutes east of GMT.
5861 * Makefile.in (distclean): Remove backups from the `m' and `s'
5864 * m/mips.h: Merge changes from Emacs 18.58:
5865 [NEWSOS5]: Changes so this file can be used with s/newsos5.h.
5866 (SIGN_EXTEND_CHAR): Define this using a cast to signed char. I
5867 guess the MIPS compiler and its derivatives all have this type.
5868 (HAVE_ALLOCA, C_ALLOCA): Define the former if we're compiling with
5869 GCC, and the latter otherwise.
5870 (C_SWITCH_MACHINE): Defined, instead of C_SWITCH_SYSTEM.
5871 (LINKER): Defined, if BSD.
5872 (XUINT, XSET, XUNMARK): Add parentheses to eliminate warnings from
5873 GCC. Reindent to fit in 80 columns.
5874 INHIBIT_BSD_TIME prevents including bsd/sys/time.h.
5875 * s/newsos5.h: New file for Sony NEWS-OS release 5, courtesy of
5876 Chris Hanson <cph@klia.ai.mit.edu>.
5878 * m/mips.h: Don't undefine LOAD_AVE_TYPE; the comment says that
5879 Emacs 19 has the crocks to handle it properly.
5881 * m/pmax.h: Merge changes from Emacs 18.58:
5882 (LIB_STANDARD, COFF, TERMINFO): Cancel out definitions from
5883 m/mips.h which are only appropriate for USG.
5884 (MAIL_USE_FLOCK, HAVE_UNION_WAIT): Do define these.
5885 (BROKEN_O_NONBLOCK): Defined.
5886 (LINKER): Don't define this.
5887 [OSF1]: Undef C_ALLOCA, define HAVE_ALLOCA.
5889 * s/osf1.h: New file.
5891 * s/bsd4-3.h: Merge changes from Emacs 18.58:
5892 (BSD, BSD4_3): Just define these, don't fret about numerical
5893 values or version numbers.
5895 * m/hp9000s300.h: Merge changes from Emacs 18.58, and hp300bsd.h:
5896 Change configuration note to say it's okay to use this file for BSD.
5897 Add comment saying that NOMULTIPLEJOBS must be defined for
5898 versions of HP/UX before 6.5.
5899 Don't define BIG_ENDIAN if it seems that <endian.h> has already
5901 [BSD4_3] Define m68000, instead of hp9000s300; crt0.c uses these
5902 to decide what sort of startup code to use.
5903 [not BSD4_3] Under HP/UX, always define the BSD memory functions
5904 (bcopy, bzero, and bcmp) in terms of the SYSV string functions
5905 (memcpy, memset, and memcmp), not just under HP/UX 5; version 6's
5906 BSD compatibility library has reported bugs in `signal'.
5907 (NEED_BSDTTY): Move this symbol's definition inside the "not
5908 BSD4_3" conditional, since it's only relevant to HP/UX.
5909 * m/hp300bsd.h: File deleted, since m/hp9000s300.h now
5910 works with both HP/UX and BSD; it includes m/hp300bsd.h's
5913 * m/hp9000s300.h: Remove definition for SIGN_EXTEND_CHAR; this is
5914 only used by the regexp code, which has its own portable
5915 definition these days.
5917 1992-08-31 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5919 * keymap.c (Fmake_sparse_keymap): New optional arg. Callers changed.
5920 (Fmake_keymap): Likewise.
5922 * emacs.c (__do_global_ctors, __do_global_ctors_aux): New dummy fns.
5923 (__CTOR_LIST__, __DTOR_LIST__): New dummy variables.
5925 * fileio.c (Fdo_auto_save): Always call record_auto_save.
5927 * keyboard.c (read_char): Call read_char_menu_prompt here.
5928 Accept 4 new args to pass to it. Include them in recursive call.
5929 Don't delay before starting echo if prev_event was a mouse event.
5930 Test for eof in batch mode now understands C is a Lisp_Object.
5931 (read_key_sequence): Don't call it here; always call read_char.
5932 Don't change last_event_buffer after a mouse menu input.
5933 (read_char_menu_prompt): Arg PROMPT deleted.
5934 Return nil if nothing to do.
5936 * xmenu.c (Fx_popup_menu): Treat coords relative to spec'd window.
5937 (single_keymap_panes): New function; contains guts of keymap_panes.
5938 If a command binding for submenu has a prompt string starting with @,
5939 make a separate pane for it at this level.
5941 * xfns.c (Fx_track_pointer): Pass new args to read_char.
5942 (Fx_select_region, Fx_horizontal_line): Likewise.
5943 * lread.c (Fread_char): Pass new args to read_char.
5944 (Fread_event, Fread_char_exclusive): Likewise.
5945 * fns.c (Fy_or_n_p): Pass new args to read_char.
5947 1992-08-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5949 * keyboard.c (read_key_sequence): Keep track of prev_event.
5950 Pass new proper args to read_char_menu_prompt.
5951 (read_char_menu_prompt): New arg prev_event. Use Fx_popup_menu.
5952 Handle any number of keymaps, not just LOCAL and GLOBAL.
5953 Invert meaning of arg PROMPT. Test of menu_prompting was backwards.
5955 * keymap.c (keymap_table): No longer static.
5957 * xmenu.c (keymap_panes): New function.
5958 (Fx_popup_menu): Accept keymap or list of keymaps as MENU argument.
5959 Accept mouse button event as POSITION argument.
5961 1992-08-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5963 * cmds.c (internal_self_insert): Assume Fexpand_abbrev expanded
5964 something if it incremented MODIFF.
5966 1992-08-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5968 * unexmips.c (unexec): Allow sections in any order.
5969 Adjust addresses of rdata section as well as data section.
5971 * buffer.c (syms_of_buffer): Made buffer-display-table,
5972 buffer-field-list and buffer-undo-list allow any type of value.
5974 1992-08-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5976 * fns.c (Fappend): Doc fix.
5978 1992-08-24 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5980 * s/usg5-4.h: Incorporate changes from 18.58:
5981 (LIBX10_SYSTEM): Undefine this.
5982 (GNULIB): Definition deleted -- done in ymakefile.
5983 (LIB_STANDARD): Don't use GNULIB.
5984 (HAVE_TCATTR): Defined.
5986 * xfns.c (x_icon): Don't call x_wm_set_icon_positions if the user
5987 hasn't specified the icon position. Let the window manager put
5988 the icon where it likes.
5990 * xterm.c (x_make_frame_invisible): Don't forget to check the
5991 return value of XWithdrawWindow; it could indicate that the window
5992 wasn't successfully redrawn.
5994 * sysdep.c (init_baud_rate): Re-arranged order of conditionals -
5995 test TERMIOS before TERMIO; when two options might both be
5996 defined, test the most recent first, so that the most recent
5999 * sysdep.c [HAVE_TERMIO] (init_baud_rate): Don't use tcgetattr
6000 unless HAVE_TCATTR is defined. Only very rarely do termio systems
6001 have the tc{get,set}attr macros.
6003 * window.c (coordinates_in_window): Do not assume that all
6004 one-line windows are the minibuffer, or that all minibuffers are
6005 one line high. Use MINI_WINDOW_P.
6007 * systerm.h: Renamed to systty.h, to be more consistent with
6008 everything else in Unix.
6009 * dispnew.c, emacs.c, keyboard.c, process.c, sysdep.c: #include
6011 * ymakefile: References to systerm.h changed.
6013 * s/usg5-3.h: Merged changes from 18.58:
6014 (HAVE_SYSV_SIGPAUSE): Defined.
6015 (BROKEN_TIOCGETC): Defined.
6017 1992-08-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6019 * process.c (WCOREDUMP): Define only if not defined.
6020 (create_process) [HAVE_SETSID]: Use TIOCSCTTY if exists.
6022 1992-08-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6024 * fileio.c (Fdo_auto_save): Call Fsleep_for with the appropriate
6025 number of arguments.
6026 * fns.c (Fyes_or_no_p): Same.
6028 * dispnew.c (update_frame): Change the way we handle
6029 cursor_in_echo_area. Firstly, ignore this if the frame we're
6030 updating doesn't have a minibuffer. Secondly, don't handle the
6031 selected frame specially. Thirdly, don't assume that the
6032 minibuffer is only one line high. If cursor_in_echo_area < 0, put
6033 the cursor in the upper-left corner; if cursor_in_echo_area > 0,
6034 put it on the lowest non-empty line in the minibuffer window, or
6037 * dispnew.c (direct_output_for_insert): Fail if
6038 cursor_in_echo_area is set; we don't want to do the typing there.
6039 (direct_output_for_insert): Same.
6041 1992-08-19 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6043 * xterm.c (x_make_frame_invisible): Use XWithdrawWindow when
6044 available [HAVE_X11R4]; send the UnmapNotify event when
6045 appropriate [HAVE_X11]; just unmap the window if that's all that's
6046 needed [not HAVE_X11].
6048 * xterm.c (x_set_text_property): Removed; it's only called from
6049 one place. Who wants *another* layer of indirection?
6050 * xfns.c (x_set_name): Use XSetWM{Name,IconName} when available
6051 [HAVE_X11R4], or XSetIconName and XStoreName otherwise.
6053 * xterm.h (FRAME_X_WINDOW): New macro, for readability.
6054 * xterm.c, xfns.c, xselect.c: Use it.
6056 * emacs.c (Fkill_emacs): Doc fix.
6057 (syms_of_emacs): Doc fix for Vkill_emacs_hook.
6059 * xterm.c (x_death_handler): Renamed to x_connection_closed.
6060 (x_term_init): Use x_connection_closed as the SIGPIPE handler.
6062 * xterm.c (acceptable_x_error_p, x_handler_error_gracefully,
6063 x_error_handler): Removed; you can't catch X errors this way,
6064 since you can't perform X operations from within an X error
6065 handler, and even though we call error, we're still within an X
6067 (x_error_quitter, x_error_catcher): New functions, for panicking
6068 on and catching X protocol errors.
6069 (x_caught_error_message): Buffer for caught X errors.
6070 (x_catch_errors, x_check_errors, x_uncatch_errors): New functions
6071 for catching errors.
6072 (x_term_init): Set the error handler to x_error_quitter, rather
6073 than x_error_handler.
6074 * xfns.c (x_set_mouse_color): Use x_catch_errors, x_check_errors,
6075 and x_uncatch errors to avoid crashing if the user selects an
6078 * xterm.c (x_proto_requests): Removed; it's not important.
6080 * xterm.c (events): Array removed; it's not used.
6082 * xfns.c (select_visual): Use XVisualIDFromVisual when available
6085 * xrdb.c (get_user_db): Use XResourceManagerString when available
6088 * window.c (change_window_height): If the size of the window will
6089 shrink below the minimum, this code would only try to delete it if
6090 it had a parent. Well, even if the window doesn't have a parent,
6091 you want Fdelete_window to signal an error, since you're trying to
6092 resize one of the undeletable windows into nothingness. So call
6093 Fdelete_window even if the window doesn't have a parent.
6095 * window.c (MINSIZE): Add kludge so that the minibuffer is always
6096 allowed to shrink to one line in height.
6097 (MINSIZE, CURBEG, CURSIZE): Change these so that their argument
6098 are always Lisp_Objects, not struct window *'s.
6099 (change_window_height): Changed accordingly.
6101 1992-08-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6103 * frame.h (struct frame): New member - explicit_name.
6104 * frame.c (make_frame): Clear it.
6105 * xfns.c (x_set_name): Take new argument EXPLICIT, instead of
6107 (x_explicitly_set_name, x_implicitly_set_name): New functions.
6108 (x_frame_parms): Use x_explicitly_set_name here.
6109 (x_window): Use x_implicitly_set_name here.
6110 * xdisp.c (display_mode_line): Use x_implicitly_set_name here.
6112 * xterm.c (x_wm_hints): Variable deleted. This has to be
6114 * xterm.h (struct x_display): New member: wm_hints.
6115 * xterm.c (x_wm_set_window_state, x_wm_set_icon_pixmap,
6116 x_wm_set_icon_position): Use F->wm_hints, rather than x_wm_hints.
6117 (x_term_init): Don't initialize x_wm_hints here.
6118 * xfns.c (Fx_create_frame): Instead, initialize f->x_wm_hints
6121 * xterm.c (x_set_text_property): Properly balance the BLOCK_INPUTs
6122 and UNBLOCK_INPUTs. And remember that VALUE is the string we want
6123 to set the name to, not PROPERTY.
6125 1992-08-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6127 * frame.c (make_minibuffer_frame): Don't set this to auto-raise by
6128 default. It's annoying.
6130 * frame.c (make_minibuffer_frame): Set the prev field of the
6131 minibuffer window on a minibuffer-only frame to Qnil, rather than
6132 having it point to itself. This confuses code (Fprevious_window
6133 and change_window_height, for example), and is only an attempt to
6134 support a convention that can't really be used in Emacs 19 anymore.
6135 * window.h: Document the fact that we can no longer assume that
6136 the minibuffer's previous window is the root window, since a
6137 minibuffer window in a minibuffer-only frame has a prev field of
6139 * frame.h [not MULTI_FRAME] (FRAME_ROOT_WINDOW): Define this by
6140 reference to the_only_frame.root_window, rather than by assuming
6141 that minibuf_window->prev is the root window. While this is true
6142 in the non-multi-frame case, we want to discourage this assumption
6144 * dispnew.c [not MULTI_FRAME] (Fredraw_display): Use
6145 FRAME_ROOT_WINDOW instead of minibuf_window->prev.
6146 * xdisp.c (redisplay, init_xdisp): Same.
6147 * window.c (Fset_window_configuration): Removed #if 0'd code which
6148 assumes that minibuf_window is on the same frame as the window
6149 configuration. Removed special case for windows whose prevs
6150 point to themselves.
6152 * window.c (Fset_window_configuration): Rename the argument from
6153 ARG to CONFIGURATION, so it matches the docstring. The
6154 make-docfile program cares.
6156 * window.c [MULTI_FRAME] (syms_of_window): Don't staticpro
6157 minibuf_window; the frame list will take care of it.
6159 * xterm.h (HAVE_X11R4): Since we can autodetect this, and can
6160 write code more likely to be future-compatible, define this when
6162 * xterm.c (x_set_text_property): Define this appropriately for
6165 * xterm.c (x_set_text_property): Make this take a Lisp_Object
6166 string as an argument, rather than a pointer and a length.
6167 * xfns.c (x_set_name): Caller changed.
6169 * xfns.c (x_get_arg): Accept a new type - symbol. If we've
6170 retrieved a string from the xrdb database and the user wants a
6172 (Fx_create_frame): Use the symbol type here.
6174 * xfns.c (x_figure_window_size, x_icon, Fx_create_frame): Use
6175 values from enum resource_types for the last arg to x_get_arg,
6176 instead of passing numbers.
6178 * xfns.c (Fx_create_frame): When setting up the scroll bars, use
6179 the type parameter to x_default_parameter, rather than prefixing
6180 the resource name with a question mark.
6182 * xfns.c [not HAVE_X11] (Fx_create_frame): The resource which
6183 determines whether or not to use a bitmapped icon is called
6184 "IconType", not "BitmapIcon". Update this.
6186 1992-08-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6188 * xterm.c: Doc fixes.
6190 More SYSV portability changes from Eric Raymond:
6192 * xterm.c [USG5]: Don't include <sys/types.h>.
6194 * xterm.c (x_make_frame_invisible): Instead of calling XWithdraw
6195 window, which isn't widely available, write out what it does,
6196 since that's not much.
6197 (x_iconify_frame): Explicitly perform both the X11R3 and X11R4
6198 methods for iconification; don't use XIconifyWindow, since that's
6201 * xterm.c (x_wm_set_size_hint): Don't bother setting the
6202 base_width and base_height members; their function is performed
6203 just as well by the min_width and min_height members, and if we
6204 use XSetNormalHints instead of XSetWMNormalHints, we can be
6207 * xterm.c (x_error_handler): There is no way to invoke the default
6208 error handler which works on all versions of X11, so don't bother;
6209 call XGetErrorText and print the message ourselves.
6211 * xterm.c (x_term_init): Don't use MAXHOSTNAMELEN; this isn't
6212 defined on all systems. Since we only use that as an initial
6213 guess anyway, it's not very important.
6215 1992-08-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6217 * abbrev.c (Fexpand_abbrev): If pre-expand hook changes the buffer,
6218 assume that means we "did an expansion".
6220 * cmds.c (internal_self_insert): Ignore value of Fexpand_abbrev;
6221 instead, check whether buf is modified when it returns.
6223 1992-08-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6225 Applied SYSV portability changes from Eric Raymond:
6227 * xrdb.c [USG5]: Define SYSV, and then include <unistd.h>.
6228 Apparently, Xlib.h include string.h if SYSV is defined, and
6230 Don't include <sys/types.h>; just declare getuid to return an
6232 (MAXPATHLEN): If this is not defined by the system's include
6233 files, give it a value of 256.
6234 (get_user_db): Fetch the defaults directly from the display
6235 structure, rather than using XResourceManagerString; that
6236 function doesn't exist in the older versions of X.
6238 * xterm.c (x_set_text_property): New function.
6239 * xfns.c (x_set_name): Use it instead of XSetWMName and
6242 * xfns.c (select_visual): Fetch the visual id directly from v;
6243 don't call XVisualIDFromVisual, since that function is not
6244 available in earlier versions of X.
6246 * term.c (term_get_fkeys): Some systems define `static' to be the
6247 empty string, which means that you can't have constant
6248 initialized arrays inside a function. So move the `keys' array
6249 outside of the function.
6250 * xdisp.c (decode_mode_spec): Same deal, with lots_of_dashes.
6251 * xfns.c (x_make_gc): Same deal, regarding cursor_bits.
6253 * term.c (keys): Include definitions for "K2" (the center key on
6254 an IBM keypad), "F1" (F11), and "F2" (F12). Handle "k0" and "k;"
6255 specially; see the code for details.
6257 * term.c (clear_end_of_line): Remember that on some systems,
6258 "static" gets defined to be the null string, so we can't declare
6259 an array to be static and then initialize it. Since the array in
6260 question (buf) is only one element long, just make it a scalar
6261 rather than an array; it can then be initialized, even if it's
6264 * systime.h [not HAVE_TIMEVAL] (EMACS_USECS, EMACS_SET_USECS):
6265 Don't forget to define dummy versions of these.
6267 * systime.h [USE_UTIME]: time_t is a typedef, not a struct.
6268 Don't prefix it with `struct'.
6270 * systerm.h (EMACS_SET_TTY_PGRP): When there doesn't seem to be
6271 any way to do this, don't forget to give it a dummy definition.
6273 * sysdep.c (select): There's no need to cast the return value of
6274 signal anymore, since we have the SIGTYPE macro defined.
6276 * sysdep.c (read_input_waiting): When scanning for quit
6277 characters, use the value of quit_char, rather than assuming that
6278 C-g is the quit character. And don't forget to declare i.
6280 * sysdep.c [USG5]: Don't include fcntl.h.
6282 * s/usg5-3.h: Eric Raymond writes:
6283 Define HAVE_SELECT and BSTRINGS only if HAVE_X_WINDOWS is on,
6284 because that means we'll be linking in the shared libraries
6285 containing the BSD emulations. Teach the file about the shared
6286 libraries necessary to link X programs, because AT&T doesn't
6287 supply static libraries for X. Also, fix the incorrect assertion
6288 that -lg cannot be used with SVr3. Finally, force USE_UTIMES and
6289 BROKEN_TIOCGWINSZ. (Note for the future; there may be a
6290 utimes(2)) emulation lurking in the X shared libraries.)
6292 * s/usg5-4.h (USE_UTIME): Remove this definition; the C library
6293 still doesn't have utimes.
6295 * ralloc.c (get_bloc): When initializing new_bloc->variable, cast
6297 (malloc_init): Give warning if sbrk returns zero. Wonder what
6298 that's supposed to mean.
6300 * process.c (process_send_signal): Don't send SIGTSTP if the
6301 system doesn't have that facility.
6303 * process.c: [USG5] Don't include <fcntl.h>.
6304 [USG] Don't bother including <termios.h>, <termio.h>, or
6305 <fcntl.h>; systerm.h takes care of all that.
6306 Remove the "mis;tak-+;;" line from the code; apparently this
6307 section of code does get used.
6309 * minibuf.c (Fread_from_minibuffer): Put this function's doc
6310 string into a comment; it's too long for the PCC preprocessor.
6312 (Fcompleting_read): Same deal.
6314 * keyboard.c (init_keyboard): Changed "#endif SIGIO" to
6315 "#endif /* SIGIO */"
6316 * mocklisp.c (Fml_substr): Same sort of thing.
6317 * process.c (wait_reading_process_input): Same.
6319 * floatfns.c (Fexpm1, Flog1p): Function removed; it's not widely
6320 available, and hardly vital.
6321 (syms_of_floatfns): Adjusted appropriately.
6323 * floatfns.c (Flog): Accept optional second arg, being the base
6325 [USG] (Flogb): Define this in terms of Flog.
6327 * data.c [USG] (Frem): Call fmod, rather than drem. Rah.
6329 * emacs.c [USG5]: Don't #include <fcntl.h> for these systems.
6331 * alloc.c (Fmake_marker): Removed the test for being called from a
6332 signal handler. The original bug is probably gone, the test
6333 wasn't written portably, and it should probably go somewhere else
6334 anyway - say, funcall or eval.
6336 End of changes from Eric Raymond.
6338 * xfns.c (Fx_create_frame): Make the default for the icon-type
6339 parameter nil, not t. It seems to cause problems with some X
6342 * lisp.h (DEFVAR_PER_BUFFER): Add new argument, TYPE, to help
6343 check the types of buffer-local variable slots.
6344 * buffer.c (syms_of_buffer): Call DEFVAR_PER_BUFFER with the new
6346 * abbrev.c (syms_of_abbrev): Same.
6347 * buffer.c (buffer_local_types): New variable.
6348 (buffer_slot_type_mismatch): New function.
6349 * buffer.h (buffer_local_types): New extern declaration.
6350 * data.c (store_symval_forwarding): When storing through a
6351 Lisp_Buffer_Objfwd, check if the slot requires a particular type,
6352 and report an error if the types clash.
6353 * lread.c (defvar_per_buffer): Support new TYPE argument, by
6354 setting the appropriate slot in buffer_local_types.
6356 1992-08-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6358 * window.c (window_loop): This used to keep track of the first
6359 window processed and wait until we came back around to it. Sadly,
6360 this doesn't work if that window gets deleted. So instead, use
6361 Fprevious_window to find the last window to process, and loop
6362 until we've done that one.
6364 * window.c [not MULTI_FRAME] (init_window_once): Don't forget to
6365 set the `mini_p' flag on the new minibuffer window to t.
6367 * window.c (Fwindow_at): Don't check the type of the frame
6370 * window.c [not MULTI_FRAME] (window_loop): Set frame to zero,
6371 instead of trying to decode it.
6373 * frame.h [not MULTI_FRAME] (the_only_frame): Put a comment above
6374 this indicating that it's not GCPRO'd. Put parens around some of
6375 the FRAME_* macros' definitions.
6376 [not MULTI_SCREEN] (Fselected_frame): New function.
6378 * frame.h [not MULTI_FRAME] (FRAME_ROOT_WINDOW): Define this in
6379 terms of minibuf_window, rather than by reference to
6381 * window.c (init_window_once): Initialize minibuf_window before
6382 FRAME_ROOT_WINDOW, so the latter actually points to something.
6384 * keyboard.c (Fexecute_mouse_event): Dyked-out function deleted.
6385 We're not going to use this mouse interface.
6386 (Vmouse_window, Vmouse_event, Vmouse_event_function)
6387 (Vmouse_left_hook, Vmap_frame_hook, Vunmap_frame_hook)
6388 (Vmouse_motion_handler): Variables deleted; they were to be used by
6389 Fexecute_mouse_event.
6390 (syms_of_keyboard): Same.
6391 (command_loop_1): Remove dyked-out code to support
6392 Fexecute_mouse_event.
6395 * keyboard.c (Vlast_event_frame): Don't define this window if
6396 MULTI_FRAME is not #defined.
6397 (syms_of_keyboard): Same.
6398 (kbd_buffer_store_event): Don't try to work with Vlast_event_frame
6399 if MULTI_FRAME is not #defined.
6400 (kbd_buffer_get_event): Same.
6402 * keyboard.c (Fdiscard_input): Removed dyked-out code from when
6403 unread_command_char's quiescent value was -1, not nil.
6405 * frame.c (make_frame): Stop passing zero to make_window; it's not
6406 expecting any arguments.
6408 1992-08-12 Jim Blandy (jimb@albert.gnu.ai.mit.edu)
6410 * unexsunos4.c: Deleted "$Log" header in comments at top of file;
6411 this was beginning to grow RCS hair, which we don't want.
6412 * xmenu.c: Same deal.
6414 1992-08-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6416 * fileio.c (Fread_filename): Don't add one here.
6417 * minibuf.c (Fcompleting_read): Instead, stop subtracting one
6418 here, so this function lives up to its doc string, which I think
6419 specifies an okay way to work.
6421 * doc.c (Vdata_directory): Removed; this is declared in callproc.c.
6422 (syms_of_doc): Initialization removed.
6424 * xfns.c (x_get_arg): Return Qunbound for an unspecified
6425 resource, not nil. That way, we can tell the difference between a
6426 false resource and an unspecified resource.
6427 (x_default_error): Use DEFLT if x_get_arg returns Qunbound, not Qnil.
6428 (x_figure_window_size, x_icon, Fx_create_frame): Deal with
6429 Qunbound and Qnil properly.
6431 * xfns.c (Fx_create_frame): Pass the correct number of arguments
6434 * xfns.c [not HAVE_X11] (Fx_create_frame): Delete section that's
6435 only included if we *do* have X11. Blind patching.
6437 * xfns.c (x_icon): Rewritten to call x_wm_set_icon_position and
6438 x_wm_set_window_state instead of calling XSetWMHints directly.
6439 * xterm.c (x_wm_hints): New variable.
6440 (x_wm_set_window_state, x_wm_set_icon_pixmap,
6441 x_wm_set_icon_position): Use x_wm_hints.
6442 (x_term_init): Set the `input' field of x_wm_hints, and its flag.
6444 * xterm.c (x_text_icon): Call x_wm_set_icon_pixmap with a pixmap
6445 of zero, to clear the pixmap.
6446 (x_wm_set_icon_pixmap): Accept this protocol; if pixmap is zero,
6447 specify no pixmap for the icon.
6449 * xfns.c (x_default_parameter): Don't call store_frame_param here;
6450 it's already taken care of by x_set_frame_parameters.
6452 * xfns.c (Fx_create_frame): Check for the `icon-type',
6453 `auto-raise', and `auto-lower' parameters. Have `icon-type'
6454 default to t, indicating that we want the nifty gnu in our icons.
6455 (Qauto_lower): New symbol.
6457 * xfns.c (x_set_icon_type): UNBLOCK_INPUT before reporting the
6458 error, not after. error doesn't return, sklitch-brain.
6460 * xterm.c (x_set_window_size): Call check_frame_size to make sure
6461 that the requested dimensions are within acceptable limits.
6462 Store the new size information in the frame structure.
6464 * xfns.c (x_set_frame_parameters): Properly recognize changes to
6465 the height of the frame. Recognize changes of the frame's
6468 * xfns.c (x_set_frame_parameters): Iterate over ALIST while the
6469 current element is cons, not while it's non-nil.
6470 (syms_of_xfns): Call init_x_parm_symbols after interning all the
6471 other atoms; init_x_parm_symbols expects Qx_frame_parameter to be
6474 1992-08-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6476 * xfns.c (Qbackground_color, Qborder_color, Qborder_width)
6477 (Qcursor_color, Qfont, Qforeground_color, Qgeometry)
6478 (Qhorizontal_scroll_bar, Qicon_left, Qicon_top, Qiconic_startup)
6479 (Qinternal_border_width, Qleft, Qmouse_color, Qparent_id)
6480 (Qsuppress_icon, Qsuppress_initial_map, Qtop, Qundefined_color)
6481 (Qvertical_scroll_bar, Qwindow_id, Qx_frame_parameter): New
6482 symbols, with lisp code to rebuild syms_of_xfns.
6483 (syms_of_xfns): Initialize and staticpro them.
6484 (Qheight, Qminibuffer, Qname, Qnone, Qonly, Qwidth)
6485 (Qunsplittable): Add extern declaration for these.
6486 (x_init_parm_symbols): Don't initialize Qx_frame_parameter here;
6487 it's done in syms_of_xfns.
6488 (x_default_parameter): Change the argument char *PROPNAME into a
6489 Lisp_Object PROP; let the caller take care of interning the atom.
6490 (Fx_geometry, x_figure_window_size, x_icon, Fx_create_frame): Use
6491 the new Q... variables, instead of interning things.
6493 * frame.c (Qheight, Qicon, Qmodeline, Qname, Qnone, Qonly)
6494 (Qunsplittable, Qwidth, Qx): New symbol, with lisp code to rebuild
6496 (syms_of_xfns): Initialize and staticpro them.
6497 (Fframep, Fframe_visible_p, Fframe_parameters): Use the new Q...
6498 variables, instead of interning things.
6499 (store_in_alist): Change the argument char *PROPNAME into a
6500 Lisp_Object PROP; let the caller take care of interning the atom.
6502 * frame.c (Fframe_visible_p): Doc fix.
6504 * frame.c (Fframe_parameters): When figuring the `minibuffer'
6505 parameter, if FRAME doesn't have a minibuffer, return `none', not
6506 nil. If it does have a minibuffer with other windows, return the
6509 * frame.c (Fmodify_frame_parameters): Don't write out the loop for
6510 processing X frame parameters here; do it in the x specific code.
6511 Call the function which deals with this stuff
6512 x_set_frame_parameters, not x_set_frame_parameter.
6513 * xfns.c (x_set_frame_param): Replaced by x_set_frame_parameters.
6514 (x_set_frame_parameters): Process the alist of parameters here.
6515 Notice `width', `height', `top', and `left' parameters.
6516 Hold off changing the frame size and position until the end, so we
6517 can do both parameters at once when they are both specified.
6518 (x_default_parameter): Call x_set_frame_parameters, not
6521 * frame.c (Fmake_frame_visible, Fmake_frame_invisible)
6522 (Ficonify_frame, Fframe_parameters, Fmodify_frame_parameters)
6523 (Fset_frame_height, Fset_frame_width, Fset_frame_size)
6524 (Fset_frame_position): Place clauses controlled by FRAME_X_P inside
6525 `#ifdef HAVE_X_WINDOWS ... #endif' clauses.
6527 * frame.c (Fset_frame_position): Doc fix.
6529 * dispnew.c (Fredraw_frame): Call clear_frame_records before
6530 calling update_end, so that x_display_box_cursor can rely on the
6531 contents of f->current_glyphs.
6533 * xfns.c (x_figure_window_size): Indicate that this function
6534 returns an int, rather than just leaving it unstated.
6536 * xterm.c (x_wm_set_size_hint): Don't try to set the base_height
6537 and base_width elements of size_hints if PBaseSize is not
6538 #defined. Set the minimum frame size according to the information
6539 returned by check_frame_size.
6541 * window.h (MIN_SAFE_WINDOW_HEIGHT, MIN_SAFE_WINDOW_WIDTH): Macros
6543 (check_frame_size): New extern declaration.
6544 * window.c (MIN_SAFE_WINDOW_HEIGHT, MIN_SAFE_WINDOW_WIDTH): Macros
6546 (check_frame_size): New function.
6547 * dispnew.c (change_frame_size): Call check_frame_size here,
6548 rather than writing out its code. Don't declare newheight and
6549 newwidth to be register variables, since we take their address.
6551 * bytecode.c (Fbyte_code): When metering the Bcall opcodes, make
6552 sure the count on the symbol's `byte-code-meter' property does not
6555 * bytecode.c (syms_of_bytecode): Add a docstring for
6558 1992-08-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6560 * dispnew.c (in_display): Variable deleted; it's only ever used as
6561 an unofficial parameter to change_frame_size.
6562 (change_frame_size): New argument, DELAY, which when non-zero
6563 indicates to delay the size change until later. This should be
6564 passed as one from signal handlers.
6565 (window_change_signal): Call change_frame_size with a DELAY of 1.
6566 (do_pending_window_change): Call change_frame_size with DELAY of 0.
6567 * frame.c [MULTI_SCREEN] (Fset_frame_height, Fset_frame_width,
6568 Fset_frame_size): Same.
6569 [not MULTI_SCREEN] (Fset_frame_height, Fset_frame_width,
6570 Fset_frame_size, Fset_screen_height, Fset_screen_width): Same.
6571 * keyboard.c (Fsuspend_emacs): Call change_frame_size with the
6572 proper arguments - the height and width are the second and third
6573 arguments, not the first and second. Pass 0 for DELAY.
6574 * xfns.c (Fx_create_frame): Call change_frame_size with a DELAY of 0.
6575 * xterm.c (XTread_socket, x_do_pending_expose): Call
6576 change_frame_size with a DELAY of 1.
6578 * xterm.c (in_display): Deleted this; it's never used in xterm.c,
6579 and there is another variable by the same name in dispnew.c.
6581 * frame.c [not MULTI_SCREEN] (Fset_frame_height, Fset_frame_width)
6582 (Fset_frame_size, Fframe_height, Fframe_width): New functions, for
6583 use when Emacs is not compiled with multiple screens.
6584 [not MULTI_SCREEN] (Fset_screen_height, Fset_screen_width):
6585 Functions added for backward compatibility with Emacs 18. These
6586 would be just aliases, except that the version 18 functions don't
6587 take a FRAME argument.
6588 [not MULTI_SCREEN] (syms_of_frame): New function, to defsubr the
6589 above and add screen-height and screen-width as aliases for
6590 Fframe_height and Fframe_width.
6591 * emacs.c (main): Call syms_of_frame unconditionally. When
6592 MULTI_FRAME is not defined, it still provides the Fframe_width,
6593 Fframe_height, Fset_frame_width, and Fset_frame_height functions.
6595 * frame.c (Fset_frame_width): Change the size of FRAME, not of
6598 * frame.c (Fset_frame_width, Fset_frame_height): Declare the
6599 `frame' argument to be a Lisp_Object. It used to be undeclared.
6601 1992-08-07 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6603 * dispnew.c, frame.c, frame.h, keyboard.c, scroll.c, term.c,
6604 * window.c, xdisp.c, xfns.c xterm.c (FRAME_IS_TERMCAP, FRAME_IS_X)
6605 (FRAME_HAS_MINIBUF): Renamed these to FRAME_TERMCAP_P, FRAME_X_P,
6606 and FRAME_HAS_MINIBUF_P, for consistency with the rest of the
6609 * window.h (MIN_SAFE_WINDOW_WIDTH, MIN_SAFE_WINDOW_HEIGHT): New
6611 * window.c (check_min_window_sizes): New function.
6612 (set_window_height): Call it.
6613 (Fsplit_window, change_window_height): Call it, instead of writing
6615 * dispnew.c (change_frame_size): If newlength or newwidth are too
6616 small (according to the value of MIN_SAFE_WINDOW_{WIDTH,HEIGHT}),
6617 force them larger. This isn't really right, but it's better than
6620 * editfns.c (Fcurrent_time_zone): Doc fix.
6622 1992-08-06 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6624 * editfns.c (Fcurrent_time_zone): Don't forget to include code to
6625 signal an error when EMACS_CURRENT_TIME_ZONE is not defined.
6627 1992-08-06 Joseph Arceneaux (jla@gnu.ai.mit.edu)
6629 * doc.c (Vdata_directory): Declared.
6630 (syms_of_doc): Initialized.
6632 * fileio.c (Fread_filename): Add 1 to the offset position for the
6633 cursor when reading file names.
6635 1992-08-05 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6637 * systime.h (EMACS_CURRENT_TIME_ZONE): New macro.
6638 * editfns.c (Fcurrent_time_zone): New function.
6639 (syms_of_editfns): defsubr it.
6641 * keyboard.c (read_key_sequence): Clear the eighth bit of the
6642 character from the key sequence, NOT the index of the character IN
6643 the key sequence. How many tries will it take to get it right?
6645 1992-08-04 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6647 * eval.c (syms_of_eval): Doc fix for debug-on-quit.
6649 1992-08-03 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6651 * callproc.c (Fcall_process): Doc fix. Used to claim that
6652 Fcall_process doesn't wait when BUFFER was nil. It does.
6654 1992-07-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6656 * keyboard.c (read_key_sequence): Scan for function keys when t >=
6657 mock_input, not when t > mock_input. We do want to scan for
6658 function keys when t == mock_input.
6660 * keyboard.c (read_key_sequence): Don't increment fkey_end when
6661 testing to see if keybuf[fkey_end] is a meta-character.
6663 1992-07-27 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6665 * Makefile.in (TAGS): Generate tags for files in ../external-lisp
6668 1992-07-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6670 * eval.c (find_handler_clause): For quit, don't check Vdebug_on_error.
6671 (wants_debugger): Rewrite so it cannot get an error.
6673 * callint.c (Fcall_interactively): Handle enable-recursive-minibuffers
6674 property on the command, by enabling recursive minibuffers.
6675 (syms_of_callint): Set Qenable_recursive_minibuffers.
6677 1992-07-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6679 * frame.c (Fmake_frame_visible, Fmake_frame_invisible,
6680 Ficonify_frame): Make the first argument optional, defaulting to
6682 (Ficonify_frame, Fmake_frame_invisible): Add interactive specs, so
6683 we can bind these directly to C-z.
6685 1992-07-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6687 * fileio.c (Fread_file_name): Use new calling convention for
6688 Fcompleting_read, with history as Qfile_name_history.
6689 (syms_of_fileio): Set Qfile_name_history; set the var to nil.
6690 Do staticpro for the recently created Q* vars.
6692 * minibuf.c (read_minibuf): Two additional args histvar and histpos.
6694 (Fcompleting_read): Last arg is now HIST--(HISTVAR . HISTPOS).
6695 Arg INIT can now be (INITIAL-STRING . INITIAL-POSITION).
6696 Pass BACKUP_N arg to read_minibuf properly as Lisp object.
6697 (Fread_from_minibuffer): Likewise.
6698 (syms_of_minibuf): Set Qminibuffer_history and staticpro it.
6700 * eval.c (Ffuncall, Feval): Support subrs with 7 args.
6702 * fns.c (Fyes_or_no_p): Use Fread_string, not read_minibuf.
6703 * callint.c (Fcall_interactively): For 'S', use Fread_no_blanks_input
6704 rather than read_minibuf.
6706 1992-07-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6708 * minibuf.c (Vminibuffer_history_variable): New variable.
6709 (syms_of_minibuf): Define variable minibuffer-history-variable.
6710 (read_minibuf): Push the string on specified history list.
6712 1992-07-23 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6714 * Makefile.in (doall, doxemacs, dotemacs): Put quotes around CC=${CC}.
6715 Don't include $(MAKEOVERRIDES); that is always implicit.
6717 1992-07-22 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6719 * keyboard.c (read_key_sequence): If we have read a
6720 meta-character, prefix it with meta_prefix_char before looking it
6721 up in the function key keymap.
6723 * lread.c (Fread_char_exclusive): Code this with a do-while loop,
6724 not a while loop with its body repeated.
6726 * lread.c (Fread_event): Don't make this function's definition
6727 conditional on X-windows. It ought to be there no matter how
6729 (syms_of_lread): Don't make its defsubr conditional either.
6731 * lread.c (Fread_char): Doc fix.
6733 * fileio.c (find_file_handler): It's called
6734 Vfile_name_handler_alist, not Vfile_handler_alist.
6735 (Fwrite_region): Declare the variable named `handler'.
6736 (Fverify_visited_file_modtime): Use `b->filename', not `filename'.
6737 (Fset_visited_file_modtime): Declare the variable named `handler'.
6738 * dired.c (Fdirectory_files, Ffile_name_completion): Use
6739 `dirname', not `filename'.
6740 (Qfile_attributes): New variable.
6741 (syms_of_dired): Initialize it.
6743 * xselect.c (Fx_own_selection): If we're trying to set
6744 cut-buffer0, and the value is too large for the X server (as
6745 indicated by the max_request_size member of the X Display), just
6746 set the buffer to the empty string, and return nil.
6748 1992-07-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6750 * search.c (fast_string_match): New function.
6751 * fileio.c (find_file_handler): New function.
6752 (Fcopy_file, Fmake_directory, Fdelete_directory, Fdelete_file)
6753 (Frename_file, Fadd_name_to_file, Fmake_symbolic_link)
6754 (Ffile_exists_p, Ffile_executable_p, Ffile_readable_p, Ffile_symlink_p)
6755 (Ffile_writable_p, Ffile_directory_p, Ffile_accessible_directory_p)
6756 (Ffile_modes, Fset_file_modes, Ffile_newer_than_file_p)
6757 (Fwrite_region, Fverify_visited_file_modtime):
6758 Use find_file_handler; call the handler and return.
6759 (Finsert_file_contents): Use find_file_handler;
6760 cannot just return after the handler, but must handle VISIT.
6761 (syms_of_fileio): Set up Qcopy_file, etc.
6762 * dired.c (Fdirectory_files, Ffile_name_completion)
6763 (Ffile_name_all_completions, Ffile_attributes):
6764 Use find_file_handler; call the handler.
6765 (syms_of_dired): Set Qfile_attributes, etc.
6767 1992-07-21 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6769 * xselect.c (Fx_own_selection): Initialize val to nil, so that if
6770 we don't get the selection, we don't return garbage. When setting
6771 cut-buffer0, set val to the string pasted.
6773 * xfns.c (x_set_name): If ARG is nil, set the frame's name to the
6775 * xdisp.c (display_mode_line): If we should set the frame's name,
6776 but there is only one frame currently active, call x_set_name with
6777 nil as the name; this will display something generically
6780 1992-07-20 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6782 * lread.c (isfloat_string): Recognize floats without a leading
6783 integer part, noting that "e5" is a symbol, not a floating point
6786 * xdisp.c (message, message1): When displaying a message, don't
6787 make the minibuf frame visible unless the selected frame is also
6788 visible. This means that frames won't pop up unless the user is
6789 actually interacting with Emacs.
6791 * xdisp.c (display_mode_line): If Emacs is currently supporting
6792 only one screen, don't change the title of the screen to the name
6793 of the current buffer; this is only annoying in this case. We
6794 should probably think more carefully about how screens should be
6797 1992-07-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6799 * process.c (allocate_pty): Handle PTY_OPEN.
6800 Delete system-specific alternatives to PTY_NAME_SPRINTF
6801 and PTY_TTY_NAME_SPRINTF.
6803 1992-07-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6805 * callint.c (Fprefix_numeric_value): Fix typo: test raw, not val.
6807 1992-07-17 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6809 * xfns.c (x_window): x_set_name normally ignores requests to set
6810 the name if the requested name is the same as the current name.
6811 This is the one place where that assumption isn't correct; f->name
6812 is set, but the X server hasn't been told. So fake it out.
6814 * emacs.c [sun] (main): On suns, localtime caches the value of the
6815 time zone rather than looking it up every time. This means that
6816 the dumped Emacs doesn't check the value of the TZ environment
6817 variable. Call tzset before entering the editing loop to check
6820 1992-07-16 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6822 * dired.c (Fdirectory_files): Don't forget to pass the REGP
6823 argument to compile_pattern.
6824 * search.c (compile_pattern): If REGP is zero, don't call
6825 re_set_registers; nobody cares.
6827 * fileio.c (auto_save_error): Pass the correct number of arguments
6830 * lread.c: Include <ctype.h> at the top of the file, instead of
6831 just before isfloat_string; read0 wants to use it too.
6833 * process.c (Fdelete_process, Fprocess_status, Fprocess_send_region)
6834 (Fprocess_send_string, Fprocess_send_eof, Finterrupt_process): Doc
6837 * process.c (Fprocess_status): Use get_process to find the process
6838 denoted by the PROC argument, not Fget_process.
6840 1992-07-15 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6844 1992-07-14 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6846 * window.c (syms_of_window): Doc fix for pop-up-frames.
6848 * frame.c (Fframe_parameters): Note that if FRAME is omitted, it
6849 defaults to the selected frame.
6851 * frame.c (Fframe_height, Fframe_width): Blocked out these
6852 functions; they have no C callers, and can be written nicely in
6855 * frame.c (Fframe_pixel_size): Function removed; there aren't
6856 enough other functions available to make this useful. We need
6857 functions describing the size of the characters of a font.
6859 * xterm.h, xterm.c, xselect.c, xmenu.c, xfns.c, xdisp.c, window.h,
6860 * window.c, termopts.h, termhooks.h, termchar.h, term.c sysdep.c,
6861 * scroll.c, screen.c, screen.h, process.c, print.c, minibuf.c,
6862 * lisp.h keyboard.c, indent.c, fns.c, emacs.c, dispnew.c,
6863 * dispextern.h, cm.h, alloc.c, config.h.in: Screens are now called
6864 frames, to avoid even more confusion with X terminology than
6865 Emacs's "windows" already cause. All macros, functions, and
6866 variables renamed; all uses changed.
6867 * screen.c, screen.h: Renamed to frame.c and frame.h. All
6869 * ymakefile: Adjusted appropriately.
6870 * buffer.c: Doc fixes.
6872 * xfns.c (Fx_store_cut_buffer): Reversed sense of test for non-X
6875 * window.c (Frecenter): Doc fix; this function places point in the
6876 middle of the current window, not the current screen.
6878 * window.c (temp_output_buffer_show): Use WINDOW_SCREEN macro
6879 instead of accessing the member directly.
6881 1992-07-13 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6883 * print.c (print): Changed code which prints screen objects to use
6884 the SCREEN_LIVE_P macro instead of testing the screen structure
6887 * alloc.c (undo_threshold, undo_high_threshold): Variables renamed
6888 to undo_limit and undo_strong_limit.
6889 (Fgarbage_collect): Uses changed.
6890 (syms_of_alloc): DEFVARs and docstrings changed.
6891 * undo.c (truncate_undo_list): Comment adjusted.
6893 * lread.c (read0): Allow floating-point numbers to begin with a
6894 period. `(0 .5)' denotes a list of two numbers, not a dotted pair.
6896 1992-07-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6898 * fns.c, callproc.c: Doc fix.
6900 1992-07-10 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6902 * bytecode.c (Bsymbol_function, Bfset): Removed comments saying
6903 that these are no longer generated. Jamie Zawinski's byte
6904 compiler does generate them, and he's actually collected
6905 statistics on how often these functions are called.
6907 1992-07-09 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6909 * screen.c (store_screen_param): Clarify error message.
6911 * xterm.c (x_make_screen_visible): Undo the change made on June
6912 30; that is not the right solution. Apparently there are three
6913 states a window may be in: normal, iconified, and invisible.
6915 1992-07-08 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6917 * eval.c (Fmacroexpand): Code cleaned up; there's no need to
6918 handle forms like ((macro lambda ...) ...) specially.
6920 * fileio.c (Finsert_file_contents): Signal an error if we're asked
6921 to read from a named pipe.
6923 1992-07-07 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6925 * m/*.h (SIGN_EXTEND_CHAR): Removed these definitions. The only
6926 place they were used is in regex.c, and nowadays that has its own
6927 definition, which works for any machine. The definitions in the
6928 machine description files usually didn't work if given an unsigned
6929 character as an argument, anyway.
6931 1992-07-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6933 * buffer.c: Doc fix.
6935 1992-07-02 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
6937 * minibuf.c (Fdisplay_completion_list): Declared new variables
6938 used in rms' previous change.
6940 1992-07-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6942 * minibuf.c (Fdisplay_completion_list): Handle non-buffer stream.
6944 1992-07-01 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6946 * window.c (Fdisplay_buffer): Add interactive spec.
6948 1992-06-30 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
6950 * mem_limits.h: EXCEEDS_ELISP_PTR declared here.
6951 * ralloc.c: No longer declared here.
6952 * vm-limit.c: Nor here. Also, include "lisp.h" before
6953 "mem_limits.h" and additionally include "config.h".
6955 1992-06-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6957 * xterm.c (x_make_screen_visible): Don't de-iconify the window;
6958 iconification is orthogonal to visibility.
6960 * emacs.c (syms_of_emacs): Change docstring for `kill-emacs-hook'
6961 to describe it as a hook, not as a single function.
6963 1992-06-29 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6965 * minibuf.c (Fread_no_blanks_input): Corrected maximum number of
6966 arguments from one to two.
6968 * emacs.c (Vkill_emacs_hook): Declare this here; it should have a
6969 docstring, so we might as well DEFVAR it.
6970 (syms_of_emacs): Initialize it, and DEFVAR_LISP it with an
6971 appropriate docstring.
6973 1992-06-28 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6975 * lread.c (Feval_buffer): Make the DEFUN match the C argument
6976 list; this takes two optional arguments, not just one.
6978 * lisp.h (Lisp_Buffer_Local_Value): Comments neatened.
6980 * data.c (Fset): Fixed conditional which tests whether the cache
6981 is invalid. It used to be pretty munged, and would always declare
6982 the cache invalid for Lisp_Buffer_Local_Value variables. Now it
6983 declares the cache invalid if the buffer is wrong (obviously), of
6985 1992-06-27 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6987 * data.c (Fset): Comments reformatted for readability.
6989 * xterm.c (last_mouse_movement_time): New variable.
6990 (note_mouse_position): Set it.
6991 (XTmouse_position): Return its current value as the position's
6994 * keyboard.c (Qvertical_split): Renamed to `vertical-line',
6995 since the window arrangement is actually referred to as a
6997 (make_lispy_event, make_lispy_movement, syms_of_keyboard): Uses
6999 * keyboard.h (Qvertical_split): Extern declaration changed here.
7000 * window.c (Fcoordinates_in_window_p): Changed this to return
7001 `vertical-line' at the appropriate times, rather than
7004 * window.c (Fcoordinates_in_window_p): Put symbol names in
7005 opposing single quotes - `vertical-split', for example.
7007 * fileio.c (Fexpand_file_name): Don't signal an error if USERNAME
7008 in a "~USERNAME/..." filename isn't a real user; just leave the
7009 "~USERNAME" unchanged.
7011 * fileio.c (Fmake_symbolic_link): Rename argument `NEWNAME' to
7012 `LINKNAME', to conform with the docstring.
7014 * Makefile.in (CPP): Pass `-Is -Im' to CPP, to make sure that
7015 machine- and system-dependent files can include each other
7017 * ymakefile (CFLAGS): Add those directories to the #include path
7020 * Makefile.in (xmakefile): Build this via a temporary file, so
7021 that if preprocessing fails we don't nuke the xmakefile.
7023 * fileio.c: There are two versions of Fexpand_file_name defined
7024 here; the latter is inside a `#if 0' clause. Change its DEFUN to
7025 a DEAFUN, so that its docstring doesn't make it into the DOC file
7026 and supersede the real docstring.
7028 * callint.c (Fcall_interactively): For the 'K' interactive spec,
7029 set varies[i] to -1, indicating that the mouse click should be
7030 quoted if the function makes it into the command history, and that
7031 this argument by itself does not qualify the command to be
7032 recorded in the history.
7034 1992-06-26 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7036 * data.c (Frem): The drem function will sometimes return a
7037 negative number. If it does, add the divisor to it, to make it
7040 * screen.c: Put '#ifdef MULTI_SCREEN' after the inclusion of
7043 * window.c (Fpos_visible_in_window_p): Remember to apply XSCREEN
7044 to w->screen before applying SCREEN_WIDTH.
7046 * screen.h [not MULTI_SCREEN] (last_nonminibuf_screen): Removed
7047 #definition of this; it's confusing when debugging.
7048 * screen.c (last_nonminibuf_screen): Variable moved from here...
7049 * dispnew.c (last_nonminibuf_screen): to here, beside
7050 selected_screen. They should both exist, even if the multi-screen
7051 support is not present.
7053 * dispnew.c [not MULTI_SCREEN] (the_only_screen): New variable.
7054 Instead of having the non-multi-screen version of Emacs refer to
7055 lots of different variables scattered hither and yon, we'll just
7056 declare this new variable, of type `struct screen', and define the
7057 single-screen versions of the `SCREEN_foo' macros to reference its
7058 elements. This avoids conflicts between names of local variables
7059 and names of global variables describing the screen, and simplifies
7060 some of the differences between the multi-screen and single-screen
7062 * screen.h (enum output_method, struct screen): Removed these from
7063 the `#ifdef MULTI_SCREEN' conditional.
7064 * screen.h [not MULTI_SCREEN] (the_only_screen): extern
7065 declaration for it here.
7066 [not MULTI_SCREEN] (SCREEN_CURRENT_GLYPHS, SCREEN_DESIRED_GLYPHS)
7067 (SCREEN_TEMP_GLYPHS, SCREEN_HEIGHT, SCREEN_WIDTH)
7068 (SCREEN_NEW_HEIGHT, SCREEN_NEW_WIDTH, SCREEN_CURSOR_X)
7069 (SCREEN_CURSOR_Y, SCREEN_ROOT_WINDOW, SCREEN_INSERT_COST)
7070 (SCREEN_DELETE_COST, SCREEN_INSERTN_COST, SCREEN_DELETEN_COST)
7071 (SCREEN_MESSAGE_BUF, SCREEN_SCROLL_BOTTOM_VPOS): Macros changed to
7072 refer to the_only_screen.
7073 * dispnew.c [not MULTI_SCREEN] (one_screen_cursX)
7074 (one_screen_cursY, one_screen_current_glyphs)
7075 (one_screen_desired_glyphs, one_screen_temp_glyphs)
7076 (delayed_screen_width, delayed_screen_height): Variables
7077 deleted; they're all now kept in the_only_screen.
7078 * xdisp.c [not MULTI_SCREEN] (message_buf): Variable deleted; same
7080 * term.c [not MULTI_SCREEN] (one_screen_width, one_screen_height):
7081 Variables deleted; same fate.
7082 * screen.h [not MULTI_SCREEN]: Extern declarations for the above
7084 * window.c [not MULTI_SCREEN] (root_window): Variable deleted.
7085 [not MULTI_SCREEN] (init_window_once): Use SCREEN_ROOT_WINDOW to
7086 refer to the root window, instead of referring to it directly.
7087 * window.h [not MULTI_SCREEN] (root_window): Extern declaration
7089 * scroll.c [not MULTI_SCREEN] (insert_line_cost, delete_line_cost,
7090 insert_n_lines_cost, delete_n_lines_cost): Variables deleted; same
7093 * dispnew.c [not MULTI_SCREEN] (cursX, cursY): Renamed to
7094 `one_screen_cursX' and `one_screen_cursY'.
7095 * screen.h [not MULTI_SCREEN] (cursX, cursY, SCREEN_CURSOR_X)
7096 (SCREEN_CURSOR_Y): Extern declarations and macros changed
7099 * term.c [not MULTI_SCREEN] (screen_width, screen_height): Renamed
7100 to `one_screen_width' and `one_screen_height', so as not to
7101 conflict with local variables when referenced by the `SCREEN_foo'
7103 * screen.h [not MULTI_SCREEN] (screen_width, screen_height):
7104 Extern declarations changed accordingly.
7105 * termchar.h (screen_width, screen_height): Extern declarations
7106 deleted. Everyone should go through the `SCREEN_foo' macros.
7107 (SCREEN_WIDTH, SCREEN_HEIGHT): Changed accordingly.
7109 1992-06-25 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7111 * callint.c (Fcall_interactively): When making a copy of the spec
7112 string, cast the return value of `alloca' to `unsigned char *',
7113 not `char *', to match the type of `string'.
7115 * xselect.c (Fx_own_selection): Cast XSTRING (string)->data to a
7116 char *, so it can be comfortably passed to XStoreBytes.
7118 * filelock.c (strcpy): Declare this to return char *.
7120 1992-06-24 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7122 * dispnew.c (current_glyphs, desired_glyphs, temp_glyphs): Renamed
7123 to have the prefix `one_screen_', so that the screen macros can
7124 refer to them without conflicting with local variables.
7125 * screen.h [not MULTI_SCREEN] (SCREEN_CURRENT_GLYPHS,
7126 SCREEN_DESIRED_GLYPHS, SCREEN_TEMP_GLYPHS): Changed accordingly.
7128 * keyboard.c (read_key_sequence): Put the code which restarts the
7129 key sequence in a `#ifdef MULTI_SCREEN' conditional.
7131 * screen.h [not MULTI_SCREEN]: Added definitions for
7132 CHECK_LIVE_SCREEN and SCREEN_FOCUS_SCREEN for the non-multi-screen
7135 * screen.h [not MULTI_SCREEN]: The name is
7136 `SCREEN_MINIBUF_ONLY_P', not `SCREEN_IS_MINIBUF_ONLY'.
7138 * xdisp.c [not MULTI_SCREEN] (Fredraw_display): Removed definition
7139 here; the non-multi-screen version is already defined in
7140 dispnew.c, alongside the multi-screen version.
7141 (syms_of_xdisp): Don't try to defsubr Sredraw_display; it doesn't
7144 * lread.c (Fread_char_exclusive): Remove this from the `#ifdef
7145 HAVE_X_WINDOWS' conditional; it is appropriate in any context.
7147 * eval.c (Fsignal): Put call to TOTALLY_UNBLOCK_INPUT under the
7148 protection of a `#ifdef HAVE_X_WINDOWS' conditional.
7150 * keyboard.c (kbd_buffer_get_event): Expect *mouse_position_hook
7151 to return the timestamp as an unsigned long, not a lisp_Object.
7152 This matches the change made to `struct input_event'.
7153 (make_lispy_movement): Change argument TIME to an unsigned long.
7154 * xterm.c (XTmouse_position): Change TIME argument to a pointer to
7156 * termhooks.h (mouse_position_hook): Doc fix.
7157 * term.c (mouse_position_hook): Doc fix.
7159 * termhooks.h (struct input_event): If MULTI_SCREEN is defined,
7160 declare the .screen element to be `struct screen *'; otherwise,
7161 declare it to be `int'. See the comment in the file for why I've
7162 done this obviously wrong thing.
7164 * print.c (printbufidx): Doc fix.
7165 * xdisp.c (message_buf_print): Doc fix.
7167 * dispextern.h (message_buf_size): Variable deleted; it's no
7168 longer used, since the message buffer is always the width of the
7171 * screen.h [not MULTI_SCREEN] (message_buf): Add extern
7172 declaration for it here.
7173 (message_buf_print): Added extern declarations here for both the
7174 MULTI_SCREEN and non-MULTI_SCREEN cases.
7175 * dispextern.h (message_buf, message_buf_print): Deleted extern
7176 declaration for these here. It should never be used directly; it
7177 should always be used through the SCREEN_MESSAGE_BUF macro.
7179 * dispnew.c (temp_glyphs): Added back this variable declaration;
7180 screen.h and various other places referred to this; where did it
7182 * screen.h [not MULTI_SCREEN] (temp_glyphs, desired_glyphs,
7183 current_glyphs): Add extern declarations for these.
7185 * dispnew.c (cancel_my_columns): Use SCREEN_DESIRED_GLYPHS macro,
7186 instead of assuming that a SCREEN_PTR is actually a pointer to
7187 something; it isn't if we're not using any of the screen support.
7188 Remove the variable `screen', and find the value for
7189 `desired_glyphs' directly.
7190 * xdisp.c (echo_area_display): Use the SCREEN_DESIRED_GLYPHS macro
7191 to find screen's desired cursor position, instead of assuming that
7192 a SCREEN_PTR is a pointer to something.
7193 (display_mode_line): Same.
7194 * window.c (Fpos_visible_in_window_p): Use the SCREEN_WIDTH macro.
7195 (replace_window): Use the SCREEN_ROOT_WINDOW macro.
7196 (window_loop): Use the SCREEN_WIDTH macro.
7198 * dispnew.c (update_screen): Enclose the statement which
7199 increments `downto' in a `#ifdef HAVE_X_WINDOWS' conditional.
7201 * screen.h [MULTI_SCREEN and not MULTI_SCREEN] (FOR_EACH_SCREEN):
7203 * dispnew.c (window_change_signal, do_pending_window_change): Use
7204 FOR_EACH_SCREEN instead of assuming that Vscreen_list exists.
7205 * window.h (root_window): Added extern declaration for this.
7207 * screen.c: Enclose the entire file in a #ifdef MULTI_SCREEN
7210 1992-06-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7212 * window.c (Fset_window_dedicated_p):
7213 Replaces Fset_window_buffer_dedicated. Second arg just t or nil.
7215 1992-06-22 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7217 * syntax.h (SYNTAX, SYNTAX_MATCH, SYNTAX_COMSTART_FIRST, etc.):
7218 Cast character to unsigned char before indexing.
7220 1992-06-19 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7222 * xterm.c (x_wm_set_size_hint): Set size_hints.flags to indicate
7223 that we are providing the base_width and base_height data.
7225 * xfns.c (Fx_create_screen): Default the internal border width to
7226 2; this matches XTerm.
7228 * syntax.c (Fparse_partial_sexp): Doc fix.
7230 * syntax.c (Fparse_partial_sexp): Added phony argument list to
7231 comment containing the docstring for this function, so that
7232 make-docfile.c will get the right arguments.
7234 * xfns.c (x_set_name): Don't go through the X11 brouhaha to set
7235 the name unless we're actually setting it to something different
7236 from the current name.
7238 1992-06-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7240 * eval.c (syms_of_eval): Don't forget to escape the ends of the
7241 lines in the docstring for `debug-on-quit'.
7243 * keyboard.c (Fread_key_sequence): Reversed sense of CONTINUE_ECHO
7244 argument - set this_command_key_count to zero iff CONTINUE_ECHO is
7245 Qnil, not iff it's non-Qnil.
7247 1992-06-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7249 * search.c: Changed to remember the object in which the last
7250 search was done, so that markers from match data are placed in
7251 that buffer, instead of the current buffer.
7252 (search_regs_from_string): Replaced with...
7253 (last_thing_searched): This is either Qnil, meaning no searching
7254 has been done, Qt, meaning that the last search was done in a
7255 string, or a buffer object, meaning that the last search was done
7257 (syms_of_search): Initialize and staticpro last_thing_searched.
7258 (Flooking_at, search_buffer): Set last_thing_searched to the
7260 (Fstring_match): Set last_thing_searched to Qt.
7261 (Fmatch_data): Test last_thing_searched to see if any searching
7262 has been done, and construct integers or markers in the right
7263 buffer. Abort if it's not Qt, Qnil, or a buffer.
7264 (Fstore_match_data): Set last_thing_searched according to the
7265 things we find in LIST.
7267 1992-06-16 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7269 * fns.c (Fload_average): Document the fact that this sometimes
7270 returns a list of fewer than three elements, on systems which
7271 don't provide 5- and 15-minute load averages.
7273 1992-06-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7275 * xterm.c (XTread_socket): If an event arrives to a screen S,
7276 don't attribute them to SCREEN_FOCUS_SCREEN (S) here. Do that
7277 synchronously, when the events are dequeued. This keeps events
7278 from being accidentally routed to the wrong screen, if we
7279 temporarily redirect a screen's focus.
7280 * keyboard.c (kbd_buffer_store_event): If the character being
7281 stuffed is a quit character, do the SCREEN_FOCUS_SCREEN
7282 redirection to it here.
7283 (kbd_buffer_get_event): And do it here, before returning the
7286 * eval.c (Finteractive_p): This assumed that if the function in
7287 the top frame of the lisp backtrace was not a Lisp_Compiled
7288 object, then Finteractive_p must have an explicit frame on the top
7289 of the stack, which we could skip. It didn't bother to follow the
7290 symbol function chaining, and it would break if any C code called
7291 from a non-compiled function tried to call Finteractive_p anyway.
7292 Changed this to actually check if the top frame's effective
7293 function is the Lisp_Subr for Finteractive_p. This also used to
7294 skip any number of frames for special forms and/or Fbytecode
7295 calls. Changed this to skip an Fbytecode frame (if present),
7296 followed by any number of special form frames.
7298 1992-06-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7300 * eval.c (struct backtrace): Doc fix.
7302 1992-06-12 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7304 * m/hp300bsd.h (LOAD_AVE_TYPE): This is long, not double.
7305 (LOAD_AVE_CVT): Adjusted as appropriate.
7307 * fns.c: Moved lots of system-dependent preprocessor cruft
7308 dealing with getting the load average to `getloadavg.c'.
7309 (Fload_average): Guts moved to `getloadavg.c'.
7310 * getloadavg.c: New file, containing the necessary mess to get the
7311 load average on many different systems. This file is supposed to
7312 be Emacs-independent.
7313 * ymakefile (obj): Add getloadavg.o to the list.
7314 (getloadavg.o): Note that this depends on its source, and config.h.
7316 * screen.c (Fdelete_screen): Typo in loop looking for new
7317 last_nonminibuf_screen - change `screen = XCONS (screens)->cdr`
7318 to `screens = XCONS (screens)->cdr`
7320 * xdisp.c (echo_area_display): Don't neglect to draw all the lines
7321 of the minibuffer window (or echo area) when a message is being
7322 displayed. If the minibuffer is more than one line high, they
7323 should all be blanked.
7325 1992-06-10 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7327 * sysdep.c [POSIX_SIGNALS] (sys_signal): Fix typo - rather than
7328 calling new_action as if it were a function, call sigaction.
7330 1992-06-09 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7332 * lisp.h (Qnumberp, Qnumber_or_marker_p): Declared.
7334 * eval.c (wants_debugger): Changed NULL to NILP.
7335 Who installed these calls to NULL?
7337 1992-06-09 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7339 * dispnew.c (Fsit_for): Don't forget to actually set sec from ARG.
7341 * termhooks.h (struct input_event): Doc fix - for mouse clicks, .x
7342 and .y give the position in characters, not in pixels.
7344 * keyboard.c (format_modifiers): Order the modifier letters
7345 alphabetically - control, meta, shift, and up.
7347 1992-06-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7349 * xfns.c: Move some extern decls out of #if 0, to top of file.
7351 1992-06-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7353 * window.c (Fcoordinates_in_window_p): Docstring fix.
7355 * buffer.c (Fother_buffer): Put a comma between arguments BUFFER
7356 and VISIBLE_OK in the argument list. Duh.
7358 * screen.c (Fdelete_screen): Remember that s is a SCREEN_PTR *,
7361 * search.c (search_regs): Doc fix.
7362 (compile_pattern): Take a new argument - the search register
7363 structure - so we can reassure the regex routines that the
7364 registers have been allocated.
7365 (Flooking_at, Fstring_match, search_buffer): Changed to pass
7366 &search_regs to compile_pattern.
7367 (search_buffer): When we've searched for a literal string and
7368 found it, make sure that the search registers are allocated before
7369 stuffing the location of the search into them.
7370 (Fstore_match_data): If we need to allocate more registers,
7371 allocate them using re_set_registers, instead of just storing the
7372 new registers and hoping that regex doesn't free them.
7374 * search.c (Freplace_match): Doc fix.
7376 1992-06-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7378 * screen.c (Fdeiconify_screen): Function deleted.
7379 It was the same as make-screen-visible.
7381 1992-06-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7383 * keyboard.c: Doc fix.
7385 * floatfns.c (Fcbrt): Renamed from Fcube_root, and #if 0'd.
7387 * lisp.h (CHECK_NUMBER_OR_FLOAT*): Use Qnumberp or Qnumber_or_marker_p.
7388 * data.c (syms_of_data): Staticpro those.
7389 (Qinteger_or_float_p, Qinteger_or_float_or_marker_p): Deleted.
7390 (Fnumberp, Fnumber_or_marker_p): Define these always,
7391 but make them work even if not LISP_FLOAT_TYPE.
7393 1992-06-05 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
7395 * config.h.in: Undefine REL_ALLOC if a system specific file
7396 defines SYSTEM_MALLOC.
7398 * sysdep.c (save_signal_handlers): Cast result of signal to
7399 avoid compiler warning.
7400 * process.c (send_process): Likewise.
7402 1992-06-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7404 * keyboard.c (Fread_key_sequence): New 2nd arg CONTINUE_ECHO
7405 added for the sake of universal-argument.
7407 1992-06-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7409 * editfns.c (Fset_default_file_mode): Function deleted.
7410 (Funix_sync): Moved.
7411 * fileio.c (Funix_sync): Moved to here.
7413 * xfns.c (Fx_erase_rectangle, Fx_draw_rectangle, Fx_contour_region)
7414 (Fx_uncontour_region): #if 0 these.
7415 (x_rectangle, outline_region): Likewise.
7416 (syms_of_xfns): #if 0 the defsubrs.
7418 * dispnew.c (Fsleep_for, Fsit_for): Clean up error messages.
7420 * eval.c, print.c, keyboard.c: Doc fix.
7422 * xfns.c (Fx_horizontal_line): Disabled, since not documented.
7424 * fileio.c (Fdelete_directory): Renamed from Fremove_directory.
7426 * unexencap.c: Deinstalled (renamed to =unexencap.c)
7427 since awaited papers never arrived.
7431 1992-06-04 Roland McGrath (roland@geech.gnu.ai.mit.edu)
7433 * eval.c (stack_trace_on_error, debug_on_error): Made Lisp_Objects V*.
7434 (syms_of_eval): Changed DEFVAR_BOOLs to DEFVAR_LISPs.
7435 (wants_debugger): New fn.
7436 (find_handler_clause): Use it to look in debug-on-error and
7437 stack-trace-on-error lists.
7439 1992-06-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7441 * floatfns.c (Fbessel_*, Ferf, Ferfc, Flog_gamma): Turned off;
7442 not clearly worth including.
7443 (Fasinh, Facosh, Fatanh, Fsinh, Fcosh, Ftanh): Likewise.
7445 1992-06-03 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7447 * minibuf.c, keyboard.c: Doc fix.
7449 * window.c (Fwindow_at): Fix number of args--minimum 2, max 3.
7451 * screen.c: Doc fix.
7453 1992-06-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7455 * lread.c (Feval_buffer): Don't read any arguments, if interactive.
7457 1992-06-02 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7459 * screen.c (make_screen_without_minibuffer): Apply XSCREEN to
7460 Vdefault_minibuffer_screen before calling SCREEN_LIVE_P. The
7461 argument to SCREEN_LIVE_P must be a SCREEN_PTR, not a Lisp_Object.
7463 * dispnew.c (Fsit_for): This used to compare arg with 0 and return
7464 Qt immediately. It should actually call sit_for anyway, because
7465 sit_for needs to test for input and do the redisplay.
7466 (sit_for): Compare sec and usec with zero here, after we've
7467 looked for input and done a redisplay.
7469 * lread.c (Feval_buffer): Use NILP, not NIL_P.
7471 1992-06-01 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
7473 * buffer.h: New macro, BUF_SET_PT.
7475 * lread.c: New subr `eval-buffer', replaces `eval-current-buffer',
7476 which is now defined in simple.el.
7478 1992-05-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7480 * screen.c (Fdelete_screen): If we're deleting the default
7481 minibuffer screen, try to find another minibuffer screen.
7483 1992-05-29 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7485 * buffer.c (Fother_buffer): New optional argument VISIBLE_OK,
7486 indicating that buffers currently visible in windows should not be
7487 discriminated against.
7489 1992-05-28 Ken Raeburn (raeburn@cygnus.com)
7491 * screen.c (Fdelete_screen): Fix bugs in walking screen list.
7492 (make_screen_without_minibuffer): Signal an error if the default
7493 minibuffer screen is dead.
7495 * xfns.c (x_set_name): Use ICCCM-conforming scheme for changing
7497 (Fx_create_screen): Likewise.
7499 1992-05-27 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7501 * xselect.c: Support getting and setting the obsolete X cut
7503 (Qcut_buffer0): New atom, denoting the X cut buffer 0.
7504 (syms_of_xselect): Initialize and staticpro it.
7505 (Fx_own_selection): If TYPE is Qcut_buffer0, interpret this to
7506 mean that we should set cut buffer 0 to STRING.
7507 (Fx_selection_value): If TYPE is Qcut_buffer0, interpret this to
7508 mean that we should retrieve the value of cut buffer 0.
7510 1992-05-21 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7512 * xterm.c (construct_mouse_click): Removed extra assignment of
7515 * keyboard.c (last_event_timestamp): Doc fix.
7516 * xselect.c (last_event_timestamp): Declare it extern here.
7517 (mouse_timestamp): Variable deleted. last_event_timestamp is a
7518 more accurate thing to use here.
7519 (own_selection, get_selection_value): Use last_event_timestamp
7520 instead of mouse_timestamp.
7521 * keyboard.c (make_lispy_event): Pass the event's timestamp
7522 through the make_number function, to assure that it is properly
7523 tagged before incorporating it into the lispy event.
7524 * xterm.c (construct_mouse_click): The timestamp element of a
7525 struct input_event is no longer a Lisp_Object; it is now an
7526 unsigned long. So don't use XSET to assign to it.
7527 (XTread_socket): Same here, in processing KeyPress events.
7529 * keyboard.c (Fexecute_extended_command): Properly initialize
7530 this_command_keys to the concatenation of the sequence that
7531 invoked Fexecute_extended_command, the characters making up the
7532 name of the command we're running, and a return character.
7533 Previously, this code would set it to the last key typed while
7534 reading the function name from the minibuffer, followed by the
7535 name of the function being run.
7537 1992-05-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7539 * xterm.c (x_display_box_cursor): Draw the cursor at curs_{x,y},
7540 rather than at s->cursor_{x,y}. If cursor_in_echo_area is set,
7541 then s->cursor_{x,y} does not accurately describe the position of
7542 the cursor. However, if we're not updating, then curs_{x,y} are
7543 garbage; set them from s->cursor_{x,y}.
7545 * dispnew.c (update_screen): Check current_screen->enable and
7546 current_screen_used to see if there is any text on the last line,
7547 not desired_screen->{enable,used}. When the line isn't enabled,
7548 move to line SCREEN_HEIGHT (s) - 1, not SCREEN_HEIGHT (s).
7549 Rearranged conditionals.
7551 * dispnew.c (cursor_in_echo_area): Document the interpretations of
7552 positive and negative values of this variable.
7554 1992-05-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7556 * dispnew.c (Fding): If have arg, don't end a keyboard macro.
7558 1992-05-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7560 * dispnew.c (sit_for): New function, which is a slight
7561 generalization of Fsit_for; you can tell it that it's waiting for
7562 input, so C-g gets handled properly.
7563 (Fsit_for): Call it, instead of replicating all its guts.
7564 * keyboard.c (read_char): Call sit_for instead of Fsit_for, and
7565 indicate that we're awaiting keyboard input.
7567 * dispnew.c (Fsit_for): Rename arguments to match docstring. Use
7568 NILP instead of EQ (foo, Qnil). If nodisp is non-nil, call
7569 wait_reading_process_input with do_display 0, instead of 1; this
7570 will inhibit spurious redisplays when process input arrives during
7573 * process.c (Faccept_process_output): Pass zero as read_kbd
7574 argument to wait_reading_process_input when PROC is nil, not when
7577 * process.c (wait_reading_process_input): Declare read_kbd to be a
7578 Lisp_Object, and use the tagging to tell the difference between a
7579 process object and an integer.
7580 * dispnew.c (Fsleep_for, Fsit_for, Fsleep_for_millisecs): Pass
7581 read_kbd argument to wait_reading_process_input as a Lisp_Object.
7582 * keyboard.c (kbd_buffer_get_event): Same.
7583 * process.c (Faccept_process_output, send_process): Same.
7585 * keyboard.c (read_char): Use save_getcjmp and restore_getcjmp
7586 instead of doing the bcopy explicitly.
7588 * xterm.c (XTread_socket): When handling an EnterWindow event,
7589 don't bother to check waiting_for_input. It's not necessary.
7591 * keyboard.c (read_char): Don't clear waiting_for_input and
7592 input_available_clear_time here.
7593 (quit_throw_to_read_char): It's already done here.
7595 * keyboard.c (quit_throw_to_read_char): Use
7596 clear_waiting_for_input instead of clearing waiting_for_input
7599 1992-05-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7601 * keyboard.c (read_char): Call clear_waiting_for_input instead of
7602 clearing waiting_for_input and input_available_clear_time
7605 1992-05-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7607 * ymakefile [defined (__GNUC__) and __GNUC__ > 1]: Define
7608 YMF_PASS_LDFLAGS so that it can deal with an empty flags argument.
7610 * callproc.c (Fcall_process): Under VMS, a nil INFILE argument
7611 means to read from "NLA0:", not "/dev/null".
7613 * callproc.c (Fcall_process): Use nil as the value for display
7614 (the fourth argument) when nargs >= 4, not when nargs >= 3.
7616 1992-05-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7618 * termhooks.h: Change timestamp from a Lisp_Object to an unsigned
7620 * keyboard.c (kbd_buffer_store_event): We don't have to apply the
7621 XINT macro to the timestamp member of the event anymore.
7623 * process.c (wait_reading_process_output): Don't turn off polling.
7625 * sysdep.c (setpgrp_of_tty): Pass the address of pid, not pid
7628 * process.c: Deleted cpp tangle for dealing with system-dependent
7629 tty handling; #included "systerm.h".
7630 * systerm.h: Add some of the things that were done in process.c:
7631 If titan is #defined, then we should include <sys/ttyhw.h> and
7632 <sys/stream.h> along with the other SYSV pty stuff.
7633 If HPUX is #defined, then EMACS_HAVE_TTY_PGRP isn't true.
7634 If XENIX is #defined, then we shouldn't try to use TIOCGETC.
7635 * ymakefile: Note that process.o depends on systerm.h now.
7637 1992-05-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7639 * callint.c (Fprefix_numeric_value): Value 1 for symbol other than `-'.
7641 1992-05-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7643 * cmds.c (Fforward_line): If the buffer is empty, don't try to see
7644 if it contains a newline, and moving nowhere at eob after
7645 non-newline should return 1, not 0.
7647 * search.c (scan_buffer): Doc fix.
7649 * buffer.c (Fbuffer_disable_undo): Accept a buffer name as an
7652 1992-05-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7654 * fileio.c: Include config.h first thing.
7656 * keyboard.c (clear_input_pending): New subroutine.
7657 * process.c (wait_reading_process_input): Make C-g really quit in
7660 * ymakefile (LD_SWITCH_SYSTEM): Don't use -X with GCC.
7662 1992-05-12 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7664 * eval.c (Fapply): Use indirect_function, instead of doing a dumb
7666 * keymap.c (get_keymap_1): Same.
7667 * macros.c (Fexecute_kbd_macro): Same.
7669 * buffer.c (init_buffer_once): Don't disable undos for *scratch*
7670 here. Do it in loadup.el.
7672 * buffer.c (init_buffer_once): Doc fix.
7674 * doc.c (Fdocumentation): After extracting the doc string from a
7675 lambda or autoload expression, don't fall through to the default
7676 case and signal an invalid function error; instead, do a `break'.
7678 * doc.c (Fdocumentation): Use EQ (x, y) instead of XSYMBOL (x) ==
7681 * doc.c (Fdocumentation): When deciphering a function made from
7682 conses, use 'else if' for the chain of alternatives instead of
7683 just 'if'. It used to be that each alternative returned, but
7684 that's not true anymore.
7686 * alloc.c (Fgarbage_collect): Don't call truncate_undo_list on
7687 buffers whose undo list is 't.
7689 * doc.c (Fdocumentation): Renamed argument `fun1' to `function',
7690 so make-docstring will list argument consistently with the
7693 1992-05-11 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
7695 * xterm.h: Removed definition of `RES_CLASS'.
7697 * xfns.c (x_get_arg): Eliminated `screen_name' parameter. No
7698 longer uses screen name as X resource search component.
7699 All calls to x_get_arg changed accordingly.
7700 Global variable `screen_class' and #define `SCREEN_CLASS' removed.
7702 * xterm.c (XTread_socket): Added basic structure for handling
7703 various ClientMessage events, using new global variables
7704 `Xatom_wm_take_focus', `Xatom_wm_save_yourself',
7705 `Xatom_wm_delete_window', `Xatom_wm_configure_denied',
7707 * xfns.c: Declare these variables extern.
7708 (syms_of_xfns): Initialize these variables.
7710 * xselect.c (Fx_own_selection, Fx_selection_value): New optional
7711 parameter `type', to specify the selection type.
7712 (syms_of_xselect): New symbols Qprimary, Qsecondary, Qclipboard
7715 1992-05-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7717 * data.c (Qcyclic_function_indirection): New error condition.
7718 (indirect_function, Findirect_function): New functions.
7719 (syms_of_data): Initialize Qcyclic_function_indirection, put the
7720 error properties on it, and staticpro it. Defsubr
7722 * lisp.h (indirect_function, Findirect_function): Declare them here.
7723 * callint.c (Fcall_interactively): Get symbol's function by
7724 calling indirect_function, instead of just looping.
7725 * doc.c (Fdocumentation): Same.
7726 * eval.c (Finteractive_p, Fcommandp, do_autoload, Feval)
7728 * keyboard.c (Fcommand_execute): Same.
7730 * data.c (Fsymbol_function): Name the argument `symbol' instead of
7731 `sym', so make-docstring will list argument consistently with the
7734 * process.c (wait_reading_process_input): Make sure the screen
7735 isn't garbaged (and therefore not displayed) before we enter the
7736 select and start waiting for input.
7738 * keyboard.c: #include <systime.h>.
7739 * ymakefile (keyboard.o): This depends on systime.h.
7740 * keyboard.c (input_available_clear_word): Replaced with
7741 input_available_clear_time, which is a pointer to an EMACSTIME;
7742 sometimes the time information is larger than a single word.
7743 (read_char): Changed ..._word to ..._time.
7744 (input_available_signal): Use the EMACS_SET_SECS_USECS macro to
7745 clear *input_available_clear_time, instead of zapping a zero into
7746 *input_available_clear_word.
7747 (set_waiting_for_input, clear_waiting_for_input): Adjusted
7750 1992-05-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7752 * editfns.c (make_buffer_string): New function.
7753 * lisp.h (make_buffer_string): Declare it here.
7754 * editfns.c (Fbuffer_substring): Call make_buffer_string instead
7756 (Fbuffer_string): Call make_buffer_string instead of make_string,
7757 so we can deal with buffer relocations.
7758 * minibuf.c (read_minibuf): Same here.
7760 1992-05-09 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7762 * syssignal.h (sigunblock): New macro, taken from 18.58's
7764 * sysdep.c (request_sigio): Use the sigunblock macro to enable
7765 receipt of SIGWINCH, instead of the dysfunctional sigblockx.
7767 1992-05-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7769 * search.c: Doc fix.
7771 1992-05-06 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7773 * emacs.c (decode_env_path): If EVARNAME is zero, don't try to
7775 * lread.c (init_lread): When we don't have an environment variable
7776 to check, pass 0 instead of the empty string.
7778 * alloc.c (Fmake_marker): Use `SIGMASKTYPE' instead of `int'.
7779 Instead of calling sigsetmask twice - once to get the mask, and
7780 again to restore it - call sigblock, specifying no additional
7783 1992-05-05 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7785 * alloc.c: #include <syssignal.h>, for the sake of the
7786 bug-catching code in Fmake_marker.
7787 ymakefile: Add dependency.
7789 * syssignal.h [not POSIX_SIGNALS] (SIGFULLMASK): New definition,
7790 for symmetry with the "defined (POSIX_SIGNALS)" case.
7792 * callproc.c (child_setup): Since we always get the environment
7793 from Vprocess_environment, don't bother to take the environment
7794 the subprocess should inherit as an argument anymore.
7795 * process.c (create_process): Don't pass environment as a
7796 variable. Just preserve it across call to fork.
7798 1992-05-04 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7800 * floatfns.c: #include <syssignal.h>.
7801 (float_error): Use SIGEMPTYMASK instead of zero.
7803 * syssignal.h [POSIX_SIGNALS] (sigmask): Defined to expand to a
7804 statement expression under GCC, or a function call otherwise.
7805 (sigpause, sigblock, sigunblock, sigsetmask): These are now
7806 K&R-compatible macros.
7807 * systerm.h [POSIX_SIGNALS] (sys_sigmask): Here is the function
7808 the POSIX version of sigmask calls when we're not compiling with
7810 * alloc.c (Fmake_marker): Undo changes of Apr 29.
7811 * callproc.c (Fcall_process): Same.
7812 * data.c (arith_error): Same.
7813 * floatfns.c (float_error): Same.
7814 * keyboard.c (gobble_input): Same.
7816 * sysdep.c (request_sigio, unrequest_sigio)
7818 1992-04-29 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7820 * x11term.h (CLASS): Change this from "emacs" to "Emacs"; class
7821 names should always start with an upper-case letter.
7823 * syssignal.h: Arranged cpp conditionals so that the specific
7824 cases come first, generic cases last.
7826 * syssignal.h (sigpause, sigblock, sigunblock, sigsetmask): Macros
7827 removed; they require GCC, and Emacs 19 should compile without GCC.
7828 (EMACS_SIGPAUSE, EMACS_SIGBLOCK, EMACS_SIGUNBLOCK)
7829 (EMACS_SIGSETMASK, EMACS_SIGFREE, EMACS_SIGHOLDX, EMACS_SIGBLOCKX)
7830 (EMACS_SIGUNBLOCKX, EMACS_SIGPAUSEX): These are new macros that
7831 don't require GCC, but expand to statements.
7832 * callproc.c (Fcall_process): Use new EMACS_SIG* macros from
7834 * keyboard.c (gobble_input): Same.
7835 * sysdep.c (request_sigio, unrequest_sigio): Same.
7836 * x11term.h (BLOCK_INPUT, UNBLOCK_INPUT): Same.
7837 * alloc.c (Fmake_marker): Same.
7838 * data.c (arith_error): Same.
7839 * floatfns.c (float_error): Same.
7841 1992-04-28 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7843 * ymakefile: If we're using GCC version 2.0 or later, use "$(CC)
7844 -nostdlib" as the linker. This will allow us to find libgcc.a
7845 even when GCC puts it in a really weird place.
7846 (YMF_PASS_LDFLAGS): New macro.
7849 * s/hpux.h: Doc fix.
7851 * filelock.c (egetenv): Declare this.
7852 (lock_path, SUPERLOCK_NAME, superlock_path): New variables and
7854 (MAKE_LOCK_PATH, lock_file, unlock_file, lock_superlock): Use the
7855 variables lock_path and superlock_path instead of the PATH_LOCK
7856 and PATH_SUPERLOCK macros.
7857 (init_filelock): New function.
7858 * emacs.c (main): Call the init_filelock function.
7859 * paths.h.in (PATH_SUPERLOCK): Removed. This is now calculated
7860 from PATH_LOCK or from the EMACSLOCKDIR environment variable.
7862 * filelock.c (MAKE_LOCK_PATH): New macro.
7863 (lock_file, unlock_file, Ffile_locked_p): Use it.
7865 * syntax.c (Fmodify_syntax_entry): Note that '-' is a synonym for
7866 ' ' (both denote whitespace), that '\\' denotes the escape class,
7867 and that '/' denotes the character-quote class. The description
7868 used to claim that '\\' denoted the character-quote class, and
7869 neglected to mention '-' and '/'.
7871 * filelock.c (lock_file): Doc fix.
7873 1992-04-27 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7875 * callproc.c (init_callproc): Get the default Vexec_path from the
7876 environment variable "EMACSPATH"; get Vdata_directory from
7879 * ymakefile: Fix #endif and #else comments.
7881 1992-04-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7883 * ymakefile (xemacs): Link xemacs to temacs if HAVE_SHM.
7885 * ymakefile (paths.h, config.h): Never copy, always fail.
7887 * process.c (wait_reading_process_input): Redisplay if screen_garbaged.
7888 Call do_pending_window_change first.
7889 Include dispextern.h.
7890 * ymakefile (process.o): Added dependency.
7892 * ymakefile (OLDXMENU_OPTIONS): New macro, used compiling oldxmenu.
7894 1992-04-25 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7896 * ymakefile: Changed all references to LD_CMD to LINKER, for
7897 compatibility with the 18.58 configuration files.
7898 * s/aix3-1.h, s/sunos4shr.h: Same here.
7900 * ymakefile: Doc fixes.
7902 * ymakefile (CC, MAKE): Set these variables from optional macros.
7903 Change all uses of `make' to ${MAKE}.
7905 * ymakefile: Use HAVE_X11 as alias for X11.
7907 * ymakefile (LIB_GCC, GNULIB_VAR): Handle GCC 2.
7909 * process.c (allocate_pty): Re-arranged conditionals to put the
7910 system-specific-case first, and the generic case in the #else
7911 section, for consistency with the rest of Emacs.
7913 * process.c (allocate_pty): Wait until we fail to open three ptys
7914 in a row before concluding that we've reached the end of the ptys.
7916 1992-04-22 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7918 * ralloc.c: #include "getpagesize.h".
7920 * search.c (Flooking_at): Use search_regs.num_regs instead of
7921 RE_NREGS. As of regex version 0.4, the compiler allocates the
7922 registers, and may allocate more than RE_NREGS.
7923 (search_buffer): Same.
7924 (Freplace_match): Use search_regs.num_regs to tell how many
7925 registers are valid. Also note that if none are valid, no search
7927 (match_limit): Same.
7928 (Fmatch_data): Same.
7929 (Fstore_match_data): If we're trying to store more registers than
7930 search_regs has allocated, re-allocate them to make room.
7932 1992-04-21 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7934 * callproc.c (egetenv): Declare the type of VAR.
7936 * lisp.h: Don't undefine NULL. There is no longer any conflict.
7938 * lisp.h (NUMBERP): New macro.
7939 * editfns.c (Fformat): Protect the sections that deal with
7940 Lisp_Float objects with a "#ifdef LISP_FLOAT_TYPE".
7941 * bytecode.c (Fbyte_code): Use the NUMBERP macro instead of
7942 explicitly checking for the Lisp_Float tag.
7943 * callint.c (Fcall_interactively): Same here.
7945 * xrdb.c (magic_searchpath_decoder): Re-allocate string as needed,
7946 rather than making it a fixed-size array.
7948 * xfns.c (Fx_rebind_key): Don't declare modifier_list to be a
7949 register variable. It's too big, and we need the address of its
7950 first element when we pass it to XRebindKeysym anyway.
7952 * fileio.c (Fdo_auto_save): Doc fix.
7954 1992-04-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7956 * search.c (search_buffer): Cast RE_EXACTN_VALUE to char, because
7957 the regex-0.4 distribution says so.
7959 * ymakefile (dired.o): This depends on regex.h.
7961 * process.c (wait_reading_process_input): There is code here which
7962 sends SIGIO to Emacs if we thought we had input available but
7963 didn't get SIGIO. If the system doesn't have SIGIO, then
7966 * print.c (Fexternal_debugging_output): Arguments were declared
7967 ANSI-style - rewritten in K&R 1 fashion.
7969 * floatfns.c (IN_FLOAT): Cast the zero in the `else' clause of the
7970 conditional expression to SIGTYPE, to match the type of the
7971 float_error call in the `then' clause.
7973 * s/hpux8.h: #define HPUX8; this is supposed to be customary
7974 procedure, and fileio.c was expecting it, but somehow it didn't
7977 * sysdep.h: Move inclusions of [AIX] <sys/hft.h>,
7978 <sys/devinfo.h>, <sys/pty.h>, <unistd.h> [NEED_BSDTTY]
7979 <sys/bsdtty.h>, [HPUX and HAVE_PTYS] <sys/ptyio.h>, [SYSV_PTYS]
7980 <sys/tty.h>, <sys/pty.h>, and [pfa] <sys/file.h> to systerm.h;
7981 also move undefinition of LLITOUT under BSD4_1 to systerm.h.
7982 * systerm.h: They're here.
7984 * xterm.c (XTcursor_to, XTclear_end_of_line): Declare to return
7985 int in the function definitions as well as their declarations.
7987 1992-04-19 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7989 * fileio.c (directory_file_name): When checking if the string ends
7990 with '/', check that slen is a valid length *before* examining
7991 dst[slen-1], not after.
7993 1992-04-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7995 * xterm.c (x_death_handler): New function.
7996 (x_error_handler): Call x_death_handler to shut down Emacs.
7997 (x_term_init): Use x_death_handler to handle SIGPIPE, instead of
7998 x_error_handler, which expects to be passed a display and an
8000 * process.c (send_process): This used to set a handler to
8001 catch SIGPIPEs when writing to a subprocess, and then set the
8002 handler to SIGDFL after writing, but this would stomp on the
8003 SIGPIPE handler for the X connection. So restore the previous
8004 handler instead of changing to SIGDFL.
8006 1992-04-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8008 * indent.c (compute_motion): Fix skipping invis lines and
8009 truncation at right margin.
8011 1992-04-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8013 * s/hpux.h (PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Use pty_name,
8017 * process.c (pty_process): Add 'int' to the declaration 'static
8018 pty_processes;'. This makes it a happy declaration even when
8019 static has been #defined as the empty string.
8020 * xterm.c (XTcursor_to, XTclear_end_of_line): Same.
8022 * unexec.c (sbrk): Declare this to return void * if __STDC__ is
8023 defined, or char * otherwise.
8025 * lread.c (init_lread): Re-cleaned logic. To determine whether the
8026 load path was changed before dumping, cons up a dump path and
8027 compare it. This method is more localized and accurate.
8028 (initial_path): Variable removed.
8029 (syms_of_lread): Don't staticpro.
8031 * floatfns.c (float_error): Declare and define this to return
8034 * systime.h [HAVE_TIMEVAL] (EMACS_GET_TIME): Declare dummy to be a
8035 real struct timezone, instead of an EMACS_TIME. Since
8036 HAVE_TIMEVAL is defined, struct timezone ought to be declared, so
8037 there's no harm in passing the genuine article.
8039 * sysdep.c [USG] (rename): Place under the protection of a new
8040 preprocessor symbol, HAVE_RENAME.
8041 * s/hpux.h (HAVE_RENAME): Defined.
8043 * sysdep.c [USG] (setpriority): Declare to return int, not void.
8045 * s/template.h: Add template section for HAVE_TERMIOS.
8047 * term.c (cursor_to, raw_cursor_to, fatal): Do declare the types
8050 1992-04-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8052 * callint.c (Fcall_interactively): When the interactive spec is
8053 a string, it may be relocated while reading the arguments. To
8054 avoid this, make a copy of the spec to refer to, instead of
8055 using a pointer to the data of the spec string.
8057 * callint.c (Fcall_interactively): When following the function
8058 chain of a symbol, check for quits.
8060 1992-04-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8062 * lread.c (init_lread): Make the load path default to
8063 PATH_LOADSEARCH when we're not dumping (null purify-flag), and
8064 PATH_DUMPLOADSEARCH when we are (not (null (purify-flag))).
8065 Change from April 7th incorrectly always used PATH_DUMPLOADSEARCH.
8067 * lread.c (init_lread): Cleaned up logic; to determine whether the
8068 load path was changed before dumping, remember the initial value
8069 and compare against it.
8070 (initial_path): New variable to support this.
8071 (syms_of_lread): staticpro initial_path.
8073 * ymakefile: Renamed filenames like "*-dist" to "*.in".
8075 * config.h.in: Doc fixes.
8077 1992-04-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8079 * config.h-dist: Renamed to config.h.in, for consistency with
8080 the installation conventions of other GNU programs.
8081 * paths.h-dist: Renamed to paths.h.in.
8083 1992-04-11 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
8085 * termcap.c: Declare getenv.
8087 1992-04-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8089 * Makefile: Renamed to Makefile.in; the configure script will edit
8090 this to produce Makefile.
8092 1992-04-07 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8094 * paths.h-dist (PATH_DUMPLOADSEARCH): New macro.
8095 * lread.c (init_lread): If we're building an Emacs to be dumped,
8096 use PATH_DUMPLOADSEARCH as the default load path, so we can
8097 correctly find our lisp files.
8099 * config.h-dist, paths.h-dist: Added "-*- C -*-" to top lines, so
8100 Emacs will know that these are really C source.
8102 1992-04-03 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8104 * search.c (syms_of_search): When allocating memory
8105 searchbuf.buffer, cast the return value of malloc to unsigned char
8106 *, not char *; this changed in the most recent version of the
8109 1992-03-31 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8111 * doc.c (Fdocumentation): Don't forget to end each line of the
8112 docstring with "\n\".
8114 * process.c (Fprocess_connection): Change "#ifdef 0" around this
8115 function to "#if 0".
8117 * eval.c (Flet, FletX): Signal an error if one of the let's binding
8118 clauses has more than one value form, as in (let ((a 1 2)) a).
8120 * eval.c (Ffuncall): Re-install change of March 10; I don't know
8123 * search.c (compile_pattern): Declare the variable which holds the
8124 return value of re_compile_pattern to be const, if this is ANSI C.
8126 * alloc.c (xrealloc): Change "ese" to "else".
8128 * crt0.c (start1) [sun_soft]: Change 'jst' to 'jsr'. The Sun
8129 assembly language manual doesn't list any 'jst' instruction, I
8130 don't know of one personally, and all the analogous code
8131 around it uses 'jsr'.
8133 * crt0.c [m68k]: Merged with GNU C Library's version: added
8134 conditionals for sun_68881, sun_fpa, sun_soft.
8136 * config.h-dist: Adjusted for renaming of share-lib to etc.
8137 * lread.c (read1): Same.
8138 * doc.c (Fdocumentation_property, Fsnarf_documentation): Same.
8141 1992-03-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8143 * crt0.c: Merged changes from 18.58:
8144 [hp9000s300]: Set flag_fpa. Define float_loc.
8145 [new hp assembler]: Double flag_fpa and flag_68881 if %d2!=0.
8146 (start1): Declare to be static at the top of the file.
8147 (_start): Removed static declaration in this function; since
8148 everyone wants it, we'll just put it here.
8150 1992-03-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8152 * fileio.c (Finsert_file_contents): Allow quitting from I/O.
8153 (Fcopy_file): Likewise.
8155 1992-03-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8157 * m-intel386.h (HAVE_ALLOCA): Inhibit if C_ALLOCA.
8158 (LIB_STANDARD): Alternate USG value if __GNUC__ or C_ALLOCA
8160 * alloc.c (xrealloc): If handed a NULL pointer for the block to
8161 resize, malloc a new block and return that. Not all reallocs do
8164 * m/elxsi.h: Doc fix.
8166 1992-03-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8168 * dispnew.c (Fsleep_for): Call wait_reading_process_input, whether
8169 or not we have process support; let the emulator do the work.
8170 * emacs.c (fatal_error_signal, Fkill_emacs): Call
8171 kill_buffer_processes even when subprocesses is not #defined; we
8174 * process.c [not defined (subprocesses)] (Fget_buffer_process,
8175 init_process, syms_of_process): New stub versions of these functions.
8176 * emacs.c (main): Call init_process and syms_of_process whether or
8177 not subprocesses is #defined.
8178 * xdisp.c (decode_mode_spec): Call Fget_buffer_process whether or
8179 not subprocesses is #defined.
8181 1992-03-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8183 * keyboard.c (kbd_buffer_get_event): Call
8184 wait_reading_process_input, even when subprocesses is not
8185 #defined, instead of doing a whole lot of hairy SIGIO-pausing
8187 * dispnew.c (Fsit_for): Call wait_reading_process_input, whether
8188 or not subprocesses is #defined.
8190 * process.c (wait_reading_process_input): Since we're no longer
8191 checking for exceptional conditions in the call to select, all of
8192 the different ways to call select for different systems have
8193 become the same; remove the #if conditionals around this.
8195 * keyboard.c (read_char): When returning quit_char because we got
8196 an interrupt signal, claim that the character came from the
8197 currently selected screen.
8199 1992-03-16 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8201 * callproc.c (Fcall_process): Doc fix.
8203 * process.c [not defined (subprocesses)] (kill_buffer_processes):
8204 New dummy version of this function.
8205 * buffer.c (Fkill_buffer): Removed '#ifdef subprocesses'
8206 protection from the call to kill_buffer_processes; this is safe
8207 whether or not we actually have subprocesses.
8209 1992-03-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8211 * m/pfa50.h: New file.
8212 * process.c (create_process, process_send_signal): Added changes
8217 1992-03-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8219 * callproc.c (child_setup): Always put the child in its own
8222 1992-03-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8224 * mem_limits.h (POINTER): Doc fix.
8226 * ralloc.c: Don't #include lisp.h and xterm.h; we no longer need
8227 to block input in critical sections.
8228 (r_alloc, r_alloc_free, r_re_alloc): Don't use BLOCK_INPUT and
8229 UNBLOCK_INPUT; these are no longer needed.
8230 (struct bp): Doc fix.
8232 1992-03-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8234 * ralloc.c (obtain): When deciding how many pages to request, take
8235 into account the amount of spare bytes at the end of the current
8236 page; let get be ROUNDUP (size - already_available), instead of
8238 (relinquish): Re-organized for clarity.
8240 * editfns.c (Fcurrent_time): Updated to return the current time's
8241 seconds split into two 16-bit integers (similar to the system used
8242 by file-attributes), and the milliseconds.
8244 1992-03-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8246 * process.c (Faccept_process_output): Add new optional argument
8247 TIMEOUT-MSECS, and return non-nil iff we actually got some input
8248 from the process(es).
8249 (wait_reading_process_input): Make return value indicate whether
8250 we got some input from the specified process, when read_kbd is a
8251 process, or from any process when read_kbd isn't particular.
8253 * indent.c (Fmove_to_column): Pass the correct number of arguments
8256 * eval.c (Ffuncall): If a subr is asking for too many arguments,
8257 abort instead of printing an error message; this is an internal
8258 flaw in Emacs, and the subr cannot be called.
8260 1992-03-06 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8262 * doc.c (Fdocumentation, Fdocumentation_property): Take optional
8263 new arg to not pass results thru substitute-command-keys.
8265 1992-03-05 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8267 * unexmips.c (unexec): When setting up the data_section header,
8268 calculate the size of the section as "brk - data_start," not "brk
8271 1992-02-23 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8273 * fileio.c: #include "systime.h".
8274 (Fcopy_file): Use the systime.h macros to copy the time to the new
8276 * ymakefile: Note that fileio.o depends on systime.h.
8278 * ymakefile (dispnew.o): Note that this depends on systerm.h and
8280 (editfns.o, xterm.o, sysdep.o): Note that this depends on
8282 (emacs.o, keyboard.o, process.o, sysdep.o): Note that these depend
8285 * systerm.h: Expanded to handle getting and setting terminal
8287 (struct emacs_tty): New structure, which consolidates all of the
8288 old tty parameter structures.
8289 (EMACS_GET_TTY, EMACS_SET_TTY, EMACS_TTY_TABS_OK): New macros.
8290 * sysdep.c (TABS_OK): Definitions of this macro removed;
8291 EMACS_TTY_TABS_OK replaces it.
8292 (TERMINAL): Definitions removed; now we use struct emacs_tty.
8293 [VMS] (input_chan): Renamed to...
8294 (input_fd): and defined even when VMS isn't; in that case, we
8295 leave it initialized to zero, which is the input tty. This allows
8296 us to use the EMACS_GET_TTY and EMACS_SET_TTY for both VMS and
8298 (discard_tty_input): Use struct emacs_tty and its macros instead
8299 of TERMINAL. Replace some of conditional with a call to
8301 (child_setup_tty): Use struct emacs_tty and its macros instead of
8302 TERMINAL and conditionals.
8303 (old_gtty, old_ltchars, old_tchars, old_lmode): Replaced by...
8304 (old_tty): New variable.
8305 (lmode): Made conditional on BSD4_1, since it's only used by the
8306 BSD4_1 support code now.
8307 (init_sys_modes): Define tty to be a struct emacs_tty, not a
8308 TERMINAL. Use macros to get and set parameters for VMS and
8309 Unices. Set lmode, tchars, and ltchars along with the rest of the
8311 (tabs_safe_p): Use EMACS_GET_TTY and EMACS_TTY_TABS_OK instead of
8313 (reset_sys_modes): Use EMACS_SET_TTY to restore the settings from
8314 old_tty, instead of using hairy conditionals.
8316 * sysdep.c (get_screen_size): Neatened; now each system of
8317 reporting the screen size is separated from the rest.
8319 * systerm.h (EMACS_HAVE_TTY_PGRP, EMACS_GET_TTY_PGRP,
8320 EMACS_GET_TTY_PGRP): New macros to handle setting a tty's current
8322 * sysdep.c (setpgrp_of_tty): Use the above, instead of
8325 * sysdep.c: #include "systerm.h".
8326 #ifs that choose #include files moved from here...
8327 * systerm.h: to here.
8329 * sysdep.c [APOLLO]: We now undefine TIOCSTART not here but...
8332 * sysdep.c [BROKEN_TIOCGETC]: We now undefine TIOCGETC not here but...
8335 * sysdep.c [BROKEN_FIONREAD]: We now undefine FIONREAD and FASYNC
8339 * process.c (process_send_signal): Steal 18.58's version of this,
8340 but incorporate the support for VMS signals.
8342 * syssignal.h (EMACS_KILLPG): New macro.
8343 * process.c (process_send_signal): Use it.
8344 * sysdep.c (sys_suspend): Use it.
8346 * syssignal.h (SIGCHLD): If we have SIGCLD and not SIGCHLD, define
8347 SIGCHLD as an alias for SIGCLD.
8348 * sysdep.c: Remove code for above.
8350 * sysdep.c (init_baud_rate): Rather than trying to maintain the
8351 illusion of an abstraction with the OSPEED and SETOSPEED macros,
8352 just use conditionalized code for each terminal kind. This is the
8353 only place we ever need this functionality.
8354 (OSPEED, SETOSPEED): Definitions removed.
8356 1992-02-22 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8358 * sysdep.c: Moved definition of sigunblock macro to ...
8359 * syssignal.h: Here.
8361 * hftctl.c: #include <sys/uio.h> before #including <sys/tty.h>.
8362 (hfqry, hfskbd): Declare these functions as static before all uses.
8363 * unexaix.c (make_hdr, mark_x, copy_text_and_data, copy_sym):
8364 Declare as static before all uses.
8365 Remove extraneous semicolons from #ifdefs of COFF and XCOFF.
8366 (unrelocate_symbols): Cast the initializers of t_start and d_start
8369 * s/template.h: Include a clause for the HAVE_TERMIO flag.
8371 1992-02-21 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8373 * keyboard.c (read_char): Don't clear Vquit_flag when we catch an
8374 interrupt and return a quit_char; this change (Mar 21 1991) is too
8375 large a change in functionality for the cleanliness it gains.
8377 * pwd.h: Renamed to vms-pwd.h, so that we don't get it by accident
8378 when we #include <pwd.h> with the `-I.' flag given to the
8380 * editfns.c [VMS]: Changed to include vms-pwd.h instead of pwd.h.
8381 * fileio.c [VMS]: Same.
8382 * filelock.c [VMS]: Same.
8383 * sysdep.c [VMS]: Same.
8385 * xrdb.c: Changed to #include "vms-pwd.h" if VMS is defined,
8386 instead of including <pwd.h> unconditionally.
8388 * window.c (Fset_window_display_table): Rearranged to make etags
8391 * xterm.c (XTread_socket): Clear the meta flag from the keypress
8392 event before handing it to XLookupString.
8394 1992-02-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8396 * sysdep.c: No need to test #ifdef TIOCGETP before #undefing it.
8398 1992-02-19 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8400 * systime.h: New file.
8401 * dispnew.c: #include "systime.h" to get <time.h> or <sys/time.h>,
8402 whichever is appropriate, instead of using a conditional.
8403 (Fsleep_for, Fsit_for, Fsleep_for_millisecs): Use the systime.h
8404 macros instead of HAVE_TIMEVAL conditionals.
8405 * editfns.c: #include "systime.h" to get <time.h> or <sys/time.h>,
8406 whichever is appropriate, instead of using a conditional.
8410 (wait_reading_process_input): Use the systime.h macros.
8411 * sysdep.c: #include "systime.h" to get <time.h> or <sys/time.h>,
8412 whichever is appropriate, instead of using a conditional.
8414 * m/template.h: Add description of NO_SOCK_SIGIO.
8416 * sysdep.c (reset_sys_modes): Doc fix.
8418 * keyboard.c (sigfree, sigholdx, sigblockx, sigunblockx)
8419 (sigpausex): Definitions moved to syssignal.h.
8421 * dispnew.c: Doc fix.
8423 * systerm.h: New file, to consolidate the system-dependent
8424 terminal-handling trash.
8425 * emacs.c: #include systerm.h.
8426 (main): Use systerm.h macros instead of conditionals.
8427 * dispnew.c: #include systerm.h.
8428 (update_screen): Use EMACS_OUTQSIZE instead of the direct ioctl.
8429 * keyboard.c: #include systerm.h to get the proper FIONREAD header
8430 files, instead of using conditional.
8432 * syssignal.h: Added copyright notice.
8434 * emacssignal.h: Renamed to syssignal.h, to be like sysdep.c.
8435 * data.c, keyboard.c, process.c, sysdep.c, ymakefile: Changed
8436 #include directives.
8438 1992-02-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8440 * m/intel386.h: Don't bother casting the argument to the signal
8441 function; the SIGTYPE code in config.emacs ought to take care of
8444 * buffer.c (record_buffer): Doc fix.
8446 1992-02-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8448 * s/iris3-6.h: #define HAVE_GETWD.
8450 1992-02-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8452 * window.c (Fwindow_at): Accept position as two arguments, not a
8455 * window.c (scroll_command): Undo the Jan 31 change; do set the
8456 current buffer to the selected window's buffer. A simple
8457 set-buffer will make these two different.
8459 1992-02-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8461 * callproc.c (Fcall_process): Clear synch_process_death and
8462 synch_process_retcode to zero before forking the process.
8464 * process.c (synch_process_death, synch_process_retcode): Don't
8465 declare them extern here.
8466 * process.h (synch_process_death, synch_process_retcode): Declare
8467 them extern here, along with synch_process_alive.
8469 * s/hpux.h: Define CLASH_DETECTION.
8471 * window.c (init_window_once): Don't pass any arguments to
8474 * keyboard.c (command_loop_1): Move the label directly_done out of
8475 the else block to just after the else block. This shouldn't
8476 change the semantics of the code, but appears to avoid a compiler
8477 bug on SCO Unix V.3.2v2.
8479 * fileio.c (Fset_umask, Fumask): New functions.
8480 (syms_of_fileio): defsubr them.
8482 * undo.c (Fprimitive_undo): When undoing a deletion with the point
8483 before the deleted text, use Finsert_before_markers so that the
8484 mark will end up on the other side of the text, if it's in the
8487 * xdisp.c (redisplay): Properly compute TAB_OFFSET for compute_motion.
8489 * keyboard.c (command_loop_1): Don't check whether cursor is at
8490 edge of screen here.
8491 * dispnew.c (direct_output_forward_char): Check here, and return
8492 zero if it can't be done. And compare the cursor position to the
8493 window boundaries, not the screen boundaries.
8495 1992-02-05 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8497 * screen.c (Fscreen_parameters): If the screen has a minibuffer
8498 window on another screen, return the window, instead of nil.
8499 (store_screen_param): If the value of the minibuffer parameter is
8500 a window, try to make it the surrogate minibuffer window.
8501 (Qminibuffer): New variable, to support above change.
8502 (syms_of_screen): Initialize and staticpro it.
8504 * m/tad68k.h: New file.
8506 * fileio.c (Ffile_accessible_directory_p): New function.
8507 (syms_of_fileio): defsubr it.
8508 * callproc.c: #include <errno.h>.
8509 (child_setup): Accept yet another argument, current_dir.
8510 Don't try to report an error here if current_dir is inaccessible;
8511 this function is called in a vforking process. Just have the
8512 process exit with an error code.
8513 (Fcall_process): Make sure that the current directory is okay
8514 here, before we fork. Pass the current_dir argument.
8515 * process.c (create_process): Same here.
8517 * callproc.c (Fcall_process): Don't assign into args[1] when nargs
8518 < 2. Instead, use a new variable called infile. Re-arranged
8519 logic which processes the BUFFER argument.
8521 1992-02-03 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8523 * fileio.c (Fexpand_file_name): Doc fix.
8525 * scroll.c (line_ins_del): Since we're calculating the array from
8526 end to beginning, make the indices go that way, and thus clearly
8527 get the right boundary. This used to ignore the [0] element, and
8528 write in the [screen_height] element, which doesn't exist.
8530 1992-02-03 Richard Stallman (rms@mole.ai.mit.edu)
8532 * xdisp.c (redisplay, try_window_id): Special case for change
8533 at beginning of line, if using selective display.
8535 1992-01-31 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8537 * m/delta88k.h: Added USUAL-OPSYS information, for the
8538 config.emacs script to use.
8540 * window.c (scroll_command): Don't bother setting the current
8541 buffer to the selected window's buffer; this should always already
8542 be the case. Add check just in case.
8544 * indent.c (compute_motion): Don't pack vpos and hpos into one int;
8545 use separate variables hpos/vpos and prev_hpos/prev_vpos.
8546 (vmotion): Use largest int as tovpos arg to compute_motion.
8548 1992-01-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8550 * window.c: #include "keyboard.h" to get the Qmode_line and
8551 Qvertical_split declarations.
8552 * ymakefile (window.o): Note that this depends on keyboard.h.
8554 * callproc.c (getenv_internal): Cast the pointer to the variable's
8555 value to a char *; elisp strings are unsigned char *'s. And
8556 valuelen is an int *, not an int **.
8558 * scroll.c (do_scrolling): Document meaning of enable flag in
8561 1992-01-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8563 * m-orion105.h (C_DEBUG_SWITCH, LIBS_DEBUG): Defs deleted.
8565 1992-01-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8567 * m-iris4d.h (C_SWITCH_MACHINE): New definition.
8569 1992-01-28 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8571 * term.c: #include "keyboard.h", for Vfunction_key_map.
8572 * keyboard.h: Declare Vfunction_key_map.
8574 * keyboard.h: New file, for external declarations used in
8575 processing keyboard input and events.
8576 * lisp.h (Qmode_line, Qvertical_split, num_input_chars)
8577 (poll_suppress_count): Extern declarations moved to keyboard.h.
8578 * keyboard.c: #include "keyboard.h".
8579 (Qvscrollbar_par, Qvslider_part, Qvthumbup_part)
8580 (Qvthumbdown_part, Qhscrollbar_part, Qhslider_part)
8581 (Qhthumbleft_part, Qhthumbright_part): Moved declarations here from
8582 xfns.c, so they're with the other event heading symbols.
8583 * eval.c: #include "keyboard.h".
8584 * ymakefile (callint.o, keyboard.o, keymap.o, xfns.o, eval.o):
8585 Note that these depend on keyboard.h.
8587 * xfns.c: The above symbols aren't here any more. #include
8588 "keyboard.h" to get them.
8589 (syms_of_xfns): Don't initialize or staticpro them.
8590 * keyboard.h: Added extern declarations for the above.
8591 * callint.c: #include "keyboard.h".
8593 * xfns.c (Vmouse_screen_part): Variable removed, no longer used.
8594 (syms_of_xfns): Changed accordingly.
8596 * xterm.c (Qmouse_moved): Variable removed, no longer used.
8597 (Qmouse_click, Qscrollbar_click): Removed. These are now event
8598 types, in keyboard.c and keyboard.h; they're no longer used in
8600 (Vmouse_window, Vmouse_screen_part): Extern declarations removed.
8601 (XTread_socket): Don't assign to Vmouse_window or
8603 (syms_of_xterm): Changed accordingly.
8605 * keyboard.h (EVENT_HAS_PARAMETERS, EVENT_HEAD, EVENT_WINDOW)
8606 (EVENT_BUFFER_POSN, EVENT_SCROLLBAR_BUTTON, EVENT_WINDOW_POSN)
8607 (EVENT_TIMESTAMP, EVENT_HEAD_UNMODIFIED, EVENT_HEAD_KIND): New
8608 macros to recognize and access events that have parameters, like
8610 * keyboard.c (read_char, echo_char, Fmouse_click_p)
8611 (read_key_sequence): Use them.
8612 * keymap.c: #include "keyboard.h".
8613 (access_keymap, store_in_keymap, Fsingle_key_description): Use the
8614 macros from keyboard.h.
8616 * keyboard.c (Qevent_kind): New symbol, naming the property of an event
8617 header where we put the event's type.
8618 (Qfunction_key, Qmouse_click, Qscrollbar_click): New symbols, used
8619 to tag different kinds of events.
8620 (Qevent_unmodified): New symbol, naming the property
8621 of an event header where we put an unmodified version of the event
8623 (modify_event_symbol): Take a new argument, SYMBOL_KIND, whose
8624 value should be put on the Qevent_kind property of each symbol we
8625 make. Set the Qevent_unmodified property of each symbol we make.
8626 (make_lispy_event): Pass the appropriate SYMBOL_KIND argument to
8627 modify_event_symbol.
8628 (struct event_head, head_table): New tables, to simplify the
8629 initialization of some of the event heads.
8630 (syms_of_keyboard): Initialize and staticpro the symbols given in
8631 head_table, and put the Qevent_kind and Qevent_unmodified
8632 properties on them. Initialize all of the new symbols listed
8635 * keyboard.c (lispy_function_keys, lispy_mouse_names): Renamed
8636 these from function_key_names and mouse_names, and moved them
8637 outside of make_lispy_event, since static doesn't work on all
8638 systems, and these can't be automatic.
8640 1992-01-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8642 * fileio.c (Fwrite_region): Remove Alliant conditional.
8643 * crt0.c: Conditionals for ALLIANT_2800.
8644 * m/alliant-2800.h: New file.
8645 * unexfx2800.c: New file.
8647 * m-mips4.h (C_DEBUG_SWITCH): Alternate defn for GCC.
8649 * sysdep.c [VMS] (sys_write): Special case for fixed-length
8650 with carriage-control characters.
8652 * s/isc2-2.h (NOMULTIPLEJOBS): Undef this.
8653 (LIB_STANDARD): Add -lPW.
8654 (LIBS_SYSTEM): Defined.
8655 * m/intel386.h (signal): Optionally don't define it.
8657 1992-01-27 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8659 * s/template.h: Document the SIGTYPE macro.
8660 * s/bsd4-3.h: Define the SIGTYPE macro.
8662 * data.c (Fsymbol_value): Extract all the innards of this function
8663 into find_symbol_value, except the code which signals an error.
8664 (find_symbol_value): New function.
8665 * lisp.h (find_symbol_value): Declare it.
8666 * keymap.c (current_minor_maps): Use it, instead of a call to
8667 Fboundp and Fsymbol_value per every minor map, for every key
8670 * xterm.c (x_make_screen_visible): Don't raise the window. This
8671 causes the window to pop to the front every time a message
8672 appears, which isn't desirable.
8674 * screen.c (Fselect_screen, Fdelete_screen, Fset_mouse_position)
8675 (Fmake_screen_visible, Fmake_screen_invisible, Ficonify_screen)
8676 (Fdeiconify_screen, Fscreen_parameters, Fmodify_screen_parameters)
8677 (Fset_screen_height, Fset_screen_width, Fset_screen_size)
8678 (Fset_screen_position): Use SCREEN_IS_X macro instead of testing
8679 for output_x_window.
8680 * xfns.c (adjust_scrollbars, Fx_store_cut_buffer): Same.
8682 1992-01-25 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8684 * term.c (term_get_fkeys): New function.
8685 (term_init): Call term_get_fkeys.
8687 1992-01-21 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8689 * editfns.c (Ffollchar, Fprevchar): Renamed to Ffollowing_char and
8690 Fprevious_char, for consistency. Renamed Sfollchar and Sprevchar
8692 (syms_of_editfns): Fixed defsubrs.
8693 * lisp.h (Ffollchar, Fprevchar): Renamed extern declarations as above.
8695 * editfns.c (Ffollowing_char): Return 0 at the end of the buffer,
8696 as advertised. Doc fix.
8697 (Fprevious_char): Doc fix.
8699 * config.h-dist: Rearranged to define user parameters before
8700 including the machine and opsystem files, so the files can have
8701 conditionals on the parameters.
8703 1992-01-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8705 * keyboard.c (read_key_sequence): When expanding a function key
8706 recognized with Vfunction_key_map, don't scan the expansion for
8707 further function key sequences.
8709 * keyboard.c (Vfunction_key_map): Real declaration moved to
8710 keymap.c; this declaration made extern.
8711 (syms_of_keyboard): DEFVAR and initialization of Vfunction_key_map
8712 moved to keymap.c, since it should be initialized to a keymap, but
8713 we don't want to rely on Qkeymap being initialized now.
8714 * keymap.c (Vfunction_key_map): Variable moved here.
8715 (syms_of_keymap): DEFVAR and init here.
8717 * keymap.c (Fglobal_key_binding): Doc fix.
8719 1992-01-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8721 * m-delta88.h: New file.
8723 * window.c (window_scroll): New arg `noerror'.
8724 (scroll_command, Fscroll_other_window): Pass that arg.
8726 1992-01-15 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8728 * process.c (sigchld_handler):
8729 Set synch_process_death and synch_process_retcode.
8731 1992-01-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8733 * config.h-dist (SIGTYPE): New macro to help give signal handlers
8735 * s/usg5-3.h (SIGTYPE): Define this to be void.
8736 * dispnew.c (window_change_signal): Declare this to return
8738 * emacs.c (fatal_error_signal): Same.
8739 * data.c (arith_error): Same.
8740 * process.c (create_process_1, send_process_trap,
8741 create_process_sigchld, sigchld_handler): Same.
8742 (create_process): Declare sigchld according to SIGTYPE. This
8743 means we don't have to cast the return value of signal.
8744 * keyboard.c (input_poll_signal, interrupt_signal): Declare these
8746 (kbd_buffer_store_event): Include a forward declaration for
8747 interrupt_signal here.
8748 * sysdep.c (struct save_signal): Say the handler returns SIGTYPE
8750 (save_signal_handlers): So we don't have to cast the return value
8752 (sys_suspend): Declare oldsig according to SIGTYPE.
8753 (select): Declare old_trap using SIGTYPE.
8754 (select_alarm, wait_for_termination_signal): Declare these to
8757 * emacs.c: #include <termios.h>, if we have it.
8758 (fatal_error_signal): If we have termios, use tcgetpgrp to get the
8759 terminal's process group.
8760 * process.c: If we have termios, #include <termios.h> instead of
8762 (process_send_signal): If we have termios, use tcgetpgrp to get
8763 the terminal's process group. Have gid default to the child's
8764 pid, to simplify the logic below.
8765 * sysdep.c (flush_pending_output): If we are using termios, make
8766 this function a no-op; since we're not in the tty's pgroup, we
8767 would get a SIGTTIN.
8769 1992-01-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8771 * config.h-dist: Removed MAINTAIN_ENVIRONMENT clause.
8772 * callproc.c: Removed support for MAINTAIN_ENVIRONMENT.
8773 (init_callproc): Use getenv instead of egetenv to initialize
8775 * emacs.c (decode_env_path): Use getenv instead of egetenv
8776 * lisp.h: Removed support for MAINTAIN_ENVIRONMENT.
8779 * dispnew.c (init_display): Call getenv instead of egetenv.
8781 * editfns.c (Fgetenv): Function moved...
8782 * callproc.c (Fgetenv): To here, and made to scan
8783 Vprocess_environment instead of using the usual C getenv function.
8784 (getenv_internal): New function.
8785 (egetenv): New function.
8786 * lisp.h: Added extern declaration for egetenv.
8787 * editfns.c (syms_of_editfns): Adjusted.
8788 * callproc.c (syms_of_callproc): Adjusted.
8790 * window.h (minibuf_prompt_width): Declare this extern here, after
8792 minibuf.c: Don't extern declare it here.
8795 * dispnew.c (buffer_posn_from_coords): If there is a prompt in the
8796 minibuffer, account for its width when computing the buffer
8799 * Makefile (doall): Explicitly export CC to the xmakefile.
8801 * ymakefile: Use /* */ around comments; # confuses cpp.
8803 * ymakefile: Note that ralloc.o depends on mem_limits.h, xterm.h,
8805 Note that vm-limit.o depends on mem_limits.h.
8807 * lread.c (read_escape): Return \a as '\007', not '\a'; the latter
8808 isn't portable, and this routine would have to be revised anyway
8809 to deal with anything other than ASCII.
8811 * keymap.c (current_minor_maps): Rewritten not to use
8812 function-local static variables, to accommodate DGUX.
8814 * xterm.h (UNBLOCK_INPUT): Replace "abort ()" with "(abort (),
8815 0)", to avoid type conflicts on odd systems like Ultrix.
8817 * xrdb.c: Include <sys/types.h>, and declare getuid to return uid_t.
8819 * xdisp.c (redisplay_window): Use SET_PT macro instead of
8821 insdel.c (insert_from_string): Same.
8823 * xterm.c (XTcursor_to): Declare it static at the function
8824 definition, as well as at the top of the file.
8825 (dumpglyphs): Removed declarations for buf and cp; these variables
8828 * lisp.h (NULL): Renamed to NILP, so as not to conflict with
8829 <stdio.h>, and <stddef.h>. All callers changed; all
8830 #undefinitions of NULL removed.
8832 1992-01-12 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8834 * xdisp.c (message): #ifdef NO_ARG_ARRAY, make a local block to
8835 declare the explicit argument array.
8837 * config.h-dist: Instead of reaching the machine- and
8838 system-dependent files through symlinks, replace the strings
8840 1992-01-09 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8842 * keyboard.c (stuff_buffered_input): Don't forget to increment
8843 kbd_fetch_ptr while looping through kbd_buffer.
8845 1992-01-08 Jim Blandy (jimb@occs.cs.oberlin.edu)
8847 * keyboard.c (read_avail_input): Don't forget to fill in the
8848 screen field in events read from the terminal.
8849 * sysdep.c (kbd_input_ast, read_input_waiting): Call
8850 kbd_buffer_store_event with a `struct input_event *', not a
8851 character or a Lisp_Object.
8853 1991-12-21 Jim Blandy (jimb@occs.cs.oberlin.edu)
8855 * bytecode.c (docall): Don't remove protection from the arguments
8858 1991-12-20 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
8860 * keyboard.c (Vfunction_key_map): New variable.
8861 (read_key_sequence): Changed to recognize and substitute bindings
8862 in Vfunction_key_map at any point in the sequence, unless they
8863 conflict with ordinary bindings.
8864 (syms_of_keyboard): DEFVAR, document, and initialize
8867 1991-12-19 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
8869 * keymap.c (Vminor_mode_map_alist): New variable, to support
8870 keymaps for minor modes.
8871 (current_minor_maps, Fminor_mode_key_binding,
8872 Fcurrent_minor_mode_maps): New functions.
8873 (Fkey_binding): Rewritten to scan for minor mode bindings too.
8874 (syms_of_keymap): DEFVAR, document, and initialize
8875 Vminor_mode_map_alist, and defsubr the new Ffunctions.
8876 (describe_buffer_bindings): Describe the bindings established by
8878 * keyboard.c (follow_key): New function, to support...
8879 (read_key_sequence): Completely rewritten to handle scanning an
8880 arbitrary number of keymaps at a time.
8882 * keyboard.c (Fread_key_sequence): GCPRO keybuf, since it can hold
8883 lisp expressions while waiting for input. Don't pass too many
8884 arguments to read_key_sequence.
8885 (command_loop_1): Don't pass too many arguments to read_key_sequence.
8887 * keyboard.c (add_command_key): New function; there are several
8888 places that add keys to this_command_keys, so we make one function
8890 (read_char, Fexecute_extended_command): Call add_command_key
8891 instead of writing out its code again.
8892 (init_keyboard): Allocate this_command_keys according to
8893 this_command_keys_size.
8895 * lread.c (read1): Change comment to use `share-lib' instead of `etc'.
8896 * doc.c (Fdocumentation_property, Fsnarf_documentation): Update
8897 docstring similarly.
8898 (Fsnarf_documentation): Use "../share-lib/" instead of "../etc/"
8899 to find doc file while dumping.
8900 * unexaix.c: Similar doc fix.
8902 * ymakefile (etcdir): Variable removed.
8903 (libsrc, archlib, sharelib): New variables, to take the place of
8906 1991-12-18 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
8908 * ymakefile (CFLAGS): Don't automatically include C_DEBUG_SWITCH
8909 in the value for CFLAGS; the configuration script will take care
8910 of choosing the debugging and optimization switches.
8912 * config.h-dist: Copy the GLYPH definitions from config.h to here.
8914 1991-12-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8916 * abbrev.c (Fexpand_abbrev): Run pre-abbrev-expand-hook.
8917 (syms_of_abbrev): Define that variable.
8919 1991-12-13 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
8921 * m/m-*.h: Since the m- is now redundant, renamed all files to
8922 remove it, and changed references within files.
8923 * s/s-*.h: Same business.
8925 1991-12-11 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
8927 * config.h-dist (MULTI_SCREEN): Define this automatically when
8928 we're using a window system.
8930 1991-12-09 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
8932 * m/m-*.h (i.e. all machine config files): Added USUAL-OPSYS
8933 comments to tell the configuration script what sort of operating
8934 system this machine typically runs.
8936 * config.h-dist (MScreenWidth, MScreenLength): Deleted; no longer
8939 1991-12-08 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
8941 * editfns.c (Fcurrent_time): New function, to return the current
8942 time as a number, like the Unix time(3) function. This might be
8944 (syms_of_editfns): defsubr it.
8946 1991-12-05 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
8948 * keymap.c (Vminor_mode_map_alist): New variable.
8949 (current_minor_maps): New function.
8950 (Fcurrent_minor_mode_maps): New function.
8951 (syms_of_keymap): DEFVAR, document, and initialize
8952 Vminor_mode_map_alist, and defsubr Fcurrent_minor_mode_maps.
8954 * callproc.c (Vdata_directory): New lisp variable, for the
8955 directory containing architecture-independent data files.
8956 (init_callproc): Initialize Vdata_directory from PATH_DATA, and
8957 make sure it exists. Renamed execdir to tempdir, because we use
8958 it for both Vexec_directory and Vdata_directory.
8959 (syms_of_callproc): Doc fix for Vexec_directory, new DEFVAR_LISP
8960 for Vdata_directory.
8961 * paths.h-dist (PATH_DATA): New path macro, to initialize
8963 * doc.c (get_doc_string): Use Vdata_directory to find the
8964 docstrings, not Vexec_directory.
8965 * lisp.h (Vdata_directory): New extern declaration, for above
8967 * config.h-dist: Changed references to ../etc to ../share-lib.
8969 * callint.c (Fcall_interactively): For the 'k' interactive code,
8970 cast the type of the symbol name before passing it to error.
8972 1991-12-02 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
8974 * keyboard.c (make_lispy_movement): Move call to
8975 mouse_position_hook from here...
8976 (kbd_buffer_get_event): To here, for symmetry with non-movement
8979 * keyboard.c (kbd_buffer_get_event): Set Vlast_event_screen for
8980 mouse movements, too.
8982 1991-11-27 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu)
8984 * alloca.c (alloca): Add parens to make precedence clearer.
8986 1991-11-26 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
8988 * search.c: Need to include sys/types.h because of recent mod to
8991 1991-11-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8993 * bytecode.c: BYTE_CODE_METER and BYTE_CODE_SAFE undefined by default.
8994 (METER_CODE): Define same name whether metering or not.
8995 (BinsertN): New byte code.
8996 (Fbyte_code): Improve overflow/underflow error messages.
8997 (docall): Put back previously lost code to remove protection
9000 1991-11-25 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9002 * lisp.h (make_array): New extern declaration.
9004 * alloc.c (make_sequence): Renamed to make_array; more accurate.
9005 * keyboard.c (Fread_key_sequence, Fthis_command_keys): Callers fixed.
9006 * macros.c (Fend_kbd_macro): Callers fixed.
9008 1991-11-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9010 * keyboard.c (cmd_error): If an error occurs before somebody has
9011 provided a screen to print it on, print it to stderr and exit
9012 Emacs. Handle batch-mode errors with the same code.
9013 * lisp.h (Qexternal_debugging_output): New extern declaration, for
9016 * screen.c (Fscreen_pixel_size, Fset_screen_position): Doc fix.
9018 * window.c (Fwindow_at): Typecheck COORDINATES more thoroughly.
9020 * screen.c (read_mouse_position): Function deleted.
9021 (Fread_mouse_position): Renamed to Fmouse_position, and changed to
9022 use mouse_position_hook.
9023 (syms_of_screen): Adjusted accordingly.
9024 * xfns.c (x_read_mouse_position): Function deleted.
9026 * screen.h (SCREENP): The non-MULTI_SCREEN case used to say this
9027 was false for all objects, but it should be true for the terminal
9028 screen, so make its definition the same as in the MULTI_SCREEN
9031 * screen.h (SCREEN_LIVE_P): New predicate.
9032 (CHECK_LIVE_SCREEN): New type-checking macro.
9033 (Qlive_screen_p): New error-reporting symbol.
9034 * screen.c (Qlive_screen_p): Declare the new symbol.
9035 (Flive_screen_p): New lisp predicate.
9036 (syms_of_screen): Initialize, staticpro, and defsubr the lot.
9037 * dispnew.c (Fredraw_screen): Use CHECK_LIVE_SCREEN.
9038 * screen.c (Fscreen_root_window, Fscreen_selected_window)
9039 (Fnext_screen, Fset_mouse_position, Frestore_screen_configuration)
9040 (Fmake_screen_visible, Fmake_screen_invisible, Ficonify_screen)
9041 (Fdeiconify_screen, Fscreen_visible_p, Fredirect_screen_focus)
9042 (Fscreen_focus, Fmodify_screen_parameters, Fset_screen_height)
9043 (Fset_screen_width, Fset_screen_size, Fset_screen_position)
9044 (Fselect_screen): Use CHECK_LIVE_SCREEN.
9045 * window.c (Fwindow_at, Fcurrent_window_configuration): Use
9047 * xfns.c (Ffocus_screen, Fx_pixel_width, Fx_pixel_height): Use
9050 * screen.c (Fdelete_screen): Do nothing if SCREEN is already
9053 * screen.c (Qscreenp): Staticpro this symbol.
9055 * xfns.c (Fx_create_screen): Doc fix.
9057 * xfns.c (Fx_create_screen): Give the screen a minibuffer if the
9058 'minibuffer parameter is t or nil; nil is the default value for
9059 omitted parameters, and t is intuitive.
9061 1991-11-14 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9063 * eval.c (specbind): Check that the thing being bound is a symbol.
9064 (funcall_lambda): Signal an invalid-function error if the
9065 arguments are not all symbols.
9067 1991-11-08 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9069 * screen.c (Fselect_screen): Don't select dead screens.
9070 * print.c (print): Print dead screen objects starting with
9073 * keyboard.c (read_key_sequence): Make sure that the compound
9074 events actually have valid window fields.
9076 * window.c (next_screen_window): Function deleted; Fnext_window
9077 can now do its job properly.
9078 (window_from_coordinates, window_loop): Call Fnext_window instead
9079 of next_screen_window.
9081 * xdisp.c (redisplay): Don't clear out minibuffer windows in the
9082 midst of the screen loop here. That's confusing.
9083 (redisplay_window): Since this needs special code to detect
9084 minibuffers anyway, put it here. And clear all the lines of a
9085 multi-line minibuffer, not just the first one.
9087 1991-11-07 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9089 * screen.c (Fdelete_screen): When searching Vscreen_list for a new
9090 value for last_nonminibuf_screen, remember that the screens live
9091 in the cars of the list, not the cdrs.
9093 * xterm.c (x_make_screen_visible): Rearranged for clarity.
9095 * xdisp.c (echo_area_display): Rearranged for clarity.
9097 1991-11-06 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9099 * screen.c (next_screen, prev_screen): New meaning for MINI_SCREEN
9100 argument helps implement the behavior of Fnext_window.
9101 (Fnext_screen): Document the new behavior.
9103 * screen.c (make_minibuffer_screen): Do set has_minibuffer for
9104 minibuffer-only screens.
9105 (Fscreen_parameters): Correctly generate value of minibuffer
9106 parameter using SCREEN_HAS_MINIBUF and SCREEN_MINIBUF_ONLY_P.
9107 * screen.h (SCREEN_HAS_MINIBUF): New predicate.
9108 * dispnew.c (change_screen_size): Use it.
9109 * screen.c (Fdelete_screen): Use it.
9111 * screen.c (Vglobal_minibuffer_screen): Renamed
9112 Vdefault_minibuffer_screen to better describe its significance.
9113 (make_screen_without_minibuffer, syms_of_screen): Adjusted.
9114 * xfns.c (Fx_create_screen): Doc string adjusted.
9116 * xdisp.c (display_mode_line): Make the code which names the
9117 screen after the current buffer not depend on
9118 Vglobal_minibuffer_screen.
9119 * xterm.c (Vglobal_minibuffer_screen): Don't declare this extern
9120 here; it's never used.
9122 1991-11-05 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9124 * screen.c (Fdelete_screen): Document the fact that surrogate
9125 minibuffer screens may not be deleted.
9127 * screen.h (SCREEN_MINIBUF_ONLY_P): New predicate, true iff the
9128 screen's only window is a minibuffer, aka a "minibuffer screen" or
9129 a "minibuffer-only" screen.
9130 * dispnew.c (change_screen_size): Use it.
9131 * screen.c (Fselect_screen, next_screen, prev_screen)
9132 (Fdelete_screen): Use it.
9133 * window.c (Fdisplay_buffer): Use it.
9135 * screen.c (next_screen, prev_screen): Make MINIBUF a lisp
9136 boolean, not a C boolean.
9137 (Fnext_screen, Fdelete_screen): Changed to fit.
9138 * window.c (Fnext_window, Fprevious_window): Changed to fit.
9140 * screen.c (make_screen_without_minibuffer): Error string improvement.
9142 * screen.c (syms_of_screen): Doc grammar fix for Vemacs_iconified.
9144 * screen.c (next_screen): Added some sanity checks, rewrote comments.
9146 * screen.h (Vglobal_minibuffer_screen): Don't declare this. It
9147 shouldn't be used for anything but screen creation.
9148 * window.c (Fminibuffer_window): Vglobal_minibuffer_screen is not
9149 necessarily the screen containing the current minibuffer window.
9150 Also, call choose_minibuf_window; it does much of the work here.
9151 (Fnext_window): Used to insist on looping through all screens if
9152 Vglobal_minibuffer_screen was non-nil. Now includes screen's
9153 minibuffer window according to MINIBUF, no matter what screen it's
9154 on, and ignores Vglobal_minibuffer_screen. Loop termination logic
9155 cleaned up. Clarified doc string.
9156 (Fprev_window): Same problems as Fnext_window, above.
9157 * screen.c (Vglobal_minibuffer_screen): Documentation rewritten to
9158 emphasize that it is only a parameter of the creation of
9159 minibufferless screens, and not an indication of where the
9161 (prev_screen): Used to assume that Vglobal_minibuffer_screen was
9162 the only minibuffer-only screen, and would enter an infinite loop
9163 if Vglobal_minibuffer_screen was the only screen in the list.
9164 Rewritten to fix these problems.
9165 * minibuf.c (Vglobal_minibuffer_screen): Don't declare it extern
9166 here; it's not used.
9168 * editfns.c (Fmessage): Don't call Fmake_screen_visible here.
9169 * xdisp.c (message, message1): Call it here, so that Emacs C
9170 functions like Fy_or_n_p make the screen visible too.
9172 1991-11-04 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9174 * keyboard.c (readable_events): If EVENT_QUEUES_EMPTY, we can
9175 short-circuit and say no. Otherwise, if do_mouse_tracking, we can
9176 short-circuit and say yes. These things let us scan the event
9179 * termhooks.h (mouse_tracking_enable_hook): Replaced by...
9180 (mouse_moved, mouse_position_hook): It turns out that it is
9181 possible and no less efficient simply to tell Emacs if the mouse
9182 has moved since last noticed, and let it ask for the current mouse
9183 position; X's pointer motion hints are a cool thing.
9184 * term.c (mouse_tracking_enable_hook): Replaced by...
9185 (mouse_position_hook): New, simpler interface.
9186 * keyboard.c (struct movement, movement_buf, movement_ptr):
9188 (mouse_moved): This flag, to be used in conjunction with
9189 mouse_position_hook.
9190 (EVENT_QUEUES_EMPTY): Adjusted to use mouse_moved instead of
9191 movement_buf and movement_ptr.
9192 (tracking_off, Ftrack_mouse): Don't call mouse_tracking_enable
9194 (note_mouse_position): Moved to xterm.c.
9195 (get_mouse_position): Replaced by mouse_position_hook.
9196 (make_lispy_event): Movement event generation code moved out to a
9197 separate function...
9198 (make_lispy_movement): Create a mouse movement event for the
9199 current mouse position. Use mouse_position_hook instead of
9200 get_mouse_position. Added static declaration for this above...
9201 (kbd_buffer_get_event): Use mouse_moved instead of movement_buf
9202 and movement_ptr. Call make_lispy_movement instead of
9204 (init_keyboard): Initialize do_mouse_tracking. Don't init
9205 movement_ptr and movement_buf.
9206 * xterm.h (STANDARD_EVENT_SET): Add PointerMotionMask and
9207 PointerMotionHintMask to the set.
9208 * xterm.c (pixel_to_glyph_translation): Renamed to
9209 pixel_to_glyph_coords, made static, simplified to take advantage
9210 of constant-size characters, and extended to return the bounding
9211 rectangle of the glyph returned.
9212 (construct_mouse_click): The 'button' field of a button event is
9213 the button number, not a mask; convert it to a mask before
9214 frobbing x_mouse_grabbed. Call pixel_to_glyph_coords properly.
9215 (last_mouse_screen, last_mouse_glyph): New variables, to keep
9216 track of when the pointer has moved to a different glyph.
9217 (note_mouse_position): Moved here from keyboard.c and made static.
9218 Check if the new mouse position is over a new glyph. If it is,
9219 set mouse_moved flag; otherwise, call XQueryPointer to get the
9221 (XTmouse_tracking_enable): No longer needed, since pointer motion
9222 hints let us implement the simpler mouse position hook.
9223 (XTmouse_position): New hook. Call XQueryPointer to get the
9224 current mouse position and request notification about the next
9225 mouse movement. Clear the mouse_moved flag.
9226 (pixel_to_glyph_coords, construct_mouse_click,
9227 note_mouse_position, XTmouse_position): Put these all on the same
9229 (XTread_socket): Case MotionNotify, call note_mouse_position with
9230 the right args; don't call pixel_to_glyph_translation.
9231 (x_term_init): Set mouse_position_hook instead of
9232 mouse_tracking_enable_hook.
9234 1991-10-31 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9236 * xdisp.c (redisplay_window): When trying to avoid starting
9237 display at the end of the buffer: check that startp < ZV, not
9240 1991-10-29 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9242 * xterm.c (x_do_pending_expose, XTmouse_tracking_enable): Use
9243 SCREEN_IS_X instead of testing output_method directly.
9245 1991-10-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9247 * xdisp.c (redisplay): In the single-screen optimization, always
9248 update the minibuffer's screen as well as the selected screen, no
9249 matter what the echo_area_glyphs are. This makes sure that
9250 messages get cleared after a keystroke.
9252 1991-10-25 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9254 * callint.c (Finteractive): Doc fix.
9256 * xterm.c (XTmouse_tracking_enable): Block input while changing
9257 the screens' input selection masks.
9259 * window.c (change_window_height): If the window being resized is
9260 the only window of the screen, no size change is possible; make
9261 the delta be zero. Exit without "changing" the sizes of any
9262 windows if the delta is zero.
9264 * alloc.c: Don't bother to include xterm.h.
9265 (Fgarbage_collect): Don't bother to BLOCK_INPUT here,
9266 since we don't cons in the input handler.
9268 1991-10-21 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9270 * window.c (init_window_once): Set last_nonminibuf_screen to the
9271 initial terminal screen, so that poor Fdisplay_buffer doesn't try
9272 to create a new screen on a terminal.
9274 1991-10-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9276 * m-intel386.h (signal): Optionally don't define it.
9277 * s-isc2-2.h (DONT_DEFINE_SIGNAL): Define this.
9279 1991-10-18 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9281 * scroll.c (line_ins_del): Don't calculate costs off the end of mf
9282 and ov; use < in loop condition, not <=.
9284 * scroll.c (scroll_cost): Logic rearranged.
9286 * dispnew.c (change_screen_size): Change "SCREEN_IS_TERMCAP
9287 (screen) == output_termap" to "SCREEN_IS_TERMCAP (screen)".
9288 (window_change_signal): Use SCREEN_IS_TERMCAP predicate instead of
9289 testing output_method_directly.
9291 1991-10-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9293 * xterm.h (STANDARD_EVENT_SET): Include ButtonReleaseMask in
9295 * xterm.c (XTmouse_tracking_enable): Don't bother or'ing
9296 ButtonReleaseMask with the STANDARD_EVENT_SET.
9298 * dispnew.c (buffer_posn_from_coords): If the coordinates are off
9299 past the end of a line, return them as being *before* the newline,
9302 * keyboard.c (kbd_buffer_get_event): Set input_pending after
9303 reading the event, no matter what sort of event it is - i.e., move
9304 the assignment to input_pending outside of the event lispifying
9307 * keyboard.c (note_mouse_position): Don't record a "new" mouse
9308 position unless it really differs from the last one returned.
9310 * keyboard.c (kbd_buffer_read_char): Renamed to
9311 kbd_buffer_get_event, for consistency with kbd_buffer_store_event.
9313 * window.c (Fwindow_at): Modified to take the coordinates as a
9314 pair, not a two-element list, for ease of use and compatibility
9315 with events. Make SCREEN argument second and optional.
9316 (Fcoordinates_in_window_p): Modified to take and return the
9317 coordinates as above, and to distinguish the right border as well
9319 (window_from_coordinates): Modified to distinguish the right
9320 border as well as the mode line.
9321 * lisp.h (Qmode_line, Qvertical_split): Declare this extern, from
9323 * keyboard.c (make_lispy_event): Distinguish a window's right
9324 border from its text area.
9326 * window.c (coordinates_in_window): Make it static.
9328 * window.c (Flocate_window_from_coordinates): Renamed to
9330 (syms_of_window): Adjusted.
9331 * lisp.h: Adjusted to say so.
9333 * screen.c (Fcoordinates_in_window_p, window_from_coordinates,
9334 Flocate_window_from_coordinates): Functions moved to window.c.
9335 (syms_of_screen): Adjusted.
9336 * window.c (Fcoordinates_in_window_p, window_from_coordinates,
9337 Flocate_window_from_coordinates): Here they are.
9338 (syms_of_window): Adjusted.
9339 * lisp.h: Adjusted to say so.
9341 1991-10-14 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9343 * xterm.c (XTclear_end_of_line): This used to try to get the
9344 cursor out of the way by comparing the line being cleared with
9345 s->cursor_y, which is meaningless; it should have compared it with
9346 s->phys_cursor_y. Changed to just mark the cursor as cleared if
9347 it's in the area we're clearing.
9349 1991-10-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9351 * m-intel386.h: Fix typo in #endif.
9353 1991-10-12 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9355 * callint.c (Fcall_interactively): Added new interactive spec 'K',
9356 for mouse clicks. Added explanation to doc string. Removed 'e'
9357 spec, which didn't work with the new input model anyway.
9358 * keyboard.c (Fmouse_click_p): New function.
9359 (syms_of_keyboard): defsubr it.
9361 * keyboard.c (EVENT_QUEUES_EMPTY): Clarified comment.
9362 (tracking_off): Change "if (!readable_events)" to
9363 "if (!readable_events ())".
9364 (Ftrack_mouse): Doc fix.
9365 (kbd_buffer_read_char): Fix brainos in tossing of unwanted events.
9366 Don't use EVENT_QUEUES_EMPTY to set input_pending; call
9369 1991-10-11 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9371 * keyboard.c (Qmode_line): New quoted symbol.
9372 (syms_of_keyboard): Initialize and staticpro it.
9373 (make_lispy_event): Use it to indicate when a mouse position is in
9374 a window's mode line.
9376 * xterm.c (XTread_socket): Consider the window to be resized if
9377 either the character or pixel dimensions have changed; this will
9378 catch font size changes.
9380 1991-10-08 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9382 * process.c (wait_reading_process_input): Removed all the
9383 exceptional condition stuff. Emacs lacks any way to respond to
9384 such a state, and selecting for it without responding to it can make
9385 Emacs loop indefinitely.
9387 * xterm.c (XTread_socket, construct_mouse_click): Make sure that
9388 all enqueued events have their timestamp field set.
9389 * termhooks.h (struct input_event): Doc fix.
9390 * keyboard.c (last_event_timestamp): New variable.
9391 (get_mouse_position, kbd_buffer_store_event,
9392 kbd_buffer_read_char): Make sure to fill in Vlast_event_screen and
9393 last_event_timestamp.
9394 * xselect.c (mouse_timestamp): Don't use this anymore.
9395 (last_event_timestamp): Use this instead.
9396 (Fx_own_selection, Fx_own_clipboard, Fx_get_selection)
9397 (Fx_get_clipboard): Use last_event_timestamp instead of
9400 * xdisp.c (redisplay): Don't pass extra arguments to
9403 * keyboard.c (echo_truncate): Don't call echo here; this results
9404 in extraneous echoing of characters.
9405 (read_key_sequence): After calling echo_truncate, call echo_char
9406 to put the character we just read into the minibuffer, if
9409 * keyboard.c (read_key_sequence): Removed unused argument
9412 1991-10-01 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9414 * xfns.c (x_create_screen): Initialize phys_cursor_x to -1, to
9415 indicate that the screen has no displayed cursor.
9417 * xfns.c (x_create_screen): Let InternalBorderWidth default to 1.
9419 * xterm.c (x_display_bar_cursor): Declare this to be static void.
9421 * xterm.c (XTupdate_begin): Don't turn off the cursor. This makes
9422 ugly flickering. Instead, make it okay for XTins_del_lines to do
9424 * screen.h (struct screen): New field phys_cursor_glyph, keeping
9425 track of the glyph under the currently displayed cursor. Since
9426 current_glyphs is sometimes inaccurate when we want to undraw the
9427 cursor (as when XTins_del_lines is called from do_scrolling), we
9428 can't always get the GLYPH from there.
9429 * xterm.c (x_draw_single_glyph): Take the glyph to draw as an
9430 argument, instead of taking it from the screen matrix.
9431 (x_display_box_cursor): Set and use s->phys_cursor_glyph.
9433 * ymakefile: Note that scroll.o and xmenu.o depend on screen.h.
9435 1991-09-29 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9437 * keyboard.c (make_lispy_event): When building mouse movement
9438 event, use `m', not `event', dummy.
9440 1991-09-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9442 * screen.c (Fscreen_parameters): Return the proper value for the
9443 'minibuffer parameter for minibuffer-only screens.
9445 * xdisp.c (redisplay_window): When the start position is forced,
9446 constrain it to be within the visible region anyway.
9448 * xterm.c (XTwrite_glyphs): Instead of turning off the cursor
9449 before we write, just notice if we wrote over it.
9451 * xfns.c (x_decode_color): If a screen has two planes, then it is
9452 considered a color screen, and we should look up the color value.
9454 * ymakefile: Include xselect.o and xrdb.o in XOBJ even when
9455 HAVE_X_MENU is not defined.
9457 * fns.c (Fdelete): This used to be named Fdelq; Roland forgot to
9458 change the function name in his August 17 change.
9459 (syms_of_fns): defsubr Fdelete.
9461 1991-09-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9463 * alloca.c: Do nothing if alloca is defined as a macro.
9465 1991-09-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9467 * m-pfa50.h: New file.
9469 1991-09-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9471 * unexec.c: Add conditionals for COFF_ENCAPSULATE.
9473 1991-08-17 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9475 * fns.c (Fdelete): New fn. We have member now; we should have
9478 1991-08-16 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9480 * xfns.c (x_get_arg): Clean bad characters out of the screen name
9481 before using it as a resource key.
9483 * abbrev.c (Fexpand_abbrev): Don't let capitalization go past point.
9485 * sysdep.c (sys_suspend): Don't use & before array name.
9487 * sysdep.c [BROKEN_FIONREAD]: Undefine FASYNC.
9489 * m-tandem-s2.h (START_FILES, LIB_STANDARD): Added.
9491 * s/s-aix3-1.h: Define HAVE_TCATTR.
9493 * xfns.c (Fx_grab_cursor, Fx_ungrab_cursor): Functions removed.
9495 1991-08-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9497 * bytecode.c (Qbyte_code_meter): New.
9498 (Bend_of_line, Bset_marker, Bmatch_beginning, Bmatch_end, Bupcase)
9499 (Bdowncase, BRgoto, BRgotoifnil, BRgotoifnonnil)
9500 (BRgotoifnilelsepop, BRgotoifnonnilelsepop, BlistN, BconcatN): New
9502 (Fbyte_code): Implemented new codes listed above. Added code to
9503 count how many times a function is called.
9504 (syms_of_bytecode): Initialize and staticpro Qbyte_code_meter.
9506 * xfns.c (x_window): When setting the class hints, use the
9507 screen's name as the res_name.
9509 * xfns.c (x_make_screen_name): New function.
9510 (Fx_create_screen): Use x_get_arg to find screen name; if none has
9511 been specified, use x_make_screen_name; don't set the name again
9513 (x_get_arg): If SCREEN_NAME is nil, don't pass any class to
9516 * xfns.c (x_get_arg, x_default_parameter): Take an extra argument
9517 TYPE, instead of encoding the type in the first letter of the
9520 1991-08-15 Roland McGrath (roland@albert.gnu.ai.mit.edu)
9522 * buffer.c (Fkill_all_local_variables): Don't pass
9523 Fmake_local_variable too many args. Use Fset instead.
9525 1991-08-14 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9527 * xfns.c (emacs_class): Variable removed.
9528 (EMACS_CLASS): New macro, specifying Emacs class for xrdb use.
9529 Use a class of "Emacs", to be compatible with previous versions.
9530 (Fx_get_resource, x_window, Fx_open_connection): Use macro here.
9532 * buffer.c (Fgenerate_new_buffer): Function moved to
9534 (Fgenerate_new_buffer_name): New function which does only the
9535 name-choosing work Fgenerate_new_buffer used to do.
9536 (Frename_buffer): Added second optional argument DISTINGUISH,
9537 which lets rename_buffer use generate-new-buffer-name if non-nil.
9538 Return the name the buffer was given.
9539 Do nothing if new name is already buffer's name.
9541 * xfns.c (Fx_get_resource): Take third argument CLASS, and require
9542 it to be specified whenever NAME is.
9543 All callers changed.
9544 [not HAVE_X11] (Fx_get_default): Only take the one arg.
9545 [not HAVE_X11] (Fx_get_resource): Toss the second two args.
9547 1991-08-13 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9549 * xfns.c (Fx_close_current_connection): Add \n to error message.
9551 * keyboard.c (make_lispy_event): Added HP keys into the
9552 function_key_names array.
9553 * xterm.c (XTread_socket): For KeyPressed events, strip the
9554 keysym's vendor-specific bit, and take a shot at fitting it into
9555 the Emacs key numbering.
9557 * screen.c (Vdefault_screen_alist): Definition moved from
9559 (syms_of_screen): DEFVAR_LISP and initialize it here.
9560 * screen.h: Declare it here.
9561 * xfns.c (x_get_arg): Use it here.
9563 * screen.c (make_screen): When choosing a buffer for the screen's
9564 root window, shy away from buffers whose names start with a space.
9566 1991-08-11 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9568 * process.c (exec_sentinel, exec_sentinel_unwind): Move these
9569 above status_notify.
9571 * eval.c (Qinhibit_quit): New variable, to support Aug 5 changes
9573 (syms_of_eval): Initialize and staticpro above.
9574 * lisp.h: Added extern declaration for above.
9576 1991-08-10 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9578 * regex.c (re_search_2): When searching with the fastmap, test for
9579 a translate table outside of the loop, not inside the loop.
9581 1991-08-10 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9583 * fns.c (Fequal): Don't crash on circular structure.
9584 (internal_equal): New subroutine does the recursion.
9586 * print.c (print): Recognize circular car pointers.
9588 1991-08-10 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9590 * process.c (wait_reading_process_input): Ignore exceptional
9591 conditions on the keyboard input.
9593 1991-08-06 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
9595 * lisp.h: Fiddled with formatting.
9597 * process.c (exec_sentinel_unwind): New function.
9598 (exec_sentinel): Restore the process's sentinel, using an
9601 1991-08-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9603 * keyboard.c: Doc fix.
9605 1991-08-05 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9607 * dired.h: Don't include search.h; it doesn't exist.
9609 * process.c (read_process_output, exec_sentinel): Bind
9610 Qinhibit_quit to true and call the filter directly instead of
9611 through a condition-case.
9612 (run_filter): Removed.
9613 (this_filter, filter_process, filter_string): Variables now
9616 * xfns.c (Fx_get_resource): Take the screen name as an optional
9617 argument and look up resources using the name of the screen as
9619 [not HAVE_X11] (Fx_get_default): Take optional 2nd arg NAME and
9621 (x_get_arg): Take the screen name as an arg, and call
9622 Fx_get_resource with that argument.
9623 (x_default_parameter, x_figure_window_size, x_icon): Pass the
9624 screen's name to x_get_arg.
9625 (Fx_create_screen): Make sure the screen name is either nil or a
9626 string, and pass it to x_get_arg.
9628 * xfns.c (Vx_screen_defaults): Variable removed; such settings
9629 belong in the .Xdefaults file.
9630 (syms_of_xfns): Don't defvar it here.
9631 (Fx_create_screen): Don't use it here.
9633 * keyboard.c (classify_object): #if 0'd function finally removed.
9634 * xterm.c (Qmapped_screen, Qunmapped_screen, Qexited_scrollbar)
9635 (Qexited_window, Qredraw_screen): Unused, so removed.
9636 (syms_of_xterm): Don't bother to initialize above.
9638 * xterm.c (init_input_symbols): Renamed to syms_of_xterm, for
9640 (x_term_init): Don't call it here.
9641 * xfns.c (syms_of_xfns): Don't call syms_of_xselect here.
9642 * emacs.c (main): Call them here.
9644 * xterm.c (invocation_name): Made this a Lisp_Object, so that its
9645 string value could be relocated properly.
9646 (x_term_init, x_text_icon): Adjusted code appropriately.
9647 (syms_of_xterm): staticpro invocation_name.
9648 * xfns.c (invocation_name): Changed extern declaration, deleted
9650 (Fx_get_resource): Adjusted code appropriately.
9652 1991-08-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9654 * lread.c (read1): Accept #[...] for bytecode object.
9655 * print.c (print): Print them that way.
9657 1991-08-01 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9659 * fileio.c (Fexpand_file_name): Avoid doing strlen (0).
9661 * editfns.c, filelock.c [VMS]: Use pwd.h from Emacs, not from system.
9662 * fileio.c [VMS]: Likewise. Also include stddef.h, string.h.
9663 Include perror.h only once.
9664 [VMS] (file_name_as_directory, directory_file_name): Remove
9665 assignments from if conditions.
9666 (Fexpand_file_name): Remove excess slash from end of user's home dir.
9668 1991-08-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9670 * emacs.c (main): Add SIGIO conditional within AIX conditional.
9672 * xdisp.c (try_window_id): Compute proper position for screen bottom
9673 when all changes are below the screen.
9674 When first computing bp, don't go more than HEIGHT + 1 lines.
9676 1991-07-31 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9678 * xterm.c (x_destroy_window): If we're destroying the currently
9679 highlighted screen, clear x_highlight_screen.
9681 * xdisp.c (display_text_line, display_string):
9682 Don't go past endp for multi-column chars.
9684 1991-07-28 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9686 * lread.c (init_lread): If Vload_path was set specially before
9687 dumping, preserve it by default.
9689 * process.c (process_send_signal): Notice and deal if the
9690 TIOCGPGRP ioctl says that the subprocess has no pgrp.
9692 * xdisp.c (try_window_id): Always update window_end_* if successful.
9694 * process.h (subtty): New slot.
9695 * process.c (create_process): Set it.
9696 (process_send_signal): Use it.
9698 * alloc.c (Fmake_rope): Doc fix.
9699 * screen.c (Fselect_screen): Doc fix.
9700 * vms-pp.c: Fix comment.
9702 * keymap.c (Fkeymapp, Fdefine_prefix_command): Doc fixes.
9704 * window.c (window_select_count): No longer static.
9705 (init_window_once): Increment window_select_count, to give each
9706 window a unique use_time.
9707 * window.h (window_select_count): extern this here.
9708 * screen.c (make_screen): Stamp a new screen's selected window
9709 with the proper selection time.
9711 * ymakefile: xselect.o depends on screen.h, xterm.h, and config.h.
9712 xrdb.o depends on config.h.
9713 xterm.o depends on gnu.h.
9714 * xfns.h: File removed - it only declared Vx_send_movement_events.
9715 All includers changed.
9717 1991-07-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9719 * keymap.c (Fcopy_keymap): Don't recursively copy maps inside symbols.
9721 1991-07-27 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9723 * xdisp.c (redisplay): If echo_area_display puts text in a
9724 surrogate minibuffer screen, don't neglect to update it.
9726 * keyboard.c (kbd_buffer_store_event): Make sure
9727 Vlast_event_screen is set properly for quit characters.
9729 1991-07-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9731 * keyboard.c (command_loop_1): Pass both arguments to
9734 * screen.c (make_screen): Divide the size by sizeof (Lisp_Object)
9735 before passing it to Fmake_vector.
9737 * screen.h [not MULTI_SCREEN] (SCREEN_SCROLL_BOTTOM_VPOS): Fixed
9740 * screen.c: #include termhooks.h and therefore stdio.h.
9741 (make_screen): Initialize focus_screen member.
9742 (Fdelete_screen): Refuse to delete SCREEN if it is a
9743 surrogate minibuffer for some other screen, not just if it's the
9744 global minibuffer screen.
9745 (Fredirect_screen_focus, Fscreen_focus): New function.
9746 (syms_of_screen): defsubr Sredirect_screen_focus.
9747 * window.c: Don't include termhooks.h or stdio.h.
9748 (Fselect_window): Removed grunge to support minibuffer hack.
9749 * screen.h (struct screen): Added focus_screen member, and
9751 * alloc.c (mark_object): Mark focus_screen member of Lisp_Screens.
9752 * xterm.c (XTscreen_rehighlight): Use the focus_screen member to
9753 decide which screen to highlight.
9754 (XTread_socket): Use focus_screen when enqueuing keystrokes.
9755 * minibuf.c (read_minibuf, read_minibuf_unwind): Shift the
9756 selected screen's focus around appropriately.
9757 * termhooks.h (screen_rehighlight_hook): Doc fix.
9759 * lisp.h (CHECK_IMPURE): Moved definition...
9760 * puresize.h (CHECK_IMPURE): To here.
9762 1991-07-25 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9764 * dispnew.c (buffer_posn_from_coords): Bufp is broken; don't use it.
9766 * xterm.c (XTscreen_rehighlight): Neatened sloppy logic.
9768 * keyboard.c (read_key_sequence): When truncating a key sequence,
9769 don't forget to put the new keystroke back in this_command_keys.
9770 Do this before calling echo_truncate, and don't call echo_char.
9772 1991-07-24 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9774 * xterm.c (x_term_init): Initialize x_focus_screen and
9777 * xterm.c (XTscreen_rehighlight): Handle things correctly when
9778 x_focus_screen is 0.
9779 (XTread_socket): Process EnterNotify and LeaveNotify events with
9780 .focus == 0 properly. For FocusOut events, pass the right
9781 arguments to x_new_focus_screen.
9783 * fileio.c (Finsert_file_contents): Use RETURN_UNGCPRO macro.
9785 * buffer.c (Fbuffer_name): Fix typo in doc string.
9786 (syms_of_buffer): Fix typo in before_change_function name.
9788 1991-07-23 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9790 * screen.h (CHECK_SCREEN): Define a dummy version of this when
9791 MULTI_SCREEN is not defined.
9793 * sysdep.c (init_signals, sys_signal, sys_sigpause): New functions.
9794 (sys_sigblock, sys_sigunblock, sys_sigsetmask): New functions.
9796 * sysdep.c (_sobuf): Unsigned chars if DGUX.
9798 * sysdep.c [DGUX]: Include file.h.
9799 [DGUX] (sys_siglist): New variable.
9801 * x11term.c (x_init_1) [SYSV_STREAMS]: Don't close the old
9804 * keyboard.c (read_key_sequence): Treat function keys like ascii
9807 * lread.c (init_lread, syms_of_lread): New names for init_read and
9808 syms_of_read, for consistency.
9810 * emacssignal.h: New file.
9811 * data.c, keyboard.c, process.c, sysdep.c: Include it.
9812 * data.c (arith_error): Use SIGEMPTYMASK.
9813 * keyboard.c (sigfree, sigunblockx): Use SIGEMPTYMASK.
9814 (sigholdx, sigblockx): Use sigmask.
9815 (gobble_input): Use sigblockx instead of sigholdx, so that any
9816 other blocked signals stay blocked during and after the call to
9818 * process.c (create_process): Use sigmask.
9819 [FASYNC] (request_sigio): Use sigunblock.
9820 * xterm.c (sigmask): Removed #definition here.
9821 * ymakefile (keyboard.o, process.o, sysdep.o, data.o): Make these
9822 depend on emacssignal.h.
9824 * window.c (Fselect_window): Modify surrogate minibuffer hack to
9825 make the minibuffer the selected window of the selected screen,
9826 AND select the minibuffer window's screen.
9827 * minibuf.c (read_minibuf): If the minibuffer window is on a
9828 different screen, save that screen's configuration too.
9830 * window.c (Fset_window_configuration): Use SCREEN_ accessor to
9831 get at a screen's root window. Removed unused variable
9833 (Fcurrent_window_configuration): Take an optional argument SCREEN.
9834 All callers changed.
9836 * window.c (auto_new_screen, Vauto_new_screen_function): Renamed
9837 to pop_up_screens and pop_up_screen_function, to be parallel with
9839 (display_buffer, syms_of_window): Changed appropriately.
9841 * fns.c (Fload_average) [DGUX]: Add code to support DGUX.
9843 * s-dgux.h, m-aviion.h: New files.
9845 * emacs.c (main) [POSIX_SIGNALS]: Call init_signals.
9847 * screen.c (Fdelete_screen): Update last_nonminibuf_screen if
9848 the screen it's currently pointing to gets deleted.
9850 1991-07-22 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9852 * screen.c (last_nonminibuf_screen): New variable.
9853 (Fselect_screen): Set last_nonminibuf_screen if appropriate.
9855 1991-07-21 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9857 * screen.h (last_nonminibuf_screen): Added declarations for new
9859 * minibuf.c (active_screen): Variable removed.
9860 (read_minibuf): Removed code to set and clear active_screen.
9861 * window.c (Fdisplay_buffer): Rewritten to use
9862 last_nonminibuf_screen.
9864 * screen.c (next_screen): Use SCREEN_ accessors instead of ->.
9866 * window.c (Fdisplay_buffer): Removed reference to
9867 Fx_create_screen; we should rely on the auto-new-screen-function
9868 being set to something appropriate.
9870 1991-07-21 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
9872 * keyboard.c (read_key_sequence): Restore the state of
9873 this_command_key_count along with the echoing state.
9875 1991-07-20 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
9877 * xfns.c (Fx_synchronize): New function.
9878 (syms_of_xfns): defsubr it.
9880 * xdisp.c (redisplay): Don't turn on all_windows whenever we're
9881 using a separate minibuffer screen. Even if there is some tweak
9882 necessary, this wasn't it.
9884 * process.c (status_notify): Do not forget to UNGCPRO.
9886 * screen.c (next_screen): Re-work logic to skip minibuffer-only
9887 screens so that it doesn't loop indefinitely, even when the only
9888 screen is a minibuffer-only screen. Skip all screens that are
9889 only minibuffers, not just when they are the global minibuffer
9892 * xdisp.c (message, message1): If the screen's message buffer
9893 is 0, toss the message; don't check the window system against
9894 the screen output_method.
9896 1991-07-19 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9898 * keyboard.c (read_key_sequence): When we truncate the echo
9899 buffer because the user has switched screens, re-echo the
9900 character that caused the truncation.
9902 * lread.c (Fload): Change "source newer than ..." message not to
9903 refer to "libraries." What is a "library," anyway?
9905 * window.c: #include "termhooks.h", and therefore <stdio.h> too.
9906 [MULTI_SCREEN] (Fselect_window): If the window being selected is
9907 the selected screen's minibuffer, but it lives on another screen,
9908 don't select that other screen - call the screen_rehighlight_hook
9910 * termhooks.h (screen_rehighlight_hook): New hook, so that Emacs
9911 can shift the screen highlighting when needed.
9912 * term.c (screen_rehighlight_hook): Define it.
9913 * xterm.c (x_highlight_screen): New variable.
9914 (x_new_focus_screen): Move the rehighlighting code to...
9915 (XTscreen_rehighlight): New function.
9916 (x_display_bar_cursor, x_display_box_cursor): Use
9917 x_highlighted_screen instead of x_focus_screen.
9918 (x_term_init): Initialize screen_rehighlight_hook.
9919 * ymakefile: Make window.o depend on termhooks.h.
9921 * xfns.c (Fx_create_screen): Add mention of
9922 global-minibuffer-screen to docstring.
9923 * screen.c (make_screen_without_minibuffer): Improve error message
9924 displayed when Vglobal_minibuffer_screen is not a proper screen.
9926 1991-07-18 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9928 * config.h (PURESIZE): Definition moved to...
9929 * puresize.h: New file.
9930 (PURESIZE): Define this here. This will allow people to change
9931 their pure storage allocation without having to recompile most of
9933 * data.c: #include puresize.h, since CHECK_IMPURE needs PURESIZE.
9934 * alloc.c: #include puresize.h.
9935 [HAVE_SHM] (pure_size): New variable, so that XPNTR doesn't depend
9937 [HAVE_SHM] (init_alloc_once): Initialize pure_size here.
9938 * lisp.h [HAVE_SHM] (XPNTR): Defined in terms of pure_size,
9939 instead of PURESIZE.
9940 (pure_size): Extern declaration added here.
9941 * ymakefile: Added puresize.h to dependencies for alloc.c and
9944 * emacs.c (main): Doc fix for kludge to scan for -d.
9946 1991-07-17 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9948 * termhooks.h (struct input_event): #if 0'd out the definition for
9949 the screen_selected event type, and added the stipulation that the
9950 {non_,}ascii_keystroke events specify the screen they happen in.
9951 * xterm.c (x_new_focus_screen): Don't enqueue a screen_selected
9953 (XTread_socket): Calls to x_new_focus_screen in the EnterNotify,
9954 FocusIn, LeaveNotify, and FocusOut event code don't worry about
9955 enqueued events any more.
9956 * keyboard.c (new_selected_screen): Removed - see below.
9957 (Vlast_event_screen): New variable, visible to lisp code.
9958 (echo_length, echo_truncate): New functions.
9959 (readable_events): Removed screen_selected events from the set of
9961 (kbd_buffer_store_event): Don't bother collapsing consecutive
9962 screen_selected events.
9963 (kbd_buffer_read_char): Don't process screen_selected events.
9964 (make_lispy_event): Re-arrange scrollbar events to put the window
9965 whose scrollbar was diddled right after the identifying symbol,
9967 (read_key_sequence): Let the selected screen and the location of
9968 the event affect the keymap used to find its binding.
9969 (Fread_key_sequence): Update docstring.
9970 (syms_of_keyboard): Added DEFVAR_LISP for Vlast_event_screen.
9972 1991-07-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9974 * screen.c (next_screen): If !mini_screen, only exclude the global
9975 minibuffer screen when the minibuffer is its only window.
9976 (Fnext_screen): Make the docstring clearer about what MINISCREEN
9979 * window.c (Fother_window): Indicate that it takes both a required
9980 and optional argument, instead of just one required.
9982 1991-07-15 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9984 * buffer.c (Fkill_buffer): Rehacked kill-buffer-hooks to use
9985 standard name kill-buffer-hook, and to use set_buffer_internal
9986 instead of Fset_buffer. Use static variable containing symbol
9988 (syms_of_buffer, init_buffer_once): Qkill_buffer_hook =
9991 1991-07-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9993 * keymap.c (Fsingle_key_description): When describing a listy
9994 object, take the car to find the symbol that heads it, not the cdr.
9996 * dispnew.c (buffer_posn_from_coords): Pass col and line to
9997 compute_motion in the correct order.
9999 * keyboard.c (make_lispy_event): When calculating rows and columns
10000 for mouse clicks and movement events, don't forget to subtract the
10001 position of the window's top left corner before passing them to
10002 buffer_posn_from_coords.
10004 * screen.c (coordinates_in_window): Removed useless test for *y ==
10005 screen_height, and screen_height variable; this would be out of
10006 range of all the windows anyway.
10008 * xdisp.c (message1): Removed code to ignore messages before X has
10009 started up; this issue has hopefully been addressed by the
10010 condition-case in startup.el.
10012 * editfns.c (init_editfns): Make user_name char * instead of
10013 unsigned char *, since that's what most of the usages seem to
10014 want. And when expanding ampersands in AMPERSAND_FULL_NAME mode,
10015 don't try to use user_name as a string; use Vuser_name.
10017 * minibuf.c (assoc_for_completion): New function.
10018 (do_completion): Use that to check for exact match.
10020 * minibuf.c (Ftry_completion): Fix handling of matches aside from
10021 case. If ignoring case, and all else equal, try to preserve the
10022 case of the characters in the input.
10024 * process.c (status_notify): GCPRO tail.
10026 * sysdep.c (creat_copy_attrs, rename_sans_version): Always set
10027 protection to O:REWD when creating file. Added new function
10028 rename_sans_version, which strips the version number from the target
10029 filename, renames the temporary file to this filename, and then
10030 sets the file protection of this new file to be the same as the file
10033 * sysdep.c [VMS]: Include pwd.h from Emacs. Use sys/file.h if GCC.
10034 (F_SETFL) [VMS]: Undefine this, to control conditionals.
10035 (getpwnam): Make `full' unsigned.
10036 (creat_copy_attrs): Add some casts.
10037 (sys_access): Change prvmask and CHECKPRIV to use bitfields.
10038 Add some casts, and make dummy an unsigned short int.
10039 Don't use & on constants.
10040 (vmserrstr): Add a cast.
10041 (sys_creat): Define va_count before this function.
10043 1991-07-14 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10045 * sysdep.c (sys_sleep, input_wait_timeout): Don't use & on constant.
10046 [VMS]: Include pwd.h from Emacs. Use sys/file.h if GCC.
10047 (bzero, bcopy) [VMS]: Don't take address of `length'.
10049 * sysdep.c (sys_suspend): Cast value of `signal' to insulate from
10050 changed value type in sysV.3.
10052 * sysdep.c (child_setup_tty): Turn off erase & kill chars for BSD.
10054 * sysdep.c (discard_tty_input): Use TIOCFLUSH on Apollo.
10055 (init_sys_modes): Avoid TIOCSTART on Apollo.
10057 * sysdep.c: If HAVE_TERMIOS is not defined, define tcgetattr in
10058 terms of the TIOCGETP ioctl.
10059 (init_sys_modes): Handle VSUSP, V_DSUSP if HAVE_TCATTR.
10060 (discard_tty_input, init_baud_rate, child_setup_tty)
10061 (init_sys_modes, tabs_safe_p, reset_sys_modes):
10062 Use tcgetattr, and if HAVE_TCATTR, use tcsetattr.
10064 1991-07-13 Jim Blandy (jimb@churchy.gnu.ai.mit.edu)
10066 * s-hpux8.h: New file.
10067 * fileio.c [HPUX8]: Don't include errnet.h.
10069 * unexhp9k800.c (unexec): Local variable i to avoid compiler bug?
10071 * sysdep.c (insque) [WRONG_NAME_INSQUE]: New function.
10072 * s-386ix.h (WRONG_NAME_INSQUE): Define it.
10074 * xdisp.c (message_buf_print): New variable.
10075 (message): Clear it here.
10076 * dispextern.h: Declare it here.
10077 * print.c (printchar, strout): Set it and test it here.
10079 * keyboard.c (command_loop_1): Don't clear last_command when start
10082 * keyboard.c (read_command_char): Exit at eof if noninteractive.
10084 * indent.c (invalidate_current_column): New function.
10085 * editfns.c (Fwiden, Fnarrow_to_region): Call it.
10087 * process.c (create_process): Use O_NOCTTY whenever defined,
10090 * process.c (Fprocess_send_eof): If using a pipe, close it.
10091 (close_process_descs): Check IN and OUT for nonzeroness.
10093 * process.c (process_send_signal): Use interrupt chars
10094 to send certain signals to the process group.
10095 (TIOCGETC): Undefine this if it is not really usable.
10097 * sysdep.c (discard_tty_input): Do nothing if read_socket_hook.
10099 * xfns.c (x_set_mouse_color): Change the default pointer shapes to
10100 be closer to xterm and emacs 18.
10102 * xterm.c (x_focus_on_screen, x_unfocus_screen): These no longer
10103 call XSetInputFocus, because I think that the X-windows ICCCM
10104 says that only the window manager can do this sort of thing.
10106 * keyboard.c (read_char): When there is an unread command
10107 character, goto reread_first when this_command_key_count is zero,
10108 not when it is >= 0.
10109 (command_loop_1): Reset this_command_key_count only if there is no
10110 prefix argument. This makes echoing of keystrokes work correctly.
10112 1991-07-11 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10114 * eval.c (Finteractive_p): Changed "! XTYPE (foo) == Lisp_Bar" to
10115 "XTYPE (foo) != bar".
10117 1991-07-11 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10119 * eval.c (apply1): Don't forget to UNGCPRO before returning.
10121 * xterm.c (XTupdate_begin): Undisplay the cursor here; do_scrolling
10122 will call XTins_del_lines when the screen matrix is inaccurate, so
10123 we cannot undisplay the cursor then, but do_scrolling is always
10124 called within an update.
10126 1991-07-10 David J. MacKenzie (djm@nutrimat)
10128 * termcap.c, tparam.c [!emacs, USG || STDC_HEADERS]: Define bcopy
10129 in terms of memcpy.
10131 1991-07-09 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10133 * scroll.c (do_scrolling): Use correct termination condition for
10134 loop that uses the glyph pointers for the deleted lines to fill in
10135 the inserted lines.
10137 1991-07-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10139 * editfns.c: Doc fix.
10141 1991-07-03 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10143 * dispnew.c (line_hash_code): Test m->highlight[vpos], not
10144 m->highlight. All lines were getting hash codes of -1, because
10145 the highlight vector was never NULL. Golly.
10147 * process.c (list_processes_1): Handle status of network streams.
10149 1991-07-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10151 * doc.c (Fdocumentation_property):
10152 Pass only strings to Fsubstitute_command_keys.
10154 1991-07-02 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10156 * editfns.c (init_editfns): If neither of the environment
10157 variables are set, DON'T set Vuser_name to Vuser_real_name; it's
10158 supposed to reflect the EFFECTIVE uid.
10159 Get the full name according to Vuser_name if it differs from
10160 Vuser_real_name, not if they are equal.
10161 And pass Vuser_name to getpwnam in that case instead of user_name,
10164 * lisp.h (RETURN_UNGCPRO): New macro.
10166 * bytecode.c (Fbyte_code): Do not remove GC protection from the
10167 stack when making a function call, because the caller is
10168 responsible for protecting the arguments to a MANY-arg'ed
10170 * eval.c (Fapply): If we use funcall_args, GCPRO it.
10171 And when we call Ffuncall with funcall_args, tell it the correct
10172 length of funcall_args, no matter which branch allocated it.
10173 (Ffuncall): Don't gcpro the arguments before calling
10175 (Feval): If we're calling a subr that takes MANY args, don't
10176 UNGCPRO until after we call the subr.
10177 (apply1, call0, call1, call2, call3): GCPRO the arg arrays passed
10178 to Ffuncall and Fapply.
10179 * callproc.c (Fcall_process, Fcall_process_region): Don't GCPRO
10180 the argument array.
10181 * editfns.c (Finsert, Finsert_before_markers): Don't GCPRO the
10182 argument array. Added comment about when GCPROing is not needed.
10183 * mocklisp.c (Finsert_string): Don't GCPRO the argument array.
10185 * keyboard.c (init_keyboard): Handle SIGQUIT with interrupt_signal
10186 on any system that has HAVE_TERMIO, not just on USG systems.
10188 1991-07-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10190 * editfns.c (init_editfns): Test that user_name isn't 0.
10192 1991-06-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10194 * search.c: Doc fixes.
10196 1991-06-28 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10198 * keyboard.c (make_lispy_event): Let the posns of mouse clicks and
10199 mouse movements be nil when window_from_coordinates returns a
10200 NON-window, not when it returns a window. Since posn is a lisp
10201 object, don't call make_number when consing up the event.
10202 Don't call make_number on the code member of the event.
10204 * keyboard.c (struct movement): Make the x, y, and time members
10205 Lisp_Objects, since it's easier to convert from a Lisp_Object than
10207 (note_mouse_position): Adjusted for the above.
10208 (make_lispy_event): Removed code to make Lisp_Objects for those
10211 * xterm.c (XTread_socket): When handling LeaveNotify events,
10212 remember that the focus member of the event is true when the
10213 receiving window now has the focus, not when it is losing it.
10214 * xfns.c (Ffocus_screen): Don't signal an error if SCREEN is
10215 already the focus screen.
10217 1991-06-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10219 * alloc.c (Fmake_rope): Use sizeof (GLYPH) instead of 2 to
10220 determine how large the string should be, and changed doc string
10221 to describe ropes as strings of glyphs, not just as strings of
10223 (Frope_elt): Use sizeof (GLYPH) as the element size, instead of
10224 assuming that the elements are two bytes.
10225 * lisp.h (typedef GLYPH): Moved the definition from here...
10226 * config.h (typedef GLYPH): to here, so people can elect to get
10227 better performance if they don't want to use huge fonts.
10228 * xterm.c (dumpglyphs): Use XDrawImageString or
10229 XDrawImageString16, Depending on sizeof (GLYPH).
10231 * data.c (Fsetq_default): Call Fset_default to do the assignments,
10234 The following changes were contributed by Jamie Zawinski
10237 * bytecode.c (Fbyte_code): BYTE_CODE_SAFE and BYTE_CODE_METER
10239 Added Bmark, Bscan_buffer, Bset_mark to support error-checking for
10240 these obsolete bytecodes.
10241 Added Bunbind_all to support tail-call optimization (not yet
10243 Did NOT add the relative branch opcodes that were in the version
10244 of bytecode.c that Jamie sent.
10245 The branching bytecodes now only QUIT if they take the branch.
10246 Btemp_output_buffer_show, Bforward_char, Bforward_word,
10247 Bskip_chars_forward, Bskip_chars_backward, and Bforward_line
10248 passed the wrong number of arguments to their subrs.
10249 Brem, Bbuffer_substring, Bdelete_region, Bnarrow_to_region,
10250 Bstringeqlsign, Bstringlss, Bequal, Bnthcdr, Bmember, Bassq,
10251 Bsetcar, and Bsetcdr passed arguments to the subr in the wrong
10254 1991-06-25 Jim Blandy (jimb@churchy.gnu.ai.mit.edu)
10256 * doc.c (Fdocumentation): Added a QUIT test to the loop that finds
10257 the symbol's function value.
10259 1991-06-24 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10261 * xterm.c (dumprectangle): Removed call to XFlushQueue here.
10263 * keyboard.c (command_loop_1): Call Fselect_screen to establish
10264 the new selected screen after the key sequence has been read, not
10265 at the top of the loop. This way, a key sequence will happen in
10266 the screen it was typed at, or (to be more precise) the screen its
10267 last character was typed at.
10269 * keyboard.c (fast_read_one_key): Function deleted, since it had
10270 been #if 0'd out a long time ago.
10271 (command_loop_1): Support for fast_read_one_key removed.
10273 * eval.c (Ffuncall): Do GCPRO the arguments, contrary to the May
10274 16 change. The convention appears to be that the MANY-arged
10275 callee must protect its own arguments.
10276 (Fapply): Don't protect funcall_args; they are the caller's
10278 * bytecode.c (Fbyte_code): GCPRO the section of the stack *above*
10279 the args to Ffuncall, since it will be protected again once
10280 Ffuncall returns and therefore should stay valid. If it is not
10281 protected, string relocation may make it invalid.
10282 * mocklisp.c (Finsert_string): GCPRO the arguments, since insert
10283 may cause a garbage collection.
10284 * editfns.c (Finsert, Finsert_before_markers): GCPRO the
10285 arguments, since insert may cause a garbage collection.
10286 * callproc.c (Fcall_process, Fcall_process_region): GCPRO the
10287 arguments, since insert may cause a garbage collection.
10289 1991-06-20 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
10291 * buffer.h (struct buffer_text, struct buffer): Small change to
10294 * search.c (Fmatch_beginning, Fmatch_end): Fixed doc strings to
10295 indicate that non-regexp searches set these too.
10297 * window.c (Fset_window_start): If window is not the selected
10298 window, set windows_or_buffers_changed, so that redisplay will
10299 know that it should redisplay the window.
10301 * callint.c (Finteractive): Changed doc string to indicate that
10302 the interactive prompts are passed through format.
10304 1991-06-20 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10306 * buffer.c (syms_of_buffer): buffer-undo-list doc fix.
10308 1991-06-11 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10310 * data.c (Fsetq_default): Take multiple SYM, VAL args; syntax now
10313 1991-05-25 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
10315 * keyboard.c (kbd_buffer_read_char): Fix wait-for-input loop so
10316 that we always process/toss events we don't want to return.
10318 * screen.c (Fselect_screen): Call Ffocus_screen instead of
10319 x_new_selected_screen, which doesn't exist anymore.
10321 * xfns.c (Ffocus_screen): Declare the type of the SCREEN argument.
10323 * xfns.c (Fx_track_pointer): Function #if 0'd out - I don't think
10324 that this is a feature that we want.
10325 (syms_of_xfns): Elide the defsubr for the above.
10327 * xterm.c (x_mouse_screen, x_input_screen): Variable deleted,
10328 since all we really need is x_focus_screen; all other issues are
10329 the realm and responsibility of the window manager.
10330 (x_new_selected_screen): Renamed to x_new_focus_screen, and
10331 modified not to do things inappropriate for signal handlers.
10332 (XTread_socket): Change the handling of EnterNotify, LeaveNotify,
10333 FocusOut and FocusIn events to use x_new_selected_screen, and
10334 ditched code that deals with x_mouse_screen and x_input_screen,
10335 since they don't exist anymore.
10336 (x_display_bar_cursor, x_display_box_cursor): Compare s with
10337 x_focus_screen to see what form the cursor should take.
10338 (x_destroy_window): Don't bother with x_input_screen.
10339 * xfns.c (x_mouse_screen): Removed extern declaration for this.
10340 (Fx_grab_pointer): Confine the pointer to x_focus_screen, not
10341 x_mouse_screen. This is wrong, but will make emacs compile until
10344 1991-05-23 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10346 * keyboard.c (get_input_pending): Don't use trim_events; use
10347 readable_events instead.
10349 * keyboard.c (make_lispy_event): Remove case for window_sys_event,
10350 since that type of event doesn't exist anymore.
10352 * minibuf.c (Fcompleting_read): Document the backup-n argument.
10354 * dispnew.c (init_display): Don't declare alternate_display extern
10355 here. I can't figure out what this feature is, and it's broken.
10356 * emacs.c (main): Don't test alternate_display and put its value
10357 in the environment.
10359 1991-05-22 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10361 * keyboard.c (struct movement): Made .used an int instead of a
10362 char, since that's more likely to be stored atomically on SPARCS
10363 and similar machines.
10365 * termhooks.h (struct input_event): Removed the window_sys_event,
10366 since it's not used anywhere. Added screen_selected event type.
10367 The event handling code used to change the current buffer,
10368 selected window, and selected screen out from under running lisp
10369 code. Now we wait for a more convenient time by enqueuing an
10371 * xterm.c (XTread_socket): When handling FocusIn events and
10372 EnterNotify events with the focus member set, enqueue a
10373 selected_screen event instead of calling x_new_selected_screen.
10374 * keyboard.c (trim_events): Function deleted; it is a bad idea to
10375 delete events based on the current tracking state, since tracking
10376 might be re-enabled later.
10377 (readable_events): New function which searches the input queue for
10379 (tracking_off): Call readable_events to see if we should
10381 (kbd_buffer_read_char): Toss events that we are not interested in.
10382 This is a better place to do it than trim_events, since we know
10383 that do_mouse_tracking will not change. Also, handle
10384 screen_selected events.
10385 (new_selected_screen): New variable, holding the screen which
10386 should become selected the next time through command_loop_1.
10387 (syms_of_keyboard): Initialize and staticpro new_selected_screen.
10388 (command_loop_1): If there is a new screen to be selected, do so.
10390 1991-05-21 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
10392 * xdisp.c (message): Removed the if at the top that did not
10393 display messages if the current screen was a termcap screen and a
10394 window system will be used. The change to startup.el on May 18,
10395 1991 replaces this.
10397 * ralloc.c (check_memory_limits): If the address returned by the
10398 allocator is not representable in a Lisp_Object, call memory_full
10399 instead of printing a very silly "warning" message.
10401 1991-05-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
10403 * xterm.c (XTread_socket): Don't overwrite the end of the buffer
10404 with function keys.
10406 * keyboard.c (tracking_off): Update input_pending after reading
10408 * process.c: #include "screen.h".
10409 (wait_reading_process_input): Check if any screens have been newly
10410 mapped and need updating.
10411 * xterm.c (XTread_socket): Don't SET_SCREEN_GARBAGED when the
10412 screen is unmapped; do this when is mapped.
10413 (dumprectangle): Don't dump any data for garbaged screens.
10415 1991-05-18 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10417 * sysdep.c (init_sys_modes): Moved the clauses that set up
10418 interrupt-driven input out of the "if running on a terminal"
10419 clause, since these may need to be set up even when running on a
10422 1991-05-17 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10424 * process.c (Fprocess_status): For network connections, return
10425 Qopen and Qclosed instead of Qrun and Qexit, as documented.
10427 * lread.c (read1): Removed code that treated numbers starting with
10430 1991-05-16 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10432 * eval.c (Ffuncall): Don't gcpro the arguments; the caller
10434 (Fapply): Gcpro funcall_args, if we use them.
10436 * xterm.c (notice_mouse_movement): #if 0'd this function out.
10437 (XTread_socket): #if 0 the code that fakes motion events for
10438 moving in and out of windows. Also, rearrange the MotionNotify
10439 case to give character rows and columns to note_mouse_position,
10440 not pixel x and y positions. Don't deal with scrollbars here.
10441 * termhooks.h (struct input_event): Removed the mouse_movement
10443 * keyboard.c (movement_buf): A new buffer for mouse-movement events.
10444 This is hairier than you might think; see the comments for this
10445 and the comments for note_mouse_position and get_mouse_position
10446 for an explanation of why this is hairy.
10447 (movement_ptr): Where the event handler should store new mouse
10449 (EVENT_QUEUES_EMPTY): New macro, to be used in the places that
10450 used to compare kbd_fetch_ptr to kbd_store_ptr to see if there
10451 were any events available; this macro tests the mouse movement
10453 (Qmouse_movement): New symbol to head mouse movement events with.
10454 (trim_events): Mouse movement events are no longer in kbd_buffer,
10455 so don't try to trim them.
10456 (tracking_off, kbd_buffer_read_char, get_input_pending): Use
10457 EVENT_QUEUES_EMPTY.
10458 (get_mouse_position): New function to retrieve a mouse position
10459 from the buffer properly, no matter when the event-handling signal
10461 (kbd_buffer_read_char): If there is something in kbd_buffer, make
10462 an event for that; if there is a mouse movement, make an event for
10463 that; otherwise, the while loop lied.
10464 (make_lispy_event): Added code to produce mouse movement events.
10465 (init_keyboard): Clear the mouse movement buffer.
10466 (Qmouse_moved, Qredraw_screen, Qmapped_screen, Qunmapped_screen)
10467 (Qexited_window, Qexited_scrollbar): Removed extern declarations
10468 for these, since they're no longer generated.
10469 (syms_of_keyboard): Initialize and staticpro Qmouse_movement,
10470 remove DEFVAR_LISP for Vignore_mouse_events.
10472 1991-05-14 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10474 * lread.c (read1): Correctly parenthesize the shift when parsing
10475 octal numbers, and signal an error if we see a non-octal digit.
10477 1991-05-13 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
10479 * keyboard.c (trim_events): New function, to remove uninteresting
10480 events from the input queue.
10481 (get_input_pending): Call trim_events before checking the queue,
10482 so as not to advertise input we don't care about.
10483 (Ftrack_mouse): A new function to enable mouse tracking for a
10485 (tracking_off): A function for unwind_protection; restore the
10486 mouse tracking state to what it was outside of the track-mouse.
10487 (syms_of_keyboard): defsubr track-mouse.
10488 (make_lispy_event): Find the window io which the click occurred
10489 when processing mouse_click events, instead of trusting the window
10490 tree in the signal-handling code. Include the buffer position in
10493 * xterm.c (construct_mouse_click): Return the click's screen, not
10494 its window, and don't bother updating Vmouse_window. Calculate
10495 the row and column of text-area clicks using
10496 pixel_to_glyph_translation, since we know that those data
10497 structures are alive in signal handlers.
10499 * screen.c (window_from_coordinates,
10500 Flocate_window_from_coordinates): Moved these to window.c, since I
10501 need to be able to call them even if we don't have multi-screen
10503 (syms_of_screen): Removed defsubr for
10504 Flocate_window_from_coordinates.
10505 * window.c (window_from_coordinates, Flocate_window_from_coordinates):
10507 (syms_of_window): Here is the defsubr.
10509 * keyboard.c (note_mouse_position): New function to enqueue
10510 mouse movement events properly.
10511 (current_movement_event): New variable, to support the above. See
10512 its comment for more explanation.
10514 * termhooks.h (struct input_event): Change the .window member to
10515 .screen, make it a struct screen *, and indicate that those events
10516 which used to return windows now return screens. It is unsafe
10517 for the event reader to traverse the window structure, because it
10518 can be called by a signal handler.
10520 1991-05-10 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10522 * keyboard.c (Vignore_mouse_events): Variable deleted.
10523 (make_lispy_event): For mouse and scrollbar clicks, return the
10524 position as a pair of numbers, not a list of two numbers.
10526 1991-05-09 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
10528 * keyboard.c (do_mouse_tracking): Define this variable, which
10529 controls whether kbd_buffer_read_char will ignore button up and
10530 mouse movement events.
10531 * termhooks.h: Declare do_mouse_tracking here.
10533 * xterm.h (STANDARD_EVENT_SET): New constant, giving the event
10534 mask all the windows use.
10536 * xfns.c (Vx_send_mouse_movement_events): Removed this variable;
10537 XTmouse_tracking_enable and do_mouse_tracking do its job better.
10538 (syms_of_xfns): Remove the DEFVAR_LISP for the above.
10539 (x_window): Don't ask for any pointer motion events or button
10540 release events by default; use the unmodified STANDARD_EVENT_MASK.
10541 The user will ask for them explicitly if he or she wants them.
10542 And don't ask for backing store.
10544 * xterm.c (XTmouse_tracking_enable): New function to
10545 request/unrequest detailed mouse tracking information of the
10546 server, and set the flag used by XTread_socket.
10547 (x_term_init): Set mouse_tracking_enable_hook to
10548 XTmouse_tracking_enable here.
10549 (XTread_socket): Handle mouse movement events by calling
10550 note_mouse_position.
10552 * xterm.c (XTread_socket): For MapNotify events, go ahead and set
10553 the screen's visible flag, so Expose events will work. Clear the
10556 * editfns.c (Finsert_char): Return immediately if n <= 0, not just
10557 if n < 0, so that the `while' below does not become an infinite
10560 * term.c (mouse_tracking_enable_hook): Added this variable to
10561 allow emacs to request that the window system start or stop
10562 detailed mouse tracking.
10563 * termhooks.h (mouse_tracking_enable_hook): Declare it here.
10565 * xfns.c: Declare the functions before initializing
10566 x_screen_parm_table to point to them.
10568 * xterm.c (XTread_socket): Don't send Qmapped_screen,
10569 Qunmapped_screen, Qexited_scrollbar, Qexited_window,
10570 Qredraw_screen - these are not features that we want to support.
10572 1991-05-07 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10574 * editfns.c (Finsert_char): Let strlen be the minimum of n and
10575 256, not the maximum, so we use an n-byte buffer when n < 256, and
10576 a 256-byte buffer many times when n > 256.
10578 1991-05-05 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10580 * keymap.c (Fkeymapp): Fixed docstring to give the right
10581 definition of a keymap.
10583 1991-05-03 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10585 * data.c (Fcompiled_function_p): New function.
10587 1991-05-03 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10589 * xfns.c (struct x_screen_parm_table): New type for recording
10590 information about screen parameters.
10591 (x_screen_parms): New table describing the existing parameters.
10592 (init_x_parm_symbols, x_set_screen_param): Use x_screen_parms
10593 instead of a large switch statement.
10594 (x_figure_window_size): Make the default case of the switch call
10595 abort instead of signaling an error, since window_prompting's
10596 value is internally generated.
10598 1991-05-01 Jim Blandy (jimb@churchy.gnu.ai.mit.edu)
10600 * keymap.c (describe_map_tree): GCPRO the maps variable;
10601 Fkey_description calls Fmapconcat, which eventually calls
10602 Ffuncall, which can garbage-collect.
10604 1991-04-28 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10606 * dispnew.c (buffer_posn_from_coords): Use the information in bufp
10607 to reduce the distance compute_motion must scan, when possible.
10609 1991-04-27 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10611 * keyboard.c (syms_of_keyboard): Qtop_level is initialized and
10612 staticpro'd in syms_of_data too. Don't staticpro (or initialize)
10615 * macros.c (syms_of_macros): Since executing-macro and
10616 executing-kbd-macro are actually the same variable, use
10617 DEFVAR_LISP_NOPRO for the second one so it doesn't get staticpro'd
10620 * process.c (syms_of_process): Don't staticpro or initialize Qexit
10621 here, since syms_of_eval already does this and it's bad to
10622 staticpro something twice.
10623 (Qexit): Remove declaration here, so there will be a compilation
10624 error if someone rearranges eval.c without fixing the Qexit stuff.
10625 * eval.c (syms_of_eval): Add comment here to say that
10626 syms_of_process cares about Qexit too.
10628 * lread.c (init_obarray): Don't staticpro Vobarray, since the
10629 DEFVAR_LISP in syms_of_read takes care of that.
10631 1991-04-22 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10633 * window.c (save_window_save): Always get the selected window's
10634 value of point from its buffer, not just when it's also the
10637 * lisp.h (Qdisabled): Declare this here so that the keys_of_*
10638 files can disable the commands they define.
10639 * casefiddle.c (keys_of_casefiddle): Make upcase-region and
10640 downcase-region disabled, by default.
10642 1991-04-16 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10644 * bytecode.c (PUSH): Alliant can't be bothered to implement the
10645 preincrement operator right, so use a comma.
10647 * print.c (syms_of_print): staticpro Qexternal_debugging_output.
10649 * editfns.c (clip_to_bounds): No longer static - used in window.c.
10650 * window.c (unshow_buffer): Use clip_to_bounds to make sure we
10651 change point to something legal.
10653 1991-04-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10655 * sysdep.c: Changes in formatting and comments.
10657 1991-04-12 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
10659 * editfns.c (Fbuffer_substring): Don't call make_string, because
10660 it may cause a compaction and move the buffer, and then copy the
10663 * keyboard.c (read_char): Only GC if we've actually done enough
10664 consing since the last gc to make it worthwhile.
10666 1991-04-11 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10668 * keymap.c (access_keymap): Canonicalize the order of the
10669 modifiers when you look up a symbol in a keymap, too.
10670 (where-is-internal): If the keymap in which we found the
10671 definition was reached by meta-prefix-char, replace it with the
10674 * eval.c (Fcondition_case): Initialize the `handler_list' member
10677 * keyboard.c (read_char): Reset recent_keys_index when it is
10678 greater than OR EQUAL to the number of elements in recent_keys,
10681 * keymap.c (access_keymap): When fetching the car of listy events,
10682 no need to call Fcar_safe - extract the car directly.
10683 * keyboard.c (read_key_sequence): Don't extract the car from listy
10684 events here since 1) it strips information that we need from the
10685 events, and 2) access_keymap will take care of that for us.
10687 * macros.c (Qexecute_kbd_macro): New variable, used by
10689 (syms_of_macros): Initialize and staticpro Qexecute_kbd_macro.
10690 * lisp.h: Add extern declaration for Qexecute_kbd_macro.
10691 * keyboard.c (Fcommand_execute): Add an entry to the command
10692 history for keyboard macros too.
10694 * xterm.c (XTread_socket): If we get a MappingNotify event whose
10695 request == MappingKeyboard, someone has changed the keyboard
10696 mapping, and we should get the new mapping with
10697 XRefreshKeyboardMapping.
10699 1991-04-10 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
10701 * commands.h: Declare last_command_char to be a Lisp_Object, not
10704 * cmds.c (Fself_insert_command): If last_command_char is not an
10706 * minibuf.c (Fself_insert_and_exit): Same thing.
10708 * keyboard.c (format_modifiers): New function, factoring out code
10709 from modify_event_symbol and reorder_modifiers.
10710 (modify_event_symbol): Call format_modifiers instead of doing the
10712 (reorder_modifiers): New function to put the modifiers on a
10713 modified symbol in the canonical order.
10715 * keymap.c (modify_event_symbol): Prepend the modifiers so they
10716 appear in the canonical order: `M-C-S-U-'.
10717 (store_in_keymap): If IDX is a symbol, put the modifiers in the
10718 canonical order before storing.
10720 1991-04-09 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10722 * keymap.c (Flocal_set_key, Fglobal_set_key): When checking types
10723 of arguments, allow KEYS to be a vector or string, not just a
10725 (keymap_table): New static function to replace duplicated code in
10726 access_keymap and store_in_keymap.
10727 (access_keymap): Use keymap_table.
10728 (store_in_keymap): Use keymap_table, and put non-character
10729 definitions in dense keymaps *after* the vector.
10731 * fileio.c (directory_file_name): Remove trailing slashes from
10732 single-letter names like "a/" too. Let slen be the string length,
10733 not one less than the string length.
10735 * keyboard.c (Fset_input_mode): Don't complain that QUIT isn't an
10736 ASCII character if it is nil - it is an optional parameter.
10738 * keymap.c (Faccessible_keymaps): Use meta-characters in the key
10739 sequences returned, carefully making sure that the sequences still
10740 appear in order of increasing length.
10742 1991-04-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10744 * vmsfns.c (vms_trnlog): Increased size of str to 256 elements.
10745 (vms_symbol): Increased size of str to 1025 elements.
10747 1991-03-24 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10749 * dispnew.c (pixel_to_glyph_translation): Moved this function to
10750 xterm.c, since it is specific to X and only called by the X code.
10751 * xterm.c (pixel_to_glyph_translation): Here it is.
10753 1991-03-22 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10755 * s-usg5-4.h (DATA_SEG_BITS): Definition deleted.
10756 * m-intel386.h (DATA_SEG_BITS): Define here if USG5_4.
10758 1991-03-22 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10760 * keymap.c (Faccessible_keymaps): Produce meta-characters in the
10761 key sequences instead of [meta-prefix-char CHAR] sequences.
10763 1991-03-21 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10765 * keymap.c (Flookup_key): If KEY is a zero-length array, then
10766 return KEYMAP; this is more algebraically satisfying.
10768 * dispnew.c (Fsit_for): If the time to sit is zero and there is no
10769 input available, then return Qt, not Qnil.
10771 * keyboard.c (read_char): If a quit occurs and we return
10772 quit_char, clear Vquit_flag, so we don't end up returning it again
10773 and again... All lisp code does this manually if they call
10774 read-char with quits inhibited, so it's the right thing to do.
10776 1991-03-20 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10778 * keyboard.c (read_char): If there is still no input available
10779 after an auto-save, do a garbage-collection.
10781 * undo.c (truncate_undo_list): Always leave at least one undo
10782 record in the undo list. And use sizeof (struct Lisp_Cons), etc.
10785 * keyboard.c (read_char): When deciding whether to wrap
10786 recent_keys_index back to 0, compare it against
10787 sizeof (recent_keys)/sizeof(recent_keys[0]),
10788 not sizeof (recent_keys).
10789 (quit_char): This can't be anything but an ASCII character, so it
10790 shouldn't be a Lisp_Object. The declaration's comment says why.
10791 (read_char, init_keyboard): Treat quit_char as an int now.
10792 (Fset_input_mode): As above, and signal an error if QUIT is not an
10795 * callint.c (Fprefix_numeric_value): Use XFASTINT to initialize
10798 * fileio.c (Fmake_symbolic_link): Don't expand FILENAME; this
10799 would make it impossible to make a link to a relative name.
10801 1991-03-19 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10803 * keyboard.c (syms_of_keyboard): Removed the DEFVAR_BOOL for
10804 meta-flag. This cannot be a lisp variable because we need to
10805 change the terminal settings whenever this flag changes. Change
10806 this through set-input-mode instead.
10808 1991-03-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10810 * keyboard.c (read_avail_input): Raise SIGHUP if no input on AIX.
10812 1991-03-19 Jim Blandy (jimb@churchy.ai.mit.edu)
10814 * keyboard.c (kbd_buffer_store_event, kbd_buffer_read_char)
10815 (read_key_sequence, Fexecute_extended_command, Fset_input_mode)
10816 (init_keyboard, syms_of_keyboard): Use XSET (var, Lisp_Int, exp)
10817 instead of XSETINT (var, exp) in those cases where var is not
10818 known to already be a Lisp_Int.
10819 * search.c (skip_chars): Same.
10820 * xterm.c (construct_mouse_click, XTread_socket): Same.
10821 * callint.c (Fprefix_numeric_value): Make sure to return a
10822 Lisp_Int even when RAW is a cons whose car is not a Lisp_Int.
10823 * process.c (sigchld_handler): When searching for a process whose
10824 pid is -1, make sure that the pid is an int first, since network
10825 streams are in Vprocess_alist too.
10827 * keyboard.c (syms_of_keyboard): Added DEFVAR_BOOL for
10828 meta-flag. Emacs 18 had this, and I see no entry in the ChangeLog
10829 saying that it was purposefully removed.
10831 1991-03-17 Jim Blandy (jimb@geech.ai.mit.edu)
10833 * keymap.c (Fcopy_keymap, Faccessible_keymaps, describe_map)
10834 (append_key): Minor typos and brainos corrected.
10836 * keyboard.c (read_char): Removed code to find the vector in a
10837 (kbd-macro . VECTOR) - style macro, since the macro is represented
10838 by the vector itself.
10839 (read_char_menu_prompt): Changed to correctly recognize the new
10840 dense keymap structures.
10841 (read_key_sequence): Changed code that checks for keymapness to
10842 use get_keymap_1 instead of doing the indirection and keymapness
10844 (Fcommand_execute): A keyboard macro is now a string or a vector.
10845 (Fexecute_extended_command): When expanding this_command_keys,
10846 remember that it is now an array of Lisp_Objects, not chars.
10848 * doc.c (Fdocumentation): Rearranged into a switch statement, and
10849 made vectors macros, not keymaps.
10851 * eval.c (Fcommandp): Removed code to recognize
10852 (kbd-macro . VECTOR) as a command, and added code to recognize
10853 vectors as commands.
10854 * macros.c (Qkbd_macro): Variable deleted.
10855 (syms_of_macros): Initialization of Qkbd_macro removed.
10857 1991-03-14 Jim Blandy (jimb@pogo.ai.mit.edu)
10859 * minibuf.c (keys_of_minibuf): Changed all calls to
10860 initial_define_lisp_key to calls to initial_define_key.
10862 * keymap.c (describe_map): Adjusted to handle the new style of
10865 1991-03-14 Richard Stallman (rms@mole.ai.mit.edu)
10867 * fileio.c (Fwrite_region): On VMS, don't try rewriting old version.
10869 1991-03-14 Jim Blandy (jimb@pogo.ai.mit.edu)
10871 * keymap.c (Faccessible_keymaps): Adjusted to handle the new style
10873 (Fwhere_is_internal): Handle the new-style of keymaps.
10874 Additionally, only check to see if a match is shadowed by a
10875 binding in the local keymap when LOCAL_KEYMAP is non-nil, instead
10876 of comparing elt against DEFINITION yet again.
10877 (describe_map_tree): Handle key sequences that are vectors, as
10878 well as those that are strings.
10880 1991-03-13 Jim Blandy (jimb@churchy.ai.mit.edu)
10882 * commands.h, keymap.c (meta_map, control_x_map): Make these
10883 Lisp_Objects, not Lisp_Vectors.
10884 keymap.c (syms_of_keymap): Same.
10886 * keymap.c (Fuse_global_map): There is no longer any reason to
10887 insist that KEYMAP must be a dense keymap; delete the code that
10890 1991-03-12 Jim Blandy (jimb@wookumz.ai.mit.edu)
10892 * commands.h, lisp.h: Changed global_map and current_global_map to
10893 be Lisp_Objects, not Lisp_Vectors.
10894 keyboard.c (read_key_sequence): Same.
10895 keymap.c (Fkey_binding, Fglobal_key_binding, Fglobal_set_key)
10896 (Fuse_global_map, Fwhere_is_internal, describe_buffer_bindings)
10897 (syms_of_keymap): Same.
10899 * keymap.c (Fdefine_key): Braino: increment idx and clear metized
10900 flag even when the element of the key sequence isn't a character.
10901 (Flookup_key): Fix same braino.
10903 1991-03-10 Jim Blandy (jimb@wookumz.ai.mit.edu)
10905 * keymap.c (get_keyelt): Use access_keymap to resolve indirect
10906 entries, instead of duplicating its code.
10907 (Fcopy_keymap): Handle the new keymap structure.
10909 1991-03-09 Richard Stallman (rms@mole.ai.mit.edu)
10911 * eval.c (struct catchtag): New field handlerlist.
10912 (internal_catch, internal_condition_case): Set that field.
10913 (unbind_catch): Use it.
10915 1991-03-08 Richard Stallman (rms@mole.ai.mit.edu)
10917 * m-intel386.h (signal): Maybe define if USG.
10919 * keyboard.c (echo_char): Don't have space at end of echobuf.
10921 1991-03-07 Jim Blandy (jimb@albert.ai.mit.edu)
10923 * keyboard.c (syms_of_keyboard): Initialize mouse_syms, instead of
10924 doing func_key_syms twice. Don't deal with scrollbar_syms, since
10927 1991-03-06 Jim Blandy (jimb@pogo.ai.mit.edu)
10929 * keymap.c (access_keymap, store_in_keymap): Changed to handle the
10930 new style of keymaps.
10932 * fns.c (Fassq, Fcopy_alist): Changed docstring to promise to
10933 ignore elements of LIST that are not conses. See access_keymap
10934 and copy_keymap for a cheap excuse.
10936 1991-03-06 Richard Stallman (rms@mole.ai.mit.edu)
10938 * s-vms.h (DATA_START): Remove `+ 512'.
10940 1991-03-05 Jim Blandy (jimb@spiff.ai.mit.edu)
10942 * keymap.c (Fmake_keymap): Rewritten to construct the
10943 new dense keymap structure: (keymap VECTOR . ALIST). Docstring
10944 adjusted accordingly. This means that the keyboard macro
10945 stupidity (see Feb 27, keyboard.c) is no longer needed.
10947 1991-03-03 Richard Stallman (rms@mole.ai.mit.edu)
10949 * sysdep.c (MEMORY_IN_STRING_H): New compilation flag.
10950 * s-isc2-2.h: New file.
10952 1991-02-27 Jim Blandy (jimb@churchy.ai.mit.edu)
10954 * macros.c (Qkbd_macro): New variable, to hold the symbol
10955 `kbd-macro', which we use to tag vector-style keyboard macros.
10956 (syms_of_macros): Initialize and staticpro Qkbd_macro.
10958 * eval.c (Fcommandp): Recognize the new keyboard macros.
10960 * keyboard.c (Fcommand_execute): A keyboard macro is now a string,
10961 or a cons whose car is the symbol `kbd-macro' and whose
10962 cdr is a vector of events; previously, macros were strings or
10963 vectors, but that makes it difficult to tell the difference
10964 between macros and dense keymaps.
10965 (read_char): Handle the new macros correctly, and re-allocate
10966 this_command_keys correctly.
10968 1991-02-26 Richard Stallman (rms@mole.ai.mit.edu)
10970 * s-vms.h (calloc): Define like malloc, etc.
10972 1991-02-26 Jim Blandy (jimb@spiff.ai.mit.edu)
10974 * xterm.c (XTread_socket): Move enter_timestamp outside of the
10975 function; static variables inside functions don't always work in
10978 * editfns.c (in_accessible_range): Deleted - insufficiently
10980 (clip_to_bounds): New function, much like in_accessible_range,
10981 except that the upper and lower bounds are arguments.
10982 (goto_char, save_restriction_restore): Rewritten to use
10983 clip_to_bounds instead of in_accessible_range.
10985 1991-02-25 Jim Blandy (jimb@pogo.ai.mit.edu)
10987 * keymap.c (initial_define_lisp_key): Turn KEY into a Lisp_Int
10988 before passing it to store_in_keymap.
10990 * buffer.c (reset_buffer_local_variables): Don't try to initialize
10991 the buffer's mouse_map and function_key_map fields, since they
10992 don't exist anymore.
10994 * macro.c (kbd_macro_buffer, kbd_macro_ptr, kbd_macro_end): These
10995 are now all pointers to Lisp_Objects instead of chars.
10996 (Fend_kbd_macro): Use make_sequence.
10997 (store_kbd_macro_char): Argument c is now a Lisp_Object. Change
10998 call to xrealloc to ask for Lisp_Objects instead of chars. Set
10999 kbd_macro_end to the same place in the new buffer as it was in the
11000 old one, not to the end of the buffer.
11001 (Fexecute_kbd_macro): Allow MACRO to be a string or a vector.
11002 (syms_of_macros): Allocate Lisp_Objects instead of chars for
11005 * alloc.c (make_sequence): New function, useful to keyboard.c and
11007 * keyboard.c (Fread_key_sequence): Use make_sequence.
11008 (Fthis_command_keys): Use make_sequence.
11010 1991-02-24 Jim Blandy (jimb@churchy.ai.mit.edu)
11012 * keymap.c (Fwhere_is): If the command can't be found, the message
11013 is now "foobie is not on any key.", instead of "... any keys.".
11015 * keyboard.c (input_poll_signal): Pass 0 to read_avail_input,
11016 instead of `&junk'. Removed variable `junk'.
11017 (command_loop_1): Updated to handle the unified function key/mouse
11018 event/keystroke arrangement.
11019 (Finput_pending_p): Removed vestiges of code to handle
11020 unread_input_char value of -1, since this doesn't happen anymore.
11021 (read_char): Adapted to handle lispy events.
11022 (read_char_menu_prompt): Allocate `menu' buffer using alloca,
11023 instead of a variable-sized array, which is gcc-specific.
11024 (Frecent_keys): Return the most recent "keystrokes" as a vector,
11025 to accommodate lispy events.
11026 (Fset_input_mode): Accommodate non-characters as quit keys. If
11027 this is a bad thing, init_sys_modes will tell us.
11028 (init_keyboard): this_command_keys is now an array of
11029 Lisp_Objects; adjust the amount of storage we request to hold it.
11030 Remember that quit_char can be any keystroke.
11031 (syms_of_keyboard): last_command_char, last_input_char, help_char,
11032 menu_prompt_more_char and meta_prefix_char are now DEFVAR_LISPs
11033 instead of DEFVAR_INTs.
11035 1991-02-24 Richard Stallman (rms@mole.ai.mit.edu)
11037 * process.c (wait_reading_process_input): Use NETCONN_P.
11039 1991-02-23 Jim Blandy (jimb@pogo.ai.mit.edu)
11041 * keyboard.c (recent_keys, this_command_keys)
11042 (menu_prompt_more_char, help_char, last_command_char, quit_char)
11043 (last_input_char): Changed to Lisp_Objects, so we can use function
11045 (Vglobal_function_map): Variable deleted.
11046 (echo_char): Echo function keys too. The argument C is now a
11047 Lisp_Object instead of a char.
11048 (Fread_key_sequence): Removed sludge to handle window events
11049 specially, and added sludge to handle sequences with
11050 non-characters in them.
11051 (classify_object): Elided, since this should go away soon.
11052 (read_key_sequence): Adapted to look up symbols in keymaps,
11053 just like characters.
11055 1991-02-23 Richard Stallman (rms@mole.ai.mit.edu)
11057 * process.c (send_process): Handle EAGAIN like EWOULDBLOCK.
11059 1991-02-22 Jim Blandy (jimb@pogo.ai.mit.edu)
11061 * doc.c (substitute_command_keys): Call describe_map_tree with
11062 only three arguments, since the CHARTAB arg has been disposed of.
11064 * keymap.c (Fcurrent_global_map, Fuse_local_mouse_map): Functions
11065 deleted, since the mouse maps are no longer separate from the key
11067 (append_key): New function, which handles tacking a single
11068 keystroke on the end of a key sequence, promoting strings to
11069 vectors when needed.
11070 (Faccessible_keymaps): Adjusted to return vectors for key
11071 sequences, when necessary.
11072 (Fkey_description): Removed stuff to handle mouse buttons and
11073 other things specially, since this work will go into
11074 Fsingle_key_description.
11075 (Fsingle_key_description): SIMPLIFIED to handle everything
11076 correctly! Jeepers!
11077 (Fwhere_is_internal): Scan the assoc-list at the end of dense
11078 keymaps, and construct strings or vectors.
11079 (where_is_string, describe_buffer_bindings): Simplified by
11080 deleting code to handle mouse button bindings specially.
11081 (describe_map_tree): Removed CHARTAB argument; this was
11082 a kludge to print out mouse events nicely, and is no longer
11083 necessary. Nobody was using it anyway.
11084 (describe_map): Removed ugly hack to handle mouse buttons
11085 specially, added code to describe alists on dense keymaps, and
11086 removed CHARTAB argument.
11087 (describe_alist): Made to handle bindings of symbols as well as
11088 characters. Removed CHARTAB argument.
11089 (describe_vector): Removed CHARTAB argument, allocated KLUDGE
11090 outside of loop and GCPRO'd it.
11091 (syms_of_keymap): Remove last vestiges of Vglobal_mouse_map,
11092 Vmouse_button_names, Suse_local_mouse_map,
11093 Scurrent_local_mouse_map.
11095 * buffer.h (struct buffer): Removed mouse_map and function_key_map
11096 members, since they are now handled by the keymap element.
11098 * keyboard.c (syms_of_keyboard): Change initialization of
11099 meta_prefix_char, since it's now a Lisp_Object.
11101 * keymap.c (Fkeymapp): Rewrote this to use get_keymap_1; now it's
11102 a one-liner instead of a 13-liner.
11103 (DENSE_TABLE_SIZE): Created new constant for the # of lookup-style
11104 entries in a dense keymap, and the index of the map's assoc list.
11105 Used it where appropriate.
11106 (Fcopy_keymap): Notice that 129'th element in dense keymaps.
11107 (Fdefine_key, Flookup_key): Reworked to deal with vectors of
11108 symbols and characters as well as strings for key sequences.
11109 (meta_prefix_char): Changed from an int to a Lisp_Object.
11111 1991-02-21 Richard Stallman (rms@mole.ai.mit.edu)
11113 * fileio.c (report_file_error): Don't downcase "I/O".
11115 1991-02-20 Jim Blandy (jimb@geech.ai.mit.edu)
11117 * keymap.c (access_keymap): Allow IDX to be any sort of bindable
11118 event, and deal with the extended keymaps. IDX is now a
11119 Lisp_Object instead of an int, obviously.
11120 (store_in_keymap): Allow IDX to be any sort of bindable event, and
11121 deal with the extended keymaps. IDX is now a Lisp_Object.
11123 * xterm.c (construct_mouse_click): Add code to set the up_modifier
11124 bit for ButtonRelease events.
11126 * keyboard.c (kbd_buffer_store_event): Use XFASTINT and XSETINT to
11127 access event->code, since it's a Lisp_Object.
11128 (kbd_buffer_read_char): Golly, perhaps we should increment
11129 kbd_fetch_ptr to remove the event we just read from the queue.
11130 (modify_event_symbol): Stupid fixes: correctly look up unmodified
11131 symbols when cache entry has a modified symbol vector. And, when
11132 first adding the modified symbol vector, copy the old slot value
11135 1991-02-19 Jim Blandy (jimb@pogo.ai.mit.edu)
11137 * keyboard.c (command_loop_1): #if 0 the block of code which
11138 handles mouse events and other lispy events specially, since I
11139 hope it will go away soon.
11141 * dispnew.c (Fsleep_for_millisecs): Pass all four arguments to
11142 wait_reading_process_input, instead of just the first two.
11144 * process.c (wait_reading_process_input): Remove support for
11145 only waiting for mouse input, since that has been superseded.
11146 This removes X dependencies from process.c, and eliminates some
11147 references to code that should only exist when using X10.
11149 * keyboard.c (mouse_moved_symbol, redraw_screen_symbol,
11150 mapped_screen_symbol, unmapped_screen_symbol,
11151 exited_window_symbol, exited_scrollbar_symbol): Renamed to
11152 Qmouse_moved, Qredraw_screen, Qmapped_screen, Qunmapped_screen,
11153 Qexited_window, Qexited_scrollbar, just as done in xterm.c.
11154 (classify_object): Removed code to look up a function key in the
11155 global and local function key keymaps, since this will be done
11157 (Fexecute_mouse_event): Elided this function with a #if 0; I
11158 think it will go away once the more general keymap stuff is
11159 implemented, but I'm not sure.
11160 (syms_of_keyboard): Removed defsubr for Sexecute_mouse_event.
11161 (where_is_string, describe_buffer_bindings, syms_of_keymap):
11162 Elided code to handle mouse button bindings specially; I hope this
11165 * lread.c (syms_of_lread): Change defsubr for eval-buffer to
11166 defsubr for eval-current-buffer.
11168 * keymap.c (syms_of_keymap): defvar for Vglobal_function_map
11169 removed, since that variable has disappeared.
11171 * xterm.c (x_func_key_to_sym): Removed entirely, since we no
11172 longer convert X keycodes to symbols in this section of code.
11173 (x_convert_modifiers): New function to turn the X modifier bits
11174 into struct input_event modifier bits.
11175 (encode_mouse_button): Removed, since this work isn't done here
11177 (Vx_send_mouse_movement_events): Add an extern declaration for
11180 * termhooks.h: Only define struct input_event if the module
11181 has previously #included lisp.h; this avoids forcing simple modules
11182 like cm.c to #include lisp.h.
11184 * term.c: #include "lisp.h" before #including "termhooks.h", since
11185 the latter uses Lisp_Objects now.
11187 * xfns.c (syms_of_xfns): Delete the defsubr for Sx_window_id,
11188 since Fx_window_id is gone.
11190 * xterm.c (construct_mouse_event): Construct a struct input_event
11191 instead of a lispy event.
11193 * screen.c (coordinates_in_window): Added explanatory comment.
11194 (window_from_coordinates): Change PART, whose returned values are
11195 dependent on X-windows, to be called MODELINE_P, with appropriate
11197 * xterm.c (notice_mouse_movement): Handle the X-windows dependent
11198 stuff that used to be in window_from_coordinates here instead.
11199 (XTread_socket): Modified to produce struct input_events
11200 instead of lispy events.
11202 1991-02-18 Jim Blandy (jimb@pogo.ai.mit.edu)
11204 * termhooks.h: Added up_modifier to the enum for modifier bits;
11205 this bit will be applied to mouse events.
11206 (struct input_event): Changed specification of non_ascii_keystroke
11207 events to send the function key number instead of a symbol.
11208 * keyboard.c (modify_event_symbol): Re-arranged to work well
11209 with function key/mouse button numbers instead of symbols.
11210 And if (MODIFIERS & up_modifier), prepend "U-" to the name of the
11211 symbol being constructed.
11212 (make_lispy_event): Use the new modify_event_symbol.
11214 * xterm.c (notice_mouse_movement): Adjusted this function to
11215 work with a struct input_event instead of producing an
11218 * xterm.c, xfns.c: Made all references to x_mouse_queue,
11219 x_expose_queue, and the functions which manipulate them
11220 conditional on having X10, since only X10 code ever places
11221 anything in these queues.
11223 1991-02-15 Jim Blandy (jimb@pogo.ai.mit.edu)
11225 * termhooks.h: Define struct input_event, to represent input
11226 events while they sit in the keyboard input buffer. Using lisp
11227 objects to represent input events is a bad idea because the
11228 routines which enqueue them can be called from signal handlers,
11229 and therefore should not cons.
11231 * keyboard.c (kbd_buffer, kbd_fetch_ptr, kbd_store_ptr): Change
11232 these to be of type `struct input_event *'.
11233 (kbd_buffer_store_event): Manipulate struct input_events instead
11235 (make_lispy_event): New function, to construct a lisp-style event
11236 corresponding to a particular struct input_event.
11237 (modify_event_symbol): New function, to add modifier prefixes to a
11238 symbol, and look the new symbols up quickly if they've already
11240 (kbd_buffer_read_char): Call make_lispy_event to turn the thing
11241 in the keyboard buffer into the form that read_char is expecting.
11242 (Qwith_modifier_keys): Define this new symbol variable.
11243 (syms_of_keyboard): Initialize and protect Qwith_modifier_keys.
11245 * xterm.c (init_input_symbols): Rearranged the code that produces
11246 the func_key_syms array.
11247 (x_func_key_to_sym): Simplified, since more will be handled in
11249 (XTread_socket): When handling KeyPress events, don't pass the
11250 state of the modifier keys to x_func_key_to_sym, since it doesn't
11253 * sysdep.c (kbd_input_ast, end_kbd_input, read_input_waiting):
11254 Rename kbd_buffer_store_char to kbd_buffer_store_event.
11256 * keyboard.c (stuff_buffered_input): Since the keyboard buffer
11257 holds lisp objects, only stuff entries that are Lisp_Ints, and
11258 XINT them before passing them to stuff_char.
11259 (kbd_buffer_store_char): Make this not a static function, since
11260 sysdep.c calls it. And rename it kbd_buffer_store_event.
11262 * keyboard.c (kbd_buffer, kbd_fetch_ptr, kbd_store_ptr): Made these
11263 variables static, to document the fact that they're only used
11266 1991-02-13 Jim Blandy (jimb@pogo.ai.mit.edu)
11268 * xterm.c (init_input_symbols): Remove the `xk-' prefix from all
11269 the function key symbols, since they're going to be used for
11270 function keys from all sorts of terminals, not just when running
11273 * lread.c (read_escape): Removed support for mouse button escapes
11274 (\S-, \U-, \C- applied to digits), because they're being replaced
11275 by something more rational.
11277 1991-02-09 Richard Stallman (rms@mole.ai.mit.edu)
11279 * buffer.c: Doc fix.
11281 * sysdep.c (dup2): Rewrite of non-F_DUPFD case.
11283 1991-02-08 Richard Stallman (rms@mole.ai.mit.edu)
11285 * m-intel386.h (LOAD_AVE_CVT): Add extra parens.
11286 * s-usg5-4.h (LIBX11_SYSTEM): #undef it.
11288 1991-02-07 Richard Stallman (rms@mole.ai.mit.edu)
11290 * s-esix.h: New version from kayvan.
11291 Adds HAVE_X11 conditional, NEED_PTEM_H, USG_SYS_TIME, USE_UTIME,
11292 LIBS_DEBUG; removes #undef sigsetmask, LIBS_SYSTEM, ESIX,
11295 1991-02-06 Richard Stallman (rms@mole.ai.mit.edu)
11297 * process.c (Faccept_process_output): Second arg gives timeout.
11299 1991-02-06 Jim Blandy (jimb@geech.ai.mit.edu)
11301 * lread.c (read_escape): Added support for \S- and \U- escapes (for
11302 binding mouse buttons), and noted that \C- must work on digits.
11304 * xterm.c (init_input_symbols): Was mistakenly renamed
11305 init_inputs; named back.
11307 * xterm.c (construct_mouse_click, encode_mouse_button): Rewritten
11308 to build new-style mouse events.
11310 * dispnew.c (update_line): Write a zero into obody[olen] to make
11311 sure the lines in current_screen->glyphs remain terminated.
11312 * xdisp.c (display_string, display_text_line): Don't write off
11313 the end of the line and destroy the zero terminator when expanding
11316 * fns.c (Fy_or_n_p): Accept C-] (usually abort-recursive-edit) as
11317 well as C-g to quit.
11319 1991-02-05 Jim Blandy (jimb@geech.ai.mit.edu)
11321 * sysdep.c, s-aix3-1.h, s-hpux.h, s-iris3-5.h, s-iris3-6.h,
11322 * s-irix3-3.h, s-rtu.h, s-sunos4-1.h, s-unipl5-0.h, s-unipl5-2.h,
11323 * s-usg5-0.h, s-usg5-2-2.h, s-usg5-2.h, s-usg5-3.h, s-xenix.h:
11324 Globally replaced INTERRUPTABLE with INTERRUPTIBLE.
11326 * xterm.c (construct_mouse_event): Renamed to
11327 construct_mouse_click, since there are kinds of mouse events
11328 besides clicks (movement, for example).
11329 (XTread_socket): Rename calls here.
11331 * xterm.c (mapped_screen_symbol, unmapped_screen_symbol)
11332 (exited_scrollbar_symbol, exited_window_symbol)
11333 (redraw_screen_symbol, mouse_moved_symbol): Renamed to
11334 Qmapped_screen, Qunmapped_screen, Qexited_scrollbar,
11335 Qexited_window, Qredraw_screen, Qmouse_moved, to agree with naming
11336 conventions elsewhere in Emacs.
11338 * xfns.c (text_part_sym, modeline_part_sym)
11339 (vertical_scrollbar_sym, vertical_slider_sym, vertical_thumbup_sym)
11340 (vertical_thumbdown_sym, horizontal_scrollbar_sym)
11341 (horizontal_slider_sym, horizontal_thumbleft_sym)
11342 (horizontal_thumbright_sym): Renamed to Qtext_part, Qmodeline_part,
11343 Qvscrollbar_part, Qvslider_part, Qvthumbup_part, Qvthumbdown_part,
11344 Qhscrollbar_part, Qhslider_part, Qhthumbleft_part,
11345 Qhthumbright_part, to agree with the naming conventions elsewhere
11348 * xterm.c (XTread_socket): While handling EnterNotify events,
11349 clear Vmouse_event here.
11350 (notice_mouse_movement): Don't clear it here.
11352 1991-02-04 Richard Stallman (rms@mole.ai.mit.edu)
11354 * s-sunos4-0.h: Renamed from s-sunos4.h.
11355 (read, write, open, close): Macro defs moved to s-sunos4-1.h.
11356 (INTERRUPTABLE_*): Likewise.
11357 * s-sunos4-1.h: New file.
11359 1991-02-04 Jim Blandy (jimb@churchy.ai.mit.edu)
11361 * keymap.c (Vglobal_mouse_map, Vglobal_function_map): Variables
11362 removed in preparation for conversion to unified keymap format.
11363 (Fmake_keymap): Make vector keymaps with 129 entries; the last
11364 will be an assoc-list for looking up symbols. Update docstring to
11365 describe 129'th element.
11366 (Fmake_sparse_keymap): Update docstring to say that you can bind
11367 symbols in these maps too.
11368 (Fkeymapp): Recognize 129-element vectors as keymaps, not
11369 128-element vectors.
11370 (get_keymap_1): wrong_type_argument can no longer return a new
11371 value supplied by the debugger; remove loop to support this.
11373 * xterm.c (XTread_socket): When handling EnterNotify events,
11374 enqueue fake mouse events iff Vx_send_mouse_movement_events !=
11377 * xfns.c (Fx_window_id): Function removed; Fscreen_parameters
11378 already provides this information.
11380 * xterm.c (x_term_init): Cleaned up the code to get the host name,
11381 and removed fixed limit on host name length.
11383 * window.c (Fscroll_other_window): Don't explicitly save
11384 current_buffer and point; the save_excursion will take care of
11387 * dispnew.c (safe_bcopy): Rewritten to handle overlapping regions
11388 with multiple calls to bcopy instead of a stupid copy loop.
11390 * xterm.c, xfns.c (Vscreen_part, Vx_send_movement_events): These
11391 variables renamed to Vmouse_screen_part,
11392 Vx_send_mouse_movement_events.
11394 * lread.c (Feval_buffer): Function deleted.
11395 (Feval_current_buffer): Removed "#if 0 ... #endif" around this
11398 1991-02-03 Richard Stallman (rms@mole.ai.mit.edu)
11400 * Makefile, ymakefile (SHELL): Force use of sh.
11402 * s-usg5-4.h (USG5_4): Define it.
11403 (LOAD_AVE_*): Don't define them.
11404 * m-intel386.h (LOAD_AVE_*): Define, if USG5_4.
11406 * buffer.c (Fbuffer_local_variables): Omit slots with no names.
11408 1991-02-03 Jim Blandy (jimb@geech.ai.mit.edu)
11410 * xterm.c (x_term_init, init_input_symbols): Moved these to the
11411 bottom of the file, 1) to be consistent with the other files, and
11412 2) so it can initialize some variables I want.
11414 1991-02-02 Jim Blandy (jimb@churchy.ai.mit.edu)
11416 * xterm.h: Added external declaration for x_focus_screen.
11418 * search.h: File deleted.
11419 * buffer.h: Declare searchbuf here instead.
11421 * screen.c (Ffocus_screen, Funfocus_screen): Moved these functions
11422 to xfns.c, since they're x-specific.
11423 (syms_of_screen): Removed defsubr calls for above.
11424 * xfns.c (Ffocus_screen, Funfocus_screen): Here they are.
11425 (syms_of_xfns): The defsubrs are here now.
11427 * buffer.h (PT): Make this expand to an expression which is not an
11428 l-value, to prevent people from assigning to it. If everyplace
11429 uses SET_PT, it will be easier to merge in the interval code.
11430 (point): Similar changes here.
11431 (SET_PT): This can no longer be written in terms of PT, so write
11432 out current_buffer->text.pt.
11434 * xterm.c (x_new_font): Rewritten to remove arbitrary limit on
11435 size of x_font_table.
11436 (x_font_table_size): Created new variable.
11437 (n_available_fonts, font_names, font_info, MAX_FONTS): Deleted
11438 these variables/macros.
11440 * dispnew.c (scroll_screen_lines): Instead of disabling the lines
11441 vacated by the scroll (i.e. zeroing enable), mark them as enabled
11444 * callint.c (Fcall_interactively): Move UNGCPRO down, so that
11445 stuff is protected while we build the command history entry and do
11448 * xterm.c (XTupdate_end): Turn cursor on, even if we don't
11449 currently have the focus.
11451 * minibuf.c (temp_echo_area_glyphs): Clear echo_area_glyphs and
11452 previous_echo_glyphs, so the message we're displaying will
11453 supersede any existing message.
11455 * keyboard.c: Removed external declaration of echo_area_glyphs,
11456 since it's declared in window.h.
11458 1991-01-31 Jim Blandy (jimb@pogo.ai.mit.edu)
11460 * xterm.c (XRINGBELL): Pass 0 as the second argument to XBell;
11461 respect the user's preferences.
11463 1991-01-30 Jim Blandy (jimb@pogo.ai.mit.edu)
11465 * xterm.c (x_draw_single_glyph): New function, created to simplify
11466 cursor drawing/undrawing.
11467 (x_display_box_cursor): Rewritten to properly handle the box
11468 cursor in its filled and hollow forms.
11469 * xterm.h (enum text_cursor_kinds): Added enum for the different
11470 kinds of cursors which might be displayed in a window.
11471 (struct x_display): Added member `text_cursor_kind' which says
11472 which kind of cursor is currently being displayed in the window, so
11473 we can arrange to redraw it effectively.
11475 * keyboard.c (command_loop_1): When handling the forward_char
11476 command, don't let point move to the location after the end of the
11479 * keyboard.c (poll_suppress_count): Define this even if
11480 POLL_FOR_INPUT is not defined, because this makes lots of #ifdef
11481 clauses unnecessary, and doesn't hurt, because
11482 {start,stop}_polling become nops.
11484 * config.h, config.h-dist: Make these #include "system.h" and
11485 "machine.h", and let the config script link these appropriately,
11486 instead of using the machine-specific names and expecting the user
11489 1991-01-29 Jim Blandy (jimb@churchy.ai.mit.edu)
11491 * window.c (Fdelete_window): sib is a Lisp_Object; treat it as
11494 * xterm.c (screen_unhighlight): When the focus leaves a screen,
11495 draw the cursor as a box instead of making it disappear entirely.
11497 1991-01-29 Richard Stallman (rms@mole.ai.mit.edu)
11499 * unexec.c (make_hdr) [TPIX]: Set f_hdr.f_nscns and f_thdr.f_scnptr.
11501 * sysdep.c [BROKEN_TIOCGWINSZ]: Undef TIOCGWINSZ.
11503 * process.c (wait_reading_process_input): Don't ignore
11504 a zero-length read on a network connection. Do close it.
11506 * sysdep.c (hft_init, hft_reset): Pass &junk as arg to HFQERROR.
11507 Do nothing if not HFT.
11509 1991-01-29 Jim Blandy (jimb@albert.ai.mit.edu)
11511 * xfns.h: Created, to declare things defined in xfns.c.
11512 Declare Vx_send_movement_events.
11513 * xfns.c: #include "xfns.h".
11514 (Vx_send_movement_events): Define this variable.
11515 (syms_of_xfns): DEFVAR_LISP it.
11516 * xterm.c: #include "xfns.h".
11517 (XTread_socket): Place a mouse-moved event in the buffer iff
11518 Vx_send_movement_events says to.
11520 1991-01-28 Jim Blandy (jimb@geech.ai.mit.edu)
11522 * ymakefile: Noted that callint.o depends on mocklisp.h,
11523 and dired.o on search.h.
11525 * environ.h: Deleted - its creation in the first place was misguided.
11526 callproc.h: Removed #include "environ.h", and added declarations
11529 * buffer.c (syms_of_buffer): Add more detailed documentation to
11532 * lisp.h (poll_suppress_count): Add external declaration for this here.
11534 1991-01-28 Richard Stallman (rms@mole.ai.mit.edu)
11536 * m-sun3-68881.h, m-sun3-fpa.h, m-sun3-soft.h: New files.
11538 1991-01-27 Jim Blandy (jimb@geech.ai.mit.edu)
11540 * lisp.h (struct handler): Add poll_suppress_count member, so
11541 we can restore poll_suppress_count when we handle an error.
11542 * eval.c (struct catchtag): Add it here too, for throws.
11543 (internal_catch, Fcondition_case, internal_condition_case): Record
11544 the value of poll_suppress_count here in the handler and catch tag.
11545 (Fthrow, Fsignal): Restore it here.
11547 1991-01-25 Jim Blandy (jimb@churchy.ai.mit.edu)
11549 * xterm.c (x_display_box_cursor): If we're undrawing the cursor by
11550 redrawing the character underneath it, draw according to that
11551 line's highlight, instead of assuming it's in the normal GC.
11553 1991-01-25 Richard Stallman (rms@mole.ai.mit.edu)
11555 * buffer.h (PTR_CHAR_POS): Value was too small by 1.
11557 1991-01-16 Richard Stallman (rms@mole.ai.mit.edu)
11559 * doprnt.c (doprnt): Check for overflow in fmtcpy.
11561 1991-01-16 Jim Blandy (jimb@churchy.ai.mit.edu)
11563 * window.c (Fdelete_window): If the deletee gives its space to its
11564 next sibling, that sibling needs to have its top/left side pulled
11565 back to where the deletee's is.
11567 1991-01-15 Jim Blandy (jimb@geech.ai.mit.edu)
11569 * doc.c (Fsnarf_documentation): Handle attaching docstrings to
11570 bytecode objects too.
11572 * syntax.h (syntax_spec_code): Make external declaration for this
11573 unsigned char to match the definition in syntax.c.
11575 * indent.c (compute_motion): Added comments describing how it
11578 1991-01-15 Richard Stallman (rms@mole.ai.mit.edu)
11580 * process.c (create_process): Use SETUP_SLAVE_PTY if defined.
11582 * s-usg5-4.h (HAVE_PTYS, HAVE_SETSID): Defined.
11583 (HAVE_WAIT_HEADER, WAITTYPE, wait3, WRETCODE): New macros.
11584 (TIOCSIGSEND): Alias for TIOCSIGNAL.
11585 (FIRST_PTY_LETTER): Overridden.
11586 (PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF, SETUP_SLAVE_PTY): New macros.
11588 * m-ibmrs6000.h (CANNOT_DUMP): Undefine it.
11589 (UNEXEC): Define it.
11590 (PURE_SEG_BITS, SHMKEY): Define only if CANNOT_DUMP.
11591 (LINKER): Override it. Then add -bnodelcsect.
11593 * xfns.c (Fx_get_default): Try reversing XGetDefault args if it fails.
11595 1991-01-13 Richard Stallman (rms@mole.ai.mit.edu)
11597 * s-usg5-4.h (LOAD_AVE_CVT): Cast value to int.
11599 * keyboard.c (read_avail_input): Signal SIGHUP if FIONREAD fails.
11601 * ymakefile: Put tokens after #endif into comment.
11603 * filelock.c (lock_file_owner_name): Declare argument type.
11605 * syntax.c (syntax_spec_code): Type now unsigned char.
11607 * process.c (wait_reading_process_input):
11608 Call status_notify even when not doing redisplay.
11610 * emacs.c (Fkill_emacs): Turn off SIGIO before exiting.
11612 * s-usg5-3.h (USG5_3): Define it.
11613 * m-ibmps2-aix.h [USG5_3]: Define TEXT_START as 0.
11614 Don't define DATA_START or DATA_END or TEXT_END or DATA_SEG_BITS.
11615 Override various other symbols at end of file.
11617 1991-01-12 Jim Blandy (jimb@churchy.ai.mit.edu)
11619 * window.c (window-configuration-p): Closing paren needed. Added.
11621 * keyboard.c (command_loop_1): When displaying a message over an
11622 active minibuffer, call Fsit_for with three arguments, not two.
11624 1991-01-12 Richard Stallman (rms@mole.ai.mit.edu)
11626 * s-irix3-3.h (HAVE_SYSVIPC): Defined.
11628 1991-01-12 Jim Blandy (jimb@pogo.ai.mit.edu)
11630 * dispnew.c (buffer_posn_from_coords): Compute_motion starting
11631 from bufp[y] instead of counting from the top of the window.
11633 1991-01-11 Richard Mlynarik (mly@pizza.ai.mit.edu)
11635 * window.c (window-configuration-p): Needed. Added.
11637 1991-01-11 Jim Blandy (jimb@churchy.ai.mit.edu)
11639 * dispnew.c (buffer_posn_from_coords): Remember to deduce space
11640 for the line continuation markers and the window separators from
11643 1991-01-11 Richard Stallman (rms@mole.ai.mit.edu)
11645 * m-tower32v3.h (VALBITS, GCTYPEBITS): Use 26 bits for pointer.
11647 1991-01-10 Richard Stallman (rms@mole.ai.mit.edu)
11649 * fileio.c (Fcopy_file): Always close descriptors.
11651 * s-sunos4.h: read, write, open and close are interruptible.
11653 1991-01-09 Jim Blandy (jimb@churchy.ai.mit.edu)
11655 * xterm.c, dispnew.c (pixel_to_char_translation): Renamed to
11656 pixel_to_glyph_translation, and rewritten. Just get coordinates,
11657 don't return anything.
11658 (buffer_posn_from_coords): New function - given a window and
11659 co-ordinates on the screen, find the buffer position at those
11662 1991-01-08 Jim Blandy (jimb@geech.ai.mit.edu)
11664 * alloc.c (Fmake_byte_code): Flesh out docstring.
11666 * window.c (window_loop): Pick the first window correctly, even
11669 * dispnew.c (scroll_screen_lines): Don't forget to call
11670 update_begin at the top of the down-scrolling section.
11671 And rotate by amount, not -amount, in the up-scrolling section.
11673 * xterm.h (MAX_FONTS, x_font_table, n_fonts): Removed external
11674 declarations for these variables, since they're declared static in
11675 xterm.c and not used elsewhere.
11676 * xterm.c (MAX_FONTS): Moved definition of this to here from
11679 * xterm.c (x_new_font): If you can't find the requested font,
11680 return a code which indicates this, instead of calling abort.
11682 1991-01-07 Jim Blandy (jimb@churchy.ai.mit.edu)
11684 * xdisp.c (redisplay, display_mode_line): To test
11685 Vglobal_minibuffer_screen for validity, you must check that its
11686 type is Lisp_Screen; comparing it to Qnil isn't good enough.
11688 * screen.c (syms_of_screen): Initialize Vglobal_minibuffer_screen
11689 to Qnil; otherwise, it inhibits decent redisplay (is that another
11692 * dispnew.c (init_display): Make sure that the standard input is a
11694 * emacs.c (main): Not here, since we don't know yet if we want to
11695 use a window system of some sort.
11697 * xfns.c (x_make_gc): Delete code to support default_face and
11698 highlight_face, since they're part of the interval code, and
11699 shouldn't be installed yet.
11701 * dispnew.c (init_display): Calculate_costs expects a screen
11702 parameter; pass selected_screen, instead of nothing.
11704 * search.c (Freplace_match): Protect STRING.
11705 * process.c (run_filter): New function.
11706 (read_process_output, exec_sentinel): Use run_filter to call the
11707 process's filter function.
11708 (status_notify): GCPro MSG.
11709 * process.c (Fopen_network_stream): Protect various args.
11710 * print.c (Fprin1_to_string, Fprint): Protect OBJ.
11711 * lread.c (Feval_region): Check type of B.
11712 * keymap.c (describe_alist): Protect ELT_PREFIX and TEM2.
11713 (describe_vector): Likewise for ELT_PREFIX and TEM1.
11715 1991-01-06 Richard Stallman (rms@mole.ai.mit.edu)
11717 * sysdep.c (init_sys_modes): Turn off VSUSP and V_DSUSP if they exist.
11720 1991-01-05 Jim Blandy (jimb@spiff.ai.mit.edu)
11722 * xselect.c (x_answer_selection_request): For incremental, set
11723 format to 32 and send only 1 element. Pass the address of size,
11725 (x_selection_arrival): For incremental, delete the property
11726 containing the size of the transfer. This generates a
11727 PropertyNotify to the owner, starting the exchange.
11729 * xrdb.c (get_user_app): Pass correct number of parameters to
11732 * xfns.c (x_window): Don't use backing store or saveunders; they
11733 seem to slow down suns.
11734 (x_icon): Set the InputHint to the window manager to False.
11735 (x_make_gc): Initialize gc_values.line_width to zero before
11736 creating the normal video GC, since it uses it. And set the
11737 default_face and hilite_face gcs here.
11738 (install_vertical_scrollbar): Add 2 to thumbdown y position, and
11741 * insdel.c (insert, del_range): Use SET_PT rather than assigning
11743 * window.c (Fselect_window): Here too.
11745 * xdisp.c (redisplay_all_windows): Removed static declaration for
11746 this nonexistent function.
11748 1991-01-04 Jim Blandy (jimb@pogo.ai.mit.edu)
11750 * window.c (window_loop): Neatened up. MINI being non-zero now
11751 makes it recognize active minibuffer windows. Iterates properly
11752 over multiple screens when asked nicely.
11753 (Fget_lru_window, Fget_largest_window): SCREENS arguments are now
11754 declared as a Lisp_Object, and documented.
11755 (Fget_buffer_window): SCREENS argument is now documented.
11756 (Fdelete_other_windows): Delete other windows on the argument
11757 window's screen, not the current screen.
11759 * screen.c (window_from_coordinates): Changed other reference to
11760 Fnext_window to use next_screen_window; see below.
11762 * window.c (Fnext_window, Fprevious_window): Accept non-nil, non-t
11763 values for mini, and don't turn off all-screens when mini is t but
11764 there is no global minibuffer screen. Remove screen_{root,mini}
11766 (Fother_window): Added second argument all_screens.
11768 * undo.c (record_delete): Removed dead variable llength.
11770 * data.c (Qkeyp, Fkeyp): Removed these and supporting code.
11771 * keymap.c (Fsingle_key_description): Report an error instead of
11772 calling wrong_type_argument.
11773 * lisp.h (Qkeyp): Removed external declaration for this.
11775 1991-01-03 Richard Stallman (rms@mole.ai.mit.edu)
11777 * search.c (search_buffer): Return starting position if count == 0.
11779 1991-01-02 Jim Blandy (jimb@pogo.ai.mit.edu)
11781 * scroll.c (do_scrolling): Use correct limits on loop to clear
11782 lines just inserted--old version lost a line.
11784 * screen.c: #ifdef HAVE_X_WINDOWS, #include xterm.h.
11785 (Ffocus_screen, Funfocus_screen): Use Joe's new definitions, and
11786 only define these functions ifdef HAVE_X_WINDOWS.
11787 (window_from_coordinates): Use next_screen_window instead of
11788 Fnext_window, so that global minibuffers work.
11790 * lread.c (syms_of_read): Don't forget to defsubr
11791 read-char-exclusive.
11793 * lisp.h (Fscreenp, Fselect_screen, Ffocus_screen)
11794 (Funfocus_screen, Fselected_screen, Fwindow_screen)
11795 (Fscreen_root_window, Fscreen_selected_window, Fscreen_list)
11796 (Fnext_screen, Fdelete_screen, Fread_mouse_position)
11797 (Fset_mouse_position, Fmake_screen_visible, Fmake_screen_invisible)
11798 (Ficonify_screen, Fdeiconify_screen, Fscreen_visible_p)
11799 (Fvisible_screen_list, Fscreen_parameters)
11800 (Fmodify_screen_parameters, Fscreen_pixel_size, Fscreen_height)
11801 (Fscreen_width, Fset_screen_height, Fset_screen_width)
11802 (Fset_screen_size, Fset_screen_position, Fcoordinates_in_window_p)
11803 (Flocate_window_from_coordinates, Frubber_band_rectangle): Added
11804 extern declarations for all these.
11806 * lisp.h (Qscreenp): Added an extern declaration for this.
11808 * lisp.h (DBL_DIG): Added constant for the maximum number of
11809 decimal digits a float could print to. Used in print.c.
11811 * keymap.c (Fkey_description): Produce pretty descriptions of
11812 mouse and window system events too.
11813 (Fsingle_key_description): Signal an error if obj is not a key.
11815 * data.c (Fkeyp, Qkeyp): Added predicate to recognize things which
11816 can be bound - this includes keys, symbols (for function keys and
11817 window system events), and conses (for mouse events).
11818 * lisp.h (Qkeyp): Added external declaration for this.
11820 * keyboard.c (Frecursive_edit): Don't specbind the standard IO here.
11821 (recursive_edit_1): Do it here, and don't forgot to unbind_to.
11823 (command_loop_1): Reset no_redisplay after mouse commands.
11825 (classify_object): Place the object in read_key_sequence_cmd.
11827 (Fread_key_sequence): Recognize that when read_key_sequence
11828 returns -1 or -2, it's a mouse event or window system event.
11830 1991-01-01 Jim Blandy (jimb@pogo.ai.mit.edu)
11832 * fileio.c (Fwrite_region): We should dereference GPT_ADDR[-1]
11833 before comparing it to '\n' for VMS cruft.
11834 (Fdo_auto_save): Don't call run-hooks before it's defined. This
11835 only happens before emacs is dumped, when loading inc-vers.el.
11837 * eval.c (Fsignal): TOTALLY_UNBLOCK_INPUT here.
11840 (Feval): We use argvals[0..5], so declare it to have six elements
11841 instead of just five.
11843 1990-12-30 Richard Stallman (rms@mole.ai.mit.edu)
11845 * eval.c (Fsignal): Don't ever return.
11846 Call error instead if user tries to use debugger to return.
11848 * eval.c (unbind_to): New second arg is value to return. gcpro it.
11849 All callers changed to pass the arg; if a caller uses unbind_to
11850 just before returning, it passes as this arg the value it wants
11851 to return, then it returns whatever comes back.
11853 1990-12-28 Jim Blandy (jimb@geech.ai.mit.edu)
11855 * print.c (print): Put obj in a non-register variable so
11856 we could gcpro it. Also fixed some syntax errors.
11858 * editfns.c (Fformat): Declare nstrings, and declare nstrings and
11859 strings in a local block.
11860 (Fformat): XFLOAT(args[n]) isn't a float; ->data is.
11862 1990-12-27 Richard Stallman (rms@mole.ai.mit.edu)
11864 * m-tower32.h: Add comments for how to optimize.
11865 * m-tower32v3.h: New file.
11867 * fileio.c (Fwrite_region): Save errno around unlock_file.
11869 1990-12-26 Richard Stallman (rms@mole.ai.mit.edu)
11871 * editfns.c (Fformat): Handle floats. Convert between int and float.
11872 Don't truncate value at null char coming from doprnt.
11873 * doprnt.c (doprnt): Replace tembuf with malloced buff if too small.
11874 Handle %e, %f and %g.
11876 1990-12-25 Richard Stallman (rms@mole.ai.mit.edu)
11878 * abbrev.c (Fexpand_abbrev): Use insert_from_string, not insert.
11879 (Funexpand_abbrev): Likewise.
11880 * doc.c (Fsubstitute_command_keys): Likewise.
11881 * editfns.c (Finsert, Finsert_before_markers): Likewise.
11882 * minibuf.c (Fminibuffer_complete_word): Likewise.
11883 * mocklisp.c (Finsert_string): Use insert1.
11884 * vmsfns.c (Fdefault_subproc_input_handler): Likewise.
11886 * print.c: Don't use strout for the text of a Lisp string.
11887 (print_string): New function to use instead.
11888 (print): Use print_string when no escapes needed.
11889 When printing with escapes, protect the string and check addr often.
11891 1990-12-24 Richard Stallman (rms@mole.ai.mit.edu)
11893 * insdel.c (insert_from_string): New function.
11895 1990-12-20 Richard Stallman (rms@mole.ai.mit.edu)
11897 * term.c (ins_del_lines): Handle scroll region wrt chars_wasted.
11899 1990-12-16 Jim Blandy (jimb@pogo.ai.mit.edu)
11901 * Globally renamed InsStr to insert_string.
11903 1990-12-15 Richard Stallman (rms@mole.ai.mit.edu)
11905 * s-usg5-3.h (USG_SHARED_LIBRARIES): Define it.
11907 * m-intel386.h (C_SWITCH_MACHINE): New macro.
11909 1990-12-15 Jim Blandy (jimb@pogo.ai.mit.edu)
11911 * alloc.c (STRING_FULLSIZE): Use sizeof(struct Lisp_String)
11912 instead of sizeof(int).
11914 1990-12-14 Jim Blandy (jimb@pogo.ai.mit.edu)
11916 * keyboard.c (Fread_key_sequence): Clear this_command_key_count
11917 here; who unfixed this?
11919 1990-12-12 Richard Stallman (rms@mole.ai.mit.edu)
11921 * abbrev.c (Fdefine_abbrevs): Don't crash when EXPANSION is nil.
11923 1990-12-11 Richard Stallman (rms@mole.ai.mit.edu)
11925 * eval.c (Fmacroexpand): Change handling of (foo . bar) in ENV.
11927 1990-12-10 Richard Stallman (rms@mole.ai.mit.edu)
11929 * m-pmax.h (SYSTEM_MALLOC): Define it.
11931 * process.c (wait_reading_process_input): Ignore failure with EIO.
11933 1990-12-09 Richard Stallman (rms@mole.ai.mit.edu)
11935 * m-iris4d.h (LOAD_AVE_CVT): Divide by 1024.
11936 (LIB_STANDARD): Use -lbsd first.
11937 (LIBS_MACHINE): Don't use -lbsd here.
11938 * s-irix3-3.h (ADDR_CORRECT): Macro deleted.
11939 (LIBS_MACHINE): Macro deleted.
11940 (LDAV_SYMBOL): Delete the `_' from start of symbol.
11942 * process.c (create_process): Delete duplicate sigsetmask.
11944 * m-ibmrt.h (RTPC_REGISTER_BUG, SHORT_CAST_BUG): Macros deleted.
11945 (C_SWITCH_MACHINE): Use -D to define alloca.
11946 (SIGN_EXTEND_CHAR): Use a cast.
11948 1990-12-05 Jim Blandy (jimb@pogo.ai.mit.edu)
11950 * keyboard.c (Fsuspend_emacs): Protect STUFFSTRING.
11951 (cmd_error): Protect TAIL while printing.
11952 (input_poll_signal, start_polling): Use polling_period.
11953 (syms_of_keyboard): Initialize it and make it a Lisp var.
11955 * fns.c (Fyes_or_no_p): Protect PROMPT for entire loop.
11957 * fileio.c (Frename_file): Protect args.
11958 * fileio.c (Fadd_name_to_file): Protect the args.
11959 (Fcopy_file, Fmake_symbolic_link): Likewise.
11960 (Finsert_file_contents): Protect FILENAME.
11962 1990-12-04 Jim Blandy (jimb@geech.ai.mit.edu)
11964 * eval.c (Fbacktrace): gcpro TAIL.
11965 * emacs.c (Fkill_emacs): gcpro ARG.
11966 * editfns.c (Fformat): Remove remains of gcpro'd args.
11968 * dispnew.c (syms_of_dispnew): Don't clobber Vwindow_system_version
11971 * dired.c (file_name_completion): Check that FILE is a string.
11973 * buffer.c (Fbury_buffer): Don't init BUF1.
11975 * doc.c (Fsubstitute_command_keys): Protect STR and don't keep a
11976 pointer to the middle of it.
11978 * m-hp9000s300.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Override for BSD.
11980 * process.c (sigchld_handler): Clear synch_process_alive if the
11981 dying process isn't in the table at all.
11982 * callproc.c (call_process_cleanup): Clear synch_process_alive.
11984 1990-12-03 Jim Blandy (jimb@geech.ai.mit.edu)
11986 * callproc.c (Fcall_process): Change synch_process_pid to
11987 synch_process_alive, as a general flag that we are waiting for
11988 a synchronous process to die. This obviates the need to block
11989 SIGCHLDs until we know the pid.
11990 * sysdep.c (wait_for_termination): Wait for synch_process_alive to
11993 * process.c (sigchld_handler): If pid not recognized, look for a
11994 process recorded with pid -1.
11995 (create_process): Set pid to -1 before the fork.
11996 Store correct pid right after the fork.
11997 Don't change sigchld handler on system V.
11999 * process.c (Fstart_process): Set BUFFER before other string vars
12000 so a gc in Fget_buffer_create won't clobber them.
12002 1990-11-30 Richard Stallman (rms@mole.ai.mit.edu)
12004 * keyboard.c (read_command_char): Save and restore getcjmp.
12006 1990-11-29 Richard Stallman (rms@mole.ai.mit.edu)
12008 * process.c (status_convert): Use WRETCODE for exited process.
12010 1990-11-26 Richard Stallman (rms@mole.ai.mit.edu)
12012 * s-usg5-4.h (LIB_STANDARD): Add libucb.a.
12013 (NEED_PTEM_H): Define this instead of NEED_SIOCTL.
12014 * m-ibm370aix.h, m-ibmps2-aix.h, m-ibmrs6000.h (NEED_SIOCTL):
12016 (NEED_PTEM_H): Likewise.
12018 * s-sunos4.h (O_NDELAY): Don't define this.
12020 * print.c (Fwith_output_to_temp_buffer): Don't eval first arg twice.
12022 1990-11-22 Richard Stallman (rms@mole.ai.mit.edu)
12024 * m-hp9000s300.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Alternate defs for BSD.
12026 1990-11-21 Jim Blandy (jimb@churchy.ai.mit.edu)
12028 * dispnew.c (init_display): Check if we're using a window system
12029 before trying to initialize the terminal. If someone has
12030 indicated that they want to use a window system, we shouldn't
12031 bother initializing the terminal. This is especially important
12032 when the terminal is so dumb that emacs gives up and doesn't bother
12033 using the window system.
12035 1990-11-20 Jim Blandy (jimb@churchy.ai.mit.edu)
12037 * print.c (Fexternal_debugging_output): Added new function which
12038 writes a character to stderr, for use when debugging emacs with
12041 1990-11-14 Jim Blandy (jimb@churchy.ai.mit.edu)
12043 * dispnew.c (window_change_signal): Used to assume that SIGWINCHes
12044 always applied to the currently selected screen. Now it scans the
12045 list of screens for a screen controlled by termcap, and changes that
12048 1990-11-13 Richard Stallman (rms@mole.ai.mit.edu)
12050 * fileio.c (err_str): New macro.
12051 (Finsert_file_contents, Fwrite_region): Use it in error messages.
12053 1990-11-12 Richard Stallman (rms@mole.ai.mit.edu)
12055 * insdel.c (del_range): Supply missing arg to gap_left.
12057 1990-11-11 Jim Blandy (jimb@churchy.ai.mit.edu)
12059 * regex.c: Disabled definition of NULL from lisp.h
12061 * crt0.c (_start): Added static declaration of start1.
12063 * xfns.c: Added definition for Vbar_cursor.
12064 (syms_of_xfns): Added DEFVAR_LISP clause for Vbar_cursor.
12066 * xterm.c (XTread_socket): Passed &event.xkey instead of &event to
12067 XLookupString, so things will typecheck nicely.
12069 * Globally rewrote all references to Vmouse_buffer to use the
12070 buffer viewed by Vmouse_window instead.
12072 * alloc.c (xmalloc, xrealloc): Removed calls to
12073 {un,}hold_window_change. The new SIGWINCH-handling code and
12074 do_pending_window_change make them unnecessary.
12076 1990-11-11 Richard Stallman (rms@mole.ai.mit.edu)
12078 * process.c (wait_reading_process_input): Make Available static;
12079 don't clear when a nonzero bit is found.
12081 * fns.c (Fnthcdr): Stop loop if reach end.
12083 * dispnew.c: Include fcntl.h if HAVE_TERMIO.
12085 1990-11-10 Jim Blandy (jimb@pogo.ai.mit.edu)
12087 * alloc.c (make_uninit_string): No longer declared static, and
12088 extern declaration added to lisp.h. It's used in dired.c.
12090 1990-11-08 Jim Blandy (jimb@geech.ai.mit.edu)
12092 * dispnew.c (do_pending_window_change): Changed incorrect call to
12093 change_window_size_1 into a loop which scans list of screens and
12094 resizes those that need resizing.
12096 1990-11-06 Richard Stallman (rms@mole.ai.mit.edu)
12098 * m-ibmrs6000.h (CANNOT_DUMP): Define it.
12100 * process.c (create_process): Unblock SIGCHLD in the child.
12102 * process.c (wait_reading_process_input): Don't read input
12103 from more than one process between calls to `select'.
12105 1990-11-02 Richard Stallman (rms@mole.ai.mit.edu)
12107 * callint.c (syms_of_callint):
12108 Initialize Vprefix_arg and Vcurrent_prefix_arg.
12110 1990-11-01 Richard Stallman (rms@mole.ai.mit.edu)
12112 * dired.c (Fdirectory_files): Avoid using MAXNAMLEN.
12114 1990-10-31 Jim Blandy (jimb@churchy.ai.mit.edu)
12116 * process.c (MAXDESC): Enclosed definition in `#ifndef ... #endif'
12119 * bytecode.c: Included syntax.h to declare syntax_code_spec.
12121 * syntax.h (syntax_spec_code): Added extern declaration for this.
12123 * floatfns.c (float_error): Added static declaration for this at
12124 the top of the file.
12126 1990-10-29 Jim Blandy (jimb@pogo.ai.mit.edu)
12128 * indent.c (position_indentation): Renamed stray `bf_cur' to
12129 `current_buffer', and old `CharAt' usages to `FETCH_CHAR'.
12130 * buffer.c (Fbuffer_disable_undo): The symbol object for this
12131 subroutine was still named Sbuffer_flush_undo, and the symbol's
12132 lisp name was similarly out of date. Renamed both, and added an
12133 alias in lisp/subr.el .
12135 * keyboard.c (Fset_input_mode): A `meta_flag' had escaped being
12136 renamed to `meta_key'.
12138 1990-10-29 Richard Stallman (rms@mole.ai.mit.edu)
12140 * process.c (Fprocess_send_region, Fprocess_send_string):
12141 Break data into bunches less than 500 bytes.
12142 Accept process output between bunches.
12143 ??? Must update manual.
12145 1990-10-29 Jim Blandy (jimb@pogo.ai.mit.edu)
12147 * window.c (Fset_window_start, window_scroll): Renamed stray
12148 references to `redo_mode_line' to `update_mode_line'.
12150 * xdisp.c (decode_mode_spec): Renamed stray references to `bf_cur'
12151 and `bf_modified' to `current_buffer' and `MODIFF'.
12153 1990-10-25 Jim Blandy (jimb@pogo.ai.mit.edu)
12155 * environ.h: File created - contains declarations for users of the
12156 environment variable list.
12157 * callproc.c (environ): Removed extern declaration of environ, and
12158 included environ.h.
12160 1990-10-24 Jim Blandy (jimb@pogo.ai.mit.edu)
12162 * callproc.c (init_callproc): Removed extern declaration of
12163 environ - it's already taken care of at the top of the file.
12165 * mocklisp.h: File created - externally declares certain
12166 functions defined in mocklisp.c.
12167 * lisp.h (Fread_buffer, Fread_key_sequence): Added extern
12168 declarations for these functions.
12169 * callint.c (ml_apply, Fread_buffer, Fread_key_sequence): Removed
12170 extern declarations for these functions, included mocklisp.h.
12171 Moved external declaration of index to top of file.
12173 1990-10-24 Richard Stallman (rms@mole.ai.mit.edu)
12175 * ymakefile (GNULIB_VAR): New make variable.
12176 (LIBES): Use that, not GNULIB directly.
12177 (GNULIB): Don't define if already defined.
12179 1990-10-23 Jim Blandy (jimb@geech.ai.mit.edu)
12181 * indent.h (last_known_column_point): Added extern declaration for
12183 * buffer.c (last_known_column_point): Removed extern declaration for
12184 this variable, included indent.h.
12185 (Vprin1_to_string_buffer): Removed extern declaration - it's
12188 * lisp.h (catchlist, backtrace_list, stack_bottom)
12189 (current_global_map): Added extern declarations for these
12191 * alloc.c: Removed external declarations for catchlist,
12192 backtrace_list, and stack_bottom, since this file includes
12194 * callint.c (current_global_map): Removed extern declaration.
12196 * search.h: New file - declares searchbuf.
12197 * dired.c (Fdirectory_files): Removed extern declaration of
12198 searchbuf, included search.h.
12200 * Globally renamed `CHAR_AT_POSITION' to `FETCH_CHAR'.
12202 1990-10-22 Richard Stallman (rms@mole.ai.mit.edu)
12204 * keyboard.c (quit_char): New variable.
12205 (init_keyboard): Initialize it.
12206 (Fset_input_mode): New optional arg to set quit_char.
12207 (command_loop_1, read_char, kbd_buffer_store_char)
12208 (read_avail_input): Use quit_char, not C-g.
12209 * sysdep.c (init_sys_modes): Use quit_char to set special chars.
12210 * xterm.c (x_term_init): Pass new arg to Fset_input_mode.
12212 1990-10-22 Jim Blandy (jimb@pogo.ai.mit.edu)
12214 * xdisp.c: Added `extern' declaration for command_loop_level.
12216 * term.c (term_init): Internal cleanups.
12217 (write_glyphs): Renamed argument `start' to `string'.
12219 1990-10-21 Richard Stallman (rms@mole.ai.mit.edu)
12221 * xterm.c (FIONREAD): Undefine if BROKEN_FIONREAD.
12222 (SIGIO): Undefine if no FIONREAD.
12223 (ioctl.h, termio.h, strings.h, string.h): Include them before those.
12225 * alloc.c (make_vector_from_string, Fvector_from_string):
12228 * sysdep.c (select): Handle timeout == 0. Add var local_timeout.
12230 * alloc.c (make_uninit_string, make_float): Use VALIDATE_LISP_STORAGE.
12231 (Fcons, Fmake_vector, Fmake_symbol, Fmake_marker): Likewise.
12232 (Fmake_vector_from_list): Likewise.
12233 (VALIDATE_LISP_STORAGE): New macro.
12235 1990-10-20 Richard Stallman (rms@mole.ai.mit.edu)
12237 * dispnew.c (scrolling): Give up if some new lines not enabled.
12238 (update_screen): Rework outq logic.
12240 * xdisp.c (message, message1): Clear noninteractive_need_newline.
12242 1990-10-19 Jim Blandy (jimb@pogo.ai.mit.edu)
12244 * scroll.c (do_scrolling): Allocate queue using alloca instead
12245 of variable-sized arrays.
12247 1990-10-19 Richard Stallman (rms@mole.ai.mit.edu)
12249 * buffer.c: Doc fix.
12251 1990-10-18 Jim Blandy (jimb@pogo.ai.mit.edu)
12253 * print.c (internal_with_output_to_temp_buffer): Install an
12254 unwind_protect to make sure the current buffer is restored.
12256 * minibuf.c (read_minibuf): Call recursive_edit_1 instead of
12257 Frecursive_edit, to support the new command_loop_level
12260 * malloc.c (calloc): Added this function, in case something linked
12261 with emacs calls it.
12263 * lread.c (openp): Since access returns 0 on success, change that
12264 into a 1 before returning it.
12266 * lisp.h: Deleted DEFSIMPLE and DEFPRED, since they're no
12269 1990-10-18 Richard Stallman (rms@mole.ai.mit.edu)
12271 * m-intel386.h (alloca): Define as builtin, if using GCC.
12273 * m-att3b.h (NEED_PTEM_H): Define this for 3b2.
12275 * s-aix3-1.h (SYSV_SYSTEM_DIR): Define it.
12277 * print.c (print): Improve error message for bad data type.
12279 1990-10-18 Jim Blandy (jimb@pogo.ai.mit.edu)
12281 * keymap.c (Flookup_key): Rearranged to use an index into the key
12282 sequence instead of a pointer and a level counter.
12284 1990-10-18 Richard Stallman (rms@mole.ai.mit.edu)
12286 * floatfns.c (sinh, cosh): On VMS, define to use exp.
12287 (IN_FLOAT): Detect errors reported using errno.
12288 (float_error): Define function unconditionally.
12289 Reestablish handler when called, if not BSD.
12291 1990-10-17 Richard Stallman (rms@mole.ai.mit.edu)
12293 * m-delta.h (C_DEBUG_SWITCH): Don't define this.
12295 1990-10-17 Jim Blandy (jimb@pogo.ai.mit.edu)
12297 * keyboard.c (command_loop): Made call to command_loop_2
12298 conditional on minibuf_level too (it used to be only conditional
12299 on command_loop_level), since this is what 18.56 and all the other
12300 functions in Emacs 19 keyboard.c do.
12302 1990-10-16 Jim Blandy (jimb@pogo.ai.mit.edu)
12304 * keyboard.c (read_char): Don't echo dash if there is already
12305 something else being displayed in the echo area.
12307 1990-10-16 Richard Stallman (rms@mole.ai.mit.edu)
12309 * process.c (status_convert): If killed by signal, use WTERMSIG.
12311 * data.c (arith_error): Reestablish handler on VMS.
12313 * keyboard.c (start_polling, stop_polling): New functions.
12314 (input_poll_signal): New function, handles periodic alarms.
12315 (read_command_char): Turn off polling temporarily.
12316 * xdisp.c (redisplay): Likewise.
12317 * process.c (wait_reading_process_input, create_process): Likewise.
12319 1990-10-16 Jim Blandy (jimb@pogo.ai.mit.edu)
12321 * indent.c (position_indentation): Instead of using CharAt, use a
12322 pointer to scan the buffer - this is faster.
12324 * emacs.c (Fdump_emacs): The conditional expression which passes
12325 symname to unexec was missing a `: 0'.
12327 * dispnew.c (rotate_vector): Was rotating backwards.
12329 1990-10-15 Jim Blandy (jimb@pogo.ai.mit.edu)
12331 * dired.c (file_name_completion): Use scmp to compare names.
12333 1990-10-15 Richard Stallman (rms@mole.ai.mit.edu)
12335 * process.c (create_process): Don't turn off handling of SIGCHLD.
12336 Just set a flag if a signal comes in when not wanted.
12337 (create_process_sigchld): New signal handler.
12339 1990-10-14 Richard Stallman (rms@mole.ai.mit.edu)
12341 * bytecode.c: De-implement Bmark, Bset_mark, Bscan_buffer.
12342 Mark Bsymbol_function, Bfset, Bread_char as obsolete.
12343 Implement codes Bmult, Bforward_char...Bwiden,
12344 and Bstringeqlsign...Bintegerp.
12346 1990-10-12 Jim Blandy (jimb@pogo.ai.mit.edu)
12348 * buffer.c (list_buffers_1): Select the buffer given in
12349 Vstandard_output using Fset_buffer instead of set_buffer_internal.
12351 * buffer.c (set_buffer_internal): Deleted variable swb - it's
12354 * buffer.c (count_modified_buffers): Function deleted - it's
12357 1990-10-11 Jim Blandy (jimb@pogo.ai.mit.edu)
12359 * buffer.c (reset_buffer_local_variables, buffer_local_variables):
12360 added support for default values for buffer local variables which
12361 do not have a DEFVAR_PER_BUFFER, as described in the comments
12362 above buffer_local_flags.
12364 * buffer.c (Fget_buffer_create): Move initialization of
12365 b->save_length and b->last_window_start to reset_buffer.
12367 1990-10-11 Richard Stallman (rms@mole.ai.mit.edu)
12369 * m-ibmps2-aix.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Define them.
12370 (C_DEBUG_SWITCH): Delete -fstrength-reduce.
12372 * unexmips.c (unexec): Add conditional for MIPS2.
12374 1990-10-10 Richard Stallman (rms@mole.ai.mit.edu)
12376 * m-iris4d.h (LIBS_MACHINE): Use -lsun, don't use -lPW.
12378 * unexelf.c: New file.
12379 * s-usg5-4.h: New file.
12380 * unexec.c [USG_SHARED_LIBARARIES]: Numerous changes under this cond.
12381 (copy_text_and_data): New second argument.
12383 1990-10-10 Jim Blandy (jimb@pogo.ai.mit.edu)
12385 * alloc.c (gc_sweep): Only unchain markers that are in a buffer.
12387 1990-10-10 Mike Rowan (mtr@apple-gunkies)
12389 * process.c: Merged in more changes from 18.56: update_status,
12390 FD_SET changes (define all the FD_ macros). Other small changes.
12392 1990-10-09 Jim Blandy (jimb@churchy.ai.mit.edu)
12394 * xdist.c (decode_mode_spec): Reworked code to handle %* - it now
12395 goes like `if return else if return else ... return' instead of
12396 using a conditional operator.
12398 * xdist.c (fmodetrunc): Function deleted - no longer used.
12400 1990-10-09 Richard Stallman (rms@mole.ai.mit.edu)
12402 * xdisp.c (decode_mode_spec): Handle dashes in wide windows.
12404 1990-10-08 Richard Stallman (rms@mole.ai.mit.edu)
12406 * sysdep.c (sys_open, sys_close, sys_read, sys_write):
12407 Don't handle EAGAIN.
12409 * process.c (wait_reading_process_input): Handle nread==-1
12410 for O_NDELAY like O_NONBLOCK.
12412 * s-vms.h (LINK_CTRL_SHARE): Turn on again.
12413 tranle@intellicorp.com found it needed in VMS 5.3.
12415 * emacs.c (main): Move VMS declaration of environ outside function.
12417 * vmsfns.c (Fdefault_subproc_input_handler): InsCstr -> insert.
12419 1990-10-07 Richard Stallman (rms@mole.ai.mit.edu)
12421 * m-pmax.h (START_FILES): Handle crt0.o in different dir in Ultrix 4.0.
12423 * s-sunos4.h (O_NDELAY): Define only if not defined.
12425 1990-10-06 Jim Blandy (jimb@pogo.ai.mit.edu)
12427 * sysdep.c (tabs_safe_p, get_screen_size): Renamed `sg' to `tty'.
12429 * sysdep.c (init_baud_rate): Rearranged code for calculating
12432 1990-10-05 Jim Blandy (jimb@pogo.ai.mit.edu)
12434 * search.c (Freplace_match): Used Finsert_buffer_substring instead
12435 of place and deleted place.
12437 * search.c (place): Function removed.
12439 * process.c (count_active_processes): Deleted; not used.
12441 * minibuf.c (read_minibuf): Renamed `prefix' argument to `initial'.
12443 1990-10-01 Jim Blandy (jimb@pogo.ai.mit.edu)
12445 * lread.c (Fload): Renamed `MISSING-OK' to `NOERROR'.
12447 * keyboard.c (describe_map): Renamed `keys' to `string'.
12449 * keyboard.c `Vauto_save_interval' unrenamed back to
12450 `auto-save-interval'.
12452 * keymap.c (Fdefine_key, Flookup_key): Renamed arguments called
12455 1990-10-01 Richard Stallman (rms@mole.ai.mit.edu)
12457 * sysdep.c (sys_open, sys_close, sys_read, sys_write):
12458 Handle EAGAIN like EINTR.
12460 1990-09-30 Richard Stallman (rms@mole.ai.mit.edu)
12462 * insdel.c (gap_left, gap_right): Use bcopy if requested.
12463 New config parameters GAP_USE_BCOPY, BCOPY_SAFE_UPWARD,
12464 and BCOPY_SAFE_DOWNWARD.
12466 * eval.c (find_handler_clause): Bind debug-on-error to nil.
12467 (Qdebug_on_error): New variable.
12468 (syms_of_eval): Initialize that.
12470 * sysdep.c: Include various headers for ptys, for hpux, aix, and sysv.
12472 * dispnew.c (preserve_other_columns): Fix args to second bcopy.
12474 1990-09-30 Jim Blandy (jimb@pogo.ai.mit.edu)
12476 * keyboard.c: `auto_save_interval' renamed to
12477 `Vauto_save_interval', since it *is* a lisp-accessible variable.
12479 * fileio.c (Fdo_auto_save): Call record_auto_save so that
12480 read_char knows when we've auto-saved.
12482 * keyboard.c (record_auto_save): Added function to support the new
12483 auto-save conditions.
12485 * keyboard.c (read_char): Use num_input_chars and last_auto_save
12486 instead of keystrokes to decide when to autosave.
12488 * keyboard.c (keystrokes): Variable deleted.
12490 1990-09-30 Mike Rowan (mtr@spike.ai.mit.edu)
12492 * keyboard.c, alloc.c: Added malloc warning code from
12495 * dispnew.c, xdisp.c: (un)hold_window_change no longer exists;
12496 added do_pending_window_change from 18.56.
12498 * process.c, process.h: Add the raw_status_low and raw_status_high
12501 1990-09-29 Richard Stallman (rms@mole.ai.mit.edu)
12503 * alloca.s: Handle ns32000 like ns16000.
12505 * m-ns32000.h: New file.
12507 * lread.c (Fload): Warn if elc file older than source file.
12509 * ymakefile (LIB_X11_LIB): New parameter, default -lX11.
12512 * Makefile (xmakefile): Delete junk.c at the beginning.
12514 * hftctl.c: Include termios.h before termio.h.
12515 Define TCGETS and TCSETS if nec.
12516 Give some forward declarations for the static functions.
12517 Reformat in usual GNU style.
12519 * m-orion105.h (LOAD_AVE_TYPE, FSCALE): Changed from double and 1.0.
12521 * m-delta.h: New file.
12523 1990-09-28 Richard Stallman (rms@mole.ai.mit.edu)
12525 * fns.c (Frequire): Undo certain things on failure, like autoload.
12527 1990-09-28 Jim Blandy (jimb@pogo.ai.mit.edu)
12529 * fileio.c (Fwrite_region): Renamed variable `fd' to `desc' and
12530 changed argument to open from `1' to `O_WRONLY'.
12532 * fileio.c (O_WRONLY): Added clause to define this if not already
12535 * emacs.c (Fdump_emacs): Removed a_name variable.
12537 * emacs.c (Fkill_emacs): Removed code which asked about modified
12538 buffers and running subprocesses.
12540 * editfns.c (Fcurrent_time_string): Renamed variable `now' to
12543 * dispnew.c (update_line): Renamed variables `m1' and `m2' to
12544 `begmatch' and `endmatch'.
12546 * dispnew.c (update_screen): Use preempt_count as a limit instead
12547 of a counter; count with i instead.
12549 * dispnew.c (visible_bell, inverse_video, baud_rate)
12550 (Vwindow_system): Rearranged comments.
12552 1990-09-27 Richard Stallman (rms@mole.ai.mit.edu)
12554 * emacs.c (main): Set the DISPLAY environment value when both of
12555 MAINTAIN_ENVIRONMENT and HAVE_X_WINDOW are defined.
12557 * m-convex.h (LIB_STANDARD, LIBS_MACHINE): Remove these, they
12558 cause an unnecessary C1/C2 dependency.
12560 * m-convex.h (LD_SWITCH_MACHINE): Use -e__start to specify
12561 where crt0.c begins.
12563 * m-convex.h (HAVE_SETSID): Define; must call setsid
12564 when creating an inferior with a different controlling tty.
12565 * process.c (create_process): Rearrange so that HAVE_SETSID
12566 will be seen when not under USG.
12568 * m-convex.h (S_IFMT etc): Define in case of posix compilation.
12570 * m-convex.h (FIRST_PTY_LETTER): Do it at runtime.
12571 * unexconvex.c (first_pty_letter): Routine to locate lowest pty.
12573 * unexconvex.c: Rewrite so it can cope with thread-local sections.
12575 * sysdep.c (select): Use process_tick and update_tick,
12578 1990-09-23 Richard Stallman (rms@mole.ai.mit.edu)
12580 * keyboard.c (Fsuspend_emacs): Check screen size after resume.
12582 1990-09-19 Richard Stallman (rms@mole.ai.mit.edu)
12584 * editfns.c: Doc fix.
12586 1990-09-18 Richard Stallman (rms@mole.ai.mit.edu)
12588 * window.c (Fsplit_window): Minor cleanup.
12590 1990-09-17 Richard Stallman (rms@mole.ai.mit.edu)
12592 * emacs.c (main) [USG_SHARED_LIBRARIES]: Call brk.
12594 1990-09-13 Richard Stallman (rms@mole.ai.mit.edu)
12596 * floatfns.c (float_error_arg): New variable.
12597 (IN_FLOAT): New arg; sets float_error_arg. All uses changed.
12598 (float_error): Use that value when signaling error.
12600 1990-09-11 Richard Stallman (rms@mole.ai.mit.edu)
12602 * unexaix.c, m-ibmr2.h, s-aix3-1.h: New files.
12604 * ymakefile (allocaobj): New variable. Used in otherobjs.
12605 Eliminates assignment of mallocobj using itself.
12606 (mallocobj): Handle SYSTEM_MALLOC without HAVE_ALLOCA.
12607 (xemacs): Use -nl option if HAVE_SHM.
12609 * sysdep.c: Change IBMRTAIX conditionals to AIX.
12610 Move hft.h to the top.
12611 [IBMR2AIX]: Use termios.h and change macros accordingly.
12612 (child_setup_tty): Change IBMRTAIX to AIX.
12613 (setpgrp_of_tty): Handle IBMR2AIX.
12614 (init_sys_modes): Handle IBMR2AIX. Output special things for AIX.
12615 (reset_sys_modes): Output special things for AIX.
12616 (hft_init, hft_reset): Conditionals for IBMR2AIX.
12618 * process.c: Change IBMRTAIX to AIX controlling time.h.
12619 [AIX]: Include sys/pty.h and unistd.h.
12620 (wait_reading_process_input): If AIX, handle EBADF differently.
12621 (create_process): Handle HAVE_SETSID. Change conditional to AIX.
12623 * lisp.h (XPNTR): New definition if HAVE_SHM.
12624 (NULL): Undef before defining.
12626 * emacs.c (main): If HAVE_SHM, call map_in_data.
12627 Use AIX, not IBMRTAIX, for signal conditional.
12628 (Fdump_emacs_data): New function if HAVE_SHM.
12629 (Fdump_emacs): Don't define if HAVE_SHM.
12631 * alloc.c (pure, PUREBEG): If HAVE_SHM, define place for a segment.
12633 1990-09-03 Mike Rowan (mtr@apple-gunkies)
12635 * sysdep.c: Added setup_pty from 18.56
12637 * process.c: Merged in 18.55->6 changes. Same for process.h
12640 redisplay_preserving_echo_area -> redisplay_preserve_echo_area
12641 SetBfp -> set_buffer_internal
12642 buffer_flush_undo -> buffer_disable_undo
12643 redo_mode_line -> update_mode_line (window.h)
12645 1990-08-31 Richard Stallman (rms@mole.ai.mit.edu)
12647 * data.c (Fmake_local_variable): If var is local when set, make it
12648 local now in this buffer.
12650 * data.c (Fstring_to_int): Finish eliminating second arg.
12652 * data.c (Faset): Require integer as third arg for string.
12654 1990-08-28 Richard Stallman (rms@mole.ai.mit.edu)
12656 * search.c: Doc fix.
12658 * screen.h (SCREEN_SCROLL_BOTTOM_VPOS): New macro.
12659 * xdisp.c (screen_bottom_vpos): Variable used if just one screen.
12660 (redisplay, try_window_id): Set that field in screen.
12661 * dispnew.c (scrolling, update_screen): New arg scroll_bottom_vpos.
12663 * dispnew.c (scroll_screen_lines): Mark newly empty lines as empty.
12664 (scrolling): Give up if any line in current_screen not enabled.
12666 1990-08-27 Roland McGrath (roland@churchy.ai.mit.edu)
12668 * dired.c (Ffile_attributes): Return the device number too (elt 11
12669 of the returned list).
12671 1990-08-27 Richard Stallman (rms@mole.ai.mit.edu)
12673 * sysdep.c (wait_for_kbd_input): Frob waiting_for_input here.
12674 * keyboard.c (kbd_buffer_read_command_char): Not here.
12676 * sysdep.c (wait_for_kbd_input): Clear process_ef before snarfing
12679 * fileio.c (Fdirectory_file_name): On VMS, leave space for log name.
12681 * sysdep.c (init_sys_modes): Clear process_ef only the first time.
12683 * vmsfns.c (process_exit): Logic of deletion was wrong.
12684 (Fspawn_subprocess): Correctly reuse existing struct process_list.
12686 1990-08-22 Richard Stallman (rms@mole.ai.mit.edu)
12688 * m-plexus.h (LD_SWITCH_MACHINE): New macro.
12690 1990-08-22 Joseph Arceneaux (jla@geech)
12692 * xterm.c (XTread_socket): Cleaned up #ifdefs prior to event
12693 reading loop. Also handle FIOSNBIO.
12695 1990-08-19 Joseph Arceneaux (jla@geech)
12697 * xterm.c (dumpglyphs): Last vestige of MScreenWidth removed.
12698 * config.h: MScreenWidth, MScreenHeight definitions removed.
12700 1990-08-18 Joseph Arceneaux (jla@geech)
12702 * scroll.c (do_scrolling): Pass the correct sizes to bcopy.
12703 * dispnew.c (make_screen_glyphs): Likewise.
12705 1990-08-16 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12707 * dispnew.c (scroll_screen_lines, free_screen_glyphs): Only deal
12708 with the X components of screen_glyphs if SCREEN_IS_X.
12709 free_screen_glyphs now takes screen argument.
12711 * window.c (Fnext_window, Fprevious_window): Fixed typo. New
12712 behavior: mini non-nil implies all_screens if global mini screen
12713 exists, implies current screen only if not.
12714 (Fdisplay_buffer): Simplification of multi-screen code.
12716 1990-08-15 Richard Stallman (rms@mole.ai.mit.edu)
12718 * buffer.c: Doc fix.
12720 1990-08-15 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12722 * dispnew.c (update_line): Simplification of pixel size code, only
12723 done if screen is X.
12724 (update_screen): Only set pixel stuff if screen is X.
12726 1990-08-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12728 * m-targon31.h (NO_REMAP): Definition removed.
12729 (SEGMENT_MASK): New macro.
12731 1990-08-14 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12733 * lread.c (eval-region): Don't set opoint to point, etc.
12734 Fnarrow_to_region from BEGV, not b.
12735 (eval-buffer): New subr, generalization of eval-current-buffer.
12736 (eval-current-buffer): Moved to elisp, in simple.el.
12738 * xfns.c (x_y_pos): Nuked. Replaced by pixel_to_char_translation
12739 and notice_mouse_movment (dispnew.c, xterm.c).
12740 (Fx_point_coordinates): Also nuked.
12741 (mouse_buffer_offset): New lisp variable.
12743 * xterm.c (notice_mouse_movement): Use it in call to
12744 pixel_to_char_translation.
12746 * screen.h: For non-multiscreen, XSCREEN returns selected_screen,
12747 as does WINDOW_SCREEN.
12749 * xdisp.c (display_mode_line): Set desired_glyphs->bufp to 0 for
12751 All occurrences of struct screen * replaced with SCREEN_PTR.
12753 1990-08-13 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12755 * xmenu.c (list_of_items, list_of_panes): Fixed wrong params to
12756 wrong_type_argument.
12758 1990-08-12 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12760 * dispnew.c (pixel_to_char_translation): New algorithm for
12763 * xfns.c (install_*_scrollbar): No more height, width parameters.
12764 Don't block input here.
12765 (x_set_*_scrollbar): Block input here.
12767 * xterm.c (notice_mouse_motion): Check if the mouse is still in
12769 (encode_mouse_button): Don't bother about motion types.
12771 1990-08-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12773 * m-convex.h (C_SWITCH_MACHINE, LIB_STANDARD, LIBS_MACHINE)
12774 (LD_SWITCH_MACHINE): Add definitions for Convex V 4.0.
12776 1990-08-11 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12778 * xfns.c (Fx_grab_pointer): Call XCreateFontCursor on shape,
12779 setting new variable grabbed_cursor. Return Qt if successful,
12781 (Fx_ungrab_pointer): Free grabbed_cursor if non zero. Return Qnil.
12783 1990-08-10 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12785 * xfns.c (x_figure_window_size): Don't set pixel sizes until
12786 height and width are determined.
12788 1990-08-08 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12790 * xfns.c (Fx_grab_pointer): New parameter to explicitly ignore
12793 * xterm.c (notice_mouse_movement): Use pixel_to_char_translation
12794 to get char position and buffer offset.
12796 1990-08-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12798 * sysdep.c [NEED_PTEM_H]: New flag macro says include ptem.h.
12800 1990-08-07 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12802 * dispextern.h: Element bufp of screen_glyphs no longer dependent
12804 * xdisp.c (display_text_line): Likewise.
12806 * xfns.c (Fx_grab_pointer, Fx_ungrab_pointer): New subrs.
12807 (x_figure_window_size): Set pixel_width and pixel_height of
12808 screen, using font height and width.
12810 * xfns.c: Vmouse_grabbed renamed Vmouse_depressed.
12811 * xterm.c: Likewise.
12812 (construct_mouse_event): Don't check mouse coordinates; this is
12813 done by the notice_mouse_motion. Don't grab the mouse here.
12815 * dispnew.c (update_line): Set the pix_width and pix_height of the
12816 line. This fashion of doing so is temporary.
12818 1990-08-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12820 * dispextern.h: screen_glyphs struct elements bottom_right_x,
12821 bottom_right_y changed to pix_width and pix_height.
12822 * scroll.c: Likewise.
12823 * dispnew.c: Likewise.
12824 (update_screen): Set top_left_x, top_left_y for X windows.
12826 * xterm.h: Macros PIXEL_{WIDTH,HEIGHT} now use the display
12827 structure elements.
12829 1990-08-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12831 * xfns.c (x_window_to_scrollbar): Return Lisp symbol in parameter
12832 PART_PTR, rather than string.
12833 Declare these symbols.
12834 New variable Vscreen_part, indicates which part of the screen the
12837 * xterm.c (notice_mouse_motion): Do XQueryPointer first thing.
12838 Set Vmouse_event to Qnil.
12839 (construct_mouse_event): Don't check if mouse has moved or not.
12840 When returning cons, part is now already lisp symbol.
12841 (XTread_socket): Set Vmouse_window = Vscreen_part = Qnil when
12842 leaving screen, as well as setting x_mouse_x = x_mouse_y = -1.
12844 * keyboard.c: Vmouse_window, Vmouse_event declared extern and no
12845 longer DEFVARed: they are already declared in window.c.
12847 * screen.c (window_from_coordinates): Use Fnext_window, even if
12848 MULTI_SCREEN, to obtain the next window. This is a test.
12849 Also, new parameter part returns text or modeline symbol.
12850 (Flocate_window_from_coordinates): Pass &part to
12851 window_from_coordinates.
12852 (coordinates_in_window): Don't say modeline if window_height is 1,
12853 as this is likely to be the minibuffer.
12855 1990-08-04 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12857 * screen.c (Fcoordinates_in_window_p): Doc fix. Simplified.
12858 (window_from_coordinates): New function.
12859 (Flocate_window_from_coordinates): Use it.
12861 * keyboard.c (classify_object): New function for dealing with the
12862 input object. New symbol, mouse-motion, called here.
12863 Call to mouse-motion-handler now takes no parameters.
12864 (read_key_sequence): Use the new function. Don't set keybuf[0]
12867 * xterm.c (init_input_symbols): Create all the Lisp symbols
12868 returned in the input stream.
12869 (func_key_syms): New array to hold all symbols for function keys.
12870 (x_func_key_to_sym): Use this array.
12871 (notice_mouse_movement): New function for dealing with motion
12873 (XTread_socket): Use it here.
12875 1990-08-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12877 * callproc.c (child_setup): Report error in chdir.
12879 1990-08-01 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12881 * lisp.h: New macro XFLOATINT. extract_float declared.
12882 * floatfns.c (Ffloor): Call floor, not ceil.
12883 (extract_float): No longer static.
12884 * bytecode.c (Fbyte_code): Correctly handle floats in case Beqlsign.
12886 1990-07-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12888 * keyboard.c (read_key_sequence): When downcasing letters,
12889 don't change the value returned in keybuf.
12890 (This is an experiment; it might be unpleasant in
12891 things such as C-h c, but it is an improvement
12892 for M-x global-set-key.)
12894 1990-07-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12898 1990-07-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12900 * s-iris*.h (SYSTEM_TYPE): Change silicon-graphics-unix to irix.
12902 1990-07-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12904 * indent.c (Fmove_to_column): End-test was off by 1.
12906 * abbrev.c (Fexpand_abbrev): Return nil if alloca arg would be neg.
12908 1990-07-26 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12910 * xdisp.c (display_text_line): String to rope copy for inserting
12913 1990-07-25 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12915 * xdisp.c (display_mode_line): Check that the name has actually
12916 changed before calling x_set_name.
12918 * ralloc.c (check_memory_limits): New function.
12919 Also check if new memory will be larger than elisp pointer.
12920 (r_alloc_sbrk): Call this function.
12921 (relocate_blocs_upward, relocate_blocs_downward): Eliminated.
12922 (r_alloc_sbrk): Use relocate_some_blocs instead of the eliminated
12925 * vm-limit.c (morecore_with_warning): Check if new memory larger
12926 than elisp pointer size.
12928 1990-07-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12930 * keyboard.c (save_getcjmp, restore_getcjmp): New functions.
12931 (read_char): Use them around Fdo_auto_save.
12932 * process.c (read_process_output, exec_sentinel): Use them.
12933 * fileio.c (Fdo_auto_save): Run auto-save-hook.
12935 1990-07-24 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12937 * dispnew.c (safe_bcopy): No longer static.
12939 * ralloc.c (relocate_blocs_upward, relocate_blocs_downward):
12942 * mem_limits.c: typedef SIZE.
12944 1990-07-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12946 * fileio.c (Finsert_file_contents): Initialize how_much when exiting
12949 * m/m-mips.h: Added stuff from the 18.56 version.
12951 1990-07-18 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12953 * indent.c (Fmove_to_column): Set end to ZV.
12955 1990-07-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12957 * editfns.c (init_editfns): Let envvar NAME override full name.
12959 * buffer.c (list_buffers_1): Avoid error with list-buffers-directory.
12961 1990-07-17 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12963 * buffer.c (list_buffers_1): Don't check list-buffers-directory.
12965 1990-07-16 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12967 * xdisp.c (display_text_line): Don't print ellipsis if they're
12970 1990-07-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12972 * s-386-ix.h: Define BROKEN_TIOCGETC.
12974 1990-07-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12976 * m-pmax.h: Undef LD_SWITCH_MACHINE, change DATA_START
12979 1990-07-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12981 * s-iris3-6.h (HAVE_GETWD): Define this.
12982 (KERNEL_FILE): Change to /unix.
12983 (sigsetmask, sigblock, NEED_ERRNO, C_SWITCH_MACHINE): Turn off.
12984 (SIGIO): Don't undefine it.
12985 (LIBS_MACHINE): Remove -lbsd.
12987 * minibuf.c (Fall_completions, do_completion): Treat nil as alist.
12988 (Ftry_completion): Likewise.
12990 1990-07-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12992 * sysdep.c: Undefine TIOCGETC if BROKEN_TIOCGETC defined.
12993 * s-usg5-3.h, s-xenix.h: Define BROKEN_TIOCGETC.
12995 1990-06-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12997 * process.c (Fopen_network_connection): Minor cleanup.
12999 1990-06-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13001 * m-sun3.h: Add comments for dealing with 68881.
13003 1990-06-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13005 * m-ibmps2-aix.h [__GNUC__]: Define LIB_STANDARD and C_DEBUG_SWITCH,
13006 and don't define LIBS_MACHINE.
13007 (HAVE_WAIT_HEADER): Define this.
13008 Also reordered definitions so recently added ones are together.
13010 1990-06-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13012 * insdel.c (insert): Error if buffer would get too long.
13013 * fileio.c (Finsert_file_contents): Likewise.
13015 1990-06-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13017 * syntax.c (scan_sexps_forward): Allow Squote inside symbols.
13019 1990-06-16 Joseph Arceneaux (jla@geech)
13021 * window.c (Fscroll_other_window): Don't unbind_to. Keep track of
13022 current_buffer and point explicitly.
13024 1990-06-15 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13026 * term.c (cursor_to): Only add chars_wasted if not calling hook.
13027 (clear_end_of_line_raw): Likewise.
13028 (clear_end_of_line): Check that screen is termcap before using
13030 (ins_del_lines): Eliminated local copybuf[].
13031 (calculate_ins_del_char_costs): Now has screen parameter.
13032 DCICcost: Change to char_ins_del_costs and defined with
13033 SCREEN_WIDTH (screen).
13034 DC_ICcost: Changed to char_ins_del_vector.
13035 * term.h: DCICcost no longer defined here. DC_ICcost no longer
13037 * dispnew.c: char_ins_del_cost defined here. char_ins_del_vector
13038 declared extern here.
13040 1990-06-14 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13042 Globally replaced screen_width with macro
13043 SCREEN_WIDTH (selected_screen).
13044 * dispnew.c (init_display): Don't set SCREEN_WIDTH, etc. from
13046 (change_window_size): No longer check output_type and set
13049 1990-06-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13051 * indent.c (Findent_to): Don't fail to return value.
13052 (Fmove_to_column, Fcurrent_column): Doc fixes.
13054 1990-06-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13056 * keyboard.c (echo_prompt): Now uses glyphs.
13057 echobuf, echobuf_ptr: These variables now glyphs.
13059 1990-06-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13061 * fileio.c (Fdo_auto_save): Use glyphs_to_str_copy to set
13063 * alloc.c (Fgarbage_collect): Ditto.
13065 * xdisp.c (message): message_buf set here, realloced if smaller
13067 message_buf now type GLYF *. New variable message_buf_size holds
13069 Use temp_buf for call to doprnt, then use str_to_glyph_cpy to set
13072 * print.c (printchar, strout): Use message_buf_size. Convert to
13073 glyfs before assigning chars.
13074 (str_to_glyph_cpy, str_to_glyph_ncpy)
13075 (glyph_to_str_cpy, glyph_to_str_ncpy): New functions.
13077 1990-06-03 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13079 * keyboard.c (command_loop_1): Clear this_command_key_count here.
13080 (Fread_key_sequence): And here.
13081 (read_key_sequence): Not here.
13083 * dispnew.c (update_screen):
13084 Add missing else in handling cursor_in_echo_area.
13085 * xdisp.c (redisplay_window): Eliminate lpoint. Alter opoint
13086 if point should be changed permanently in the selected window.
13088 * window.c (unshow_buffer): Don't set pt in selected window's buffer.
13090 * xdisp.c (decode_mode_spec): Don't truncate buffer or file name.
13092 * editfns.c (Finsert_buffer_substring): Don't fail to set beg, end.
13094 * keyboard.c (command_loop_level): New variable.
13095 Used in place of RecurseDepth, but different meaning.
13096 (recursive_edit_1): New function.
13097 (Frecursive_edit): Call it.
13098 * minibuf.c (read_minibuf): Call recursive_edit_1.
13099 * xdisp.c (RecurseDepth): Variable deleted.
13100 display_minibuffer_message renamed echo_area_display.
13102 * print.c: Include dispextern.h.
13103 (printchar, strout): Use message_buf.
13105 * scroll.c (CalcIDCosts): Dynamically allocate ILcost, etc.
13106 (ILcost, DLcost, ILncost, DLncost): Now pointers.
13107 (do_scrolling): Use alloca for queue.
13109 * term.c (term_init): selected_screen as arg to calculate_costs.
13111 Dynamically allocate chars_wasted, copybuf, DC_ICcost.
13112 Set RPov based on actual width.
13113 (chars_wasted, copybuf, DC_ICcost): Now pointers.
13115 * xterm.c (x_term_init): Don't set dont_calculate_costs anymore.
13117 1990-06-02 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13119 * term.c (calculate_ins_del_char_costs, string_cost_one_line):
13122 * dispnew.c: Declare scrolling_1;
13124 * scroll.c (CalcIDCosts, CalcIDCosts1, CalcLID): Renamed
13125 calculate_ins_del_char_costs, ins_del_costs, and line_ins_del.
13126 CalcIDCosts1 and CalcLID also renamed.
13127 (calculate_scrolling): Now void.
13129 * Global renaming: bf_modified -> MODIFF. CharAt -> CHAR_AT_POSITION.
13130 BufferSafe{Floor,Ceiling} -> BUFFER_{FLOOR,CEILING}_OF.
13131 SetPoint -> SET_PT.
13133 * xterm.c (x_term_init): Don't CalcIDCosts here anymore.
13135 1990-06-01 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13137 * print.c: Include dispextern.h.
13138 (printchar, strout): Use message_buf.
13140 * sysdep.c (get_screen_size): Don't use MscreenWidth, MscreenLength.
13141 * term.c: Likewise.
13143 * scroll.c (CalcIDCosts, CalcIDCosts1, CalcLID): These now take a
13145 (CalcIDCosts): Dynamically allocate ILcost, etc.
13146 (ILcost, DLcost, ILncost, DLncost): Now pointers.
13147 (do_scrolling): Use alloca for queue.
13149 * dispnew.c (remake_screen_structures): Allocate message_buf.
13150 Don't use MscreenWidth, MscreenLength.
13152 * xdisp.c: bf_cur replaced with current_buffer.
13153 Calls to SetBfx deleted.
13154 message_buf is now char *.
13155 (message): Use SCREEN_WIDTH macro as limit for doprnt.
13157 * indent.c (current_column): Detect special case when point == BEGV.
13159 * buffer.h (struct buffer_text): Component modified renamed to
13160 modiff. All refs changed to macros below.
13161 (MODIFF, BUF_MODIFF): New macros.
13162 Macro SetBfx removed.
13163 Macro SetPoint renamed SET_PT.
13165 * fileio.c (Fexpand_file_name): Simplified.
13167 1990-06-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13169 * dired.c: Doc fix.
13171 1990-05-31 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13173 * search.c (Fsearch_forward): Docstring fix.
13175 1990-05-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13177 * dired.c: Comment added.
13179 1990-05-31 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13181 * process.c (Fprocess_connection): Return the type of a process
13183 (syms_of_process): Initialize pty_process and stream_process.
13184 Declare Fprocess_type.
13185 * process.h: New element type to struct Lisp_Process.
13187 * syntax.c (scan_sexps_forward): Initialize curlevel->last to -1.
13189 1990-05-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13191 * fileio.c (Finsert_file_contents): Use new variable how_much to
13194 1990-05-24 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13196 * lread.c (read_char_exclusive): New subr.
13198 1990-05-24 David Lawrence (tale@pogo.ai.mit.edu)
13200 * fileio.c (file_executable_p): New function.
13202 1990-05-23 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13204 * insdel.c (make_gap): Only set BEG_ADDR if BUFFER_REALLOC was
13207 * editfns.c (syms_of_editfns): DEFVAR the new variables.
13209 * eval.c (Finteractive_p): Don't skip the first frame if the
13210 function was compiled.
13212 * print.c (print): Use ... only for conses, and instead of normal
13215 1990-05-22 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13217 * Renamed meta_flag meta_key.
13219 * termopts.h: Comment changes.
13221 1990-05-20 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13223 * buffer.h: upcase_table and downcase_table are now Lisp_Objects.
13224 * alloc.c (mark_object, gc_sweep): Related changes.
13225 * casetab.c: Ditto.
13227 1990-05-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13229 * minibuf.c (Fall_completions): Protect STRING from gc.
13230 Copy ALIST to TAIL to protect it.
13232 * paths.h-dist: Doc fix.
13234 1990-05-17 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13236 * search.c (Flooking_at, search_buffer): Use new accessors.
13237 * indent.c (Fcurrent_column): Likewise.
13238 * minibuf.c (read_minibuf): Likewise.
13239 * regex.c (re_match_2): Use PTR_CHAR_POS.
13240 * editfns.c (Fbuffer_size, Fnarrow_to_region, Fbuffer_substring)
13241 (Fbuffer_string, Finsert_buffer_substring): Likewise.
13242 (save_restriction_restore): Likewise.
13243 * dispnew.c (direct_output_for_insert): Likewise.
13244 * fileio.c (Fwrite_region, Finsert_file_contents): Likewise.
13245 (Fdo_auto_save): Likewise.
13246 * insdel.c (move_gap, gap_left, gap_right, make_gap): Likewise.
13247 (InsCStr, del_range, modify_region): Likewise.
13248 * process.c (Fprocess_send_region): Likewise.
13249 * xdisp.c (try_window, try_window_id, display_text_line): Likewise.
13250 (redisplay): Likewise.
13251 * buffer.c (list_buffers_1): Likewise.
13252 * marker.c (marker_position, Fset_marker, set_marker_restricted)
13253 (Fmarker_position): Likewise.
13254 * window.c (unshow_buffer, Fset_window_configuration): Likewise.
13255 (Fset_window_buffer): Likewise.
13257 * editfns.c (save_restriction_restore): Use a macro to alter point.
13259 * lread.c (readchar): Use new accessors, and avoid knowing about
13260 the text field of a buffer.
13261 * window.c (Fpos_visible_in_window_p): Likewise.
13263 * buffer.h (struct buffer): Make the syntax table a Lisp object.
13264 * alloc.c (mark_buffer): No need to treat it specially.
13265 * syntax.c (Fsyntax_table, Fset_syntax_table, Fdescribe_syntax)
13266 (Fmodify_syntax_entry): Adjust for this change.
13267 * buffer.c (reset_buffer_local_variables): Need not be special.
13268 (init_buffer_once): Make this slot a defaulted local variable.
13269 * syntax.h: Adjust macros for this change.
13270 (Vstandard_syntax_table): Define as macro, in buffer_defaults.
13271 * syntax.c (syms_of_syntax): Don't staticpro it here.
13272 (Fset_syntax_table): Set the flag in local_var_flags.
13274 * buffer.h (struct text): Represent the buffer dimensions
13275 with new slots, memory, begv, pt, gpt, zv, z and gap_size.
13276 (BEGV, etc.): Use new slots.
13277 (CharAt): Likewise.
13278 (BufferSafeCeiling, BufferSafeFloor): Use new slots; fix old bugs.
13279 (bf_p1, bf_s1, etc.): Old macros deleted.
13281 * buffer.c (Fget_buffer_create): Set up memory and new slots.
13282 (Fkill_buffer): Likewise.
13284 * insdel.c (move_gap, gap_left, gap_right, make_gap): Update new slots.
13285 (del_range, InsCStr): Likewise.
13286 * fileio.c (Finsert_file_contents): Likewise.
13287 * window.c (temp_output_buffer_show): Likewise.
13288 * xdisp.c (decode_mode_spec, try_window_id): Likewise.
13290 * insdel.c (make_gap): Complete rewrite. Arg is amount of new gap
13291 to create. All calls changed.
13292 (gap_left): New argument NEWGAP.
13294 * buffer.c (Fset_buffer): Check for deleted buffer.
13295 (SetBfp): Don't check.
13296 (SetBfp, Frename_buffer): Local cleanups.
13297 * print.c (PRINTPREPARE): Use Fset_buffer.
13299 * buffer.c (SetBfp): Don't bother with selected window or its point.
13300 * window.c (Fselect_window): Always set pointm of old window.
13302 * editfns.c: Eliminate all use of DEFSIMPLE and DEFPRED.
13303 * indent.c, keyboard.c: Ditto.
13305 * search.c (skip_chars): Eliminate PointLeft and PointRight.
13306 * cmds.c (SelfInsert): Likewise.
13308 1990-05-16 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13310 * xdisp.c (try_window): No return value.
13311 Fix calls to try_window.
13312 * Global variable RedoModes is now redraw_mode_line.
13314 1990-05-13 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13316 * keymap.c (Fdefine_key, Flookup_key): Local cleanups.
13318 * sysdep.c (sys_suspend): Use save_signal_handlers and
13319 restore_signal_handlers to save and restore signal state.
13321 * indent.c (Findent_to): Merge guts of indentation into here.
13322 (position_indentation): Scan with a pointer, for speed.
13324 * casefiddle.c (operate_on_word): Just return the other end.
13325 (Fupcase_word, Fdowncase_word, Fcapitalize_word):
13326 Pass that value to casify_region.
13328 * editfns.c (init_editfns): Store system and user names as
13329 strings to avoid arbitrary limits.
13331 * keymap.c (describe_vector, describe_alist): Make elt_prefix
13332 and elt_describer responsible for indentation and newlines.
13334 (describe_command): Do indentation and newline.
13335 (describe_map): Add space to end of prefix.
13336 * syntax.c (describe_syntax): Do indentation and newline.
13338 1990-05-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13340 * process.c (create_process) [not USG]: Put subproc in pgrp 0.
13342 1990-05-10 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13344 * dispextern.h: New struct screen_glyfs replaces struct
13346 * screen.c: New screen elements current_glyfs, desired_glyfs, and
13348 * dispnew.c (make_screen_glyfs, free_screen_glyfs)
13349 (remake_screen_glyfs): New functions.
13350 (make_display_lines, new_display_line, return_display_line):
13352 (change_screen_size, init_display): Use the new functions.
13353 (cancel_line, clear_screen_records, get_display_line):
13354 Rewritten for new data structures. get_display_line no longer
13356 (preserve_other_columns, preserve_my_columns): Likewise.
13357 (cancel_my_columns, direct_output*): Likewise.
13358 (update_screen, update_line, quit_error_check, scrolling): Likewise.
13359 (scroll_screen_lines): Likewise.
13360 (rotate_vector, safe_bcopy): New subroutines.
13361 (line_hash_code, line_draw_cost): Cleaned up.
13362 Args are different, and hash computation too.
13363 (update_screen): Rearrange buffer-emptying code.
13364 * xdisp.c (display_minibuf_message, redisplay): Rewritten for new
13366 (display_text_line, display_mode_line): Likewise.
13367 (display_mode_element, display_string): Likewise.
13368 (decode_mode_spec): Local cleanups.
13369 * scroll.c (do_scrolling): Rewritten for new data structures.
13370 * xterm.c (XTflash): Use this new structure.
13372 * editfns.c (in_accessible_range): New function.
13373 (Fgoto_char, save_restriction_restore): Use it.
13374 (save_excursion_save, Fcurrent_time_string): Local cleanups.
13376 * process.c (Fprocess_kill_without_query): New arg; new return value.
13377 (count_active_processes): Function deleted.
13379 * fileio.c (Finsert_file, Fwrite_region): Local cleanups.
13381 * fns.c (Fsubstring): Local cleanup.
13383 * keyboard.c (echo_prompt, echo_char, echo_dash, echo): New functions.
13384 (cancel_echoing): Likewise.
13385 (immediate_echo, echoptr): New variables.
13386 (command_loop_1, request_echo, get_char, read_key_sequence)
13387 (set_waiting_for_input, interrupt_signal): Related changes.
13388 (get_char): No more declaration of request_echo. Local cleanups.
13390 (this_command_key...): New variables.
13391 (Fexecute_extended_command, Fthis_command_keys): Related changes.
13392 (init_keyboard, get_char): Likewise.
13394 * macros.c (Fstart_kbd_macro): Local cleanup.
13396 * minibuf.c (read_minibuf): No more declaration of
13397 Frestore_screen_configuration.
13399 * search.c (Fregexp_quote): Simplified.
13401 1990-05-08 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13403 * process.c (Fopen_network_stream): Also handle numeric inet addresses.
13405 1990-05-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13407 * alloca.c: #ifdef __STDC__ rather than X3J11/
13409 1990-05-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13411 * fileio.c (Fmake_symbolic_link): Delete old file if permitted.
13413 1990-05-02 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13415 * data.c (Fstring_to_int): Delete disabled feature
13416 of accepting `yes' and `no'.
13418 * xdisp.c (redisplay, redisplay_preserving_echo_area):
13419 Two functions replace DoDsp. All callers changed.
13420 (redisplay, redisplay_window): Eliminate `inhibit_hairy_id'.
13421 (redisplay_window): No return value. Local cleanups.
13423 * alloc.c (Fmake_marker): Delete `modified' field.
13424 * insdel.c (adjust_markers): Likewise.
13426 * abbrev.c (Fdefine_mode_abbrev): Clean up error message.
13428 1990-05-01 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13430 * xfns.c (Fx_draw_rectangle, Fx_erase_rectangle): Simplified.
13432 * xterm.c (x_display_cursor): Don't check s->phys_x when drawing
13435 * undo.c: New version.
13436 * undo.h: No longer exists.
13437 * alloc.c (Fgarbage_collect): Call truncate_undo_list.
13438 (syms_of_alloc): Define vars undo-threshold and undo-high-threshold.
13439 * buffer.c (Fget_buffer_create): Set undo_list to t or nil.
13440 (Fbuffer_disable_undo, Fbuffer_enable_undo): Likewise.
13441 (Fkill_buffer): Likewise.
13442 (init_buffer_once): Set up local variable buffer-undo-list.
13443 (syms_of_buffer): Likewise.
13444 * buffer.h: New element undo_list in struct buffer.
13445 * fileio.c (Finsert_file_contents): Store nil in undo_list.
13447 * buffer.c: Variable bf_text deleted.
13448 (Fkill_buffer, SetBfp): Delete code that worked with it.
13449 (SetBfx): Now a macro in buffer.h
13450 * editfns.c (Fwiden, Fnarrow_to_region): Related changes.
13451 (save_restriction_save, save_restriction_restore): Likewise.
13452 (Finsert_buffer_substring): Likewise.
13453 * fileio.c (Fdo_auto_save): Likewise.
13454 * insdel.c (make_gap): Likewise.
13455 * lread.c (readchar): Likewise.
13456 * marker.c (Fmarker_position, marker_position): Likewise.
13457 (Fset_marker): Likewise.
13458 * xdisp.c (DoDsp): Likewise.
13460 1990-04-30 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13462 * buffer.h: New macro R_ALLOC_SET_BUFFER for declaring all the
13463 text pointers of a buffer to the relocating allocator.
13464 * buffer.c (Fbury_buffer, SetBfx, SetBfp): Use the macro.
13465 * editfns.c (Finsert_buffer_substring): Ditto.
13466 * fileio.c (Fdo_auto_save): Ditto.
13467 * insdel.c (make_gap): Ditto.
13468 * xfns.c (adjust_scrollbars): Don't set bf_cur->text.
13470 1990-04-26 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13472 * minibuf.c: Declare active_screen struct screen *, not
13475 1990-04-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13477 * xterm.c (XTupdate_end): Only x_display_cursor if s is x_input_screen.
13479 1990-04-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13481 * fns.c (Fy_or_n_p): If a C-g comes in and does not quit, quit by hand.
13483 * buffer.c (Frename_buffer): Allow renaming to same name it has.
13485 1990-04-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13487 * xfns.c (Fx_open_connection): Attach xrdb to x_current_display.
13489 1990-04-17 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13491 * xterm.c (dumpborder): Now only used for X10.
13492 (highlight, unhighlight): New functions for X11.
13494 1990-04-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13496 * cm.c (Wcm_init): Return -2 if screen size not specified.
13497 * term.c (term_init): Special error message for that case.
13499 1990-04-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13501 * s-sunos4.h, s-sunos4shr.h (SYSTEM_MALLOC): Define it.
13503 1990-04-15 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13505 * xfns.c (Fx_get_resource): Concatenate invocation_name before
13507 (Fx_create_screen): Use the latest resource id's.
13509 1990-04-13 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13511 * xfns.c (Fx_get_resource): New subr.
13512 (Fx_open_connection): Call x_load_resources. New parameter
13514 * xrdb.c: New file for doing resource manager stuff.
13516 * xscrollbar.h: New file for scrollbar bitmaps.
13518 * xselect.h: New file for the X selection stuff.
13520 * ymakefile: Take note of these new files.
13522 1990-04-10 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13524 * xterm.c (x_term_init): Use MAXPATHLEN.
13526 1990-04-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13528 * buffer.c (list_buffers_1): Get filename from list-buffers-directory.
13530 1990-04-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13532 * screen.c (coordinates_in_window): Return -1 if in modeline of window.
13533 (Fcoordinates_in_window_p): Return Qt if in modeline of window.
13534 (Flocate_window_from_coordinates): Use next_screen_window if
13535 MULTI_WINDOW is defined.
13537 1990-04-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13539 * xterm.c (construct_mouse_event): Deal with the motion events
13540 first. Only grab the mouse when in the scrollbar.
13542 1990-04-04 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13544 * screen.c (coordinates_in_window): Include mode line as part of
13547 * xterm.c (XTread_socket): Initialize nbytes to 0.
13548 (x_display_cursor): Don't draw if screen not selected.
13550 * xdisp.c (DoDsp): Additional checks for screen being visible.
13552 1990-04-03 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13554 * editfns.c (Fmessage): If there is a global minibuffer screen,
13555 raise it before displaying the message.
13557 * window.c (window_loop): Parameter SCREENS now affects which
13558 screen is scanned for windows. All subrs calling window_loop must
13559 pass a Lisp_Object here now.
13561 1990-04-01 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13563 * window.c (window_loop): Additional parameter mini to control
13564 minibuffer selection or not.
13565 (Fget_lru_window, Fget_largest_window, Fget_buffer_window)
13566 (Fdelete_other_windows, Fdelete_windows_on)
13567 (Freplace_buffer_in_windows): Use that parameter.
13569 1990-03-29 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13571 * screen.c (Fselect_screen): Raise the selected screen.
13573 * window.c (Fget_buffer_window, Fget_largest_window)
13574 (Fget_lru_window): New parameter all_screens.
13575 (Fdisplay_buffer): Use the new param in Fget_lru_window,
13576 Fget_buffer_window, and Fget_largest_window.
13577 (Fscroll_other_window): Use new param in Fget_buffer_window.
13578 * buffer.c (Fother_buffer): Ditto.
13580 * xterm.c (x_display_cursor): Always draw the cursor if ON is
13581 true. Don't check if the screen S is selected or equal to
13584 * xfns.c (Fx_track_pointer): Don't turn off cursor, just call
13587 1990-03-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13589 * data.c (Fmake_local_variable): Give the variable value nil if
13592 * window.c (Fnext_window, Fprevious_window): For MULTI_SCREEN,
13593 check if Vglobal_minibuffer_screen is non-nil and maybe call
13596 * screen.c (Fscreen_selected_window, Fscreen_root_window):
13597 If screen is nil, use selected-screen.
13599 1990-03-27 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13601 * xterm.c (XTread_socket): SET_SCREEN_GARBAGED which returning
13602 symbol which causes DoDsp to be invoked.
13603 * keyboard.c (read_key_sequence): Don't SET_SCREEN_GARBAGED here.
13605 * screen.h: New macro SET_SCREEN_GARBAGED.
13611 * dispnew.c: Use the new macro.
13613 1990-03-25 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13615 * xfns.c (Fx_own_selection): Only take one argument, string.
13617 1990-03-24 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13619 * xfns.c (select_visual): Catch bullshit machines whose hardware
13620 doesn't support the X server pixel depth by looking at colormap_size.
13621 (x_decode_color): Use x_screen_planes to check for color.
13623 1990-03-23 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13625 * xterm.c (x_display_cursor): Try using vertical bar cursor.
13626 (clear_cursor): Call x_display_cursor for X11.
13628 * xfns.c: Zotzed Vx_pointer_mask.
13629 (Fx_track_pointer): Call x_display_cursor if we just
13630 wasted the cursor. Break out of loop if no display line.
13631 Use mode line cursor if we're there.
13632 (x_y_pos): New function.
13633 (x_set_font): Don't set x_font_{width,height}, they are gone.
13635 1990-03-22 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13637 * xfns.c (Fx_track_pointer): Check that s == selected_screen each
13638 time through loop. If event is nil, read mouse position.
13640 * keyboard.c (get_char): DoDsp only if selected_screen visible.
13642 * xterm.c (XTread_socket): Mark screen as visible only on expose
13645 * emacs.c (main): Check here for "-d" option and set display_arg.
13646 * dispnew.c (init_display): Set Vwindow_system, etc. if display_arg.
13648 1990-03-21 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13650 * keyboard.c (read_key_sequence): Don't DoDsp if the screen was
13652 (command_loop_1): Call the mouse motion handler before calling
13654 (interrupt_signal): Fixed typo checking screen type.
13656 * xfns.c (Fx_track_mouse): Don't crash because of null display
13657 line. Don't set obj til call to get_char.
13659 * xterm.c (x_term_init): Disable SIGWINCH here.
13661 * fns.c (Fmember): New subr.
13663 * dispnew.c (init_display): Don't check env variable DISPLAY to
13664 set Vwindow_system. Now done in startup.el.
13666 * emacs.c: Removed variables xargc, xargv.
13668 1990-03-20 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13670 * xfns.c (Fx_track_pointer): Go faster.
13672 * screen.h: New macro SCREENP.
13674 * window.c (Fminibuffer_window): Rewritten.
13676 1990-03-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13678 * sysdep.c (perror): Control with HAVE_PERROR as well as HPUX.
13679 * s-hpux.h (HAVE_PERROR): Define it.
13681 1990-03-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13683 * keyboard.c (command_loop_1): Restructured handling of X event
13685 (read_key_sequence): Handle new `unmapped-screen' symbol with new
13686 Vunmap_screen_hook.
13688 * xterm.c (XTread_socket): Return unmapped-screen symbol if the
13689 window for UnmapNotify events.
13691 * lread.c (Feval_region): GCPRO opoint.
13693 1990-03-16 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13695 * keyboard.c (command_loop_1): Call mouse-motion handler with
13696 argument. Also, don't call undo-boundary.
13698 * process.c (create_process): Set the process group for BSD at
13699 the same time as for USG.
13701 1990-03-14 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13703 * xterm.c (x_new_selected_screen): Set x_input_screen here.
13705 1990-03-11 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13707 * xterm.c: Vx_mouse_grabbed now Vmouse_grabbed.
13708 (XTread_socket): Generate exited-window symbols on LeaveNotify
13709 even if screen is focused.
13711 * xfns.c: Vx_mouse_grabbed now Vmouse_grabbed.
13712 (outline_region): Now static.
13713 (Fx_track_pointer): Check x_mouse_screen == s in loop.
13715 1990-03-10 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13717 * xterm.c (encode_mouse_button): Correctly get the button from
13720 * xfns.c (x11_encode_mouse_button): Nuked.
13721 (encode_mouse_button, Fx_mouse_events, Fx_get_mouse_event): #if 0'd.
13723 * keyboard.c (get_char): Re-set obj if we've keyboard-translated c.
13725 1990-03-08 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13727 * xterm.c (x_focus_screen): No longer static.
13728 (x_error_handler): Use XDefaultIOError.
13730 * screen.c (Ffocus_screen): New subr, removed Fscreen_has_focus.
13731 (Fselect_screen): New, optional parameter no_enter.
13732 (Frestore_screen_configuration)
13733 (Fdelete_screen): Pass second parm Qnil to Fselect_screen.
13735 * window.c (Fdisplay_buffer, Fset_window_configuration): Pass
13736 second parm Qnil to Fselect_screen.
13738 1990-03-07 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13740 * screen.c (Fscreen_has_focus): New subr.
13741 (Fselect_screen): Use x_focus_on_screen to physically select the
13744 1990-03-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13746 * xfns.c (x_set_mouse_position): Moved to xterm.c.
13748 * fileio.c (Fremove_directory): New subr.
13750 * screen.c (Frelease_focused_screen): Just call x_unfocus_screen.
13752 * xterm.c (XTread_socket): On FocusOut, if s isn't mouse screen,
13753 return exited-window. On LeaveNotify, simplify if expression for
13754 dumpborder. Reworked FocusIn/FocusOut events.
13755 (x_unfocus_screen): Check that screen is x_focus_screen.
13756 (x_set_mouse_position): Moved from xfns.c. Use new macro
13758 * xterm.h: New macro XWarpPointer.
13760 * buffer.c: Replaced Fbuffer_flush_undo with
13761 Fbuffer_disable_undo.
13762 * process.c: Ditto.
13764 1990-03-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13766 * xterm.c (XTupdate_end): Use parameter s rather than
13768 (XTread_socket): On EnterNotify, don't check s != focus_screen
13769 before selecting. On Focus In/Out don't set/reset mouse_screen.
13771 1990-03-04 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13773 * eval.c: If using X windows, include xterm.h.
13774 (error): TOTALLY_UNBLOCK_INPUT if using X.
13776 * xterm.h (BLOCK_INPUT, UNBLOCK_INPUT): No signal stuff, just inc
13777 and decrement x_input_blocked.
13779 * xfns.c (adjust_scrollbars): Don't BLOCK_INPUT.
13780 (x_set_font): Check result of x_new_font. Call error if nonzero.
13781 (x_set_icon_type): Check result of x_*_icon, maybe call error.
13783 * screen.c (Fdeiconify_screen): Use x_make_screen_visible rather
13784 than x_deiconify_screen. Return screen.
13785 (Fmake_screen_visible): Don't raise it here. Return screen.
13787 * xterm.c (XTwrite_glyfs): Don't show cursor if screen is
13788 global-minibuffer-screen.
13789 (x_new_selected_screen): Do dumpborder and check auto-raise here,
13790 rather than XEvent switch.
13791 (x_deiconify_screen): No longer exists.
13792 (x_do_pending_expose, x_clear_cursor)
13793 (x_invert_screen, scraplines, stufflines, x_bitmap_icon)
13794 (x_text_icon, x_new_font): Don't BLOCK_INPUT.
13795 (XTins_del_lines): BLOCK_INPUT here.
13796 (XTupdate_end): Don't turn on cursor if minibuffer-screen.
13797 (XTread_socket): On MotionNotify, just that screen is selected before
13799 (XTtopos): If updating_screen, just set x and y, don't flush.
13800 (x_bitmap_icon, x_text_icon, x_new_font): Return 1 if failed,
13802 (x_make_screen_visible): Raise the screen as well.
13804 1990-03-02 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13806 * screen.c (Frelease_focused_screen): Just check that screen is
13809 1990-02-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13811 * screen.c (Fselect_screen_focused, Frelease_focused_screen): New
13813 * xterm.c (x_focus_on_screen, x_unfocus_screen): New procedures
13814 to implement focusing.
13816 1990-02-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13818 * casefiddle.c: Doc fix.
13820 1990-02-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13822 * xterm.h: Redefined BLOCK_INPUT and UNBLOCK_INPUT to use sigblock
13823 and sigsetmask if available.
13824 * xterm.c: Declare BLOCK_INPUT_mask if have SIGIO and FIONREAD.
13826 1990-02-27 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13828 * minibuf.c (Fread_from_minibuffer): Initialize pos to 0.
13830 1990-02-25 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13832 * keyboard.c (read_key_sequence): Handle mapped-screen event
13833 symbol by calling new hook Vmap_screen_hook.
13835 * xterm.c (x_make_screen_invisible): Use the new Xlib function
13837 (x_iconify_screen): Use the new Xlib function XIconifyWindow.
13838 (XTread_socket): Return mapped-screen symbol to signal
13839 mapped-screen events.
13841 1990-02-23 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13843 * keyboard.c (command_loop_1): Check the character for width 1
13844 before doing direct_output_forward, as well as the cursor position
13847 * xdisp.c (DoDsp): Use redisplay_windows rather than
13848 redisplay_all_windows, which was removed.
13850 1990-02-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13852 * unexencap.c: New file, waiting for papers.
13854 1990-02-22 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13856 * keyboard.c: Removed much debugging stuff.
13857 * xterm.c: Removed much debugging stuff.
13858 (x_error_handler): For X11, if caught BadAlloc error while
13859 converting selection (note new variable x_converting_selection),
13860 just set new variable x_selection_alloc_error.
13862 * xfns.c: Massive changes for crufty selection processing details.
13863 New X atoms: Xatom_clipboard, Xatom_delete, Xatom_insert_selection,
13864 Xatom_insert_property, Xatom_pair.
13866 1990-02-21 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13868 * keyboard.c (kbd_buffer_store_char): Check NULL objects.
13870 * xterm.c (XTread_socket): Correctly advance bufp for all KeyPress
13873 1990-02-20 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13875 * keyboard.c (kbd_buffer_get_char): Use KBD_BUFFER_SIZE rather
13876 than sizeof kbd_buffer.
13877 (read_key_sequence): Upon redraw-display symbol, set
13880 * xterm.c (XTread_socket): On EnterNotify events, make sure to
13881 return mouse event for both scrollbars and windows.
13883 1990-02-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13885 * casefiddle.c (casify_region): Move the new statement.
13887 1990-02-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13889 * casefiddle.c (casify_region): Return if beginning and end same.
13891 1990-02-18 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13893 * keyboard.c (kbd_buffer_store_char): Use KBD_BUFFER_SIZE rather
13894 than sizeof kbd_buffer.
13896 * fns.c (Fy_or_n_p): Only accept ints from get_char.
13898 1990-02-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13900 * minibuf.c (Fread_from_minibuffer): New arg POSITION.
13902 * unexsunos4.c: New file. Waiting for papers.
13903 * s-sunos4shr.h: New file.
13905 * emacs.c (main) [RUN_TIME_REMAP]: Call run_time_remap.
13907 * ymakefile (LD): Let config file override with LD_CMD.
13909 1990-02-14 Joseph Arceneaux (jla@albert.ai.mit.edu)
13911 * keyboard.c (read_avail_input): Pass read_socket_hook
13912 KBD_BUFFER_SIZE rather than doing sizeof (buf).
13914 * xterm.c (XTread_socket): Set event.type = MotionNotify when
13915 entering screen or scrollbar to fake motion event.
13917 1990-02-13 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13919 * window.c (next_screen, prev_screen): Moved to screen.c.
13920 (Fnext_window): If mini non-nil, count the separate minibuffer
13922 * screen.c (Fnext_screen): New subr.
13924 1990-02-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13926 * xdisp.c (display_text_line, try_window, try_window_id, DoDsp):
13927 Don't display overlay arrow on more than one line in a window.
13929 1990-02-12 Joseph Arceneaux (jla@albert.ai.mit.edu)
13931 * doprnt.c (doprnt): Expand size of tembuf to 512.
13933 1990-02-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13935 * minibuf.c (Fread_no_blanks_input): Make second arg optional.
13937 1990-02-09 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13939 * keyboard.c (get_char): Remember to set obj when executing macro.
13940 (read_key_sequence): Handle the exited-scrollbar symbol.
13941 Compare obj, not read_key_sequence_cmd.
13943 * xterm.c (x_make_screen_visible, x_deiconify_screen): Check
13944 window-manager variable.
13945 (x_make_screen_invisible, x_iconify_screen): Don't use new R4
13946 calls (they crash), do it ourselves.
13947 (XTread_socket): Return exited-scrollbar symbol when doing so.
13949 1990-02-08 Joseph Arceneaux (jla@albert.ai.mit.edu)
13951 * xterm.c (construct_mouse_event): Rewritten to do mouse-motion
13952 compression. All mouse processing now done here.
13953 Also, just use nil and t for x-mouse-grabbed. Record buttons
13954 pressed in new variable x_mouse_grabbed. XGrabPointer on button
13956 * xfns.c (Fx_horizontal_line): Use x_mouse_grabbed.
13958 1990-02-07 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13960 * xdisp.c (DoDsp): If only updating selected screen, but there is
13961 a minibuffer screen, update it as well.
13963 1990-02-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13965 * xfns.c (Fx_pixel_width, Fx_pixel_height): New subrs.
13966 * xterm.h: New components pixel_width, pixel_height, to x_display.
13967 * xterm.c (XTread_socket): On configure notify, set these components.
13969 * window.c (Fset_window_configuration): Select the screen of the
13970 root window if it's not the selected_screen.
13971 * minibuf.c (read_minibuf): Remove all the screen selection stuff,
13972 now that this is integrated in Fset_window_configuration.
13974 1990-02-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13976 * screen.h: Declare Vglobal_minibuffer_screen.
13977 * xdisp.c (DoDsp): Set all_windows if using global-minibuffer-screen.
13979 1990-02-03 Joseph Arceneaux (jla@geech)
13981 * window.c (Fset_window_configuration): Make sure to set
13982 window->next to nil for a minibuffer-only screen.
13984 * screen.c (make_minibuffer_screen): Set mini_window->next nil.
13986 1990-02-01 Joseph Arceneaux (jla@albert.ai.mit.edu)
13988 * screen.c (make_screen): Set wants_modeline elt to 1.
13990 * window.c (Fset_window_configuration): Use screen->root_window
13991 as arg to delete_all_subwindows rather than minibuf_window->prev.
13993 * minibuf.c (read_minibuf): Don't unwind with
13994 Frestore_screen_configuration. Save selected_screen if different
13995 than minibuf screen, and re-select it after reading minibuf.
13996 * screen.c: #if 0 Fscreen_configuration,
13997 Frestore_screen_configuration.
13999 1990-02-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14001 * m-ibmps2-aix.h: Undef NEED_SIOCTL.
14002 (SIGN_EXTEND_CHAR): Cast to `signed char'.
14004 1990-01-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
14006 * xfns.c (Fx_track_pointer): Rewrote this to loop while there are
14009 * xterm.c (XTread_socket): Return left-window-event symbol upon
14011 * keyboard.c (read_key_sequence): Handle this symbol.
14013 1990-01-27 Joseph Arceneaux (jla@churchy.ai.mit.edu)
14015 * xterm.c (x_display_cursor): Use dumpglyfs with SPACEGLYF for
14016 cursor, as `XFillRectaogle's kill HP-BSD server.
14018 * xterm.h: Added nontext_cursor, modeline_cursor to x_display
14020 * xfns.c (x_set_mouse_color, Fx_track_pointer): Changes to use
14023 1990-01-25 Joseph Arceneaux (jla@albert.ai.mit.edu)
14025 * xterm.h: Changed the face structure for X11 to handle GCs and
14028 * xterm.c (XTread_socket): Return a motion event when mouse enters
14029 scrollbar or window.
14030 (x_make_screen_invisible): Use the new X11R4 function XWithdrawWindow.
14031 (x_iconify_screen): Use the X11R4 function XIconifyWindow.
14032 (dumpglyfs): Use the new face structure.
14034 * xfns.c (install_vertical_scrollbar, install_horizontal_scrollbar):
14035 Accept EnterNotify events. Use XMapSubwindows rather than mapping
14037 (Fx_set_face_font): New subr for X11 to set face GC.
14039 1990-01-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14041 * dispnew.c (direct_output_for_insert): Give up if buf in 2 windows.
14043 * keyboard.c (command_loop_1):
14044 Dumb bugs disabled special fast display for character motion.
14046 * xdisp.c (DoDsp): For cursor motion within line,
14047 hpos result from compute_motion is relative to window.
14049 1990-01-24 Richard Stallman (rms@albert.ai.mit.edu)
14051 * eval.c (Fmacroexpand): Handle explicit macros ((macro ...) ...).
14053 1990-01-18 Joseph Arceneaux (jla@spiff)
14055 * undo.c (Fundo_more): Fixed typo.
14057 1990-01-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14059 * xdisp.c (display_text_line): When checking HPOS for continuation
14060 line, compensate for w->left.
14062 1990-01-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14064 * dispnew.c [no FIONREAD]: Undefine SIGIO.
14066 * buffer.c (SetBfp): Use XTYPE to test for no selected window yet.
14068 * editfns.c, dispnew.c, fileio.c, process.c, sysdep.c, xterm.c:
14069 Uniformly let NEED_TIME_H control use of time.h instead of sys/time.h.
14071 * xterm.h (TOTALLY_UNBLOCK_INPUT, UNBLOCK_INPUT): Don't use
14072 SIGIO if no FIONREAD.
14074 1990-01-15 Joseph Arceneaux (jla@spiff)
14076 * xfns.c (x_set_mouse_color): Set non-text pointer shape with new
14077 variable Vx_nontext_pointer_shape.
14079 * keyboard.c: More checks for evil bug which trashes kbd_*_ptr.
14081 * m/hp300bsd.h: Try using BSD load average stuff.
14083 1990-01-11 Joseph Arceneaux (jla@spiff)
14085 * xfns.c (x_draw_pixmap): New routine.
14087 1990-01-10 Jim Kingdon (kingdon@pogo)
14089 * m/hp300bsd.h: New file
14091 1990-01-08 Joseph Arceneaux (jla@spiff)
14093 * xfns.c (Fx_window_id): New subr.
14095 * screen.c (make_screen): Set wants_modeline elt to mini_p.
14096 If mini_p 0, then set root_window->next to nil.
14098 1990-01-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14100 * editfns.c (Fchar_after): Set N after coercing marker.
14102 1990-01-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14104 * buffer.c (Fkill_all_local_variables): Force mode line update.
14106 1990-01-05 Joseph Arceneaux (jla@spiff)
14108 * insdel.c: Declare Vfirst_change_function.
14110 * keyboard.c (read_key_sequence): Function keys are now lisp symbols.
14111 (kbd_buffer_store_char): Abort if store pointer past
14112 buffer. Temporary; this shouldn't be able to happen.
14113 (read_key_sequence): #ifdef HAVE_X_WINDOWS code
14114 which handles complex objects.
14115 (command_loop_1): Check not termcap screen before
14116 processing non-char input.
14117 (kbd_{store,fetch}_char): More debugging checks.
14119 * screen.c (make_screen): Set root_window height to 9 if mini_p.
14120 (make_minibuffer_screen): Set the mini window's next,
14121 prev, and screen elements.
14123 * xterm.c (x_func_key_to_sym): New function, uses new variable
14125 (XTread_socket): Use this in KeyPress event for function keys.
14126 (XTflash): Draw solid rectangle in middle of screen.
14127 (x_set_offset): Set the size hints as well when doing
14129 (XTflash): Just dumpglyfs instead of redrawing the
14130 screen after flashing the rectangle.
14132 * lread.c (syms_of_lread): defsubr Fread_event.
14134 1990-01-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14136 * buffer.h, buffer.c (Vfirst_change_function): New Lisp variable.
14137 * insdel.c (signal_before_change): Call that function.
14139 * keyboard.c (cmd_error): Don't crash if TAIL is nil.
14141 1989-12-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14143 * minibuf.c: Doc fixes.
14145 1989-12-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14147 * process.c (create_process): Unhold SIGCHLD in the child.
14149 1989-12-27 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14151 * process.c (create_process): Treat HPUX like BSD for sigsetmask.
14153 1989-12-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14155 * fns.c (Fmapconcat): Gcpro SEP around mapcar1.
14157 1989-12-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14159 * dispnew.c (get_display_line): Don't touch X data if not using X.
14161 * syntax.c (Fscan_sexps): Fix fatal documentation typo.
14163 * lread.c: Include commands.h.
14165 * xterm.c (construct_mouse_event): Delete unreached return at end.
14166 (x_wm_set_size_hint): #if 0 some broken code.
14168 * cmds.c (SelfInsert): Set HAIRY if have before or after change hooks.
14169 * editfns.c (Fsubst_char_in_region, Ftranslate_region):
14170 Call signal_after_change for chars changed.
14171 * undo.c (Fundo_more): When undoing Uchange, do signal_after_change.
14172 * casefiddle.c (casify_region): Do modify_region before the change,
14173 signal_after_change afterward.
14175 * insdel.c (prepare_to_modify_buffer): Call signal_before_change.
14176 (del_range, InsCStr): Call signal_after_change.
14177 (signal_after_change, signal_before_change): New functions.
14179 1989-12-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14181 * dispnew.c (init_display) [VMS]: Downcase terminal type.
14183 1989-12-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14185 * sysdep.c: Use NEED_SIOCTL to control use of sioctl.h.
14186 * m/m-mips.h, m/m-iris4d.h: Define that.
14188 * m/m-ibmps2-aix.h (NEED_SIOCTL, HAVE_UNION_WAIT, HAVE_PTYS): Define.
14189 (HAVE_SYSVIPC, HAVE_SOCKETS, X_DEFAULT_FONT): Define.
14190 (sigsetmask): #undef this.
14192 1989-12-15 Joseph Arceneaux (jla@spiff)
14194 * lread.c (Fread_char): Catch error if read non-char.
14195 (Fread_event): New subr. Return any input object.
14197 1989-12-14 Joseph Arceneaux (jla@spiff)
14199 * xfns.c: New variable Vx_no_window_manager.
14200 (Fx_track_pointer): If bufp < 0, abort.
14202 * xterm.c (XTread_socket): When leaving window, set x_mouse_x and
14205 1989-12-13 Joseph Arceneaux (jla@spiff)
14207 * xterm.c (XTread_socket): On ConfigureNotify events, return
14208 "redraw-screen" symbol.
14209 (dumpborder): Only do border stuff if x-no-window-manager non nil.
14210 Also check if there is a tracking rectangle.
14211 (XTupdate_begin): If there is a mouse tracking rectangle, erase
14213 * keyboard.c (read_key_sequence): Return -2 for symbols.
14214 (command_loop_1): DoDsp when 'redraw-screen arrives as input.
14215 For mouse events, call Fexecute_mouse_event with
14216 read_key_sequence_cmd instead of Vmouse_event.
14218 1989-12-08 Joseph Arceneaux (jla@spiff)
14220 * process.c (create_process): For not USG, properly set the
14223 1989-12-07 Joseph Arceneaux (jla@spiff)
14225 * term.c (topos): Under X Windows, abort if topos_hook not
14226 correct. Temporary.
14228 * xfns.c (Fx_horizontal_line): New subr.
14230 1989-12-05 Joseph Arceneaux (jla@spiff)
14232 * keyboard.c (Fexecute_mouse_event): Don't set Vmouse_window here
14235 * xterm.c (construct_mouse_event): Vx_mouse_grabbed now indicates
14236 which keys are depressed.
14237 (construct_mouse_event): Set Vmouse_window here.
14239 1989-12-04 Joseph Arceneaux (jla@spiff)
14241 * screen.c (coordinates_in_window): New function.
14242 (Fcoordinates_in_window_p): Rewritten to use above.
14244 * dispextern.h: New element bufp for display_line structure when
14246 * xdisp.c (redisplay_window): Set this to the position in the
14247 buffer of the first char in this display line.
14248 * dispnew.c (get_display_line): Set this to -1 here.
14250 1989-12-03 Joseph Arceneaux (jla@spiff)
14252 * alloc.c: Upped NSTATICS from 200 to 256.
14254 * xterm.c (XTread_socket): Report MotionNotify events only if
14255 mouse has changed character position. Call x_read_mouse_position.
14256 Set Vmouse_event here.
14257 * xfns.c (x_read_mouse_position): Set new global variables
14258 x_mouse_x and x_mouse_y.
14260 * keyboard.c: Vignore_mouse_events: New variable.
14262 * syntax.c (Fscan_sexps): Doc change.
14264 * lread.c (Fread_char): Return only chars. If new variable
14265 Vignore_mouse_events non nil, execute any mouse events which
14268 1989-12-01 Joseph Arceneaux (jla@spiff)
14270 * xfns.c (Fx_track_pointer): Draw half-sized rectangles for '\n'.
14271 (x_rectangle): Draw half-size if negative argument.
14273 * xterm.c (XTread_socket): Abort if garbage collecting when doing
14276 * ymakefile: #define FLOATSUP if LISP_FLOAT_TYPE defined.
14278 * emacs.c (main): If BSD, set pgrp to pid.
14280 1989-11-30 Joseph Arceneaux (jla@spiff)
14282 * callint.c (Fcall_interactively): For case 'e', set varies[i] to
14283 avoid entering in the command history.
14285 * xterm.c: Removed the function x_indicate_pointer_char.
14286 (XTread_socket): When leaving window, erase mouse tracking box if
14288 * xfns.c (Fx_track_pointer): New function, does what
14289 x_indicate_pointer_char used to.
14290 (x_read_mouse_position): Subtract internal_border_width.
14292 * screen.c: No rubber-banding function for X11.
14294 * window.c (Fmove_to_window_line): Document string fix.
14296 1989-11-29 Joseph Arceneaux (jla@spiff)
14298 * lread.c (Fread_char): Return a Lisp_Object (directly from
14302 * xterm.c: Function keys now arrive as cons cells.
14304 1989-11-27 Joseph Arceneaux (jla@spiff)
14306 * keyboard.c (read_key_sequence): Handle Lisp_Symbols on input
14307 (function keys). Also, handle these and mouse events with
14308 prefixes (by ignoring the prefixes for now).
14310 * xfns.c: New variable Vx_mouse_grabbed.
14311 * xterm.c (construct_mouse_event): Use it.
14312 (XTread_socket): Return Lisp_Symbol for function key.
14314 * buffer.c (reset_buffer_local_variables): Set function_key_map to
14317 1989-11-24 Joseph Arceneaux (jla@spiff)
14319 * buffer.h: Per-buffer function key maps.
14321 * keyboard.c (read_avail_input): Convert chars to Lisp_Objects in
14324 1989-11-22 Joseph Arceneaux (jla@spiff)
14326 * keyboard.c (read_key_sequence): Check type of object returned
14327 from get_char. Handle mouse events (set Vmouse_event) and
14329 (get_char_menu_prompt): Return a Lisp_Object.
14330 (Fexecute_mouse_event): No longer set Vmouse_event.
14331 Vmouse_window set here.
14333 * xterm.c (XTread_socket): KeyPress events now return
14334 Lisp_Objects, as do ButtonPress events.
14335 (construct_mouse_event): New function.
14336 (encode_mouse_button): New function.
14338 1989-11-21 Joseph Arceneaux (jla@spiff)
14340 * keyboard.c (kbd_buffer_store_char, kbd_buffer_get_char):
14341 Store and get Lisp_Objects.
14342 (get_char): Use those Lisp_Objects.
14344 * fileio.c (Fread_filename_internal): If exactly complete, but
14345 string was modified, return string.
14347 * minibuf.c (temp_minibuf_message): Pass correct arguments to Fsit_for.
14349 1989-11-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14351 * s-386-ix.h: New file.
14353 1989-11-17 Joseph Arceneaux (jla@spiff)
14355 * xterm.c (dump_rectangle): Flush the X queue.
14357 1989-11-16 Joseph Arceneaux (jla@spiff)
14359 * xmenu.c (xmenu_show): Use ButtonReleaseMask instead of
14362 * fileio.c (Fmake_directory): New subr.
14364 1989-11-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14366 * config.h-dist (C_SWITCH_SITE, LD_SWITCH_SITE): Mention these.
14367 (HAVE_X11): Renamed from X11 and defined by default.
14368 It should have no effect when not using X.
14370 1989-11-14 Joseph Arceneaux (jla@spiff)
14372 * xfns.c (Fx_get_selection, x_selection_arrival): Use &event
14374 (x_selection_arrival): For incremental selections, loop on
14375 XGetWindowProperty if one is not enough.
14377 1989-11-13 Joseph Arceneaux (jla@spiff)
14379 * ymakefile: Just link if ../oldXMenu/libXMenu11.a already exists.
14381 1989-11-09 Joseph Arceneaux (jla@spiff)
14383 * m/m-sparc.h: If __GNUC__ use "-O", else "-O2"
14385 1989-11-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14387 * search.c (Fstore_match_data): A marker pointing nowhere, treat as 0.
14389 1989-11-08 Joseph Arceneaux (jla@spiff)
14391 * search.c (Fmatch_data): Fixed typo.
14393 * insdel.c (make_gap): Use BUFFER_REALLOC instead of realloc.
14394 * buffer.c (Fget_buffer_create): Use new define BUFFER_ALLOC in
14395 place of malloc, and set b->data.
14396 (Fkill_buffer): Use BUFFER_FREE on b->data, rather than malloc on
14398 * buffer.h: New element data in buffer_text structure.
14399 New define for it, bf_data.
14401 1989-11-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14403 * marker.c (Fset_marker): Don't force POS into visible range.
14404 * window.c (set_marker_restricted): New function does what
14405 Fset_marker did. All calls in this file now use the new function.
14407 1989-11-07 Joseph Arceneaux (jla@spiff)
14409 * buffer.h: Defines for allocating buffer variables.
14411 * ralloc.c: Completely rewritten.
14413 * alloc.c (xmalloc, xrealloc): Return 0 immediately for requests
14416 1989-11-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14418 * search.c (Flooking_at, Fstring_match, search_buffer):
14419 Record in search_regs_from_string whether matching against a string.
14420 (Fmatch_data): Save data as integers if from a string.
14422 * s-umips.h: Now include either s-usg5-2-2.h or s-bsd4-3.h
14423 and then override as needed.
14424 * m-mips.h: System dependence deleted.
14425 LD_SWITCH_MACHINE remains w/ options needed on all systems.
14426 * m-pmax.h: A little of that (LIBS_DEBUG) moved here.
14427 No need to undef LIBS_MACHINE.
14429 * fns.c (Fload_average): FIXUP_KERNEL_SYMBOL_ADDR is now general hook.
14430 * s-umips.h: Define it.
14432 * sysdep.c: Handle BROKEN_FIONREAD.
14434 1989-11-03 Joseph Arceneaux (jla@spiff)
14436 * config.h-dist: Mention LISP_FLOAT_TYPE, GNU_MALLOC, and REL_ALLOC.
14438 * s/s-umips.h: New file.
14440 1989-11-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14442 * process.c (Fopen_network_stream): Handle EINTR in connect.
14443 Describe errno in err msg if connect fails.
14445 1989-11-02 Joseph Arceneaux (jla@spiff)
14447 * vm-limit.c: New file.
14448 * ralloc.c: New file.
14449 * ymakefile: Take vm-limit.o into account.
14451 1989-11-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14453 * alloc.c (staticvec): Make this a simple vector of pointers
14454 rather than an alias for a vector of chars.
14456 1989-11-01 Joseph Arceneaux (jla@spiff)
14458 * window.c: Moved some functions (save_window_save,
14459 replace_window, unshow_buffer) around.
14460 * search.c: Moved function place.
14461 * lread.c: Moved function read_escape.
14462 * unexec.c: Declarations for make_hdr, copy_text_and_data,
14463 copy_sym. Declare mark_x as static void.
14464 * dispextern.h: Removed declaration of new_display_line.
14466 * emacs.c: Do malloc_init if GNU_MALLOC.
14467 * gmalloc.c (malloc_init): New function.
14469 * xfns.c (x_rectangle, Fx_draw_rectangle, Fx_erase_rectangle)
14470 (outline_region, Fx_countour_region, Fx_uncontour_region): New
14471 subroutines for drawing rectangles and things.
14472 (Fx_point_coordinates): New subr.
14474 1989-10-31 Joseph Arceneaux (jla@spiff)
14476 * All .c and .h files: New copyright header.
14478 1989-10-30 Joseph Arceneaux (jla@spiff)
14480 * gmalloc.c: New GNU malloc.
14482 * emacs.c (main, Fdump_emacs): No malloc init if GNU_MALLOC.
14484 * ymakefile: Check if GNU_MALLOC defined.
14486 1989-10-27 Joseph Arceneaux (jla@spiff)
14488 * xfns.c (Fx_pointer_char): New subr.
14489 * xterm.c (x_indicate_pointer): New procedure.
14491 * alloc.c (Fmake_vector_from_list, make_vector_from_list): New subrs.
14493 1989-10-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14495 * xterm.c (x_term_init):
14496 Negate arg to fcntl F_SETOWN if F_SETOWN_SOCK_NEG.
14497 * keyboard.c (Fset_input_mode) [NO_SOCK_SIGIO]:
14498 No interrupt input if using a socket.
14499 * m-sequent.h: Define NO_SOCK_SIGIO, F_SETOWN_SOCK_NEG, MAIL_USE_FLOCK.
14501 1989-10-26 Joseph Arceneaux (jla@spiff)
14503 * xterm.c (x_handle_error_gracefully): Make sure to completely
14504 release input before returning, using:
14505 * xterm.h New macro TOTALLY_UNBLOCK_INPUT.
14507 * xmenu.c (xmenu_quit): No longer use this error_handler; use
14510 1989-10-25 Joseph Arceneaux (jla@spiff)
14512 * config.h-dist: Comment fix.
14514 1989-10-24 Joseph Arceneaux (jla@spiff)
14516 * xfns.c (Fx_draw_lines, translate_vectors): New functions.
14518 1989-10-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14520 * search.c (search_buffer): Always find null string.
14522 * window.c (window_loop): For UNSHOW_BUFFER, don't Fset_buffer
14523 unless window is the selected one.
14525 1989-10-20 Joseph Arceneaux (jla@spiff)
14527 * xdisp.c (display_minibuf_message): Choose minibuf screen first
14528 of all. Return if not visible.
14530 1989-10-19 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14532 * xterm.c (x_handle_error_gracefully): New procedure to handle
14533 non-fatal X errors.
14534 (x_error_handler): Use it.
14535 (acceptable_x_error_p): New macro.
14537 * xfns.c (Fx_own_selection): Use second parameter SCREEN.
14539 * xdisp.c (message, message1): No longer displays messages
14540 when using X but not yet mapped.
14542 1989-10-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14544 * m-pyramid.h (NO_ARG_ARRAY): Define if using GCC.
14546 1989-10-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14548 * vmsfns.c (process_command_input): Call clear_waiting_for_input.
14550 1989-10-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14552 * syntax.c (scan_words): If words_include_escapes not 0,
14553 treat Sescape and Scharquote like Sword.
14554 (syms_of_syntax): Define Lisp variable.
14556 * process.c (wait_reading_process_input): Get rid of kbd_count.
14557 Use detect_input_pending.
14558 * sysdep.c (select, read_input_waiting): Likewise.
14559 (read_input_waiting): Don't read directly into kbd_buffer;
14560 use kbd_buffer_store_char.
14561 * keyboard.c: Don't define kbd_count.
14563 * keyboard.c (read_key_sequence): Reject the prefix char generated
14564 for a Meta char, if it finds a non-prefix definition.
14566 1989-10-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14568 * process.c (wait_reading_process_input): READ_KBD==2 means
14569 wait until have mouse input.
14570 * xfns.c (Fx_get_mouse_event): Use that.
14571 * xterm.c (mouse_event_pending_p): New subroutine.
14573 1989-10-13 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14575 * xfns.c (x_selection_arrival, x_send_incremental)
14576 (x_answer_selection_request): New procedures for incremental
14577 selection transfer.
14579 1989-10-12 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14581 * lread.c (complete_filename_p): New function which replaces
14582 absolute_filename_p. This one doesn't consider "~" valid.
14584 1989-10-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14586 * buffer.c: Comment fix.
14588 1989-10-11 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14590 * xfns.c (Fx_open_connection) New X atoms Xatom_incremental and
14593 * xterm.h: New macros MAX_SELECTION and SELECTION_LENGTH.
14595 * process.c (child_sig): Check pid <= 0 in case WNOHANG not defined.
14597 1989-10-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14599 * termcap.c (tgetent, gobble_line): Always store null at end of bfr.
14600 Allocate one extra byte at end to ensure space.
14601 Clean up order of arithmetic when updating ptrs into buffer
14604 1989-10-10 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14606 * xfns.c (Fx_open_connection): Make all X Atoms here.
14608 * xterm.c (x_iconify_screen): Cleaned up this code.
14609 (x_term_init): Removed warpmouseondeiconify stuff.
14611 1989-10-09 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14613 * xdisp.c (DoDsp): Make sure to call unhold_window_change after
14614 before all returns.
14616 * minibuf.c (read_minibuf): Changed set_mouse_position to
14617 Fset_mouse_position.
14619 * xterm.c (XTread_socket): dumprectangle (whole screen) instead of
14620 DoDsp in ConfigureNotify event.
14621 (x_wm_set_size_hint): New calculations for size_hints.
14623 * screen.c (Fset_mouse_position): No more function
14624 set_mouse_position; use x_set_mouse_position directly.
14626 * xfns.c (x_set_cursor_color): Really decode Vx_cusor_fore_pixel
14627 if set. Define new cursor before freeing old. This may eliminate
14628 a server bug on the Sony.
14629 Also check for invisible cursors.
14630 (x_set_mouse_color): Check for invisible pointers.
14631 (x_resize_scrollbars): BLOCK_INPUT whilst doing operations.
14632 (adjust_scrollbars): Likewise.
14634 1989-10-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14636 * m/m-hp9000s800.h (XUNMARK): Delete definition.
14637 (S_IFLNK): Do not undef it.
14639 1989-10-03 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14641 * dispnew.c (get_display_line): If screen not visible, abort.
14643 1989-10-02 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14645 * xterm.c (x_make_screen_visible): Set s->visible, unset
14646 s->iconified for HAVE_X11.
14648 1989-09-29 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14650 * xterm.c (XTread_socket): Check screen s before proceeding for
14653 * xterm.c: No longer sets the variable mouse_down_timestamp.
14654 * xfns.c (Fx_get_mouse_event): mouse_timestamp (formerly
14655 mouse_down_timestamp) set here. Also, mask out upper 9
14656 bits before doing XSET.
14658 1989-09-28 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14660 * xfns.c (Fx_geometry): Kludge for the case of position `-0'.
14661 (Fx_get_mouse_event): Also return the time stamp as last list elt.
14662 (Fx_color_display_p, Fx_defined_color, x_decode_color)
14663 (defined_color): Eliminate screen argument.
14664 (Fx_create_screen): No more ColorMap component to display.x.
14665 * xterm.h: Likewise.
14667 1989-09-27 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14669 * xfns.c (Fx_own_selection, Fx_get_selection, x_disown_selection):
14670 New funcs, which use new variables Vx_selection_value,
14671 x_begin_selection_own, mouse_down_timestamp, requestor_time,
14672 requestor_window, property_name, and x_begin_selection_own.
14674 * xterm.c (XTread_socket): Only do stuff if s for FocusOut under X11.
14677 SelectionNotify: New events to handle the selection inter-client
14678 communication mechanism.
14679 ButtonPress: Set mouse_down_timestamp.
14681 1989-09-26 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14683 * xfns.c: New variable Vx_cursor_fore_pixel.
14685 1989-09-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14687 * lread.c (openp): Don't ! the result of `access'.
14689 1989-09-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14691 * fileio.c (Fread_file_name_internal): Try to work properly
14692 if dirs are specified using environment vars. Preserve use of vars.
14694 1989-09-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14696 * fileio.c: Comment fix.
14698 1989-09-18 Joseph Arceneaux (jla@spiff)
14700 * xfns.c (Fx_get_cut_buffer): XFree the data returned by
14703 1989-09-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14705 * fileio.c (Fwrite_region): Reinstall #if 0 around fstat.
14707 1989-09-12 Joseph Arceneaux (jla@spiff)
14709 * xfns.c (defined_color): New function to test if a color is
14711 (x_decode_color): Use defined_color.
14712 (Fx_defined_color): New subr.
14713 (select_visual): Select the appropriate X11 Visual.
14714 (Fx_open_connection): Use select_visual. screen_visual now
14715 global and used when making emacs windows.
14716 (Fx_color_display_p): New subr.
14718 1989-09-11 Joseph Arceneaux (jla@spiff)
14720 * fileio.c (Fwrite_region): Fixed typo.
14722 * keyboard.c (Fdiscard_input): Fixed typo.
14724 * window.c (Fnext_window): Fixed typos.
14726 * alloc.c (xmalloc, xrealloc): hold_window_changes whilst doing
14727 the associated operations.
14729 * dispnew.c (init_display, Fsleep_for, Fsit_for):
14730 * process.c (Faccept_process_output):
14731 * keyboard.c ({clear,set}_waiting_for_input)
14732 (quit_throw_to_get_char, get_char):
14733 * xdisp.c (DoDsp, message, message1): Undid changes of Aug. 23
14734 (see below); accept window changes most of the time.
14736 1989-09-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14738 * keyboard.c: Eliminate kbd_count, and use two pointers,
14739 kbd_fetch_ptr and kbd_store_ptr. Assume buffer is empty when
14740 they are equal. This should eliminate timing error.
14741 (kbd_buffer_store_char): Update kbd_store_ptr when storing.
14742 Don't ever fill the entire buffer.
14743 (kbd_buffer_get_char): Update kbd_fetch_ptr when fetching.
14744 (stuff_buffered_input): Likewise.
14745 (get_input_pending): Compare the two pointers.
14747 * fileio.c (Fwrite_region): Reenable using fstat rather than stat
14748 to get the modtime of the file just written, except on VMS and APOLLO.
14750 1989-09-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14752 * emacs.c, doc.c, filelock.c: Move Emacs header includes after
14753 system header includes, and #undef NULL in between.
14755 1989-08-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14757 * process.c [SYSV_PTYS]: If `titan', include some other files.
14759 1989-08-29 Joseph Arceneaux (jla@spiff)
14761 * fileio.c: read-file-name replaced with new version, formerly
14762 called new-read-file-name.
14764 1989-08-26 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
14766 * window.c (Fscroll_other_window): Use save-excursion (in effect)
14767 to save and restore current buffer and point.
14768 (window_scroll): If selected window's buffer isn't current,
14769 make it current, using save-excursion to go back.
14771 1989-08-24 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
14773 Use two variables to convey reason for synch process death,
14774 to avoid consing in signal handler.
14775 They are synch_process_death and synch_process_retcode.
14776 * callproc.c (Fcall_process): Use both variables.
14777 * process.c (child_sig): Set both variables.
14779 1989-08-24 Joseph Arceneaux (jla@spiff)
14781 * xterm.c (x_wm_set_size_hint): Use new ICCCM values for size_hints.
14783 1989-08-24 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
14785 * buffer.c: Doc fix.
14787 1989-08-24 Joseph Arceneaux (jla@spiff)
14789 * xfns.c (Fx_create_screen): X11 part. Set height and width to 0
14790 before calling change_screen_size.
14792 * buffer.c (kill-all-local-variables): Changed doc string.
14794 1989-08-23 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
14796 * dispnew.c (init_display): Call hold_window_change.
14797 (Fsleep_for, Fsit_for): Temporarily unhold, while waiting.
14798 * process.c (Faccept_process_output): Likewise.
14799 * keyboard.c ({clear,set}_waiting_for_input): Temporarily unhold.
14800 (quit_throw_to_get_char, get_char): Rehold.
14801 * xdisp.c (DoDsp, message, message1):
14802 Unhold and rehold momentarily before any real work.
14804 * Makefile (CPP): Use $(CC).
14806 1989-08-22 Joseph Arceneaux (jla@spiff)
14808 * xfns.c (x_set_mouse_color): Use new variables Vx_pointer_mask,
14811 1989-08-21 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
14813 * alloc.c (malloc_warning): Do nothing if ignore_warnings.
14814 (init_alloc_once): Set ignore_warnings while initializing allocation.
14816 * buffer.c: Doc fix.
14818 1989-08-21 Joseph Arceneaux (jla@spiff)
14820 * xterm.c (x_calc_absolute_position): New function to calculate
14821 positive screen position.
14822 (x_set_position): Use it.
14823 (x_reset_cursor): No longer exists.
14825 * xfns.c (x_set_mouse_color): Reset the cursor even if there's no
14827 (x_figure_window_size): Use x_calc_absolute_position.
14828 (x_set_mouse_color): Rewrote this function. Always set cursor and
14829 its color. If the window exists, then attach the cursor to it.
14830 No longer uses x_reset_cursor.
14831 (x_create_window, x_set_background, x_set_foreground):
14832 Use x_set_mouse_color instead of x_reset_cursor.
14834 1989-08-18 Richard Stallman (rms@hobbes.ai.mit.edu)
14836 * vmsfns.c: Define PRV$V_... syms if prvdef.h does not.
14838 1989-08-18 Joseph Arceneaux (jla@spiff)
14840 * xfns.c (Fx_geometry): New subr.
14841 (x_figure_window_size): Don't worry about "geometry" here anymore;
14842 now done in x-win.el.
14843 (x_icon): Look in parms for iconic-startup rather than in variable.
14845 1989-08-16 Joseph Arceneaux (jla@spiff)
14847 * xfns.c (x_set_*_scrollbar): Don't destroy a scrollbar if it
14848 doesn't exist. Also set scrollbar size only if actually creating
14850 (x_set_name): Don't do anything if the X window doesn't exist.
14851 Set the icon name as well.
14852 (x_window): Set the class hints for the window.
14854 1989-08-16 Richard Stallman (rms@hobbes.ai.mit.edu)
14856 * lread.c (Fload): Fix unterminated comment.
14858 * scroll.c (scrolling_max_lines_saved): Replace fixed threshold of 20
14859 with 1/4 of average length of lines.
14861 1989-08-13 Joseph Arceneaux (jla@spiff)
14863 * ymakefile: Do ${make} for oldXMenu.
14865 1989-08-13 Richard Stallman (rms@hobbes.ai.mit.edu)
14869 1989-08-12 Richard Stallman (rms@hobbes.ai.mit.edu)
14871 * emacs.c (main): Check for failure opening -t device.
14872 Fatal error if terminal isn't a real terminal.
14874 * window.c (Fscroll_other_window): Let Vother_window_scroll_buffer
14875 specify a buffer to scroll.
14877 1989-08-11 Richard Stallman (rms@hobbes.ai.mit.edu)
14879 * dispnew.c: Handle BROKEN_FIONREAD as in other files.
14881 1989-08-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14883 * fileio.c (barf_or_query_if_file_exists): When signaling,
14884 provide the expected args for a file-error.
14886 1989-08-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14888 * process.c: Let NEED_BSDTTY control include of bsdtty.h.
14890 * process.c [BSD or STRIDE]: If ioctl.h fails to define O_NDELAY,
14891 and we need it, try fcntl.h.
14893 * s-bsd*.h, s-rtu.h, s-umax.h, s-unipl*.h: Define HAVE_UNION_WAIT.
14894 * m-stride.h: Likewise.
14895 * process.c: Decide which type to use with `wait'
14896 according to HAVE_UNION_WAIT. If WAITTYPE already defined,
14897 assume everything all set up for this.
14899 * m-hp9000s300.h: Unless NOT_C_CODE or NO_SHORTNAMES,
14900 define WAITTYPE and WRETCODE, and include sys/wait.h.
14902 1989-08-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14904 * callproc.c (child_setup): Get rid of junk in #if 0.
14906 1989-08-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14908 * abbrev.c (Fdefine_abbrev): Allow nil spec'd as expansion.
14909 (Fexpand_abbrev): Eliminate abbrev length limit; use alloca.
14910 Eliminate redundant tests, always true.
14911 Record positions of both start and end of abbrev.
14912 Handle whitespace following the abbrev, before point.
14914 * callproc.c (Fcall_process_region): Use unwind-protect to delete
14917 * lread.c (load_unwind): Free the pointer-word malloc'd in Fload.
14919 1989-08-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14921 * emacs.c (Fdump_emacs): Doc fix.
14923 1989-08-02 Joseph Arceneaux (jla@spiff)
14925 * xfns.c: Reorganized several functions to be in same order as the
14927 (x_set_border_color): For X11, don't set pix to -1 for
14929 (Fx_create_screen): Simplified this function even more.
14931 1989-07-31 Joseph Arceneaux (jla@spiff)
14933 * keymap.c: New subrs Fuse_local_mouse_map, Fcurrent_local_mouse_map.
14935 * xfns.c (x_set_mouse_color, x_set_cur): No need to redraw display
14938 (Fx_get_mouse_event): Accept motion events.
14939 (x11_encode_mouse_button): Encoding a la X11, except for one
14940 kludge. This is used only for motion events.
14942 * xterm.c (XTread_socket): Handle motion events.
14944 1989-07-26 Joseph Arceneaux (jla@spiff)
14946 * xfns.c (Fx_create_screen): I couldn't take it any more, the
14947 ugliness of this routine offended me too deeply. It is now
14948 completely rewritten for X11 and uses subroutines:
14949 (x_figure_window_size, x_create_window, x_icon, x_make_gc)
14950 (Fx_draw_rectangle, Fx_erase_rectangle): New subrs.
14952 * m/m-intel386.h: Changes in LOAD_AVE_TYPE, LOAD_AVE_CVT, and
14953 FSCALE to make loadst work correctly.
14955 1989-07-24 Joseph Arceneaux (jla@spiff)
14957 * xfns.c (Fmodify_screen_parameters): Check s->output_method
14958 before looping through alist.
14960 (Fx_create_screen): Call x_default_parameter for font.
14961 Don't add the scrollbar widths when making the main window: this
14962 is done when the scrollbar is actually made.
14964 (x_set_vertical_scrollbar): Set v_scrollbar_width here instead of
14965 in install_vertical_scrollbar. Also, pass that function macros
14966 PIXEL_WIDTH, PIXEL_HEIGHT as args.
14968 (x_set_horizontal_scrollbar): Likewise.
14970 * xterm.c (x_set_window_size): Don't call the things called
14971 anyway upon the ConfigureNotify event.
14972 (x_set_offset): Use the screen-size lisp variables for these
14975 * xterm.h: Added the screen parameter declarations from xfns.c for
14978 1989-07-21 Joseph Arceneaux (jla@spiff)
14980 * sysdep.c: Don't include sioctl.h on mips.
14982 * buffer.c (Flist_buffers): Pass prefix as arg.
14984 * editfns.c (Finsert_char): Insert at most 256 chars at a whack.
14986 * xterm.c (x_draw_box): Moved cursor box right by one pixel.
14988 1989-07-20 Joseph Arceneaux (jla@spiff)
14990 * xfns.c: New variable x_screen_visuals, set if Fx_open_display,
14991 to be used in screen-color-p.
14993 * process.c (create_process): Don't call setpgrp_of_tty here.
14994 Also, do setpgrp for USG regardless of HAVE_PTYS.
14996 * callproc.c (child_setup): Ignore argument set_pgrp and always do
14998 (Fcall_process): Don't call setpgrp_of_tty here.
15000 * keyboard.c (command_loop_1): Make sure Vprefix_arg is NULL
15001 before finalizing_kbd_macro_chars;
15003 1989-07-19 Joseph Arceneaux (jla@spiff)
15005 * xfns.c (Fx_rebind_key): Completely rewrote this function for
15008 1989-07-13 Joseph Arceneaux (jla@spiff)
15013 * m/m-ibmrt-aix.h: Changed IBMRTAIX to IBMAIX.
15014 * sysdep.c: Likewise. Also, don't define our closedir if IBMAIX.
15015 * m/m-ibmps2-aix.h: New file.
15017 1989-07-12 Joseph Arceneaux (jla@spiff)
15019 * xdisp.c (message, message1): If using x, but haven't mapped the
15020 window yet, use noninteractive output.
15022 * dispnew.c (Fredraw_display): Don't redraw a screen which is not
15025 * xterm.c (x_set_window_size): Don't DoDsp if screen isn't visible.
15027 * xfns.c (x_set_mouse_color)
15028 (x_set_border_color)
15029 (x_set_cursor_color)
15030 (x_set_background_color)
15031 (x_set_foreground_color): Don't redraw when screen isn't visible.
15033 1989-07-11 Joseph Arceneaux (jla@gluteus)
15035 * xterm.c (x_term_init, XTread_socket): Use ConnectionNumber for
15036 both X10 and X11. This is #defined for X10.
15038 * screen.c (Fset_screen_width, Fset_screen_height): These now take
15041 1989-07-10 Joseph Arceneaux (jla@gluteus)
15043 * xterm.c (x_set_window_size): Call x_wm_set_size_hint.
15044 (x_new_font): Don't call x_wm_set_size_hint.
15046 * xfns.c (x_set_internal_border_width): Don't call
15047 x_set_resize_hint, and call x_set_window_size after BLOCK_INPUT.
15049 * screen.c, dispnew.c (Fset_screen_width, Fset_screen_height):
15050 These functions have moved to screen.c.
15052 1989-07-07 Joseph Arceneaux (jla@sugar-bombs.ai.mit.edu)
15054 * eval.c (Ffuncall): Handle 6 arguments. Also, print a nice error
15055 message if there are more than 6 args.
15057 * fns.c (Fyes-or-no-p):
15058 * minibuf.c (read_minibuf_unwind, Fread_minibuffer)
15059 (Fread_no_blanks_input, Fcompleting_read): Extra arg to read_minibuf.
15061 * callint.c (Fcall_interactively):
15062 * keyboard.c (Fexecute_extended_command):
15063 * minibuf.c (Fread_command, Fread_function, Fread_variable)
15064 (Fread_buffer): Extra arg to Fcompleting_read.
15066 1989-07-05 Joseph Arceneaux (jla@spiff)
15068 * minibuf.c (read_minibuf): New argument back_n is number of
15069 characters to back-up point by.
15070 (Fcompleting_read): Same.
15071 * fileio.c (Fnew_read_file_name): New version of Fread_file_name
15072 using the above features.
15073 (Finsert_file_contents): Check for negative file length.
15075 1989-07-03 Joseph Arceneaux (jla@spiff)
15077 * xfns.c (x_pixel_width, x_pixel_height) New functions.
15078 * screen.c (Fscreen_pixel_size): New subr.
15080 1989-06-30 Joseph Arceneaux (jla@spiff)
15082 * xterm.c: Use invocation_name as argument to XGetDefaults.
15084 1989-06-29 Joseph Arceneaux (jla@spiff)
15086 * xterm.c (x_error_handler) #ifdef sony_news use XDefaultError
15087 instead of XPrintDefaultError due to weirdness in Sony library.
15088 * xterm.c: Avoid infinite raise/lower, enter/leave cycle when both
15089 auto_raise and auto_lower are set by checking times between
15090 consecutive Enter events.
15092 1989-06-27 Joseph Arceneaux (jla@sugar-bombs.ai.mit.edu)
15094 * screen.c (Fselect_screen):
15095 * window.c (Fselect_window): The previous strategy was bugging the
15096 lisp stuff, so these are now rewritten.
15098 1989-06-26 Joseph Arceneaux (jla@galapas.ai.mit.edu)
15100 * cm.c (Wcm_init): Don't check for Wcm.cm_ds, since this has been
15102 (losecursor): This function now a #define in cm.h.
15104 * xterm.c (x_iconify_screen): Send message to root window to do
15105 this, as per latest Inter-Client Communications Conventions. This
15106 is commented out until it's implemented by X. For now, do it with
15107 the iconic_state hint.
15108 (x_deiconify_screen): For X11, just Map the window, as per the new
15110 (x_make_screen_visible): Only handle visible and iconified screen
15111 elements for X10; these variables are handled in event processing
15113 (x_make_screen_invisible): Send an UnmapNotify event to the root
15114 window to apprise the window manager of the change.
15115 (XTread_socket): Catch VisibilityNotify events.
15117 1989-06-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15119 * window.c (Fsplit_window): If horizontal, round left window size up.
15121 1989-06-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15123 * cm.h (cmplus): Improve formatting.
15124 Use losecursor when reach end of line, if losewrap.
15126 * cm.h: New fields to handle multi-line and multi-char motion,
15127 and both max and min cost for certain operations.
15128 * term.c (term_init): Init those fields.
15130 * term.c (clear_end_of_line_raw): Don't clear last char of last line
15133 * abbrev.c (Finsert_abbrev_table_description): Make 2nd arg optional.
15135 1989-06-23 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15137 * xfns.c: C routine Fscreen_color_p now lisp
15138 function x-color-screen-p in lisp/term/x-win.el.
15139 (x_set_cursor_color): New method: first disallow same cursor as
15140 background, then if cursor not foreground, use it as cursor
15143 1989-06-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15145 * lisp.h (XPNTR): Don't define if already defined.
15147 1989-06-22 Joseph Arceneaux (jla@cream-of-wheat.ai.mit.edu)
15149 * screen.c: New subrs Ficonify_screen, Fdeiconify_screen,
15150 Fread_mouse_position, Fset_mouse_position.
15152 * xterm.c: New functions x_deiconify_screen, x_iconify_screen.
15154 1989-06-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15156 * window.c (Fsplit_window, change_window_height):
15157 Enforce minimum of 2 for window_min_width and window_min_height.
15159 1989-06-22 Joseph Arceneaux (jla@galapas.ai.mit.edu)
15161 * dispnew.c (unhold_window_change): Don't set and unset in_display
15162 before and after calling change_screen_size.
15164 1989-06-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15166 * buffer.c (Fkill_buffer): Ignore errors deleting auto-save file.
15167 Delete only if delete-auto-save-files.
15169 * data.c (Fmake_local_variable): Don't change value if unbound.
15171 1989-06-20 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15173 * screen.c (Fselect_screen): Use x_set_mouse_position instead of
15176 * xterm.c (x_enter_screen): Deleted, now merged with
15177 * xfns.c (x_set_mouse_position): If the position is negative, use
15178 the center screen position.
15180 * data.c (swap_in_symval_forwarding): Declared tem1.
15181 (Fset): Changed variable name void to voide. Also, set it to a C
15182 true/false, rather than Qt or Qnil.
15184 1989-06-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15186 * eval.c (Fdefvar): Operate on default value if sym is buffer-local.
15187 (Fdefconst): Likewise.
15189 Allow buffer-local variables to be void in one buffer
15190 or in the default value.
15191 * data.c (swap_in_symval_forwarding): New function.
15192 (Fboundp, Fsymbol_value): Use that.
15193 (default_value): New function.
15194 (Fdefault_value): Use that.
15195 (Fdefault_boundp): New function, uses that.
15197 1989-06-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15199 * ymakefile: New variable OLDXMENU has filename of libXMenu.a
15200 as a target. Make temacs depend on it.
15202 1989-06-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15204 * ymakefile [HAVE_X11, HAVE_X_MENU]: Build oldXMenu.
15205 * xmenu.c: Get XMenu.h from sibling dir.
15207 * buffer.c (Fkill_buffer): Return t if buffer is killed.
15208 Delete auto-save file if any.
15210 1989-06-09 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15212 * window.c: Initialize auto_new_screen to 0 (nil).
15214 * screen.c (make_screen): Added auto_lower to the list of screen
15215 elements initialized.
15216 (make_minibuffer_screen): Likewise.
15218 1989-06-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15220 * window.c (Fset_window_point): Don't lose if window's buffer is
15223 1989-06-08 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15225 * xfns.c (Fx_open_connection): Added 9 Lisp variables
15226 defined by the screen and server.
15228 1989-06-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15230 * m-pmax.h: New file.
15232 1989-06-08 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15234 * xfns.c: Removed superfluous definition of gray_bits.
15236 1989-06-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15238 * m-hp9000s300.h: Define NEED_BSDTTY unless NOMULTIPLEJOBS.
15240 1989-06-07 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15242 * emacs.c (Fkill_emacs): If under X, call
15243 Fx_close_current_connection. This has fixed the "bad file" bug.
15244 * xfns.c (Fx_close_current_connection): Added this subr which for
15245 the moment serves only to close the X-connection when killing emacs.
15247 1989-06-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15249 * m-hp9000s800.h: Define NEED_BSDTTY here.
15250 * s-hpux.h: Not here.
15252 1989-06-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15254 * s/s-hpux.h: Define NEED_BSDTTY.
15256 1989-06-06 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15258 * xterm.c (x_new_selected_screen): Make the new selected_screen
15259 and it's selected_window's screen be the same.
15260 (x_enter_screen): Calculate the middle of the screen, and warp the
15261 mouse there. Also, raise the screen before doing so.
15263 1989-06-05 Joseph Arceneaux (jla@cream-of-wheat.ai.mit.edu)
15265 * xterm.c (x_set_window_size): If not already in DoDsp (checked
15266 with variable in_display) then DoDsp here. Handles redisplay
15267 after screen configuration.
15268 (x_error_handler): Print out stuff about the error if we're in
15271 * dispnew.c (change_screen_size): No longer call DoDsp here.
15273 1989-06-05 Chris Hanson (cph@kleph)
15275 * syntax.c (Fmodify_syntax_entry): Change documentation string to
15276 reflect earlier change to action of `p' syntax bit.
15278 1989-06-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15280 * lread.c (read1): Don't accept "" in middle of string.
15282 1989-05-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15284 * search.c (Freplace_match): If \N has nothing to insert,
15287 1989-05-29 Joseph Arceneaux (jla@gracilis.ai.mit.edu)
15289 * xfns.c (Fx_create_screen): If parms is nil and
15290 Vx_screen_defaults isn't, then use them.
15291 (Fdisplay_buffer): Call Fx_create_screen with Qnil.
15293 1989-05-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15295 * syntax.c (scan_lists): Once within a word, treat Squote like Sword.
15297 1989-05-24 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15299 * dispnew.c (change_screen_size): DoDsp if not pretend.
15301 1989-05-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15303 * search.c (skip_chars): Dumb error checking for \.
15305 1989-05-22 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15307 * screen.c (Fselect_screen): Under X, basically just warp the
15308 cursor into the desired screen. The event handler will then do
15310 (Frestore_screen_configuration): Don't set the mouse position.
15312 * window.c (Fselect_window): If window's screen is not selected,
15313 call Fselecte_screen.
15314 (Fdisplay_buffer): Call Fx_create_screen with x-screen-parameters
15315 as argument instead of nil.
15317 * keyboard.c (clear_waiting_for_input): Don't call
15318 x_new_selected_screen here.
15320 * xterm.c (XTread_socket): Add case slots for CirculateNotify and
15321 CirculateRequest events.
15323 1989-05-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15325 * doc.c (Fsubstitute_command_keys): Evaluate \\<...> keymap
15328 * keymap.c (Fapropos_internal): New Lisp function, old apropos
15329 but only returns a list.
15331 1989-05-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15333 * process.c (Fopen_network_stream): Don't set kill-without-query.
15335 1989-05-19 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15337 * xterm.c (x_new_selected_screen): This now takes a struct screen
15338 pointer as parameter.
15339 (XTread_socket): Call x_new_selected_screen *before* dumpborder.
15341 1989-05-16 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15343 * xfns.c (x_window_to_scrollbar): If the caller's not interested
15344 in the names--passing 0 for last two parameters--just return the
15347 * xterm.c (x_enter_screen): Added this function for warping the
15348 pointer into a screen.
15350 1989-05-16 Chris Hanson (cph@kleph)
15352 * syntax.c (scan_lists, scan_sexps_forward): Treat characters
15353 whose "prefix" bit is on as whitespace when they are encountered
15354 between expressions. When they occur within expressions they are
15355 treated according to their syntax code.
15357 1989-05-16 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15359 * xterm.c (x_new_selected_screen): Don't call Fselect_screen.
15360 Just do everything here.
15362 * window.c (Fselect_window): If the screen associated with the
15363 window is not selected, warp the mouse, cause an EnterNotify event
15364 which then causes the proper screen to become selected. This does
15365 *not* call Fselect_screen.
15367 * screen.c (Fselect_screen): Now this is *only* a lisp subr. It
15368 just calls Fselect_window on the selected window of the screen.
15370 1989-05-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15372 * editfns.c (Fsubst_char_in_region): If NOUNDO, do increment tick,
15373 but maybe also increment save-tick.
15375 1989-05-15 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15377 * xterm.c (x_set_window_size): Only one #ifdef HAVE_X11 due to new
15379 * xterm.h: New macro XChangeWindowSize for both X10 and X11.
15381 * xfns.c (Fx_create_screen): Use XCreateWindow instead of
15382 XCreateSimpleWindow to directly set some extra attributes.
15384 1989-05-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15386 * syntax.h (SYNTAX_PREFIX): New macro.
15387 * syntax.c (Fmodify_syntax_table): Handle `p'; set new flag.
15388 (describe_syntax): Describe new flag.
15389 (Fbackward_prefix_chars): Move back over such chars.
15391 * lread.c (read1): Dumb errors in last change.
15393 1989-05-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15395 * lread.c (read1): Error if EOF after `?' or in string.
15397 * sysdep.c (init_sys_modes) [IBMRTAIX]: Typo; had s for sg.
15399 1989-05-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15401 * s/s-usg5-3.h: Define HAVE_SYSVIPC?
15403 * alloc.c (Fmake_byte_code): If purifying, purecopy all elements.
15405 * ymakefile (LIBXMENU): Use -loldX.
15406 Find libXMenu11.a in special place.
15408 1989-05-12 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15410 * xfns.c (Fx_create_screen): If user has specified
15411 `x-iconic-startup' then start emacs in iconic form.
15412 Look for icon position in `icon-left' and `icon-top', or use
15415 * xterm.c (x_term_init): If server doesn't respond, use fatal
15416 instead of error. Also tell user about -d option.
15418 1989-05-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15420 * sysdep.c (init_sys_modes, reset_sys_modes):
15421 Handle TIOCGLTC even if HAVE_TERMIO.
15423 * print.c (Qprint_escape_newlines): New variable.
15424 * minibuf.c (read_minibuf): Make it t locally in minibuffers.
15426 * fileio.c (Fcopy_file): Check for error on close.
15428 1989-05-10 Joseph Arceneaux (jla@corn-chex.ai.mit.edu)
15430 * xfns.c (adjust_scrollbars): Don't subtract 2 from
15431 h_scrollbar_height when calculating `length'.
15433 1989-05-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15435 * eval.c (call_debugger): Set entering_debugger.
15436 (find_handler_cause): Don't enter debugger if that's set.
15437 (Fbacktrace): Clear it; we are presumably in the debugger.
15439 * m/m-sps7.h: New file.
15441 1989-05-08 Joseph Arceneaux (jla@rice-chex.ai.mit.edu)
15443 * xterm.c (XTread_socket_hook): For X11, on map and unmap events
15444 check the window manager hints for iconification status.
15446 * xterm.c (x_make_window_icon): For X11, just request
15447 iconification of the window manager.
15449 1989-05-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15451 * m/m-clipper.h: New file.
15453 1989-05-07 Joseph Arceneaux (jla@corn-chex.ai.mit.edu)
15455 * xfns.c (adjust_scrollbars): Don't subtract 2 from
15456 v_scrollbar_width when calculating `height'.
15458 * xfns.c (x_set_foreground, x_set_border_pixel): Finished color
15459 coordination. Scrollbar border, thump-arrows, and slider pixmap
15460 linked with foreground color; slider border with window border.
15462 1989-05-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15464 * lread.c (read1): Handle octal integers.
15466 * macros.c: Doc fix.
15468 * search.c (Fstore_match_data): Allow ints instead of markers.
15470 * keyboard.c (get_char_menu_prompt): New function; does menu prompting
15471 based on current keymaps.
15473 1989-05-05 Joseph Arceneaux (jla@gracilis.ai.mit.edu)
15475 * xfns.c (Fx_set_face): Rewrote the doc-string and renamed the
15478 1989-05-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15480 * unexec.c: New control parameters COFF_BSD_SYMBOLS, KEEP_OLD_PADDR,
15481 KEEP_OLD_TEXT_SCNPTR, ADJUST_TEXT_SCNHDR_SIZE, ADJUST_TEXTBASE,
15482 HEADER_INCL_IN_TEXT.
15484 * unexec.c: Define IN_UNEXEC as flag for config.h.
15486 * keymap.c: Fapropos, etc., deleted. (Now in Lisp code.)
15488 * eval.c (Fcommandp): Byte code object is command if interactive slot
15491 1989-05-05 Chris Hanson (cph@kleph)
15493 * process.c [HPUX && !NOMULTIPLEJOBS]: Include <bsdtty.h>, which
15496 1989-05-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15498 * data.c (Faref, Farray_length): Handle byte-code objects.
15499 * fns.c (Flength, concat): Likewise.
15501 * data.c (Faref, Faset, Farray_length): Rename arg VECTOR to ARRAY.
15503 * m/m-hp9000s300.h: Undefine NOMULTIPLEJOBS.
15505 * keyboard.c (Fcommand_execute): Treat bytecode object as function.
15507 * callint.c (Fcall_interactively): Separate decoding of fcn
15508 from handling of it.
15510 * alloc.c (Fmake_byte_code): Renamed from Fmake_compiled_code.
15511 Make it pure if Vpurify_flag is non-nil.
15512 (Fpurecopy): Handle byte-code objects.
15514 * keyboard.c (get_char): Use Fsit_for for echoing timeout, not alarm.
15515 Do this before timeout for auto-save since the latter is longer.
15516 (request_echo): Function deleted.
15517 ({set,clear}_waiting_for_input): No need for echo_now, echo_flag.
15519 1989-05-04 Joseph Arceneaux (jla@gracilis.ai.mit.edu)
15521 * xterm.c (x_lower_window, x_raise_window): Don't do anything if
15522 the window isn't visible.
15524 * xfns.c (x_set_foreground_color): Recolor the scrollbar windows
15525 appropriately, compatible with xterm.
15527 * xterm.c (x_reset_cursor): Do cursor recoloring.
15529 1989-05-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15531 * fns.c (Frandom): With number as arg, return value < that number.
15533 * sysdep.c [USG, BSD4_1] (random): Call `rand' twice, to get
15534 30 bits of significance.
15536 1989-05-03 Joe Arceneaux (jla@gracilis.ai.mit.edu)
15538 * xterm.c (x_draw_box): Use the cursor_gc.
15539 * xfns.c (x_set_cursor_color, x_create_screen): Do a better job
15540 with cursor colors, and use 0 line width for the cursor_gc.
15542 1989-05-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15544 Begin changing representation of compiled functions.
15545 * lisp.h (enum Lisp_Type): New type code Lisp_Compiled, like a vector.
15546 (COMPILED_*): Names for slots in those vectors.
15547 * alloc.c (Fmake_compiled_code): New function.
15548 * eval.c (Fcommandp, Feval, Ffuncall, funcall_lambda):
15549 Handle fcns of type Lisp_Compiled.
15550 (Fcommandp, Fapply): Avoid directly nested ifs.
15551 * print.c (print): Handle Lisp_Compiled objects.
15552 * callint.c (Fcall_interactively): Likewise.
15553 * doc.c (Fdocumentation): Likewise.
15555 * keyboard.c (Fopen_dribble_file): nil as arg means close it.
15557 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c:
15558 * casefiddle.c, cmds.c, data.c, dired.c, dispnew.c, doc.c, editfns.c:
15559 * eval.c, fileio.c, filelock.c, floatfns.c, fns.c, keyboard.c:
15560 * keymap.c, lread.c, minibuf.c, mocklisp.c, print.c, process.c:
15561 * screen.c, search.c, syntax.c, undo.c, vmsfns.c:
15564 1989-04-30 Joseph Arceneaux (jla@hobbes)
15566 * xterm.c (XTring_bell): Wasn't passing selected_screen to XTflash.
15569 * xterm.c (XTread_socket): Don't check if server died under
15572 1989-04-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15574 * window.c (Fdelete_other_windows): Bug getting top edge.
15576 1989-04-29 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15578 * keyboard.c (get_char): Auto save if enough time elapses.
15579 (auto_save_timeout): New Lisp variable.
15581 * xdisp.c (try_window, try_window_id): Set w->redo_mode_line
15582 if should show percentage instead of `Bot'.
15584 1989-04-29 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu)
15586 * xterm.c (x_term_init): Don't set visible bell, as it pre-empts
15589 1989-04-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15591 * doc.c (syms_of_doc): Make Vdoc_file_name a Lisp variable
15592 named internal-doc-file-name.
15594 1989-04-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15596 * m-news.h: m-news800.h renamed.
15597 Removed EXPLICIT_SIGN_EXTEND and COMPILER_REGISTER_BUG.
15598 Removed SEGMENT_MASK and sigmask.
15599 LOAD_AVE_TYPE is now `double'; LOAD_AVE_CVT changed too.
15600 Define m68000 if not defined.
15602 1989-04-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15604 * ymakefile: If COFF_ENCAPSULATE, define LD as gcc -nostdlib.
15606 * sysdep.c: Unconditionally include sys/ioctl.h.
15608 * m/m-mips.h [USG]: Define LIBS_TERMCAP.
15609 If HAVE_X11, define HAVE_VFORK.
15611 1989-04-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15613 * m/m-altos.h: Use termcap, not terminfo.
15614 Define COFF_ENCAPSULATE if using gcc.
15615 Use built-in alloca if using gcc.
15618 * lread.c (absolute_filename_p): On ALTOS, @ means absolute.
15620 * process.c: Missing #endif.
15621 * fileio.c (Finsert_file_contents): Define `p' for last change.
15622 * buffer.c, floatfns.c: Typos in DEFUN doc strings.
15623 * keyboard.c: Typo in DEFVAR_LISP doc string.
15625 * window.c (Fdelete_other_windows): Fix confusion about type of W.
15627 1989-04-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15629 * ymakefile (LDFLAGS): Forgot to use LD_SWITCH_SITE.
15631 * xterm.c (XTflash): Draw the bars here.
15632 (x_invert_screen): Change to invert entire window.
15633 (stufflines): Changed args to XClearArea.
15634 (XTread_socket): Clean up handling of KeyPress events.
15635 For LeaveWindow, ignore uninteresting ones and handle autolower.
15636 For FocusIn, ignore if unknown window, and handle autoraise.
15637 For MotionNotify, add real handling for X11.
15638 For ConfigureNotify, count width of scroll bars.
15639 Don't call change_screen_size redundantly; ignore linked expose events.
15640 Update left and top pos if nec.
15641 For button events, ignore if not in known window or scrollbar.
15642 (x_new_selected_screen): Takes screen as arg.
15643 (x_error_handler): Arg type different for X11.
15644 (x_set_window_size) [HAVE_X11]: Call change_screen_size
15645 before x_wm_set_size_hint.
15646 (x_make_window_visible): Make scroll bars visible too, if any.
15647 (x_lower_window): New fn.
15648 (x_wm_set_size_hint): Take account of width of scroll bars.
15649 Ior specified hint flags with those already set.
15651 * xterm.h (HSCROLL_HEIGHT): HSCROLL_WIDTH is renamed.
15652 (MAXWIDTH): Increased to 300.
15653 (MAXHEIGHT): Increased to 100.
15654 (DISPLAY_SCREEN_ARG): Remove parentheses.
15655 (ButtonReleased, WhichMouseButton): Delete definitions.
15657 * xmenu.c: Adapted to new X interface. X11ONLY replaced with xDISPLAY.
15658 Many X11 conditionals removed.
15660 * xfns.c (x_set_cursor_color): Special case if matches foreground.
15661 (Fx_create_screen): Typo for HSCROLL_HEIGHT.
15662 Use BLACK_PIX_DEFAULT, WHITE_PIX_DEFAULT.
15663 Set PRETEND arg to change_screen_size.
15664 Delete gray_bits; this value made global.
15665 Don't call install_*_scrollbar here.
15666 (x_set_horizontal_scrollbar): Define this for real.
15667 (x_set_vertical_scrollbar): Correct args to install_vertical_scrollbar.
15668 (install_vertical_scrollbar): New local slider_pixmap, and set it.
15669 Delete locals GC_values, temp_gc.
15670 Change arrow_width, arrow_height (appears to be undefined) to 16.
15672 Use border_pixel, not foreground_pixel, for scrollbar.
15673 (install_horizontal_scrollbar): Define this for real.
15674 (adjust_scrollbars): Handle horizontal scrollbar.
15675 Define XMoveResizeWindow as XConfigureWindow if X10 to simplify.
15676 (x_resize_scrollbars): Remove #if 0 from quick-exit case.
15677 Really handle horizontal scrollbar.
15678 Simplify using new macro.
15679 (Fx_get_mouse_event): Mostly ignore events other than buttons.
15680 Use many new macros to handle X10 and X11.
15681 (encode_mouse_button): New fn: encoding of which button, broken out.
15683 * xfns.c (left_arror_cursor, etc.): New vars.
15684 (x_screen_parm, init_x_parm_symbols, x_set_screen_param):
15685 Define X_PARM_AUTOLOWER.
15687 * xdisp.c (display_string, redisplay-window, DoDsp):
15688 Use SCREEN_WIDTH, SCREEN_HEIGHT.
15690 1989-04-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15692 * indent.c (compute_motion): Use SCREEN_WIDTH.
15693 * dispnew.c (update_line): Use SCREEN_WIDTH.
15694 (update_screen): Use SCREEN_HEIGHT.
15696 1989-04-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15698 * window.c: Rename Vauto_new_screen_hook, Vdisplay_buffer_hook, and
15699 Vtemp_buffer_show_hook to ..._function.
15701 * keyboard.c: Rename mouse_hook to mouse_event_function.
15703 * buffer.c, buffer.h, cmds.c: blink-paren-hook and auto-fill-hook
15704 renamed to -function.
15706 * fileio.c (Finsert_file_contents): Allow quit in read.
15707 (Fwrite_region): Allow quit in write.
15709 1989-04-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15711 * doprnt.c (doprnt): Comment out %b since sprintf can't do it.
15713 * Change X11 to HAVE_X11 everywhere.
15715 * m-sun3.h: Define C_SWITCH_MACHINE as -fsoft.
15717 1989-04-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15719 * process.c: Don't define wstopsig, wtersig if already defined.
15721 * sysdep.c [VMS] (sys_getenv): Copy the string before returning it.
15723 * m-alliant.h: Define `vector'.
15725 1989-04-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15727 * process.c (wait_reading_process_input) [sun]: If SIGIO failed
15728 to be sent, send it by hand.
15730 1989-04-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15732 * window.c (Fdelete_other_windows): Recenter window to avoid scrolling.
15734 1989-04-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15736 * indent.c: Include screen.h.
15738 * indent.c (pos_tab_offset, Fvertical_motion): Compute internal width
15739 correctly and uniformly.
15741 * xdisp.c (try_window, try_window_id): Use exact internal width
15742 to update tab_offset.
15743 (try_window_id): pos_tab_offset value needs adjustment only if
15744 starting a line in middle of a character.
15746 1989-04-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15748 * sysdep.c [USG]: If TIOCGWINSZ defined, include sioctl.h.
15750 1989-04-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15752 * eval.c (Fbacktrace): Set Vprint_level to 3 throughout.
15754 * fns.c (Fload_average): nlist data structure is funny on convex.
15756 * window.c (scroll_command): Scroll at least 1 line in specd direction.
15758 * cm.c (calccost): NTABS was off by 1 sometimes; take account of
15759 the starting position modulo 8.
15761 * fileio.c (Fexpand_file_name): Don't simplify /../ at start of name.
15763 * callint.c: Doc fixes.
15765 * process.c (create_process):
15766 On all USG systems, not just IRIS and AIX, don't pre-open pty's tty.
15767 Move the setpgrp done for USG (no real change).
15768 Tell child_setup to do a setpgrp.
15769 * callproc.c (child_setup): New arg says whether to setpgrp.
15770 Never setpgrp on USG.
15771 (Fcall_process): Tell child_setup not to setpgrp.
15773 * sysdep.c (init_sys_modes, reset_sys_modes): Don't try to hack
15774 TIOCGLTC, TIOCGETC, etc. if HAVE_TERMIO.
15775 Don't bother to undef these for XENIX.
15777 1989-04-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15779 * ymakefile (LIBES): Put LIBX first; it may depend on LIBS_MACHINE.
15781 * m-sequent.h: Define HAVE_ALLOCA.
15783 1989-04-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15785 * term.c (term_init): Can't use scroll region if no abs positioning.
15787 1989-04-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15789 * process.c (Fopen_network_stream): Close desc. if connect fails.
15791 1989-03-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15793 * minibuf.c (Fall_completions): gcprotect ALLMATCHES and TAIL,
15796 * keyboard.c (read_avail_input): Handle EBADSLT like EAGAIN.
15798 1989-03-29 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15800 * term.c (term_init): Either ic or ip or im or IC => can insert chars.
15802 * minibuf.c (read_minibuf_unwind): Ensure minibuf writable for erasure.
15804 1989-02-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15806 * m-convex.h: Undefine NO_ARG_ARRAY.
15807 Changed defns of DATA_SEG_BITS and XINT.
15808 Define alloca for GCC compilation.
15810 1989-02-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15812 * m-ibmrt-aix.h: Define BROKEN_FIONREAD.
15814 1989-02-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15816 * keymap.c (Fdefine_prefix_command): Set both value and fn defn,
15817 with separate syms specified for each purpose.
15819 1989-02-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15821 * callproc.c (Fcall_process): Open /dev/null with O_WRONLY.
15823 1989-02-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15825 * window.c (window_scroll): Allow scrolling to very end (empty screen)
15826 if that's exactly where we wanted to scroll to.
15828 1989-02-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15830 * data.c (Fkill_local_variable): New local to simplify big stmt.
15832 1989-02-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15834 * xdisp.c (display_text_line): cvt chars to glyfs for overlay arrow.
15836 * sysdep.c (init_sys_modes, child_setup_tty) [IBMRTAIX]:
15837 Don't ignore BRK, and don't signal it.
15839 * process.c (pty): An IBMRTAIX conditional.
15840 (create_process): Another here.
15842 1989-02-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15844 * keymap.c (Fdefine_prefix_command): Use Ffset, not Fset.
15846 1989-02-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15848 * fileio.c (Fset_visited_file_modtime): New fn.
15850 * xfns.c (Fx_create_screen) [X10]: XCreateWindow wants pixmaps as args.
15852 1989-02-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15854 * dispnew.c (Fsit_for): It accepts 3 args.
15856 1989-02-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15858 * xterm.c (XTread_socket): For X10, make EVENT an XKeyPressedEvent.
15859 (x_set_resize_hint): Call XSetResizeHint.
15861 * process.c: Declare interrupt_input.
15863 * sysdep.c (init_sys_modes): TIOCSTART, not TCSTART.
15865 1989-01-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15867 * xterm.h (struct x_display): `GC' renamed `gc' in all field names.
15868 Field `ColorMap' renamed to `color_map'.
15869 (face_gc_values): face_GC_values renamed.
15871 1989-01-28 Joe Arceneaux (rms@sugar-bombs.ai.mit.edu)
15873 * xterm.h (face_GC): Var deleted.
15874 (struct x_display): New field face_GC.
15875 (VSCROLL_WIDTH, HSCROLL_WIDTH): Moved here.
15876 (MINWIDTH, MINHEIGHT, MAXWIDTH, MAXHEIGHT): New vars. Eliminate them!
15877 (BLACK_PIX_DEFAULT): Typo in definition.
15878 (WHITE_PIX_DEFAULT): Typos in definitions; was the black default.
15880 * xterm.c: Include ioctl.h only if BSD.
15881 Include termio.h otherwise.
15882 (XMapWindow) [X11]: Typo in definition.
15883 (METABIT): New definition; maybe not needed.
15884 (hostname, id_name, invocation_name, Vcommand_line_args): New vars
15885 declared for main icon title.
15886 (x_debug): Init to 1 if XDEBUG defined.
15887 (dumpglyfs) [X11]: Changed args to XDrawImageString.
15888 If debugging, do XFlushQueue.
15889 Use screen's face_gc rather than old global one.
15890 (XTflash) [not BSD]: Avoid `struct itimerval'; use `alarm'.
15891 (events): New table of event type names.
15892 (XTread_socket): EVENT is now an XEvent even on x10.
15893 Translate modifier key 1 into meta-bit.
15894 For EnterNotify event, don't dumpborder or x_new_selected_screen
15895 if there is an x_focus_screen.
15896 For LeaveNotify event, don't ignore due to nonzero subwindow.
15897 For ConfigureNotify, change screen size.
15898 Do `select' check for SIGHUP only if HAVE_SELECT.
15899 (x_new_selected_screen): An arg, SCREEN.
15900 (x_display_cursor): dumpglyfs args changed.
15901 (x_draw_box): Add GC arg to XDrawRectangle; change other args.
15902 (clear_cursor): Change args to XClearArea.
15903 (dumpborder): Check x_input_screen, not selected_screen.
15904 (x_text_icon): For X11, new arg to XGetDefault.
15905 Cast values stored in icon_label.
15906 (x_term_init): Hair to calculate name for icon.
15907 Don't init_sigio unless SIGIO defined.
15908 Call Fset_input_mode.
15909 For X11, new arg to XGetDefault.
15910 Set _Xdebug if debugging.
15911 (x_new_font) Use XGetFont.
15912 Get GC values from the screen structure.
15913 (x_reset_cursor): Don't call XRecolorCursor.
15914 (x_set_window_size): Call x_wm_set_size_hint, not x_set_size_hint.
15915 (x_set_resize_hint): For X11, call x_wm_set_size_hint.
15916 (x_wm_set_size_hint, x_wm_set_window_state, x_wm_set_icon_pixmap)
15917 (x_wm_set_icon_position): New fns for X11.
15919 * xfns.c: For X11, include Xutil.h.
15920 (VSCROLL_WIDTH): Moved to xterm.h.
15921 (face_GC): Don't declare it.
15922 (id_name): Declare this.
15923 (x_decode_color): Check `white' and `black' first of all.
15924 (x_set_foreground_color) [X11]: Reset foreground and background.
15925 (x_set_background_color) [X11]: Missing arg to XSetWindowBackground.
15926 (x_set_cursor_color) [X11]: Reset foreground and background.
15927 (x_read_mouse_position) [X11]: Changed call to XQueryPointer.
15928 (x_set_mouse_position) [X11]: Add args to XWarpPointer.
15929 (Fx_create_screen): Set some temporary geometry parms at the beginning.
15930 For X11, changed setup of iconidentity, and implement rubber-banding.
15931 For X11, implement merging individual geometry parms.
15932 For X11, changed args to XCreateSimpleWindow.
15933 For X11, call x_wm_set_size_hint.
15934 Specify name when creating icon.
15935 Don't call XSetForeground, XSetBackground before making border tile.
15936 New var `cursor_bits'. Init the screen's GC's.
15938 * screen.c (Frubber_band_rectangle): For X11, just return nil.
15940 1989-01-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15942 * buffer.c (Fbuffer_modified_tick): New fn.
15944 * window.c (Fnext_window): Accept 3 args from Lisp.
15946 1989-01-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15948 * sysdep.c (sys_suspend): Handle case of SIGTSTP but not BSD.
15950 1989-01-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15952 * sysdep.c (init_sys_modes): Do TIOCSTART if def, like TCXONC.
15954 1989-01-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15956 * process.c (wait_reading_process_input): New 2nd arg is extra usecs.
15957 All callers changed.
15958 * dispnew.c (Fsit_for, Fsleep_for): New 2nd arg says 1st arg
15959 counts in milliseconds.
15961 * buffer.c (Fkill_all_local_variables): Implement permanent locals.
15963 1989-01-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15965 * keymap.c (get_keyelt): Allow indirection within (STRING . DEFN).
15967 1989-01-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15969 * process.c (wait_reading_process_input): If select returns there
15970 is kbd input, but detect_input_pending can't find it, signal SIGIO.
15971 This may avoid the X loop-on-logout bug.
15973 * process.c (wait_reading_process_input): Flush fix_screen_hook.
15974 * termhooks.h, term.c: Likewise.
15976 * xdisp.c (Fredraw_display): Don't do set_terminal_modes.
15977 * dispnew.c (Fredraw_screen): Likewise.
15979 * eval.c (Fcond): If no args, return nil.
15981 1989-01-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15983 * eval.c (Fbacktrace_frame): Require one arg. Return nil if too high.
15985 1989-01-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15987 * minibuf.c (read_minibuf): Set Vminibuf_scroll_window before
15990 * xterm.c (XTread_socket): If no HAVE_SELECT, wait for input
15991 if new arg WAITP is non0. Do this by not bothering to test for
15992 presence of input before reading some.
15993 Check for dead connection only if new arg EXPECTED is nonzero.
15994 All callers changed (keyboard and sysdep).
15996 * keyboard.c: Simplify keyboard input.
15997 (read_avail_input): Don't assume buffer is empty.
15998 Don't call get_input_pending; do FIONREAD here.
15999 Don't do FIONREAD if read_socket_hook, just tell it don't wait.
16000 Arg EXPECTED is passed to read_socket_hook.
16001 (input_available_signal): Use read_avail_input.
16002 (gobble_input): Use read_avail_input; arg EXPECTED passed along.
16003 (get_input_pending): Let gobble_input do the work.
16005 VMS keyboard input should have interrupt_input nonzero.
16006 * keyboard.c (Fset_input_mode, init_keyboard): [VMS] Always set
16007 interrupt_input to 1.
16008 (get_input_pending): Special case deleted.
16010 1989-01-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16012 * fileio.c (auto_save_1): Always make auto-save file owner-writable.
16014 * eval.c (Fbacktrace_frame): New fn.
16016 * buffer.h: Define `fieldlist' field in a buffer.
16017 * buffer.c (Fregion_fields): Return list of fields overlapping
16019 (syms_of_buffer): New variable buffer-field-list.
16020 (reset_buffer): Clear the fieldlist.
16021 (init_buffer_once): Set up default and flag for buffer-field-list.
16022 * insdel.c (prepare_to_modify_buffer): If check_protected_fields,
16023 call Fregion_fields to detect error.
16024 Delete buffer_modify_hook.
16026 * callint.c (Fcall_interactively): Bind `command-debug-status'
16027 for each interactive command.
16029 * keyboard.c (command_loop_1): Count # commands read.
16030 (num_input_keys): New Lisp variable.
16032 * m/m-gould.h, m/m-ibmrt-aix.h, m/m-sequent.h, m/m-sparc.h,
16033 * m/m-sun3.h, m/m-symmetry.h: Define A_TEXT_SEEK.
16034 * unexec.c (copy_text_and_data): Don't check A_TEXT_OFFSET,
16036 * unexconvex.c: Likewise.
16038 * unexconvex.c: machine/*.h unconditionally.
16040 * process.c (pty): Delete RTU, HPUX, IRIS alternatives to
16041 PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF.
16042 * s/s-hpux.h: Define PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF.
16043 * s/s-rtu.h: Likewise.
16044 * s/s-iris*.h: Define PTY_TTY_NAME_SPRINTF.
16046 * sunfns.c (Fsun_change_cursor_icon): Avoid ambiguity in eval order.
16048 1989-01-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16050 * data.c (Fdefault_value): If var set up with default value as current,
16051 take the current value slot, more up to date than the default slot.
16053 1989-01-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16055 * dispnew.c (init_display): Don't handle SIGWINCH if using X.
16057 * fileio.c (Fdo_auto_save): If file has shrunk, turn off auto-save.
16058 This avoids duplicate messages and allows M-x auto-save to turn it on.
16060 * lread.c (Fload): Look in Vafter_load_alist.
16061 (syms_of_load): Define after-load-alist.
16063 1989-01-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16065 * dired.c (Fdirectory_files): 4th arg NOSORT non-nil means don't sort.
16067 * syntax.c (scan_lists): Change Sendcomment case so that
16068 ignoring comments works even for newline-terminated comments.
16070 * minibuf.c (read_minibuf): Default Vminibuf_scroll_window
16071 to the window that was selected.
16073 1989-01-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16075 * fns.c (do_yes_or_no_p): Typo, call2 => call1.
16077 * eval.c (Fbacktrace): Each frame item should have a newline.
16079 * emacs.c (Fkill_emacs): Don't run hook if noninteractive.
16081 * eval.c: Define Vrun_hooks.
16082 (syms_of_eval): Initialize Vrun_hooks.
16084 * indent.c (Fmove_to_column): Use del_range; Fdelete_backward non ex.
16086 * ymakefile (objs, floatfns.o): Re-add this file.
16087 (LIBX): Install X11 case.
16089 * ymakefile (LIB_GCC): Now a cpp macro, like all other LIB_...
16090 Define null if not using GCC.
16092 * lread.c (unreadchar): New function to unread a char
16093 by stuffing it back into its stream. Now unread chars
16094 work properly between multiple reads.
16095 (UNREAD): Now calls that function.
16096 (readchar): Don't us `unrch'; variable deleted.
16097 (various): Don't initialize `unrch'.
16098 (readevalloop): No need to save and restore `unrch'.
16099 (read1): Don't unread a -1.
16101 * keymap.c (get_keyelt): If keymap defn is (STRING . FOO),
16102 remove just FOO. Will help HierarKey.
16104 1989-01-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16106 * unexmips.c [IRIS_4D]: Don't include fcntl.h.
16107 (unexec): Look for LIT8, LIT4 sections iff they are defined.
16109 * buffer.c (Fkill_all_local_variables): Force redisplay of mode lines.
16111 1989-01-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16113 * emacs.c (main): Do the setpgrp before handling -t.
16115 * keyboard.c (Fsuspend_emacs): Use run-hooks to run suspend-hook
16116 and suspend-resume-hook.
16118 * buffer.c (Fkill_buffer): Execute kill-buffer-hooks
16119 with buffer to be killed as current buffer.
16121 * buffer.c (count_modified_buffers): ModExist renamed.
16123 * emacs.c (Fkill-emacs): Execute kill-emacs-hook.
16125 * fileio.c (auto_save_1): Set auto_save_mode_bits from visited file.
16126 (Fwrite_region) [not VMS]: If auto-saving, write file with that mode.
16128 * fileio.c (Fwrite_region): If START is a string, write that string.
16130 1989-01-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16132 * lisp.h (XMARKBIT, XSETMARKBIT): If mark bit is sign bit,
16133 use sign-test for XMARKBIT; value is then 1 or 0.
16134 Make XSETMARKBIT test 2nd arg for nonzeroness only.
16136 * m/m-mips.h: Last batch of changes are only for USG.
16137 (XMARKBIT, XSETMARKBIT): Deleted; the new default ones are good.
16139 * editfns.c (Fformat): Use princ for %s.
16140 New format %S converts everything (even strings) with prin1.
16141 * doprnt.c (doprnt): Treat %s like %S.
16143 * print.c (Fprin1_to_string): Opt 3nd arg non-nil does princ.
16145 1988-12-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16147 * data.c (Fstring_to_int): Correct max # args.
16149 1988-12-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16151 * ymakefile (LIBES, LIB_GCC): If using GCC, link with gnulib.
16153 1988-12-29 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16155 * editfns.c: Many doc improvements.
16157 1988-12-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16159 * lisp.h (CHECK_NATNUM): New macro.
16161 * indent.c (Fmove_to_column): 2nd arg t means indent till spec'd column
16162 or change tab to spaces if necessary.
16164 * m/m-iris4d.h: (Conditionally) delete DEFAULT_ENTRY_ADDRESS
16165 and change START_FILES and LIB_STANDARD.
16167 * s/s-iris3-6.h: Define sigblock as no-op.
16169 * m/m-mips.h: Cancel defn of VIRT_ADDR_VARIES, `static'.
16170 Undef SIGIO. Define BROKEN_FIONREAD.
16171 Define various HAVE_... flags a la BSD.
16172 Add options, libraries for linking and compilation.
16174 * unexmips.c (unexec): Handle additional optional sections now likely.
16175 New scheme for recording what sections there are.
16176 Make handling of the LIT8,LIT4 sections conditional (not on IRIS).
16178 * fns.c (do_yes_or_no_p): New interface to Lisp function yes-or-no-p.
16179 Allows the user to redefine that function.
16180 All callers of Fyes_or_no_p changed.
16182 * data.c (Fmakunbound): Don't allow nil or t as arg.
16184 * m/m-orion105.h (LOAD_AVE_TYPE): Now `long'.
16186 1988-12-27 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16188 * dispnew.c (unhold_window_change):
16189 Don't signal SIGWINCH. Instead, do pending size-changes here,
16190 while holding any new size-changes that arrive, so they become
16191 pending. Loop around to get the new pending ones.
16192 (change_screen_size): Clear any previous pending size-change.
16194 * search.c (place): Was clipping to (1- (point-max)) by mistake.
16196 1988-12-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16198 * window.c (Fdelete_window): Give all this window's space
16199 to one adjacent sibling.
16201 1988-12-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16203 * keymap.c (describe_alist): Don't lose on non-cons-cell alist elts.
16204 (Fwhere_is_internal): Don't fail to step down the alist.
16205 (Faccessible_keymaps): Considerable confusion in alist case.
16207 * lread.c (Feval_current_buffer, Feval_region):
16208 Save and restore point as a marker, not a number.
16209 Don't restore it at all if printflag is t.
16211 * print.c (float_to_string): Mostly rewritten; output format
16212 is now a printf %-spec.
16213 (Qfloat_output_format): Doc changed to match.
16215 1988-12-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16217 * ymakefile (obj): Include floatfns.o.
16218 * data.c (syms_of_data): Fix typo Snumberp_or_marker_p.
16220 Allow keymaps to have other keymaps as tails.
16221 Thus, one keymap can inherit from another.
16222 * keymap.c (Fwhere_is_internal): Ignore non-cons elements of alist.
16223 (Faccessible_keymaps): Support symbols as alist indices.
16224 Ignore alist elements that aren't conses.
16226 * m/m-sun386.h (LDAV_SYMBOL): Define as "avenrun" with no underscore.
16228 * lread.c (read_escape): Support ANSI C `\x...' hex escapes.
16230 * bytecode.c (Fbyte_code): Fix jump operators for change in `pc'.
16232 1988-12-21 Joe Arceneaux (jla@gracilis.ai.mit.edu)
16234 * ymakefile: Commented #endif LISP_FLOAT_TYPE. Also changed
16235 the code pertaining to X11 to use the same files as X10.
16237 * bytecode.c (Fbyte_code): Declared unsigned char *pc.
16239 1988-12-19 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu)
16241 * xterm.c: Finished a first cut of the X11 version.
16243 1988-12-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16245 * sysdep.c (select): `buf' is now unsigned char.
16247 1988-12-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16249 * m/m-elxsi.h: Don't define WORD_MACHINE or CANNOT_DUMP.
16250 Do define symbols for load average.
16251 Define COFF and ADJUST_EXEC_HEADER.
16253 1988-12-16 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu)
16255 * sink.h, sinkmask.h: Same file now works for both X10 and X11.
16256 * xterm.c, xfns.c (x_text_icon) Can now take new name as parameter.
16258 1988-12-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16260 * m/m-is386.h: No need to undef HAVE_PTYS, HAVE_SOCKETS, SYSV_PTYS
16261 since s-usg5-3.h no longer defines them.
16263 1988-12-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16265 * bytecode.c (Fbyte_code): Cache the pointer in the string
16266 to avoid recalculating it at each fetch.
16267 Also turn off the error check for stack overflow/underflow.
16269 1988-12-14 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu)
16271 * xfns.c: Made the first cut for X11 version.
16272 * xterm.c (x_reset_cursor): Did the X11 version.
16274 1988-12-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16276 * keyboard.c (Fexecute_mouse_event): Set Vmouse_event. Doc fix.
16277 Run Vmouse_hook at the end.
16278 (syms_of_keyboard): Define var `mouse-hook'.
16280 1988-12-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16282 * term.c (insert_glyfs): Typo, was fetching G twice.
16284 1988-12-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16286 * keymap.c (describe_buffer_bindings): Print mouse bindings too.
16287 (describe_map): If have a chartab, use mouse-describe-key for prefixes.
16288 * keymap.c (describe_{map,map_tree,alist}, describe_vector):
16289 Extra arg mapping chars to their names. Calls changed.
16290 * syntax.c (describe_syntax_1): Call changed.
16292 * keymap.c (Vglobal_mouse_map): Make it exist unconditionally.
16294 * keymap.c (apropos1): Clean up.
16295 Do where-is-internal only if there is a function definition.
16296 Use mouse-describe-key to turn mouse key sequences into strings.
16297 (Fwhere_is): Check the mouse map too.
16298 (Fwhere_is_internal): New arg is global map to use.
16299 All callers changed in keypad.c and doc.c.
16300 (where_is_string): New fn cvts result of Fwhere_is_internal to string.
16302 1988-12-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16304 * emacs.c (stack_bottom): New variable, set in main.
16305 * alloc.c (Fgarbage_collect): Save a copy of the entire stack contents.
16307 1988-12-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16309 * editfns.c (Funix_umask, Funix_sync): New functions.
16311 * process.c (Fsignal_process): New function.
16313 1988-12-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16315 * editfns.c (Fsubst_char_in_region): Fix typo in when to un-modify buf.
16317 1988-12-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16319 * process.c (create_process): Take the usg's setpgrp and the close-and
16320 -open of the tty outside the TIOCNOTTY conditional, since TIOCNOTTY
16321 is always missing outside BSD. Now the TIOCNOTTY conditional controls
16322 only the TIOCNOTTY.
16324 1988-12-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16326 * lread.c (Feval_current_buffer, Feval_region):
16327 If there is an error, don't restore original point.
16329 * s-hpux.h (SHORT_CAST_BUG): Define this, for HPUX version 6.2.
16331 * ymakefile (THIS_IS_YMAKEFILE): Define macro to tell m- files
16332 to do special things.
16334 * m/m-ns16000.h (LOAD_AVE_TYPE, etc.): Don't define them if USG.
16335 * m/m-ns16000.h [USG]: Define various macros differently.
16336 (munnari!sibyl.eleceng.ua.oz.au!ian@uunet.uu.net).
16338 * sysdep.c (reset_sys_modes): Don't output a CR here.
16339 * term.c (reset_terminal_modes): Do it here, but first
16340 do a newline if it's a magic cookie terminal.
16342 * sysdep.c (sys_suspend) [USG]: Use `nice' to set subshell pri. to 0.
16344 * sysdep.c (TIOCSETN) [USG]: Use TCSETAW, not TCSETA.
16346 * sysdep.c (setpriority) [USG]: No longer a no-op; use `nice'.
16348 * keymap.c (Fwhere_is_internal): New 4th arg inhibits looking thru
16349 indirect definitions--so you can search for one.
16351 * alloc.c, fns.c, search.c: Doc fix.
16353 1988-12-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16355 * process.c (read_process_output): Insert with insert_before_markers.
16357 * filelock.c (lock_file_1, lock_superlock):
16358 If USG, use chmod instead of fchmod.
16360 * environ.c (Fsetenv): Doc fix.
16362 1988-11-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16364 * eval.c (do_autoload): Verify FUNNAME is a symbol.
16366 1988-11-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16368 * fileio.c (Fread_file_name): New arg specifies initial minibuf cntnts.
16369 * callint.c (Fcall_interactively): Calls changed.
16371 1988-10-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16373 * insdel.c (make_gap): Error if buffer size exceeds range of Lisp int.
16375 1988-10-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16377 * window.c (Fsplit_window): Prevent error in Fset_window_buffer.
16379 * sysdep.c (gettimeofday): Store -1 thru tzp so caller knows invalid.
16381 * xdisp.c (message): Pass 0 as new arg to doprnt.
16382 * callint.c (Fcall_interactively): Likewise.
16383 * editfns.c (format1):
16384 * doprnt.c (doprnt): Allow 0 as FORMAT_END arg meaning null-terminated.
16386 1988-10-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16388 * keyboard.c: If UNIPLUS, include ioctl.h.
16390 * sysdep.c (utime): Use new flag IRIS_UTIME, not IRIS.
16391 * s-iris*.h: Define that flag.
16393 1988-10-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16395 * term.c (term_init): If have `im' capability, permit ins/del char
16398 1988-10-03 Richard Stallman (rms@corn-chex.ai.mit.edu)
16400 * m/m-hp9000s300.h: Conditionals for BSD vs HPUX.
16402 * ymakefile: Look for C_SWITCH_SITE, LD_SWITCH_SITE.
16404 1988-09-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16406 * editfns.c (Fformat): Allow nulls in the format.
16407 * doprnt.c (doprnt): Likewise. End of format string is new arg.
16409 1988-09-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16411 * m/m-7300.h: Undefine SHORTNAMES. Supposedly newer Unix now.
16413 * print.c (print): Support new var print_length.
16414 (syms_of_print): Define Lisp var print-length.
16415 * eval.c (Fbacktrace): Print unevalled form with print_length = 3.
16417 * Makefile (tags): Add TAGS as alternate target.
16418 Process the files in ../lisp/term.
16420 1988-09-27 Richard Stallman (rms@corn-chex.ai.mit.edu)
16422 * doprnt.c (doprnt): Handle %-20s.
16423 * editfns.c (Fformat): Likewise (make enough space for it).
16425 * minibuf.c (do_completion): If get "Complete but not unique" twice
16426 in a row, display all completions. New var last_exact_completion.
16428 1988-09-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16430 * dispnew.c (baud_rate): Now a Lisp variable, not a function.
16431 * termcap.c (tputs) [emacs]: Use baud_rate as the speed.
16433 1988-09-19 Richard Stallman (rms@gluteus.ai.mit.edu)
16435 * window.c (Fset_window_configuration): Set deleted windows' buffer
16436 to nil, via new function delete_all_subwindows.
16437 * window.c (Fset_window_buffer): Reject deleted windows.
16438 * window.c (init_window_once): Init the ->buffer fields
16439 to satisfy error check in Fset_window_buffer.
16441 * xmenu.c (Fx_popup_menu): 1st arg is now ((X Y) WINDOW).
16443 * process.c (child_sig): If synch process terminates, clear
16444 synch_process_pid and record synch_process_death.
16445 * callproc.c (Fcall_process): Return synch_process_death.
16446 Always set synch_process_pid and do it with SIGCHLD masked off.
16447 * sysdep.c (wait_for_termination) [subprocesses and not VMS]:
16448 Use alarms to check every second whether synch_process_pid is 0.
16450 1988-09-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16452 * xdisp.c (redisplay_window): If window-point is outside restriction
16453 then correct it in the window.
16454 * window.c (Fdelete_buffer): Don't change buffer's point to a value
16455 outside its restriction.
16457 * sysdep.c (init_sys_modes) [MULTI_SCREEN]: Set Vterminal_screen's
16460 1988-09-16 Richard Stallman (rms@corn-chex.ai.mit.edu)
16462 * keyboard.c (kbd_buffer_get_char): VMS now uses same code as Unix.
16464 * vmsproc.c: New file for VMS only.
16465 * callproc.c [VMS]: Omit Fcall_process and child_setup_tty.
16466 * emacs.c (main) [VMS]: Call init_vmsproc and syms_of_vmsproc.
16468 * lread.c (OBARRAY_SIZE): Change slightly to 509 (prime).
16470 * keyboard.c, dispnew.c, term.c, xterm.c (meta_flag): MetaFlag renamed.
16471 * keyboard.c (Fset_input_mode): 3rd arg sets meta_flag.
16472 (syms_of_keyboard): Variable meta-flag deleted.
16473 * sysdep.c (init_sys_modes): Don't override parity settings
16476 1988-09-15 Richard Stallman (rms@corn-chex.ai.mit.edu)
16478 * search.c (Fsearch_forward, etc.): All buffer-search functions
16479 return new the value of point if they succeed.
16481 1988-09-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16483 * cmds.c (Fnewline): Correct test of ARG1 to inhibit auto-fill.
16485 1988-09-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16487 * window.c (Fdelete_window): Put nil as buffer of the deleted window.
16488 This makes select-window get an error earlier.
16490 1988-09-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16492 * search.c (search_buffer, string_match, looking_at):
16493 Report matcher stack overflow as error, not just failure to match.
16495 * data.c (Fmake_local_variable): Add local variable to simplify
16496 too-complex expression.
16498 * fileio.c (Fdo_auto_save): No "file has shrunk" msg if < 5000 chars.
16500 See ChangeLog.2 for earlier changes.
16502 ;; Local Variables:
16506 Copyright (C) 1993, 2001-2017 Free Software Foundation, Inc.
16508 This file is part of GNU Emacs.
16510 GNU Emacs is free software: you can redistribute it and/or modify
16511 it under the terms of the GNU General Public License as published by
16512 the Free Software Foundation, either version 3 of the License, or
16513 (at your option) any later version.
16515 GNU Emacs is distributed in the hope that it will be useful,
16516 but WITHOUT ANY WARRANTY; without even the implied warranty of
16517 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16518 GNU General Public License for more details.
16520 You should have received a copy of the GNU General Public License
16521 along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.