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 fontns 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 Potorti` <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 signalling a special error.
904 (Fmove_overlay, Foverlay_put): Use CHECK_OVERLAY instead of
905 signalling 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 Potorti`.
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 runing 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 `visiblity' 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 fom 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 accomodate 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 grey 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 accomodate 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 receieved 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-existant `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 futher
5113 diasassemble 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, modifer_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
5158 the symbols specified in head_table, not Qevent_unmodifed 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 signalling 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 undeleteable 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 samething 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-dependend 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 supercede 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
7211 1992-06-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7213 * window.c (Fset_window_dedicated_p):
7214 Replaces Fset_window_buffer_dedicated. Second arg just t or nil.
7216 1992-06-22 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7218 * syntax.h (SYNTAX, SYNTAX_MATCH, SYNTAX_COMSTART_FIRST, etc.):
7219 Cast character to unsigned char before indexing.
7221 1992-06-19 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7223 * xterm.c (x_wm_set_size_hint): Set size_hints.flags to indicate
7224 that we are providing the base_width and base_height data.
7226 * xfns.c (Fx_create_screen): Default the internal border width to
7227 2; this matches XTerm.
7229 * syntax.c (Fparse_partial_sexp): Doc fix.
7231 * syntax.c (Fparse_partial_sexp): Added phony argument list to
7232 comment containing the docstring for this function, so that
7233 make-docfile.c will get the right arguments.
7235 * xfns.c (x_set_name): Don't go through the X11 brouhaha to set
7236 the name unless we're actually setting it to something different
7237 from the current name.
7239 1992-06-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7241 * eval.c (syms_of_eval): Don't forget to escape the ends of the
7242 lines in the docstring for `debug-on-quit'.
7244 * keyboard.c (Fread_key_sequence): Reversed sense of CONTINUE_ECHO
7245 argument - set this_command_key_count to zero iff CONTINUE_ECHO is
7246 Qnil, not iff it's non-Qnil.
7248 1992-06-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7250 * search.c: Changed to remember the object in which the last
7251 search was done, so that markers from match data are placed in
7252 that buffer, instead of the current buffer.
7253 (search_regs_from_string): Replaced with...
7254 (last_thing_searched): This is either Qnil, meaning no searching
7255 has been done, Qt, meaning that the last search was done in a
7256 string, or a buffer object, meaning that the last search was done
7258 (syms_of_search): Initialize and staticpro last_thing_searched.
7259 (Flooking_at, search_buffer): Set last_thing_searched to the
7261 (Fstring_match): Set last_thing_searched to Qt.
7262 (Fmatch_data): Test last_thing_searched to see if any searching
7263 has been done, and construct integers or markers in the right
7264 buffer. Abort if it's not Qt, Qnil, or a buffer.
7265 (Fstore_match_data): Set last_thing_searched according to the
7266 things we find in LIST.
7268 1992-06-16 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7270 * fns.c (Fload_average): Document the fact that this sometimes
7271 returns a list of fewer than three elements, on systems which
7272 don't provide 5- and 15-minute load averages.
7274 1992-06-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7276 * xterm.c (XTread_socket): If an event arrives to a screen S,
7277 don't attribute them to SCREEN_FOCUS_SCREEN (S) here. Do that
7278 synchronously, when the events are dequeued. This keeps events
7279 from being accidentally routed to the wrong screen, if we
7280 temporarily redirect a screen's focus.
7281 * keyboard.c (kbd_buffer_store_event): If the character being
7282 stuffed is a quit character, do the SCREEN_FOCUS_SCREEN
7283 redirection to it here.
7284 (kbd_buffer_get_event): And do it here, before returning the
7287 * eval.c (Finteractive_p): This assumed that if the function in
7288 the top frame of the lisp backtrace was not a Lisp_Compiled
7289 object, then Finteractive_p must have an explicit frame on the top
7290 of the stack, which we could skip. It didn't bother to follow the
7291 symbol function chaining, and it would break if any C code called
7292 from a non-compiled function tried to call Finteractive_p anyway.
7293 Changed this to actually check if the top frame's effective
7294 function is the Lisp_Subr for Finteractive_p. This also used to
7295 skip any number of frames for special forms and/or Fbytecode
7296 calls. Changed this to skip an Fbytecode frame (if present),
7297 followed by any number of special form frames.
7299 1992-06-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7301 * eval.c (struct backtrace): Doc fix.
7303 1992-06-12 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7305 * m/hp300bsd.h (LOAD_AVE_TYPE): This is long, not double.
7306 (LOAD_AVE_CVT): Adjusted as appropriate.
7308 * fns.c: Moved lots of system-dependent preprocessor cruft
7309 dealing with getting the load average to `getloadavg.c'.
7310 (Fload_average): Guts moved to `getloadavg.c'.
7311 * getloadavg.c: New file, containing the necessary mess to get the
7312 load average on many different systems. This file is supposed to
7313 be Emacs-independent.
7314 * ymakefile (obj): Add getloadavg.o to the list.
7315 (getloadavg.o): Note that this depends on its source, and config.h.
7317 * screen.c (Fdelete_screen): Typo in loop looking for new
7318 last_nonminibuf_screen - change `screen = XCONS (screens)->cdr`
7319 to `screens = XCONS (screens)->cdr`
7321 * xdisp.c (echo_area_display): Don't neglect to draw all the lines
7322 of the minibuffer window (or echo area) when a message is being
7323 displayed. If the minibuffer is more than one line high, they
7324 should all be blanked.
7326 1992-06-10 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7328 * sysdep.c [POSIX_SIGNALS] (sys_signal): Fix typo - rather than
7329 calling new_action as if it were a function, call sigaction.
7331 1992-06-09 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7333 * lisp.h (Qnumberp, Qnumber_or_marker_p): Declared.
7335 * eval.c (wants_debugger): Changed NULL to NILP.
7336 Who installed these calls to NULL?
7338 1992-06-09 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7340 * dispnew.c (Fsit_for): Don't forget to actually set sec from ARG.
7342 * termhooks.h (struct input_event): Doc fix - for mouse clicks, .x
7343 and .y give the position in characters, not in pixels.
7345 * keyboard.c (format_modifiers): Order the modifier letters
7346 alphabetically - control, meta, shift, and up.
7348 1992-06-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7350 * xfns.c: Move some extern decls out of #if 0, to top of file.
7352 1992-06-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7354 * window.c (Fcoordinates_in_window_p): Docstring fix.
7356 * buffer.c (Fother_buffer): Put a comma between arguments BUFFER
7357 and VISIBLE_OK in the argument list. Duh.
7359 * screen.c (Fdelete_screen): Remember that s is a SCREEN_PTR *,
7362 * search.c (search_regs): Doc fix.
7363 (compile_pattern): Take a new argument - the search register
7364 structure - so we can reassure the regex routines that the
7365 registers have been allocated.
7366 (Flooking_at, Fstring_match, search_buffer): Changed to pass
7367 &search_regs to compile_pattern.
7368 (search_buffer): When we've searched for a literal string and
7369 found it, make sure that the search registers are allocated before
7370 stuffing the location of the search into them.
7371 (Fstore_match_data): If we need to allocate more registers,
7372 allocate them using re_set_registers, instead of just storing the
7373 new registers and hoping that regex doesn't free them.
7375 * search.c (Freplace_match): Doc fix.
7377 1992-06-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7379 * screen.c (Fdeiconify_screen): Function deleted.
7380 It was the same as make-screen-visible.
7382 1992-06-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7384 * keyboard.c: Doc fix.
7386 * floatfns.c (Fcbrt): Renamed from Fcube_root, and #if 0'd.
7388 * lisp.h (CHECK_NUMBER_OR_FLOAT*): Use Qnumberp or Qnumber_or_marker_p.
7389 * data.c (syms_of_data): Staticpro those.
7390 (Qinteger_or_float_p, Qinteger_or_float_or_marker_p): Deleted.
7391 (Fnumberp, Fnumber_or_marker_p): Define these always,
7392 but make them work even if not LISP_FLOAT_TYPE.
7394 1992-06-05 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
7396 * config.h.in: Undefine REL_ALLOC if a system specific file
7397 defines SYSTEM_MALLOC.
7399 * sysdep.c (save_signal_handlers): Cast result of signal to
7400 avoid compiler warning.
7401 * process.c (send_process): Likewise.
7403 1992-06-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7405 * keyboard.c (Fread_key_sequence): New 2nd arg CONTINUE_ECHO
7406 added for the sake of universal-argument.
7408 1992-06-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7410 * editfns.c (Fset_default_file_mode): Function deleted.
7411 (Funix_sync): Moved.
7412 * fileio.c (Funix_sync): Moved to here.
7414 * xfns.c (Fx_erase_rectangle, Fx_draw_rectangle, Fx_contour_region):
7415 (Fx_uncontour_region): #if 0 these.
7416 (x_rectangle, outline_region): Likewise.
7417 (syms_of_xfns): #if 0 the defsubrs.
7419 * dispnew.c (Fsleep_for, Fsit_for): Clean up error messages.
7421 * eval.c, print.c, keyboard.c: Doc fix.
7423 * xfns.c (Fx_horizontal_line): Disabled, since not documented.
7425 * fileio.c (Fdelete_directory): Renamed from Fremove_directory.
7427 * unexencap.c: Deinstalled (renamed to =unexencap.c)
7428 since awaited papers never arrived.
7432 1992-06-04 Roland McGrath (roland@geech.gnu.ai.mit.edu)
7434 * eval.c (stack_trace_on_error, debug_on_error): Made Lisp_Objects V*.
7435 (syms_of_eval): Changed DEFVAR_BOOLs to DEFVAR_LISPs.
7436 (wants_debugger): New fn.
7437 (find_handler_clause): Use it to look in debug-on-error and
7438 stack-trace-on-error lists.
7440 1992-06-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7442 * floatfns.c (Fbessel_*, Ferf, Ferfc, Flog_gamma): Turned off;
7443 not clearly worth including.
7444 (Fasinh, Facosh, Fatanh, Fsinh, Fcosh, Ftanh): Likewise.
7446 1992-06-03 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7448 * minibuf.c, keyboard.c: Doc fix.
7450 * window.c (Fwindow_at): Fix number of args--minimum 2, max 3.
7452 * screen.c: Doc fix.
7454 1992-06-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7456 * lread.c (Feval_buffer): Don't read any arguments, if interactive.
7458 1992-06-02 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7460 * screen.c (make_screen_without_minibuffer): Apply XSCREEN to
7461 Vdefault_minibuffer_screen before calling SCREEN_LIVE_P. The
7462 argument to SCREEN_LIVE_P must be a SCREEN_PTR, not a Lisp_Object.
7464 * dispnew.c (Fsit_for): This used to compare arg with 0 and return
7465 Qt immediately. It should actually call sit_for anyway, because
7466 sit_for needs to test for input and do the redisplay.
7467 (sit_for): Compare sec and usec with zero here, after we've
7468 looked for input and done a redisplay.
7470 * lread.c (Feval_buffer): Use NILP, not NIL_P.
7472 1992-06-01 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
7474 * buffer.h: New macro, BUF_SET_PT.
7476 * lread.c: New subr `eval-buffer', replaces `eval-current-buffer',
7477 which is now defined in simple.el.
7479 1992-05-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7481 * screen.c (Fdelete_screen): If we're deleting the default
7482 minibuffer screen, try to find another minibuffer screen.
7484 1992-05-29 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7486 * buffer.c (Fother_buffer): New optional argument VISIBLE_OK,
7487 indicating that buffers currently visible in windows should not be
7488 discriminated against.
7490 1992-05-28 Ken Raeburn (raeburn@cygnus.com)
7492 * screen.c (Fdelete_screen): Fix bugs in walking screen list.
7493 (make_screen_without_minibuffer): Signal an error if the default
7494 minibuffer screen is dead.
7496 * xfns.c (x_set_name): Use ICCCM-conforming scheme for changing
7498 (Fx_create_screen): Likewise.
7500 1992-05-27 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7502 * xselect.c: Support getting and setting the obsolete X cut
7504 (Qcut_buffer0): New atom, denoting the X cut buffer 0.
7505 (syms_of_xselect): Initialize and staticpro it.
7506 (Fx_own_selection): If TYPE is Qcut_buffer0, interpret this to
7507 mean that we should set cut buffer 0 to STRING.
7508 (Fx_selection_value): If TYPE is Qcut_buffer0, interpret this to
7509 mean that we should retrieve the value of cut buffer 0.
7511 1992-05-21 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7513 * xterm.c (construct_mouse_click): Removed extra assignment of
7516 * keyboard.c (last_event_timestamp): Doc fix.
7517 * xselect.c (last_event_timestamp): Declare it extern here.
7518 (mouse_timestamp): Variable deleted. last_event_timestamp is a
7519 more accurate thing to use here.
7520 (own_selection, get_selection_value): Use last_event_timestamp
7521 instead of mouse_timestamp.
7522 * keyboard.c (make_lispy_event): Pass the event's timestamp
7523 through the make_number function, to assure that it is properly
7524 tagged before incorporating it into the lispy event.
7525 * xterm.c (construct_mouse_click): The timestamp element of a
7526 struct input_event is no longer a Lisp_Object; it is now an
7527 unsigned long. So don't use XSET to assign to it.
7528 (XTread_socket): Same here, in processing KeyPress events.
7530 * keyboard.c (Fexecute_extended_command): Properly initialize
7531 this_command_keys to the concatenation of the sequence that
7532 invoked Fexecute_extended_command, the characters making up the
7533 name of the command we're running, and a return character.
7534 Previously, this code would set it to the last key typed while
7535 reading the function name from the minibuffer, followed by the
7536 name of the function being run.
7538 1992-05-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7540 * xterm.c (x_display_box_cursor): Draw the cursor at curs_{x,y},
7541 rather than at s->cursor_{x,y}. If cursor_in_echo_area is set,
7542 then s->cursor_{x,y} does not accurately describe the position of
7543 the cursor. However, if we're not updating, then curs_{x,y} are
7544 garbage; set them from s->cursor_{x,y}.
7546 * dispnew.c (update_screen): Check current_screen->enable and
7547 current_screen_used to see if there is any text on the last line,
7548 not desired_screen->{enable,used}. When the line isn't enabled,
7549 move to line SCREEN_HEIGHT (s) - 1, not SCREEN_HEIGHT (s).
7550 Rearranged conditionals.
7552 * dispnew.c (cursor_in_echo_area): Document the interpretations of
7553 positive and negative values of this variable.
7555 1992-05-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7557 * dispnew.c (Fding): If have arg, don't end a keyboard macro.
7559 1992-05-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7561 * dispnew.c (sit_for): New function, which is a slight
7562 generalization of Fsit_for; you can tell it that it's waiting for
7563 input, so C-g gets handled properly.
7564 (Fsit_for): Call it, instead of replicating all its guts.
7565 * keyboard.c (read_char): Call sit_for instead of Fsit_for, and
7566 indicate that we're awaiting keyboard input.
7568 * dispnew.c (Fsit_for): Rename arguments to match docstring. Use
7569 NILP instead of EQ (foo, Qnil). If nodisp is non-nil, call
7570 wait_reading_process_input with do_display 0, instead of 1; this
7571 will inhibit spurious redisplays when process input arrives during
7574 * process.c (Faccept_process_output): Pass zero as read_kbd
7575 argument to wait_reading_process_input when PROC is nil, not when
7578 * process.c (wait_reading_process_input): Declare read_kbd to be a
7579 Lisp_Object, and use the tagging to tell the difference between a
7580 process object and an integer.
7581 * dispnew.c (Fsleep_for, Fsit_for, Fsleep_for_millisecs): Pass
7582 read_kbd argument to wait_reading_process_input as a Lisp_Object.
7583 * keyboard.c (kbd_buffer_get_event): Same.
7584 * process.c (Faccept_process_output, send_process): Same.
7586 * keyboard.c (read_char): Use save_getcjmp and restore_getcjmp
7587 instead of doing the bcopy explicitly.
7589 * xterm.c (XTread_socket): When handling an EnterWindow event,
7590 don't bother to check waiting_for_input. It's not necessary.
7592 * keyboard.c (read_char): Don't clear waiting_for_input and
7593 input_available_clear_time here.
7594 (quit_throw_to_read_char): It's already done here.
7596 * keyboard.c (quit_throw_to_read_char): Use
7597 clear_waiting_for_input instead of clearing waiting_for_input
7600 1992-05-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7602 * keyboard.c (read_char): Call clear_waiting_for_input instead of
7603 clearing waiting_for_input and input_available_clear_time
7606 1992-05-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7608 * ymakefile [defined (__GNUC__) and __GNUC__ > 1]: Define
7609 YMF_PASS_LDFLAGS so that it can deal with an empty flags argument.
7611 * callproc.c (Fcall_process): Under VMS, a nil INFILE argument
7612 means to read from "NLA0:", not "/dev/null".
7614 * callproc.c (Fcall_process): Use nil as the value for display
7615 (the fourth argument) when nargs >= 4, not when nargs >= 3.
7617 1992-05-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7619 * termhooks.h: Change timestamp from a Lisp_Object to an unsigned
7621 * keyboard.c (kbd_buffer_store_event): We don't have to apply the
7622 XINT macro to the timestamp member of the event anymore.
7624 * process.c (wait_reading_process_output): Don't turn off polling.
7626 * sysdep.c (setpgrp_of_tty): Pass the address of pid, not pid
7629 * process.c: Deleted cpp tangle for dealing with system-dependent
7630 tty handling; #included "systerm.h".
7631 * systerm.h: Add some of the things that were done in process.c:
7632 If titan is #defined, then we should include <sys/ttyhw.h> and
7633 <sys/stream.h> along with the other SYSV pty stuff.
7634 If HPUX is #defined, then EMACS_HAVE_TTY_PGRP isn't true.
7635 If XENIX is #defined, then we shouldn't try to use TIOCGETC.
7636 * ymakefile: Note that process.o depends on systerm.h now.
7638 1992-05-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7640 * callint.c (Fprefix_numeric_value): Value 1 for symbol other than `-'.
7642 1992-05-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7644 * cmds.c (Fforward_line): If the buffer is empty, don't try to see
7645 if it contains a newline, and moving nowhere at eob after
7646 non-newline should return 1, not 0.
7648 * search.c (scan_buffer): Doc fix.
7650 * buffer.c (Fbuffer_disable_undo): Accept a buffer name as an
7653 1992-05-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7655 * fileio.c: Include config.h first thing.
7657 * keyboard.c (clear_input_pending): New subroutine.
7658 * process.c (wait_reading_process_input): Make C-g really quit in
7661 * ymakefile (LD_SWITCH_SYSTEM): Don't use -X with GCC.
7663 1992-05-12 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7665 * eval.c (Fapply): Use indirect_function, instead of doing a dumb
7667 * keymap.c (get_keymap_1): Same.
7668 * macros.c (Fexecute_kbd_macro): Same.
7670 * buffer.c (init_buffer_once): Don't disable undos for *scratch*
7671 here. Do it in loadup.el.
7673 * buffer.c (init_buffer_once): Doc fix.
7675 * doc.c (Fdocumentation): After extracting the doc string from a
7676 lambda or autoload expression, don't fall through to the default
7677 case and signal an invalid function error; instead, do a `break'.
7679 * doc.c (Fdocumentation): Use EQ (x, y) instead of XSYMBOL (x) ==
7682 * doc.c (Fdocumentation): When decyphering a function made from
7683 conses, use 'else if' for the chain of alternatives instead of
7684 just 'if'. It used to be that each alternative returned, but
7685 that's not true anymore.
7687 * alloc.c (Fgarbage_collect): Don't call truncate_undo_list on
7688 buffers whose undo list is 't.
7690 * doc.c (Fdocumentation): Renamed argument `fun1' to `function',
7691 so make-docstring will list argument consistently with the
7694 1992-05-11 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
7696 * xterm.h: Removed definition of `RES_CLASS'.
7698 * xfns.c (x_get_arg): Eliminated `screen_name' parameter. No
7699 longer uses screen name as X resource search component.
7700 All calls to x_get_arg changed accordingly.
7701 Global variable `screen_class' and #define `SCREEN_CLASS' removed.
7703 * xterm.c (XTread_socket): Added basic structure for handling
7704 various ClientMessage events, using new global variables
7705 `Xatom_wm_take_focus', `Xatom_wm_save_yourself',
7706 `Xatom_wm_delete_window', `Xatom_wm_configure_denied',
7708 * xfns.c: Declare these variables extern.
7709 (syms_of_xfns): Initialize these variables.
7711 * xselect.c (Fx_own_selection, Fx_selection_value): New optional
7712 parameter `type', to specify the selection type.
7713 (syms_of_xselect): New symbols Qprimary, Qsecondary, Qclipboard
7716 1992-05-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7718 * data.c (Qcyclic_function_indirection): New error condition.
7719 (indirect_function, Findirect_function): New functions.
7720 (syms_of_data): Initialize Qcyclic_function_indirection, put the
7721 error properties on it, and staticpro it. Defsubr
7723 * lisp.h (indirect_function, Findirect_function): Declare them here.
7724 * callint.c (Fcall_interactively): Get symbol's function by
7725 calling indirect_function, instead of just looping.
7726 * doc.c (Fdocumentation): Same.
7727 * eval.c (Finteractive_p, Fcommandp, do_autoload, Feval)
7729 * keyboard.c (Fcommand_execute): Same.
7731 * data.c (Fsymbol_function): Name the argument `symbol' instead of
7732 `sym', so make-docstring will list argument consistently with the
7735 * process.c (wait_reading_process_input): Make sure the screen
7736 isn't garbaged (and therefore not displayed) before we enter the
7737 select and start waiting for input.
7739 * keyboard.c: #include <systime.h>.
7740 * ymakefile (keyboard.o): This depends on systime.h.
7741 * keyboard.c (input_available_clear_word): Replaced with
7742 input_available_clear_time, which is a pointer to an EMACSTIME;
7743 sometimes the time information is larger than a single word.
7744 (read_char): Changed ..._word to ..._time.
7745 (input_available_signal): Use the EMACS_SET_SECS_USECS macro to
7746 clear *input_available_clear_time, instead of zapping a zero into
7747 *input_available_clear_word.
7748 (set_waiting_for_input, clear_waiting_for_input): Adjusted
7751 1992-05-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7753 * editfns.c (make_buffer_string): New function.
7754 * lisp.h (make_buffer_string): Declare it here.
7755 * editfns.c (Fbuffer_substring): Call make_buffer_string instead
7757 (Fbuffer_string): Call make_buffer_string instead of make_string,
7758 so we can deal with buffer relocations.
7759 * minibuf.c (read_minibuf): Same here.
7761 1992-05-09 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7763 * syssignal.h (sigunblock): New macro, taken from 18.58's
7765 * sysdep.c (request_sigio): Use the sigunblock macro to enable
7766 reciept of SIGWINCH, instead of the dysfunctional sigblockx.
7768 1992-05-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7770 * search.c: Doc fix.
7772 1992-05-06 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7774 * emacs.c (decode_env_path): If EVARNAME is zero, don't try to
7776 * lread.c (init_lread): When we don't have an environment variable
7777 to check, pass 0 instead of the empty string.
7779 * alloc.c (Fmake_marker): Use `SIGMASKTYPE' instead of `int'.
7780 Instead of calling sigsetmask twice - once to get the mask, and
7781 again to restore it - call sigblock, specifying no additional
7784 1992-05-05 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7786 * alloc.c: #include <syssignal.h>, for the sake of the
7787 bug-catching code in Fmake_marker.
7788 ymakefile: Add dependency.
7790 * syssignal.h [not POSIX_SIGNALS] (SIGFULLMASK): New definition,
7791 for symmetry with the "defined (POSIX_SIGNALS)" case.
7793 * callproc.c (child_setup): Since we always get the environment
7794 from Vprocess_environment, don't bother to take the environment
7795 the subprocess should inherit as an argument anymore.
7796 * process.c (create_process): Don't pass environment as a
7797 variable. Just preserve it across call to fork.
7799 1992-05-04 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7801 * floatfns.c: #include <syssignal.h>.
7802 (float_error): Use SIGEMPTYMASK instead of zero.
7804 * syssignal.h [POSIX_SIGNALS] (sigmask): Defined to expand to a
7805 statement expression under GCC, or a function call otherwise.
7806 (sigpause, sigblock, sigunblock, sigsetmask): These are now
7807 K&R-compatible macros.
7808 * systerm.h [POSIX_SIGNALS] (sys_sigmask): Here is the function
7809 the POSIX version of sigmask calls when we're not compiling with
7811 * alloc.c (Fmake_marker): Undo changes of Apr 29.
7812 * callproc.c (Fcall_process): Same.
7813 * data.c (arith_error): Same.
7814 * floatfns.c (float_error): Same.
7815 * keyboard.c (gobble_input): Same.
7817 * sysdep.c (request_sigio, unrequest_sigio)
7819 1992-04-29 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7821 * x11term.h (CLASS): Change this from "emacs" to "Emacs"; class
7822 names should always start with an upper-case letter.
7824 * syssignal.h: Arranged cpp conditionals so that the specific
7825 cases come first, generic cases last.
7827 * syssignal.h (sigpause, sigblock, sigunblock, sigsetmask): Macros
7828 removed; they require GCC, and Emacs 19 should compile without GCC.
7829 (EMACS_SIGPAUSE, EMACS_SIGBLOCK, EMACS_SIGUNBLOCK)
7830 (EMACS_SIGSETMASK, EMACS_SIGFREE, EMACS_SIGHOLDX, EMACS_SIGBLOCKX)
7831 (EMACS_SIGUNBLOCKX, EMACS_SIGPAUSEX): These are new macros that
7832 don't require GCC, but expand to statements.
7833 * callproc.c (Fcall_process): Use new EMACS_SIG* macros from
7835 * keyboard.c (gobble_input): Same.
7836 * sysdep.c (request_sigio, unrequest_sigio): Same.
7837 * x11term.h (BLOCK_INPUT, UNBLOCK_INPUT): Same.
7838 * alloc.c (Fmake_marker): Same.
7839 * data.c (arith_error): Same.
7840 * floatfns.c (float_error): Same.
7842 1992-04-28 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7844 * ymakefile: If we're using GCC version 2.0 or later, use "$(CC)
7845 -nostdlib" as the linker. This will allow us to find libgcc.a
7846 even when GCC puts it in a really weird place.
7847 (YMF_PASS_LDFLAGS): New macro.
7850 * s/hpux.h: Doc fix.
7852 * filelock.c (egetenv): Declare this.
7853 (lock_path, SUPERLOCK_NAME, superlock_path): New variables and
7855 (MAKE_LOCK_PATH, lock_file, unlock_file, lock_superlock): Use the
7856 variables lock_path and superlock_path instead of the PATH_LOCK
7857 and PATH_SUPERLOCK macros.
7858 (init_filelock): New function.
7859 * emacs.c (main): Call the init_filelock function.
7860 * paths.h.in (PATH_SUPERLOCK): Removed. This is now calculated
7861 from PATH_LOCK or from the EMACSLOCKDIR environment variable.
7863 * filelock.c (MAKE_LOCK_PATH): New macro.
7864 (lock_file, unlock_file, Ffile_locked_p): Use it.
7866 * syntax.c (Fmodify_syntax_entry): Note that '-' is a synonym for
7867 ' ' (both denote whitespace), that '\\' denotes the escape class,
7868 and that '/' denotes the character-quote class. The description
7869 used to claim that '\\' denoted the character-quote class, and
7870 neglected to mention '-' and '/'.
7872 * filelock.c (lock_file): Doc fix.
7874 1992-04-27 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7876 * callproc.c (init_callproc): Get the default Vexec_path from the
7877 environment variable "EMACSPATH"; get Vdata_directory from
7880 * ymakefile: Fix #endif and #else comments.
7882 1992-04-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7884 * ymakefile (xemacs): Link xemacs to temacs if HAVE_SHM.
7886 * ymakefile (paths.h, config.h): Never copy, always fail.
7888 * process.c (wait_reading_process_input): Redisplay if screen_garbaged.
7889 Call do_pending_window_change first.
7890 Include dispextern.h.
7891 * ymakefile (process.o): Added dependency.
7893 * ymakefile (OLDXMENU_OPTIONS): New macro, used compiling oldxmenu.
7895 1992-04-25 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7897 * ymakefile: Changed all references to LD_CMD to LINKER, for
7898 compatibility with the 18.58 configuration files.
7899 * s/aix3-1.h, s/sunos4shr.h: Same here.
7901 * ymakefile: Doc fixes.
7903 * ymakefile (CC, MAKE): Set these variables from optional macros.
7904 Change all uses of `make' to ${MAKE}.
7906 * ymakefile: Use HAVE_X11 as alias for X11.
7908 * ymakefile (LIB_GCC, GNULIB_VAR): Handle GCC 2.
7910 * process.c (allocate_pty): Re-arranged conditionals to put the
7911 system-specific-case first, and the generic case in the #else
7912 section, for consistency with the rest of Emacs.
7914 * process.c (allocate_pty): Wait until we fail to open three ptys
7915 in a row before concluding that we've reached the end of the ptys.
7917 1992-04-22 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7919 * ralloc.c: #include "getpagesize.h".
7921 * search.c (Flooking_at): Use search_regs.num_regs instead of
7922 RE_NREGS. As of regex version 0.4, the compiler allocates the
7923 registers, and may allocate more than RE_NREGS.
7924 (search_buffer): Same.
7925 (Freplace_match): Use search_regs.num_regs to tell how many
7926 registers are valid. Also note that if none are valid, no search
7928 (match_limit): Same.
7929 (Fmatch_data): Same.
7930 (Fstore_match_data): If we're trying to store more registers than
7931 search_regs has allocated, re-allocate them to make room.
7933 1992-04-21 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7936 * callproc.c (egetenv): Declare the type of VAR.
7938 * lisp.h: Don't undefine NULL. There is no longer any conflict.
7940 * lisp.h (NUMBERP): New macro.
7941 * editfns.c (Fformat): Protect the sections that deal with
7942 Lisp_Float objects with a "#ifdef LISP_FLOAT_TYPE".
7943 * bytecode.c (Fbyte_code): Use the NUMBERP macro instead of
7944 explicitly checking for the Lisp_Float tag.
7945 * callint.c (Fcall_interactively): Same here.
7947 * xrdb.c (magic_searchpath_decoder): Re-allocate string as needed,
7948 rather than making it a fixed-size array.
7950 * xfns.c (Fx_rebind_key): Don't declare modifier_list to be a
7951 register variable. It's too big, and we need the address of its
7952 first element when we pass it to XRebindKeysym anyway.
7954 * fileio.c (Fdo_auto_save): Doc fix.
7956 1992-04-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7958 * search.c (search_buffer): Cast RE_EXACTN_VALUE to char, because
7959 the regex-0.4 distribution says so.
7961 * ymakefile (dired.o): This depends on regex.h.
7963 * process.c (wait_reading_process_input): There is code here which
7964 sends SIGIO to Emacs if we thought we had input available but
7965 didn't get SIGIO. If the system doesn't have SIGIO, then
7968 * print.c (Fexternal_debugging_output): Arguments were declared
7969 ANSI-style - rewritten in K&R 1 fashion.
7971 * floatfns.c (IN_FLOAT): Cast the zero in the `else' clause of the
7972 conditional expression to SIGTYPE, to match the type of the
7973 float_error call in the `then' clause.
7975 * s/hpux8.h: #define HPUX8; this is supposed to be customary
7976 procedure, and fileio.c was expecting it, but somehow it didn't
7979 * sysdep.h: Move inclusions of [AIX] <sys/hft.h>,
7980 <sys/devinfo.h>, <sys/pty.h>, <unistd.h> [NEED_BSDTTY]
7981 <sys/bsdtty.h>, [HPUX and HAVE_PTYS] <sys/ptyio.h>, [SYSV_PTYS]
7982 <sys/tty.h>, <sys/pty.h>, and [pfa] <sys/file.h> to systerm.h;
7983 also move undefinition of LLITOUT under BSD4_1 to systerm.h.
7984 * systerm.h: They're here.
7986 * xterm.c (XTcursor_to, XTclear_end_of_line): Declare to return
7987 int in the function definitions as well as their declarations.
7989 1992-04-19 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7991 * fileio.c (directory_file_name): When checking if the string ends
7992 with '/', check that slen is a valid length *before* examining
7993 dst[slen-1], not after.
7995 1992-04-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7997 * xterm.c (x_death_handler): New function.
7998 (x_error_handler): Call x_death_handler to shut down Emacs.
7999 (x_term_init): Use x_death_handler to handle SIGPIPE, instead of
8000 x_error_handler, which expects to be passed a display and an
8002 * process.c (send_process): This used to set a handler to
8003 catch SIGPIPEs when writing to a subprocess, and then set the
8004 handler to SIGDFL after writing, but this would stomp on the
8005 SIGPIPE handler for for the X connection. So restore the prevous
8006 handler instead of changing to SIGDFL.
8008 1992-04-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8010 * indent.c (compute_motion): Fix skipping invis lines and
8011 truncation at right margin.
8013 1992-04-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8015 * s/hpux.h (PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Use pty_name,
8019 * process.c (pty_process): Add 'int' to the declaration 'static
8020 pty_processes;'. This makes it a happy declaration even when
8021 static has been #defined as the empty string.
8022 * xterm.c (XTcursor_to, XTclear_end_of_line): Same.
8024 * unexec.c (sbrk): Declare this to return void * if __STDC__ is
8025 defined, or char * otherwise.
8027 * lread.c (init_lread): Re-cleaned logic. To determine whether the
8028 load path was changed before dumping, cons up a dump path and
8029 compare it. This method is more localized and accurate.
8030 (initial_path): Variable removed.
8031 (syms_of_lread): Don't staticpro.
8033 * floatfns.c (float_error): Declare and define this to return
8036 * systime.h [HAVE_TIMEVAL] (EMACS_GET_TIME): Declare dummy to be a
8037 real struct timezone, instead of an EMACS_TIME. Since
8038 HAVE_TIMEVAL is defined, struct timezone ought to be declared, so
8039 there's no harm in passing the genuine article.
8041 * sysdep.c [USG] (rename): Place under the protection of a new
8042 preprocessor symbol, HAVE_RENAME.
8043 * s/hpux.h (HAVE_RENAME): Defined.
8045 * sysdep.c [USG] (setpriority): Declare to return int, not void.
8047 * s/template.h: Add template section for HAVE_TERMIOS.
8049 * term.c (cursor_to, raw_cursor_to, fatal): Do declare the types
8052 1992-04-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8054 * callint.c (Fcall_interactively): When the interactive spec is
8055 a string, it may be relocated while reading the arguments. To
8056 avoid this, make a copy of the spec to refer to, instead of
8057 using a pointer to the data of the spec string.
8059 * callint.c (Fcall_interactively): When following the function
8060 chain of a symbol, check for quits.
8062 1992-04-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8064 * lread.c (init_lread): Make the load path default to
8065 PATH_LOADSEARCH when we're not dumping (null purify-flag), and
8066 PATH_DUMPLOADSEARCH when we are (not (null (purify-flag))).
8067 Change from April 7th incorrectly always used PATH_DUMPLOADSEARCH.
8069 * lread.c (init_lread): Cleaned up logic; to determine whether the
8070 load path was changed before dumping, remember the initial value
8071 and compare against it.
8072 (initial_path): New variable to support this.
8073 (syms_of_lread): staticpro initial_path.
8075 * ymakefile: Renamed filenames like "*-dist" to "*.in".
8077 * config.h.in: Doc fixes.
8079 1992-04-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8081 * config.h-dist: Renamed to config.h.in, for consistency with
8082 the installation conventions of other GNU programs.
8083 * paths.h-dist: Renamed to paths.h.in.
8085 1992-04-11 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
8087 * termcap.c: Declare getenv.
8089 1992-04-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8091 * Makefile: Renamed to Makefile.in; the configure script will edit
8092 this to produce Makefile.
8094 1992-04-07 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8096 * paths.h-dist (PATH_DUMPLOADSEARCH): New macro.
8097 * lread.c (init_lread): If we're building an Emacs to be dumped,
8098 use PATH_DUMPLOADSEARCH as the default load path, so we can
8099 correctly find our lisp files.
8101 * config.h-dist, paths.h-dist: Added "-*- C -*-" to top lines, so
8102 Emacs will know that these are really C source.
8104 1992-04-03 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8106 * search.c (syms_of_search): When allocating memory
8107 searchbuf.buffer, cast the return value of malloc to unsigned char
8108 *, not char *; this changed in the most recent version of the
8111 1992-03-31 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8113 * doc.c (Fdocumentation): Don't forget to end each line of the
8114 docstring with "\n\".
8116 * process.c (Fprocess_connection): Change "#ifdef 0" around this
8117 function to "#if 0".
8119 * eval.c (Flet, FletX): Signal an error if one of the let's binding
8120 clauses has more than one value form, as in (let ((a 1 2)) a).
8122 * eval.c (Ffuncall): Re-install change of March 10; I don't know
8125 * search.c (compile_pattern): Declare the variable which holds the
8126 return value of re_compile_pattern to be const, if this is ANSI C.
8128 * alloc.c (xrealloc): Change "ese" to "else".
8130 * crt0.c (start1) [sun_soft]: Change 'jst' to 'jsr'. The Sun
8131 assembly language manual doesn't list any 'jst' instruction, I
8132 don't know of one personally, and all the analogous code
8133 around it uses 'jsr'.
8135 * crt0.c [m68k]: Merged with GNU C Library's version: added
8136 conditionals for sun_68881, sun_fpa, sun_soft.
8138 * config.h-dist: Adjusted for renaming of share-lib to etc.
8139 * lread.c (read1): Same.
8140 * doc.c (Fdocumentation_property, Fsnarf_documentation): Same.
8143 1992-03-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8145 * crt0.c: Merged changes from 18.58:
8146 [hp9000s300]: Set flag_fpa. Define float_loc.
8147 [new hp assembler]: Double flag_fpa and flag_68881 if %d2!=0.
8148 (start1): Declare to be static at the top of the file.
8149 (_start): Removed static declaration in this function; since
8150 everyone wants it, we'll just put it here.
8152 1992-03-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8154 * fileio.c (Finsert_file_contents): Allow quitting from I/O.
8155 (Fcopy_file): Likewise.
8157 1992-03-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8159 * m-intel386.h (HAVE_ALLOCA): Inhibit if C_ALLOCA.
8160 (LIB_STANDARD): Alternate USG value if __GNUC__ or C_ALLOCA
8162 * alloc.c (xrealloc): If handed a NULL pointer for the block to
8163 resize, malloc a new block and return that. Not all reallocs do
8166 * m/elxsi.h: Doc fix.
8168 1992-03-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8170 * dispnew.c (Fsleep_for): Call wait_reading_process_input, whether
8171 or not we have process support; let the emulator do the work.
8172 * emacs.c (fatal_error_signal, Fkill_emacs): Call
8173 kill_buffer_processes even when subprocesses is not #defined; we
8176 * process.c [not defined (subprocesses)] (Fget_buffer_process,
8177 init_process, syms_of_process): New stub versions of these functions.
8178 * emacs.c (main): Call init_process and syms_of_process whether or
8179 not subprocesses is #defined.
8180 * xdisp.c (decode_mode_spec): Call Fget_buffer_process whether or
8181 not subprocesses is #defined.
8183 1992-03-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8185 * keyboard.c (kbd_buffer_get_event): Call
8186 wait_reading_process_input, even when subprocesses is not
8187 #defined, instead of doing a whole lot of hairy SIGIO-pausing
8189 * dispnew.c (Fsit_for): Call wait_reading_process_input, whether
8190 or not subprocesses is #defined.
8192 * process.c (wait_reading_process_input): Since we're no longer
8193 checking for exceptional conditions in the call to select, all of
8194 the different ways to call select for different systems have
8195 become the same; remove the #if conditionals around this.
8197 * keyboard.c (read_char): When returning quit_char because we got
8198 an interrupt signal, claim that the character came from the
8199 currently selected screen.
8201 1992-03-16 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8203 * callproc.c (Fcall_process): Doc fix.
8205 * process.c [not defined (subprocesses)] (kill_buffer_processes):
8206 New dummy version of this function.
8207 * buffer.c (Fkill_buffer): Removed '#ifdef subprocesses'
8208 protection from the call to kill_buffer_processes; this is safe
8209 whether or not we actually have subprocesses.
8211 1992-03-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8213 * m/pfa50.h: New file.
8214 * process.c (create_process, process_send_signal): Added changes
8219 1992-03-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8221 * callproc.c (child_setup): Always put the child in its own
8224 1992-03-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8226 * mem_limits.h (POINTER): Doc fix.
8228 * ralloc.c: Don't #include lisp.h and xterm.h; we no longer need
8229 to block input in critical sections.
8230 (r_alloc, r_alloc_free, r_re_alloc): Don't use BLOCK_INPUT and
8231 UNBLOCK_INPUT; these are no longer needed.
8232 (struct bp): Doc fix.
8234 1992-03-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8236 * ralloc.c (obtain): When deciding how many pages to request, take
8237 into account the amount of spare bytes at the end of the current
8238 page; let get be ROUNDUP (size - already_available), instead of
8240 (relinquish): Re-organized for clarity.
8242 * editfns.c (Fcurrent_time): Updated to return the current time's
8243 seconds split into two 16-bit integers (similar to the system used
8244 by file-attributes), and the milliseconds.
8246 1992-03-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8248 * process.c (Faccept_process_output): Add new optional argument
8249 TIMEOUT-MSECS, and return non-nil iff we actually got some input
8250 from the process(es).
8251 (wait_reading_process_input): Make return value indicate whether
8252 we got some input from the specified process, when read_kbd is a
8253 process, or from any process when read_kbd isn't particular.
8255 * indent.c (Fmove_to_column): Pass the correct number of arguments
8258 * eval.c (Ffuncall): If a subr is asking for too many arguments,
8259 abort instead of printing an error message; this is an internal
8260 flaw in Emacs, and the subr cannot be called.
8262 1992-03-06 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8264 * doc.c (Fdocumentation, Fdocumentation_property): Take optional
8265 new arg to not pass results thru substitute-command-keys.
8267 1992-03-05 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8269 * unexmips.c (unexec): When setting up the data_section header,
8270 calculate the size of the section as "brk - data_start," not "brk
8273 1992-02-23 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8275 * fileio.c: #include "systime.h".
8276 (Fcopy_file): Use the systime.h macros to copy the time to the new
8278 * ymakefile: Note that fileio.o depends on systime.h.
8280 * ymakefile (dispnew.o): Note that this depends on systerm.h and
8282 (editfns.o, xterm.o, sysdep.o): Note that this depends on
8284 (emacs.o, keyboard.o, process.o, sysdep.o): Note that these depend
8287 * systerm.h: Expanded to handle getting and setting terminal
8289 (struct emacs_tty): New structure, which consolidates all of the
8290 old tty parameter structures.
8291 (EMACS_GET_TTY, EMACS_SET_TTY, EMACS_TTY_TABS_OK): New macros.
8292 * sysdep.c (TABS_OK): Definitions of this macro removed;
8293 EMACS_TTY_TABS_OK replaces it.
8294 (TERMINAL): Definitions removed; now we use struct emacs_tty.
8295 [VMS] (input_chan): Renamed to...
8296 (input_fd): and defined even when VMS isn't; in that case, we
8297 leave it initialized to zero, which is the input tty. This allows
8298 us to use the EMACS_GET_TTY and EMACS_SET_TTY for both VMS and
8300 (discard_tty_input): Use struct emacs_tty and its macros instead
8301 of TERMINAL. Replace some of conditional with a call to
8303 (child_setup_tty): Use struct emacs_tty and its macros instead of
8304 TERMINAL and conditionals.
8305 (old_gtty, old_ltchars, old_tchars, old_lmode): Replaced by...
8306 (old_tty): New variable.
8307 (lmode): Made conditional on BSD4_1, since it's only used by the
8308 BSD4_1 support code now.
8309 (init_sys_modes): Define tty to be a struct emacs_tty, not a
8310 TERMINAL. Use macros to get and set parameters for VMS and
8311 Unices. Set lmode, tchars, and ltchars along with the rest of the
8313 (tabs_safe_p): Use EMACS_GET_TTY and EMACS_TTY_TABS_OK instead of
8315 (reset_sys_modes): Use EMACS_SET_TTY to restore the settings from
8316 old_tty, instead of using hairy conditionals.
8318 * sysdep.c (get_screen_size): Neatened; now each system of
8319 reporting the screen size is separated from the rest.
8321 * systerm.h (EMACS_HAVE_TTY_PGRP, EMACS_GET_TTY_PGRP,
8322 EMACS_GET_TTY_PGRP): New macros to handle setting a tty's current
8324 * sysdep.c (setpgrp_of_tty): Use the above, instead of
8327 * sysdep.c: #include "systerm.h".
8328 #ifs that choose #include files moved from here...
8329 * systerm.h: to here.
8331 * sysdep.c [APOLLO]: We now undefine TIOCSTART not here but...
8334 * sysdep.c [BROKEN_TIOCGETC]: We now undefine TIOCGETC not here but...
8337 * sysdep.c [BROKEN_FIONREAD]: We now undefine FIONREAD and FASYNC
8341 * process.c (process_send_signal): Steal 18.58's version of this,
8342 but incorporate the support for VMS signals.
8344 * syssignal.h (EMACS_KILLPG): New macro.
8345 * process.c (process_send_signal): Use it.
8346 * sysdep.c (sys_suspend): Use it.
8348 * syssignal.h (SIGCHLD): If we have SIGCLD and not SIGCHLD, define
8349 SIGCHLD as an alias for SIGCLD.
8350 * sysdep.c: Remove code for above.
8352 * sysdep.c (init_baud_rate): Rather than trying to maintain the
8353 illusion of an abstraction with the OSPEED and SETOSPEED macros,
8354 just use conditionalized code for each terminal kind. This is the
8355 only place we ever need this functionality.
8356 (OSPEED, SETOSPEED): Definitions removed.
8358 1992-02-22 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8360 * sysdep.c: Moved definition of sigunblock macro to ...
8361 * syssignal.h: Here.
8363 * hftctl.c: #include <sys/uio.h> before #including <sys/tty.h>.
8364 (hfqry, hfskbd): Declare these functions as static before all uses.
8365 * unexaix.c (make_hdr, mark_x, copy_text_and_data, copy_sym):
8366 Declare as static before all uses.
8367 Remove extraneous semicolons from #ifdefs of COFF and XCOFF.
8368 (unrelocate_symbols): Cast the initializers of t_start and d_start
8371 * s/template.h: Include a clause for the HAVE_TERMIO flag.
8373 1992-02-21 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8375 * keyboard.c (read_char): Don't clear Vquit_flag when we catch an
8376 interrupt and return a quit_char; this change (Mar 21 1991) is too
8377 large a change in functionality for the cleanliness it gains.
8379 * pwd.h: Renamed to vms-pwd.h, so that we don't get it by accident
8380 when we #include <pwd.h> with the `-I.' flag given to the
8382 * editfns.c [VMS]: Changed to include vms-pwd.h instead of pwd.h.
8383 * fileio.c [VMS]: Same.
8384 * filelock.c [VMS]: Same.
8385 * sysdep.c [VMS]: Same.
8387 * xrdb.c: Changed to #include "vms-pwd.h" if VMS is defined,
8388 instead of including <pwd.h> unconditionally.
8390 * window.c (Fset_window_display_table): Rearranged to make etags
8393 * xterm.c (XTread_socket): Clear the meta flag from the keypress
8394 event before handing it to XLookupString.
8396 1992-02-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8398 * sysdep.c: No need to test #ifdef TIOCGETP before #undefing it.
8400 1992-02-19 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8402 * systime.h: New file.
8403 * dispnew.c: #include "systime.h" to get <time.h> or <sys/time.h>,
8404 whichever is appropriate, instead of using a conditional.
8405 (Fsleep_for, Fsit_for, Fsleep_for_millisecs): Use the systime.h
8406 macros instead of HAVE_TIMEVAL conditionals.
8407 * editfns.c: #include "systime.h" to get <time.h> or <sys/time.h>,
8408 whichever is appropriate, instead of using a conditional.
8412 (wait_reading_process_input): Use the systime.h macros.
8413 * sysdep.c: #include "systime.h" to get <time.h> or <sys/time.h>,
8414 whichever is appropriate, instead of using a conditional.
8416 * m/template.h: Add description of NO_SOCK_SIGIO.
8418 * sysdep.c (reset_sys_modes): Doc fix.
8420 * keyboard.c (sigfree, sigholdx, sigblockx, sigunblockx)
8421 (sigpausex): Definitions moved to syssignal.h.
8423 * dispnew.c: Doc fix.
8425 * systerm.h: New file, to consolidate the system-dependent
8426 terminal-handling trash.
8427 * emacs.c: #include systerm.h.
8428 (main): Use systerm.h macros instead of conditionals.
8429 * dispnew.c: #include systerm.h.
8430 (update_screen): Use EMACS_OUTQSIZE instead of the direct ioctl.
8431 * keyboard.c: #include systerm.h to get the proper FIONREAD header
8432 files, instead of using conditional.
8434 * syssignal.h: Added copyright notice.
8436 * emacssignal.h: Renamed to syssignal.h, to be like sysdep.c.
8437 * data.c, keyboard.c, process.c, sysdep.c, ymakefile: Changed
8438 #include directives.
8440 1992-02-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8442 * m/intel386.h: Don't bother casting the argument to the signal
8443 function; the SIGTYPE code in config.emacs ought to take care of
8446 * buffer.c (record_buffer): Doc fix.
8448 1992-02-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8450 * s/iris3-6.h: #define HAVE_GETWD.
8452 1992-02-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8454 * window.c (Fwindow_at): Accept position as two arguments, not a
8457 * window.c (scroll_command): Undo the Jan 31 change; do set the
8458 current buffer to the selected window's buffer. A simple
8459 set-buffer will make these two different.
8461 1992-02-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8463 * callproc.c (Fcall_process): Clear synch_process_death and
8464 synch_process_retcode to zero before forking the process.
8466 * process.c (synch_process_death, synch_process_retcode): Don't
8467 declare them extern here.
8468 * process.h (synch_process_death, synch_process_retcode): Declare
8469 them extern here, along with synch_process_alive.
8471 * s/hpux.h: Define CLASH_DETECTION.
8473 * window.c (init_window_once): Don't pass any arguments to
8476 * keyboard.c (command_loop_1): Move the label directly_done out of
8477 the else block to just after the else block. This shouldn't
8478 change the semantics of the code, but appears to avoid a compiler
8479 bug on SCO Unix V.3.2v2.
8481 * fileio.c (Fset_umask, Fumask): New functions.
8482 (syms_of_fileio): defsubr them.
8484 * undo.c (Fprimitive_undo): When undoing a deletion with the point
8485 before the deleted text, use Finsert_before_markers so that the
8486 mark will end up on the other side of the text, if it's in the
8489 * xdisp.c (redisplay): Properly compute TAB_OFFSET for compute_motion.
8491 * keyboard.c (command_loop_1): Don't check whether cursor is at
8492 edge of screen here.
8493 * dispnew.c (direct_output_forward_char): Check here, and return
8494 zero if it can't be done. And compare the cursor position to the
8495 window boundaries, not the screen boundaries.
8497 1992-02-05 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8499 * screen.c (Fscreen_parameters): If the screen has a minibuffer
8500 window on another screen, return the window, instead of nil.
8501 (store_screen_param): If the value of the minibuffer parameter is
8502 a window, try to make it the surrogate minibuffer window.
8503 (Qminibuffer): New variable, to support above change.
8504 (syms_of_screen): Initialize and staticpro it.
8506 * m/tad68k.h: New file.
8508 * fileio.c (Ffile_accessible_directory_p): New function.
8509 (syms_of_fileio): defsubr it.
8510 * callproc.c: #include <errno.h>.
8511 (child_setup): Accept yet another argument, current_dir.
8512 Don't try to report an error here if current_dir is inaccessible;
8513 this function is called in a vforking process. Just have the
8514 process exit with an error code.
8515 (Fcall_process): Make sure that the current directory is okay
8516 here, before we fork. Pass the current_dir argument.
8517 * process.c (create_process): Same here.
8519 * callproc.c (Fcall_process): Don't assign into args[1] when nargs
8520 < 2. Instead, use a new variable called infile. Re-arranged
8521 logic which processes the BUFFER argument.
8523 1992-02-03 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8525 * fileio.c (Fexpand_file_name): Doc fix.
8527 * scroll.c (line_ins_del): Since we're calculating the array from
8528 end to beginning, make the indices go that way, and thus clearly
8529 get the right boundary. This used to ignore the [0] element, and
8530 write in the [screen_height] element, which doesn't exist.
8532 1992-02-03 Richard Stallman (rms@mole.ai.mit.edu)
8534 * xdisp.c (redisplay, try_window_id): Special case for change
8535 at beginning of line, if using selective display.
8537 1992-01-31 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8539 * m/delta88k.h: Added USUAL-OPSYS information, for the
8540 config.emacs script to use.
8542 * window.c (scroll_command): Don't bother setting the current
8543 buffer to the selected window's buffer; this should always already
8544 be the case. Add check just in case.
8546 * indent.c (compute_motion): Don't pack vpos and hpos into one int;
8547 use separate variables hpos/vpos and prev_hpos/prev_vpos.
8548 (vmotion): Use largest int as tovpos arg to compute_motion.
8550 1992-01-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8552 * window.c: #include "keyboard.h" to get the Qmode_line and
8553 Qvertical_split declarations.
8554 * ymakefile (window.o): Note that this depends on keyboard.h.
8556 * callproc.c (getenv_internal): Cast the pointer to the variable's
8557 value to a char *; elisp strings are unsigned char *'s. And
8558 valuelen is an int *, not an int **.
8560 * scroll.c (do_scrolling): Document meaning of enable flag in
8563 1992-01-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8565 * m-orion105.h (C_DEBUG_SWITCH, LIBS_DEBUG): Defs deleted.
8567 1992-01-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8569 * m-iris4d.h (C_SWITCH_MACHINE): New definition.
8571 1992-01-28 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8573 * term.c: #include "keyboard.h", for Vfunction_key_map.
8574 * keyboard.h: Declare Vfunction_key_map.
8576 * keyboard.h: New file, for external declarations used in
8577 processing keyboard input and events.
8578 * lisp.h (Qmode_line, Qvertical_split, num_input_chars)
8579 (poll_suppress_count): Extern declarations moved to keyboard.h.
8580 * keyboard.c: #include "keyboard.h".
8581 (Qvscrollbar_par, Qvslider_part, Qvthumbup_part)
8582 (Qvthumbdown_part, Qhscrollbar_part, Qhslider_part)
8583 (Qhthumbleft_part, Qhthumbright_part): Moved declarations here from
8584 xfns.c, so they're with the other event heading symbols.
8585 * eval.c: #include "keyboard.h".
8586 * ymakefile (callint.o, keyboard.o, keymap.o, xfns.o, eval.o):
8587 Note that these depend on keyboard.h.
8589 * xfns.c: The above symbols aren't here any more. #include
8590 "keyboard.h" to get them.
8591 (syms_of_xfns): Don't initialize or staticpro them.
8592 * keyboard.h: Added extern declarations for the above.
8593 * callint.c: #include "keyboard.h".
8595 * xfns.c (Vmouse_screen_part): Variable removed, no longer used.
8596 (syms_of_xfns): Changed accordingly.
8598 * xterm.c (Qmouse_moved): Variable removed, no longer used.
8599 (Qmouse_click, Qscrollbar_click): Removed. These are now event
8600 types, in keyboard.c and keyboard.h; they're no longer used in
8602 (Vmouse_window, Vmouse_screen_part): Extern declarations removed.
8603 (XTread_socket): Don't assign to Vmouse_window or
8605 (syms_of_xterm): Changed accordingly.
8607 * keyboard.h (EVENT_HAS_PARAMETERS, EVENT_HEAD, EVENT_WINDOW)
8608 (EVENT_BUFFER_POSN, EVENT_SCROLLBAR_BUTTON, EVENT_WINDOW_POSN)
8609 (EVENT_TIMESTAMP, EVENT_HEAD_UNMODIFIED, EVENT_HEAD_KIND): New
8610 macros to recognize and access events that have parameters, like
8612 * keyboard.c (read_char, echo_char, Fmouse_click_p)
8613 (read_key_sequence): Use them.
8614 * keymap.c: #include "keyboard.h".
8615 (access_keymap, store_in_keymap, Fsingle_key_description): Use the
8616 macros from keyboard.h.
8618 * keyboard.c (Qevent_kind): New symbol, naming the property of an event
8619 header where we put the event's type.
8620 (Qfunction_key, Qmouse_click, Qscrollbar_click): New symbols, used
8621 to tag different kinds of events.
8622 (Qevent_unmodified): New symbol, naming the property
8623 of an event header where we put an unmodified version of the event
8625 (modify_event_symbol): Take a new argument, SYMBOL_KIND, whose
8626 value should be put on the Qevent_kind property of each symbol we
8627 make. Set the Qevent_unmodified property of each symbol we make.
8628 (make_lispy_event): Pass the appropriate SYMBOL_KIND argument to
8629 modify_event_symbol.
8630 (struct event_head, head_table): New tables, to simplify the
8631 initialization of some of the event heads.
8632 (syms_of_keyboard): Initialize and staticpro the symbols given in
8633 head_table, and put the Qevent_kind and Qevent_unmodified
8634 properties on them. Initialize all of the new symbols listed
8637 * keyboard.c (lispy_function_keys, lispy_mouse_names): Renamed
8638 these from function_key_names and mouse_names, and moved them
8639 outside of make_lispy_event, since static doesn't work on all
8640 systems, and these can't be automatic.
8642 1992-01-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8644 * fileio.c (Fwrite_region): Remove Alliant conditional.
8645 * crt0.c: Conditionals for ALLIANT_2800.
8646 * m/alliant-2800.h: New file.
8647 * unexfx2800.c: New file.
8649 * m-mips4.h (C_DEBUG_SWITCH): Alternate defn for GCC.
8651 * sysdep.c [VMS] (sys_write): Special case for fixed-length
8652 with carriage-control characters.
8654 * s/isc2-2.h (NOMULTIPLEJOBS): Undef this.
8655 (LIB_STANDARD): Add -lPW.
8656 (LIBS_SYSTEM): Defined.
8657 * m/intel386.h (signal): Optionally don't define it.
8659 1992-01-27 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8661 * s/template.h: Document the SIGTYPE macro.
8662 * s/bsd4-3.h: Define the SIGTYPE macro.
8664 * data.c (Fsymbol_value): Extract all the innards of this function
8665 into find_symbol_value, except the code which signals an error.
8666 (find_symbol_value): New function.
8667 * lisp.h (find_symbol_value): Declare it.
8668 * keymap.c (current_minor_maps): Use it, instead of a call to
8669 Fboundp and Fsymbol_value per every minor map, for every key
8672 * xterm.c (x_make_screen_visible): Don't raise the window. This
8673 causes the window to pop to the front every time a message
8674 appears, which isn't desirable.
8676 * screen.c (Fselect_screen, Fdelete_screen, Fset_mouse_position)
8677 (Fmake_screen_visible, Fmake_screen_invisible, Ficonify_screen)
8678 (Fdeiconify_screen, Fscreen_parameters, Fmodify_screen_parameters)
8679 (Fset_screen_height, Fset_screen_width, Fset_screen_size)
8680 (Fset_screen_position): Use SCREEN_IS_X macro instead of testing
8681 for output_x_window.
8682 * xfns.c (adjust_scrollbars, Fx_store_cut_buffer): Same.
8684 1992-01-25 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8686 * term.c (term_get_fkeys): New function.
8687 (term_init): Call term_get_fkeys.
8689 1992-01-21 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8691 * editfns.c (Ffollchar, Fprevchar): Renamed to Ffollowing_char and
8692 Fprevious_char, for consistency. Renamed Sfollchar and Sprevchar
8694 (syms_of_editfns): Fixed defsubrs.
8695 * lisp.h (Ffollchar, Fprevchar): Renamed extern declarations as above.
8697 * editfns.c (Ffollowing_char): Return 0 at the end of the buffer,
8698 as advertised. Doc fix.
8699 (Fprevious_char): Doc fix.
8701 * config.h-dist: Rearranged to define user parameters before
8702 including the machine and opsystem files, so the files can have
8703 conditionals on the parameters.
8705 1992-01-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8707 * keyboard.c (read_key_sequence): When expanding a function key
8708 recognized with Vfunction_key_map, don't scan the expansion for
8709 further function key sequences.
8711 * keyboard.c (Vfunction_key_map): Real declaration moved to
8712 keymap.c; this declaration made extern.
8713 (syms_of_keyboard): DEFVAR and initialization of Vfunction_key_map
8714 moved to keymap.c, since it should be initialized to a keymap, but
8715 we don't want to rely on Qkeymap being initialized now.
8716 * keymap.c (Vfunction_key_map): Variable moved here.
8717 (syms_of_keymap): DEFVAR and init here.
8719 * keymap.c (Fglobal_key_binding): Doc fix.
8721 1992-01-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8723 * m-delta88.h: New file.
8725 * window.c (window_scroll): New arg `noerror'.
8726 (scroll_command, Fscroll_other_window): Pass that arg.
8728 1992-01-15 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8730 * process.c (sigchld_handler):
8731 Set synch_process_death and synch_process_retcode.
8733 1992-01-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8735 * config.h-dist (SIGTYPE): New macro to help give signal handlers
8737 * s/usg5-3.h (SIGTYPE): Define this to be void.
8738 * dispnew.c (window_change_signal): Declare this to return
8740 * emacs.c (fatal_error_signal): Same.
8741 * data.c (arith_error): Same.
8742 * process.c (create_process_1, send_process_trap,
8743 create_process_sigchld, sigchld_handler): Same.
8744 (create_process): Declare sigchld according to SIGTYPE. This
8745 means we don't have to cast the return value of signal.
8746 * keyboard.c (input_poll_signal, interrupt_signal): Declare these
8748 (kbd_buffer_store_event): Include a forward declaration for
8749 interrupt_signal here.
8750 * sysdep.c (struct save_signal): Say the handler returns SIGTYPE
8752 (save_signal_handlers): So we don't have to cast the return value
8754 (sys_suspend): Declare oldsig according to SIGTYPE.
8755 (select): Declare old_trap using SIGTYPE.
8756 (select_alarm, wait_for_termination_signal): Declare these to
8759 * emacs.c: #include <termios.h>, if we have it.
8760 (fatal_error_signal): If we have termios, use tcgetpgrp to get the
8761 terminal's process group.
8762 * process.c: If we have termios, #include <termios.h> instead of
8764 (process_send_signal): If we have termios, use tcgetpgrp to get
8765 the terminal's process group. Have gid default to the child's
8766 pid, to simplify the logic below.
8767 * sysdep.c (flush_pending_output): If we are using termios, make
8768 this function a no-op; since we're not in the tty's pgroup, we
8769 would get a SIGTTIN.
8771 1992-01-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8773 * config.h-dist: Removed MAINTAIN_ENVIRONMENT clause.
8774 * callproc.c: Removed support for MAINTAIN_ENVIRONMENT.
8775 (init_callproc): Use getenv instead of egetenv to initialize
8777 * emacs.c (decode_env_path): Use getenv instead of egetenv
8778 * lisp.h: Removed support for MAINTAIN_ENVIRONMENT.
8781 * dispnew.c (init_display): Call getenv instead of egetenv.
8783 * editfns.c (Fgetenv): Function moved...
8784 * callproc.c (Fgetenv): To here, and made to scan
8785 Vprocess_environment instead of using the usual C getenv function.
8786 (getenv_internal): New function.
8787 (egetenv): New function.
8788 * lisp.h: Added extern declaration for egetenv.
8789 * editfns.c (syms_of_editfns): Adjusted.
8790 * callproc.c (syms_of_callproc): Adjusted.
8792 * window.h (minibuf_prompt_width): Declare this extern here, after
8794 minibuf.c: Don't extern declare it here.
8797 * dispnew.c (buffer_posn_from_coords): If there is a prompt in the
8798 minibuffer, account for its width when computing the buffer
8801 * Makefile (doall): Explicitly export CC to the xmakefile.
8803 * ymakefile: Use /* */ around comments; # confuses cpp.
8805 * ymakefile: Note that ralloc.o depends on mem_limits.h, xterm.h,
8807 Note that vm-limit.o depends on mem_limits.h.
8809 * lread.c (read_escape): Return \a as '\007', not '\a'; the latter
8810 isn't portable, and this routine would have to be revised anyway
8811 to deal with anything other than ASCII.
8813 * keymap.c (current_minor_maps): Rewritten not to use
8814 function-local static variables, to accomodate DGUX.
8816 * xterm.h (UNBLOCK_INPUT): Replace "abort ()" with "(abort (),
8817 0)", to avoid type conflicts on odd systems like Ultrix.
8819 * xrdb.c: Include <sys/types.h>, and declare getuid to return uid_t.
8821 * xdisp.c (redisplay_window): Use SET_PT macro instead of
8823 insdel.c (insert_from_string): Same.
8825 * xterm.c (XTcursor_to): Declare it static at the function
8826 definition, as well as at the top of the file.
8827 (dumpglyphs): Removed declarations for buf and cp; these variables
8830 * lisp.h (NULL): Renamed to NILP, so as not to conflict with
8831 <stdio.h>, and <stddef.h>. All callers changed; all
8832 #undefinitions of NULL removed.
8834 1992-01-12 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8836 * xdisp.c (message): #ifdef NO_ARG_ARRAY, make a local block to
8837 declare the explicit argument array.
8839 * config.h-dist: Instead of reaching the machine- and
8840 system-dependent files through symlinks, replace the strings
8842 1992-01-09 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8844 * keyboard.c (stuff_buffered_input): Don't forget to increment
8845 kbd_fetch_ptr while looping through kbd_buffer.
8847 1992-01-08 Jim Blandy (jimb@occs.cs.oberlin.edu)
8849 * keyboard.c (read_avail_input): Don't forget to fill in the
8850 screen field in events read from the terminal.
8851 * sysdep.c (kbd_input_ast, read_input_waiting): Call
8852 kbd_buffer_store_event with a `struct input_event *', not a
8853 character or a Lisp_Object.
8855 1991-12-21 Jim Blandy (jimb@occs.cs.oberlin.edu)
8857 * bytecode.c (docall): Don't remove protection from the arguments
8860 1991-12-20 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
8862 * keyboard.c (Vfunction_key_map): New variable.
8863 (read_key_sequence): Changed to recognize and substitute bindings
8864 in Vfunction_key_map at any point in the sequence, unless they
8865 conflict with ordinary bindings.
8866 (syms_of_keyboard): DEFVAR, document, and initialize
8869 1991-12-19 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
8871 * keymap.c (Vminor_mode_map_alist): New variable, to support
8872 keymaps for minor modes.
8873 (current_minor_maps, Fminor_mode_key_binding,
8874 Fcurrent_minor_mode_maps): New functions.
8875 (Fkey_binding): Rewritten to scan for minor mode bindings too.
8876 (syms_of_keymap): DEFVAR, document, and initialize
8877 Vminor_mode_map_alist, and defsubr the new Ffunctions.
8878 (describe_buffer_bindings): Describe the bindings established by
8880 * keyboard.c (follow_key): New function, to support...
8881 (read_key_sequence): Completely rewritten to handle scanning an
8882 arbitrary number of keymaps at a time.
8884 * keyboard.c (Fread_key_sequence): GCPRO keybuf, since it can hold
8885 lisp expressions while waiting for input. Don't pass too many
8886 arguments to read_key_sequence.
8887 (command_loop_1): Don't pass too many arguments to read_key_sequence.
8889 * keyboard.c (add_command_key): New function; there are several
8890 places that add keys to this_command_keys, so we make one function
8892 (read_char, Fexecute_extended_command): Call add_command_key
8893 instead of writing out its code again.
8894 (init_keyboard): Allocate this_command_keys according to
8895 this_command_keys_size.
8897 * lread.c (read1): Change comment to use `share-lib' instead of `etc'.
8898 * doc.c (Fdocumentation_property, Fsnarf_documentation): Update
8899 docstring similarly.
8900 (Fsnarf_documentation): Use "../share-lib/" instead of "../etc/"
8901 to find doc file while dumping.
8902 * unexaix.c: Similar doc fix.
8904 * ymakefile (etcdir): Variable removed.
8905 (libsrc, archlib, sharelib): New variables, to take the place of
8908 1991-12-18 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
8910 * ymakefile (CFLAGS): Don't automatically include C_DEBUG_SWITCH
8911 in the value for CFLAGS; the configuration script will take care
8912 of choosing the debugging and optimization switches.
8914 * config.h-dist: Copy the GLYPH definitions from config.h to here.
8916 1991-12-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8918 * abbrev.c (Fexpand_abbrev): Run pre-abbrev-expand-hook.
8919 (syms_of_abbrev): Define that variable.
8921 1991-12-13 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
8923 * m/m-*.h: Since the m- is now redundant, renamed all files to
8924 remove it, and changed references within files.
8925 * s/s-*.h: Same business.
8927 1991-12-11 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
8929 * config.h-dist (MULTI_SCREEN): Define this automatically when
8930 we're using a window system.
8932 1991-12-09 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
8934 * m/m-*.h (i.e. all machine config files): Added USUAL-OPSYS
8935 comments to tell the configuration script what sort of operating
8936 system this machine typically runs.
8938 * config.h-dist (MScreenWidth, MScreenLength): Deleted; no longer
8941 1991-12-08 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
8943 * editfns.c (Fcurrent_time): New function, to return the current
8944 time as a number, like the Unix time(3) function. This might be
8946 (syms_of_editfns): defsubr it.
8948 1991-12-05 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
8950 * keymap.c (Vminor_mode_map_alist): New variable.
8951 (current_minor_maps): New function.
8952 (Fcurrent_minor_mode_maps): New function.
8953 (syms_of_keymap): DEFVAR, document, and initialize
8954 Vminor_mode_map_alist, and defsubr Fcurrent_minor_mode_maps.
8956 * callproc.c (Vdata_directory): New lisp variable, for the
8957 directory containing architecture-independent data files.
8958 (init_callproc): Initialize Vdata_directory from PATH_DATA, and
8959 make sure it exists. Renamed execdir to tempdir, because we use
8960 it for both Vexec_directory and Vdata_directory.
8961 (syms_of_callproc): Doc fix for Vexec_directory, new DEFVAR_LISP
8962 for Vdata_directory.
8963 * paths.h-dist (PATH_DATA): New path macro, to initialize
8965 * doc.c (get_doc_string): Use Vdata_directory to find the
8966 docstrings, not Vexec_directory.
8967 * lisp.h (Vdata_directory): New extern declaration, for above
8969 * config.h-dist: Changed references to ../etc to ../share-lib.
8971 * callint.c (Fcall_interactively): For the 'k' interactive code,
8972 cast the type of the symbol name before passing it to error.
8974 1991-12-02 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
8976 * keyboard.c (make_lispy_movement): Move call to
8977 mouse_position_hook from here...
8978 (kbd_buffer_get_event): To here, for symmetry with non-movement
8981 * keyboard.c (kbd_buffer_get_event): Set Vlast_event_screen for
8982 mouse movements, too.
8984 1991-11-27 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu)
8986 * alloca.c (alloca): Add parens to make precedence clearer.
8988 1991-11-26 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
8990 * search.c: Need to include sys/types.h because of recent mod to
8993 1991-11-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8995 * bytecode.c: BYTE_CODE_METER and BYTE_CODE_SAFE undefined by default.
8996 (METER_CODE): Define same name whether metering or not.
8997 (BinsertN): New byte code.
8998 (Fbyte_code): Improve overflow/underflow error messages.
8999 (docall): Put back previously lost code to remove protection
9002 1991-11-25 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9004 * lisp.h (make_array): New extern declaration.
9006 * alloc.c (make_sequence): Renamed to make_array; more accurate.
9007 * keyboard.c (Fread_key_sequence, Fthis_command_keys): Callers fixed.
9008 * macros.c (Fend_kbd_macro): Callers fixed.
9010 1991-11-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9012 * keyboard.c (cmd_error): If an error occurs before somebody has
9013 provided a screen to print it on, print it to stderr and exit
9014 Emacs. Handle batch-mode errors with the same code.
9015 * lisp.h (Qexternal_debugging_ouput): New extern declaration, for
9018 * screen.c (Fscreen_pixel_size, Fset_screen_position): Doc fix.
9020 * window.c (Fwindow_at): Typecheck COORDINATES more thoroughly.
9022 * screen.c (read_mouse_position): Function deleted.
9023 (Fread_mouse_position): Renamed to Fmouse_position, and changed to
9024 use mouse_position_hook.
9025 (syms_of_screen): Adjusted accordingly.
9026 * xfns.c (x_read_mouse_position): Function deleted.
9028 * screen.h (SCREENP): The non-MULTI_SCREEN case used to say this
9029 was false for all objects, but it should be true for the terminal
9030 screen, so make its definition the same as in the MULTI_SCREEN
9033 * screen.h (SCREEN_LIVE_P): New predicate.
9034 (CHECK_LIVE_SCREEN): New type-checking macro.
9035 (Qlive_screen_p): New error-reporting symbol.
9036 * screen.c (Qlive_screen_p): Declare the new symbol.
9037 (Flive_screen_p): New lisp predicate.
9038 (syms_of_screen): Initialize, staticpro, and defsubr the lot.
9039 * dispnew.c (Fredraw_screen): Use CHECK_LIVE_SCREEN.
9040 * screen.c (Fscreen_root_window, Fscreen_selected_window)
9041 (Fnext_screen, Fset_mouse_position, Frestore_screen_configuration)
9042 (Fmake_screen_visible, Fmake_screen_invisible, Ficonify_screen)
9043 (Fdeiconify_screen, Fscreen_visible_p, Fredirect_screen_focus)
9044 (Fscreen_focus, Fmodify_screen_parameters, Fset_screen_height)
9045 (Fset_screen_width, Fset_screen_size, Fset_screen_position)
9046 (Fselect_screen): Use CHECK_LIVE_SCREEN.
9047 * window.c (Fwindow_at, Fcurrent_window_configuration): Use
9049 * xfns.c (Ffocus_screen, Fx_pixel_width, Fx_pixel_height): Use
9052 * screen.c (Fdelete_screen): Do nothing if SCREEN is already
9055 * screen.c (Qscreenp): Staticpro this symbol.
9057 * xfns.c (Fx_create_screen): Doc fix.
9059 * xfns.c (Fx_create_screen): Give the screen a minibuffer if the
9060 'minibuffer parameter is t or nil; nil is the default value for
9061 omitted parameters, and t is intuitive.
9063 1991-11-14 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9065 * eval.c (specbind): Check that the thing being bound is a symbol.
9066 (funcall_lambda): Signal an invalid-function error if the
9067 arguments are not all symbols.
9069 1991-11-08 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9071 * screen.c (Fselect_screen): Don't select dead screens.
9072 * print.c (print): Print dead screen objects starting with
9075 * keyboard.c (read_key_sequence): Make sure that the compound
9076 events actually have valid window fields.
9078 * window.c (next_screen_window): Function deleted; Fnext_window
9079 can now do its job properly.
9080 (window_from_coordinates, window_loop): Call Fnext_window instead
9081 of next_screen_window.
9083 * xdisp.c (redisplay): Don't clear out minibuffer windows in the
9084 midst of the screen loop here. That's confusing.
9085 (redisplay_window): Since this needs special code to detect
9086 minibuffers anyway, put it here. And clear all the lines of a
9087 multi-line minibuffer, not just the first one.
9089 1991-11-07 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9091 * screen.c (Fdelete_screen): When searching Vscreen_list for a new
9092 value for last_nonminibuf_screen, remember that the screens live
9093 in the cars of the list, not the cdrs.
9095 * xterm.c (x_make_screen_visible): Rearranged for clarity.
9097 * xdisp.c (echo_area_display): Rearranged for clarity.
9099 1991-11-06 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9101 * screen.c (next_screen, prev_screen): New meaning for MINI_SCREEN
9102 argument helps implement the behavior of Fnext_window.
9103 (Fnext_screen): Document the new behavior.
9105 * screen.c (make_minibuffer_screen): Do set has_minibuffer for
9106 minibuffer-only screens.
9107 (Fscreen_parameters): Correctly generate value of minibuffer
9108 parameter using SCREEN_HAS_MINIBUF and SCREEN_MINIBUF_ONLY_P.
9109 * screen.h (SCREEN_HAS_MINIBUF): New predicate.
9110 * dispnew.c (change_screen_size): Use it.
9111 * screen.c (Fdelete_screen): Use it.
9113 * screen.c (Vglobal_minibuffer_screen): Renamed
9114 Vdefault_minibuffer_screen to better describe its significance.
9115 (make_screen_without_minibuffer, syms_of_screen): Adjusted.
9116 * xfns.c (Fx_create_screen): Doc string adjusted.
9118 * xdisp.c (display_mode_line): Make the code which names the
9119 screen after the current buffer not depend on
9120 Vglobal_minibuffer_screen.
9121 * xterm.c (Vglobal_minibuffer_screen): Don't declare this extern
9122 here; it's never used.
9124 1991-11-05 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9126 * screen.c (Fdelete_screen): Document the fact that surrogate
9127 minibuffer screens may not be deleted.
9129 * screen.h (SCREEN_MINIBUF_ONLY_P): New predicate, true iff the
9130 screen's only window is a minibuffer, aka a "minibuffer screen" or
9131 a "minibuffer-only" screen.
9132 * dispnew.c (change_screen_size): Use it.
9133 * screen.c (Fselect_screen, next_screen, prev_screen)
9134 (Fdelete_screen): Use it.
9135 * window.c (Fdisplay_buffer): Use it.
9137 * screen.c (next_screen, prev_screen): Make MINIBUF a lisp
9138 boolean, not a C boolean.
9139 (Fnext_screen, Fdelete_screen): Changed to fit.
9140 * window.c (Fnext_window, Fprevious_window): Changed to fit.
9142 * screen.c (make_screen_without_minibuffer): Error string improvement.
9144 * screen.c (syms_of_screen): Doc grammar fix for Vemacs_iconified.
9146 * screen.c (next_screen): Added some sanity checks, rewrote comments.
9148 * screen.h (Vglobal_minibuffer_screen): Don't declare this. It
9149 shouldn't be used for anything but screen creation.
9150 * window.c (Fminibuffer_window): Vglobal_minibuffer_screen is not
9151 necessarily the screen containing the current minibuffer window.
9152 Also, call choose_minibuf_window; it does much of the work here.
9153 (Fnext_window): Used to insist on looping through all screens if
9154 Vglobal_minibuffer_screen was non-nil. Now includes screen's
9155 minibuffer window according to MINIBUF, no matter what screen it's
9156 on, and ignores Vglobal_minibuffer_screen. Loop termination logic
9157 cleaned up. Clarified doc string.
9158 (Fprev_window): Same problems as Fnext_window, above.
9159 * screen.c (Vglobal_minibuffer_screen): Documentation rewritten to
9160 emphasize that it is only a parameter of the creation of
9161 minibufferless screens, and not an indication of where the
9163 (prev_screen): Used to assume that Vglobal_minibuffer_screen was
9164 the only minibuffer-only screen, and would enter an infinite loop
9165 if Vglobal_minibuffer_screen was the only screen in the list.
9166 Rewritten to fix these problems.
9167 * minibuf.c (Vglobal_minibuffer_screen): Don't declare it extern
9168 here; it's not used.
9170 * editfns.c (Fmessage): Don't call Fmake_screen_visible here.
9171 * xdisp.c (message, message1): Call it here, so that Emacs C
9172 functions like Fy_or_n_p make the screen visible too.
9174 1991-11-04 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9176 * keyboard.c (readable_events): If EVENT_QUEUES_EMPTY, we can
9177 short-circuit and say no. Otherwise, if do_mouse_tracking, we can
9178 short-circuit and say yes. These things let us scan the event
9181 * termhooks.h (mouse_tracking_enable_hook): Replaced by...
9182 (mouse_moved, mouse_position_hook): It turns out that it is
9183 possible and no less efficient simply to tell Emacs if the mouse
9184 has moved since last noticed, and let it ask for the current mouse
9185 position; X's pointer motion hints are a cool thing.
9186 * term.c (mouse_tracking_enable_hook): Replaced by...
9187 (mouse_position_hook): New, simpler interface.
9188 * keyboard.c (struct movement, movement_buf, movement_ptr):
9190 (mouse_moved): This flag, to be used in conjuction with
9191 mouse_position_hook.
9192 (EVENT_QUEUES_EMPTY): Adjusted to use mouse_moved instead of
9193 movement_buf and movement_ptr.
9194 (tracking_off, Ftrack_mouse): Don't call mouse_tracking_enable
9196 (note_mouse_position): Moved to xterm.c.
9197 (get_mouse_position): Replaced by mouse_position_hook.
9198 (make_lispy_event): Movement event generation code moved out to a
9199 separate function...
9200 (make_lispy_movement): Create a mouse movement event for the
9201 current mouse position. Use mouse_position_hook instead of
9202 get_mouse_position. Added static declaration for this above...
9203 (kbd_buffer_get_event): Use mouse_moved instead of movement_buf
9204 and movement_ptr. Call make_lispy_movement instead of
9206 (init_keyboard): Initialize do_mouse_tracking. Don't init
9207 movement_ptr and movement_buf.
9208 * xterm.h (STANDARD_EVENT_SET): Add PointerMotionMask and
9209 PointerMotionHintMask to the set.
9210 * xterm.c (pixel_to_glyph_translation): Renamed to
9211 pixel_to_glyph_coords, made static, simplified to take advantage
9212 of constant-size characters, and extended to return the bounding
9213 rectangle of the glyph returned.
9214 (construct_mouse_click): The 'button' field of a button event is
9215 the button number, not a mask; convert it to a mask before
9216 frobbing x_mouse_grabbed. Call pixel_to_glyph_coords properly.
9217 (last_mouse_screen, last_mouse_glyph): New variables, to keep
9218 track of when the pointer has moved to a different glyph.
9219 (note_mouse_position): Moved here from keyboard.c and made static.
9220 Check if the new mouse position is over a new glyph. If it is,
9221 set mouse_moved flag; otherwise, call XQueryPointer to get the
9223 (XTmouse_tracking_enable): No longer needed, since pointer motion
9224 hints let us implement the simpler mouse position hook.
9225 (XTmouse_position): New hook. Call XQueryPointer to get the
9226 current mouse position and request notification about the next
9227 mouse movement. Clear the mouse_moved flag.
9228 (pixel_to_glyph_coords, construct_mouse_click,
9229 note_mouse_position, XTmouse_position): Put these all on the same
9231 (XTread_socket): Case MotionNotify, call note_mouse_position with
9232 the right args; don't call pixel_to_glyph_translation.
9233 (x_term_init): Set mouse_position_hook instead of
9234 mouse_tracking_enable_hook.
9236 1991-10-31 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9238 * xdisp.c (redisplay_window): When trying to avoid starting
9239 display at the end of the buffer: check that startp < ZV, not
9242 1991-10-29 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9244 * xterm.c (x_do_pending_expose, XTmouse_tracking_enable): Use
9245 SCREEN_IS_X instead of testing output_method directly.
9247 1991-10-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9249 * xdisp.c (redisplay): In the single-screen optimization, always
9250 update the minibuffer's screen as well as the selected screen, no
9251 matter what the echo_area_glyphs are. This makes sure that
9252 messages get cleared after a keystroke.
9254 1991-10-25 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9256 * callint.c (Finteractive): Doc fix.
9258 * xterm.c (XTmouse_tracking_enable): Block input while changing
9259 the screens' input selection masks.
9261 * window.c (change_window_height): If the window being resized is
9262 the only window of the screen, no size change is possible; make
9263 the delta be zero. Exit without "changing" the sizes of any
9264 windows if the delta is zero.
9266 * alloc.c: Don't bother to include xterm.h.
9267 (Fgarbage_collect): Don't bother to BLOCK_INPUT here,
9268 since we don't cons in the input handler.
9270 1991-10-21 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9272 * window.c (init_window_once): Set last_nonminibuf_screen to the
9273 initial terminal screen, so that poor Fdisplay_buffer doesn't try
9274 to create a new screen on a terminal.
9276 1991-10-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9278 * m-intel386.h (signal): Optionally don't define it.
9279 * s-isc2-2.h (DONT_DEFINE_SIGNAL): Define this.
9281 1991-10-18 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9283 * scroll.c (line_ins_del): Don't calculate costs off the end of mf
9284 and ov; use < in loop condition, not <=.
9286 * scroll.c (scroll_cost): Logic rearranged.
9288 * dispnew.c (change_screen_size): Change "SCREEN_IS_TERMCAP
9289 (screen) == output_termap" to "SCREEN_IS_TERMCAP (screen)"
9290 (window_change_signal): Use SCREEN_IS_TERMCAP predicate instead of
9291 testing output_method_directly.
9293 1991-10-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9295 * xterm.h (STANDARD_EVENT_SET): Include ButtonReleaseMask in
9297 * xterm.c (XTmouse_tracking_enable): Don't bother or'ing
9298 ButtonReleaseMask with the STANDARD_EVENT_SET.
9300 * dispnew.c (buffer_posn_from_coords): If the coordinates are off
9301 past the end of a line, return them as being *before* the newline,
9304 * keyboard.c (kbd_buffer_get_event): Set input_pending after
9305 reading the event, no matter what sort of event it is - i.e., move
9306 the assignment to input_pending outside of the event lispifying
9309 * keyboard.c (note_mouse_position): Don't record a "new" mouse
9310 position unless it really differs from the last one returned.
9312 * keyboard.c (kbd_buffer_read_char): Renamed to
9313 kbd_buffer_get_event, for consistency with kbd_buffer_store_event.
9315 * window.c (Fwindow_at): Modified to take the coordinates as a
9316 pair, not a two-element list, for ease of use and compatibility
9317 with events. Make SCREEN argument second and optional.
9318 (Fcoordinates_in_window_p): Modified to take and return the
9319 coordinates as above, and to distinguish the right border as well
9321 (window_from_coordinates): Modified to distinguish the right
9322 border as well as the mode line.
9323 * lisp.h (Qmode_line, Qvertical_split): Declare this extern, from
9325 * keyboard.c (make_lispy_event): Distinguish a window's right
9326 border from its text area.
9328 * window.c (coordinates_in_window): Make it static.
9330 * window.c (Flocate_window_from_coordinates): Renamed to
9332 (syms_of_window): Adjusted.
9333 * lisp.h: Adjusted to say so.
9335 * screen.c (Fcoordinates_in_window_p, window_from_coordinates,
9336 Flocate_window_from_coordinates): Functions moved to window.c.
9337 (syms_of_screen): Adjusted.
9338 * window.c (Fcoordinates_in_window_p, window_from_coordinates,
9339 Flocate_window_from_coordinates): Here they are.
9340 (syms_of_window): Adjusted.
9341 * lisp.h: Adjusted to say so.
9343 1991-10-14 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9345 * xterm.c (XTclear_end_of_line): This used to try to get the
9346 cursor out of the way by comparing the line being cleared with
9347 s->cursor_y, which is meaningless; it should have compared it with
9348 s->phys_cursor_y. Changed to just mark the cursor as cleared if
9349 it's in the area we're clearing.
9351 1991-10-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9353 * m-intel386.h: Fix typo in #endif.
9355 1991-10-12 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9357 * callint.c (Fcall_interactively): Added new interactive spec 'K',
9358 for mouse clicks. Added explanation to doc string. Removed 'e'
9359 spec, which didn't work with the new input model anyway.
9360 * keyboard.c (Fmouse_click_p): New function.
9361 (syms_of_keyboard): defsubr it.
9363 * keyboard.c (EVENT_QUEUES_EMPTY): Clarified comment.
9364 (tracking_off): Change "if (!readable_events)" to
9365 "if (!readable_events ())".
9366 (Ftrack_mouse): Doc fix.
9367 (kbd_buffer_read_char): Fix brainos in tossing of unwanted events.
9368 Don't use EVENT_QUEUES_EMPTY to set input_pending; call
9371 1991-10-11 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9373 * keyboard.c (Qmode_line): New quoted symbol.
9374 (syms_of_keyboard): Initialize and staticpro it.
9375 (make_lispy_event): Use it to indicate when a mouse position is in
9376 a window's mode line.
9378 * xterm.c (XTread_socket): Consider the window to be resized if
9379 either the character or pixel dimensions have changed; this will
9380 catch font size changes.
9382 1991-10-08 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9384 * process.c (wait_reading_process_input): Removed all the
9385 exceptional condition stuff. Emacs lacks any way to respond to
9386 such a state, and selecting for it without responding to it can make
9387 Emacs loop indefinitely.
9389 * xterm.c (XTread_socket, construct_mouse_click): Make sure that
9390 all enqueued events have their timestamp field set.
9391 * termhooks.h (struct input_event): Doc fix.
9392 * keyboard.c (last_event_timestamp): New variable.
9393 (get_mouse_position, kbd_buffer_store_event,
9394 kbd_buffer_read_char): Make sure to fill in Vlast_event_screen and
9395 last_event_timestamp.
9396 * xselect.c (mouse_timestamp): Don't use this anymore.
9397 (last_event_timestamp): Use this instead.
9398 (Fx_own_selection, Fx_own_clipboard, Fx_get_selection)
9399 (Fx_get_clipboard): Use last_event_timestamp instead of
9402 * xdisp.c (redisplay): Don't pass extra arguments to
9405 * keyboard.c (echo_truncate): Don't call echo here; this results
9406 in extraneous echoing of characters.
9407 (read_key_sequence): After calling echo_truncate, call echo_char
9408 to put the character we just read into the minibuffer, if
9411 * keyboard.c (read_key_sequence): Removed unused argument
9414 1991-10-01 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9416 * xfns.c (x_create_screen): Initialize phys_cursor_x to -1, to
9417 indicate that the screen has no displayed cursor.
9419 * xfns.c (x_create_screen): Let InternalBorderWidth default to 1.
9421 * xterm.c (x_display_bar_cursor): Declare this to be static void.
9423 * xterm.c (XTupdate_begin): Don't turn off the cursor. This makes
9424 ugly flickering. Instead, make it okay for XTins_del_lines to do
9426 * screen.h (struct screen): New field phys_cursor_glyph, keeping
9427 track of the glyph under the currently displayed cursor. Since
9428 current_glyphs is sometimes inaccurate when we want to undraw the
9429 cursor (as when XTins_del_lines is called from do_scrolling), we
9430 can't always get the GLYPH from there.
9431 * xterm.c (x_draw_single_glyph): Take the glyph to draw as an
9432 argument, instead of taking it from the screen matrix.
9433 (x_display_box_cursor): Set and use s->phys_cursor_glyph.
9435 * ymakefile: Note that scroll.o and xmenu.o depend on screen.h.
9437 1991-09-29 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9439 * keyboard.c (make_lispy_event): When building mouse movement
9440 event, use `m', not `event', dummy.
9442 1991-09-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9444 * screen.c (Fscreen_parameters): Return the proper value for the
9445 'minibuffer parameter for minibuffer-only screens.
9447 * xdisp.c (redisplay_window): When the start position is forced,
9448 constrain it to be within the visible region anyway.
9450 * xterm.c (XTwrite_glyphs): Instead of turning off the cursor
9451 before we write, just notice if we wrote over it.
9453 * xfns.c (x_decode_color): If a screen has two planes, then it is
9454 considered a color screen, and we should look up the color value.
9456 * ymakefile: Include xselect.o and xrdb.o in XOBJ even when
9457 HAVE_X_MENU is not defined.
9459 * fns.c (Fdelete): This used to be named Fdelq; Roland forgot to
9460 change the function name in his August 17 change.
9461 (syms_of_fns): defsubr Fdelete.
9463 1991-09-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9465 * alloca.c: Do nothing if alloca is defined as a macro.
9467 1991-09-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9469 * m-pfa50.h: New file.
9471 1991-09-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9473 * unexec.c: Add conditionals for COFF_ENCAPSULATE.
9475 1991-08-17 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9477 * fns.c (Fdelete): New fn. We have member now; we should have
9480 1991-08-16 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9482 * xfns.c (x_get_arg): Clean bad characters out of the screen name
9483 before using it as a resource key.
9485 * abbrev.c (Fexpand_abbrev): Don't let capitalization go past point.
9487 * sysdep.c (sys_suspend): Don't use & before array name.
9489 * sysdep.c [BROKEN_FIONREAD]: Undefine FASYNC.
9491 * m-tandem-s2.h (START_FILES, LIB_STANDARD): Added.
9493 * s/s-aix3-1.h: Define HAVE_TCATTR.
9495 * xfns.c (Fx_grab_cursor, Fx_ungrab_cursor): Functions removed.
9497 1991-08-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9499 * bytecode.c (Qbyte_code_meter): New.
9500 (Bend_of_line, Bset_marker, Bmatch_beginning, Bmatch_end, Bupcase)
9501 (Bdowncase, BRgoto, BRgotoifnil, BRgotoifnonnil)
9502 (BRgotoifnilelsepop, BRgotoifnonnilelsepop, BlistN, BconcatN): New
9504 (Fbyte_code): Implemented new codes listed above. Added code to
9505 count how many times a function is called.
9506 (syms_of_bytecode): Initialize and staticpro Qbyte_code_meter.
9508 * xfns.c (x_window): When setting the class hints, use the
9509 screen's name as the res_name.
9511 * xfns.c (x_make_screen_name): New function.
9512 (Fx_create_screen): Use x_get_arg to find screen name; if none has
9513 been specified, use x_make_screen_name; don't set the name again
9515 (x_get_arg): If SCREEN_NAME is nil, don't pass any class to
9518 * xfns.c (x_get_arg, x_default_parameter): Take an extra argument
9519 TYPE, instead of encoding the type in the first letter of the
9522 1991-08-15 Roland McGrath (roland@albert.gnu.ai.mit.edu)
9524 * buffer.c (Fkill_all_local_variables): Don't pass
9525 Fmake_local_variable too many args. Use Fset instead.
9527 1991-08-14 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9529 * xfns.c (emacs_class): Variable removed.
9530 (EMACS_CLASS): New macro, specifying Emacs class for xrdb use.
9531 Use a class of "Emacs", to be compatible with previous versions.
9532 (Fx_get_resource, x_window, Fx_open_connection): Use macro here.
9534 * buffer.c (Fgenerate_new_buffer): Function moved to
9536 (Fgenerate_new_buffer_name): New function which does only the
9537 name-choosing work Fgenerate_new_buffer used to do.
9538 (Frename_buffer): Added second optional argument DISTINGUISH,
9539 which lets rename_buffer use generate-new-buffer-name if non-nil.
9540 Return the name the buffer was given.
9541 Do nothing if new name is already buffer's name.
9543 * xfns.c (Fx_get_resource): Take third argument CLASS, and require
9544 it to be specified whenever NAME is.
9545 All callers changed.
9546 [not HAVE_X11] (Fx_get_default): Only take the one arg.
9547 [not HAVE_X11] (Fx_get_resource): Toss the second two args.
9549 1991-08-13 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9551 * xfns.c (Fx_close_current_connection): Add \n to error message.
9553 * keyboard.c (make_lispy_event): Added HP keys into the
9554 function_key_names array.
9555 * xterm.c (XTread_socket): For KeyPressed events, strip the
9556 keysym's vendor-specific bit, and take a shot at fitting it into
9557 the Emacs key numbering.
9559 * screen.c (Vdefault_screen_alist): Definition moved from
9561 (syms_of_screen): DEFVAR_LISP and initialize it here.
9562 * screen.h: Declare it here.
9563 * xfns.c (x_get_arg): Use it here.
9565 * screen.c (make_screen): When choosing a buffer for the screen's
9566 root window, shy away from buffers whose names start with a space.
9568 1991-08-11 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9570 * process.c (exec_sentinel, exec_sentinel_unwind): Move these
9571 above status_notify.
9573 * eval.c (Qinhibit_quit): New variable, to support Aug 5 changes
9575 (syms_of_eval): Initialize and staticpro above.
9576 * lisp.h: Added extern declaration for above.
9578 1991-08-10 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9580 * regex.c (re_search_2): When searching with the fastmap, test for
9581 a translate table outside of the loop, not inside the loop.
9583 1991-08-10 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9585 * fns.c (Fequal): Don't crash on circular structure.
9586 (internal_equal): New subroutine does the recursion.
9588 * print.c (print): Recognize circular car pointers.
9590 1991-08-10 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9592 * process.c (wait_reading_process_input): Ignore exceptional
9593 conditions on the keyboard input.
9595 1991-08-06 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
9597 * lisp.h: Fiddled with formatting.
9599 * process.c (exec_sentinel_unwind): New function.
9600 (exec_sentinel): Restore the process's sentinel, using an
9603 1991-08-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9605 * keyboard.c: Doc fix.
9607 1991-08-05 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9609 * dired.h: Don't include search.h; it doesn't exist.
9611 * process.c (read_process_output, exec_sentinel): Bind
9612 Qinhibit_quit to true and call the filter directly instead of
9613 through a condition-case.
9614 (run_filter): Removed.
9615 (this_filter, filter_process, filter_string): Variables now
9618 * xfns.c (Fx_get_resource): Take the screen name as an optional
9619 argument and look up resources using the name of the screen as
9621 [not HAVE_X11] (Fx_get_default): Take optional 2nd arg NAME and
9623 (x_get_arg): Take the screen name as an arg, and call
9624 Fx_get_resource with that argument.
9625 (x_default_parameter, x_figure_window_size, x_icon): Pass the
9626 screen's name to x_get_arg.
9627 (Fx_create_screen): Make sure the screen name is either nil or a
9628 string, and pass it to x_get_arg.
9630 * xfns.c (Vx_screen_defaults): Variable removed; such settings
9631 belong in the .Xdefaults file.
9632 (syms_of_xfns): Don't defvar it here.
9633 (Fx_create_screen): Don't use it here.
9635 * keyboard.c (classify_object): #if 0'd function finally removed.
9636 * xterm.c (Qmapped_screen, Qunmapped_screen, Qexited_scrollbar)
9637 (Qexited_window, Qredraw_screen): Unused, so removed.
9638 (syms_of_xterm): Don't bother to initialize above.
9640 * xterm.c (init_input_symbols): Renamed to syms_of_xterm, for
9642 (x_term_init): Don't call it here.
9643 * xfns.c (syms_of_xfns): Don't call syms_of_xselect here.
9644 * emacs.c (main): Call them here.
9646 * xterm.c (invocation_name): Made this a Lisp_Object, so that its
9647 string value could be relocated properly.
9648 (x_term_init, x_text_icon): Adjusted code appropriately.
9649 (syms_of_xterm): staticpro invocation_name.
9650 * xfns.c (invocation_name): Changed extern declaration, deleted
9652 (Fx_get_resource): Adjusted code appropriately.
9654 1991-08-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9656 * lread.c (read1): Accept #[...] for bytecode object.
9657 * print.c (print): Print them that way.
9659 1991-08-01 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9661 * fileio.c (Fexpand_file_name): Avoid doing strlen (0).
9663 * editfns.c, filelock.c [VMS]: Use pwd.h from Emacs, not from system.
9664 * fileio.c [VMS]: Likewise. Also include stddef.h, string.h.
9665 Include perror.h only once.
9666 [VMS] (file_name_as_directory, directory_file_name): Remove
9667 assignments from if conditions.
9668 (Fexpand_file_name): Remove excess slash from end of user's home dir.
9670 1991-08-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9672 * emacs.c (main): Add SIGIO conditional within AIX conditional.
9674 * xdisp.c (try_window_id): Compute proper position for screen bottom
9675 when all changes are below the screen.
9676 When first computing bp, don't go more than HEIGHT + 1 lines.
9678 1991-07-31 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9680 * xterm.c (x_destroy_window): If we're destroying the currently
9681 highlighted screen, clear x_highlight_screen.
9683 * xdisp.c (display_text_line, display_string):
9684 Don't go past endp for multi-column chars.
9686 1991-07-28 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9688 * lread.c (init_lread): If Vload_path was set specially before
9689 dumping, preserve it by default.
9691 * process.c (process_send_signal): Notice and deal if the
9692 TIOCGPGRP ioctl says that the subprocess has no pgrp.
9694 * xdisp.c (try_window_id): Always update window_end_* if successful.
9696 * process.h (subtty): New slot.
9697 * process.c (create_process): Set it.
9698 (process_send_signal): Use it.
9700 * alloc.c (Fmake_rope): Doc fix.
9701 * screen.c (Fselect_screen): Doc fix.
9702 * vms-pp.c: Fix comment.
9704 * keymap.c (Fkeymapp, Fdefine_prefix_command): Doc fixes.
9706 * window.c (window_select_count): No longer static.
9707 (init_window_once): Increment window_select_count, to give each
9708 window a unique use_time.
9709 * window.h (window_select_count): extern this here.
9710 * screen.c (make_screen): Stamp a new screen's selected window
9711 with the proper selection time.
9713 * ymakefile: xselect.o depends on screen.h, xterm.h, and config.h.
9714 xrdb.o depends on config.h.
9715 xterm.o depends on gnu.h.
9716 * xfns.h: File removed - it only declared Vx_send_movement_events.
9717 All includers changed.
9719 1991-07-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9721 * keymap.c (Fcopy_keymap): Don't recursively copy maps inside symbols.
9723 1991-07-27 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9725 * xdisp.c (redisplay): If echo_area_display puts text in a
9726 surrogate minibuffer screen, don't neglect to update it.
9728 * keyboard.c (kbd_buffer_store_event): Make sure
9729 Vlast_event_screen is set properly for quit characters.
9731 1991-07-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9733 * keyboard.c (command_loop_1): Pass both arguments to
9736 * screen.c (make_screen): Divide the size by sizeof (Lisp_Object)
9737 before passing it to Fmake_vector.
9739 * screen.h [not MULTI_SCREEN] (SCREEN_SCROLL_BOTTOM_VPOS): Fixed
9742 * screen.c: #include termhooks.h and therefore stdio.h.
9743 (make_screen): Initialize focus_screen member.
9744 (Fdelete_screen): Refuse to delete SCREEN if it is a
9745 surrogate minibuffer for some other screen, not just if it's the
9746 global minibuffer screen.
9747 (Fredirect_screen_focus, Fscreen_focus): New function.
9748 (syms_of_screen): defsubr Sredirect_screen_focus.
9749 * window.c: Don't include termhooks.h or stdio.h.
9750 (Fselect_window): Removed grunge to support minibuffer hack.
9751 * screen.h (struct screen): Added focus_screen member, and
9753 * alloc.c (mark_object): Mark focus_screen member of Lisp_Screens.
9754 * xterm.c (XTscreen_rehighlight): Use the focus_screen member to
9755 decide which screen to highlight.
9756 (XTread_socket): Use focus_screen when enqueuing keystrokes.
9757 * minibuf.c (read_minibuf, read_minibuf_unwind): Shift the
9758 selected screen's focus around appropriately.
9759 * termhooks.h (screen_rehighlight_hook): Doc fix.
9761 * lisp.h (CHECK_IMPURE): Moved definition...
9762 * puresize.h (CHECK_IMPURE): To here.
9764 1991-07-25 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9766 * dispnew.c (buffer_posn_from_coords): Bufp is broken; don't use it.
9768 * xterm.c (XTscreen_rehighlight): Neatened sloppy logic.
9770 * keyboard.c (read_key_sequence): When truncating a key sequence,
9771 don't forget to put the new keystroke back in this_command_keys.
9772 Do this before calling echo_truncate, and don't call echo_char.
9774 1991-07-24 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9776 * xterm.c (x_term_init): Initialize x_focus_screen and
9779 * xterm.c (XTscreen_rehighlight): Handle things correctly when
9780 x_focus_screen is 0.
9781 (XTread_socket): Process EnterNotify and LeaveNotify events with
9782 .focus == 0 properly. For FocusOut events, pass the right
9783 arguments to x_new_focus_screen.
9785 * fileio.c (Finsert_file_contents): Use RETURN_UNGCPRO macro.
9787 * buffer.c (Fbuffer_name): Fix typo in doc string.
9788 (syms_of_buffer): Fix typo in before_change_function name.
9790 1991-07-23 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9792 * screen.h (CHECK_SCREEN): Define a dummy version of this when
9793 MULTI_SCREEN is not defined.
9795 * sysdep.c (init_signals, sys_signal, sys_sigpause): New functions.
9796 (sys_sigblock, sys_sigunblock, sys_sigsetmask): New functions.
9798 * sysdep.c (_sobuf): Unsigned chars if DGUX.
9800 * sysdep.c [DGUX]: Include file.h.
9801 [DGUX] (sys_siglist): New variable.
9803 * x11term.c (x_init_1) [SYSV_STREAMS]: Don't close the old
9806 * keyboard.c (read_key_sequence): Treat function keys like ascii
9809 * lread.c (init_lread, syms_of_lread): New names for init_read and
9810 syms_of_read, for consistency.
9812 * emacssignal.h: New file.
9813 * data.c, keyboard.c, process.c, sysdep.c: Include it.
9814 * data.c (arith_error): Use SIGEMPTYMASK.
9815 * keyboard.c (sigfree, sigunblockx): Use SIGEMPTYMASK.
9816 (sigholdx, sigblockx): Use sigmask.
9817 (gobble_input): Use sigblockx instead of sigholdx, so that any
9818 other blocked signals stay blocked during and after the call to
9820 * process.c (create_process): Use sigmask.
9821 [FASYNC] (request_sigio): Use sigunblock.
9822 * xterm.c (sigmask): Removed #definition here.
9823 * ymakefile (keyboard.o, process.o, sysdep.o, data.o): Make these
9824 depend on emacssignal.h.
9826 * window.c (Fselect_window): Modify surrogate minibuffer hack to
9827 make the minibuffer the selected window of the selected screen,
9828 AND select the minibuffer window's screen.
9829 * minibuf.c (read_minibuf): If the minibuffer window is on a
9830 different screen, save that screen's configuration too.
9832 * window.c (Fset_window_configuration): Use SCREEN_ accessor to
9833 get at a screen's root window. Removed unused variable
9835 (Fcurrent_window_configuration): Take an optional argument SCREEN.
9836 All callers changed.
9838 * window.c (auto_new_screen, Vauto_new_screen_function): Renamed
9839 to pop_up_screens and pop_up_screen_function, to be parallel with
9841 (display_buffer, syms_of_window): Changed appropriately.
9843 * fns.c (Fload_average) [DGUX]: Add code to support DGUX.
9845 * s-dgux.h, m-aviion.h: New files.
9847 * emacs.c (main) [POSIX_SIGNALS]: Call init_signals.
9849 * screen.c (Fdelete_screen): Update last_nonminibuf_screen if
9850 the screen it's currently pointing to gets deleted.
9852 1991-07-22 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9854 * screen.c (last_nonminibuf_screen): New variable.
9855 (Fselect_screen): Set last_nonminibuf_screen if appropriate.
9857 1991-07-21 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9859 * screen.h (last_nonminibuf_screen): Added declarations for new
9861 * minibuf.c (active_screen): Variable removed.
9862 (read_minibuf): Removed code to set and clear active_screen.
9863 * window.c (Fdisplay_buffer): Rewritten to use
9864 last_nonminibuf_screen.
9866 * screen.c (next_screen): Use SCREEN_ accessors instead of ->.
9868 * window.c (Fdisplay_buffer): Removed reference to
9869 Fx_create_screen; we should rely on the auto-new-screen-function
9870 being set to something appropriate.
9872 1991-07-21 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
9874 * keyboard.c (read_key_sequence): Restore the state of
9875 this_command_key_count along with the echoing state.
9877 1991-07-20 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
9879 * xfns.c (Fx_synchronize): New function.
9880 (syms_of_xfns): defsubr it.
9882 * xdisp.c (redisplay): Don't turn on all_windows whenever we're
9883 using a separate minibuffer screen. Even if there is some tweak
9884 necessary, this wasn't it.
9886 * process.c (status_notify): Do not forget to UNGCPRO.
9888 * screen.c (next_screen): Re-work logic to skip minibuffer-only
9889 screens so that it doesn't loop indefinitely, even when the only
9890 screen is a minibuffer-only screen. Skip all screens that are
9891 only minibuffers, not just when they are the global minibuffer
9894 * xdisp.c (message, message1): If the screen's message buffer
9895 is 0, toss the message; don't check the window system against
9896 the screen output_method.
9898 1991-07-19 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9900 * keyboard.c (read_key_sequence): When we truncate the echo
9901 buffer because the user has switched screens, re-echo the
9902 character that caused the truncation.
9904 * lread.c (Fload): Change "source newer than ..." message not to
9905 refer to "libraries." What is a "library," anyway?
9907 * window.c: #include "termhooks.h", and therefore <stdio.h> too.
9908 [MULTI_SCREEN] (Fselect_window): If the window being selected is
9909 the selected screen's minibuffer, but it lives on another screen,
9910 don't select that other screen - call the screen_rehighlight_hook
9912 * termhooks.h (screen_rehighlight_hook): New hook, so that Emacs
9913 can shift the screen highlighting when needed.
9914 * term.c (screen_rehighlight_hook): Define it.
9915 * xterm.c (x_highlight_screen): New variable.
9916 (x_new_focus_screen): Move the rehighlighting code to...
9917 (XTscreen_rehighlight): New function.
9918 (x_display_bar_cursor, x_display_box_cursor): Use
9919 x_highlighted_screen instead of x_focus_screen.
9920 (x_term_init): Initialize screen_rehighlight_hook.
9921 * ymakefile: Make window.o depend on termhooks.h.
9923 * xfns.c (Fx_create_screen): Add mention of
9924 global-minibuffer-screen to docstring.
9925 * screen.c (make_screen_without_minibuffer): Improve error message
9926 displayed when Vglobal_minibuffer_screen is not a proper screen.
9928 1991-07-18 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9930 * config.h (PURESIZE): Definition moved to...
9931 * puresize.h: New file.
9932 (PURESIZE): Define this here. This will allow people to change
9933 their pure storage allocation without having to recompile most of
9935 * data.c: #include puresize.h, since CHECK_IMPURE needs PURESIZE.
9936 * alloc.c: #include puresize.h.
9937 [HAVE_SHM] (pure_size): New variable, so that XPNTR doesn't depend
9939 [HAVE_SHM] (init_alloc_once): Initialize pure_size here.
9940 * lisp.h [HAVE_SHM] (XPNTR): Defined in terms of pure_size,
9941 instead of PURESIZE.
9942 (pure_size): Extern declaration added here.
9943 * ymakefile: Added puresize.h to dependencies for alloc.c and
9946 * emacs.c (main): Doc fix for kludge to scan for -d.
9948 1991-07-17 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9950 * termhooks.h (struct input_event): #if 0'd out the definition for
9951 the screen_selected event type, and added the stipulation that the
9952 {non_,}ascii_keystroke events specify the screen they happen in.
9953 * xterm.c (x_new_focus_screen): Don't enqueue a screen_selected
9955 (XTread_socket): Calls to x_new_focus_screen in the EnterNotify,
9956 FocusIn, LeaveNotify, and FocusOut event code don't worry about
9957 enqueued events any more.
9958 * keyboard.c (new_selected_screen): Removed - see below.
9959 (Vlast_event_screen): New variable, visible to lisp code.
9960 (echo_length, echo_truncate): New functions.
9961 (readable_events): Removed screen_selected events from the set of
9963 (kbd_buffer_store_event): Don't bother collapsing consecutive
9964 screen_selected events.
9965 (kbd_buffer_read_char): Don't process screen_selected events.
9966 (make_lispy_event): Re-arrange scrollbar events to put the window
9967 whose scrollbar was diddled right after the identifying symbol,
9969 (read_key_sequence): Let the selected screen and the location of
9970 the event affect the keymap used to find its binding.
9971 (Fread_key_sequence): Update docstring.
9972 (syms_of_keyboard): Added DEFVAR_LISP for Vlast_event_screen.
9974 1991-07-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9976 * screen.c (next_screen): If !mini_screen, only exclude the global
9977 minibuffer screen when the minibuffer is its only window.
9978 (Fnext_screen): Make the docstring clearer about what MINISCREEN
9981 * window.c (Fother_window): Indicate that it takes both a required
9982 and optional argument, instead of just one required.
9984 1991-07-15 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9986 * buffer.c (Fkill_buffer): Rehacked kill-buffer-hooks to use
9987 standard name kill-buffer-hook, and to use set_buffer_internal
9988 instead of Fset_buffer. Use static variable containing symbol
9990 (syms_of_buffer, init_buffer_once): Qkill_buffer_hook =
9993 1991-07-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9995 * keymap.c (Fsingle_key_description): When describing a listy
9996 object, take the car to find the symbol that heads it, not the cdr.
9998 * dispnew.c (buffer_posn_from_coords): Pass col and line to
9999 compute_motion in the correct order.
10001 * keyboard.c (make_lispy_event): When calculating rows and columns
10002 for mouse clicks and movement events, don't forget to subtract the
10003 position of the window's top left corner before passing them to
10004 buffer_posn_from_coords.
10006 * screen.c (coordinates_in_window): Removed useless test for *y ==
10007 screen_height, and screen_height variable; this would be out of
10008 range of all the windows anyway.
10010 * xdisp.c (message1): Removed code to ignore messages before X has
10011 started up; this issue has hopefully been addressed by the
10012 condition-case in startup.el.
10014 * editfns.c (init_editfns): Make user_name char * instead of
10015 unsigned char *, since that's what most of the usages seem to
10016 want. And when expanding ampersands in AMPERSAND_FULL_NAME mode,
10017 don't try to use user_name as a string; use Vuser_name.
10019 * minibuf.c (assoc_for_completion): New function.
10020 (do_completion): Use that to check for exact match.
10022 * minibuf.c (Ftry_completion): Fix handling of matches aside from
10023 case. If ignoring case, and all else equal, try to preserve the
10024 case of the characters in the input.
10026 * process.c (status_notify): GCPRO tail.
10028 * sysdep.c (creat_copy_attrs, rename_sans_version): Always set
10029 protection to O:REWD when creating file. Added new function
10030 rename_sans_version, which strips the version number from the target
10031 filename, renames the temporary file to this filename, and then
10032 sets the file protection of this new file to be the same as the file
10035 * sysdep.c [VMS]: Include pwd.h from Emacs. Use sys/file.h if GCC.
10036 (F_SETFL) [VMS]: Undefine this, to control conditionals.
10037 (getpwnam): Make `full' unsigned.
10038 (creat_copy_attrs): Add some casts.
10039 (sys_access): Change prvmask and CHECKPRIV to use bitfields.
10040 Add some casts, and make dummy an unsigned short int.
10041 Don't use & on constants.
10042 (vmserrstr): Add a cast.
10043 (sys_creat): Define va_count before this function.
10045 1991-07-14 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10047 * sysdep.c (sys_sleep, input_wait_timeout): Don't use & on constant.
10048 [VMS]: Include pwd.h from Emacs. Use sys/file.h if GCC.
10049 (bzero, bcopy) [VMS]: Don't take address of `length'.
10051 * sysdep.c (sys_suspend): Cast value of `signal' to insulate from
10052 changed value type in sysV.3.
10054 * sysdep.c (child_setup_tty): Turn off erase & kill chars for BSD.
10056 * sysdep.c (discard_tty_input): Use TIOCFLUSH on Apollo.
10057 (init_sys_modes): Avoid TIOCSTART on Apollo.
10059 * sysdep.c: If HAVE_TERMIOS is not defined, define tcgetattr in
10060 terms of the TIOCGETP ioctl.
10061 (init_sys_modes): Handle VSUSP, V_DSUSP if HAVE_TCATTR.
10062 (discard_tty_input, init_baud_rate, child_setup_tty)
10063 (init_sys_modes, tabs_safe_p, reset_sys_modes):
10064 Use tcgetattr, and if HAVE_TCATTR, use tcsetattr.
10066 1991-07-13 Jim Blandy (jimb@churchy.gnu.ai.mit.edu)
10068 * s-hpux8.h: New file.
10069 * fileio.c [HPUX8]: Don't include errnet.h.
10071 * unexhp9k800.c (unexec): Local variable i to avoid compiler bug?
10073 * sysdep.c (insque) [WRONG_NAME_INSQUE]: New function.
10074 * s-386ix.h (WRONG_NAME_INSQUE): Define it.
10076 * xdisp.c (message_buf_print): New variable.
10077 (message): Clear it here.
10078 * dispextern.h: Declare it here.
10079 * print.c (printchar, strout): Set it and test it here.
10081 * keyboard.c (command_loop_1): Don't clear last_command when start
10084 * keyboard.c (read_command_char): Exit at eof if noninteractive.
10086 * indent.c (invalidate_current_column): New function.
10087 * editfns.c (Fwiden, Fnarrow_to_region): Call it.
10089 * process.c (create_process): Use O_NOCTTY whenever defined,
10092 * process.c (Fprocess_send_eof): If using a pipe, close it.
10093 (close_process_descs): Check IN and OUT for nonzeroness.
10095 * process.c (process_send_signal): Use interrupt chars
10096 to send certain signals to the process group.
10097 (TIOCGETC): Undefine this if it is not really usable.
10099 * sysdep.c (discard_tty_input): Do nothing if read_socket_hook.
10101 * xfns.c (x_set_mouse_color): Change the default pointer shapes to
10102 be closer to xterm and emacs 18.
10104 * xterm.c (x_focus_on_screen, x_unfocus_screen): These no longer
10105 call XSetInputFocus, because I think that the X-windows ICCCM
10106 says that only the window manager can do this sort of thing.
10108 * keyboard.c (read_char): When there is an unread command
10109 character, goto reread_first when this_command_key_count is zero,
10110 not when it is >= 0.
10111 (command_loop_1): Reset this_command_key_count only if there is no
10112 prefix argument. This makes echoing of keystrokes work correctly.
10114 1991-07-11 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10116 * eval.c (Finteractive_p): Changed "! XTYPE (foo) == Lisp_Bar" to
10117 "XTYPE (foo) != bar".
10119 1991-07-11 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10121 * eval.c (apply1): Don't forget to UNGCPRO before returning.
10123 * xterm.c (XTupdate_begin): Undisplay the cursor here; do_scrolling
10124 will call XTins_del_lines when the screen matrix is inaccurate, so
10125 we cannot undisplay the cursor then, but do_scrolling is always
10126 called within an update.
10128 1991-07-10 David J. MacKenzie (djm@nutrimat)
10130 * termcap.c, tparam.c [!emacs, USG || STDC_HEADERS]: Define bcopy
10131 in terms of memcpy.
10133 1991-07-09 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10135 * scroll.c (do_scrolling): Use correct termination condition for
10136 loop that uses the glyph pointers for the deleted lines to fill in
10137 the inserted lines.
10139 1991-07-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10141 * editfns.c: Doc fix.
10143 1991-07-03 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10145 * dispnew.c (line_hash_code): Test m->highlight[vpos], not
10146 m->highlight. All lines were getting hash codes of -1, because
10147 the highlight vector was never NULL. Golly.
10149 * process.c (list_processes_1): Handle status of network streams.
10151 1991-07-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10153 * doc.c (Fdocumentation_property):
10154 Pass only strings to Fsubstitute_command_keys.
10156 1991-07-02 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10158 * editfns.c (init_editfns): If neither of the environment
10159 variables are set, DON'T set Vuser_name to Vuser_real_name; it's
10160 supposed to reflect the EFFECTIVE uid.
10161 Get the full name according to Vuser_name if it differs from
10162 Vuser_real_name, not if they are equal.
10163 And pass Vuser_name to getpwnam in that case instead of user_name,
10166 * lisp.h (RETURN_UNGCPRO): New macro.
10168 * bytecode.c (Fbyte_code): Do not remove GC protection from the
10169 stack when making a function call, because the caller is
10170 responsible for protecting the arguments to a MANY-arg'ed
10172 * eval.c (Fapply): If we use funcall_args, GCPRO it.
10173 And when we call Ffuncall with funcall_args, tell it the correct
10174 length of funcall_args, no matter which branch allocated it.
10175 (Ffuncall): Don't gcpro the arguments before calling
10177 (Feval): If we're calling a subr that takes MANY args, don't
10178 UNGCPRO until after we call the subr.
10179 (apply1, call0, call1, call2, call3): GCPRO the arg arrays passed
10180 to Ffuncall and Fapply.
10181 * callproc.c (Fcall_process, Fcall_process_region): Don't GCPRO
10182 the argument array.
10183 * editfns.c (Finsert, Finsert_before_markers): Don't GCPRO the
10184 argument array. Added comment about when GCPROing is not needed.
10185 * mocklisp.c (Finsert_string): Don't GCPRO the argument array.
10187 * keyboard.c (init_keyboard): Handle SIGQUIT with interrupt_signal
10188 on any system that has HAVE_TERMIO, not just on USG systems.
10190 1991-07-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10192 * editfns.c (init_editfns): Test that user_name isn't 0.
10194 1991-06-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10196 * search.c: Doc fixes.
10198 1991-06-28 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10200 * keyboard.c (make_lispy_event): Let the posns of mouse clicks and
10201 mouse movements be nil when window_from_coordinates returns a
10202 NON-window, not when it returns a window. Since posn is a lisp
10203 object, don't call make_number when consing up the event.
10204 Don't call make_number on the code member of the event.
10206 * keyboard.c (struct movement): Make the x, y, and time members
10207 Lisp_Objects, since it's easier to convert from a Lisp_Object than
10209 (note_mouse_position): Adjusted for the above.
10210 (make_lispy_event): Removed code to make Lisp_Objects for those
10213 * xterm.c (XTread_socket): When handling LeaveNotify events,
10214 remember that the focus member of the event is true when the
10215 receiving window now has the focus, not when it is losing it.
10216 * xfns.c (Ffocus_screen): Don't signal an error if SCREEN is
10217 already the focus screen.
10219 1991-06-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10221 * alloc.c (Fmake_rope): Use sizeof (GLYPH) instead of 2 to
10222 determine how large the string should be, and changed doc string
10223 to describe ropes as strings of glyphs, not just as strings of
10225 (Frope_elt): Use sizeof (GLYPH) as the element size, instead of
10226 assuming that the elements are two bytes.
10227 * lisp.h (typedef GLYPH): Moved the definition from here...
10228 * config.h (typedef GLYPH): to here, so people can elect to get
10229 better performance if they don't want to use huge fonts.
10230 * xterm.c (dumpglyphs): Use XDrawImageString or
10231 XDrawImageString16, Depending on sizeof (GLYPH).
10233 * data.c (Fsetq_default): Call Fset_default to do the assignments,
10236 The following changes were contributed by Jamie Zawinski
10239 * bytecode.c (Fbyte_code): BYTE_CODE_SAFE and BYTE_CODE_METER
10241 Added Bmark, Bscan_buffer, Bset_mark to support error-checking for
10242 these obsolete bytecodes.
10243 Added Bunbind_all to support tail-call optimization (not yet
10245 Did NOT add the relative branch opcodes that were in the version
10246 of bytecode.c that Jamie sent.
10247 The branching bytecodes now only QUIT if they take the branch.
10248 Btemp_output_buffer_show, Bforward_char, Bforward_word,
10249 Bskip_chars_forward, Bskip_chars_backward, and Bforward_line
10250 passed the wrong number of arguments to their subrs.
10251 Brem, Bbuffer_substring, Bdelete_region, Bnarrow_to_region,
10252 Bstringeqlsign, Bstringlss, Bequal, Bnthcdr, Bmember, Bassq,
10253 Bsetcar, and Bsetcdr passed arguments to the subr in the wrong
10256 1991-06-25 Jim Blandy (jimb@churchy.gnu.ai.mit.edu)
10258 * doc.c (Fdocumentation): Added a QUIT test to the loop that finds
10259 the symbol's function value.
10261 1991-06-24 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10263 * xterm.c (dumprectangle): Removed call to XFlushQueue here.
10265 * keyboard.c (command_loop_1): Call Fselect_screen to establish
10266 the new selected screen after the key sequence has been read, not
10267 at the top of the loop. This way, a key sequence will happen in
10268 the screen it was typed at, or (to be more precise) the screen its
10269 last character was typed at.
10271 * keyboard.c (fast_read_one_key): Function deleted, since it had
10272 been #if 0'd out a long time ago.
10273 (command_loop_1): Support for fast_read_one_key removed.
10275 * eval.c (Ffuncall): Do GCPRO the arguments, contrary to the May
10276 16 change. The convention appears to be that the MANY-arged
10277 callee must protect its own arguments.
10278 (Fapply): Don't protect funcall_args; they are the caller's
10280 * bytecode.c (Fbyte_code): GCPRO the section of the stack *above*
10281 the args to Ffuncall, since it will be protected again once
10282 Ffuncall returns and therefore should stay valid. If it is not
10283 protected, string relocation may make it invalid.
10284 * mocklisp.c (Finsert_string): GCPRO the arguments, since insert
10285 may cause a garbage collection.
10286 * editfns.c (Finsert, Finsert_before_markers): GCPRO the
10287 arguments, since insert may cause a garbage collection.
10288 * callproc.c (Fcall_process, Fcall_process_region): GCPRO the
10289 arguments, since insert may cause a garbage collection.
10291 1991-06-20 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
10293 * buffer.h (struct buffer_text, struct buffer): Small change to
10296 * search.c (Fmatch_beginning, Fmatch_end): Fixed doc strings to
10297 indicate that non-regexp searches set these too.
10299 * window.c (Fset_window_start): If window is not the selected
10300 window, set windows_or_buffers_changed, so that redisplay will
10301 know that it should redisplay the window.
10303 * callint.c (Finteractive): Changed doc string to indicate that
10304 the interactive prompts are passed through format.
10306 1991-06-20 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10308 * buffer.c (syms_of_buffer): buffer-undo-list doc fix.
10310 1991-06-11 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10312 * data.c (Fsetq_default): Take multiple SYM, VAL args; syntax now
10315 1991-05-25 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
10317 * keyboard.c (kbd_buffer_read_char): Fix wait-for-input loop so
10318 that we always process/toss events we don't want to return.
10320 * screen.c (Fselect_screen): Call Ffocus_screen instead of
10321 x_new_selected_screen, which doesn't exist anymore.
10323 * xfns.c (Ffocus_screen): Declare the type of the SCREEN argument.
10325 * xfns.c (Fx_track_pointer): Function #if 0'd out - I don't think
10326 that this is a feature that we want.
10327 (syms_of_xfns): Elide the defsubr for the above.
10329 * xterm.c (x_mouse_screen, x_input_screen): Variable deleted,
10330 since all we really need is x_focus_screen; all other issues are
10331 the realm and responsibility of the window manager.
10332 (x_new_selected_screen): Renamed to x_new_focus_screen, and
10333 modified not to do thiogs inappropriate for signal handlers.
10334 (XTread_socket): Change the handling of EnterNotify, LeaveNotify,
10335 FocusOut and FocusIn events to use x_new_selected_screen, and
10336 ditched code that deals with x_mouse_screen and x_input_screen,
10337 since they don't exist anymore.
10338 (x_display_bar_cursor, x_display_box_cursor): Compare s with
10339 x_focus_screen to see what form the cursor should take.
10340 (x_destroy_window): Don't bother with x_input_screen.
10341 * xfns.c (x_mouse_screen): Removed extern declaration for this.
10342 (Fx_grab_pointer): Confine the pointer to x_focus_screen, not
10343 x_mouse_screen. This is wrong, but will make emacs compile until
10346 1991-05-23 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10348 * keyboard.c (get_input_pending): Don't use trim_events; use
10349 readable_events instead.
10351 * keyboard.c (make_lispy_event): Remove case for window_sys_event,
10352 since that type of event doesn't exist anymore.
10354 * minibuf.c (Fcompleting_read): Document the backup-n argument.
10356 * dispnew.c (init_display): Don't declare alternate_display extern
10357 here. I can't figure out what this feature is, and it's broken.
10358 * emacs.c (main): Don't test alternate_display and put its value
10359 in the environment.
10361 1991-05-22 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10363 * keyboard.c (struct movement): Made .used an int instead of a
10364 char, since that's more likely to be stored atomically on SPARCS
10365 and similar machines.
10367 * termhooks.h (struct input_event): Removed the window_sys_event,
10368 since it's not used anywhere. Added screen_selected event type.
10369 The event handling code used to change the current buffer,
10370 selected window, and selected screen out from under running lisp
10371 code. Now we wait for a more convenient time by enqueuing an
10373 * xterm.c (XTread_socket): When handling FocusIn events and
10374 EnterNotify events with the focus member set, enqueue a
10375 selected_screen event instead of calling x_new_selected_screen.
10376 * keyboard.c (trim_events): Function deleted; it is a bad idea to
10377 delete events based on the current tracking state, since tracking
10378 might be re-enabled later.
10379 (readable_events): New function which searches the input queue for
10381 (tracking_off): Call readable_events to see if we should
10383 (kbd_buffer_read_char): Toss events that we are not interested in.
10384 This is a better place to do it than trim_events, since we know
10385 that do_mouse_tracking will not change. Also, handle
10386 screen_selected events.
10387 (new_selected_screen): New variable, holding the screen which
10388 should become selected the next time through command_loop_1.
10389 (syms_of_keyboard): Initialize and staticpro new_selected_screen.
10390 (command_loop_1): If there is a new screen to be selected, do so.
10392 1991-05-21 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
10394 * xdisp.c (message): Removed the if at the top that did not
10395 display messages if the current screen was a termcap screen and a
10396 window system will be used. The change to startup.el on May 18,
10397 1991 replaces this.
10399 * ralloc.c (check_memory_limits): If the address returned by the
10400 allocator is not representable in a Lisp_Object, call memory_full
10401 instead of printing a very silly "warning" message.
10403 1991-05-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
10405 * xterm.c (XTread_socket): Don't overwrite the end of the buffer
10406 with function keys.
10408 * keyboard.c (tracking_off): Update input_pending after reading
10410 * process.c: #include "screen.h".
10411 (wait_reading_process_input): Check if any screens have been newly
10412 mapped and need updating.
10413 * xterm.c (XTread_socket): Don't SET_SCREEN_GARBAGED when the
10414 screen is unmapped; do this when is mapped.
10415 (dumprectangle): Don't dump any data for garbaged screens.
10417 1991-05-18 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10419 * sysdep.c (init_sys_modes): Moved the clauses that set up
10420 interrupt-driven input out of the "if running on a terminal"
10421 clause, since these may need to be set up even when running on a
10424 1991-05-17 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10426 * process.c (Fprocess_status): For network connections, return
10427 Qopen and Qclosed instead of Qrun and Qexit, as documented.
10429 * lread.c (read1): Removed code that treated numbers starting with
10432 1991-05-16 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10434 * eval.c (Ffuncall): Don't gcpro the arguments; the caller
10436 (Fapply): Gcpro funcall_args, if we use them.
10438 * xterm.c (notice_mouse_movement): #if 0'd this function out.
10439 (XTread_socket): #if 0 the code that fakes motion events for
10440 moving in and out of windows. Also, rearrange the MotionNotify
10441 case to give character rows and columns to note_mouse_position,
10442 not pixel x and y positions. Don't deal with scrollbars here.
10443 * termhooks.h (struct input_event): Removed the mouse_movement
10445 * keyboard.c (movement_buf): A new buffer for mouse-movement events.
10446 This is hairier than you might think; see the comments for this
10447 and the comments for note_mouse_position and get_mouse_position
10448 for an explanation of why this is hairy.
10449 (movement_ptr): Where the event handler should store new mouse
10451 (EVENT_QUEUES_EMPTY): New macro, to be used in the places that
10452 used to compare kbd_fetch_ptr to kbd_store_ptr to see if there
10453 were any events available; this macro tests the mouse movement
10455 (Qmouse_movement): New symbol to head mouse movement events with.
10456 (trim_events): Mouse movement events are no longer in kbd_buffer,
10457 so don't try to trim them.
10458 (tracking_off, kbd_buffer_read_char, get_input_pending): Use
10459 EVENT_QUEUES_EMPTY.
10460 (get_mouse_position): New function to retrieve a mouse position
10461 from the buffer properly, no matter when the event-handling signal
10463 (kbd_buffer_read_char): If there is something in kbd_buffer, make
10464 an event for that; if there is a mouse movement, make an event for
10465 that; otherwise, the while loop lied.
10466 (make_lispy_event): Added code to produce mouse movement events.
10467 (init_keyboard): Clear the mouse movement buffer.
10468 (Qmouse_moved, Qredraw_screen, Qmapped_screen, Qunmapped_screen)
10469 (Qexited_window, Qexited_scrollbar): Removed extern declarations
10470 for these, since they're no longer generated.
10471 (syms_of_keyboard): Initialize and staticpro Qmouse_movement,
10472 remove DEFVAR_LISP for Vignore_mouse_events.
10474 1991-05-14 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10476 * lread.c (read1): Correctly parenthesize the shift when parsing
10477 octal numbers, and signal an error if we see a non-octal digit.
10479 1991-05-13 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
10481 * keyboard.c (trim_events): New function, to remove uninteresting
10482 events from the input queue.
10483 (get_input_pending): Call trim_events before checking the queue,
10484 so as not to advertise input we don't care about.
10485 (Ftrack_mouse): A new function to enable mouse tracking for a
10487 (tracking_off): A function for unwind_protection; restore the
10488 mouse tracking state to what it was outside of the track-mouse
10489 (syms_of_keyboard): defsubr track-mouse.
10490 (make_lispy_event): Find the window io which the click occurred
10491 when processing mouse_click events, instead of trusting the window
10492 tree in the signal-handling code. Include the buffer position in
10495 * xterm.c (construct_mouse_click): Return the click's screen, not
10496 its window, and don't bother updating Vmouse_window. Calculate
10497 the row and column of text-area clicks using
10498 pixel_to_glyph_translation, since we know that those data
10499 structures are alive in signal handlers.
10501 * screen.c (window_from_coordinates,
10502 Flocate_window_from_coordinates): Moved these to window.c, since I
10503 need to be able to call them even if we don't have multi-screen
10505 (syms_of_screen): Removed defsubr for
10506 Flocate_window_from_coordinates.
10507 * window.c (window_from_coordinates, Flocate_window_from_coordinates):
10509 (syms_of_window): Here is the defsubr.
10511 * keyboard.c (note_mouse_position): New function to enqueue
10512 mouse movement events properly.
10513 (current_movement_event): New variable, to support the above. See
10514 its comment for more explanation.
10516 * termhooks.h (struct input_event): Change the .window member to
10517 .screen, make it a struct screen *, and indicate that those events
10518 which used to return windows now return screens. It is unsafe
10519 for the event reader to traverse the window structure, because it
10520 can be called by a signal handler.
10522 1991-05-10 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10524 * keyboard.c (Vignore_mouse_events): Variable deleted.
10525 (make_lispy_event): For mouse and scrollbar clicks, return the
10526 position as a pair of numbers, not a list of two numbers.
10528 1991-05-09 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
10530 * keyboard.c (do_mouse_tracking): Define this variable, which
10531 controls whether kbd_buffer_read_char will ignore button up and
10532 mouse movement events.
10533 * termhooks.h: Declare do_mouse_tracking here.
10535 * xterm.h (STANDARD_EVENT_SET): New constant, giving the event
10536 mask all the windows use.
10538 * xfns.c (Vx_send_mouse_movement_events): Removed this variable;
10539 XTmouse_tracking_enable and do_mouse_tracking do its job better.
10540 (syms_of_xfns): Remove the DEFVAR_LISP for the above.
10541 (x_window): Don't ask for any pointer motion events or button
10542 release events by default; use the unmodified STANDARD_EVENT_MASK.
10543 The user will ask for them explicitly if he or she wants them.
10544 And don't ask for backing store.
10546 * xterm.c (XTmouse_tracking_enable): New function to
10547 request/unrequest detailed mouse tracking information of the
10548 server, and set the flag used by XTread_socket.
10549 (x_term_init): Set mouse_tracking_enable_hook to
10550 XTmouse_tracking_enable here.
10551 (XTread_socket): Handle mouse movement events by calling
10552 note_mouse_position.
10554 * xterm.c (XTread_socket): For MapNotify events, go ahead and set
10555 the screen's visible flag, so Expose events will work. Clear the
10558 * editfns.c (Finsert_char): Return immediately if n <= 0, not just
10559 if n < 0, so that the `while' below does not become an infinite
10562 * term.c (mouse_tracking_enable_hook): Added this variable to
10563 allow emacs to request that the window system start or stop
10564 detailed mouse tracking.
10565 * termhooks.h (mouse_tracking_enable_hook): Declare it here.
10567 * xfns.c: Declare the functions before initializing
10568 x_screen_parm_table to point to them.
10570 * xterm.c (XTread_socket): Don't send Qmapped_screen,
10571 Qunmapped_screen, Qexited_scrollbar, Qexited_window,
10572 Qredraw_screen - these are not features that we want to support.
10574 1991-05-07 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10576 * editfns.c (Finsert_char): Let strlen be the minimum of n and
10577 256, not the maximum, so we use an n-byte buffer when n < 256, and
10578 a 256-byte buffer many times when n > 256.
10580 1991-05-05 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10582 * keymap.c (Fkeymapp): Fixed docstring to give the right
10583 definition of a keymap.
10585 1991-05-03 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10587 * data.c (Fcompiled_function_p): New function.
10589 1991-05-03 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10591 * xfns.c (struct x_screen_parm_table): New type for recording
10592 information about screen parameters.
10593 (x_screen_parms): New table describing the existing parameters.
10594 (init_x_parm_symbols, x_set_screen_param): Use x_screen_parms
10595 instead of a large switch statement.
10596 (x_figure_window_size): Make the default case of the switch call
10597 abort instead of signalling an error, since window_prompting's
10598 value is internally generated.
10600 1991-05-01 Jim Blandy (jimb@churchy.gnu.ai.mit.edu)
10602 * keymap.c (describe_map_tree): GCPRO the maps variable;
10603 Fkey_description calls Fmapconcat, which eventually calls
10604 Ffuncall, which can garbage-collect.
10606 1991-04-28 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10608 * dispnew.c (buffer_posn_from_coords): Use the information in bufp
10609 to reduce the distance compute_motion must scan, when possible.
10611 1991-04-27 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10613 * keyboard.c (syms_of_keyboard): Qtop_level is initialized and
10614 staticpro'd in syms_of_data too. Don't staticpro (or initialize)
10617 * macros.c (syms_of_macros): Since executing-macro and
10618 executing-kbd-macro are actually the same variable, use
10619 DEFVAR_LISP_NOPRO for the second one so it doesn't get staticpro'd
10622 * process.c (syms_of_process): Don't staticpro or initialize Qexit
10623 here, since syms_of_eval already does this and it's bad to
10624 staticpro something twice.
10625 (Qexit): Remove declaration here, so there will be a compilation
10626 error if someone rearranges eval.c without fixing the Qexit stuff.
10627 * eval.c (syms_of_eval): Add comment here to say that
10628 syms_of_process cares about Qexit too.
10630 * lread.c (init_obarray): Don't staticpro Vobarray, since the
10631 DEFVAR_LISP in syms_of_read takes care of that.
10633 1991-04-22 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10635 * window.c (save_window_save): Always get the selected window's
10636 value of point from its buffer, not just when it's also the
10639 * lisp.h (Qdisabled): Declare this here so that the keys_of_*
10640 files can disable the commands they define.
10641 * casefiddle.c (keys_of_casefiddle): Make upcase-region and
10642 downcase-region disabled, by default.
10644 1991-04-16 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10646 * bytecode.c (PUSH): Alliant can't be bothered to implement the
10647 preincrement operator right, so use a comma.
10649 * print.c (syms_of_print): staticpro Qexternal_debugging_output.
10651 * editfns.c (clip_to_bounds): No longer static - used in window.c.
10652 * window.c (unshow_buffer): Use clip_to_bounds to make sure we
10653 change point to something legal.
10655 1991-04-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10657 * sysdep.c: Changes in formatting and comments.
10659 1991-04-12 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
10661 * editfns.c (Fbuffer_substring): Don't call make_string, because
10662 it may cause a compaction and move the buffer, and then copy the
10665 * keyboard.c (read_char): Only GC if we've actually done enough
10666 consing since the last gc to make it worthwhile.
10668 1991-04-11 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10670 * keymap.c (access_keymap): Canonicalize the order of the
10671 modifiers when you look up a symbol in a keymap, too.
10672 (where-is-internal): If the keymap in which we found the
10673 definition was reached by meta-prefix-char, replace it with the
10676 * eval.c (Fcondition_case): Initialize the `handler_list' member
10679 * keyboard.c (read_char): Reset recent_keys_index when it is
10680 greater than OR EQUAL to the number of elements in recent_keys,
10683 * keymap.c (access_keymap): When fetching the car of listy events,
10684 no need to call Fcar_safe - extract the car directly.
10685 * keyboard.c (read_key_sequence): Don't extract the car from listy
10686 events here since 1) it strips information that we need from the
10687 events, and 2) access_keymap will take care of that for us.
10689 * macros.c (Qexecute_kbd_macro): New variable, used by
10691 (syms_of_macros): Initialize and staticpro Qexecute_kbd_macro.
10692 * lisp.h: Add extern declaration for Qexecute_kbd_macro.
10693 * keyboard.c (Fcommand_execute): Add an entry to the command
10694 history for keyboard macros too.
10696 * xterm.c (XTread_socket): If we get a MappingNotify event whose
10697 request == MappingKeyboard, someone has changed the keyboard
10698 mapping, and we should get the new mapping with
10699 XRefreshKeyboardMapping.
10701 1991-04-10 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
10703 * commands.h: Declare last_command_char to be a Lisp_Object, not
10706 * cmds.c (Fself_insert_command): If last_command_char is not an
10708 * minibuf.c (Fself_insert_and_exit): Same thing.
10710 * keyboard.c (format_modifiers): New function, factoring out code
10711 from modify_event_symbol and reorder_modifiers.
10712 (modify_event_symbol): Call format_modifiers instead of doing the
10714 (reorder_modifiers): New function to put the modifiers on a
10715 modified symbol in the canonical order.
10717 * keymap.c (modify_event_symbol): Prepend the modifiers so they
10718 appear in the canonical order: `M-C-S-U-'.
10719 (store_in_keymap): If IDX is a symbol, put the modifiers in the
10720 canonical order before storing.
10722 1991-04-09 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10724 * keymap.c (Flocal_set_key, Fglobal_set_key): When checking types
10725 of arguments, allow KEYS to be a vector or string, not just a
10727 (keymap_table): New static function to replace duplicated code in
10728 access_keymap and store_in_keymap.
10729 (access_keymap): Use keymap_table.
10730 (store_in_keymap): Use keymap_table, and put non-character
10731 definitions in dense keymaps *after* the vector.
10733 * fileio.c (directory_file_name): Remove trailing slashes from
10734 single-letter names like "a/" too. Let slen be the string length,
10735 not one less than the string length.
10737 * keyboard.c (Fset_input_mode): Don't complain that QUIT isn't an
10738 ASCII character if it is nil - it is an optional parameter.
10740 * keymap.c (Faccessible_keymaps): Use meta-characters in the key
10741 sequences returned, carefully making sure that the sequences still
10742 appear in order of increasing length.
10744 1991-04-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10746 * vmsfns.c (vms_trnlog): Increased size of str to 256 elements.
10747 (vms_symbol): Increased size of str to 1025 elements.
10749 1991-03-24 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10751 * dispnew.c (pixel_to_glyph_translation): Moved this function to
10752 xterm.c, since it is specific to X and only called by the X code.
10753 * xterm.c (pixel_to_glyph_translation): Here it is.
10755 1991-03-22 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10757 * s-usg5-4.h (DATA_SEG_BITS): Definition deleted.
10758 * m-intel386.h (DATA_SEG_BITS): Define here if USG5_4.
10760 1991-03-22 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10762 * keymap.c (Faccessible_keymaps): Produce meta-characters in the
10763 key sequences instead of [meta-prefix-char CHAR] sequences.
10765 1991-03-21 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10767 * keymap.c (Flookup_key): If KEY is a zero-length array, then
10768 return KEYMAP; this is more algebraically satisfying.
10770 * dispnew.c (Fsit_for): If the time to sit is zero and there is no
10771 input available, then return Qt, not Qnil.
10773 * keyboard.c (read_char): If a quit occurs and we return
10774 quit_char, clear Vquit_flag, so we don't end up returning it again
10775 and again... All lisp code does this manually if they call
10776 read-char with quits inhibited, so it's the right thing to do.
10778 1991-03-20 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10780 * keyboard.c (read_char): If there is still no input available
10781 after an auto-save, do a garbage-collection.
10783 * undo.c (truncate_undo_list): Always leave at least one undo
10784 record in the undo list. And use sizeof (struct Lisp_Cons), etc.
10787 * keyboard.c (read_char): When deciding whether to wrap
10788 recent_keys_index back to 0, compare it against
10789 sizeof (recent_keys)/sizeof(recent_keys[0]),
10790 not sizeof (recent_keys).
10791 (quit_char): This can't be anything but an ASCII character, so it
10792 shouldn't be a Lisp_Object. The declaration's comment says why.
10793 (read_char, init_keyboard): Treat quit_char as an int now.
10794 (Fset_input_mode): As above, and signal an error if QUIT is not an
10797 * callint.c (Fprefix_numeric_value): Use XFASTINT to initialize
10800 * fileio.c (Fmake_symbolic_link): Don't expand FILENAME; this
10801 would make it impossible to make a link to a relative name.
10803 1991-03-19 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
10805 * keyboard.c (syms_of_keyboard): Removed the DEFVAR_BOOL for
10806 meta-flag. This cannot be a lisp variable because we need to
10807 change the terminal settings whenever this flag changes. Change
10808 this through set-input-mode instead.
10810 1991-03-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10812 * keyboard.c (read_avail_input): Raise SIGHUP if no input on AIX.
10814 1991-03-19 Jim Blandy (jimb@churchy.ai.mit.edu)
10816 * keyboard.c (kbd_buffer_store_event, kbd_buffer_read_char)
10817 (read_key_sequence, Fexecute_extended_command, Fset_input_mode)
10818 (init_keyboard, syms_of_keyboard): Use XSET (var, Lisp_Int, exp)
10819 instead of XSETINT (var, exp) in those cases where var is not
10820 known to already be a Lisp_Int.
10821 * search.c (skip_chars): Same.
10822 * xterm.c (construct_mouse_click, XTread_socket): Same.
10823 * callint.c (Fprefix_numeric_value): Make sure to return a
10824 Lisp_Int even when RAW is a cons whose car is not a Lisp_Int.
10825 * process.c (sigchld_handler): When searching for a process whose
10826 pid is -1, make sure that the pid is an int first, since network
10827 streams are in Vprocess_alist too.
10829 * keyboard.c (syms_of_keyboard): Added DEFVAR_BOOL for
10830 meta-flag. Emacs 18 had this, and I see no entry in the ChangeLog
10831 saying that it was purposefully removed.
10833 1991-03-17 Jim Blandy (jimb@geech.ai.mit.edu)
10835 * keymap.c (Fcopy_keymap, Faccessible_keymaps, describe_map)
10836 (append_key): Minor typos and brainos corrected.
10838 * keyboard.c (read_char): Removed code to find the vector in a
10839 (kbd-macro . VECTOR) - style macro, since the macro is represented
10840 by the vector itself.
10841 (read_char_menu_prompt): Changed to correctly recognize the new
10842 dense keymap structures.
10843 (read_key_sequence): Changed code that checks for keymapness to
10844 use get_keymap_1 instead of doing the indirection and keymapness
10846 (Fcommand_execute): A keyboard macro is now a string or a vector.
10847 (Fexecute_extended_command): When expanding this_command_keys,
10848 remember that it is now an array of Lisp_Objects, not chars.
10850 * doc.c (Fdocumentation): Rearranged into a switch statement, and
10851 made vectors macros, not keymaps.
10853 * eval.c (Fcommandp): Removed code to recognize
10854 (kbd-macro . VECTOR) as a command, and added code to recognize
10855 vectors as commands.
10856 * macros.c (Qkbd_macro): Variable deleted.
10857 (syms_of_macros): Initialization of Qkbd_macro removed.
10859 1991-03-14 Jim Blandy (jimb@pogo.ai.mit.edu)
10861 * minibuf.c (keys_of_minibuf): Changed all calls to
10862 initial_define_lisp_key to calls to initial_define_key.
10864 * keymap.c (describe_map): Adjusted to handle the new style of
10867 1991-03-14 Richard Stallman (rms@mole.ai.mit.edu)
10869 * fileio.c (Fwrite_region): On VMS, don't try rewriting old version.
10871 1991-03-14 Jim Blandy (jimb@pogo.ai.mit.edu)
10873 * keymap.c (Faccessible_keymaps): Adjusted to handle the new style
10875 (Fwhere_is_internal): Handle the new-style of keymaps.
10876 Additionally, only check to see if a match is shadowed by a
10877 binding in the local keymap when LOCAL_KEYMAP is non-nil, instead
10878 of comparing elt against DEFINITION yet again.
10879 (describe_map_tree): Handle key sequences that are vectors, as
10880 well as those that are strings.
10882 1991-03-13 Jim Blandy (jimb@churchy.ai.mit.edu)
10884 * commands.h, keymap.c (meta_map, control_x_map): Make these
10885 Lisp_Objects, not Lisp_Vectors.
10886 keymap.c (syms_of_keymap): Same.
10888 * keymap.c (Fuse_global_map): There is no longer any reason to
10889 insist that KEYMAP must be a dense keymap; delete the code that
10892 1991-03-12 Jim Blandy (jimb@wookumz.ai.mit.edu)
10894 * commands.h, lisp.h: Changed global_map and current_global_map to
10895 be Lisp_Objects, not Lisp_Vectors.
10896 keyboard.c (read_key_sequence): Same.
10897 keymap.c (Fkey_binding, Fglobal_key_binding, Fglobal_set_key)
10898 (Fuse_global_map, Fwhere_is_internal, describe_buffer_bindings)
10899 (syms_of_keymap): Same.
10901 * keymap.c (Fdefine_key): Braino: increment idx and clear metized
10902 flag even when the element of the key sequence isn't a character.
10903 (Flookup_key): Fix same braino.
10905 1991-03-10 Jim Blandy (jimb@wookumz.ai.mit.edu)
10907 * keymap.c (get_keyelt): Use access_keymap to resolve indirect
10908 entries, instead of duplicating its code.
10909 (Fcopy_keymap): Handle the new keymap structure.
10911 1991-03-09 Richard Stallman (rms@mole.ai.mit.edu)
10913 * eval.c (struct catchtag): New field handlerlist.
10914 (internal_catch, internal_condition_case): Set that field.
10915 (unbind_catch): Use it.
10917 1991-03-08 Richard Stallman (rms@mole.ai.mit.edu)
10919 * m-intel386.h (signal): Maybe define if USG.
10921 * keyboard.c (echo_char): Don't have space at end of echobuf.
10923 1991-03-07 Jim Blandy (jimb@albert.ai.mit.edu)
10925 * keyboard.c (syms_of_keyboard): Initialize mouse_syms, instead of
10926 doing func_key_syms twice. Don't deal with scrollbar_syms, since
10929 1991-03-06 Jim Blandy (jimb@pogo.ai.mit.edu)
10931 * keymap.c (access_keymap, store_in_keymap): Changed to handle the
10932 new style of keymaps.
10934 * fns.c (Fassq, Fcopy_alist): Changed docstring to promise to
10935 ignore elements of LIST that are not conses. See access_keymap
10936 and copy_keymap for a cheap excuse.
10938 1991-03-06 Richard Stallman (rms@mole.ai.mit.edu)
10940 * s-vms.h (DATA_START): Remove `+ 512'.
10942 1991-03-05 Jim Blandy (jimb@spiff.ai.mit.edu)
10944 * keymap.c (Fmake_keymap): Rewritten to construct the
10945 new dense keymap structure: (keymap VECTOR . ALIST). Docstring
10946 adjusted accordingly. This means that the keyboard macro
10947 stupidity (see Feb 27, keyboard.c) is no longer needed.
10949 1991-03-03 Richard Stallman (rms@mole.ai.mit.edu)
10951 * sysdep.c (MEMORY_IN_STRING_H): New compilation flag.
10952 * s-isc2-2.h: New file.
10954 1991-02-27 Jim Blandy (jimb@churchy.ai.mit.edu)
10956 * macros.c (Qkbd_macro): New variable, to hold the symbol
10957 `kbd-macro', which we use to tag vector-style keyboard macros.
10958 (syms_of_macros): Initialize and staticpro Qkbd_macro.
10960 * eval.c (Fcommandp): Recognize the new keyboard macros.
10962 * keyboard.c (Fcommand_execute): A keyboard macro is now a string,
10963 or a cons whose car is the symbol `kbd-macro' and whose
10964 cdr is a vector of events; previously, macros were strings or
10965 vectors, but that makes it difficult to tell the difference
10966 between macros and dense keymaps.
10967 (read_char): Handle the new macros correctly, and re-allocate
10968 this_command_keys correctly.
10970 1991-02-26 Richard Stallman (rms@mole.ai.mit.edu)
10972 * s-vms.h (calloc): Define like malloc, etc.
10974 1991-02-26 Jim Blandy (jimb@spiff.ai.mit.edu)
10976 * xterm.c (XTread_socket): Move enter_timestamp outside of the
10977 function; static variables inside functions don't always work in
10980 * editfns.c (in_accessible_range): Deleted - insufficently
10982 (clip_to_bounds): New function, much like in_accessible_range,
10983 except that the upper and lower bounds are arguments.
10984 (goto_char, save_restriction_restore): Rewritten to use
10985 clip_to_bounds instead of in_accessible_range.
10987 1991-02-25 Jim Blandy (jimb@pogo.ai.mit.edu)
10989 * keymap.c (initial_define_lisp_key): Turn KEY into a Lisp_Int
10990 before passing it to store_in_keymap.
10992 * buffer.c (reset_buffer_local_variables): Don't try to initialize
10993 the buffer's mouse_map and function_key_map fields, since they
10994 don't exist anymore.
10996 * macro.c (kbd_macro_buffer, kbd_macro_ptr, kbd_macro_end): These
10997 are now all pointers to Lisp_Objects instead of chars.
10998 (Fend_kbd_macro): Use make_sequence.
10999 (store_kbd_macro_char): Argument c is now a Lisp_Object. Change
11000 call to xrealloc to ask for Lisp_Objects instead of chars. Set
11001 kbd_macro_end to the same place in the new buffer as it was in the
11002 old one, not to the end of the buffer.
11003 (Fexecute_kbd_macro): Allow MACRO to be a string or a vector.
11004 (syms_of_macros): Allocate Lisp_Objects instead of chars for
11007 * alloc.c (make_sequence): New function, useful to keyboard.c and
11009 * keyboard.c (Fread_key_sequence): Use make_sequence.
11010 (Fthis_command_keys): Use make_sequence.
11012 1991-02-24 Jim Blandy (jimb@churchy.ai.mit.edu)
11014 * keymap.c (Fwhere_is): If the command can't be found, the message
11015 is now "foobie is not on any key.", instead of "... any keys.".
11017 * keyboard.c (input_poll_signal): Pass 0 to read_avail_input,
11018 instead of `&junk'. Removed variable `junk'.
11019 (command_loop_1): Updated to handle the unified function key/mouse
11020 event/keystroke arrangement.
11021 (Finput_pending_p): Removed vestiges of code to handle
11022 unread_input_char value of -1, since this doesn't happen anymore.
11023 (read_char): Adapted to handle lispy events.
11024 (read_char_menu_prompt): Allocate `menu' buffer using alloca,
11025 instead of a variable-sized array, which is gcc-specific.
11026 (Frecent_keys): Return the most recent "keystrokes" as a vector,
11027 to accomodate lispy events.
11028 (Fset_input_mode): Accomodate non-characters as quit keys. If
11029 this is a bad thing, init_sys_modes will tell us.
11030 (init_keyboard): this_command_keys is now an array of
11031 Lisp_Objects; adjust the amount of storage we request to hold it.
11032 Remember that quit_char can be any keystroke.
11033 (syms_of_keyboard): last_command_char, last_input_char, help_char,
11034 menu_prompt_more_char and meta_prefix_char are now DEFVAR_LISPs
11035 instead of DEFVAR_INTs.
11037 1991-02-24 Richard Stallman (rms@mole.ai.mit.edu)
11039 * process.c (wait_reading_process_input): Use NETCONN_P.
11041 1991-02-23 Jim Blandy (jimb@pogo.ai.mit.edu)
11043 * keyboard.c (recent_keys, this_command_keys)
11044 (menu_prompt_more_char, help_char, last_command_char, quit_char)
11045 (last_input_char): Changed to Lisp_Objects, so we can use function
11047 (Vglobal_function_map): Variable deleted.
11048 (echo_char): Echo function keys too. The argument C is now a
11049 Lisp_Object instead of a char.
11050 (Fread_key_sequence): Removed sludge to handle window events
11051 specially, and added sludge to handle sequences with
11052 non-characters in them.
11053 (classify_object): Elided, since this should go away soon.
11054 (read_key_sequence): Adapted to look up symbols in keymaps,
11055 just like characters.
11057 1991-02-23 Richard Stallman (rms@mole.ai.mit.edu)
11059 * process.c (send_process): Handle EAGAIN like EWOULDBLOCK.
11061 1991-02-22 Jim Blandy (jimb@pogo.ai.mit.edu)
11063 * doc.c (substitute_command_keys): Call describe_map_tree with
11064 only three arguments, since the CHARTAB arg has been disposed of.
11066 * keymap.c (Fcurrent_global_map, Fuse_local_mouse_map): Functions
11067 deleted, since the mouse maps are no longer separate from the key
11069 (append_key): New function, which handles tacking a single
11070 keystroke on the end of a key sequence, promoting strings to
11071 vectors when needed.
11072 (Faccessible_keymaps): Adjusted to return vectors for key
11073 sequences, when necessary.
11074 (Fkey_description): Removed stuff to handle mouse buttons and
11075 other things specially, since this work will go into
11076 Fsingle_key_description.
11077 (Fsingle_key_description): SIMPLIFIED to handle everything
11078 correctly! Jeepers!
11079 (Fwhere_is_internal): Scan the assoc-list at the end of dense
11080 keymaps, and construct strings or vectors.
11081 (where_is_string, describe_buffer_bindings): Simplified by
11082 deleting code to handle mouse button bindings specially.
11083 (describe_map_tree): Removed CHARTAB argument; this was
11084 a kludge to print out mouse events nicely, and is no longer
11085 necessary. Nobody was using it anyway.
11086 (describe_map): Removed ugly hack to handle mouse buttons
11087 specially, added code to describe alists on dense keymaps, and
11088 removed CHARTAB argument.
11089 (describe_alist): Made to handle bindings of symbols as well as
11090 characters. Removed CHARTAB argument.
11091 (describe_vector): Removed CHARTAB argument, allocated KLUDGE
11092 outside of loop and GCPRO'd it.
11093 (syms_of_keymap): Remove last vestiges of Vglobal_mouse_map,
11094 Vmouse_button_names, Suse_local_mouse_map,
11095 Scurrent_local_mouse_map.
11097 * buffer.h (struct buffer): Removed mouse_map and function_key_map
11098 members, since they are now handled by the keymap element.
11100 * keyboard.c (syms_of_keyboard): Change initialization of
11101 meta_prefix_char, since it's now a Lisp_Object.
11103 * keymap.c (Fkeymapp): Rewrote this to use get_keymap_1; now it's
11104 a one-liner instead of a 13-liner.
11105 (DENSE_TABLE_SIZE): Created new constant for the # of lookup-style
11106 entries in a dense keymap, and the index of the map's assoc list.
11107 Used it where appropriate.
11108 (Fcopy_keymap): Notice that 129'th element in dense keymaps.
11109 (Fdefine_key, Flookup_key): Reworked to deal with vectors of
11110 symbols and characters as well as strings for key sequences.
11111 (meta_prefix_char): Changed from an int to a Lisp_Object.
11113 1991-02-21 Richard Stallman (rms@mole.ai.mit.edu)
11115 * fileio.c (report_file_error): Don't downcase "I/O".
11117 1991-02-20 Jim Blandy (jimb@geech.ai.mit.edu)
11119 * keymap.c (access_keymap): Allow IDX to be any sort of bindable
11120 event, and deal with the extended keymaps. IDX is now a
11121 Lisp_Object instead of an int, obviously.
11122 (store_in_keymap): Allow IDX to be any sort of bindable event, and
11123 deal with the extended keymaps. IDX is now a Lisp_Object.
11125 * xterm.c (construct_mouse_click): Add code to set the up_modifier
11126 bit for ButtonRelease events.
11128 * keyboard.c (kbd_buffer_store_event): Use XFASTINT and XSETINT to
11129 access event->code, since it's a Lisp_Object.
11130 (kbd_buffer_read_char): Golly, perhaps we should increment
11131 kbd_fetch_ptr to remove the event we just read from the queue.
11132 (modify_event_symbol): Stupid fixes: correctly look up unmodified
11133 symbols when cache entry has a modified symbol vector. And, when
11134 first adding the modified symbol vector, copy the old slot value
11137 1991-02-19 Jim Blandy (jimb@pogo.ai.mit.edu)
11139 * keyboard.c (command_loop_1): #if 0 the block of code which
11140 handles mouse events and other lispy events specially, since I
11141 hope it will go away soon.
11143 * dispnew.c (Fsleep_for_millisecs): Pass all four arguments to
11144 wait_reading_process_input, instead of just the first two.
11146 * process.c (wait_reading_process_input): Remove support for
11147 only waiting for mouse input, since that has been superceded.
11148 This removes X dependencies from process.c, and eliminates some
11149 references to code that should only exist when using X10.
11151 * keyboard.c (mouse_moved_symbol, redraw_screen_symbol,
11152 mapped_screen_symbol, unmapped_screen_symbol,
11153 exited_window_symbol, exited_scrollbar_symbol): Renamed to
11154 Qmouse_moved, Qredraw_screen, Qmapped_screen, Qunmapped_screen,
11155 Qexited_window, Qexited_scrollbar, just as done in xterm.c.
11156 (classify_object): Removed code to look up a function key in the
11157 global and local function key keymaps, since this will be done
11159 (Fexecute_mouse_event): Elided this function with a #if 0; I
11160 think it will go away once the more general keymap stuff is
11161 implemented, but I'm not sure.
11162 (syms_of_keyboard): Removed defsubr for Sexecute_mouse_event.
11163 (where_is_string, describe_buffer_bindings, syms_of_keymap):
11164 Elided code to handle mouse button bindings specially; I hope this
11167 * lread.c (syms_of_lread): Change defsubr for eval-buffer to
11168 defsubr for eval-current-buffer.
11170 * keymap.c (syms_of_keymap): defvar for Vglobal_function_map
11171 removed, since that variable has disappeared.
11173 * xterm.c (x_func_key_to_sym): Removed entirely, since we no
11174 longer convert X keycodes to symbols in this section of code.
11175 (x_convert_modifiers): New function to turn the X modifier bits
11176 into struct input_event modifier bits.
11177 (encode_mouse_button): Removed, since this work isn't done here
11179 (Vx_send_mouse_movement_events): Add an extern declaration for
11182 * termhooks.h: Only define struct input_event if the module
11183 has previously #included lisp.h; this avoids forcing simple modules
11184 like cm.c to #include lisp.h.
11186 * term.c: #include "lisp.h" before #including "termhooks.h", since
11187 the latter uses Lisp_Objects now.
11189 * xfns.c (syms_of_xfns): Delete the defsubr for Sx_window_id,
11190 since Fx_window_id is gone.
11192 * xterm.c (construct_mouse_event): Construct a struct input_event
11193 instead of a lispy event.
11195 * screen.c (coordinates_in_window): Added explanatory comment.
11196 (window_from_coordinates): Change PART, whose returned values are
11197 dependent on X-windows, to be called MODELINE_P, with appropriate
11199 * xterm.c (notice_mouse_movement): Handle the X-windows dependent
11200 stuff that used to be in window_from_coordinates here instead.
11201 (XTread_socket): Modified to produce struct input_events
11202 instead of lispy events.
11204 1991-02-18 Jim Blandy (jimb@pogo.ai.mit.edu)
11206 * termhooks.h: Added up_modifier to the enum for modifier bits;
11207 this bit will be applied to mouse events.
11208 (struct input_event): Changed specification of non_ascii_keystroke
11209 events to send the function key number instead of a symbol.
11210 * keyboard.c (modify_event_symbol): Re-arranged to work well
11211 with function key/mouse button numbers instead of symbols.
11212 And if (MODIFIERS & up_modifer), prepend "U-" to the name of the
11213 symbol being constructed.
11214 (make_lispy_event): Use the new modify_event_symbol.
11216 * xterm.c (notice_mouse_movement): Adjusted this function to
11217 work with a struct input_event instead of producing an
11220 * xterm.c, xfns.c: Made all references to x_mouse_queue,
11221 x_expose_queue, and the functions which manipulate them
11222 conditional on having X10, since only X10 code ever places
11223 anything in these queues.
11225 1991-02-15 Jim Blandy (jimb@pogo.ai.mit.edu)
11227 * termhooks.h: Define struct input_event, to represent input
11228 events while they sit in the keyboard input buffer. Using lisp
11229 objects to represent input events is a bad idea because the
11230 routines which enqueue them can be called from signal handlers,
11231 and therefore should not cons.
11233 * keyboard.c (kbd_buffer, kbd_fetch_ptr, kbd_store_ptr): Change
11234 these to be of type `struct input_event *'.
11235 (kbd_buffer_store_event): Manipulate struct input_events instead
11237 (make_lispy_event): New function, to construct a lisp-style event
11238 corresponding to a particular struct input_event.
11239 (modify_event_symbol): New function, to add modifier prefixes to a
11240 symbol, and look the new symbols up quickly if they've already
11242 (kbd_buffer_read_char): Call make_lispy_event to turn the thing
11243 in the keyboard buffer into the form that read_char is expecting.
11244 (Qwith_modifier_keys): Define this new symbol variable.
11245 (syms_of_keyboard): Initialize and protect Qwith_modifier_keys.
11247 * xterm.c (init_input_symbols): Rearranged the code that produces
11248 the func_key_syms array.
11249 (x_func_key_to_sym): Simplified, since more will be handled in
11251 (XTread_socket): When handling KeyPress events, don't pass the
11252 state of the modifier keys to x_func_key_to_sym, since it doesn't
11255 * sysdep.c (kbd_input_ast, end_kbd_input, read_input_waiting):
11256 Rename kbd_buffer_store_char to kbd_buffer_store_event.
11258 * keyboard.c (stuff_buffered_input): Since the keyboard buffer
11259 holds lisp objects, only stuff entries that are Lisp_Ints, and
11260 XINT them before passing them to stuff_char.
11261 (kbd_buffer_store_char): Make this not a static function, since
11262 sysdep.c calls it. And rename it kbd_buffer_store_event.
11264 * keyboard.c (kbd_buffer, kbd_fetch_ptr, kbd_store_ptr): Made these
11265 variables static, to document the fact that they're only used
11268 1991-02-13 Jim Blandy (jimb@pogo.ai.mit.edu)
11270 * xterm.c (init_input_symbols): Remove the `xk-' prefix from all
11271 the function key symbols, since they're going to be used for
11272 function keys from all sorts of terminals, not just when running
11275 * lread.c (read_escape): Removed support for mouse button escapes
11276 (\S-, \U-, \C- applied to digits), because they're being replaced
11277 by something more rational.
11279 1991-02-09 Richard Stallman (rms@mole.ai.mit.edu)
11281 * buffer.c: Doc fix.
11283 * sysdep.c (dup2): Rewrite of non-F_DUPFD case.
11285 1991-02-08 Richard Stallman (rms@mole.ai.mit.edu)
11287 * m-intel386.h (LOAD_AVE_CVT): Add extra parens.
11288 * s-usg5-4.h (LIBX11_SYSTEM): #undef it.
11290 1991-02-07 Richard Stallman (rms@mole.ai.mit.edu)
11292 * s-esix.h: New version from kayvan.
11293 Adds HAVE_X11 conditional, NEED_PTEM_H, USG_SYS_TIME, USE_UTIME,
11294 LIBS_DEBUG; removes #undef sigsetmask, LIBS_SYSTEM, ESIX,
11297 1991-02-06 Richard Stallman (rms@mole.ai.mit.edu)
11299 * process.c (Faccept_process_output): Second arg gives timeout.
11301 1991-02-06 Jim Blandy (jimb@geech.ai.mit.edu)
11303 * lread.c (read_escape): Added support for \S- and \U- escapes (for
11304 binding mouse buttons), and noted that \C- must work on digits.
11306 * xterm.c (init_input_symbols): Was mistakenly renamed
11307 init_inputs; named back.
11309 * xterm.c (construct_mouse_click, encode_mouse_button): Rewritten
11310 to build new-style mouse events.
11312 * dispnew.c (update_line): Write a zero into obody[olen] to make
11313 sure the lines in current_screen->glyphs remain terminated.
11314 * xdisp.c (display_string, display_text_line): Don't write off
11315 the end of the line and destroy the zero terminator when expanding
11318 * fns.c (Fy_or_n_p): Accept C-] (usually abort-recursive-edit) as
11319 well as C-g to quit.
11321 1991-02-05 Jim Blandy (jimb@geech.ai.mit.edu)
11323 * sysdep.c, s-aix3-1.h, s-hpux.h, s-iris3-5.h, s-iris3-6.h,
11324 * s-irix3-3.h, s-rtu.h, s-sunos4-1.h, s-unipl5-0.h, s-unipl5-2.h,
11325 * s-usg5-0.h, s-usg5-2-2.h, s-usg5-2.h, s-usg5-3.h, s-xenix.h:
11326 Globally replaced INTERRUPTABLE with INTERRUPTIBLE.
11328 * xterm.c (construct_mouse_event): Renamed to
11329 construct_mouse_click, since there are kinds of mouse events
11330 besides clicks (movement, for example).
11331 (XTread_socket): Rename calls here.
11333 * xterm.c (mapped_screen_symbol, unmapped_screen_symbol)
11334 (exited_scrollbar_symbol, exited_window_symbol)
11335 (redraw_screen_symbol, mouse_moved_symbol): Renamed to
11336 Qmapped_screen, Qunmapped_screen, Qexited_scrollbar,
11337 Qexited_window, Qredraw_screen, Qmouse_moved, to agree with naming
11338 conventions elsewhere in Emacs.
11340 * xfns.c (text_part_sym, modeline_part_sym)
11341 (vertical_scrollbar_sym, vertical_slider_sym, vertical_thumbup_sym)
11342 (vertical_thumbdown_sym, horizontal_scrollbar_sym)
11343 (horizontal_slider_sym, horizontal_thumbleft_sym)
11344 (horizontal_thumbright_sym): Renamed to Qtext_part, Qmodeline_part,
11345 Qvscrollbar_part, Qvslider_part, Qvthumbup_part, Qvthumbdown_part,
11346 Qhscrollbar_part, Qhslider_part, Qhthumbleft_part,
11347 Qhthumbright_part, to agree with the naming conventions elsewhere
11350 * xterm.c (XTread_socket): While handling EnterNotify events,
11351 clear Vmouse_event here.
11352 (notice_mouse_movement): Don't clear it here.
11354 1991-02-04 Richard Stallman (rms@mole.ai.mit.edu)
11356 * s-sunos4-0.h: Renamed from s-sunos4.h.
11357 (read, write, open, close): Macro defs moved to s-sunos4-1.h.
11358 (INTERRUPTABLE_*): Likewise.
11359 * s-sunos4-1.h: New file.
11361 1991-02-04 Jim Blandy (jimb@churchy.ai.mit.edu)
11363 * keymap.c (Vglobal_mouse_map, Vglobal_function_map): Variables
11364 removed in preparation for conversion to unified keymap format.
11365 (Fmake_keymap): Make vector keymaps with 129 entries; the last
11366 will be an assoc-list for looking up symbols. Update docstring to
11367 describe 129'th element.
11368 (Fmake_sparse_keymap): Update docstring to say that you can bind
11369 symbols in these maps too.
11370 (Fkeymapp): Recognize 129-element vectors as keymaps, not
11371 128-element vectors.
11372 (get_keymap_1): wrong_type_argument can no longer return a new
11373 value supplied by the debugger; remove loop to support this.
11375 * xterm.c (XTread_socket): When handling EnterNotify events,
11376 enqueue fake mouse events iff Vx_send_mouse_movement_events !=
11379 * xfns.c (Fx_window_id): Function removed; Fscreen_parameters
11380 already provides this information.
11382 * xterm.c (x_term_init): Cleaned up the code to get the host name,
11383 and removed fixed limit on host name length.
11385 * window.c (Fscroll_other_window): Don't explicitly save
11386 current_buffer and point; the save_excursion will take care of
11389 * dispnew.c (safe_bcopy): Rewritten to handle overlapping regions
11390 with multiple calls to bcopy instead of a stupid copy loop.
11392 * xterm.c, xfns.c (Vscreen_part, Vx_send_movement_events): These
11393 variables renamed to Vmouse_screen_part,
11394 Vx_send_mouse_movement_events.
11396 * lread.c (Feval_buffer): Function deleted.
11397 (Feval_current_buffer): Removed "#if 0 ... #endif" around this
11400 1991-02-03 Richard Stallman (rms@mole.ai.mit.edu)
11402 * Makefile, ymakefile (SHELL): Force use of sh.
11404 * s-usg5-4.h (USG5_4): Define it.
11405 (LOAD_AVE_*): Don't define them.
11406 * m-intel386.h (LOAD_AVE_*): Define, if USG5_4.
11408 * buffer.c (Fbuffer_local_variables): Omit slots with no names.
11410 1991-02-03 Jim Blandy (jimb@geech.ai.mit.edu)
11412 * xterm.c (x_term_init, init_input_symbols): Moved these to the
11413 bottom of the file, 1) to be consistent with the other files, and
11414 2) so it can initialize some variables I want.
11416 1991-02-02 Jim Blandy (jimb@churchy.ai.mit.edu)
11418 * xterm.h: Added external declaration for x_focus_screen.
11420 * search.h: File deleted.
11421 * buffer.h: Declare searchbuf here instead.
11423 * screen.c (Ffocus_screen, Funfocus_screen): Moved these functions
11424 to xfns.c, since they're x-specific.
11425 (syms_of_screen): Removed defsubr calls for above.
11426 * xfns.c (Ffocus_screen, Funfocus_screen): Here they are.
11427 (syms_of_xfns): The defsubrs are here now.
11429 * buffer.h (PT): Make this expand to an expression which is not an
11430 l-value, to prevent people from assigning to it. If everyplace
11431 uses SET_PT, it will be easier to merge in the interval code.
11432 (point): Similar changes here.
11433 (SET_PT): This can no longer be written in terms of PT, so write
11434 out current_buffer->text.pt.
11436 * xterm.c (x_new_font): Rewritten to remove arbitrary limit on
11437 size of x_font_table.
11438 (x_font_table_size): Created new variable.
11439 (n_available_fonts, font_names, font_info, MAX_FONTS): Deleted
11440 these variables/macros.
11442 * dispnew.c (scroll_screen_lines): Instead of disabling the lines
11443 vacated by the scroll (i.e. zeroing enable), mark them as enabled
11446 * callint.c (Fcall_interactively): Move UNGCPRO down, so that
11447 stuff is protected while we build the command history entry and do
11450 * xterm.c (XTupdate_end): Turn cursor on, even if we don't
11451 currently have the focus.
11453 * minibuf.c (temp_echo_area_glyphs): Clear echo_area_glyphs and
11454 previous_echo_glyphs, so the message we're displaying will
11455 supercede any existing message.
11457 * keyboard.c: Removed external declaration of echo_area_glyphs,
11458 since it's declared in window.h.
11460 1991-01-31 Jim Blandy (jimb@pogo.ai.mit.edu)
11462 * xterm.c (XRINGBELL): Pass 0 as the second argument to XBell;
11463 respect the user's preferences.
11465 1991-01-30 Jim Blandy (jimb@pogo.ai.mit.edu)
11467 * xterm.c (x_draw_single_glyph): New function, created to simplify
11468 cursor drawing/undrawing.
11469 (x_display_box_cursor): Rewritten to properly handle the box
11470 cursor in its filled and hollow forms.
11471 * xterm.h (enum text_cursor_kinds): Added enum for the different
11472 kinds of cursors which might be displayed in a window.
11473 (struct x_display): Added member `text_cursor_kind' which says
11474 which kind of cursor is currently being displayed in the window, so
11475 we can arrange to redraw it effectively.
11477 * keyboard.c (command_loop_1): When handling the forward_char
11478 command, don't let point move to the location after the end of the
11481 * keyboard.c (poll_suppress_count): Define this even if
11482 POLL_FOR_INPUT is not defined, because this makes lots of #ifdef
11483 clauses unnecessary, and doesn't hurt, because
11484 {start,stop}_polling become nops.
11486 * config.h, config.h-dist: Make these #include "system.h" and
11487 "machine.h", and let the config script link these appropriately,
11488 instead of using the machine-specific names and expecting the user
11491 1991-01-29 Jim Blandy (jimb@churchy.ai.mit.edu)
11493 * window.c (Fdelete_window): sib is a Lisp_Object; treat it as
11496 * xterm.c (screen_unhighlight): When the focus leaves a screen,
11497 draw the cursor as a box instead of making it disappear entirely.
11499 1991-01-29 Richard Stallman (rms@mole.ai.mit.edu)
11501 * unexec.c (make_hdr) [TPIX]: Set f_hdr.f_nscns and f_thdr.f_scnptr.
11503 * sysdep.c [BROKEN_TIOCGWINSZ]: Undef TIOCGWINSZ.
11505 * process.c (wait_reading_process_input): Don't ignore
11506 a zero-length read on a network connection. Do close it.
11508 * sysdep.c (hft_init, hft_reset): Pass &junk as arg to HFQERROR.
11509 Do nothing if not HFT.
11511 1991-01-29 Jim Blandy (jimb@albert.ai.mit.edu)
11513 * xfns.h: Created, to declare things defined in xfns.c.
11514 Declare Vx_send_movement_events.
11515 * xfns.c: #include "xfns.h".
11516 (Vx_send_movement_events): Define this variable.
11517 (syms_of_xfns): DEFVAR_LISP it.
11518 * xterm.c: #include "xfns.h".
11519 (XTread_socket): Place a mouse-moved event in the buffer iff
11520 Vx_send_movement_events says to.
11522 1991-01-28 Jim Blandy (jimb@geech.ai.mit.edu)
11524 * ymakefile: Noted that callint.o depends on mocklisp.h,
11525 and dired.o on search.h.
11527 * environ.h: Deleted - its creation in the first place was misguided.
11528 callproc.h: Removed #include "environ.h", and added declarations
11531 * buffer.c (syms_of_buffer): Add more detailed documentation to
11534 * lisp.h (poll_suppress_count): Add external declaration for this here.
11536 1991-01-28 Richard Stallman (rms@mole.ai.mit.edu)
11538 * m-sun3-68881.h, m-sun3-fpa.h, m-sun3-soft.h: New files.
11540 1991-01-27 Jim Blandy (jimb@geech.ai.mit.edu)
11542 * lisp.h (struct handler): Add poll_suppress_count member, so
11543 we can restore poll_suppress_count when we handle an error.
11544 * eval.c (struct catchtag): Add it here too, for throws.
11545 (internal_catch, Fcondition_case, internal_condition_case): Record
11546 the value of poll_suppress_count here in the handler and catch tag.
11547 (Fthrow, Fsignal): Restore it here.
11549 1991-01-25 Jim Blandy (jimb@churchy.ai.mit.edu)
11551 * xterm.c (x_display_box_cursor): If we're undrawing the cursor by
11552 redrawing the character underneath it, draw according to that
11553 line's highlight, instead of assuming it's in the normal GC.
11555 1991-01-25 Richard Stallman (rms@mole.ai.mit.edu)
11557 * buffer.h (PTR_CHAR_POS): Value was too small by 1.
11559 1991-01-16 Richard Stallman (rms@mole.ai.mit.edu)
11561 * doprnt.c (doprnt): Check for overflow in fmtcpy.
11563 1991-01-16 Jim Blandy (jimb@churchy.ai.mit.edu)
11565 * window.c (Fdelete_window): If the deletee gives its space to its
11566 next sibling, that sibling needs to have its top/left side pulled
11567 back to where the deletee's is.
11569 1991-01-15 Jim Blandy (jimb@geech.ai.mit.edu)
11571 * doc.c (Fsnarf_documentation): Handle attaching docstrings to
11572 bytecode objects too.
11574 * syntax.h (syntax_spec_code): Make external declaration for this
11575 unsigned char to match the definition in syntax.c.
11577 * indent.c (compute_motion): Added comments describing how it
11580 1991-01-15 Richard Stallman (rms@mole.ai.mit.edu)
11582 * process.c (create_process): Use SETUP_SLAVE_PTY if defined.
11584 * s-usg5-4.h (HAVE_PTYS, HAVE_SETSID): Defined.
11585 (HAVE_WAIT_HEADER, WAITTYPE, wait3, WRETCODE): New macros.
11586 (TIOCSIGSEND): Alias for TIOCSIGNAL.
11587 (FIRST_PTY_LETTER): Overridden.
11588 (PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF, SETUP_SLAVE_PTY): New macros.
11590 * m-ibmrs6000.h (CANNOT_DUMP): Undefine it.
11591 (UNEXEC): Define it.
11592 (PURE_SEG_BITS, SHMKEY): Define only if CANNOT_DUMP.
11593 (LINKER): Override it. Then add -bnodelcsect.
11595 * xfns.c (Fx_get_default): Try reversing XGetDefault args if it fails.
11597 1991-01-13 Richard Stallman (rms@mole.ai.mit.edu)
11599 * s-usg5-4.h (LOAD_AVE_CVT): Cast value to int.
11601 * keyboard.c (read_avail_input): Signal SIGHUP if FIONREAD fails.
11603 * ymakefile: Put tokens after #endif into comment.
11605 * filelock.c (lock_file_owner_name): Declare argument type.
11607 * syntax.c (syntax_spec_code): Type now unsigned char.
11609 * process.c (wait_reading_process_input):
11610 Call status_notify even when not doing redisplay.
11612 * emacs.c (Fkill_emacs): Turn off SIGIO before exiting.
11614 * s-usg5-3.h (USG5_3): Define it.
11615 * m-ibmps2-aix.h [USG5_3]: Define TEXT_START as 0.
11616 Don't define DATA_START or DATA_END or TEXT_END or DATA_SEG_BITS.
11617 Override various other symbols at end of file.
11619 1991-01-12 Jim Blandy (jimb@churchy.ai.mit.edu)
11621 * window.c (window-configuration-p): Closing paren needed. Added.
11623 * keyboard.c (command_loop_1): When displaying a message over an
11624 active minibuffer, call Fsit_for with three arguments, not two.
11626 1991-01-12 Richard Stallman (rms@mole.ai.mit.edu)
11628 * s-irix3-3.h (HAVE_SYSVIPC): Defined.
11630 1991-01-12 Jim Blandy (jimb@pogo.ai.mit.edu)
11632 * dispnew.c (buffer_posn_from_coords): Compute_motion starting
11633 from bufp[y] instead of counting from the top of the window.
11635 1991-01-11 Richard Mlynarik (mly@pizza.ai.mit.edu)
11637 * window.c (window-configuration-p): Needed. Added.
11639 1991-01-11 Jim Blandy (jimb@churchy.ai.mit.edu)
11641 * dispnew.c (buffer_posn_from_coords): Remember to deduce space
11642 for the line continuation markers and the window separators from
11645 1991-01-11 Richard Stallman (rms@mole.ai.mit.edu)
11647 * m-tower32v3.h (VALBITS, GCTYPEBITS): Use 26 bits for pointer.
11649 1991-01-10 Richard Stallman (rms@mole.ai.mit.edu)
11651 * fileio.c (Fcopy_file): Always close descriptors.
11653 * s-sunos4.h: read, write, open and close are interruptable.
11655 1991-01-09 Jim Blandy (jimb@churchy.ai.mit.edu)
11657 * xterm.c, dispnew.c (pixel_to_char_translation): Renamed to
11658 pixel_to_glyph_translation, and rewritten. Just get coordinates,
11659 don't return anything.
11660 (buffer_posn_from_coords): New function - given a window and
11661 co-ordinates on the screen, find the buffer position at those
11664 1991-01-08 Jim Blandy (jimb@geech.ai.mit.edu)
11666 * alloc.c (Fmake_byte_code): Flesh out docstring.
11668 * window.c (window_loop): Pick the first window correctly, even
11671 * dispnew.c (scroll_screen_lines): Don't forget to call
11672 update_begin at the top of the down-scrolling section.
11673 And rotate by amount, not -amount, in the up-scrolling section.
11675 * xterm.h (MAX_FONTS, x_font_table, n_fonts): Removed external
11676 declarations for these variables, since they're declared static in
11677 xterm.c and not used elsewhere.
11678 * xterm.c (MAX_FONTS): Moved definition of this to here from
11681 * xterm.c (x_new_font): If you can't find the requested font,
11682 return a code which indicates this, instead of calling abort.
11684 1991-01-07 Jim Blandy (jimb@churchy.ai.mit.edu)
11686 * xdisp.c (redisplay, display_mode_line): To test
11687 Vglobal_minibuffer_screen for validity, you must check that its
11688 type is Lisp_Screen; comparing it to Qnil isn't good enough.
11690 * screen.c (syms_of_screen): Initialize Vglobal_minibuffer_screen
11691 to Qnil; otherwise, it inhibits decent redisplay (is that another
11694 * dispnew.c (init_display): Make sure that the standard input is a
11696 * emacs.c (main): Not here, since we don't know yet if we want to
11697 use a window system of some sort.
11699 * xfns.c (x_make_gc): Delete code to support default_face and
11700 highlight_face, since they're part of the interval code, and
11701 shouldn't be installed yet.
11703 * dispnew.c (init_display): Calculate_costs expects a screen
11704 parameter; pass selected_screen, instead of nothing.
11706 * search.c (Freplace_match): Protect STRING.
11707 * process.c (run_filter): New function.
11708 (read_process_output, exec_sentinel): Use run_filter to call the
11709 process's filter function.
11710 (status_notify): GCPro MSG.
11711 * process.c (Fopen_network_stream): Protect various args.
11712 * print.c (Fprin1_to_string, Fprint): Protect OBJ.
11713 * lread.c (Feval_region): Check type of B.
11714 * keymap.c (describe_alist): Protect ELT_PREFIX and TEM2.
11715 (describe_vector): Likewise for ELT_PREFIX and TEM1.
11717 1991-01-06 Richard Stallman (rms@mole.ai.mit.edu)
11719 * sysdep.c (init_sys_modes): Turn off VSUSP and V_DSUSP if they exist.
11722 1991-01-05 Jim Blandy (jimb@spiff.ai.mit.edu)
11724 * xselect.c (x_answer_selection_request): For incremental, set
11725 format to 32 and send only 1 element. Pass the address of size,
11727 (x_selection_arrival): For incremental, delete the property
11728 containing the size of the transfer. This generates a
11729 PropertyNotify to the owner, starting the exchange.
11731 * xrdb.c (get_user_app): Pass correct number of parameters to
11734 * xfns.c (x_window): Don't use backing store or saveunders; they
11735 seem to slow down suns.
11736 (x_icon): Set the InputHint to the window manager to False.
11737 (x_make_gc): Initialize gc_values.line_width to zero before
11738 creating the normal video GC, since it uses it. And set the
11739 default_face and hilite_face gcs here.
11740 (install_vertical_scrollbar): Add 2 to thumbdown y position, and
11743 * insdel.c (insert, del_range): Use SET_PT rather than assigning
11745 * window.c (Fselect_window): Here too.
11747 * xdisp.c (redisplay_all_windows): Removed static declaration for
11748 this nonexistent function.
11750 1991-01-04 Jim Blandy (jimb@pogo.ai.mit.edu)
11752 * window.c (window_loop): Neatened up. MINI being non-zero now
11753 makes it recognize active minibuffer windows. Iterates properly
11754 over multiple screens when asked nicely.
11755 (Fget_lru_window, Fget_largest_window): SCREENS arguments are now
11756 declared as a Lisp_Object, and documented.
11757 (Fget_buffer_window): SCREENS argument is now documented.
11758 (Fdelete_other_windows): Delete other windows on the argument
11759 window's screen, not the current screen.
11761 * screen.c (window_from_coordinates): Changed other reference to
11762 Fnext_window to use next_screen_window; see below.
11764 * window.c (Fnext_window, Fprevious_window): Accept non-nil, non-t
11765 values for mini, and don't turn off all-screens when mini is t but
11766 there is no global minibuffer screen. Remove screen_{root,mini}
11768 (Fother_window): Added second argument all_screens.
11770 * undo.c (record_delete): Removed dead variable llength.
11772 * data.c (Qkeyp, Fkeyp): Removed these and supporting code.
11773 * keymap.c (Fsingle_key_description): Report an error instead of
11774 calling wrong_type_argument.
11775 * lisp.h (Qkeyp): Removed external declaration for this.
11777 1991-01-03 Richard Stallman (rms@mole.ai.mit.edu)
11779 * search.c (search_buffer): Return starting position if count == 0.
11781 1991-01-02 Jim Blandy (jimb@pogo.ai.mit.edu)
11783 * scroll.c (do_scrolling): Use correct limits on loop to clear
11784 lines just inserted--old version lost a line.
11786 * screen.c: #ifdef HAVE_X_WINDOWS, #include xterm.h
11787 (Ffocus_screen, Funfocus_screen): Use Joe's new definitions, and
11788 only define these functions ifdef HAVE_X_WINDOWS.
11789 (window_from_coordinates): Use next_screen_window instead of
11790 Fnext_window, so that global minibuffers work.
11792 * lread.c (syms_of_read): Don't forget to defsubr
11793 read-char-exclusive.
11795 * lisp.h (Fscreenp, Fselect_screen, Ffocus_screen)
11796 (Funfocus_screen, Fselected_screen, Fwindow_screen)
11797 (Fscreen_root_window, Fscreen_selected_window, Fscreen_list)
11798 (Fnext_screen, Fdelete_screen, Fread_mouse_position)
11799 (Fset_mouse_position, Fmake_screen_visible, Fmake_screen_invisible)
11800 (Ficonify_screen, Fdeiconify_screen, Fscreen_visible_p)
11801 (Fvisible_screen_list, Fscreen_parameters)
11802 (Fmodify_screen_parameters, Fscreen_pixel_size, Fscreen_height)
11803 (Fscreen_width, Fset_screen_height, Fset_screen_width)
11804 (Fset_screen_size, Fset_screen_position, Fcoordinates_in_window_p)
11805 (Flocate_window_from_coordinates, Frubber_band_rectangle): Added
11806 extern declarations for all these.
11808 * lisp.h (Qscreenp): Added an extern declaration for this.
11810 * lisp.h (DBL_DIG): Added constant for the maximum number of
11811 decimal digits a float could print to. Used in print.c.
11813 * keymap.c (Fkey_description): Produce pretty descriptions of
11814 mouse and window system events too.
11815 (Fsingle_key_description): Signal an error if obj is not a key.
11817 * data.c (Fkeyp, Qkeyp): Added predicate to recognize things which
11818 can be bound - this includes keys, symbols (for function keys and
11819 window system events), and conses (for mouse events).
11820 * lisp.h (Qkeyp): Added external declaration for this.
11822 * keyboard.c (Frecursive_edit): Don't specbind the standard IO here.
11823 (recursive_edit_1): Do it here, and don't forgot to unbind_to.
11825 (command_loop_1): Reset no_redisplay after mouse commands.
11827 (classify_object): Place the object in read_key_sequence_cmd.
11829 (Fread_key_sequence): Recognize that when read_key_sequence
11830 returns -1 or -2, it's a mouse event or window system event.
11832 1991-01-01 Jim Blandy (jimb@pogo.ai.mit.edu)
11834 * fileio.c (Fwrite_region): We should dereference GPT_ADDR[-1]
11835 before comparing it to '\n' for VMS cruft.
11836 (Fdo_auto_save): Don't call run-hooks before it's defined. This
11837 only happens before emacs is dumped, when loading inc-vers.el.
11839 * eval.c (Fsignal): TOTALLY_UNBLOCK_INPUT here.
11842 (Feval): We use argvals[0..5], so declare it to have six elements
11843 instead of just five.
11845 1990-12-30 Richard Stallman (rms@mole.ai.mit.edu)
11847 * eval.c (Fsignal): Don't ever return.
11848 Call error instead if user tries to use debugger to return.
11850 * eval.c (unbind_to): New second arg is value to return. gcpro it.
11851 All callers changed to pass the arg; if a caller uses unbind_to
11852 just before returning, it passes as this arg the value it wants
11853 to return, then it returns whatever comes back.
11855 1990-12-28 Jim Blandy (jimb@geech.ai.mit.edu)
11857 * print.c (print): Put obj in a non-register variable so
11858 we could gcpro it. Also fixed some syntax errors.
11860 * editfns.c (Fformat): Declare nstrings, and declare nstrings and
11861 strings in a local block.
11862 (Fformat): XFLOAT(args[n]) isn't a float; ->data is.
11864 1990-12-27 Richard Stallman (rms@mole.ai.mit.edu)
11866 * m-tower32.h: Add comments for how to optimize.
11867 * m-tower32v3.h: New file.
11869 * fileio.c (Fwrite_region): Save errno around unlock_file.
11871 1990-12-26 Richard Stallman (rms@mole.ai.mit.edu)
11873 * editfns.c (Fformat): Handle floats. Convert between int and float.
11874 Don't truncate value at null char coming from doprnt.
11875 * doprnt.c (doprnt): Replace tembuf with malloced buff if too small.
11876 Handle %e, %f and %g.
11878 1990-12-25 Richard Stallman (rms@mole.ai.mit.edu)
11880 * abbrev.c (Fexpand_abbrev): Use insert_from_string, not insert.
11881 (Funexpand_abbrev): Likewise.
11882 * doc.c (Fsubstitute_command_keys): Likewise.
11883 * editfns.c (Finsert, Finsert_before_markers): Likewise.
11884 * minibuf.c (Fminibuffer_complete_word): Likewise.
11885 * mocklisp.c (Finsert_string): Use insert1.
11886 * vmsfns.c (Fdefault_subproc_input_handler): Likewise.
11888 * print.c: Don't use strout for the text of a Lisp string.
11889 (print_string): New function to use instead.
11890 (print): Use print_string when no escapes needed.
11891 When printing with escapes, protect the string and check addr often.
11893 1990-12-24 Richard Stallman (rms@mole.ai.mit.edu)
11895 * insdel.c (insert_from_string): New function.
11897 1990-12-20 Richard Stallman (rms@mole.ai.mit.edu)
11899 * term.c (ins_del_lines): Handle scroll region wrt chars_wasted.
11901 1990-12-16 Jim Blandy (jimb@pogo.ai.mit.edu)
11903 * Globally renamed InsStr to insert_string.
11905 1990-12-15 Richard Stallman (rms@mole.ai.mit.edu)
11907 * s-usg5-3.h (USG_SHARED_LIBRARIES): Define it.
11909 * m-intel386.h (C_SWITCH_MACHINE): New macro.
11911 1990-12-15 Jim Blandy (jimb@pogo.ai.mit.edu)
11913 * alloc.c (STRING_FULLSIZE): Use sizeof(struct Lisp_String)
11914 instead of sizeof(int).
11916 1990-12-14 Jim Blandy (jimb@pogo.ai.mit.edu)
11918 * keyboard.c (Fread_key_sequence): Clear this_command_key_count
11919 here; who unfixed this?
11921 1990-12-12 Richard Stallman (rms@mole.ai.mit.edu)
11923 * abbrev.c (Fdefine_abbrevs): Don't crash when EXPANSION is nil.
11925 1990-12-11 Richard Stallman (rms@mole.ai.mit.edu)
11927 * eval.c (Fmacroexpand): Change handling of (foo . bar) in ENV.
11929 1990-12-10 Richard Stallman (rms@mole.ai.mit.edu)
11931 * m-pmax.h (SYSTEM_MALLOC): Define it.
11933 * process.c (wait_reading_process_input): Ignore failure with EIO.
11935 1990-12-09 Richard Stallman (rms@mole.ai.mit.edu)
11937 * m-iris4d.h (LOAD_AVE_CVT): Divide by 1024.
11938 (LIB_STANDARD): Use -lbsd first.
11939 (LIBS_MACHINE): Don't use -lbsd here.
11940 * s-irix3-3.h (ADDR_CORRECT): Macro deleted.
11941 (LIBS_MACHINE): Macro deleted.
11942 (LDAV_SYMBOL): Delete the `_' from start of symbol.
11944 * process.c (create_process): Delete duplicate sigsetmask.
11946 * m-ibmrt.h (RTPC_REGISTER_BUG, SHORT_CAST_BUG): Macros deleted.
11947 (C_SWITCH_MACHINE): Use -D to define alloca.
11948 (SIGN_EXTEND_CHAR): Use a cast.
11950 1990-12-05 Jim Blandy (jimb@pogo.ai.mit.edu)
11952 * keyboard.c (Fsuspend_emacs): Protect STUFFSTRING.
11953 (cmd_error): Protect TAIL while printing.
11954 (input_poll_signal, start_polling): Use polling_period.
11955 (syms_of_keyboard): Initialize it and make it a Lisp var.
11957 * fns.c (Fyes_or_no_p): Protect PROMPT for entire loop.
11959 * fileio.c (Frename_file): Protect args.
11960 * fileio.c (Fadd_name_to_file): Protect the args.
11961 (Fcopy_file, Fmake_symbolic_link): Likewise.
11962 (Finsert_file_contents): Protect FILENAME.
11964 1990-12-04 Jim Blandy (jimb@geech.ai.mit.edu)
11966 * eval.c (Fbacktrace): gcpro TAIL.
11967 * emacs.c (Fkill_emacs): gcpro ARG.
11968 * editfns.c (Fformat): Remove remains of gcpro'd args.
11970 * dispnew.c (syms_of_dispnew): Don't clobber Vwindow_system_version
11973 * dired.c (file_name_completion): Check that FILE is a string.
11975 * buffer.c (Fbury_buffer): Don't init BUF1.
11977 * doc.c (Fsubstitute_command_keys): Protect STR and don't keep a
11978 pointer to the middle of it.
11980 * m-hp9000s300.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Override for BSD.
11982 * process.c (sigchld_handler): Clear synch_process_alive if the
11983 dying process isn't in the table at all.
11984 * callproc.c (call_process_cleanup): Clear synch_process_alive.
11986 1990-12-03 Jim Blandy (jimb@geech.ai.mit.edu)
11988 * callproc.c (Fcall_process): Change synch_process_pid to
11989 synch_process_alive, as a general flag that we are waiting for
11990 a synchronous process to die. This obviates the need to block
11991 SIGCHLDs until we know the pid.
11992 * sysdep.c (wait_for_termination): Wait for synch_process_alive to
11995 * process.c (sigchld_handler): If pid not recognized, look for a
11996 process recorded with pid -1.
11997 (create_process): Set pid to -1 before the fork.
11998 Store correct pid right after the fork.
11999 Don't change sigchld handler on system V.
12001 * process.c (Fstart_process): Set BUFFER before other string vars
12002 so a gc in Fget_buffer_create won't clobber them.
12004 1990-11-30 Richard Stallman (rms@mole.ai.mit.edu)
12006 * keyboard.c (read_command_char): Save and restore getcjmp.
12008 1990-11-29 Richard Stallman (rms@mole.ai.mit.edu)
12010 * process.c (status_convert): Use WRETCODE for exited process.
12012 1990-11-26 Richard Stallman (rms@mole.ai.mit.edu)
12014 * s-usg5-4.h (LIB_STANDARD): Add libucb.a.
12015 (NEED_PTEM_H): Define this instead of NEED_SIOCTL.
12016 * m-ibm370aix.h, m-ibmps2-aix.h, m-ibmrs6000.h (NEED_SIOCTL):
12018 (NEED_PTEM_H): Likewise.
12020 * s-sunos4.h (O_NDELAY): Don't define this.
12022 * print.c (Fwith_output_to_temp_buffer): Don't eval first arg twice.
12024 1990-11-22 Richard Stallman (rms@mole.ai.mit.edu)
12026 * m-hp9000s300.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Alternate defs for BSD.
12028 1990-11-21 Jim Blandy (jimb@churchy.ai.mit.edu)
12030 * dispnew.c (init_display): Check if we're using a window system
12031 before trying to initialize the terminal. If someone has
12032 indicated that they want to use a window system, we shouldn't
12033 bother initializing the terminal. This is especially important
12034 when the terminal is so dumb that emacs gives up and doesn't bother
12035 using the window system.
12037 1990-11-20 Jim Blandy (jimb@churchy.ai.mit.edu)
12039 * print.c (Fexternal_debugging_output): Added new function which
12040 writes a character to stderr, for use when debugging emacs with
12043 1990-11-14 Jim Blandy (jimb@churchy.ai.mit.edu)
12045 * dispnew.c (window_change_signal): Used to assume that SIGWINCHes
12046 always applied to the currently selected screen. Now it scans the
12047 list of screens for a screen controlled by termcap, and changes that
12050 1990-11-13 Richard Stallman (rms@mole.ai.mit.edu)
12052 * fileio.c (err_str): New macro.
12053 (Finsert_file_contents, Fwrite_region): Use it in error messages.
12055 1990-11-12 Richard Stallman (rms@mole.ai.mit.edu)
12057 * insdel.c (del_range): Supply missing arg to gap_left.
12059 1990-11-11 Jim Blandy (jimb@churchy.ai.mit.edu)
12061 * regex.c: Disabled definition of NULL from lisp.h
12063 * crt0.c (_start): Added static declaration of start1.
12065 * xfns.c: Added definition for Vbar_cursor.
12066 (syms_of_xfns): Added DEFVAR_LISP clause for Vbar_cursor.
12068 * xterm.c (XTread_socket): Passed &event.xkey instead of &event to
12069 XLookupString, so things will typecheck nicely.
12071 * Globally rewrote all references to Vmouse_buffer to use the
12072 buffer viewed by Vmouse_window instead.
12074 * alloc.c (xmalloc, xrealloc): Removed calls to
12075 {un,}hold_window_change. The new SIGWINCH-handling code and
12076 do_pending_window_change make them unnecessary.
12078 1990-11-11 Richard Stallman (rms@mole.ai.mit.edu)
12080 * process.c (wait_reading_process_input): Make Available static;
12081 don't clear when a nonzero bit is found.
12083 * fns.c (Fnthcdr): Stop loop if reach end.
12085 * dispnew.c: Include fcntl.h if HAVE_TERMIO.
12087 1990-11-10 Jim Blandy (jimb@pogo.ai.mit.edu)
12089 * alloc.c (make_uninit_string): No longer declared static, and
12090 extern declaration added to lisp.h. It's used in dired.c.
12092 1990-11-08 Jim Blandy (jimb@geech.ai.mit.edu)
12094 * dispnew.c (do_pending_window_change): Changed incorrect call to
12095 change_window_size_1 into a loop which scans list of screens and
12096 resizes those that need resizing.
12098 1990-11-06 Richard Stallman (rms@mole.ai.mit.edu)
12100 * m-ibmrs6000.h (CANNOT_DUMP): Define it.
12102 * process.c (create_process): Unblock SIGCHLD in the child.
12104 * process.c (wait_reading_process_input): Don't read input
12105 from more than one process between calls to `select'.
12107 1990-11-02 Richard Stallman (rms@mole.ai.mit.edu)
12109 * callint.c (syms_of_callint):
12110 Initialize Vprefix_arg and Vcurrent_prefix_arg.
12112 1990-11-01 Richard Stallman (rms@mole.ai.mit.edu)
12114 * dired.c (Fdirectory_files): Avoid using MAXNAMLEN.
12116 1990-10-31 Jim Blandy (jimb@churchy.ai.mit.edu)
12118 * process.c (MAXDESC): Enclosed definition in `#ifndef ... #endif'
12121 * bytecode.c: Included syntax.h to declare syntax_code_spec.
12123 * syntax.h (syntax_spec_code): Added extern declaration for this.
12125 * floatfns.c (float_error): Added static declaration for this at
12126 the top of the file.
12128 1990-10-29 Jim Blandy (jimb@pogo.ai.mit.edu)
12130 * indent.c (position_indentation): Renamed stray `bf_cur' to
12131 `current_buffer', and old `CharAt' usages to `FETCH_CHAR'.
12132 * buffer.c (Fbuffer_disable_undo): The symbol object for this
12133 subroutine was still named Sbuffer_flush_undo, and the symbol's
12134 lisp name was similarly out of date. Renamed both, and added an
12135 alias in lisp/subr.el .
12137 * keyboard.c (Fset_input_mode): A `meta_flag' had escaped being
12138 renamed to `meta_key'.
12140 1990-10-29 Richard Stallman (rms@mole.ai.mit.edu)
12142 * process.c (Fprocess_send_region, Fprocess_send_string):
12143 Break data into bunches less than 500 bytes.
12144 Accept process output between bunches.
12145 ??? Must update manual.
12147 1990-10-29 Jim Blandy (jimb@pogo.ai.mit.edu)
12149 * window.c (Fset_window_start, window_scroll): Renamed stray
12150 references to `redo_mode_line' to `update_mode_line'.
12152 * xdisp.c (decode_mode_spec): Renamed stray references to `bf_cur'
12153 and `bf_modified' to `current_buffer' and `MODIFF'.
12155 1990-10-25 Jim Blandy (jimb@pogo.ai.mit.edu)
12157 * environ.h: File created - contains declarations for users of the
12158 environment variable list.
12159 * callproc.c (environ): Removed extern declaration of environ, and
12160 included environ.h.
12162 1990-10-24 Jim Blandy (jimb@pogo.ai.mit.edu)
12164 * callproc.c (init_callproc): Removed extern declaration of
12165 environ - it's already taken care of at the top of the file.
12167 * mocklisp.h: File created - externally declares certain
12168 functions defined in mocklisp.c.
12169 * lisp.h (Fread_buffer, Fread_key_sequence): Added extern
12170 declarations for these functions.
12171 * callint.c (ml_apply, Fread_buffer, Fread_key_sequence): Removed
12172 extern declarations for these functions, included mocklisp.h.
12173 Moved external declaration of index to top of file.
12175 1990-10-24 Richard Stallman (rms@mole.ai.mit.edu)
12177 * ymakefile (GNULIB_VAR): New make variable.
12178 (LIBES): Use that, not GNULIB directly.
12179 (GNULIB): Don't define if already defined.
12181 1990-10-23 Jim Blandy (jimb@geech.ai.mit.edu)
12183 * indent.h (last_known_column_point): Added extern declaration for
12185 * buffer.c (last_known_column_point): Removed extern declaration for
12186 this variable, included indent.h.
12187 (Vprin1_to_string_buffer): Removed extern declaration - it's
12190 * lisp.h (catchlist, backtrace_list, stack_bottom)
12191 (current_global_map): Added extern declarations for these
12193 * alloc.c: Removed external declarations for catchlist,
12194 backtrace_list, and stack_bottom, since this file includes
12196 * callint.c (current_global_map): Removed extern declaration.
12198 * search.h: New file - declares searchbuf.
12199 * dired.c (Fdirectory_files): Removed extern declaration of
12200 searchbuf, included search.h.
12202 * Globally renamed `CHAR_AT_POSITION' to `FETCH_CHAR'.
12204 1990-10-22 Richard Stallman (rms@mole.ai.mit.edu)
12206 * keyboard.c (quit_char): New variable.
12207 (init_keyboard): Initialize it.
12208 (Fset_input_mode): New optional arg to set quit_char.
12209 (command_loop_1, read_char, kbd_buffer_store_char):
12210 (read_avail_input): Use quit_char, not C-g.
12211 * sysdep.c (init_sys_modes): Use quit_char to set special chars.
12212 * xterm.c (x_term_init): Pass new arg to Fset_input_mode.
12214 1990-10-22 Jim Blandy (jimb@pogo.ai.mit.edu)
12216 * xdisp.c: Added `extern' declaration for command_loop_level.
12218 * term.c (term_init): Internal cleanups.
12219 (write_glyphs): Renamed argument `start' to `string'.
12221 1990-10-21 Richard Stallman (rms@mole.ai.mit.edu)
12223 * xterm.c (FIONREAD): Undefine if BROKEN_FIONREAD.
12224 (SIGIO): Undefine if no FIONREAD.
12225 (ioctl.h, termio.h, strings.h, string.h): Include them before those.
12227 * alloc.c (make_vector_from_string, Fvector_from_string):
12230 * sysdep.c (select): Handle timeout == 0. Add var local_timeout.
12232 * alloc.c (make_uninit_string, make_float): Use VALIDATE_LISP_STORAGE.
12233 (Fcons, Fmake_vector, Fmake_symbol, Fmake_marker): Likewise.
12234 (Fmake_vector_from_list): Likewise.
12235 (VALIDATE_LISP_STORAGE): New macro.
12237 1990-10-20 Richard Stallman (rms@mole.ai.mit.edu)
12239 * dispnew.c (scrolling): Give up if some new lines not enabled.
12240 (update_screen): Rework outq logic.
12242 * xdisp.c (message, message1): Clear noninteractive_need_newline.
12244 1990-10-19 Jim Blandy (jimb@pogo.ai.mit.edu)
12246 * scroll.c (do_scrolling): Allocate queue using alloca instead
12247 of variable-sized arrays.
12249 1990-10-19 Richard Stallman (rms@mole.ai.mit.edu)
12251 * buffer.c: Doc fix.
12253 1990-10-18 Jim Blandy (jimb@pogo.ai.mit.edu)
12255 * print.c (internal_with_output_to_temp_buffer): Install an
12256 unwind_protect to make sure the current buffer is restored.
12258 * minibuf.c (read_minibuf): Call recursive_edit_1 instead of
12259 Frecursive_edit, to support the new command_loop_level
12262 * malloc.c (calloc): Added this function, in case something linked
12263 with emacs calls it.
12265 * lread.c (openp): Since access returns 0 on success, change that
12266 into a 1 before returning it.
12268 * lisp.h: Deleted DEFSIMPLE and DEFPRED, since they're no
12271 1990-10-18 Richard Stallman (rms@mole.ai.mit.edu)
12273 * m-intel386.h (alloca): Define as builtin, if using GCC.
12275 * m-att3b.h (NEED_PTEM_H): Define this for 3b2.
12277 * s-aix3-1.h (SYSV_SYSTEM_DIR): Define it.
12279 * print.c (print): Improve error message for bad data type.
12281 1990-10-18 Jim Blandy (jimb@pogo.ai.mit.edu)
12283 * keymap.c (Flookup_key): Rearranged to use an index into the key
12284 sequence instead of a pointer and a level counter.
12286 1990-10-18 Richard Stallman (rms@mole.ai.mit.edu)
12288 * floatfns.c (sinh, cosh): On VMS, define to use exp.
12289 (IN_FLOAT): Detect errors reported using errno.
12290 (float_error): Define function unconditionally.
12291 Reestablish handler when called, if not BSD.
12293 1990-10-17 Richard Stallman (rms@mole.ai.mit.edu)
12295 * m-delta.h (C_DEBUG_SWITCH): Don't define this.
12297 1990-10-17 Jim Blandy (jimb@pogo.ai.mit.edu)
12299 * keyboard.c (command_loop): Made call to command_loop_2
12300 conditional on minibuf_level too (it used to be only conditional
12301 on command_loop_level), since this is what 18.56 and all the other
12302 functions in Emacs 19 keyboard.c do.
12304 1990-10-16 Jim Blandy (jimb@pogo.ai.mit.edu)
12306 * keyboard.c (read_char): Don't echo dash if there is already
12307 something else being displayed in the echo area.
12309 1990-10-16 Richard Stallman (rms@mole.ai.mit.edu)
12311 * process.c (status_convert): If killed by signal, use WTERMSIG.
12313 * data.c (arith_error): Reestablish handler on VMS.
12315 * keyboard.c (start_polling, stop_polling): New functions.
12316 (input_poll_signal): New function, handles periodic alarms.
12317 (read_command_char): Turn off polling temporarily.
12318 * xdisp.c (redisplay): Likewise.
12319 * process.c (wait_reading_process_input, create_process): Likewise.
12321 1990-10-16 Jim Blandy (jimb@pogo.ai.mit.edu)
12323 * indent.c (position_indentation): Instead of using CharAt, use a
12324 pointer to scan the buffer - this is faster.
12326 * emacs.c (Fdump_emacs): The conditional expression which passes
12327 symname to unexec was missing a `: 0'.
12329 * dispnew.c (rotate_vector): Was rotating backwards.
12331 1990-10-15 Jim Blandy (jimb@pogo.ai.mit.edu)
12333 * dired.c (file_name_completion): Use scmp to compare names.
12335 1990-10-15 Richard Stallman (rms@mole.ai.mit.edu)
12337 * process.c (create_process): Don't turn off handling of SIGCHLD.
12338 Just set a flag if a signal comes in when not wanted.
12339 (create_process_sigchld): New signal handler.
12341 1990-10-14 Richard Stallman (rms@mole.ai.mit.edu)
12343 * bytecode.c: De-implement Bmark, Bset_mark, Bscan_buffer.
12344 Mark Bsymbol_function, Bfset, Bread_char as obsolete.
12345 Implement codes Bmult, Bforward_char...Bwiden,
12346 and Bstringeqlsign...Bintegerp.
12348 1990-10-12 Jim Blandy (jimb@pogo.ai.mit.edu)
12350 * buffer.c (list_buffers_1): Select the buffer given in
12351 Vstandard_output using Fset_buffer instead of set_buffer_internal.
12353 * buffer.c (set_buffer_internal): Deleted variable swb - it's
12356 * buffer.c (count_modified_buffers): Function deleted - it's
12359 1990-10-11 Jim Blandy (jimb@pogo.ai.mit.edu)
12361 * buffer.c (reset_buffer_local_variables, buffer_local_variables):
12362 added support for default values for buffer local variables which
12363 do not have a DEFVAR_PER_BUFFER, as described in the comments
12364 above buffer_local_flags.
12366 * buffer.c (Fget_buffer_create): Move initialization of
12367 b->save_length and b->last_window_start to reset_buffer.
12369 1990-10-11 Richard Stallman (rms@mole.ai.mit.edu)
12371 * m-ibmps2-aix.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Define them.
12372 (C_DEBUG_SWITCH): Delete -fstrength-reduce.
12374 * unexmips.c (unexec): Add conditional for MIPS2.
12376 1990-10-10 Richard Stallman (rms@mole.ai.mit.edu)
12378 * m-iris4d.h (LIBS_MACHINE): Use -lsun, don't use -lPW.
12380 * unexelf.c: New file.
12381 * s-usg5-4.h: New file.
12382 * unexec.c [USG_SHARED_LIBARARIES]: Numerous changes under this cond.
12383 (copy_text_and_data): New second argument.
12385 1990-10-10 Jim Blandy (jimb@pogo.ai.mit.edu)
12387 * alloc.c (gc_sweep): Only unchain markers that are in a buffer.
12389 1990-10-10 Mike Rowan (mtr@apple-gunkies)
12391 * process.c: Merged in more changes from 18.56: update_status,
12392 FD_SET changes (define all the FD_ macros). Other small changes.
12394 1990-10-09 Jim Blandy (jimb@churchy.ai.mit.edu)
12396 * xdist.c (decode_mode_spec): Reworked code to handle %* - it now
12397 goes like `if return else if return else ... return' instead of
12398 using a conditional operator.
12400 * xdist.c (fmodetrunc): Function deleted - no longer used.
12402 1990-10-09 Richard Stallman (rms@mole.ai.mit.edu)
12404 * xdisp.c (decode_mode_spec): Handle dashes in wide windows.
12406 1990-10-08 Richard Stallman (rms@mole.ai.mit.edu)
12408 * sysdep.c (sys_open, sys_close, sys_read, sys_write):
12409 Don't handle EAGAIN.
12411 * process.c (wait_reading_process_input): Handle nread==-1
12412 for O_NDELAY like O_NONBLOCK.
12414 * s-vms.h (LINK_CTRL_SHARE): Turn on again.
12415 tranle@intellicorp.com found it needed in VMS 5.3.
12417 * emacs.c (main): Move VMS declaration of environ outside function.
12419 * vmsfns.c (Fdefault_subproc_input_handler): InsCstr -> insert.
12421 1990-10-07 Richard Stallman (rms@mole.ai.mit.edu)
12423 * m-pmax.h (START_FILES): Handle crt0.o in different dir in Ultrix 4.0.
12425 * s-sunos4.h (O_NDELAY): Define only if not defined.
12427 1990-10-06 Jim Blandy (jimb@pogo.ai.mit.edu)
12429 * sysdep.c (tabs_safe_p, get_screen_size): Renamed `sg' to `tty'.
12431 * sysdep.c (init_baud_rate): Rearranged code for calculating
12434 1990-10-05 Jim Blandy (jimb@pogo.ai.mit.edu)
12436 * search.c (Freplace_match): Used Finsert_buffer_substring instead
12437 of place and deleted place.
12439 * search.c (place): Function removed.
12441 * process.c (count_active_processes): Deleted; not used.
12443 * minibuf.c (read_minibuf): Renamed `prefix' argument to `initial'.
12445 1990-10-01 Jim Blandy (jimb@pogo.ai.mit.edu)
12447 * lread.c (Fload): Renamed `MISSING-OK' to `NOERROR'.
12449 * keyboard.c (describe_map): Renamed `keys' to `string'.
12451 * keyboard.c `Vauto_save_interval' unrenamed back to
12452 `auto-save-interval'.
12454 * keymap.c (Fdefine_key, Flookup_key): Renamed arguments called
12457 1990-10-01 Richard Stallman (rms@mole.ai.mit.edu)
12459 * sysdep.c (sys_open, sys_close, sys_read, sys_write):
12460 Handle EAGAIN like EINTR.
12462 1990-09-30 Richard Stallman (rms@mole.ai.mit.edu)
12464 * insdel.c (gap_left, gap_right): Use bcopy if requested.
12465 New config parameters GAP_USE_BCOPY, BCOPY_SAFE_UPWARD,
12466 and BCOPY_SAFE_DOWNWARD.
12468 * eval.c (find_handler_clause): Bind debug-on-error to nil.
12469 (Qdebug_on_error): New variable.
12470 (syms_of_eval): Initialize that.
12472 * sysdep.c: Include various headers for ptys, for hpux, aix, and sysv.
12474 * dispnew.c (preserve_other_columns): Fix args to second bcopy.
12476 1990-09-30 Jim Blandy (jimb@pogo.ai.mit.edu)
12478 * keyboard.c: `auto_save_interval' renamed to
12479 `Vauto_save_interval', since it *is* a lisp-accessible variable.
12481 * fileio.c (Fdo_auto_save): Call record_auto_save so that
12482 read_char knows when we've auto-saved.
12484 * keyboard.c (record_auto_save): Added function to support the new
12485 auto-save conditions.
12487 * keyboard.c (read_char): Use num_input_chars and last_auto_save
12488 instead of keystrokes to decide when to autosave.
12490 * keyboard.c (keystrokes): Variable deleted.
12492 1990-09-30 Mike Rowan (mtr@spike.ai.mit.edu)
12494 * keyboard.c, alloc.c: Added malloc warning code from
12497 * dispnew.c, xdisp.c: (un)hold_window_change no longer exists;
12498 added do_pending_window_change from 18.56.
12500 * process.c, process.h: Add the raw_status_low and raw_status_high
12503 1990-09-29 Richard Stallman (rms@mole.ai.mit.edu)
12505 * alloca.s: Handle ns32000 like ns16000.
12507 * m-ns32000.h: New file.
12509 * lread.c (Fload): Warn if elc file older than source file.
12511 * ymakefile (LIB_X11_LIB): New parameter, default -lX11.
12514 * Makefile (xmakefile): Delete junk.c at the beginning.
12516 * hftctl.c: Include termios.h before termio.h.
12517 Define TCGETS and TCSETS if nec.
12518 Give some forward declarations for the static functions.
12519 Reformat in usual GNU style.
12521 * m-orion105.h (LOAD_AVE_TYPE, FSCALE): Changed from double and 1.0.
12523 * m-delta.h: New file.
12525 1990-09-28 Richard Stallman (rms@mole.ai.mit.edu)
12527 * fns.c (Frequire): Undo certain things on failure, like autoload.
12529 1990-09-28 Jim Blandy (jimb@pogo.ai.mit.edu)
12531 * fileio.c (Fwrite_region): Renamed variable `fd' to `desc' and
12532 changed argument to open from `1' to `O_WRONLY'.
12534 * fileio.c (O_WRONLY): Added clause to define this if not already
12537 * emacs.c (Fdump_emacs): Removed a_name variable.
12539 * emacs.c (Fkill_emacs): Removed code which asked about modified
12540 buffers and running subprocesses.
12542 * editfns.c (Fcurrent_time_string): Renamed variable `now' to
12545 * dispnew.c (update_line): Renamed variables `m1' and `m2' to
12546 `begmatch' and `endmatch'.
12548 * dispnew.c (update_screen): Use preempt_count as a limit instead
12549 of a counter; count with i instead.
12551 * dispnew.c (visible_bell, inverse_video, baud_rate)
12552 (Vwindow_system): Rearranged comments.
12554 1990-09-27 Richard Stallman (rms@mole.ai.mit.edu)
12556 * emacs.c (main) : Set the DISPLAY environment value when both of
12557 MAINTAIN_ENVIRONMENT and HAVE_X_WINDOW are defined.
12559 * m-convex.h (LIB_STANDARD, LIBS_MACHINE): Remove these, they
12560 cause an unnecessary C1/C2 dependency.
12562 * m-convex.h (LD_SWITCH_MACHINE): Use -e__start to specify
12563 where crt0.c begins.
12565 * m-convex.h (HAVE_SETSID): Define; must call setsid
12566 when creating an inferior with a different controlling tty.
12567 * process.c (create_process): Rearrange so that HAVE_SETSID
12568 will be seen when not under USG.
12570 * m-convex.h (S_IFMT etc): Define in case of posix compilation.
12572 * m-convex.h (FIRST_PTY_LETTER): Do it at runtime.
12573 * unexconvex.c (first_pty_letter): Routine to locate lowest pty.
12575 * unexconvex.c: Rewrite so it can cope with thread-local sections.
12577 * sysdep.c (select): Use process_tick and update_tick,
12580 1990-09-23 Richard Stallman (rms@mole.ai.mit.edu)
12582 * keyboard.c (Fsuspend_emacs): Check screen size after resume.
12584 1990-09-19 Richard Stallman (rms@mole.ai.mit.edu)
12586 * editfns.c: Doc fix.
12588 1990-09-18 Richard Stallman (rms@mole.ai.mit.edu)
12590 * window.c (Fsplit_window): Minor cleanup.
12592 1990-09-17 Richard Stallman (rms@mole.ai.mit.edu)
12594 * emacs.c (main) [USG_SHARED_LIBRARIES]: Call brk.
12596 1990-09-13 Richard Stallman (rms@mole.ai.mit.edu)
12598 * floatfns.c (float_error_arg): New variable.
12599 (IN_FLOAT): New arg; sets float_error_arg. All uses changed.
12600 (float_error): Use that value when signaling error.
12602 1990-09-11 Richard Stallman (rms@mole.ai.mit.edu)
12604 * unexaix.c, m-ibmr2.h, s-aix3-1.h: New files.
12606 * ymakefile (allocaobj): New variable. Used in otherobjs.
12607 Eliminates assignment of mallocobj using itself.
12608 (mallocobj): Handle SYSTEM_MALLOC without HAVE_ALLOCA.
12609 (xemacs): Use -nl option if HAVE_SHM.
12611 * sysdep.c: Change IBMRTAIX conditionals to AIX.
12612 Move hft.h to the top.
12613 [IBMR2AIX]: Use termios.h and change macros accordingly.
12614 (child_setup_tty): Change IBMRTAIX to AIX.
12615 (setpgrp_of_tty): Handle IBMR2AIX.
12616 (init_sys_modes): Handle IBMR2AIX. Output special things for AIX.
12617 (reset_sys_modes): Output special things for AIX.
12618 (hft_init, hft_reset): Conditionals for IBMR2AIX.
12620 * process.c: Change IBMRTAIX to AIX controlling time.h.
12621 [AIX]: Include sys/pty.h and unistd.h.
12622 (wait_reading_process_input): If AIX, handle EBADF differently.
12623 (create_process): Handle HAVE_SETSID. Change conditional to AIX.
12625 * lisp.h (XPNTR): New definition if HAVE_SHM.
12626 (NULL): Undef before defining.
12628 * emacs.c (main): If HAVE_SHM, call map_in_data.
12629 Use AIX, not IBMRTAIX, for signal conditional.
12630 (Fdump_emacs_data): New function if HAVE_SHM.
12631 (Fdump_emacs): Don't define if HAVE_SHM.
12633 * alloc.c (pure, PUREBEG): If HAVE_SHM, define place for a segment.
12635 1990-09-03 Mike Rowan (mtr@apple-gunkies)
12637 * sysdep.c: Added setup_pty from 18.56
12639 * process.c: Merged in 18.55->6 changes. Same for process.h
12642 redisplay_preserving_echo_area -> redisplay_preserve_echo_area
12643 SetBfp -> set_buffer_internal
12644 buffer_flush_undo -> buffer_disable_undo
12645 redo_mode_line -> update_mode_line (window.h)
12647 1990-08-31 Richard Stallman (rms@mole.ai.mit.edu)
12649 * data.c (Fmake_local_variable): If var is local when set, make it
12650 local now in this buffer.
12652 * data.c (Fstring_to_int): Finish eliminating second arg.
12654 * data.c (Faset): Require integer as third arg for string.
12656 1990-08-28 Richard Stallman (rms@mole.ai.mit.edu)
12658 * search.c: Doc fix.
12660 * screen.h (SCREEN_SCROLL_BOTTOM_VPOS): New macro.
12661 * xdisp.c (screen_bottom_vpos): Variable used if just one screen.
12662 (redisplay, try_window_id): Set that field in screen.
12663 * dispnew.c (scrolling, update_screen): New arg scroll_bottom_vpos.
12665 * dispnew.c (scroll_screen_lines): Mark newly empty lines as empty.
12666 (scrolling): Give up if any line in current_screen not enabled.
12668 1990-08-27 Roland McGrath (roland@churchy.ai.mit.edu)
12670 * dired.c (Ffile_attributes): Return the device number too (elt 11
12671 of the returned list).
12673 1990-08-27 Richard Stallman (rms@mole.ai.mit.edu)
12675 * sysdep.c (wait_for_kbd_input): Frob waiting_for_input here.
12676 * keyboard.c (kbd_buffer_read_command_char): Not here.
12678 * sysdep.c (wait_for_kbd_input): Clear process_ef before snarfing
12681 * fileio.c (Fdirectory_file_name): On VMS, leave space for log name.
12683 * sysdep.c (init_sys_modes): Clear process_ef only the first time.
12685 * vmsfns.c (process_exit): Logic of deletion was wrong.
12686 (Fspawn_subprocess): Correctly reuse existing struct process_list.
12688 1990-08-22 Richard Stallman (rms@mole.ai.mit.edu)
12690 * m-plexus.h (LD_SWITCH_MACHINE): New macro.
12692 1990-08-22 Joseph Arceneaux (jla@geech)
12694 * xterm.c (XTread_socket): Cleaned up #ifdefs prior to event
12695 reading loop. Also handle FIOSNBIO.
12697 1990-08-19 Joseph Arceneaux (jla@geech)
12699 * xterm.c (dumplyphs): Last vestige of MScreenWidth removed.
12700 * config.h: MScreenWidth, MScreenHeight definitions removed.
12702 1990-08-18 Joseph Arceneaux (jla@geech)
12704 * scroll.c (do_scrolling): Pass the correct sizes to bcopy.
12705 * dispnew.c (make_screen_glyphs): Likewise.
12707 1990-08-16 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12709 * dispnew.c (scroll_screen_lines, free_screen_glyphs): Only deal
12710 with the X components of screen_glyphs if SCREEN_IS_X.
12711 free_screen_glyphs now takes screen argument.
12713 * window.c (Fnext_window, Fprevious_window): Fixed typo. New
12714 behaviour: mini non-nil implies all_screens if global mini screen
12715 exists, implies current screen only if not.
12716 (Fdisplay_buffer): Simplification of multi-screen code.
12718 1990-08-15 Richard Stallman (rms@mole.ai.mit.edu)
12720 * buffer.c: Doc fix.
12722 1990-08-15 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12724 * dispnew.c (update_line): Simplification of pixel size code, only
12725 done if screen is X.
12726 (update_screen): Only set pixel stuff if screen is X.
12728 1990-08-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12730 * m-targon31.h (NO_REMAP): Definition removed.
12731 (SEGMENT_MASK): New macro.
12733 1990-08-14 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12735 * lread.c (eval-region): Don't set opoint to point, etc.
12736 Fnarrow_to_region from BEGV, not b.
12737 (eval-buffer): New subr, generalization of eval-current-buffer.
12738 (eval-current-buffer): Moved to elisp, in simple.el.
12740 * xfns.c (x_y_pos): Nuked. Replaced by pixel_to_char_translation
12741 and notice_mouse_movment (dispnew.c, xterm.c).
12742 (Fx_point_coordinates): Also nuked.
12743 (mouse_buffer_offset): New lisp variable.
12745 * xterm.c (notice_mouse_movement): Use it in call to
12746 pixel_to_char_translation.
12748 * screen.h: For non-multiscreen, XSCREEN returns selected_screen,
12749 as does WINDOW_SCREEN.
12751 * xdisp.c (display_mode_line): Set desired_glyphs->bufp to 0 for
12753 All occurences of struct screen * replaced with SCREEN_PTR.
12755 1990-08-13 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12757 * xmenu.c (list_of_items, list_of_panes): Fixed wrong params to
12758 wrong_type_argument.
12760 1990-08-12 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12762 * dispnew.c (pixel_to_char_translation): New algorithm for
12765 * xfns.c (install_*_scrollbar): No more height, width parameters.
12766 Don't block input here.
12767 (x_set_*_scrollbar): Block input here.
12769 * xterm.c (notice_mouse_motion): Check if the mouse is still in
12771 (encode_mouse_button): Don't bother about motion types.
12773 1990-08-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12775 * m-convex.h (C_SWITCH_MACHINE, LIB_STANDARD, LIBS_MACHINE):
12776 (LD_SWITCH_MACHINE): Add definitions for Convex V 4.0.
12778 1990-08-11 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12780 * xfns.c (Fx_grab_pointer): Call XCreateFontCursor on shape,
12781 setting new variable grabbed_cursor. Return Qt if successful,
12783 (Fx_ungrab_pointer): Free grabbed_cursor if non zero. Return Qnil.
12785 1990-08-10 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12787 * xfns.c (x_figure_window_size): Don't set pixel sizes until
12788 height and width are determined.
12790 1990-08-08 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12792 * xfns.c (Fx_grab_pointer): New parameter to explicitly ignore
12795 * xterm.c (notice_mouse_movement): Use pixel_to_char_translation
12796 to get char position and buffer offset.
12798 1990-08-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12800 * sysdep.c [NEED_PTEM_H]: New flag macro says include ptem.h.
12802 1990-08-07 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12804 * dispextern.h: Element bufp of screen_glyphs no longer dependent
12806 * xdisp.c (display_text_line): Likewise.
12808 * xfns.c (Fx_grab_pointer, Fx_ungrab_pointer): New subrs.
12809 (x_figure_window_size): Set pixel_width and pixel_height of
12810 screen, using font height and width.
12812 * xfns.c: Vmouse_grabbed renamed Vmouse_depressed.
12813 * xterm.c: Likewise.
12814 (construct_mouse_event): Don't check mouse coordinates; this is
12815 done by the notice_mouse_motion. Don't grab the mouse here.
12817 * dispnew.c (update_line): Set the pix_width and pix_height of the
12818 line. This fashion of doing so is temporary.
12820 1990-08-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12822 * dispextern.h: screen_glyphs struct elements bottom_right_x,
12823 bottom_right_y changed to pix_width and pix_height.
12824 * scroll.c: Likewise.
12825 * dispnew.c: Likewise.
12826 (update_screen): Set top_left_x, top_left_y for X windows.
12828 * xterm.h: Macros PIXEL_{WIDTH,HEIGHT} now use the display
12829 structure elements.
12831 1990-08-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12833 * xfns.c (x_window_to_scrollbar): Return Lisp symbol in parameter
12834 PART_PTR, rather than string.
12835 Declare these symbols.
12836 New variable Vscreen_part, indicates which part of the screen the
12839 * xterm.c (notice_mouse_motion): Do XQueryPointer first thing.
12840 Set Vmouse_event to Qnil.
12841 (construct_mouse_event): Don't check if mouse has moved or not.
12842 When returning cons, part is now already lisp symbol.
12843 (XTread_socket): Set Vmouse_window = Vscreen_part = Qnil when
12844 leaving screen, as well as setting x_mouse_x = x_mouse_y = -1.
12846 * keyboard.c: Vmouse_window, Vmouse_event declared extern and no
12847 longer DEFVARed: they are already delclared in window.c.
12849 * screen.c (window_from_coordinates): Use Fnext_window, even if
12850 MULTI_SCREEN, to obtain the next window. This is an test.
12851 Also, new paramater part returns text or modeline symbol.
12852 (Flocate_window_from_coordinates): Pass &part to
12853 window_from_coordinates.
12854 (coordinates_in_window): Don't say modeline if window_height is 1,
12855 as this is likely to be the minibuffer.
12857 1990-08-04 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12859 * screen.c (Fcoordinates_in_window_p): Doc fix. Simplified.
12860 (window_from_coordinates): New function.
12861 (Flocate_window_from_coordinates): Use it.
12863 * keyboard.c (classify_object): New function for dealing with the
12864 input object. New symbol, mouse-motion, called here.
12865 Call to mouse-motion-handler now takes no parameters.
12866 (read_key_sequence): Use the new function. Don't set keybuf[0]
12869 * xterm.c (init_input_symbols): Create all the Lisp symbols
12870 returned in the input stream.
12871 (func_key_syms): New array to hold all symbols for function keys.
12872 (x_func_key_to_sym): Use this array.
12873 (notice_mouse_movement): New function for dealing with motion
12875 (XTread_socket): Use it here.
12877 1990-08-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12879 * callproc.c (child_setup): Report error in chdir.
12881 1990-08-01 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12883 * lisp.h: New macro XFLOATINT. extract_float declared.
12884 * floatfns.c (Ffloor): Call floor, not ceil.
12885 (extract_float): No longer static.
12886 * bytecode.c (Fbyte_code): Correctly handle floats in case Beqlsign.
12888 1990-07-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12890 * keyboard.c (read_key_sequence): When downcasing letters,
12891 don't change the value returned in keybuf.
12892 (This is an experiment; it might be unpleasant in
12893 things such as C-h c, but it is an improvement
12894 for M-x global-set-key.)
12896 1990-07-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12900 1990-07-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12902 * s-iris*.h (SYSTEM_TYPE): Change silicon-graphics-unix to irix.
12904 1990-07-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12906 * indent.c (Fmove_to_column): End-test was off by 1.
12908 * abbrev.c (Fexpand_abbrev): Return nil if alloca arg would be neg.
12910 1990-07-26 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12912 * xdisp.c (display_text_line): String to rope copy for inserting
12915 1990-07-25 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12917 * xdisp.c (display_mode_line): Check that the name has actually
12918 changed before calling x_set_name.
12920 * ralloc.c (check_memory_limits): New function.
12921 Also check if new memory will be larger than elisp pointer.
12922 (r_alloc_sbrk): Call this function.
12923 (relocate_blocs_upward, relocate_blocs_downward): Eliminated.
12924 (r_alloc_sbrk): Use relocate_some_blocs instead of the eliminated
12927 * vm-limit.c (morecore_with_warning): Check if new memory larger
12928 than elisp pointer size.
12930 1990-07-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12932 * keyboard.c (save_getcjmp, restore_getcjmp): New functions.
12933 (read_char): Use them around Fdo_auto_save.
12934 * process.c (read_process_output, exec_sentinel): Use them.
12935 * fileio.c (Fdo_auto_save): Run auto-save-hook.
12937 1990-07-24 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12939 * dispnew.c (safe_bcopy): No longer static.
12941 * ralloc.c (relocate_blocs_upward, relocate_blocs_downward):
12944 * mem_limits.c: typedef SIZE.
12946 1990-07-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12948 * fileio.c (Finsert_file_contents): Initialize how_much when exiting
12951 * m/m-mips.h: Added stuff from the 18.56 version.
12953 1990-07-18 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12955 * indent.c (Fmove_to_column): Set end to ZV.
12957 1990-07-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12959 * editfns.c (init_editfns): Let envvar NAME override full name.
12961 * buffer.c (list_buffers_1): Avoid error with list-buffers-directory.
12963 1990-07-17 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12965 * buffer.c (list_buffers_1): Don't check list-buffers-directory.
12967 1990-07-16 Joseph Arceneaux (jla@churchy.ai.mit.edu)
12969 * xdisp.c (display_text_line): Don't print ellipsis if they're
12972 1990-07-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12974 * s-386-ix.h: Define BROKEN_TIOCGETC.
12976 1990-07-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12978 * m-pmax.h: Undef LD_SWITCH_MACHINE, change DATA_START
12981 1990-07-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12983 * s-iris3-6.h (HAVE_GETWD): Define this.
12984 (KERNEL_FILE): Change to /unix.
12985 (sigsetmask, sigblock, NEED_ERRNO, C_SWITCH_MACHINE): Turn off.
12986 (SIGIO): Don't undefine it.
12987 (LIBS_MACHINE): Remove -lbsd.
12989 * minibuf.c (Fall_completions, do_completion): Treat nil as alist.
12990 (Ftry_completion): Likewise.
12992 1990-07-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12994 * sysdep.c: Undefine TIOCGETC if BROKEN_TIOCGETC defined.
12995 * s-usg5-3.h, s-xenix.h: Define BROKEN_TIOCGETC.
12997 1990-06-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
12999 * process.c (Fopen_network_connection): Minor cleanup.
13001 1990-06-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13003 * m-sun3.h: Add comments for dealing with 68881.
13005 1990-06-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13007 * m-ibmps2-aix.h [__GNUC__]: Define LIB_STANDARD and C_DEBUG_SWITCH,
13008 and don't define LIBS_MACHINE.
13009 (HAVE_WAIT_HEADER): Define this.
13010 Also reordered definitions so recently added ones are together.
13012 1990-06-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13014 * insdel.c (insert): Error if buffer would get too long.
13015 * fileio.c (Finsert_file_contents): Likewise.
13017 1990-06-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13019 * syntax.c (scan_sexps_forward): Allow Squote inside symbols.
13021 1990-06-16 Joseph Arceneaux (jla@geech)
13023 * window.c (Fscroll_other_window): Don't unbind_to. Keep track of
13024 current_buffer and point explicitly.
13026 1990-06-15 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13028 * term.c (cursor_to): Only add chars_wasted if not calling hook.
13029 (clear_end_of_line_raw): Likewise.
13030 (clear_end_of_line): Check that screen is termcap before using
13032 (ins_del_lines): Eliminated local copybuf[].
13033 (calculate_ins_del_char_costs): Now has screen parameter.
13034 DCICcost: Change to char_ins_del_costs and defined with
13035 SCREEN_WIDTH (screen).
13036 DC_ICcost: Changed to char_ins_del_vector.
13037 * term.h: DCICcost no longer defined here. DC_ICcost no longer
13039 * dispnew.c: char_ins_del_cost defined here. char_ins_del_vector
13040 declared extern here.
13042 1990-06-14 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13044 Globally replaced screen_width with macro
13045 SCREEN_WIDTH (selected_screen).
13046 * dispnew.c (init_display): Don't set SCREEN_WIDTH, etc. from
13048 (change_window_size): No longer check output_type and set
13051 1990-06-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13053 * indent.c (Findent_to): Don't fail to return value.
13054 (Fmove_to_column, Fcurrent_column): Doc fixes.
13056 1990-06-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13058 * keyboard.c (echo_prompt): Now uses glyphs.
13059 echobuf, echobuf_ptr: These variables now glyphs.
13061 1990-06-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13063 * fileio.c (Fdo_auto_save): Use glyphs_to_str_copy to set
13065 * alloc.c (Fgarbage_collect): Ditto.
13067 * xdisp.c (message): message_buf set here, realloced if smaller
13069 message_buf now type GLYF *. New variable message_buf_size holds
13071 Use temp_buf for call to doprnt, then use str_to_glyph_cpy to set
13074 * print.c (printchar, strout): Use message_buf_size. Convert to
13075 glyfs before assigning chars.
13076 (str_to_glyph_cpy, str_to_glyph_ncpy)
13077 (glyph_to_str_cpy, glyph_to_str_ncpy): New functions.
13079 1990-06-03 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13081 * keyboard.c (command_loop_1): Clear this_command_key_count here.
13082 (Fread_key_sequence): And here.
13083 (read_key_sequence): Not here.
13085 * dispnew.c (update_screen):
13086 Add missing else in handling cursor_in_echo_area.
13087 * xdisp.c (redisplay_window): Eliminate lpoint. Alter opoint
13088 if point should be changed permanently in the selected window.
13090 * window.c (unshow_buffer): Don't set pt in selected window's buffer.
13092 * xdisp.c (decode_mode_spec): Don't truncate buffer or file name.
13094 * editfns.c (Finsert_buffer_substring): Don't fail to set beg, end.
13096 * keyboard.c (command_loop_level): New variable.
13097 Used in place of RecurseDepth, but different meaning.
13098 (recursive_edit_1): New function.
13099 (Frecursive_edit): Call it.
13100 * minibuf.c (read_minibuf): Call recursive_edit_1.
13101 * xdisp.c (RecurseDepth): Variable deleted.
13102 display_minibuffer_message renamed echo_area_display.
13104 * print.c: Include dispextern.h.
13105 (printchar, strout): Use message_buf.
13107 * scroll.c (CalcIDCosts): Dynamically allocate ILcost, etc.
13108 (ILcost, DLcost, ILncost, DLncost): Now pointers.
13109 (do_scrolling): Use alloca for queue.
13111 * term.c (term_init): selected_screen as arg to calculate_costs.
13113 Dynamically allocate chars_wasted, copybuf, DC_ICcost.
13114 Set RPov based on actual width.
13115 (chars_wasted, copybuf, DC_ICcost): Now pointers.
13117 * xterm.c (x_term_init): Don't set dont_calculate_costs anymore.
13119 1990-06-02 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13121 * term.c (calculate_ins_del_char_costs, string_cost_one_line):
13124 * dispnew.c: Declare scrolling_1;
13126 * scroll.c (CalcIDCosts, CalcIDCosts1, CalcLID): Renamed
13127 calculate_ins_del_char_costs, ins_del_costs, and line_ins_del.
13128 CalcIDCosts1 and CalcLID also renamed.
13129 (calculate_scrolling): Now void.
13131 * Global renaming: bf_modified -> MODIFF. CharAt -> CHAR_AT_POSITION.
13132 BufferSafe{Floor,Ceiling} -> BUFFER_{FLOOR,CEILING}_OF.
13133 SetPoint -> SET_PT.
13135 * xterm.c (x_term_init): Don't CalcIDCosts here anymore.
13137 1990-06-01 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13139 * print.c: Include dispextern.h.
13140 (printchar, strout): Use message_buf.
13142 * sysdep.c (get_screen_size): Don't use MscreenWidth, MscreenLenght.
13143 * term.c: Likewise.
13145 * scroll.c (CalcIDCosts, CalcIDCosts1, CalcLID): These now take a
13147 (CalcIDCosts): Dynamically allocate ILcost, etc.
13148 (ILcost, DLcost, ILncost, DLncost): Now pointers.
13149 (do_scrolling): Use alloca for queue.
13151 * dispnew.c (remake_screen_structures): Allocate message_buf.
13152 Don't use MscreenWidth, MscreenLenght.
13154 * xdisp.c: bf_cur replaced with current_buffer.
13155 Calls to SetBfx deleted.
13156 message_buf is now char *.
13157 (message): Use SCREEN_WIDTH macro as limit for doprnt.
13159 * indent.c (current_column): Detect special case when point == BEGV.
13161 * buffer.h (struct buffer_text): Component modified renamed to
13162 modiff. All refs changed to macros below.
13163 (MODIFF, BUF_MODIFF): New macros.
13164 Macro SetBfx removed.
13165 Macro SetPoint renamed SET_PT.
13167 * fileio.c (Fexpand_file_name): Simplified.
13169 1990-06-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13171 * dired.c: Doc fix.
13173 1990-05-31 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13175 * search.c (Fsearch_forward): Docstring fix.
13177 1990-05-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13179 * dired.c: Comment added.
13181 1990-05-31 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13183 * process.c (Fprocess_connection): Return the type of a process
13185 (syms_of_process): Initialize pty_process and stream_process.
13186 Declare Fprocess_type.
13187 * process.h New element type to struct Lisp_Process.
13189 * syntax.c (scan_sexps_forward): Initialize curlevel->last to -1.
13191 1990-05-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13193 * fileio.c (Finsert_file_contents): Use new variable how_much to
13196 1990-05-24 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13198 * lread.c (read_char_exclusive): New subr.
13200 1990-05-24 David Lawrence (tale@pogo.ai.mit.edu)
13202 * fileio.c (file_executable_p): New function.
13204 1990-05-23 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13206 * insdel.c (make_gap): Only set BEG_ADDR if BUFFER_REALLOC was
13209 * editfns.c (syms_of_editfns): DEFVAR the new variables.
13211 * eval.c (Finteractive_p): Don't skip the first frame if the
13212 function was compiled.
13214 * print.c (print): Use ... only for conses, and instead of normal
13217 1990-05-22 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13219 * Renamed meta_flag meta_key.
13221 * termopts.h: Comment changes.
13223 1990-05-20 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13225 * buffer.h: upcase_table and downcase_table are now Lisp_Objects.
13226 * alloc.c (mark_object, gc_sweep): Related changes.
13227 * casetab.c: Ditto.
13229 1990-05-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13231 * minibuf.c (Fall_completions): Protect STRING from gc.
13232 Copy ALIST to TAIL to protect it.
13234 * paths.h-dist: Doc fix.
13236 1990-05-17 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13238 * search.c (Flooking_at, search_buffer): Use new accessors.
13239 * indent.c (Fcurrent_column): Likewise.
13240 * minibuf.c (read_minibuf): Likewise.
13241 * regex.c (re_match_2): Use PTR_CHAR_POS.
13242 * editfns.c (Fbuffer_size, Fnarrow_to_region, Fbuffer_substring):
13243 (Fbuffer_string, Finsert_buffer_substring): Likewise.
13244 (save_restriction_restore): Likewise.
13245 * dispnew.c (direct_output_for_insert): Likewise.
13246 * fileio.c (Fwrite_region, Finsert_file_contents): Likewise.
13247 (Fdo_auto_save): Likewise.
13248 * insdel.c (move_gap, gap_left, gap_right, make_gap): Likewise.
13249 (InsCStr, del_range, modify_region): Likewise.
13250 * process.c (Fprocess_send_region): Likewise.
13251 * xdisp.c (try_window, try_window_id, display_text_line): Likewise.
13252 (redisplay): Likewise.
13253 * buffer.c (list_buffers_1): Likewise.
13254 * marker.c (marker_position, Fset_marker, set_marker_restricted):
13255 (Fmarker_position): Likewise.
13256 * window.c (unshow_buffer, Fset_window_configuration): Likewise.
13257 (Fset_window_buffer): Likewise.
13259 * editfns.c (save_restriction_restore): Use a macro to alter point.
13261 * lread.c (readchar): Use new accessors, and avoid knowing about
13262 the text field of a buffer.
13263 * window.c (Fpos_visible_in_window_p): Likewise.
13265 * buffer.h (struct buffer): Make the syntax table a Lisp object.
13266 * alloc.c (mark_buffer): No need to treat it specially.
13267 * syntax.c (Fsyntax_table, Fset_syntax_table, Fdescribe_syntax):
13268 (Fmodify_syntax_entry): Adjust for this change.
13269 * buffer.c (reset_buffer_local_variables): Need not be special.
13270 (init_buffer_once): Make this slot a defaulted local variable.
13271 * syntax.h: Adjust macros for this change.
13272 (Vstandard_syntax_table): Define as macro, in buffer_defaults.
13273 * syntax.c (syms_of_syntax): Don't staticpro it here.
13274 (Fset_syntax_table): Set the flag in local_var_flags.
13276 * buffer.h (struct text): Represent the buffer dimensions
13277 with new slots, memory, begv, pt, gpt, zv, z and gap_size.
13278 (BEGV, etc.): Use new slots.
13279 (CharAt): Likewise.
13280 (BufferSafeCeiling, BufferSafeFloor): Use new slots; fix old bugs.
13281 (bf_p1, bf_s1, etc.): Old macros deleted.
13283 * buffer.c (Fget_buffer_create): Set up memory and new slots.
13284 (Fkill_buffer): Likewise.
13286 * insdel.c (move_gap, gap_left, gap_right, make_gap): Update new slots.
13287 (del_range, InsCStr): Likewise.
13288 * fileio.c (Finsert_file_contents): Likewise.
13289 * window.c (temp_output_buffer_show): Likewise.
13290 * xdisp.c (decode_mode_spec, try_window_id): Likewise.
13292 * insdel.c (make_gap): Complete rewrite. Arg is amount of new gap
13293 to create. All calls changed.
13294 (gap_left): New argument NEWGAP.
13296 * buffer.c (Fset_buffer): Check for deleted buffer.
13297 (SetBfp): Don't check.
13298 (SetBfp, Frename_buffer): Local cleanups.
13299 * print.c (PRINTPREPARE): Use Fset_buffer.
13301 * buffer.c (SetBfp): Don't bother with selected window or its point.
13302 * window.c (Fselect_window): Always set pointm of old window.
13304 * editfns.c: Eliminate all use of DEFSIMPLE and DEFPRED.
13305 * indent.c, keyboard.c: Ditto.
13307 * search.c (skip_chars): Eliminate PointLeft and PointRight.
13308 * cmds.c (SelfInsert): Likewise.
13310 1990-05-16 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13312 * xdisp.c (try_window): No return value.
13313 Fix calls to try_window.
13314 * Global variable RedoModes is now redraw_mode_line.
13316 1990-05-13 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13318 * keymap.c (Fdefine_key, Flookup_key): Local cleanups.
13320 * sysdep.c (sys_suspend): Use save_signal_handlers and
13321 restore_signal_handlers to save and restore signal state.
13323 * indent.c (Findent_to): Merge guts of indentation into here.
13324 (position_indentation): Scan with a pointer, for speed.
13326 * casefiddle.c (operate_on_word): Just return the other end.
13327 (Fupcase_word, Fdowncase_word, Fcapitalize_word):
13328 Pass that value to casify_region.
13330 * editfns.c (init_editfns): Store system and user names as
13331 strings to avoid arbitrary limits.
13333 * keymap.c (describe_vector, describe_alist): Make elt_prefix
13334 and elt_describer responsible for indentation and newlines.
13336 (describe_command): Do indentation and newline.
13337 (describe_map): Add space to end of prefix.
13338 * syntax.c (describe_syntax): Do indentation and newline.
13340 1990-05-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13342 * process.c (create_process) [not USG]: Put subproc in pgrp 0.
13344 1990-05-10 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13346 * dispextern.h: New struct screen_glyfs replaces struct
13348 * screen.c: New screen elements current_glyfs, desired_glyfs, and
13350 * dispnew.c (make_screen_glyfs, free_screen_glyfs):
13351 (remake_screen_glyfs): New functions.
13352 (make_display_lines, new_display_line, return_display_line):
13354 (change_screen_size, init_display): Use the new functions.
13355 (cancel_line, clear_screen_records, get_display_line):
13356 Rewritten for new data structures. get_display_line no longer
13358 (preserve_other_columns, preserve_my_columns): Likewise.
13359 (cancel_my_columns, direct_output*): Likewise.
13360 (update_screen, update_line, quit_error_check, scrolling): Likewise.
13361 (scroll_screen_lines): Likewise.
13362 (rotate_vector, safe_bcopy): New subroutines.
13363 (line_hash_code, line_draw_cost): Cleaned up.
13364 Args are different, and hash computation too.
13365 (update_screen): Rearrange buffer-emptying code.
13366 * xdisp.c (display_minibuf_message, redisplay): Rewritten for new
13368 (display_text_line, display_mode_line): Likewise.
13369 (display_mode_element, display_string): Likewise.
13370 (decode_mode_spec): Local cleanups.
13371 * scroll.c (do_scrolling): Rewritten for new data structures.
13372 * xterm.c (XTflash): Use this new structure.
13374 * editfns.c (in_accessible_range): New function.
13375 (Fgoto_char, save_restriction_restore): Use it.
13376 (save_excursion_save, Fcurrent_time_string): Local cleanups.
13378 * process.c (Fprocess_kill_without_query): New arg; new return value.
13379 (count_active_processes): Function deleted.
13381 * fileio.c (Finsert_file, Fwrite_region): Local cleanups.
13383 * fns.c (Fsubstring): Local cleanup.
13385 * keyboard.c (echo_prompt, echo_char, echo_dash, echo): New functions.
13386 (cancel_echoing): Likewise.
13387 (immediate_echo, echoptr): New variables.
13388 (command_loop_1, request_echo, get_char, read_key_sequence):
13389 (set_waiting_for_input, interrupt_signal): Related changes.
13390 (get_char): No more declaration of request_echo. Local cleanups.
13392 (this_command_key...): New variables.
13393 (Fexecute_extended_command, Fthis_command_keys): Related changes.
13394 (init_keyboard, get_char): Likewise.
13396 * macros.c (Fstart_kbd_macro): Local cleanup.
13398 * minibuf.c (read_minibuf): No more delcaration of
13399 Frestore_screen_configuration.
13401 * search.c (Fregexp_quote): Simplified.
13403 1990-05-08 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13405 * process.c (Fopen_network_stream): Also handle numeric inet addresses.
13407 1990-05-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13409 * alloca.c: #ifdef __STDC__ rather than X3J11/
13411 1990-05-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13413 * fileio.c (Fmake_symbolic_link): Delete old file if permitted.
13415 1990-05-02 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13417 * data.c (Fstring_to_int): Delete disabled feature
13418 of accepting `yes' and `no'.
13420 * xdisp.c (redisplay, redisplay_preserving_echo_area):
13421 Two functions replace DoDsp. All callers changed.
13422 (redisplay, redisplay_window): Eliminate `inhibit_hairy_id'.
13423 (redisplay_window): No return value. Local cleanups.
13425 * alloc.c (Fmake_marker): Delete `modified' field.
13426 * insdel.c (adjust_markers): Likewise.
13428 * abbrev.c (Fdefine_mode_abbrev): Clean up error message.
13430 1990-05-01 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13432 * xfns.c (Fx_draw_rectangle, Fx_erase_rectangle): Simplified.
13434 * xterm.c (x_display_cursor): Don't check s->phys_x when drawing
13437 * undo.c: New version.
13438 * undo.h: No longer exists.
13439 * alloc.c (Fgarbage_collect): Call truncate_undo_list.
13440 (syms_of_alloc): Define vars undo-threshold and undo-high-threshold.
13441 * buffer.c (Fget_buffer_create): Set undo_list to t or nil.
13442 (Fbuffer_disable_undo, Fbuffer_enable_undo): Likewise.
13443 (Fkill_buffer): Likewise.
13444 (init_buffer_once): Set up local variable buffer-undo-list.
13445 (syms_of_buffer): Likewise.
13446 * buffer.h: New element undo_list in struct buffer.
13447 * fileio.c (Finsert_file_contents): Store nil in undo_list.
13449 * buffer.c: Variable bf_text deleted.
13450 (Fkill_buffer, SetBfp): Delete code that worked with it.
13451 (SetBfx): Now a macro in buffer.h
13452 * editfns.c (Fwiden, Fnarrow_to_region): Related changes.
13453 (save_restriction_save, save_restriction_restore): Likewise.
13454 (Finsert_buffer_substring): Likewise.
13455 * fileio.c (Fdo_auto_save): Likewise.
13456 * insdel.c (make_gap): Likewise.
13457 * lread.c (readchar): Likewise.
13458 * marker.c (Fmarker_position, marker_position): Likewise.
13459 (Fset_marker): Likewise.
13460 * xdisp.c (DoDsp): Likewise.
13462 1990-04-30 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13464 * buffer.h: New macro R_ALLOC_SET_BUFFER for declaring all the
13465 text pointers of a buffer to the relocating allocator.
13466 * buffer.c (Fbury_buffer, SetBfx, SetBfp): Use the macro.
13467 * editfns.c (Finsert_buffer_substring): Ditto.
13468 * fileio.c (Fdo_auto_save): Ditto.
13469 * insdel.c (make_gap): Ditto.
13470 * xfns.c (adjust_scrollbars): Don't set bf_cur->text.
13472 1990-04-26 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13474 * minibuf.c: Declare active_screen struct screen *, not
13477 1990-04-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13479 * xterm.c (XTupdate_end): Only x_display_cursor if s is x_input_screen.
13481 1990-04-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13483 * fns.c (Fy_or_n_p): If a C-g comes in and does not quit, quit by hand.
13485 * buffer.c (Frename_buffer): Allow renaming to same name it has.
13487 1990-04-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13489 * xfns.c (Fx_open_connection): Attach xrdb to x_current_display.
13491 1990-04-17 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13493 * xterm.c (dumpborder): Now only used for X10.
13494 (highlight, unhighlight): New functions for X11.
13496 1990-04-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13498 * cm.c (Wcm_init): Return -2 if screen size not specified.
13499 * term.c (term_init): Special error message for that case.
13501 1990-04-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13503 * s-sunos4.h, s-sunos4shr.h (SYSTEM_MALLOC): Define it.
13505 1990-04-15 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13507 * xfns.c (Fx_get_resource): Concatenate invocation_name before
13509 (Fx_create_screen): Use the latest resource id's.
13511 1990-04-13 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13513 * xfns.c (Fx_get_resource): New subr.
13514 (Fx_open_connection): Call x_load_resources. New parameter
13516 * xrdb.c: New file for doing resource manager stuff.
13518 * xscrollbar.h: New file for scrollbar bitmaps.
13520 * xselect.h: New file for the X selection stuff.
13522 * ymakefile: Take note of these new files.
13524 1990-04-10 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13526 * xterm.c (x_term_init): Use MAXPATHLEN.
13528 1990-04-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13530 * buffer.c (list_buffers_1): Get filename from list-buffers-directory.
13532 1990-04-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13534 * screen.c (coordinates_in_window): Return -1 if in modeline of window.
13535 (Fcoordinates_in_window_p): Return Qt if in modeline of window.
13536 (Flocate_window_from_coordinates): Use next_screen_window if
13537 MULTI_WINDOW is defined.
13539 1990-04-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13541 * xterm.c (construct_mouse_event): Deal with the motion events
13542 first. Only grab the mouse when in the scrollbar.
13544 1990-04-04 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13546 * screen.c (coordinates_in_window): Include mode line as part of
13549 * xterm.c (XTread_socket): Initialize nbytes to 0.
13550 (x_display_cursor): Don't draw if screen not selected.
13552 * xdisp.c (DoDsp): Additional checks for screen being visible.
13554 1990-04-03 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13556 * editfns.c (Fmessage): If there is a global minibuffer screen,
13557 raise it before displaying the message.
13559 * window.c (window_loop): Parameter SCREENS now affects which
13560 screen is scanned for windows. All subrs calling window_loop must
13561 pass a Lisp_Object here now.
13563 1990-04-01 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13565 * window.c (window_loop): Additional parameter mini to control
13566 minibuffer selection or not.
13568 (Fget_largest_window):
13569 (Fget_buffer_window):
13570 (Fdelete_other_windows):
13571 (Fdelete_windows_on):
13572 (Freplace_buffer_in_windows): Use that parameter.
13574 1990-03-29 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13576 * screen.c (Fselect_screen): Raise the selected screen.
13578 * window.c (Fget_buffer_window):
13579 (Fget_largest_window):
13580 (Fget_lru_window): New parameter all_screens.
13581 (Fdisplay_buffer): Use the new param in Fget_lru_window,
13582 Fget_buffer_window, and Fget_largest_window.
13583 (Fscroll_other_window): Use new param in Fget_buffer_window.
13584 * buffer.c (Fother_buffer): Ditto.
13586 * xterm.c (x_display_cursor): Always draw the cursor if ON is
13587 true. Don't check if the screen S is selected or equal to
13590 * xfns.c (Fx_track_pointer): Don't turn off cursor, just call
13593 1990-03-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13595 * data.c (Fmake_local_variable): Give the variable value nil if
13598 * window.c (Fnext_window, Fprevious_window): For MULTI_SCREEN,
13599 check if Vglobal_minibuffer_screen is non-nil and maybe call
13602 * screen.c (Fscreen_selected_window):
13603 (Fscreen_root_window): If screen is nil, use selected-screen.
13605 1990-03-27 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13607 * xterm.c (XTread_socket): SET_SCREEN_GARBAGED which returning
13608 symbol which causes DoDsp to be invoked.
13609 * keyboard.c (read_key_sequence): Don't SET_SCREEN_GARBAGED here.
13611 * screen.h: New macro SET_SCREEN_GARBAGED.
13617 * dispnew.c: Use the new macro.
13619 1990-03-25 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13621 * xfns.c (Fx_own_selection): Only take one argument, string.
13623 1990-03-24 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13625 * xfns.c (select_visual): Catch bullshit machines whose hardware
13626 doesn't support the X server pixel depth by looking at colormap_size.
13627 (x_decode_color): Use x_screen_planes to check for color.
13629 1990-03-23 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13631 * xterm.c (x_display_cursor): Try using vertical bar cursor.
13632 (clear_cursor): Call x_display_cursor for X11.
13634 * xfns.c: Zotzed Vx_pointer_mask.
13635 (Fx_track_pointer): Call x_display_cursor if we just
13636 wasted the cursor. Break out of loop if no display line.
13637 Use mode line cursor if we're there.
13638 (x_y_pos): New function.
13639 (x_set_font): Dont' set x_font_{width,height}, they are gone.
13641 1990-03-22 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13643 * xfns.c (Fx_track_pointer): Check that s == selected_screen each
13644 time through loop. If event is nil, read mouse position.
13646 * keyboard.c (get_char): DoDsp only if selected_screen visible.
13648 * xterm.c (XTread_socket): Mark screen as visible only on expose
13651 * emacs.c (main): Check here for "-d" option and set display_arg.
13652 * dispnew.c (init_display): Set Vwindow_system, etc. if display_arg.
13654 1990-03-21 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13656 * keyboard.c (read_key_sequence): Don't DoDsp if the screen was
13658 (command_loop_1): Call the mouse motion handler before calling
13660 (interrupt_signal): Fixed typo checking screen type.
13662 * xfns.c (Fx_track_mouse): Don't crash because of null display
13663 line. Don't set obj til call to get_char.
13665 * xterm.c (x_term_init): Disable SIGWINCH here.
13667 * fns.c (Fmember): New subr.
13669 * dispnew.c (init_display): Don't check env variable DISPLAY to
13670 set Vwindow_system. Now done in startup.el.
13672 * emacs.c: Removed variables xargc, xargv.
13674 1990-03-20 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13676 * xfns.c (Fx_track_pointer): Go faster.
13678 * screen.h: New macro SCREENP.
13680 * window.c (Fminibuffer_window): Rewritten.
13682 1990-03-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13684 * sysdep.c (perror): Control with HAVE_PERROR as well as HPUX.
13685 * s-hpux.h (HAVE_PERROR): Define it.
13687 1990-03-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13689 * keyboard.c (command_loop_1): Restructured handling of X event
13691 (read_key_sequence): Handle new `unmapped-screen' symbol with new
13692 Vunmap_screen_hook.
13694 * xterm.c (XTread_socket): Return unmapped-screen symbol if the
13695 window for UnmapNotify events.
13697 * lread.c (Feval_region): GCPRO opoint.
13699 1990-03-16 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13701 * keyboard.c (command_loop_1): Call mouse-motion handler with
13702 argument. Also, don't call undo-boundary.
13704 * process.c (create_process): Set the process group for BSD at
13705 the same time as for USG.
13707 1990-03-14 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13709 * xterm.c (x_new_selected_screen): Set x_input_screen here.
13711 1990-03-11 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13713 * xterm.c: Vx_mouse_grabbed now Vmouse_grabbed.
13714 (XTread_socket): Generate exited-window symbols on LeaveNotify
13715 even if screen is focused.
13717 * xfns.c: Vx_mouse_grabbed now Vmouse_grabbed.
13718 (outline_region): Now static.
13719 (Fx_track_pointer): Check x_mouse_screen == s in loop.
13721 1990-03-10 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13723 * xterm.c (encode_mouse_button): Correctly get the button from
13726 * xfns.c (x11_encode_mouse_button): Nuked.
13727 (encode_mouse_button, Fx_mouse_events, Fx_get_mouse_event): #if 0'd.
13729 * keyboard.c (get_char): Re-set obj if we've keyboard-translated c.
13731 1990-03-08 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13733 * xterm.c (x_focus_screen): No longer static.
13734 (x_error_handler): Use XDefaultIOError.
13736 * screen.c (Ffocus_screen): New subr, removed Fscreen_has_focus.
13737 (Fselect_screen): New, optional parameter no_enter.
13738 (Frestore_screen_configuration):
13739 (Fdelete_screen): Pass second parm Qnil to Fselect_screen.
13741 * window.c (Fdisplay_buffer, Fset_window_configuration): Pass
13742 second parm Qnil to Fselect_screen.
13744 1990-03-07 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13746 * screen.c (Fscreen_has_focus): New subr.
13747 (Fselect_screen): Use x_focus_on_screen to physically select the
13750 1990-03-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13752 * xfns.c (x_set_mouse_position): Moved to xterm.c.
13754 * fileio.c (Fremove_directory): New subr.
13756 * screen.c (Frelease_focused_screen): Just call x_unfocus_screen.
13758 * xterm.c (XTread_socket): On FocusOut, if s isn't mouse screen,
13759 return exited-window. On LeaveNotify, simplify if expression for
13760 dumpborder. Reworked FocusIn/FocusOut events.
13761 (x_unfocus_screen): Check that screen is x_focus_screen.
13762 (x_set_mouse_position): Moved from xfns.c. Use new macro
13764 * xterm.h: New macro XWarpPointer.
13766 * buffer.c: Replaced Fbuffer_flush_undo with
13767 Fbuffer_disable_undo.
13768 * process.c: Ditto.
13770 1990-03-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13772 * xterm.c (XTupdate_end): Use parameter s rather than
13774 (XTread_socket): On EnterNotify, don't check s != focus_screen
13775 before selecting. On Focus In/Out don't set/reset mouse_screen.
13777 1990-03-04 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13779 * eval.c: If using X windows, include xterm.h.
13780 (error): TOTALLY_UNBLOCK_INPUT if using X.
13782 * xterm.h (BLOCK_INPUT, UNBLOCK_INPUT): No signal stuff, just inc
13783 and decrement x_input_blocked.
13785 * xfns.c (adjust_scrollbars): Don't BLOCK_INPUT.
13786 (x_set_font): Check result of x_new_font. Call error if nonzero.
13787 (x_set_icon_type): Check result of x_*_icon, maybe call error.
13789 * screen.c (Fdeiconify_screen): Use x_make_screen_visible rather
13790 than x_deiconify_screen. Return screen.
13791 (Fmake_screen_visible): Don't raise it here. Return screen.
13793 * xterm.c (XTwrite_glyfs): Don't show cursor if screen is
13794 global-minibuffer-screen.
13795 (x_new_selected_screen): Do dumpborder and check auto-raise here,
13796 rather than XEvent switch.
13797 (x_deiconify_screen): No longer exists.
13798 (x_do_pending_expose, x_clear_cursor):
13799 (x_invert_screen, scraplines, stufflines, x_bitmap_icon):
13800 (x_text_icon, x_new_font): Don't BLOCK_INPUT.
13801 (XTins_del_lines): BLOCK_INPUT here.
13802 (XTupdate_end): Don't turn on cursor if minibuffer-screen.
13803 (XTread_socket): On MotionNotify, just that screen is selected before
13805 (XTtopos): If updating_screen, just set x and y, don't flush.
13808 (x_new_font): Return 1 if failed, don't call error.
13809 (x_make_screen_visible): Raise the screen as well.
13811 1990-03-02 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13813 * screen.c (Frelease_focused_screen): Just check that screen is
13816 1990-02-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13818 * screen.c (Fselect_screen_focused, Frelease_focused_screen): New
13820 * xterm.c (x_focus_on_screen, x_unfocus_screen): New procedures
13821 to implement focusing.
13823 1990-02-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13825 * casefiddle.c: Doc fix.
13827 1990-02-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13829 * xterm.h: Redefined BLOCK_INPUT and UNBLOCK_INPUT to use sigblock
13830 and sigsetmask if available.
13831 * xterm.c: Declare BLOCK_INPUT_mask if have SIGIO and FIONREAD.
13833 1990-02-27 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13835 * minibuf.c (Fread_from_minibuffer): Initialize pos to 0.
13837 1990-02-25 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13839 * keyboard.c (read_key_sequence): Handle mapped-screen event
13840 symbol by calling new hook Vmap_screen_hook.
13842 * xterm.c (x_make_screen_invisible): Use the new Xlib function
13844 (x_iconify_screen): Use the new Xlib function XIconifyWindow.
13845 (XTread_socket): Return mapped-screen symbol to signal
13846 mapped-screen events.
13848 1990-02-23 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13850 * keyboard.c (command_loop_1): Check the character for width 1
13851 before doing direct_output_forward, as well as the cursor position
13854 * xdisp.c (DoDsp): Use redisplay_windows rather than
13855 redisplay_all_windows, which was removed.
13857 1990-02-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13859 * unexencap.c: New file, waiting for papers.
13861 1990-02-22 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13863 * keyboard.c: Removed much debugging stuff.
13864 * xterm.c: Removed much debugging stuff.
13865 (x_error_handler): For X11, if caught BadAlloc error while
13866 converting selection (note new variable x_converting_selection),
13867 just set new variable x_selection_alloc_error.
13869 * xfns.c: Massive changes for crufty selection processing details.
13870 New X atoms: Xatom_clipboard, Xatom_delete, Xatom_insert_selection,
13871 Xatom_insert_property, Xatom_pair.
13873 1990-02-21 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13875 * keyboard.c (kbd_buffer_store_char): Check NULL objects.
13877 * xterm.c (XTread_socket): Correctly advance bufp for all KeyPress
13880 1990-02-20 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13882 * keyboard.c (kbd_buffer_get_char): Use KBD_BUFFER_SIZE rather
13883 than sizeof kbd_buffer.
13884 (read_key_sequence): Upon redraw-display symbol, set
13887 * xterm.c (XTread_socket): On EnterNotify events, make sure to
13888 return mouse event for both scrollbars and windows.
13890 1990-02-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13892 * casefiddle.c (casify_region): Move the new statement.
13894 1990-02-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13896 * casefiddle.c (casify_region): Return if beginning and end same.
13898 1990-02-18 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13900 * keyboard.c (kbd_buffer_store_char): Use KBD_BUFFER_SIZE rather
13901 than sizeof kbd_buffer.
13903 * fns.c (Fy_or_n_p): Only accept ints from get_char.
13905 1990-02-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13907 * minibuf.c (Fread_from_minibuffer): New arg POSITION.
13909 * unexsunos4.c: New file. Waiting for papers.
13910 * s-sunos4shr.h: New file.
13912 * emacs.c (main) [RUN_TIME_REMAP]: Call run_time_remap.
13914 * ymakefile (LD): Let config file override with LD_CMD.
13916 1990-02-14 Joseph Arceneaux (jla@albert.ai.mit.edu)
13918 * keyboard.c (read_avail_input): Pass read_socket_hook
13919 KBD_BUFFER_SIZE rather than doing sizeof (buf).
13921 * xterm.c (XTread_socket): Set event.type = MotionNotify when
13922 entering screen or scrollbar to fake motion event.
13924 1990-02-13 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13926 * window.c (next_screen, prev_screen): Moved to screen.c.
13927 (Fnext_window): If mini non-nil, count the separate minibuffer
13929 * screen.c (Fnext_screen): New subr.
13931 1990-02-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13933 * xdisp.c (display_text_line, try_window, try_window_id, DoDsp):
13934 Don't display overlay arrow on more than one line in a window.
13936 1990-02-12 Joseph Arceneaux (jla@albert.ai.mit.edu)
13938 * doprnt.c (doprnt): Expand size of tembuf to 512.
13940 1990-02-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
13942 * minibuf.c (Fread_no_blanks_input): Make second arg optional.
13944 1990-02-09 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13946 * keyboard.c (get_char): Remember to set obj when executing macro.
13947 (read_key_sequence): Handle the exited-scrollbar symbol.
13948 Compare obj, not read_key_sequence_cmd.
13950 * xterm.c (x_make_screen_visible, x_deiconify_screen): Check
13951 window-manager variable.
13952 (x_make_screen_invisible, x_iconify_screen): Don't use new R4
13953 calls (they crash), do it ourselves.
13954 (XTread_socket): Return exited-scrollbar symbol when doing so.
13956 1990-02-08 Joseph Arceneaux (jla@albert.ai.mit.edu)
13958 * xterm.c (construct_mouse_event): Rewritten to do mouse-motion
13959 compression. All mouse processing now done here.
13960 Also, just use nil and t for x-mouse-grabbed. Record buttons
13961 pressed in new variable x_mouse_grabbed. XGrabPointer on button
13963 * xfns.c (Fx_horizontal_line): Use x_mouse_grabbed.
13965 1990-02-07 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13967 * xdisp.c (DoDsp): If only updating selected screen, but there is
13968 a minibuffer screen, update it as well.
13970 1990-02-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13972 * xfns.c (Fx_pixel_width, Fx_pixel_height): New subrs.
13973 * xterm.h: New components pixel_width, pixel_height, to x_display.
13974 * xterm.c (XTread_socket): On configure notify, set these components.
13976 * window.c (Fset_window_configuration): Select the screen of the
13977 root window if it's not the selected_screen.
13978 * minibuf.c (read_minibuf): Remove all the screen selection stuff,
13979 now that this is integrated in Fset_window_configuration.
13981 1990-02-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
13983 * screen.h: Declare Vglobal_minibuffer_screen.
13984 * xdisp.c (DoDsp): Set all_windows if using global-minibuffer-screen.
13986 1990-02-03 Joseph Arceneaux (jla@geech)
13988 * window.c (Fset_window_configuration): Make sure to set
13989 window->next to nil for a minibuffer-only screen.
13991 * screen.c (make_minibuffer_screen): Set mini_window->next nil.
13993 1990-02-01 Joseph Arceneaux (jla@albert.ai.mit.edu)
13995 * screen.c (make_screen): Set wants_modeline elt to 1.
13997 * window.c (Fset_window_configuration): Use screen->root_window
13998 as arg to delete_all_subwindows rather than minibuf_window->prev.
14000 * minibuf.c (read_minibuf): Don't unwind with
14001 Frestore_screen_configuration. Save selected_screen if different
14002 than minibuf screen, and re-select it after reading minibuf.
14003 * screen.c: #if 0 Fscreen_configuration,
14004 Frestore_screen_configuration.
14006 1990-02-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14008 * m-ibmps2-aix.h: Undef NEED_SIOCTL.
14009 (SIGN_EXTEND_CHAR): Cast to `signed char'.
14011 1990-01-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
14013 * xfns.c (Fx_track_pointer): Rewrote this to loop while there are
14016 * xterm.c (XTread_socket): Return left-window-event symbol upon
14018 * keyboard.c (read_key_sequence): Handle this symbol.
14020 1990-01-27 Joseph Arceneaux (jla@churchy.ai.mit.edu)
14022 * xterm.c (x_display_cursor): Use dumpglyfs with SPACEGLYF for
14023 cursor, as `XFillRectaogle's kill HP-BSD server.
14025 * xterm.h: Added nontext_cursor, modeline_cursor to x_display
14027 * xfns.c (x_set_mouse_color, Fx_track_pointer): Changes to use
14030 1990-01-25 Joseph Arceneaux (jla@albert.ai.mit.edu)
14032 * xterm.h: Changed the face structure for X11 to handle GCs and
14035 * xterm.c (XTread_socket): Return a motion event when mouse enters
14036 scrollbar or window.
14037 (x_make_screen_invisible): Use the new X11R4 function XWithdrawWindow.
14038 (x_iconify_screen): Use the X11R4 function XIconfifyWindow.
14039 (dumpglyfs): Use the new face structure.
14041 * xfns.c (install_vertical_scrollbar, install_horizontal_scrollbar):
14042 Accept EnterNotify events. Use XMapSubwindows rather than mapping
14044 (Fx_set_face_font): New subr for X11 to set face GC.
14046 1990-01-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14048 * dispnew.c (direct_output_for_insert): Give up if buf in 2 windows.
14050 * keyboard.c (command_loop_1):
14051 Dumb bugs disabled special fast display for character motion.
14053 * xdisp.c (DoDsp): For cursor motion within line,
14054 hpos result from compute_motion is relative to window.
14056 1990-01-24 Richard Stallman (rms@albert.ai.mit.edu)
14058 * eval.c (Fmacroexpand): Handle explicit macros ((macro ...) ...).
14060 1990-01-18 Joseph Arceneaux (jla@spiff)
14062 * undo.c (Fundo_more): Fixed typo.
14064 1990-01-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14066 * xdisp.c (display_text_line): When checking HPOS for continuation
14067 line, compensate for w->left.
14069 1990-01-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14071 * dispnew.c [no FIONREAD]: Undefine SIGIO.
14073 * buffer.c (SetBfp): Use XTYPE to test for no selected window yet.
14075 * editfns.c, dispnew.c, fileio.c, process.c, sysdep.c, xterm.c:
14076 Uniformly let NEED_TIME_H control use of time.h instead of sys/time.h.
14078 * xterm.h (TOTALLY_UNBLOCK_INPUT, UNBLOCK_INPUT): Don't use
14079 SIGIO if no FIONREAD.
14081 1990-01-15 Joseph Arceneaux (jla@spiff)
14083 * xfns.c (x_set_mouse_color): Set non-text pointer shape with new
14084 variable Vx_nontext_pointer_shape.
14086 * keyboard.c: More checks for evil bug which trashes kbd_*_ptr.
14088 * m/hp300bsd.h: Try using BSD load average stuff.
14090 1990-01-11 Joseph Arceneaux (jla@spiff)
14092 * xfns.c (x_draw_pixmap): New routine.
14094 1990-01-10 Jim Kingdon (kingdon@pogo)
14096 * m/hp300bsd.h: New file
14098 1990-01-08 Joseph Arceneaux (jla@spiff)
14100 * xfns.c (Fx_window_id): New subr.
14102 * screen.c (make_screen): Set wants_modeline elt to mini_p.
14103 If mini_p 0, then set root_window->next to nil.
14105 1990-01-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14107 * editfns.c (Fchar_after): Set N after coercing marker.
14109 1990-01-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14111 * buffer.c (Fkill_all_local_variables): Force mode line update.
14113 1990-01-05 Joseph Arceneaux (jla@spiff)
14115 * insdel.c: Declare Vfirst_change_function.
14117 * keyboard.c (read_key_sequence): Function keys are now lisp symbols.
14118 (kbd_buffer_store_char): Abort if store pointer past
14119 buffer. Temproarry; This shouldn't be able to happen.
14120 (read_key_sequence): #ifdef HAVE_X_WINDOWS code
14121 which handles complex objects.
14122 (command_loop_1): Check not termcap screen before
14123 processing non-char input.
14124 (kbd_{store,fetch}_char): More debugging checks.
14126 * screen.c (make_screen): Set root_window height to 9 if mini_p.
14127 (make_minibuffer_screen): Set the mini window's next,
14128 prev, and screen elements.
14130 * xterm.c (x_func_key_to_sym): New function, uses new variable
14132 (XTread_socket): Use this in KeyPress event for function keys.
14133 (XTflash): Draw solid rectangle in middle of screen.
14134 (x_set_offset): Set the size hints as well when doing
14136 (XTflash): Just dumpglyfs instead of redrawing the
14137 screen after flashing the rectangle.
14139 * lread.c (syms_of_lread): defsubr Fread_event.
14141 1990-01-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14143 * buffer.h, buffer.c (Vfirst_change_function): New Lisp variable.
14144 * insdel.c (signal_before_change): Call that function.
14146 * keyboard.c (cmd_error): Don't crash if TAIL is nil.
14148 1989-12-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14150 * minibuf.c: Doc fixes.
14152 1989-12-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14154 * process.c (create_process): Unhold SIGCHLD in the child.
14156 1989-12-27 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14158 * process.c (create_process): Treat HPUX like BSD for sigsetmask.
14160 1989-12-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14162 * fns.c (Fmapconcat): Gcpro SEP around mapcar1.
14164 1989-12-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14166 * dispnew.c (get_display_line): Don't touch X data if not using X.
14168 * syntax.c (Fscan_sexps): Fix fatal documentation typo.
14170 * lread.c: Include commands.h.
14172 * xterm.c (construct_mouse_event): Delete unreached return at end.
14173 (x_wm_set_size_hint): #if 0 some broken code.
14175 * cmds.c (SelfInsert): Set HAIRY if have before or after change hooks.
14176 * editfns.c (Fsubst_char_in_region, Ftranslate_region):
14177 Call signal_after_change for chars changed.
14178 * undo.c (Fundo_more): When undoing Uchange, do signal_after_change.
14179 * casefiddle.c (casify_region): Do modify_region before the change,
14180 signal_after_change afterward.
14182 * insdel.c (prepare_to_modify_buffer): Call signal_before_change.
14183 (del_range, InsCStr): Call signal_after_change.
14184 (signal_after_change, signal_before_change): New functions.
14186 1989-12-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14188 * dispnew.c (init_display) [VMS]: Downcase terminal type.
14190 1989-12-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14192 * sysdep.c: Use NEED_SIOCTL to control use of sioctl.h.
14193 * m/m-mips.h, m/m-iris4d.h: Define that.
14195 * m/m-ibmps2-aix.h (NEED_SIOCTL, HAVE_UNION_WAIT, HAVE_PTYS): Define.
14196 (HAVE_SYSVIPC, HAVE_SOCKETS, X_DEFAULT_FONT): Define.
14197 (sigsetmask): #undef this.
14199 1989-12-15 Joseph Arceneaux (jla@spiff)
14201 * lread.c (Fread_char): Catch error if read non-char.
14202 (Fread_event): New subr. Return any input object.
14204 1989-12-14 Joseph Arceneaux (jla@spiff)
14206 * xfns.c: New variable Vx_no_window_manager.
14207 (Fx_track_pointer): If bufp < 0, abort.
14209 * xterm.c (XTread_socket): When leaving window, set x_mouse_x and
14212 1989-12-13 Joseph Arceneaux (jla@spiff)
14214 * xterm.c (XTread_socket): On ConfigureNotify events, return
14215 "redraw-screen" symbol.
14216 (dumpborder): Only do border stuff if x-no-window-manager non nil.
14217 Also check if there is a tracking rectangle.
14218 (XTupdate_begin): If there is a mouse tracking rectangle, erase
14220 * keyboard.c (read_key_sequence): Return -2 for symbols.
14221 (command_loop_1): DoDsp when 'redraw-screen arrives as input.
14222 For mouse events, call Fexecute_mouse_event with
14223 read_key_sequence_cmd instead of Vmouse_event.
14225 1989-12-08 Joseph Arceneaux (jla@spiff)
14227 * process.c (create_process): For not USG, properly set the
14230 1989-12-07 Joseph Arceneaux (jla@spiff)
14232 * term.c (topos): Under X Windows, abort if topos_hook not
14233 correct. Temporary.
14235 * xfns.c (Fx_horizontal_line): New subr.
14237 1989-12-05 Joseph Arceneaux (jla@spiff)
14239 * keyboard.c (Fexecute_mouse_event): Don't set Vmouse_window here
14242 * xterm.c (construct_mouse_event): Vx_mouse_grabbed now indicates
14243 which keys are depressed.
14244 (construct_mouse_event): Set Vmouse_window here.
14246 1989-12-04 Joseph Arceneaux (jla@spiff)
14248 * screen.c (coordinates_in_window): New function.
14249 (Fcoordinates_in_window_p): Rewritten to use above.
14251 * dispextern.h: New element bufp for display_line structure when
14253 * xdisp.c (redisplay_window): Set this to the position in the
14254 buffer of the first char in this display line.
14255 * dispnew.c (get_display_line): Set this to -1 here.
14257 1989-12-03 Joseph Arceneaux (jla@spiff)
14259 * alloc.c: Upped NSTATICS from 200 to 256.
14261 * xterm.c (XTread_socket): Report MotionNotify events only if
14262 mouse has changed character position. Call x_read_mouse_position.
14263 Set Vmouse_event here.
14264 * xfns.c (x_read_mouse_position): Set new global variables
14265 x_mouse_x and x_mouse_y.
14267 * keyboard.c: Vignore_mouse_events: New variable.
14269 * syntax.c (Fscan_sexps): Doc change.
14271 * lread.c (Fread_char): Return only chars. If new variable
14272 Vignore_mouse_events non nil, execute any mouse events which
14275 1989-12-01 Joseph Arceneaux (jla@spiff)
14277 * xfns.c (Fx_track_pointer): Draw half-sized rectangles for '\n'.
14278 (x_rectangle): Draw half-size if negative argument.
14280 * xterm.c (XTread_socket): Abort if garbage collecting when doing
14283 * ymakefile: #define FLOATSUP if LISP_FLOAT_TYPE defined.
14285 * emacs.c (main): If BSD, set pgrp to pid.
14287 1989-11-30 Joseph Arceneaux (jla@spiff)
14289 * callint.c (Fcall_interactively): For case 'e', set varies[i] to
14290 avoid entering in the command history.
14292 * xterm.c: Removed the function x_indicate_pointer_char.
14293 (XTread_socket): When leaving window, erase mouse tracking box if
14295 * xfns.c (Fx_track_pointer): New function, does what
14296 x_indicate_pointer_char used to.
14297 (x_read_mouse_position): Subtract internal_border_width.
14299 * screen.c: No rubber-banding function for X11.
14301 * window.c (Fmove_to_window_line): Document string fix.
14303 1989-11-29 Joseph Arceneaux (jla@spiff)
14305 * lread.c (Fread_char): Return a Lisp_Object (directly from
14309 * xterm.c: Function keys now arrive as cons cells.
14311 1989-11-27 Joseph Arceneaux (jla@spiff)
14313 * keyboard.c (read_key_sequence): Handle Lisp_Symbols on input
14314 (function keys). Also, handle these and mouse events with
14315 prefixes (by ignoring the prefixes for now).
14317 * xfns.c: New variable Vx_mouse_grabbed.
14318 * xterm.c (construct_mouse_event): Use it.
14319 (XTread_socket): Return Lisp_Symbol for function key.
14321 * buffer.c (reset_buffer_local_variables): Set function_key_map to
14324 1989-11-24 Joseph Arceneaux (jla@spiff)
14326 * buffer.h: Per-buffer function key maps.
14328 * keyboard.c (read_avail_input): Convert chars to Lisp_Objects in
14331 1989-11-22 Joseph Arceneaux (jla@spiff)
14333 * keyboard.c (read_key_sequence): Check type of object returned
14334 from get_char. Handle mouse events (set Vmouse_event) and
14336 (get_char_menu_prompt): Return a Lisp_Object.
14337 (Fexecute_mouse_event): No longer set Vmouse_event.
14338 Vmouse_window set here.
14340 * xterm.c (XTread_socket): KeyPress events now return
14341 Lisp_Objects, as do ButtonPress events.
14342 (construct_mouse_event): New function.
14343 (encode_mouse_button): New function.
14345 1989-11-21 Joseph Arceneaux (jla@spiff)
14347 * keyboard.c (kbd_buffer_store_char, kbd_buffer_get_char):
14348 Store and get Lisp_Objects.
14349 (get_char): Use those Lisp_Objects.
14351 * fileio.c (Fread_filename_internal): If exactly complete, but
14352 string was modified, return string.
14354 * minibuf.c (temp_minibuf_message): Pass correct arguments to Fsit_for.
14356 1989-11-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14358 * s-386-ix.h: New file.
14360 1989-11-17 Joseph Arceneaux (jla@spiff)
14362 * xterm.c (dump_rectangle): Flush the X queue.
14364 1989-11-16 Joseph Arceneaux (jla@spiff)
14366 * xmenu.c (xmenu_show): Use ButtonReleaseMask instead of
14369 * fileio.c (Fmake_directory): New subr.
14371 1989-11-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14373 * config.h-dist (C_SWITCH_SITE, LD_SWITCH_SITE): Mention these.
14374 (HAVE_X11): Renamed from X11 and defined by default.
14375 It shoukld have no effect when not using X.
14377 1989-11-14 Joseph Arceneaux (jla@spiff)
14379 * xfns.c (Fx_get_selection, x_selection_arrival): Use &event
14381 (x_selection_arrival): For incremental selections, loop on
14382 XGetWindowProperty if one is not enough.
14384 1989-11-13 Joseph Arceneaux (jla@spiff)
14386 * ymakefile: Just link if ../oldXMenu/libXMenu11.a already exists.
14388 1989-11-09 Joseph Arceneaux (jla@spiff)
14390 * m/m-sparc.h: If __GNUC__ use "-O", else "-O2"
14392 1989-11-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14394 * search.c (Fstore_match_data): A marker pointing nowhere, treat as 0.
14396 1989-11-08 Joseph Arceneaux (jla@spiff)
14398 * search.c (Fmatch_data): Fixed typo.
14400 * insdel.c (make_gap): Use BUFFER_REALLOC instead of realloc.
14401 * buffer.c (Fget_buffer_create): Use new define BUFFER_ALLOC in
14402 place of malloc, and set b->data.
14403 (Fkill_buffer): Use BUFFER_FREE on b->data, rather than malloc on
14405 * buffer.h: New element data in buffer_text structure.
14406 New define for it, bf_data.
14408 1989-11-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14410 * marker.c (Fset_marker): Don't force POS into visible range.
14411 * window.c (set_marker_restricted): New function does what
14412 Fset_marker did. All calls in this file now use the new function.
14414 1989-11-07 Joseph Arceneaux (jla@spiff)
14416 * buffer.h: Defines for allocating buffer variables.
14418 * ralloc.c: Completely rewritten.
14420 * alloc.c (xmalloc, xrealloc): Return 0 immediately for requests
14423 1989-11-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14425 * search.c (Flooking_at, Fstring_match, search_buffer):
14426 Record in search_regs_from_string whether matching against a string.
14427 (Fmatch_data): Save data as integers if from a string.
14429 * s-umips.h: Now include either s-usg5-2-2.h or s-bsd4-3.h
14430 and then override as needed.
14431 * m-mips.h: System dependence deleted.
14432 LD_SWITCH_MACHINE remains w/ options needed on all systems.
14433 * m-pmax.h: A little of that (LIBS_DEBUG) moved here.
14434 No need to undef LIBS_MACHINE.
14436 * fns.c (Fload_average): FIXUP_KERNEL_SYMBOL_ADDR is now general hook.
14437 * s-umips.h: Define it.
14439 * sysdep.c: Handle BROKEN_FIONREAD.
14441 1989-11-03 Joseph Arceneaux (jla@spiff)
14443 * config.h-dist: Mention LISP_FLOAT_TYPE, GNU_MALLOC, and REL_ALLOC.
14445 * s/s-umips.h: New file.
14447 1989-11-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14449 * process.c (Fopen_network_stream): Handle EINTR in connect.
14450 Describe errno in err msg if connect fails.
14452 1989-11-02 Joseph Arceneaux (jla@spiff)
14454 * vm-limit.c: New file.
14455 * ralloc.c: New file.
14456 * ymakefile: Take vm-limit.o into account.
14458 1989-11-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14460 * alloc.c (staticvec): Make this a simple vector of pointers
14461 rather than an alias for a vector of chars.
14463 1989-11-01 Joseph Arceneaux (jla@spiff)
14465 * window.c: Moved some functions (save_window_save,
14466 replace_window, unshow_buffer) around.
14467 * search.c: Moved function place.
14468 * lread.c: Moved function read_escape.
14469 * unexec.c: Declarations for make_hdr, copy_text_and_data,
14470 copy_sym. Declare mark_x as static void.
14471 * dispextern.h: Removed declaration of new_display_line.
14473 * emacs.c: Do malloc_init if GNU_MALLOC.
14474 * gmalloc.c (malloc_init): New function.
14476 * xfns.c (x_rectangle, Fx_draw_rectangle, Fx_erase_rectangle)
14477 (outline_region, Fx_countour_region, Fx_uncontour_region): New
14478 subroutines for drawing rectangles and things.
14479 (Fx_point_coordinates): New subr.
14481 1989-10-31 Joseph Arceneaux (jla@spiff)
14483 * All .c and .h files: New copyright header.
14485 1989-10-30 Joseph Arceneaux (jla@spiff)
14487 * gmalloc.c: New GNU malloc.
14489 * emacs.c (main, Fdump_emacs): No malloc init if GNU_MALLOC.
14491 * ymakefile: Check if GNU_MALLOC defined.
14493 1989-10-27 Joseph Arceneaux (jla@spiff)
14495 * xfns.c (Fx_pointer_char): New subr.
14496 * xterm.c (x_indicate_pointer): New procedure.
14498 * alloc.c (Fmake_vector_from_list, make_vector_from_list): New subrs.
14500 1989-10-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14502 * xterm.c (x_term_init):
14503 Negate arg to fcntl F_SETOWN if F_SETOWN_SOCK_NEG.
14504 * keyboard.c (Fset_input_mode) [NO_SOCK_SIGIO]:
14505 No interrupt input if using a socket.
14506 * m-sequent.h: Define NO_SOCK_SIGIO, F_SETOWN_SOCK_NEG, MAIL_USE_FLOCK.
14508 1989-10-26 Joseph Arceneaux (jla@spiff)
14510 * xterm.c (x_handle_error_gracefully): Make sure to completely
14511 release input before returning, using:
14512 * xterm.h New macro TOTALLY_UNBLOCK_INPUT.
14514 * xmenu.c (xmenu_quit): No longer use this error_handler; use
14517 1989-10-25 Joseph Arceneaux (jla@spiff)
14519 * config.h-dist: Comment fix.
14521 1989-10-24 Joseph Arceneaux (jla@spiff)
14523 * xfns.c (Fx_draw_lines, translate_vectors): New functions.
14525 1989-10-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14527 * search.c (search_buffer): Always find null string.
14529 * window.c (window_loop): For UNSHOW_BUFFER, don't Fset_buffer
14530 unless window is the selected one.
14532 1989-10-20 Joseph Arceneaux (jla@spiff)
14534 * xdisp.c (display_minibuf_message): Choose minibuf screen first
14535 of all. Return if not visible.
14537 1989-10-19 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14539 * xterm.c (x_handle_error_gracefully): New procedure to handle
14540 non-fatal X errors.
14541 (x_error_handler): Use it.
14542 (acceptable_x_error_p): New macro.
14544 * xfns.c (Fx_own_selection): Use second parameter SCREEN.
14546 * xdisp.c (message, message1): No longer displays messages
14547 when using X but not yet mapped.
14549 1989-10-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14551 * m-pyramid.h (NO_ARG_ARRAY): Define if using GCC.
14553 1989-10-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14555 * vmsfns.c (process_command_input): Call clear_waiting_for_input.
14557 1989-10-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14559 * syntax.c (scan_words): If words_include_escapes not 0,
14560 treat Sescape and Scharquote like Sword.
14561 (syms_of_syntax): Define Lisp variable.
14563 * process.c (wait_reading_process_input): Get rid of kbd_count.
14564 Use detect_input_pending.
14565 * sysdep.c (select, read_input_waiting): Likewise.
14566 (read_input_waiting): Don't read directly into kbd_buffer;
14567 use kbd_buffer_store_char.
14568 * keyboard.c: Don't define kbd_count.
14570 * keyboard.c (read_key_sequence): Reject the prefix char generated
14571 for a Meta char, if it finds a non-prefix definition.
14573 1989-10-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14575 * process.c (wait_reading_process_input): READ_KBD==2 means
14576 wait until have mouse input.
14577 * xfns.c (Fx_get_mouse_event): Use that.
14578 * xterm.c (mouse_event_pending_p): New subroutine.
14580 1989-10-13 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14582 * xfns.c (x_selection_arrival):
14583 (x_send_incremental):
14584 (x_answer_selection_request): New procedures for incremental
14585 selection transfer.
14587 1989-10-12 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14589 * lread.c (complete_filename_p): New function which replaces
14590 absolute_filename_p. This one doesn't consider "~" valid.
14592 1989-10-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14594 * buffer.c: Comment fix.
14596 1989-10-11 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14598 * xfns.c (Fx_open_connection) New X atoms Xatom_incremental and
14601 * xterm.h: New macros MAX_SELECTION and SELECTION_LENGTH.
14603 * process.c (child_sig): Check pid <= 0 in case WNOHANG not defined.
14605 1989-10-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14607 * termcap.c (tgetent, gobble_line): Always store null at end of bfr.
14608 Allocate one extra byte at end to ensure space.
14609 Clean up order of arithmetic when updating ptrs into buffer
14612 1989-10-10 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14614 * xfns.c (Fx_open_connection): Make all X Atoms here.
14616 * xterm.c (x_iconify_screen): Cleaned up this code.
14617 (x_term_init): Removed warpmouseondeiconify stuff.
14619 1989-10-09 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14621 * xdisp.c (DoDsp): Make sure to call unhold_window_change after
14622 before all returns.
14624 * minibuf.c (read_minibuf): Changed set_mouse_position to
14625 Fset_mouse_position.
14627 * xterm.c (XTread_socket): dumprectangle (whole screen) instead of
14628 DoDsp in ConfigureNotify event.
14629 (x_wm_set_size_hint): New calculations for size_hints.
14631 * screen.c (Fset_mouse_position): No more function
14632 set_mouse_position; use x_set_mouse_position directly.
14634 * xfns.c (x_set_cursor_color): Really decode Vx_cusor_fore_pixel
14635 if set. Define new cursor before freeing old. This may eliminate
14636 a server bug on the Sony.
14637 Also check for invisible cursors.
14638 (x_set_mouse_color): Check for invisible pointers.
14639 (x_resize_scrollbars): BLOCK_INPUT whilst doing operations.
14640 (adjust_scrollbars): Likewise.
14642 1989-10-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14644 * m/m-hp9000s800.h (XUNMARK): Delete definition.
14645 (S_IFLNK): Do not undef it.
14647 1989-10-03 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14649 * dispnew.c (get_display_line): If screen not visible, abort.
14651 1989-10-02 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14653 * xterm.c (x_make_screen_visible): Set s->visible, unset
14654 s->iconified for HAVE_X11.
14656 1989-09-29 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14658 * xterm.c (XTread_socket): Check screen s before proceeding for
14661 * xterm.c: No longer sets the variable mouse_down_timestamp.
14662 * xfns.c (Fx_get_mouse_event): mouse_timestamp (formerly
14663 mouse_down_timestamp) set here. Also, mask out upper 9
14664 bits before doing XSET.
14666 1989-09-28 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14668 * xfns.c (Fx_geometry): Kludge for the case of position `-0'.
14669 (Fx_get_mouse_event): Also return the time stamp as last list elt.
14670 (Fx_color_display_p):
14671 (Fx_defined_color):
14673 (defined_color): Eliminate screen argument.
14674 (Fx_create_screen): No more ColorMap component to display.x.
14675 * xterm.h: Likewise.
14677 1989-09-27 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14679 * xfns.c (Fx_own_selection, Fx_get_selection, x_disown_selection):
14680 New funcs, which use new variables Vx_selection_value,
14681 x_begin_selection_own, mouse_down_timestamp, requestor_time,
14682 requestor_window, property_name, and x_begin_selection_own.
14684 * xterm.c (XTread_socket): Only do stuff if s for FocusOut under X11.
14687 SelectionNotify: New events to handle the selection inter-client
14688 communication mechanism.
14689 ButtonPress: Set mouse_down_timestamp.
14691 1989-09-26 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
14693 * xfns.c: New variable Vx_cursor_fore_pixel.
14695 1989-09-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14697 * lread.c (openp): Don't ! the result of `access'.
14699 1989-09-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14701 * fileio.c (Fread_file_name_internal): Try to work properly
14702 if dirs are specified using environment vars. Preserve use of vars.
14704 1989-09-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14706 * fileio.c: Comment fix.
14708 1989-09-18 Joseph Arceneaux (jla@spiff)
14710 * xfns.c (Fx_get_cut_buffer): XFree the data returned by
14713 1989-09-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14715 * fileio.c (Fwrite_region): Reinstall #if 0 around fstat.
14717 1989-09-12 Joseph Arceneaux (jla@spiff)
14719 * xfns.c (defined_color): New function to test if a color is
14721 (x_decode_color): Use defined_color.
14722 (Fx_defined_color): New subr.
14723 (select_visual): Select the appropriate X11 Visual.
14724 (Fx_open_connection): Use select_visual. screen_visual now
14725 global and used when making emacs windows.
14726 (Fx_color_display_p): New subr.
14728 1989-09-11 Joseph Arceneaux (jla@spiff)
14730 * fileio.c (Fwrite_region): Fixed typo.
14732 * keyboard.c (Fdiscard_input): Fixed typo.
14734 * window.c (Fnext_window): Fixed typos.
14736 * alloc.c (xmalloc, xrealloc): hold_window_changes whilst doing
14737 the associated operations.
14739 * dispnew.c (init_display):
14740 (Fsleep_for, Fsit_for):
14741 * process.c (Faccept_process_output):
14742 * keyboard.c ({clear,set}_waiting_for_input):
14743 (quit_throw_to_get_char, get_char):
14744 * xdisp.c (DoDsp, message, message1): Undid changes of Aug. 23
14745 (see below); accept window changes most of the time.
14747 1989-09-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14749 * keyboard.c: Eliminate kbd_count, and use two pointers,
14750 kbd_fetch_ptr and kbd_store_ptr. Assume buffer is empty when
14751 they are equal. This should eliminate timing error.
14752 (kbd_buffer_store_char): Update kbd_store_ptr when storing.
14753 Don't ever fill the entire buffer.
14754 (kbd_buffer_get_char): Update kbd_fetch_ptr when fetching.
14755 (stuff_buffered_input): Likewise.
14756 (get_input_pending): Compare the two pointers.
14758 * fileio.c (Fwrite_region): Reenable using fstat rather than stat
14759 to get the modtime of the file just written, except on VMS and APOLLO.
14761 1989-09-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14763 * emacs.c, doc.c, filelock.c: Move Emacs header includes after
14764 system header includes, and #undef NULL in between.
14766 1989-08-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14768 * process.c [SYSV_PTYS]: If `titan', include some other files.
14770 1989-08-29 Joseph Arceneaux (jla@spiff)
14772 * fileio.c: read-file-name replaced with new version, formerly
14773 called new-read-file-name.
14775 1989-08-26 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
14777 * window.c (Fscroll_other_window): Use save-excursion (in effect)
14778 to save and restore current buffer and point.
14779 (window_scroll): If selected window's buffer isn't current,
14780 make it current, using save-excursion to go back.
14782 1989-08-24 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
14784 Use two variables to convey reason for synch process death,
14785 to avoid consing in signal handler.
14786 They are synch_process_death and synch_process_retcode.
14787 * callproc.c (Fcall_process): Use both variables.
14788 * process.c (child_sig): Set both variables.
14790 1989-08-24 Joseph Arceneaux (jla@spiff)
14792 * xterm.c (x_wm_set_size_hint): Use new ICCCM values for size_hints.
14794 1989-08-24 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
14796 * buffer.c: Doc fix.
14798 1989-08-24 Joseph Arceneaux (jla@spiff)
14800 * xfns.c (Fx_create_screen): X11 part. Set height and width to 0
14801 before calling change_screen_size.
14803 * buffer.c (kill-all-local-variables): Changed doc string.
14805 1989-08-23 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
14807 * dispnew.c (init_display): Call hold_window_change.
14808 (Fsleep_for, Fsit_for): Temporarily unhold, while waiting.
14809 * process.c (Faccept_process_output): Likewise.
14810 * keyboard.c ({clear,set}_waiting_for_input): Temporarily unhold.
14811 (quit_throw_to_get_char, get_char): Rehold.
14812 * xdisp.c (DoDsp, message, message1):
14813 Unhold and rehold momentarily before any real work.
14815 * Makefile (CPP): Use $(CC).
14817 1989-08-22 Joseph Arceneaux (jla@spiff)
14819 * xfns.c (x_set_mouse_color): Use new variables Vx_pointer_mask,
14822 1989-08-21 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
14824 * alloc.c (malloc_warning): Do nothing if ignore_warnings.
14825 (init_alloc_once): Set ignore_warnings while initializing allocation.
14827 * buffer.c: Doc fix.
14829 1989-08-21 Joseph Arceneaux (jla@spiff)
14831 * xterm.c (x_calc_absolute_position): New function to calculate
14832 positive screen position.
14833 (x_set_position): Use it.
14834 (x_reset_cursor): No longer exists.
14836 * xfns.c (x_set_mouse_color): Reset the cursor even if there's no
14838 (x_figure_window_size): Use x_calc_absolute_position.
14839 (x_set_mouse_color): Rewrote this function. Always set cursor and
14840 its color. If the window exists, then attach the cursor to it.
14841 No longer uses x_reset_cursor.
14843 (x_set_background):
14844 (x_set_foreground): Use x_set_mouse_color instead of x_reset_cursor.
14846 1989-08-18 Richard Stallman (rms@hobbes.ai.mit.edu)
14848 * vmsfns.c: Define PRV$V_... syms if prvdef.h does not.
14850 1989-08-18 Joseph Arceneaux (jla@spiff)
14852 * xfns.c (Fx_geometry): New subr.
14853 (x_figure_window_size): Don't worry about "geometry" here anymore;
14854 now done in x-win.el.
14855 (x_icon): Look in parms for iconic-startup rather than in variable.
14857 1989-08-16 Joseph Arceneaux (jla@spiff)
14859 * xfns.c (x_set_*_scrollbar): Don't destroy a scrollbar if it
14860 doesn't exist. Also set scrollbar size only if actually creating
14862 (x_set_name): Don't do anything if the X window doesn't exist.
14863 Set the icon name as well.
14864 (x_window): Set the class hints for the window.
14866 1989-08-16 Richard Stallman (rms@hobbes.ai.mit.edu)
14868 * lread.c (Fload): Fix unterminated comment.
14870 * scroll.c (scrolling_max_lines_saved): Replace fixed threshold of 20
14871 with 1/4 of average length of lines.
14873 1989-08-13 Joseph Arceneaux (jla@spiff)
14875 * ymakefile: Do ${make} for oldXMenu.
14877 1989-08-13 Richard Stallman (rms@hobbes.ai.mit.edu)
14881 1989-08-12 Richard Stallman (rms@hobbes.ai.mit.edu)
14883 * emacs.c (main): Check for failure opening -t device.
14884 Fatal error if terminal isn't a real terminal.
14886 * window.c (Fscroll_other_window): Let Vother_window_scroll_buffer
14887 specify a buffer to scroll.
14889 1989-08-11 Richard Stallman (rms@hobbes.ai.mit.edu)
14891 * dispnew.c: Handle BROKEN_FIONREAD as in other files.
14893 1989-08-09 Joseph Arceneaux (jla@spiff)
14895 * ../oldXMenu/Makefile: Removed all the unneccessary X stuff.
14897 1989-08-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14899 * fileio.c (barf_or_query_if_file_exists): When signalling,
14900 provide the expected args for a file-error.
14902 1989-08-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14904 * process.c: Let NEED_BSDTTY control include of bsdtty.h.
14906 * process.c [BSD or STRIDE]: If ioctl.h fails to define O_NDELAY,
14907 and we need it, try fcntl.h.
14909 * s-bsd*.h, s-rtu.h, s-umax.h, s-unipl*.h: Define HAVE_UNION_WAIT.
14910 * m-stride.h: Likewise.
14911 * process.c: Decide which type to use with `wait'
14912 according to HAVE_UNION_WAIT. If WAITTYPE already defined,
14913 assume everything all set up for this.
14915 * m-hp9000s300.h: Unless NOT_C_CODE or NO_SHORTNAMES,
14916 define WAITTYPE and WRETCODE, and include sys/wait.h.
14918 1989-08-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14920 * callproc.c (child_setup): Get rid of junk in #if 0.
14922 1989-08-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14924 * abbrev.c (Fdefine_abbrev): Allow nil spec'd as expansion.
14925 (Fexpand_abbrev): Eliminate abbrev length limit; use alloca.
14926 Eliminate redundant tests, always true.
14927 Record positions of both start and end of abbrev.
14928 Handle whitespace following the abbrev, before point.
14930 * callproc.c (Fcall_process_region): Use unwind-protect to delete
14933 * lread.c (load_unwind): Free the pointer-word malloc'd in Fload.
14935 1989-08-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
14937 * emacs.c (Fdump_emacs): Doc fix.
14939 1989-08-02 Joseph Arceneaux (jla@spiff)
14941 * xfns.c: Reorganized several functions to be in same order as the
14943 (x_set_border_color): For X11, don't set pix to -1 for
14945 (Fx_create_screen): Simplified this function even more.
14947 1989-07-31 Joseph Arceneaux (jla@spiff)
14949 * keymap.c: New subrs Fuse_local_mouse_map, Fcurrent_local_mouse_map.
14951 * xfns.c (x_set_mouse_color):
14952 (x_set_cur): No need to redraw display after doing these.
14954 (Fx_get_mouse_event): Accept motion events.
14955 (x11_encode_mouse_button): Encoding a la X11, except for one
14956 kludge. This is used only for motion events.
14958 * xterm.c (XTread_socket): Handle motion eveots.
14960 1989-07-26 Joseph Arceneaux (jla@spiff)
14962 * xfns.c (Fx_create_screen): I couldn't take it any more, the
14963 ugliness of this routine offended me too deeply. It is now
14964 completely rewritten for X11 and uses subroutines:
14965 (x_figure_window_size)
14970 (Fx_draw_rectangle):
14971 (Fx_erase_rectangle): New subrs.
14973 * m/m-intel386.h: Changes in LOAD_AVE_TYPE, LOAD_AVE_CVT, and
14974 FSCALE to make loadst work correctly.
14976 1989-07-24 Joseph Arceneaux (jla@spiff)
14978 * xfns.c (Fmodify_screen_parameters): Check s->output_method
14979 before looping through alist.
14981 (Fx_create_screen): Call x_default_parameter for font.
14982 Don't add the scrollbar widths when making the main window: this
14983 is done when the scrollbar is actually made.
14985 (x_set_vertical_scrollbar): Set v_scrollbar_width here instead of
14986 in install_vertical_scrollbar. Also, pass that function macros
14987 PIXEL_WIDTH, PIXEL_HEIGHT as args.
14989 (x_set_horizontal_scrollbar): Likewise.
14991 * xterm.c (x_set_window_size): Don't call the things called
14992 anyway upon the ConfigureNotify event.
14993 (x_set_offset): Use the screen-size lisp variables for these
14996 * xterm.h: Added the screen parameter declarations from xfns.c for
14999 1989-07-21 Joseph Arceneaux (jla@spiff)
15001 * sysdep.c: Don't include sioctl.h on mips.
15003 * buffer.c (Flist_buffers): Pass prefix as arg.
15005 * editfns.c (Finsert_char): Insert at most 256 chars at a whack.
15007 * xterm.c (x_draw_box): Moved cursor box right by one pixel.
15009 1989-07-20 Joseph Arceneaux (jla@spiff)
15011 * xfns.c: New variable x_screen_visuals, set if Fx_open_display,
15012 to be used in screen-color-p.
15014 * process.c (create_process): Don't call setpgrp_of_tty here.
15015 Also, do setpgrp for USG regardless of HAVE_PTYS.
15017 * callproc.c (child_setup): Ignore argument set_pgrp and always do
15019 (Fcall_process): Don't call setpgrp_of_tty here.
15021 * keyboard.c (command_loop_1): Make sure Vprefix_arg is NULL
15022 before finalizing_kbd_macro_chars;
15024 1989-07-19 Joseph Arceneaux (jla@spiff)
15026 * xfns.c (Fx_rebind_key): Completely rewrote this function for
15029 1989-07-13 Joseph Arceneaux (jla@spiff)
15034 * m/m-ibmrt-aix.h: Changed IBMRTAIX to IBMAIX.
15035 * sysdep.c: Likewise. Also, don't define our closedir if IBMAIX.
15036 * m/m-ibmps2-aix.h: New file.
15038 1989-07-12 Joseph Arceneaux (jla@spiff)
15040 * xdisp.c (message, message1): If using x, but haven't mapped the
15041 window yet, use noninteractive output.
15043 * dispnew.c (Fredraw_display): Don't redraw a screen which is not
15046 * xterm.c (x_set_window_size): Don't DoDsp if screen isn't visible.
15048 * xfns.c (x_set_mouse_color)
15049 (x_set_border_color)
15050 (x_set_cursor_color)
15051 (x_set_background_color)
15052 (x_set_foreground_color): Don't redraw when screen isn't visible.
15054 1989-07-11 Joseph Arceneaux (jla@gluteus)
15056 * xterm.c (x_term_init, XTread_socket): Use ConnectionNumber for
15057 both X10 and X11. This is #defined for X10.
15059 * screen.c (Fset_screen_width, Fset_screen_height): These now take
15062 1989-07-10 Joseph Arceneaux (jla@gluteus)
15064 * xterm.c (x_set_window_size): Call x_wm_set_size_hint.
15065 (x_new_font): Don't call x_wm_set_size_hint.
15067 * xfns.c (x_set_internal_border_width): Don't call
15068 x_set_resize_hint, and call x_set_window_size after BLOCK_INPUT.
15070 * screen.c, dispnew.c (Fset_screen_width, Fset_screen_height):
15071 These functions have moved to screen.c.
15073 1989-07-07 Joseph Arceneaux (jla@sugar-bombs.ai.mit.edu)
15075 * eval.c (Ffuncall): Handle 6 arguments. Also, print a nice error
15076 message if there are more than 6 args.
15078 * fns.c (Fyes-or-no-p):
15079 * minibuf.c (read_minibuf_unwind):
15080 (Fread_minibuffer):
15081 (Fread_no_blanks_input):
15082 (Fcompleting_read): Extra arg to read_minibuf.
15084 * callint.c (Fcall_interactively):
15085 * keyboard.c (Fexecute_extended_command):
15086 * minibuf.c (Fread_command):
15089 (Fread_buffer): Extra arg to Fcompleting_read.
15091 1989-07-05 Joseph Arceneaux (jla@spiff)
15093 * minibuf.c (read_minibuf): New argument back_n is number of
15094 characters to back-up point by.
15095 (Fcompleting_read): Same.
15096 * fileio.c (Fnew_read_file_name): New version of Fread_file_name
15097 using the above features.
15098 (Finsert_file_contents): Check for negative file length.
15100 1989-07-03 Joseph Arceneaux (jla@spiff)
15102 * xfns.c (x_pixel_width, x_pixel_height) New functions.
15103 * screen.c (Fscreen_pixel_size): New subr.
15105 1989-06-30 Joseph Arceneaux (jla@spiff)
15107 * xterm.c: Use invocation_name as argument to XGetDefaults.
15109 1989-06-29 Joseph Arceneaux (jla@spiff)
15111 * xterm.c (x_error_handler) #ifdef sony_news use XDefaultError
15112 instead of XPrintDefaultError due to weirdness in Sony library.
15113 * xterm.c: Avoid infinite raise/lower, enter/leave cycle when both
15114 auto_raise and auto_lower are set by checking times between
15115 consecutive Enter events.
15117 1989-06-27 Joseph Arceneaux (jla@sugar-bombs.ai.mit.edu)
15119 * screen.c (Fselect_screen):
15120 * window.c (Fselect_window): The previous strategy was bugging the
15121 lisp stuff, so these are now rewritten.
15123 1989-06-26 Joseph Arceneaux (jla@galapas.ai.mit.edu)
15125 * cm.c (Wcm_init): Don't check for Wcm.cm_ds, since this has been
15127 (losecursor): This function now a #define in cm.h.
15129 * xterm.c (x_iconify_screen): Send message to root window to do
15130 this, as per latest Inter-Client Communications Conventions. This
15131 is commented out until it's implemented by X. For now, do it with
15132 the iconic_state hint.
15133 (x_deiconify_screen): For X11, just Map the window, as per the new
15135 (x_make_screen_visible): Only handle visible and iconified screen
15136 elements for X10; these variables are handled in event processing
15138 (x_make_screen_invisible): Send an UnmapNotify event to the root
15139 window to aprise the window manager of the change.
15140 (XTread_socket): Catch VisibilityNotify events.
15142 1989-06-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15144 * window.c (Fsplit_window): If horizontal, round left window size up.
15146 1989-06-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15148 * cm.h (cmplus): Improve formatting.
15149 Use losecursor when reach end of line, if losewrap.
15151 * cm.h: New fields to handle multi-line and multi-char motion,
15152 and both max and min cost for certain operations.
15153 * term.c (term_init): Init those fields.
15155 * term.c (clear_end_of_line_raw): Don't clear last char of last line
15158 * abbrev.c (Finsert_abbrev_table_description): Make 2nd arg optional.
15160 1989-06-23 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15162 * xfns.c, lisp/term/x-win.el: C routine Fscreen_color_p now lisp
15163 function x-color-screen-p in x-win.el.
15164 (x_set_cursor_color): New method: first disallow same cursor as
15165 background, then if cursor not foreground, use it as cursor
15168 1989-06-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15170 * lisp.h (XPNTR): Don't define if already defined.
15172 1989-06-22 Joseph Arceneaux (jla@cream-of-wheat.ai.mit.edu)
15174 * screen.c: New subrs Ficonify_screen, Fdeiconify_screen,
15175 Fread_mouse_position, Fset_mouse_position.
15177 * xterm.c: New functions x_deiconify_screen, x_iconify_screen.
15179 1989-06-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15181 * window.c (Fsplit_window, change_window_height):
15182 Enforce minimum of 2 for window_min_width and window_min_height.
15184 1989-06-22 Joseph Arceneaux (jla@galapas.ai.mit.edu)
15186 * dispnew.c (unhold_window_change): Don't set and unset in_display
15187 before and after calling change_screen_size.
15189 1989-06-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15191 * buffer.c (Fkill_buffer): Ignore errors deleting auto-save file.
15192 Delete only if delete-auto-save-files.
15194 * data.c (Fmake_local_variable): Don't change value if unbound.
15196 1989-06-20 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15198 * screen.c (Fselect_screen): Use x_set_mouse_position instead of
15201 * xterm.c (x_enter_screen): Deleted, now merged with
15202 * xfns.c (x_set_mouse_position): If the position is negative, use
15203 the center screen position.
15205 * data.c (swap_in_symval_forwarding): Declared tem1.
15206 (Fset): Changed variable name void to voide. Also, set it to a C
15207 true/false, rather than Qt or Qnil.
15209 1989-06-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15211 * eval.c (Fdefvar): Operate on default value if sym is buffer-local.
15212 (Fdefconst): Likewise.
15214 Allow buffer-local variables to be void in one buffer
15215 or in the default value.
15216 * data.c (swap_in_symval_forwarding): New function.
15217 (Fboundp, Fsymbol_value): Use that.
15218 (default_value): New function.
15219 (Fdefault_value): Use that.
15220 (Fdefault_boundp): New function, uses that.
15222 1989-06-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15224 * ymakefile: New variable OLDXMENU has filename of libXMenu.a
15225 as a target. Make temacs depend on it.
15227 1989-06-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15229 * ymakefile [HAVE_X11, HAVE_X_MENU]: Build oldXMenu.
15230 * xmenu.c: Get XMenu.h from sibling dir.
15232 * buffer.c (Fkill_buffer): Return t if buffer is killed.
15233 Delete auto-save file if any.
15235 1989-06-09 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15237 * window.c: Initialize auto_new_screen to 0 (nil).
15239 * screen.c (make_screen): Added auto_lower to the list of screen
15240 elements initialized.
15241 (make_minibuffer_screen): Likewise.
15243 1989-06-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15245 * window.c (Fset_window_point): Don't lose if window's buffer is
15248 1989-06-08 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15250 * xfns.c (Fx_open_connection): Added 9 Lisp variables
15251 defined by the screen and server.
15253 1989-06-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15255 * m-pmax.h: New file.
15257 1989-06-08 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15259 * xfns.c: Removed superfluous definition of gray_bits.
15261 1989-06-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15263 * m-hp9000s300.h: Define NEED_BSDTTY unless NOMULTIPLEJOBS.
15265 1989-06-07 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15267 * emacs.c (Fkill_emacs): If under X, call
15268 Fx_close_current_connection. This has fixed the "bad file" bug.
15269 * xfns.c (Fx_close_current_connection): Added this subr which for
15270 the moment serves only to close the X-connection when killing emacs.
15272 1989-06-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15274 * m-hp9000s800.h: Define NEED_BSDTTY here.
15275 * s-hpux.h: Not here.
15277 1989-06-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15279 * s/s-hpux.h: Define NEED_BSDTTY.
15281 1989-06-06 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15283 * xterm.c (x_new_selected_screen): Make the new selected_screen
15284 and it's selected_window's screen be the same.
15285 (x_enter_screen): Calculate the middle of the screen, and warp the
15286 mouse there. Also, raise the screen before doing so.
15288 1989-06-05 Joseph Arceneaux (jla@cream-of-wheat.ai.mit.edu)
15290 * xterm.c (x_set_window_size): If not already in DoDsp (checked
15291 with variable in_display) then DoDsp here. Handles redisplay
15292 after screen configuration.
15293 (x_error_handler): Print out stuff about the error if we're in
15296 * dispnew.c (change_screen_size): No longer call DoDsp here.
15298 1989-06-05 Chris Hanson (cph@kleph)
15300 * syntax.c (Fmodify_syntax_entry): Change documentation string to
15301 reflect earlier change to action of `p' syntax bit.
15303 1989-06-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15305 * lread.c (read1): Don't accept "" in middle of string.
15307 1989-05-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15309 * search.c (Freplace_match): If \N has nothing to insert,
15312 1989-05-29 Joseph Arceneaux (jla@gracilis.ai.mit.edu)
15314 * xfns.c (Fx_create_screen): If parms is nil and
15315 Vx_screen_defaults isn't, then use them.
15316 (Fdisplay_buffer): Call Fx_create_screen with Qnil.
15318 1989-05-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15320 * syntax.c (scan_lists): Once within a word, treat Squote like Sword.
15322 1989-05-24 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15324 * dispnew.c (change_screen_size): DoDsp if not pretend.
15326 1989-05-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15328 * search.c (skip_chars): Dumb error checking for \.
15330 1989-05-22 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15332 * screen.c (Fselect_screen): Under X, basically just warp the
15333 cursor into the desired screen. The event handler will then do
15335 (Frestore_screen_configuration): Don't set the mouse position.
15337 * window.c (Fselect_window): If window's screen is not selected,
15338 call Fselecte_screen.
15339 (Fdisplay_buffer): Call Fx_create_screen with x-screen-parameters
15340 as argument instead of nil.
15342 * keyboard.c (clear_waiting_for_input): Don't call
15343 x_new_selected_screen here.
15345 * xterm.c (XTread_socket): Add case slots for CirculateNotify and
15346 CirculateRequest events.
15348 1989-05-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15350 * doc.c (Fsubstitute_command_keys): Evaluate \\<...> keymap
15353 * keymap.c (Fapropos_internal): New Lisp function, old apropos
15354 but only returns a list.
15356 1989-05-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15358 * process.c (Fopen_network_stream): Don't set kill-without-query.
15360 1989-05-19 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15362 * xterm.c (x_new_selected_screen): This now takes a struct screen
15363 pointer as parameter.
15364 (XTread_socket): Call x_new_selected_screen *before* dumpborder.
15366 1989-05-16 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15368 * xfns.c (x_window_to_scrollbar): If the caller's not interested
15369 in the names--passing 0 for last two parameters--just return the
15372 * xterm.c (x_enter_screen): Added this function for warping the
15373 pointer into a screen.
15375 1989-05-16 Chris Hanson (cph@kleph)
15377 * syntax.c (scan_lists, scan_sexps_forward): Treat characters
15378 whose "prefix" bit is on as whitespace when they are encountered
15379 between expressions. When they occur within expressions they are
15380 treated according to their syntax code.
15382 1989-05-16 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15384 * xterm.c (x_new_selected_screen): Don't call Fselect_screen.
15385 Just do everything here.
15387 * window.c (Fselect_window): If the screen associated with the
15388 window is not selected, warp the mouse, cause an EnterNotify event
15389 which then causes the proper screen to become selected. This does
15390 *not* call Fselect_screen.
15392 * screen.c (Fselect_screen): Now this is *only* a lisp subr. It
15393 just calls Fselect_window on the selected window of the screen.
15395 1989-05-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15397 * editfns.c (Fsubst_char_in_region): If NOUNDO, do increment tick,
15398 but maybe also increment save-tick.
15400 1989-05-15 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15402 * xterm.c (x_set_window_size): Only one #ifdef HAVE_X11 due to new
15404 * xterm.h: New macro XChangeWindowSize for both X10 and X11.
15406 * xfns.c (Fx_create_screen): Use XCreateWindow instead of
15407 XCreateSimpleWindow to directly set some extra attributes.
15409 1989-05-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15411 * syntax.h (SYNTAX_PREFIX): New macro.
15412 * syntax.c (Fmodify_syntax_table): Handle `p'; set new flag.
15413 (describe_syntax): Describe new flag.
15414 (Fbackward_prefix_chars): Move back over such chars.
15416 * lread.c (read1): Dumb errors in last change.
15418 1989-05-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15420 * lread.c (read1): Error if EOF after `?' or in string.
15422 * sysdep.c (init_sys_modes) [IBMRTAIX]: Typo; had s for sg.
15424 1989-05-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15426 * s/s-usg5-3.h: Define HAVE_SYSVIPC?
15428 * alloc.c (Fmake_byte_code): If purifying, purecopy all elements.
15430 * ymakefile (LIBXMENU): Use -loldX.
15431 Find libXMenu11.a in special place.
15433 1989-05-12 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
15435 * xfns.c (Fx_create_screen): If user has specified
15436 `x-iconic-startup' then start emacs in iconic form.
15437 Look for icon position in `icon-left' and `icon-top', or use
15440 * xterm.c (x_term_init): If server doesn't respond, use fatal
15441 instead of error. Also tell user about -d option.
15443 1989-05-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15445 * sysdep.c (init_sys_modes, reset_sys_modes):
15446 Handle TIOCGLTC even if HAVE_TERMIO.
15448 * print.c (Qprint_escape_newlines): New variable.
15449 * minibuf.c (read_minibuf): Make it t locally in minibuffers.
15451 * fileio.c (Fcopy_file): Check for error on close.
15453 1989-05-10 Joseph Arceneaux (jla@corn-chex.ai.mit.edu)
15455 * xfns.c (adjust_scrollbars): Don't subtract 2 from
15456 h_scrollbar_height when calculating `length'.
15458 1989-05-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15460 * eval.c (call_debugger): Set entering_debugger.
15461 (find_handler_cause): Don't enter debugger if that's set.
15462 (Fbacktrace): Clear it; we are presumably in the debugger.
15464 * m/m-sps7.h: New file.
15466 1989-05-08 Joseph Arceneaux (jla@rice-chex.ai.mit.edu)
15468 * xterm.c (XTread_socket_hook): For X11, on map and unmap events
15469 check the window manager hints for iconification status.
15471 * xterm.c (x_make_widow_icon): For X11, just request
15472 iconification of the window manager.
15474 1989-05-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15476 * m/m-clipper.h: New file.
15478 1989-05-07 Joseph Arceneaux (jla@corn-chex.ai.mit.edu)
15480 * xfns.c (adjust_scrollbars): Don't subtract 2 from
15481 v_scrollbar_width when calculating `height'.
15483 * xfns.c (x_set_foreground, x_set_border_pixel): Finished color
15484 coordination. Scrollbar border, thump-arrows, and slider pixmap
15485 linked with foreground color; slider border with window border.
15487 1989-05-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15489 * lread.c (read1): Handle octal integers.
15491 * macros.c: Doc fix.
15493 * search.c (Fstore_match_data): Allow ints instead of markers.
15495 * keyboard.c (get_char_menu_prompt): New function; does menu prompting
15496 based on current keymaps.
15498 1989-05-05 Joseph Arceneaux (jla@gracilis.ai.mit.edu)
15500 * xfns.c (Fx_set_face): Rewrote the doc-string and renamed the
15503 1989-05-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15505 * unexec.c: New control parameters COFF_BSD_SYMBOLS, KEEP_OLD_PADDR,
15506 KEEP_OLD_TEXT_SCNPTR, ADJUST_TEXT_SCNHDR_SIZE, ADJUST_TEXTBASE,
15507 HEADER_INCL_IN_TEXT.
15509 * unexec.c: Define IN_UNEXEC as flag for config.h.
15511 * keymap.c: Fapropos, etc., deleted. (Now in Lisp code.)
15513 * eval.c (Fcommandp): Byte code object is command if interactive slot
15516 1989-05-05 Chris Hanson (cph@kleph)
15518 * process.c [HPUX && !NOMULTIPLEJOBS]: Include <bsdtty.h>, which
15521 1989-05-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15523 * data.c (Faref, Farray_length): Handle byte-code objects.
15524 * fns.c (Flength, concat): Likewise.
15526 * data.c (Faref, Faset, Farray_length): Rename arg VECTOR to ARRAY.
15528 * m/m-hp9000s300.h: Undefine NOMULTIPLEJOBS.
15530 * keyboard.c (Fcommand_execute): Treat bytecode object as function.
15532 * callint.c (Fcall_interactively): Separate decoding of fcn
15533 from handling of it.
15535 * alloc.c (Fmake_byte_code): Renamed from Fmake_compiled_code.
15536 Make it pure if Vpurify_flag is non-nil.
15537 (Fpurecopy): Handle byte-code objects.
15539 * keyboard.c (get_char): Use Fsit_for for echoing timeout, not alarm.
15540 Do this before timeout for auto-save since the latter is longer.
15541 (request_echo): Function deleted.
15542 ({set,clear}_waiting_for_input): No need for echo_now, echo_flag.
15544 1989-05-04 Joseph Arceneaux (jla@gracilis.ai.mit.edu)
15546 * xterm.c (x_lower_window, x_raise_window): Don't do anything if
15547 the window isn't visible.
15549 * xfns.c (x_set_foreground_color): Recolor the scrollbar windows
15550 appropriately, compatible with xterm.
15552 * xterm.c (x_reset_cursor): Do cursor recoloring.
15554 1989-05-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15556 * fns.c (Frandom): With number as arg, return value < that number.
15558 * sysdep.c [USG, BSD4_1] (random): Call `rand' twice, to get
15559 30 bits of significance.
15561 1989-05-03 Joe Arceneaux (jla@gracilis.ai.mit.edu)
15563 * xterm.c (x_draw_box): Use the cursor_gc.
15564 * xfns.c (x_set_cursor_color, x_create_screen): Do a better job
15565 with cursor colors, and use 0 line width for the cursor_gc.
15567 1989-05-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15569 Begin changing representation of compiled functions.
15570 * lisp.h (enum Lisp_Type): New type code Lisp_Compiled, like a vector.
15571 (COMPILED_*): Names for slots in those vectors.
15572 * alloc.c (Fmake_compiled_code): New function.
15573 * eval.c (Fcommandp, Feval, Ffuncall, funcall_lambda):
15574 Handle fcns of type Lisp_Compiled.
15575 (Fcommandp, Fapply): Avoid directly nested ifs.
15576 * print.c (print): Handle Lisp_Compiled objects.
15577 * callint.c (Fcall_interactively): Likewise.
15578 * doc.c (Fdocumentation): Likewise.
15580 * keyboard.c (Fopen_dribble_file): nil as arg means close it.
15582 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c:
15583 * casefiddle.c, cmds.c, data.c, dired.c, dispnew.c, doc.c, editfns.c:
15584 * eval.c, fileio.c, filelock.c, floatfns.c, fns.c, keyboard.c:
15585 * keymap.c, lread.c, minibuf.c, mocklisp.c, print.c, process.c:
15586 * screen.c, search.c, syntax.c, undo.c, vmsfns.c:
15589 1989-04-30 Joseph Arceneaux (jla@hobbes)
15591 * xterm.c (XTring_bell): Wasn't passing selected_screen to XTflash.
15594 * xterm.c (XTread_socket): Don't check if server died under
15597 1989-04-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15599 * window.c (Fdelete_other_windows): Bug getting top edge.
15601 1989-04-29 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15603 * keyboard.c (get_char): Auto save if enough time elapses.
15604 (auto_save_timeout): New Lisp variable.
15606 * xdisp.c (try_window, try_window_id): Set w->redo_mode_line
15607 if should show percentage instead of `Bot'.
15609 1989-04-29 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu)
15611 * xterm.c (x_term_init): Don't set visible bell, as it pre-empts
15614 1989-04-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15616 * doc.c (syms_of_doc): Make Vdoc_file_name a Lisp variable
15617 named internal-doc-file-name.
15619 1989-04-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15621 * m-news.h: m-news800.h renamed.
15622 Removed EXPLICIT_SIGN_EXTEND and COMPILER_REGISTER_BUG.
15623 Removed SEGMENT_MASK and sigmask.
15624 LOAD_AVE_TYPE is now `double'; LOAD_AVE_CVT changed too.
15625 Define m68000 if not defined.
15627 1989-04-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15629 * ymakefile: If COFF_ENCAPSULATE, define LD as gcc -nostdlib.
15631 * sysdep.c: Unconditionally include sys/ioctl.h.
15633 * m/m-mips.h [USG]: Define LIBS_TERMCAP.
15634 If HAVE_X11, define HAVE_VFORK.
15636 1989-04-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15638 * m/m-altos.h: Use termcap, not terminfo.
15639 Define COFF_ENCAPSULATE if using gcc.
15640 Use built-in alloca if using gcc.
15643 * lread.c (absolute_filename_p): On ALTOS, @ means absolute.
15645 * process.c: Missing #endif.
15646 * fileio.c (Finsert_file_contents): Define `p' for last change.
15647 * buffer.c, floatfns.c: Typos in DEFUN doc strings.
15648 * keyboard.c: Typo in DEFVAR_LISP doc string.
15650 * window.c (Fdelete_other_windows): Fix confusion about type of W.
15652 1989-04-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15654 * ymakefile (LDFLAGS): Forgot to use LD_SWITCH_SITE.
15656 * xterm.c (XTflash): Draw the bars here.
15657 (x_invert_screen): Change to invert entire window.
15658 (stufflines): Changed args to XClearArea.
15659 (XTread_socket): Clean up handling of KeyPress events.
15660 For LeaveWindow, ignore uninteresting ones and handle autolower.
15661 For FocusIn, ignore if unknown window, and handle autoraise.
15662 For MotionNotify, add real handling for X11.
15663 For ConfigureNotify, count width of scroll bars.
15664 Don't call change_screen_size redundantly; ignore linked expose events.
15665 Update left and top pos if nec.
15666 For button events, ignore if not in known window or scrollbar.
15667 (x_new_selected_screen): Takes screen as arg.
15668 (x_error_handler): Arg type different for X11.
15669 (x_set_window_size) [HAVE_X11]: Call change_screen_size
15670 before x_wm_set_size_hint.
15671 (x_make_window_visible): Make scroll bars visible too, if any.
15672 (x_lower_window): New fn.
15673 (x_wm_set_size_hint): Take account of width of scroll bars.
15674 Ior specified hint flags with those already set.
15676 * xterm.h (HSCROLL_HEIGHT): HSCROLL_WIDTH is renamed.
15677 (MAXWIDTH): Increased to 300.
15678 (MAXHEIGHT): Increased to 100.
15679 (DISPLAY_SCREEN_ARG): Remove parentheses.
15680 (ButtonReleased, WhichMouseButton): Delete definitions.
15682 * xmenu.c: Adapted to new X interface. X11ONLY replaced with xDISPLAY.
15683 Many X11 conditionals removed.
15685 * xfns.c (x_set_cursor_color): Special case if matches foreground.
15686 (Fx_create_screen): Typo for HSCROLL_HEIGHT.
15687 Use BLACK_PIX_DEFAULT, WHITE_PIX_DEFAULT.
15688 Set PRETEND arg to change_screen_size.
15689 Delete gray_bits; this value made global.
15690 Don't call install_*_scrollbar here.
15691 (x_set_horizontal_scrollbar): Define this for real.
15692 (x_set_vertical_scrollbar): Corrent args to install_vertical_scrollbar.
15693 (install_vertical_scrollbar): New local slider_pixmap, and set it.
15694 Delete locals GC_values, temp_gc.
15695 Change arrow_width, arrow_height (appears to be undefined) to 16.
15697 Use border_pixel, not foreground_pixel, for scrollbar.
15698 (install_horizontal_scrollbar): Define this for real.
15699 (adjust_scrollbars): Handle horizontal scrollbar.
15700 Define XMoveResizeWindow as XConfigureWindow if X10 to simplify.
15701 (x_resize_scrollbars): Remove #if 0 from quick-exit case.
15702 Really handle horizontal scrollbar.
15703 Simplify using new macro.
15704 (Fx_get_mouse_event): Mostly ignore events other than buttons.
15705 Use many new macros to handle X10 and X11.
15706 (encode_mouse_button): New fn: encoding of which button, broken out.
15708 * xfns.c (left_arror_cursor, etc.): New vars.
15709 (x_screen_parm, init_x_parm_symbols, x_set_screen_param):
15710 Define X_PARM_AUTOLOWER.
15712 * xdisp.c (display_string, redisplay-window, DoDsp):
15713 Use SCREEN_WIDTH, SCREEN_HEIGHT.
15715 1989-04-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15717 * indent.c (compute_motion): Use SCREEN_WIDTH.
15718 * dispnew.c (update_line): Use SCREEN_WIDTH.
15719 (update_screen): Use SCREEN_HEIGHT.
15721 1989-04-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15723 * window.c: Rename Vauto_new_screen_hook, Vdisplay_buffer_hook, and
15724 Vtemp_buffer_show_hook to ..._function.
15726 * keyboard.c: Rename mouse_hook to mouse_event_function.
15728 * buffer.c, buffer.h, cmds.c: blink-paren-hook and auto-fill-hook
15729 renamed to -function.
15731 * fileio.c (Finsert_file_contents): Allow quit in read.
15732 (Fwrite_region): Allow quit in write.
15734 1989-04-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15736 * doprnt.c (doprnt): Comment out %b since sprintf can't do it.
15738 * Change X11 to HAVE_X11 everywhere.
15740 * m-sun3.h: Define C_SWITCH_MACHINE as -fsoft.
15742 1989-04-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15744 * process.c: Don't define wstopsig, wtersig if already defined.
15746 * sysdep.c [VMS] (sys_getenv): Copy the string before returning it.
15748 * m-alliant.h: Define `vector'.
15750 1989-04-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15752 * process.c (wait_reading_process_input) [sun]: If SIGIO failed
15753 to be sent, send it by hand.
15755 1989-04-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15757 * window.c (Fdelete_other_windows): Recenter window to avoid scrolling.
15759 1989-04-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15761 * indent.c: Include screen.h.
15763 * indent.c (pos_tab_offset, Fvertical_motion): Compute internal width
15764 correctly and uniformly.
15766 * xdisp.c (try_window, try_window_id): Use exact internal width
15767 to update tab_offset.
15768 (try_window_id): pos_tab_offset value needs adjustment only if
15769 starting a line in middle of a character.
15771 1989-04-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15773 * sysdep.c [USG]: If TIOCGWINSZ defined, include sioctl.h.
15775 1989-04-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15777 * eval.c (Fbacktrace): Set Vprint_level to 3 throughout.
15779 * fns.c (Fload_average): nlist data structure is funny on convex.
15781 * window.c (scroll_command): Scroll at least 1 line in specd direction.
15783 * cm.c (calccost): NTABS was off by 1 sometimes; take account of
15784 the starting position modulo 8.
15786 * fileio.c (Fexpand_file_name): Don't simplify /../ at start of name.
15788 * callint.c: Doc fixes.
15790 * process.c (create_process):
15791 On all USG systems, not just IRIS and AIX, don't pre-open pty's tty.
15792 Move the setpgrp done for USG (no real change).
15793 Tell child_setup to do a setpgrp.
15794 * callproc.c (child_setup): New arg says whether to setpgrp.
15795 Never setpgrp on USG.
15796 (Fcall_process): Tell child_setup not to setpgrp.
15798 * sysdep.c (init_sys_modes, reset_sys_modes): Don't try to hack
15799 TIOCGLTC, TIOCGETC, etc. if HAVE_TERMIO.
15800 Don't bother to undef these for XENIX.
15802 1989-04-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15804 * ymakefile (LIBES): Put LIBX first; it may depend on LIBS_MACHINE.
15806 * m-sequent.h: Define HAVE_ALLOCA.
15808 1989-04-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15810 * term.c (term_init): Can't use scroll region if no abs positioning.
15812 1989-04-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15814 * process.c (Fopen_network_stream): Close desc. if connect fails.
15816 1989-03-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15818 * minibuf.c (Fall_completions): gcprotect ALLMATCHES and TAIL,
15821 * keyboard.c (read_avail_input): Handle EBADSLT like EAGAIN.
15823 1989-03-29 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15825 * term.c (term_init): Either ic or ip or im or IC => can insert chars.
15827 * minibuf.c (read_minibuf_unwind): Ensure minibuf writable for erasure.
15829 1989-02-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15831 * m-convex.h: Undefine NO_ARG_ARRAY.
15832 Changed defns of DATA_SEG_BITS and XINT.
15833 Define alloca for GCC compilation.
15835 1989-02-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15837 * m-ibmrt-aix.h: Define BROKEN_FIONREAD.
15839 1989-02-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15841 * keymap.c (Fdefine_prefix_command): Set both value and fn defn,
15842 with separate syms specified for each purpose.
15844 1989-02-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15846 * callproc.c (Fcall_process): Open /dev/null with O_WRONLY.
15848 1989-02-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15850 * window.c (window_scroll): Allow scrolling to very end (empty screen)
15851 if that's exactly where we wanted to scroll to.
15853 1989-02-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15855 * data.c (Fkill_local_variable): New local to simplify big stmt.
15857 1989-02-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15859 * xdisp.c (display_text_line): cvt chars to glyfs for overlay arrow.
15861 * sysdep.c (init_sys_modes, child_setup_tty) [IBMRTAIX]:
15862 Don't ignore BRK, and don't signal it.
15864 * process.c (pty): An IBMRTAIX conditional.
15865 (create_process): Another here.
15867 1989-02-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15869 * keymap.c (Fdefine_prefix_command): Use Ffset, not Fset.
15871 1989-02-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15873 * fileio.c (Fset_visited_file_modtime): New fn.
15875 * xfns.c (Fx_create_screen) [X10]: XCreateWindow wants pixmaps as args.
15877 1989-02-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15879 * dispnew.c (Fsit_for): It accepts 3 args.
15881 1989-02-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15883 * xterm.c (XTread_socket): For X10, make EVENT an XKeyPressedEvent.
15884 (x_set_resize_hint): Call XSetResizeHint.
15886 * process.c: Declare interrupt_input.
15888 * sysdep.c (init_sys_modes): TIOCSTART, not TCSTART.
15890 1989-01-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15892 * xterm.h (struct x_display): `GC' renamed `gc' in all field names.
15893 Field `ColorMap' renamed to `color_map'.
15894 (face_gc_values): face_GC_values renamed.
15896 1989-01-28 Joe Arceneaux (rms@sugar-bombs.ai.mit.edu)
15898 * xterm.h (face_GC): Var deleted.
15899 (struct x_display): New field face_GC.
15900 (VSCROLL_WIDTH, HSCROLL_WIDTH): Moved here.
15901 (MINWIDTH, MINHEIGHT, MAXWIDTH, MAXHEIGHT): New vars. Eliminate them!
15902 (BLACK_PIX_DEFAULT): Typo in definition.
15903 (WHITE_PIX_DEFAULT): Typos in definitions; was the black default.
15905 * xterm.c: Include ioctl.h only if BSD.
15906 Include termio.h otherwise.
15907 (XMapWindow) [X11]: Typo in definition.
15908 (METABIT): New definition; maybe not needed.
15909 (hostname, id_name, invocation_name, Vcommand_line_args): New vars
15910 declared for main icon title.
15911 (x_debug): Init to 1 if XDEBUG defined.
15912 (dumpglyfs) [X11]: Changed args to XDrawImageString.
15913 If debugging, do XFlushQueue.
15914 Use screen's face_gc rather than old global one.
15915 (XTflash) [not BSD]: Avoid `struct itimerval'; use `alarm'.
15916 (events): New table of event type names.
15917 (XTread_socket): EVENT is now an XEvent even on x10.
15918 Translate modifier key 1 into meta-bit.
15919 For EnterNotify event, don't dumpborder or x_new_selected_screen
15920 if there is an x_focus_screen.
15921 For LeaveNotify event, don't ignore due to nonzero subwindow.
15922 For ConfigureNotify, change screen size.
15923 Do `select' check for SIGHUP only if HAVE_SELECT.
15924 (x_new_selected_screen): An arg, SCREEN.
15925 (x_display_cursor): dumpglyfs args changed.
15926 (x_draw_box): Add GC arg to XDrawRectangle; change other args.
15927 (clear_cursor): Change args to XClearArea.
15928 (dumpborder): Check x_input_screen, not selected_screen.
15929 (x_text_icon): For X11, new arg to XGetDefault.
15930 Cast values stored in icon_label.
15931 (x_term_init): Hair to calculate name for icon.
15932 Don't init_sigio unless SIGIO defined.
15933 Call Fset_input_mode.
15934 For X11, new arg to XGetDefault.
15935 Set _Xdebug if debugging.
15936 (x_new_font) Use XGetFont.
15937 Get GC values from the screen structure.
15938 (x_reset_cursor): Don't call XRecolorCursor.
15939 (x_set_window_size): Call x_wm_set_size_hint, not x_set_size_hint.
15940 (x_set_resize_hint): For X11, call x_wm_set_size_hint.
15941 (x_wm_set_size_hint, x_wm_set_window_state, x_wm_set_icon_pixmap):
15942 (x_wm_set_icon_position): New fns for X11.
15944 * xfns.c: For X11, include Xutil.h
15945 (VSCROLL_WIDTH): Moved to xterm.h.
15946 (face_GC): Don't declare it.
15947 (id_name): Declare this.
15948 (x_decode_color): Check `white' and `black' first of all.
15949 (x_set_foreground_color) [X11]: Reset foreground and background.
15950 (x_set_background_color) [X11]: Missing arg to XSetWindowBackground.
15951 (x_set_cursor_color) [X11]: Reset foreground and background.
15952 (x_read_mouse_position) [X11]: Changed call to XQueryPointer.
15953 (x_set_mouse_position) [X11]: Add args to XWarpPointer.
15954 (Fx_create_screen): Set some temporary geometry parms at the beginning.
15955 For X11, changed setup of iconidentity, and implement rubber-banding.
15956 For X11, implement merging individual geometry parms.
15957 For X11, changed args to XCreateSimpleWindow.
15958 For X11, call x_wm_set_size_hint.
15959 Specify name when creating icon.
15960 Don't call XSetForeground, XSetBackground before making border tile.
15961 New var `cursor_bits'. Init the screen's GC's.
15963 * screen.c (Frubber_band_rectangle): For X11, just return nil.
15965 1989-01-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15967 * buffer.c (Fbuffer_modified_tick): New fn.
15969 * window.c (Fnext_window): Accept 3 args from Lisp.
15971 1989-01-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15973 * sysdep.c (sys_suspend): Handle case of SIGTSTP but not BSD.
15975 1989-01-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15977 * sysdep.c (init_sys_modes): Do TIOCSTART if def, like TCXONC.
15979 1989-01-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15981 * process.c (wait_reading_process_input): New 2nd arg is extra usecs.
15982 All callers changed.
15983 * dispnew.c (Fsit_for, Fsleep_for): New 2nd arg says 1st arg
15984 counts in milliseconds.
15986 * buffer.c (Fkill_all_local_variables): Implement permanent locals.
15988 1989-01-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15990 * keymap.c (get_keyelt): Allow indirection within (STRING . DEFN).
15992 1989-01-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
15994 * process.c (wait_reading_process_input): If select returns there
15995 is kbd input, but detect_input_pending can't find it, signal SIGIO.
15996 This may avoid the X loop-on-logout bug.
15998 * process.c (wait_reading_process_input): Flush fix_screen_hook.
15999 * termhooks.h, term.c: Likewise.
16001 * xdisp.c (Fredraw_display): Don't do set_terminal_modes.
16002 * dispnew.c (Fredraw_screen): Likewise.
16004 * eval.c (Fcond): If no args, return nil.
16006 1989-01-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16008 * eval.c (Fbacktrace_frame): Require one arg. Return nil if too high.
16010 1989-01-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16012 * minibuf.c (read_minibuf): Set Vminibuf_scroll_window before
16015 * xterm.c (XTread_socket): If no HAVE_SELECT, wait for input
16016 if new arg WAITP is non0. Do this by not bothering to test for
16017 presence of input before reading some.
16018 Check for dead connection only if new arg EXPECTED is nonzero.
16019 All callers changed (keyboard and sysdep).
16021 * keyboard.c: Simplify keyboard input.
16022 (read_avail_input): Don't assume buffer is empty.
16023 Don't call get_input_pending; do FIONREAD here.
16024 Don't do FIONREAD if read_socket_hook, just tell it don't wait.
16025 Arg EXPECTED is passed to read_socket_hook.
16026 (input_available_signal): Use read_avail_input.
16027 (gobble_input): Use read_avail_input; arg EXPECTED passed along.
16028 (get_input_pending): Let gobble_input do the work.
16030 VMS keyboard input should have interrupt_input nonzero.
16031 * keyboard.c (Fset_input_mode, init_keyboard): [VMS] Always set
16032 interrupt_input to 1.
16033 (get_input_pending): Special case deleted.
16035 1989-01-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16037 * fileio.c (auto_save_1): Always make auto-save file owner-writable.
16039 * eval.c (Fbacktrace_frame): New fn.
16041 * buffer.h: Define `fieldlist' field in a buffer.
16042 * buffer.c (Fregion_fields): Return list of fields overlapping
16044 (syms_of_buffer): New variable buffer-field-list.
16045 (reset_buffer): Clear the fieldlist.
16046 (init_buffer_once): Set up default and flag for buffer-field-list.
16047 * insdel.c (prepare_to_modify_buffer): If check_protected_fields,
16048 call Fregion_fields to detect error.
16049 Delete buffer_modify_hook.
16051 * callint.c (Fcall_interactively): Bind `command-debug-status'
16052 for each interactive command.
16054 * keyboard.c (command_loop_1): Count # commands read.
16055 (num_input_keys): New Lisp variable.
16057 * m/m-gould.h, m/m-ibmrt-aix.h, m/m-sequent.h, m/m-sparc.h,
16058 * m/m-sun3.h, m/m-symmetry.h: Define A_TEXT_SEEK.
16059 * unexec.c (copy_text_and_data): Don't check A_TEXT_OFFSET,
16061 * unexconvex.c: Likewise.
16063 * unexconvex.c: machine/*.h unconditionally.
16065 * process.c (pty): Delete RTU, HPUX, IRIS alternatives to
16066 PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF.
16067 * s/s-hpux.h: Define PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF.
16068 * s/s-rtu.h: Likewise.
16069 * s/s-iris*.h: Define PTY_TTY_NAME_SPRINTF.
16071 * sunfns.c (Fsun_change_cursor_icon): Avoid ambiguity in eval order.
16073 1989-01-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16075 * data.c (Fdefault_value): If var set up with default value as current,
16076 take the current value slot, more up to date than the default slot.
16078 1989-01-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16080 * dispnew.c (init_display): Don't handle SIGWINCH if using X.
16082 * fileio.c (Fdo_auto_save): If file has shrunk, turn off auto-save.
16083 This avoids duplicate messages and allows M-x auto-save to turn it on.
16085 * lread.c (Fload): Look in Vafter_load_alist.
16086 (syms_of_load): Define after-load-alist.
16088 1989-01-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16090 * dired.c (Fdirectory_files): 4th arg NOSORT non-nil means don't sort.
16092 * syntax.c (scan_lists): Change Sendcomment case so that
16093 ignoring comments works even for newline-terminated comments.
16095 * minibuf.c (read_minibuf): Default Vminibuf_scroll_window
16096 to the window that was selected.
16098 1989-01-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16100 * fns.c (do_yes_or_no_p): Typo, call2 => call1.
16102 * eval.c (Fbacktrace): Each frame item should have a newline.
16104 * emacs.c (Fkill_emacs): Don't run hook if noninteractive.
16106 * eval.c: Define Vrun_hooks.
16107 (syms_of_eval): Initialize Vrun_hooks.
16109 * indent.c (Fmove_to_column): Use del_range; Fdelete_backward non ex.
16111 * ymakefile (objs, floatfns.o): Re-add this file.
16112 (LIBX): Install X11 case.
16114 * ymakefile (LIB_GCC): Now a cpp macro, like all other LIB_...
16115 Define null if not using GCC.
16117 * lread.c (unreadchar): New function to unread a char
16118 by stuffing it back into its stream. Now unread chars
16119 work properly between multiple reads.
16120 (UNREAD): Now calls that function.
16121 (readchar): Don't us `unrch'; variable deleted.
16122 (various): Don't initialize `unrch'.
16123 (readevalloop): No need to save and restore `unrch'.
16124 (read1): Don't unread a -1.
16126 * keymap.c (get_keyelt): If keymap defn is (STRING . FOO),
16127 remove just FOO. Will help HierarKey.
16129 1989-01-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16131 * unexmips.c [IRIS_4D]: Don't include fcntl.h.
16132 (unexec): Look for LIT8, LIT4 sections iff they are defined.
16134 * buffer.c (Fkill_all_local_variables): Force redisplay of mode lines.
16136 1989-01-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16138 * emacs.c (main): Do the setpgrp before handling -t.
16140 * keyboard.c (Fsuspend_emacs): Use run-hooks to run suspend-hook
16141 and suspend-resume-hook.
16143 * buffer.c (Fkill_buffer): Execute kill-buffer-hooks
16144 with buffer to be killed as current buffer.
16146 * buffer.c (count_modified_buffers): ModExist renamed.
16148 * emacs.c (Fkill-emacs): Execute kill-emacs-hook.
16150 * fileio.c (auto_save_1): Set auto_save_mode_bits from visited file.
16151 (Fwrite_region) [not VMS]: If auto-saving, write file with that mode.
16153 * fileio.c (Fwrite_region): If START is a string, write that string.
16155 1989-01-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16157 * lisp.h (XMARKBIT, XSETMARKBIT): If mark bit is sign bit,
16158 use sign-test for XMARKBIT; value is then 1 or 0.
16159 Make XSETMARKBIT test 2nd arg for nonzeroness only.
16161 * m/m-mips.h: Last batch of changes are only for USG.
16162 (XMARKBIT, XSETMARKBIT): Deleted; the new default ones are good.
16164 * editfns.c (Fformat): Use princ for %s.
16165 New format %S converts everything (even strings) with prin1.
16166 * doprnt.c (doprnt): Treat %s like %S.
16168 * print.c (Fprin1_to_string): Opt 3nd arg non-nil does princ.
16170 1988-12-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16172 * data.c (Fstring_to_int): Correct max # args.
16174 1988-12-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16176 * ymakefile (LIBES, LIB_GCC): If using GCC, link with gnulib.
16178 1988-12-29 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16180 * editfns.c: Many doc improvements.
16182 1988-12-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16184 * lisp.h (CHECK_NATNUM): New macro.
16186 * indent.c (Fmove_to_column): 2nd arg t means indent till spec'd column
16187 or change tab to spaces if necessary.
16189 * m/m-iris4d.h: (Conditionally) delete DEFAULT_ENTRY_ADDRESS
16190 and change START_FILES and LIB_STANDARD.
16192 * s/s-iris3-6.h: Define sigblock as no-op.
16194 * m/m-mips.h: Cancel defn of VIRT_ADDR_VARIES, `static'.
16195 Undef SIGIO. Define BROKEN_FIONREAD.
16196 Define various HAVE_... flags a la BSD.
16197 Add options, libraries for linking and compilation.
16199 * unexmips.c (unexec): Handle additional optional sections now likely.
16200 New scheme for recording what sections there are.
16201 Make handling of the LIT8,LIT4 sections conditional (not on IRIS).
16203 * fns.c (do_yes_or_no_p): New interface to Lisp function yes-or-no-p.
16204 Allows the user to redefine that function.
16205 All callers of Fyes_or_no_p changed.
16207 * data.c (Fmakunbound): Don't allow nil or t as arg.
16209 * m/m-orion105.h (LOAD_AVE_TYPE): Now `long'.
16211 1988-12-27 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16213 * dispnew.c (unhold_window_change):
16214 Don't signal SIGWINCH. Instead, do pending size-changes here,
16215 while holding any new size-changes that arrive, so they become
16216 pending. Loop around to get the new pending ones.
16217 (change_screen_size): Clear any previous pending size-change.
16219 * search.c (place): Was clipping to (1- (point-max)) by mistake.
16221 1988-12-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16223 * window.c (Fdelete_window): Give all this window's space
16224 to one adjacent sibling.
16226 1988-12-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16228 * keymap.c (describe_alist): Don't lose on non-cons-cell alist elts.
16229 (Fwhere_is_internal): Don't fail to step down the alist.
16230 (Faccessible_keymaps): Considerable confusion in alist case.
16232 * lread.c (Feval_current_buffer, Feval_region):
16233 Save and restore point as a marker, not a number.
16234 Don't restore it at all if printflag is t.
16236 * print.c (float_to_string): Mostly rewritten; output format
16237 is now a printf %-spec.
16238 (Qfloat_output_format): Doc changed to match.
16240 1988-12-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16242 * ymakefile (obj): Include floatfns.o.
16243 * data.c (syms_of_data): Fix typo Snumberp_or_marker_p.
16245 Allow keymaps to have other keymaps as tails.
16246 Thus, one keymap can inherit from another.
16247 * keymap.c (Fwhere_is_internal): Ignore non-cons elements of alist.
16248 (Faccessible_keymaps): Support symbols as alist indices.
16249 Ignore alist elements that aren't conses.
16251 * m/m-sun386.h (LDAV_SYMBOL): Define as "avenrun" with no underscore.
16253 * lread.c (read_escape): Support ANSI C `\x...' hex escapes.
16255 * bytecode.c (Fbyte_code): Fix jump operators for change in `pc'.
16257 1988-12-21 Joe Arceneaux (jla@gracilis.ai.mit.edu)
16259 * ymakefile: Commented #endif LISP_FLOAT_TYPE. Also changed
16260 the code pertaining to X11 to use the same files as X10.
16262 * bytecode.c (Fbyte_code): Declared unsigned char *pc.
16264 1988-12-19 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu)
16266 * xterm.c: Finished a first cut of the X11 version.
16268 1988-12-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16270 * sysdep.c (select): `buf' is now unsigned char.
16272 1988-12-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16274 * m/m-elxsi.h: Don't define WORD_MACHINE or CANNOT_DUMP.
16275 Do define symbols for load average.
16276 Define COFF and ADJUST_EXEC_HEADER.
16278 1988-12-16 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu)
16280 * sink.h, sinkmask.h: Same file now works for both X10 and X11.
16281 * xterm.c, xfns.c (x_text_icon) Can now take new name as parameter.
16283 1988-12-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16285 * m/m-is386.h: No need to undef HAVE_PTYS, HAVE_SOCKETS, SYSV_PTYS
16286 since s-usg5-3.h no longer defines them.
16288 1988-12-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16290 * bytecode.el (Fbyte_code): Cache the pointer in the string
16291 to avoid recalculating it at each fetch.
16292 Also turn off the error check for stack overflow/underflow.
16294 1988-12-14 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu)
16296 * xfns.c: Made the first cut for X11 version.
16297 * xterm.c (x_reset_cursor): Did the X11 version.
16299 1988-12-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16301 * keyboard.c (Fexecute_mouse_event): Set Vmouse_event. Doc fix.
16302 Run Vmouse_hook at the end.
16303 (syms_of_keyboard): Define var `mouse-hook'.
16305 1988-12-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16307 * term.c (insert_glyfs): Typo, was fetching G twice.
16309 1988-12-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16311 * keymap.c (describe_buffer_bindings): Print mouse bindings too.
16312 (describe_map): If have a chartab, use mouse-describe-key for prefixes.
16313 * keymap.c (describe_{map,map_tree,alist}, describe_vector):
16314 Extra arg mapping chars to their names. Calls changed.
16315 * syntax.c (describe_syntax_1): Call changed.
16317 * keymap.c (Vglobal_mouse_map): Make it exist unconditionally.
16319 * keymap.c (apropos1): Clean up.
16320 Do where-is-internal only if there is a function definition.
16321 Use mouse-describe-key to turn mouse key sequences into strings.
16322 (Fwhere_is): Check the mouse map too;
16323 (Fwhere_is_internal): New arg is global map to use.
16324 All callers changed in keypad.c and doc.c.
16325 (where_is_string): New fn cvts result of Fwhere_is_internal to string.
16327 1988-12-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16329 * emacs.c (stack_bottom): New variable, set in main.
16330 * alloc.c (Fgarbage_collect): Save a copy of the entire stack contents.
16332 1988-12-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16334 * editfns.c (Funix_umask, Funix_sync): New functions.
16336 * process.c (Fsignal_process): New function.
16338 1988-12-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16340 * editfns.c (Fsubst_char_in_region): Fix typo in when to un-modify buf.
16342 1988-12-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16344 * process.c (create_process): Take the usg's setpgrp and the close-and
16345 -open of the tty outside the TIOCNOTTY conditional, since TIOCNOTTY
16346 is always missing outside BSD. Now the TIOCNOTTY conditional controls
16347 only the TIOCNOTTY.
16349 1988-12-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16351 * lread.c (Feval_current_buffer, Feval_region):
16352 If there is an error, don't restore original point.
16354 * s-hpux.h (SHORT_CAST_BUG): Define this, for HPUX version 6.2.
16356 * ymakefile (THIS_IS_YMAKEFILE): Define macro to tell m- files
16357 to do special things.
16359 * m/m-ns16000.h (LOAD_AVE_TYPE, etc.): Don't define them if USG.
16360 * m/m-ns16000.h [USG]: Define various macros differently.
16361 (munnari!sibyl.eleceng.ua.oz.au!ian@uunet.uu.net).
16363 * sysdep.c (reset_sys_modes): Don't output a CR here.
16364 * term.c (reset_terminal_modes): Do it here, but first
16365 do a newline if it's a magic cookie terminal.
16367 * sysdep.c (sys_suspend) [USG]: Use `nice' to set subshell pri. to 0.
16369 * sysdep.c (TIOCSETN) [USG]: Use TCSETAW, not TCSETA.
16371 * sysdep.c (setpriority) [USG]: No longer a no-op; use `nice'.
16373 * keymap.c (Fwhere_is_internal): New 4th arg inhibits looking thru
16374 indirect definitions--so you can search for one.
16376 * alloc.c, fns.c, search.c: Doc fix.
16378 1988-12-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16380 * process.c (read_process_output): Insert with insert_before_markers.
16382 * filelock.c (lock_file_1, lock_superlock):
16383 If USG, use chmod instead of fchmod.
16385 * environ.c (Fsetenv): Doc fix.
16387 1988-11-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16389 * eval.c (do_autoload): Verify FUNNAME is a symbol.
16391 1988-11-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16393 * fileio.c (Fread_file_name): New arg specifies initial minibuf cntnts.
16394 * callint.c (Fcall_interactively): Calls changed.
16396 1988-10-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16398 * insdel.c (make_gap): Error if buffer size exceeds range of Lisp int.
16400 1988-10-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16402 * window.c (Fsplit_window): Prevent error in Fset_window_buffer.
16404 * sysdep.c (gettimeofday): Store -1 thru tzp so caller knows invalid.
16406 * xdisp.c (message): Pass 0 as new arg to doprnt.
16407 * callint.c (Fcall_interactively): Likewise.
16408 * editfns.c (format1):
16409 * doprnt.c (doprnt): Allow 0 as FORMAT_END arg meaning null-terminated.
16411 1988-10-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16413 * keyboard.c: If UNIPLUS, include ioctl.h.
16415 * sysdep.c (utime): Use new flag IRIS_UTIME, not IRIS.
16416 * s-iris*.h: Define that flag.
16418 1988-10-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16420 * term.c (term_init): If have `im' capability, permit ins/del char
16423 1988-10-03 Richard Stallman (rms@corn-chex.ai.mit.edu)
16425 * m/m-hp9000s300.h: Conditionals for BSD vs HPUX.
16427 * ymakefile: Look for C_SWITCH_SITE, LD_SWITCH_SITE.
16429 1988-09-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16431 * editfns.c (Fformat): Allow nulls in the format.
16432 * doprnt.c (doprnt): Likewise. End of format string is new arg.
16434 1988-09-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16436 * m/m-7300.h: Undefine SHORTNAMES. Supposedly newer Unix now.
16438 * print.c (print): Support new var print_length.
16439 (syms_of_print): Define Lisp var print-length.
16440 * eval.c (Fbacktrace): Print unevalled form with print_length = 3.
16442 * Makefile (tags): Add TAGS as alternate target.
16443 Process the files in ../lisp/term.
16445 1988-09-27 Richard Stallman (rms@corn-chex.ai.mit.edu)
16447 * doprnt.c (doprnt): Handle %-20s.
16448 * editfns.c (Fformat): Likewise (make enough space for it).
16450 * minibuf.c (do_completion): If get "Complete but not unique" twice
16451 in a row, display all completions. New var last_exact_completion.
16453 1988-09-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16455 * dispnew.c (baud_rate): Now a Lisp variable, not a function.
16456 * termcap.c (tputs) [emacs]: Use baud_rate as the speed.
16458 1988-09-19 Richard Stallman (rms@gluteus.ai.mit.edu)
16460 * window.c (Fset_window_configuration): Set deleted windows' buffer
16461 to nil, via new function delete_all_subwindows.
16462 * window.c (Fset_window_buffer): Reject deleted windows.
16463 * window.c (init_window_once): Init the ->buffer fields
16464 to satisfy error check in Fset_window_buffer.
16466 * xmenu.c (Fx_popup_menu): 1st arg is now ((X Y) WINDOW).
16468 * process.c (child_sig): If synch process terminates, clear
16469 synch_process_pid and record synch_process_death.
16470 * callproc.c (Fcall_process): Return synch_process_death.
16471 Always set synch_process_pid and do it with SIGCHLD masked off.
16472 * sysdep.c (wait_for_termination) [subprocesses and not VMS]:
16473 Use alarms to check every second whether synch_process_pid is 0.
16475 1988-09-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16477 * xdisp.c (redisplay_window): If window-point is outside restriction
16478 then correct it in the window.
16479 * window.c (Fdelete_buffer): Don't change buffer's point to a value
16480 outside its restriction.
16482 * sysdep.c (init_sys_modes) [MULTI_SCREEN]: Set Vterminal_screen's
16485 1988-09-16 Richard Stallman (rms@corn-chex.ai.mit.edu)
16487 * keyboard.c (kbd_buffer_get_char): VMS now uses same code as Unix.
16489 * vmsproc.c: New file for VMS only.
16490 * callproc.c [VMS]: Omit Fcall_process and child_setup_tty.
16491 * emacs.c (main) [VMS]: Call init_vmsproc and syms_of_vmsproc.
16493 * lread.c (OBARRAY_SIZE): Change slightly to 509 (prime).
16495 * keyboard.c, dispnew.c, term.c, xterm.c (meta_flag): MetaFlag renamed.
16496 * keyboard.c (Fset_input_mode): 3rd arg sets meta_flag.
16497 (syms_of_keyboard): Variable meta-flag deleted.
16498 * sysdep.c (init_sys_modes): Don't override parity settings
16501 1988-09-15 Richard Stallman (rms@corn-chex.ai.mit.edu)
16503 * search.c (Fsearch_forward, etc.): All buffer-search functions
16504 return new the value of point if they succeed.
16506 1988-09-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16508 * cmds.c (Fnewline): Correct test of ARG1 to inhibit auto-fill.
16510 1988-09-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16512 * window.c (Fdelete_window): Put nil as buffer of the deleted window.
16513 This makes select-window get an error earlier.
16515 1988-09-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
16517 * search.c (search_buffer, string_match, looking_at):
16518 Report matcher stack overflow as error, not just failure to match.
16520 * data.c (Fmake_local_variable): Add local variable to simplify
16521 too-complex expression.
16523 * fileio.c (Fdo_auto_save): No "file has shrunk" msg if < 5000 chars.
16525 See ChangeLog.2 for earlier changes.
16527 Copyright (C) 1993, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
16528 Free Software Foundation, Inc.
16530 This file is part of GNU Emacs.
16532 GNU Emacs is free software; you can redistribute it and/or modify
16533 it under the terms of the GNU General Public License as published by
16534 the Free Software Foundation; either version 3, or (at your option)
16537 GNU Emacs is distributed in the hope that it will be useful,
16538 but WITHOUT ANY WARRANTY; without even the implied warranty of
16539 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16540 GNU General Public License for more details.
16542 You should have received a copy of the GNU General Public License
16543 along with GNU Emacs; see the file COPYING. If not, write to the
16544 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16545 Boston, MA 02110-1301, USA.
16547 ;;; arch-tag: 136a8e5c-4f83-403b-9132-874f1c47f8a9