use guile conses
[bpt/emacs.git] / src / ChangeLog.3
CommitLineData
615d0182
DL
11993-05-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2
3 * Version 19.10 released.
4
51993-05-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6
7 * keyboard.c (read_key_sequence): If we changed buffers during
8 read_char, go to replay_sequence.
9
dff28924 10 * frame.c (Ficonify_frame, Fmake_frame_invisible):
615d0182
DL
11 Select some other frame. Move minibuffer off this frame.
12
13 * frame.c (Fhandle_switch_frame): Don't call Ffocus_frame.
14 (Fredirect_frame_focus): Call Ffocus_frame here.
15
16 * xterm.c (x_bitmap_icon): Don't free icon_bitmap;
17 create it if it hasn't been created before.
18
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.
24
25 * s/usg5-4-2.h (sigsetmask): #undef this.
26
27 * sysdep.c (sys_signal): Use 0, not NULL, to set sa_flags.
28
291993-05-29 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
30
31 * linux.h (C_OPTIMIZE_SWITCH): Set this to the empty string;
32 configure guesses just fine.
33
34 * tekXD88.h: New file, from Kaveh Ghazi.
35
36 * systty.h (CDISABLE): #undef it before re-#defining it.
37
38 * sysdep.c (sys_siglist): Comment out #endif trailer.
39 * xmenu.c (TRUE, FALSE): Same.
40 * xterm.c (dumprectangle): Same.
41
42 * emacs.c: Don't include termios.h directly--let systty.h do it.
43
441993-05-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
45
46 * xfaces.c [HPUX]: Include time.h and define __TIMEVAL__.
47
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.
52
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.
56
57 * s/usg5-4-2.h: New file.
58
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.
62
63 * s/hpux8.h (OLDXMENU_OPTIONS): Add quotations.
64
65 * m/ibmrt.h (C_SWITCH_MACHINE): Define only if not __GNUC__.
66 (HAVE_FTIME): Defined.
67 (EMACS_BITMAP_FILES): Defined.
68
69 * xfns.c (Fx_close_current_connection): Clear x_current_display.
70 * xterm.c (XTring_bell): Do nothing if x_current_connection is 0.
71
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.
76
77 * sysdep.c (gettimeofday): Don't store in *tzp if tzp is 0.
78
79 * process.c (MAXDESC): Get it from FD_SETSIZE if that exists.
80
dff28924 81 * s/sco4.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
615d0182
DL
82 Redefined.
83 (SIGNALS_VIA_CHARACTERS): Defined.
84 [HAVE_SOCKETS] (HAVE_GETTIMEOFDAY): Defined.
85 (MAIL_PROGRAM_NAME): Defined (two alternate definitions).
86
87 * xfns.c (Fx_list_fonts): Use CHECK_LIVE_FRAME on the frame arg.
88
891993-05-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
90
91 * s/hpux8.h (LIBX11_SYSTEM): Defined.
92
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.
96
97 * xfns.c (x_figure_window_size): Never set PPosition or PSize.
98
99 * keymap.c (syms_of_keymap): Create global_map 256 slots long.
100 * cmds.c (keys_of_cmds): Predefined 0240-0376 as self-insert.
101
102 * xterm.c (XTread_socket, case KeyPress) [HPUX]:
103 Recognize the extended function keys.
104
105 * buffer.c (Fgenerate_new_buffer_name): New arg IGNORE.
106 (Frename_buffer): Pass new arg.
107
1081993-05-28 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
109
110 * keyboard.c (menu_bar_items): Bind Qinhibit_quit to Qt while we
111 call the keymap accessors; this gets called during redisplay.
112
113 * ymakefile (alloca.o): Call $(CC), not cc.
114
115 * s/linux.h (SIGNALS_VIA_CHARACTERS): Try this out for a bit.
116
117 * buffer.c (Fmove_overlay): If the overlay is changing buffers,
118 do a thorough redisplay.
119
120 * xfns.c (x_set_frame_parameters): Use the first
121 position/size parameter we find, not the last.
122
123 * s/hpux8.h: Don't define HAVE_RANDOM.
124
125 * config.h.in (UNEXEC_SRC): New macro, set by the configure
126 script.
127 * ymakefile (UNEXEC_SRC): Give it a default value here, and make
128 UNEXEC depend on it.
129
130 * ymakefile (lispdir): Set this in terms of ${srcdir}.
131
1321993-05-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
133
134 * dispnew.c (Fsleep_for): Don't return without waiting when SEC is 0.
135
136 * emacs.c (syms_of_emacs) [CANNOT_DUMP]: Don't defsubr Sdump_emacs*.
137
138 * alloc.c (mark_object): Add debugging code to check for ptr clobbered.
139
1401993-05-27 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
141
142 * Version 19.9 released.
143
1441993-05-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
145
146 * keyboard.c (read_char): Correct previous change.
147
1481993-05-27 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
149
150 * systty.h: Always terminate comments, to avoid confusion.
151
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.
159
160 * xfns.c (Fx_get_resource): Use the proper format string when the
161 attribute has been specified.
162
1631993-05-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
164
165 * xfns.c (x_get_resource_string): New function.
166
167 * ymakefile (ALL_CFLAGS): Put CFLAGS last.
168
1691993-05-26 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
170
da1d68b2 171 * s/sol2.h (SOLARIS_BROKEN_ACCESS): Don't define this.
615d0182
DL
172
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.
175
176 * s/aix3-2.h (LIBS_SYSTEM): Put -LIM -Liconv here.
177
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
181 screws up AIX.
182 (struct emacs_tty): Test those symbols, instead of the ioctl
183 commands.
da1d68b2
JB
184 * sysdep.c (emacs_get_tty, emacs_set_tty, new_ltchars, new_tchars)
185 (init_sys_modes): Same.
615d0182
DL
186
187 * config.h.in (HAVE_RENAME): Include an #undef for this, so
188 configure will have something to edit.
189
1901993-05-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
191
192 * window.c (window_loop, case GET_LRU_WINDOW):
193 Get frame's width properly.
194
195 * xselect.c (x_get_local_selection): If no conversion function
196 exists for the requested type, just return nil.
197
198 * s/linux.h (HAVE_TCATTR): Defined.
199
200 * sysdep.c [HAVE_SOCKETS]: Include socket.h, netdb.h.
201 (get_system_name) [HAVE_SOCKETS]: Use gethostbyname.
202
2031993-05-26 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
204
da1d68b2
JB
205 * s/hpux8.h (LIB_X11_LIB, C_SWITCH_SYSTEM, LD_SWITCH_SYSTEM)
206 (LD_SWITCH_SYSTEM, OLDXMENU_OPTIONS): Add X11R5 directories to the
615d0182
DL
207 search paths in these lists; they shouldn't do any harm if they
208 don't have X11R5.
209
210 * s/aix3-2.h (C_SWITCH_SYSTEM): Don't #define this if we're using
211 GCC.
212
2131993-05-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
214
215 * xrdb.c (magic_searchpath_decoder): Fix typos.
216
217 * xdisp.c (display_text_line): Don't call compute_char_face
218 for a non-X frame.
219
220 * xfns.c (Fx_rebind_key, Fx_rebind_keys): X10 definitions deleted.
221 (syms_of_xfns): Install them only if X11.
222
223 * ralloc.c (r_alloc_sbrk): Declare already_available as long, not SIZE.
224
225 * xfns.c (x_set_cursor_type): If arg not recognized, use box cursor.
226
227 * s/hpux8.h (LD_SWITCH_SYSTEM) [__GNUC__]: Pass -a archive to ld.
228 (HAVE_RANDOM): Defined.
229
230 * s/hpux.h (rand, srand): Definitions deleted.
231
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.
234
235 * s/sunos4-1-3.h: New file.
236
237 * ymakefile (XOBJ) [!HAVE_X_MENU]: Add xfaces.o.
238
239 * s/irix4-0.h (SIGNALS_VIA_CHARACTERS): Defined.
240
241 * xterm.c (x_wm_set_size_hint): Don't set hints for max size.
242
2431993-05-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
244
245 * m/ibmrs6000.h (LIBS_MACHINE): Add -lIM and -liconv.
246 (HAVE_GETTIMEOFDAY): Deleted.
247
248 * sysdep.c (wait_for_termination): Don't use the BSD alternative
249 for LINUX. Use the UNIPLUS alternative.
250
251 * keyboard.c (read_char): If kbd_buffer_get_event returns nil,
252 redisplay and retry.
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.
256
257 * ralloc.c (POINTER): Always use char *.
258
259 * s/sol2.h (C_SWITCH_X_SYSTEM): Deleted.
260 (LD_SWITCH_SYSTEM): Delete the -L option, leave just -R.
261
262 * m/symmetry.h (PTY_TTY_NAME_SPRINTF, PTY_NAME_SPRINTF):
263 Use pty_name, not ptyname.
264
265 * syntax.c (Fforward_comment): Arg is a Lisp_Object.
266 Convert it to an int.
267
268 * ymakefile (alloca.o): Get alloca.c and alloca.s from ${srcdir}.
269
270 * floatfns.c (logb): Don't declare if hpux.
271
272 * syntax.c (Fforward_comment): Always set point.
273
274 * s/dgux.h, s/hpux.h, s/esix.h (HAVE_GETTIMEOFDAY): Deleted.
275
276 * s/irix4-0.h (C_ALLOCA, alloca): Definitions deleted.
277 [!NOT_C_CODE]: Include alloca.h.
278 (NEED_SIOCTL): #undef this.
279
280 * xterm.h (PIXEL_TO_CHAR_COL, PIXEL_TO_CHAR_ROW):
281 Fix mismatch in arg names.
282
283 * xfns.c (Fx_open_connection): Set xrm_option correctly.
284
2851993-05-25 David J. MacKenzie (djm@wiki.eng.umd.edu)
286
287 * xfns.c (x_figure_window_size): Make the default frame coords (0,0).
288
2891993-05-25 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
290
291 * Version 19.8 released.
292
2931993-05-25 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
294
295 * xfns.c: Clear out the old face stuff.
da1d68b2
JB
296 (x_face_table, n_faces, x_set_face, x_set_glyph, Fx_set_face_font)
297 (Fx_set_face, Fx_get_face): Removed.
615d0182
DL
298 (syms_of_xfns): Remove defsubr for Fx_set_face.
299
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.
313
314 * xterm.h: New section for declarations for xfaces.c.
da1d68b2
JB
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.
615d0182
DL
318 * xfaces.c (same_size_fonts): We can now remove this extern
319 declaration.
320 * xfns.c (face_name_id_number): Likewise.
321 * xterm.c (intern_face): Likewise.
322
323 * xterm.c (dumpglyphs): Remember that the default faces can have
324 null fonts, too.
325
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
10d1d0af 328 of fonts returned - 2000 is more reasonable.
615d0182
DL
329
330 * xfaces.c (build_face, unload_font, free_frame_faces): Don't
331 forget to block input while making X calls.
332
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
344 FRAME_DEFAULT_FACE.
345 * xfns.c (x_make_gc): No need to call init_frame_faces here.
346
347 * xfaces.c (intern_frame_face): This can be static.
348
349 * dispextern.h (struct face): New field - `copy', to help us with
350 resource allocation.
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
357 picture.
358
359 * casetab.c: Fix formatting, so as not to confuse etags.
360
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.
366
367 * xfaces.c (unload_color): Don't free the pixel for now.
368
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.
374
375 * m/iris4d.h: Dyke out the section which specifies how to get the
376 load average.
377
378 * paths.h (PATH_INFO): New path, to edited by the configuration
379 process.
380 * callproc.c (Vconfigure_info_directory): New variable, used
381 internally by build process.
382 (syms_of_callproc): DEFVAR it and initialize it.
383
384 * keyboard.c (Fcurrent_input_mode): Use XFASTINT to build the last
385 element of the return value, not XSETINT.
386
3871993-05-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
388
389 Changes for OSF/1:
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".
394
395 * ymakefile (LIBX): Put LD_SWITCH_X_SITE before the libraries, so
396 it actually has an effect.
397
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.
401
402 * xfns.c (select_visual): Include the screen number in the
403 template of things XGetVisualInfo must match.
404
4051993-05-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
406
407 * s/dgux.h (NO_GET_LOAD_AVG): Test _M88KBCS_TARGET, not __GNUC__.
408
409 * xterm.c (XTread_socket, ConfigureNotify case):
410 Convert from parent window, not Emacs window.
411 (XTread_socket): Handle ReparentNotify events.
412
413 * m/i860.h: New file.
414
415 * keyboard.c (lispy_function_keys): Add kp-numlock. Fix kp-backspace.
416
4171993-05-24 Thorsten Ohl (ohl@chico.harvard.edu)
418
419 * m/next.h (C_SWITCH_MACHINE): Definition deleted.
420
421 * lread.c: Don't #undef NULL.
422
4231993-05-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
424
88c71720 425 * buffer.c (Fmake_overlay): Put beg and end in the right order.
615d0182
DL
426 (Fmove_overlay): If beg and end are markers, make sure they're in
427 the right buffer.
428
4291993-05-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
430
431 * keyboard.c (modify_event_symbol): If a name_table elt is null,
432 generate a name to use. Don't crash.
433
434 * fileio.c (Fread_file_name): If input is empty, do return the default
435 even if !insert_default_directory.
436
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.
440
4411993-05-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
442
443 * s/irix4-0.h (NO_MATHERR): Defined.
444 * floatfns.c [NO_MATHERR]: Undef HAVE_MATHERR.
445
4461993-05-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
447
448 * fileio.c (Ffile_writable_p): Pass XSTRING (foo)->data to
449 ro_fsys, not XSTRING (foo).
450
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.
454
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.
458
4591993-05-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
460
461 * s/linux.h (HAVE_SETSID): Defined.
462 (HAVE_SOCKETS): Defined.
463
464 * process.c (create_process): Ignore retval from TIOCSTTY.
465 (sys_siglist) [LINUX]: Don't even declare it.
466
4671993-05-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
468
469 * syssignal.h (sys_signal): Declare the second argument to have
470 type signal_handler_t. We're told this is necessary for Linux.
471
4721993-05-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
473
474 * s/dgux.h (NO_GET_LOAD_AVG): Define, if __GNUC__.
475
4761993-05-23 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
477
478 * s/hpux8.h (NO_SIOCTL_H): Defined.
479
4801993-05-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
481
482 * s/linux.h (HAVE_DUP2, HAVE_ALLOCA_H): Deleted.
483
4841993-05-23 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
485
486 * syssignal.h: Don't #include <signal.h>
487 * alloc.c: #include <signal.h>, but before "config.h".
488
4891993-05-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
490
491 * xfaces.c (Fset_face_attribute_internal): Don't call unload_font
492 for the frame's own font.
493
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.
497
4981993-05-23 Paul Eggert (eggert@twinsun.com)
499
500 * editfns.c (Fcurrent_time_zone): Make `am' an int, not long.
501
5021993-05-23 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
503
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
506 using GCC.
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,
da1d68b2 514 * s/sco4.h, s/usg5-4.h: Remove HAVE_RENAME; configure guesses that now.
615d0182
DL
515
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.
518
519 * xterm.c (x_scroll_bar_report_motion): Set *TIME whether or not
520 the mouse is over a scroll bar.
521
522 * xfaces.c (Fset_face_attribute_internal): Don't free the frame's
523 normal_gc or reverse_gc.
524
da1d68b2 525 * keyboard.c (make_lispy_movement): Deal properly with mouse
615d0182
DL
526 motion outside of all windows.
527
528 * lisp.h (GLYPH_FACE): Remember that the face portion of a glyph
529 can be 24 bits, not just eight.
530
5311993-05-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
532
533 * xterm.c: Move signal.h and stdio.h before config.h.
534
535 * editfns.c (Fcurrent_time_zone): Assign gmt, instead of init.
536
5371993-05-22 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
538
da1d68b2 539 * Version 19.7 released.
615d0182
DL
540
541 * Makefile.in (SUBMAKEFLAGS): Add CFLAGS to the list.
542
543 * puresize.h [not HAVE_X_WINDOWS] (PURESIZE): Make this 185k,
544 not 196k. We're actually using ~180k.
545
546 * editfns.c: #include <sys/types.h>, to get time_t for Eggert's
547 changes.
548
5491993-05-22 Richard Stallman (rms@mole.gnu.ai.mit.edu)
550
551 * ymakefile (FRAME_SUPPORT): Add mouse.elc, select.elc, scroll-bar.elc.
552
553 * xdisp.c (display_text_line): Highlight in any frame's sel window.
554
555 * keyboard.c (modifier_names): Update to match *_modifier in termhooks.
556
5571993-05-22 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
558
559 * xterm.c (x_scroll_bar_handle_click): Never grab the scroll bar;
560 that feature requires more support to work correctly.
561
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.
567
5681993-05-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
569
570 * xfns.c (x_window_to_frame): Use XGCTYPE.
571
5721993-05-21 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
573
574 * process.c (Fopen_network_stream): Deal with older systems, which
575 only have the h_addr field in their struct hostent.
576
577 * systty.h [SYSV_PTYS]: #include <sys/types.h>. Francesco
b344d29d 578 Potortì <pot@fly.CNUCE.CNR.IT> says it's necessary on his
615d0182
DL
579 machine, and it should be harmless.
580
5811993-05-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
582
583 * sysdep.c (wait_for_termination): Copy code from 18.59
584 (but sans BSD4_1 alternatives).
585
5861993-05-21 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
587
588 * ymakefile (alloca.o): #define malloc and free to be xmalloc and
589 xfree on the command line of this compilation.
590
da1d68b2 591 * s/sco4.h (TIME_WITH_SYS_TIME): This is no longer needed.
615d0182
DL
592
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.
596
597 * sysdep.c (sys_suspend): Set synch_process_alive, so that
598 wait_for_termination has something to wait for.
599
6001993-05-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
601
602 * xdisp.c (display_text_line): Highlight only in selected window.
603
604 * xfns.c (syms_of_xfns): Don't make Lisp vars
605 x-mode-pointer-shape and x-nontext-pointer-shape.
606
6071993-05-20 Ian Lance Taylor (ian@cygnus.com)
608
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.
612
6131993-05-20 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
614
615 * dispnew.c (preserve_other_columns): Remember to multiply the
616 size argument to bcopy by the size of a glyph.
617
6181993-05-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
619
620 * keyboard.c (read_key_sequence): Reexamine this_command
621 after pre-command-hook runs.
622
623 * xterm.c (x_find_modifier_meanings): If some keys are meta and alt,
624 make them just meta, not alt.
625
6261993-05-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
627
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.
638
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.
654
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
666 arguments.
667 * emacs.c (main): Don't try to establish signal handlers for
668 SIGBUS and SIGSYS unless they're actually #defined.
669
670 * systty.h [HAVE_TERMIO, __DGUX]: #include <sys/ioctl.h>.
671
672 * xdisp.c (redisplay_window): Compute the scrollbar start and end
673 properly.
674
6751993-05-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
676
677 * keyboard.c (Fcurrent_input_mode): Return META as 3-way flag.
678
6791993-05-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
680
681 * fileio.c (Ffind_file_name_handler): Check that FILENAME is a
682 string.
683
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.
688
689 * process.c (wait_reading_process_input): Don't forget to call
690 clear_waiting_for_input when we exit the loop because process
691 input has arrived.
692
da1d68b2 693 Changes for Silicon Graphics Iris 5D.
615d0182 694 * unexelfsgi.c: New file; like unexelf.c, but tolerates program
dff28924 695 segments above BSS.
615d0182
DL
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
699 inaccessible.
700
7011993-05-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
702
703 * keyboard.c (follow_key): Check char in range before UPPERCASEP.
704
7051993-05-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
706
707 * xfns.c (x_set_menu_bar_lines): Fix typo in last change.
708
709 * keyboard.c (make_lispy_event): Controlify lower case letters too.
710
7111993-05-18 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
712
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.
716
717 * xterm.c (x_new_font): Tell the frame display faces about the
718 newly chosen font.
719
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.
726
727 * xfns.c (x_set_menu_bar_lines): Minibuffer-only frames can't have
728 menu bars.
729
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.
732
733 * window.c (window-dedicated-p): Doc fix.
734
7351993-05-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
736
737 * xterm.c (XTread_socket): Turn off ControlMask for XLookupString.
738 * keyboard.c (make_lispy_event): Controlify here.
739
7401993-05-17 Jim Blandy (jimb@totoro.cs.oberlin.edu)
741
742 * xdisp.c (redisplay_window): Make the scrollbar reflect the
743 extent of the visible region, not the whole buffer.
744
745 * xfaces.c (free_frame_faces): Don't free the resources from the
746 first two faces.
747
748 * lisp.h (malloc, realloc): Declare these to return void *, to
749 avoid conflicts with ANSI header files.
750
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
754 values.
755
7561993-05-16 Jim Blandy (jimb@totoro.cs.oberlin.edu)
757
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
761 much good.
762
7631993-05-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
764
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.
769
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.
774
775 * xterm.c (dumpglyphs): Create a temporary merged gc
776 when cursor falls on char with non-default face.
777
778 * xterm.h (x_display): New field cursor_foreground_pixel.
779 * xfns.c (x_set_cursor_color): Set cursor_foreground_pixel.
780
781 * casefiddle.c (casify_region): Remove mistaken arg to record_change.
782
7831993-05-15 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
784
785 * xfaces.c (Fset_face_attribute_internal): Jolt redisplay, so it
786 knows something has changed.
787
788 * xfaces.c (unload_color): Don't try to unload the standard black
789 or white pixel.
790
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}.
795
da1d68b2 796 Install David Mackenzie's patches to make ${srcdir} work.
615d0182
DL
797 * Makefile.in (srcdir, VPATH): Get this value from the top-level
798 Makefile.
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
802 to edit.
803 (ALL_CFLAGS): Remove `-Is' and `-Im'; add `-I${srcdir}', and
804 `-I.'.
805 (emacs): Adjust dumping commands to deal with a separate source
806 directory.
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}.
810
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.
815
816 * systime.h: Borrow CPP sequence from getdate.y to include the
817 proper combination of <time.h> and <sys/time.h>.
818
8191993-05-15 Richard Stallman (rms@mole.gnu.ai.mit.edu)
820
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.
825
826 * xselect.c (Fx_selection_exists_p): Handle nil, t as SELECTION arg.
827 Don't die if SELECTION is not recognized.
828
829 * dispnew.c (direct_output_forward_char): Just give up
830 if region is being highlighted.
831
832 * xdisp.c (redisplay, redisplay_window): Don't use the cursor-motion
833 special-case code if the region is or was highlighted.
dff28924 834
615d0182
DL
835 * xfaces.c (compute_char_face): New args REGION_BEG, REGION_END.
836 Don't sort if noverlays is 0 or 1.
837
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.
841
8421993-05-14 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
843
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.
847
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.
851
8521993-05-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
853
854 * xdisp.c (display_menu_bar): Update FRAME_MENU_BAR_ITEMS here.
855 * keyboard.c (command_loop_1): Don't do it here.
856
857 * keymap.c (access_keymap): Handle any length vector.
858 (store_in_keymap): Likewise.
859 (Fcopy_keymap): Likewise.
860
8611993-05-14 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
862
da1d68b2
JB
863 * buffer.c (Foverlay_start, Foverlay_end, Foverlay_buffer)
864 (Foverlay_properties): Functions moved here from subr.el.
615d0182
DL
865
8661993-05-13 Jim Blandy (jimb@totoro.cs.oberlin.edu)
867
868 * xfaces.c (compute_char_face): When merging the overlays,
869 traverse sortvec, not overlay_vec; the latter isn't the one we
870 sorted.
871
872 * xterm.c (dumpglyphs): Give the cursor higher priority than the
873 face specified by the glyph under it.
874
875 * xterm.c (dumpglyphs): Move the underline up a row. I dislike
876 the way X addresses pixels. Quickdraw is much nicer.
877
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.
885
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).
889
890 * xfaces.c (compute_char_face): Assume that W is displaying the
891 current buffer. Abort if it isn't.
892
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
900 invalid overlay.
901 (syms_of_buffer): defsubr Soverlayp; initialize Qoverlayp.
902 (Fdelete_overlay): Set the overlay's markers to point nowhere.
8350f087 903 Use CHECK_OVERLAY instead of signaling a special error.
615d0182 904 (Fmove_overlay, Foverlay_put): Use CHECK_OVERLAY instead of
8350f087 905 signaling a special error.
615d0182
DL
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.
911
912 * lisp.h (FLOATP): Define this appropriately when LISP_FLOAT_TYPE
913 is not defined.
914
915 * buffer.c (Foverlay_get): Return Qnil if the requested property
916 is missing from the property list.
917
da1d68b2 918 The text property routines can now modify buffers other
615d0182
DL
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
922 we're done.
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.
928
929 * dispnew.c (direct_output_for_insert): Compute the face of the
930 character we're inserting properly.
931
932 * xterm.c (dumpglyphs): Pass the proper arguments to intern_face.
933
934 * xterm.c (dumpglyphs): Don't increment left twice.
935
936 * intervals.c (set_point): Check for point out of bounds before
dff28924 937 checking for an empty interval tree.
615d0182
DL
938
939 * cmds.c (Fforward_char): Check proposed new position, and then
940 set point, instead of setting point to a potentially invalid
941 position.
942
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
945 POSIX.
946
9471993-05-12 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
948
da1d68b2 949 * ymakefile (xfaces.o): Add window.h to the dependencies.
615d0182
DL
950
951 * xfaces.c (intern_frame_face): Exchange order of arguments, to
952 make callers correct.
953
954 * xfaces.c (compute_char_face): Notice the next property change
955 location correctly.
956
957 * xfaces.c (face_name_id_number): Return 0 (the default face) if
958 the name is undefined.
959
960 * xfaces.c (Fset_face_attribute_internal): Do nothing unless FRAME
961 is an X frame.
962
963 * xdisp.c (copy_rope, copy_part_of_rope): Add face argument.
b344d29d 964 (display_text_line): Initialize current_face to zero. Apply it
615d0182
DL
965 to characters as we write them to the display matrix.
966 (display_string): Pass the new argument to copy_rope.
967
968 * xdisp.c (display_text_line): Handle the locations of face
969 changes properly.
970
971 * textprop.c (Fnext_single_property_change,
972 Fprevious_single_property_change): Pass arguments to textget in
973 the right order.
974
975 * ymakefile (xfns.o): Remove duplication of buffer.h in dependencies.
976
977 * ymakefile ($(OLDXMENU)): Remove extraneous call to `rm'.
978
9791993-05-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
980
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.
986
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 *.
991
992 * xfaces.c: Do include window.h.
993 (compute_char_face): Supply third arg of Fget_text_property.
994
995 * keyboard.c (make_lispy_event): Don't set shift modifier for C-^.
996
997 * callproc.c (child_setup): Omit duplicates from new env array.
998
9991993-05-10 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1000
da1d68b2
JB
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.
615d0182
DL
1004 * s/sol2.h (SOLARIS_BROKEN_ACCESS): Define this.
1005
1006 * systime.h: Use the strategy from getdate.y to include the proper
1007 combination of <time.h> and <sys/time.h>.
1008
1009 * xfns.c (Fx_create_frame): Use an XLFD name for the default font,
1010 instead of "9x15" or whatever it was.
1011
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.
1015
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
1018 argument.
1019 * xfaces.c (compute_glyph_face): Remove the BASIC_FACE argument;
1020 use F's default face.
1021
10221993-05-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1023
1024 * xfaces.c (Fmake_face_internal): Do nothing for non-X frames.
1025
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.
1029
1030 * xfaces.c (intern_face): Renamed from get_display_face.
1031
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.
1038
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.
1046
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
1049 trouble.
1050
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
1056 used to occupy.
1057 (Foverlay_put): Call redisplay_region on the area the overlay now
1058 occupies; we may have put a face property on it.
1059
1060 * buffer.c (Fmove_overlay): Doc fix.
1061
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.
1065
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.
1078
1079 * xterm.c (x_destroy_window): Call free_frame_faces.
1080
1081 The GNU coding standards specify that CFLAGS should be left for
1082 users to set.
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.
1088
10891993-05-09 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1090
1091 * keyboard.c (read_char): Exit kbd macro if Vexecuting_macro is t.
1092
1093 * pwd.h: File deleted.
1094
10951993-05-08 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1096
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
1099 work.
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.
1104
1105 * Makefile.in (DEFS): Remove this; we have configure build a
1106 config.h file directly, instead of having lots of -D flags.
1107
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.
1111
11121993-05-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1113
1114 * keyboard.c (do_mouse_tracking): Now static.
1115
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.
1120
1121 * keyboard.c (read_char_menu_prompt): Expect Fx_popup_menu
1122 to return a list of events. Don't lose any of them.
1123
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.
1127
da1d68b2
JB
1128 * keyboard.c (read_avail_input, Fset_input_mode): Make
1129 meta_key a three-value variable to support 8-bit input.
615d0182
DL
1130
11311993-05-07 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1132
1133 * ymakefile [__GNUC__ && __GNUC__ > 1] (LIB_GCC): Set this even if
1134 LINKER is #defined.
1135
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.
1139
1140 * Makefile.in (LN_S): New variable, edited by top Makefile.
1141 (SUBMAKEFILE): New variable, containing all flags to pass to
1142 recursive makes.
1143
1144 * config.h.in: Adjust this for use by autoconf's AC_CONFIG_HEADER,
1145 instead of AC_OUTPUT.
1146
1147 * xfaces.c (get_display_face): Use face_eql instead of writing it out.
1148
11491993-05-06 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1150
1151 * keymap.c (Fwhere_is_internal): If FIRSTONLY is non-nil, avoid
1152 returning a non-ascii key sequence unless FIRSTONLY is the symbol
1153 `non-ascii'.
1154
1155 * config.h.in: Remove mention of GLYPH datatype; that shouldn't be
1156 a user option.
1157 * lisp.h (GLYPH, MAKE_GLYPH, GLYPH_CHAR, GLYPH_FACE): New macros.
1158
11591993-05-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1160
1161 * xfns.c (x_get_arg): Call Fintern, not intern.
1162
1163 * systime.h [SCO]: Include time.h.
1164 * s/sco4.h: New file.
1165
1166 * ymakefile (LIBXMENU): Delete -loldX.
1167
1168 * emacs.c (main): Handle -display like -d.
1169
11701993-05-05 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1171
1172 * s/template.h: Explain the relative significance of the SIGIO and
1173 INTERRUPT_INPUT macros.
1174
1175 * ymakefile (buffer.o, insdel.o): Note that these files also
1176 depend on blockinput.h.
1177
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
1182 set.
1183 * keyboard.c (reinvoke_input_signal): New function.
1184
11851993-05-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1186
1187 * window.c (Fdisplay_buffer): Add space to prompt.
1188
11891993-05-04 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1190
1191 * keyboard.c (syms_of_keyboard): Doc fix for
1192 extra-keyboard-modifiers.
1193
da1d68b2
JB
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.
615d0182
DL
1196
11971993-05-02 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1198
1199 * keymap.c (Fdefine_prefix_command): Doc fix.
1200
1201 * ymakefile (C_DEBUG_SWITCH): Undo April 10 change.
1202
12031993-05-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1204
1205 * keyboard.c (Fsuspend_emacs): Doc fix.
1206
12071993-04-30 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1208
1209 * data.c (Ffset): Refuse to set the function value of t or nil.
1210
12111993-04-29 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1212
da1d68b2 1213 Implement extra_keyboard_modifiers properly.
615d0182
DL
1214 * keyboard.c (syms_of_keyboard): Doc fix for
1215 extra-keyboard-modifiers; use the same modifier bits as we do for
1216 characters.
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
1219 of the gang.
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.
1226
1227 * xterm.c (x_text_icon): Don't call XSetIconName; it should be
1228 unnecessary, and perhaps it's killing the icon pixmap.
1229
1230 * lisp.h (CHAR_ALT, CHAR_SUPER, CHAR_HYPER): New constants, in
1231 case we need them.
da1d68b2
JB
1232 * termhooks.h (alt_modifier, super_modifier, hyper_modifier)
1233 (shift_modifier, ctrl_modifier, meta_modifier): Define these in
615d0182
DL
1234 terms of the CHAR_mumble macros, to avoid having the same thing
1235 defined in two places.
1236
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
1240 minibuffer.
1241
12421993-04-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1243
1244 * keyboard.c (Fthis_command_keys): Doc fix.
1245
1246 * process.c (wait_reading_process_input): Move the status_notify
1247 call before the set_waiting_for_input call.
1248
1249 * fileio.c (Fexpand_file_name): Undo last change--too risky for now.
1250
1251 * data.c (Fdefine_function): New function (same code as Fdefalias).
1252
12531993-04-28 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
1254
1255 * eval.c (do_autoload): Fixed the bug in the autoload-saving code.
1256
12571993-04-28 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1258
1259 * keyboard.c (Fcurrent_input_mode): New function.
1260
12611993-04-27 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
1262
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
1267 code.
1268
12691993-04-27 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1270
1271 * buffer.c (syms_of_buffer): Doc fix for buffer-display-table.
1272
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.
1278
12791993-04-26 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1280
1281 * fileio.c (Fexpand_file_name):
1282 Don't remove trailing / from NEWDIR if just "/".
1283
12841993-04-26 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1285
1286 * m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/mips.h,
da1d68b2 1287 * m/sps7.h, s/hpux.h, s/usg5-4.h (HAVE_DUP2): Removed; derived by
615d0182
DL
1288 configure script.
1289 * s/hpux.h, s/irix3-3.h, s/aix3-1.h (HAVE_GETHOSTNAME): Removed;
1290 derived by configure script.
1291
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.
1301
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
1304 Lisp_Object.
1305
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.
b344d29d 1308 Per suggestion from Francesco Potortì.
615d0182
DL
1309 * ymakefile (NOT_C_CODE): Define this; it's true, and useful.
1310
1311 * dispnew.c (Fsleep_for, Fsit_for): Allow SECONDS to be a
1312 floating point value.
1313
13141993-04-26 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
1315
1316 * sysdep.c (read_pending_input):
1317 Fix the garbaged-modifiers bug under System Vs previous
1318 to r4.
1319
13201993-04-25 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1321
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.
1325
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.
1328
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.
1332
13331993-04-25 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
1334
1335 * window.c (Fset-window-buffer):
1336 Set horizontal-scrolling on a window to zero when
1337 we connect it to a new buffer.
1338
1339 * buffer.c: Doc fix.
1340
13411993-04-24 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1342
1343 Make the modifier manipulation functions more robust. The old way
1344 caused a bug once, and probably would again.
da1d68b2
JB
1345 * termhooks.h (alt_modifier, super_modifier, hyper_modifier)
1346 (shift_modifier, ctrl_modifier, meta_modifier): Shift these all
615d0182
DL
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,
1352 just remove them.
1353
13541993-04-23 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
1355
1356 * data.c (Fdefine_function):
1357 Changed name back to Fdefalias, so we get things
1358 in a known-good state.
1359
1360 * buffer.h (BUF_NARROWED, NARROWED):
1361 New macros to test whether a region
1362 restriction has narrowed the buffer.
1363
13641993-04-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1365
1366 * systime.h: Comment fixes.
1367
1368 * data.c (Fdefine_function): New function.
1369
1370 * lisp.h (LOADHIST_ATTACH): New macro.
1371 (Vcurrent_load_list, Vload_history): Vars declared.
1372
da1d68b2 1373 * eval.c (defun, defmacro, defvar, defconst):
615d0182
DL
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.
1376
1377 * fns.c (provide, require): Put appropriately-marked
1378 conses in the current-globals list.
1379
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.
1388
13891993-04-16 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
1390
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.
1398
1399 * fns.c (Fprovide, Frequire): Put appropriately-marked
1400 conses in the current-globals list.
1401
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.
1405
1406 * data.c (Fdefine_function): New function.
1407
14081993-04-16 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1409
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.
1413
1414 * config.h.in (volatile): Don't define this to be the empty string
1415 if some file has #defined HAVE_VOLATILE.
1416
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.
1422
14231993-04-13 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1424
1425 * s/vms.h (xfree): #define this to emacs_xfree, to avoid case
1426 conflict with XFree; on VMS, external symbols are case-insensitive.
1427
1428 * s/usg5-4.h (HAVE_GETTIMEOFDAY): Deleted; ../configure figures
1429 that out now.
1430
1431 Changes for Emacs 19 from Thorsten Ohl <ohl@chico.harvard.edu>:
da1d68b2 1432 * s/mach2.h: Copied from the Emacs 18.59 distribution.
615d0182
DL
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
1445 malloc_freezedry.
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.
1449
14501993-04-12 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1451
1452 * ymakefile ($(OLDXMENU)): Remove $(OLDXMENU) before trying to
1453 link in a new version.
1454
da1d68b2
JB
1455 * lisp.h (Qrange_error, Qdomain_error, Qsingularity_error)
1456 (Qoverflow_error, Qunderflow_error): Add extern to these declarations.
615d0182
DL
1457
14581993-04-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1459
1460 * xfaces.c: Don't include Xmu/Drawing.h.
1461
14621993-04-10 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1463
1464 * Makefile.in (xmakefile): Recognize the -O option with a numeric
1465 optimization level.
1466
1467 * ymakefile (C_DEBUG_SWITCH): If we're using version 2 of GCC or
1468 higher, use -O99 instead of plain -O.
1469
14701993-04-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
1471
1472 * keyboard.c (command_loop_1): Rebuild menu bar if
1473 update_mode_lines is set.
1474
da1d68b2 1475 long_to_cons and cons_to_long are generally useful things; they're
615d0182
DL
1476 needed whether or not X is defined.
1477 * xselect.c (long_to_cons, cons_to_long): Moved from here...
da1d68b2
JB
1478 * data.c (long_to_cons, cons_to_long): ... to here.
1479 * lisp.h (long_to_cons, cons_to_long): Add extern declaration.
615d0182
DL
1480
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.
1485
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.
1490
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.
1494
1495 * xfaces.c (sort_overlays): Define this to be static, as declared.
1496
1497 * callproc.c (relocate_fd): Make messages string literals, not
1498 initialized arrays.
1499
1500 * alloc.c (__malloc_hook, __realloc_hook, __free_hook): Declare
1501 these extern, not static. (!)
1502
da1d68b2
JB
1503 * alloc.c (__malloc_hook, old_malloc_hook, __realloc_hook)
1504 (old_realloc_hook): Declare that the functions these point to return
615d0182
DL
1505 void *, not void.
1506
da1d68b2 1507 Adjust for autoconf merger.
615d0182
DL
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}.
1520
1521 * buffer.c (Fmake_overlay, Fmove_overlay): New optional BUFFER
1522 arguments.
1523 (recenter_overlay_lists): New argument BUF, to use instead of the
1524 current buffer.
1525 (Foverlay_recenter): Pass the appropriate arguments to
1526 recenter_overlay_lists.
1527
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.
1530
1531 * dispnew.c (getenv): Extern declaration deleted; this is done in
1532 config.h.
1533
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.
1537
1538 * dispnew.c (init_display): Compare the return value of getenv to
1539 zero before setting display_arg, instead of just using the pointer
1540 as a truth value.
1541
15421993-04-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1543
1544 * xdisp.c (message, message1): If noninteractive and
1545 cursor_in_echo_area, don't print a newline at end of message.
1546
1547 * fns.c (Fy_or_n_p): Echo the answer just once, at exit.
1548
1549 * keyboard.c (echo_dash): Do nothing if echoptr is 0.
1550
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.
1553
15541993-04-07 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1555
1556 * keyboard.c (apply_modifiers): Fix typo in sanity check.
1557
1558 * keyboard.c (interrupt_input_blocked, interrupt_input_pending):
1559 Remove `extern' keywords - these are the definitions.
1560
15611993-04-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1562
1563 * blockinput.h (UNBLOCK_INPUT): Fix typo.
1564 (interrupt_input_blocked): Make this signed int.
1565
1566 * search.c (search_buffer): Fix typo in previous change.
1567
1568 * insdel.c, buffer.c: Include blockinput.h.
1569
1570 * xterm.c: Fix typo in comment delimiter.
1571
15721993-04-07 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
1573
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
1577 using GCC.
1578 * s/aix3-2.h (SYSTEM_MALLOC): Undefine this.
1579
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.
1584
15851993-04-05 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
1586
1587 * s/vms.h (EXEC_SUFFIXES): Add definition for this.
1588
15891993-03-31 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1590
1591 * xfaces.c: Doc fixes.
1592
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.
da1d68b2
JB
1597 * xterm.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
1598 (UNBLOCK_INPUT_RESIGNAL): These are now in blockinput.h.
615d0182
DL
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
1614 x_input_blocked.
1615
1616 Block the processing of interrupt input while we're manipulating the
1617 malloc heap.
da1d68b2 1618 * alloc.c (xfree): New function, to make it easy to free things safely.
615d0182
DL
1619 (xmalloc, xrealloc): Block X input while doing the deed.
1620 (VALIDATE_LISP_STORAGE, gc_sweep, compact_strings): Use xfree
1621 instead of free.
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
1625 on startup.
da1d68b2
JB
1626 * alloc.c (make_interval, make_float, Fcons, Fmake_vector)
1627 (Fmake_symbol, Fmake_marker, make_uninit_string, Fgarbage_collect):
615d0182
DL
1628 Use xmalloc instead of malloc; don't bother to check if out of
1629 memory here.
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.
1635 * insdel.c: Same.
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,
da1d68b2 1640 * xmenu.c, xterm.c: Use xfree instead of free.
615d0182
DL
1641 * hftctl.c: Use xfree and xmalloc instead of free and malloc.
1642 * keymap.c (current_minor_maps): BLOCK_INPUT while calling realloc
1643 and malloc.
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
1648 will call malloc.
dff28924 1649
da1d68b2
JB
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
615d0182
DL
1652 these depend on blockinput.h.
1653
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.
1657
16581993-03-30 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1659
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
1663 operating systems.
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.
1670
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.
1681
16821993-03-28 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
1683
1684 * systty.h [NO_PTY_H]: Don't include pty.h.
1685
1686 * m/delta88k.h [USG5_4]: Alternate defining of LIBS_SYSTEM,
1687 LIBX11_SYSTEM, HAVE_RANDOM, BSTRING.
1688 (NO_PTY_H): Defined.
1689
1690 * fileio.c (Fwrite_region): Don't fail to set visit_file.
1691
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.
1695
1696 * fileio.c (Fexpand_file_name): Default DEFALT at beginning,
1697 before expanding it. But avoid unneeded or infinite recursive expand.
1698
16991993-03-26 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
1700
1701 * editfns.c (Fchar_equal): Don't ignore high bits of character.
1702
1703 * fileio.c (Fwrite_region): Set visit_file after expanding file arg.
1704 Also expand VISIT arg if specified.
1705
1706 * frame.c (make_frame): Init face_alist field.
1707
17081993-03-25 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1709
1710 * xselect.c (SELECTION_QUANTUM): Don't use XMaxRequestSize on R3;
1711 access the display structure directly.
1712
17131993-03-25 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
1714
1715 * ymakefile (xfns.o): Depend on buffer.h.
1716
1717 * buffer.h (struct buffer): Field `fieldlist' deleted.
1718
1719 * search.c (Freplace_match): Clean up criterion about converting case.
1720 If old text has any capitalized words, capitalize new text.
1721
1722 * xfaces.c: New file.
1723
1724 * ymakefile (XOBJ): Add xfaces.o.
1725 (xfaces.o): New target.
1726 * emacs.c (main): Call syms_of_xfaces.
1727
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.
1733
1734 * frame.h (struct frame): New field face_alist.
1735 * alloc.c (mark_object): Mark face_alist of a frame.
1736
1737 * ymakefile (xselect.o): Depend on dispextern.h.
1738
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.
1742
1743 * dispextern.h (struct face): New fields pixmap_h, pixmap_w.
1744 Field `font' is now a pointer.
1745
1746 * fns.c (Fy_or_n_p): Ensure cursor_in_echo_area = 0 when quit.
1747
17481993-03-24 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1749
1750 * dispnew.c (getenv): Add extern declaration.
1751
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.
1755
1756 * keymap.c (Fkeymapp): Doc fix.
1757
1758 * xterm.h (x_focus_frame): Add extern keyword to declaration.
1759
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.
da1d68b2
JB
1763 (WIFSTOPPED, WIFSIGNALED, WIFEXITED, XRETCODE, WSTOPSIG)
1764 (WCOREDUMP, WTERMSIG): New dummy definitions.
615d0182
DL
1765 (deactivate_process): Add missing semicolon.
1766 * dispnew.c (init_display): Get display name from environment
1767 properly on VMS as well as Unix.
1768
17691993-03-24 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
1770
1771 * buffer.c (init_buffer_once, reset_buffer):
1772 Delete last vestige of fieldlist slot.
1773 (Fregion_fields): Finally deleted.
1774
1775 * keymap.c (push_key_description): Ignore bits above meta_modifier.
1776
17771993-03-23 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
1778
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.
1783
1784 * buffer.h (struct buffer): New fields overlay_center,
1785 overlays_before, overlays_after.
1786
17871993-03-23 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1788
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
1791 for XFree386.
1792 * sysdep.c (random, srandom): Don't define these if HAVE_RANDOM is
1793 #defined.
1794
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.
1800
18011993-03-22 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1802
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.
1806
18071993-03-22 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
1808
b344d29d 1809 * indent.c (current_column, Findent_to, position_indentation)
615d0182
DL
1810 (Fmove_to_column, compute_motion): Allow tab_width up to 1000.
1811
1812 * xdisp.c (display_string, display_text_line):
1813 Allow tab_width up to 1000.
1814
1815 * keyboard.c (Fsuspend_emacs):
1816 Change suspend-hooks back to suspend-hook and make it a normal hook.
1817
1818 * s/dgux.h: Decide automatically whether to use COFF or ELF.
1819
18201993-03-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1821
1822 * fns.c (Fy_or_n_p): Handle `recenter' response type.
1823
1824 * s/dgux.h (HAVE_TERMIO, SIGNALS_VIA_CHARACTERS): Defined.
1825
18261993-03-21 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1827
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.
1831
18321993-03-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1833
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.
1840
1841 * window.c (Fselect_window): Use Fhandle_switch_frame.
1842 (Fset_window_configuration): Likewise.
1843
18441993-03-20 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1845
10d1d0af 1846 Use the `visibility' parameter to determine the initial state of
615d0182
DL
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.
1856
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.'
1861
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.
1864
18651993-03-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1866
1867 * emacs.c (init_cmdargs): Fix simple bug in previous change.
1868
18691993-03-20 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1870
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.
1876
1877 * process.c (wait_reading_process_input): Doc fix.
1878
1879 * systime.h (EMACS_HAS_USECS): #define this if HAVE_TIMEVAL is
1880 #defined.
1881
1882 * dispnew.c (sit_for): Doc fix.
1883
1884 * sysdep.c (reset_sys_modes): Fix usage of EMACS_SET_TTY.
1885
1886 * callproc.c (child_setup): Make sure that in, out, and err are
1887 not less than three.
1888 (relocate_fd): New function.
1889
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.
1892
1893 * s/hpux8.h, s/sunos4-1.h (OLDXMENU_OPTIONS): Define this, as in
1894 Emacs 18.
1895
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.
1900
1901 * frame.c (Fraise_frame, Flower_frame): Renamed from
1902 Fframe_to_front and Fframe_to_back.
1903 (syms_of_frame): Adjusted appropriately.
1904
1905 * fileio.c (HAVE_FSYNC): Define, if appropriate.
1906 (Fwrite_region): Use HAVE_FSYNC.
1907 * s-aix3-2.h (HAVE_FSYNC): Define.
1908
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
1918 invocation_name.
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
1923 invocation_name.
1924 [not HAVE_X11] (Fx_get_default): Same.
1925
19261993-03-20 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
1927
1928 * xfns.c (Fx_display_color_p): Renamed from Fx_color_display_p.
1929 (syms_of_xfns): Use new name in defsubr.
1930
19311993-03-19 Eric S. Raymond (eric@geech.gnu.ai.mit.edu)
1932
1933 * Makefile.in (unlock, relock): New productions to assist with
1934 version control.
1935
19361993-03-19 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
1937
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.
1941
1942 * xselect.c (cons_to_long, long_to_cons): No longer static.
1943
19441993-03-18 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
1945
1946 * frame.h (FOR_EACH_FRAME): Change the definition so that
dff28924 1947 FRAME_VAR is a lisp object.
615d0182
DL
1948 * dispnew.c (WINDOW_CHANGE_SIGNAL, do_pending_window_change):
1949 Adjusted appropriately.
1950 * xdisp.c (redisplay): Adjusted appropriately.
1951
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.
1955
19561993-03-18 Richard Stallman (rms@geech.gnu.ai.mit.edu)
1957
1958 * lisp.h (CHECK_LIVE_WINDOW): Use Qlive_window_p.
1959
1960 * xfns.c (x_screen): Make this var file scope.
1961 (Fx_server_version): Use Fcons, not list3.
1962
19631993-03-17 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
1964
1965 * xterm.c (term_get_fkeys): Less klugey version of the last fix.
1966
1967 * Makefile.in (versionclean): New production nukes binaries and
1968 DOC files, forcing a re-load, re-dump and re-makedoc.
1969
19701993-03-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1971
1972 * fileio.c: Doc fix.
1973
19741993-03-17 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
1975
1976 * xterm.c (x_display_box_cursor, x_display_bar_cursor): Don't
1977 display the cursor on garbaged frames.
1978
19791993-03-17 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
1980
1981 * term.c (term_get_fkeys) Supply second args for all tgetstr calls.
1982
19831993-03-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1984
1985 * process.c (Fprocess_send_eof): Make sure proc is running.
1986
1987 * s/irix4-0.h (_getpty): Declare this, not _get_pty.
1988
19891993-03-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
1990
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.
2003
20041993-03-16 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
2005
da1d68b2 2006 * cmds.c (overwrite_binary_mode): Deleted; this implements the
615d0182
DL
2007 wrong feature.
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.
2015
2016 Rename `live-window-p' to `window-live-p', for consistency with
2017 `frame-live-p'.
2018 * window.c (Fwindow_live_p): Renamed from Flive_window_p.
2019 * lisp.h (CHECK_LIVE_WINDOW): Change to use Qwindow_live_p.
10d1d0af 2020 (Qwindow_live_p): Extern declaration renamed from Qlive_window_p.
615d0182
DL
2021
20221993-03-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2023
2024 * xmenu.c (xmenu_show): Do BLOCK_INPUT; unblock just before returning.
2025
2026 * xterm.h [SIGIO] (UNBLOCK_INPUT): Resignal if x_pending_input.
2027
20281993-03-15 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
2029
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.
2033
2034 * floatfns.c (logb): Add extern declaration for this.
2035
2036 * floatfns.c (Flogb): Under SYSV, implement this using frexp.
2037
20381993-03-15 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2039
2040 * ymakefile (dispnew.o): Depend on termhooks.h.
2041
2042 * xmenu.c (list_of_items): Allow strings among the alist items;
2043 they make nonselectable lines.
2044
20451993-03-14 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
2046
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.
2050
2051 * keyboard.h (internal_last_event_frame): This should be extern,
2052 dummy.
2053
2054 * fns.c (Fy_or_n_p): Display the answer.
2055
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]
2067 in PATH_LOADSEARCH.
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
2073 dumb. Call getcwd.
2074
20751993-03-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2076
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.
2081
2082 * window.c (Fdelete_other_windows): Handle FRAME_MENU_BAR_LINES.
2083
2084 * keyboard.c (menu_bar_items): Reverse the list when done.
2085
2086 * xmenu.c (single_keymap_panes): When storing in ENABLES,
2087 check def before enabled.
2088
2089 * ymakefile (really-oldXMenu): Renamed from ${oldXMenudir}$(OLDXMENU).
2090 Add @true.
2091 ($(OLDXMENU)): Depend on really-oldXMenu.
2092 The idea is to make sure libXMenu11.a is always updated if nec.
2093
2094 * keyboard.c (command_loop_1): Typo calling Qrecompute_lucid_menubar.
2095 (read_key_sequence): Likewise. Also fix call to Vrun_hooks.
2096
20971993-03-13 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
2098
2099 * ymakefile (YMF_PASS_LDFLAGS): Doc fix.
2100
21011993-03-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2102
2103 * print.c (PRINTPREPARE): Handle marker that points nowhere.
2104
2105 * apollo.h (NO_X_DESTROY_DATABASE): Defined.
2106
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.
2109
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.
2113
21141993-03-13 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
2115
2116 * s/usg5-4.h: Remove extraneous text after #undef LIB_X11_LIB.
2117
21181993-03-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2119
2120 * xterm.c (Xatom_wm_change_state): Define here.
2121 * xfns.c (Xatom_wm_change_state): Just declare.
b344d29d
JB
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)
615d0182
DL
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.
2129
2130 * dispnew.c: Include termhooks.h.
2131
2132 * frame.h (FRAMEP): Macro deleted.
2133
2134 * xselect.c: Total rewrite, derived from Lucid's version.
2135
2136 * keyboard.c (kbd_buffer_get_event): Handle selection_clear_event
2137 and selection_request_event events.
2138
2139 * xterm.c (XTread_socket): Handle NEW_SELECTIONS alternative:
2140 queue events for SelectionRequest and SelectionClear;
2141 call functions for SelectionNotify and PropertyNotify.
2142
2143 * termhooks.h (selection_request_event, selection_clear_event):
2144 New event kinds.
2145
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.
2151
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.
2155
21561993-03-12 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2157
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.
2162
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.
2166
21671993-03-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2168
2169 * xmenu.c (xmenu_show): New arg enable_list.
b344d29d 2170 (keymap_panes): New arg enables.
615d0182
DL
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.
2175
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.
2179
21801993-03-12 Paul Eggert (eggert@twinsun.com)
2181
2182 * cmd.c (internal_self_insert): Check that tab_width does not
2183 exceed 20, to be consistent with indent.c and xdisp.c.
2184
21851993-03-12 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
2186
da1d68b2 2187 * term.c (CONDITIONAL_REASSIGN): Fixed reference to tigetstr.
615d0182
DL
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.
2190
21911993-03-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2192
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.
2197
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.
2200
22011993-03-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2202
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.
2206
2207 * xdisp.c (display_menu_bar): New function.
2208 (redisplay_window): Call display_menu_bar.
2209
2210 * term.c (tigetstr): Add dummy definition to make Emacs link again.
2211
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.
2217
22181993-03-11 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
2219
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.
2224
22251993-03-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2226
2227 * floatfns.c (Flogb): Fix use of IN_FLOAT.
2228 Fix arg names. Don't confuse Lisp_Object with integer.
2229
22301993-03-11 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2231
2232 * process.c (process_send_signal): In the TERMIOS code for sending
2233 control characters to processes, don't try to return Qnil; just
2234 return.
2235
22361993-03-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2237
2238 * dispnew.c (change_frame_size): Handle FRAME_MENU_BAR_LINES.
2239
2240 * frame.c (Fframe_parameters): Report menu-bar-lines parm.
2241 (syms_of_frame): Set up Qmenu_bar_lines.
2242
2243 * frame.h (FRAME_MENU_BAR_LINES): New macro.
2244 (struct frame): New field menu_bar_lines.
2245
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.
2253
2254 * keyboard.c (command_loop_1): Typo in last change.
2255
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.
2259
22601993-03-10 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
2261
2262 * keyboard.c (command_loop_1): Adjust to the fact that display
2263 tables are now vectors of vectors, not vectors of strings.
2264
22651993-03-10 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2266
2267 * floatfns.c (Flogb): Undo the change of Feb 22.
2268
2269 * ymakefile (OLDXMENU): Don't assume that we have symbolic links
2270 available; use `ln -f' instead of `ln -s'.
2271
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.
2275
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.
2279
2280 * unexec.c (copy_text_and_data): Error message tweaked.
2281
2282 * systime.h (timezone): Add an explicit declaration for this
2283 variable under USG 5-4.
2284
2285 * sysdep.c (read_input_waiting): Set e.frame_or_window, not
2286 e.frame; the latter doesn't exist anymore.
2287
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
2290 of environ.
2291
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.
2299
2300 * s/usg5-3.h (LIBX11_SYSTEM): Eric Raymond says the libraries here
2301 were slightly wrong.
2302
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'.
2305
da1d68b2
JB
2306 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2307 (__do_global_dtors, __CTOR_LIST__, __DTOR_LIST__, __main): Don't
615d0182
DL
2308 define these if ORDINARY_LINK is #defined; in that case, the
2309 standard linking procedure will find definitions for these.
2310
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.
2314
23151993-03-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2316
2317 * xfns.c (x_make_gc): Don't forget to block X input around the
2318 X calls in this function.
2319
2320 * xfns.c [not HAVE_X11R4] (select_visual): It's v->visualid, not
2321 x->visualid. x isn't defined.
2322
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.
2326
2327 * process.c [! subprocesses] (wait_reading_process_input):
2328 Remember to re-enable polling for input.
2329
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.
2333
2334 * keyboard.c (interrupt_signal): Remove extern declaration of
2335 Vwindow_system; this is no longer used.
2336
23371993-03-09 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2338
2339 * editfns.c (Fcurrent_time_string): Optional arg specifies time.
2340
2341 * keymap.c (Fdefine_key): Use proper meta-bit to clear.
2342
2343 * intervals.c (set_point): Check invisibility of following character,
2344 not previous character.
2345
2346 * floatfns.c (FLOAT_CHECK_ERRNO): Define unless NO_FLOAT_CHECK_ERRNO.
2347
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.
2362
2363 * fns.c (Fy_or_n_p): Use query-replace-map.
2364
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.
2371
b344d29d 2372 * lisp.h (Qrange_error, Qdomain_error, Qsingularity_error)
615d0182
DL
2373 (Qoverflow_error, Qunderflow_error): New vars.
2374
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.
2378
23791993-03-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2380
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'.
2385
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.
2390
b344d29d 2391 * frame.c (Fframe_char_height, Fframe_char_width)
615d0182
DL
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.
2396
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.
2400
24011993-03-07 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2402
2403 * buffer.c (syms_of_buffer): Make erase-buffer a disabled command.
2404
24051993-03-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2406
2407 * ymakefile (keyboard.o): Depend on intervals.h.
2408 (keymap.o): Depend on termhooks.h.
2409
2410 * keyboard.c: Include intervals.h.
2411 (read_key_sequence): Use get_local_map.
2412
2413 * textprop.c (Fget_text_property): Use textget.
2414 (Fnext_single_property_change): Likewise.
2415 (Fprevious_single_property_change): Likewise.
2416
2417 * intervals.c (textget): Handle categories.
2418 (get_local_map): New function.
2419 (verify_interval_modification): Call textget correctly.
2420
2421 * textprop.c (syms_of_textprop): Set up Qcategory, Qlocal_map.
2422 * intervals.h: Declare those vars. Declare textget, get_local_map.
2423
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.
2430
2431 * keyboard.c (read_key_sequence):
2432 Use meta_modifier for meta keys when handling function_key_map.
2433
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.
2437
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.
2442
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.
2446
24471993-03-06 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2448
2449 * dispnew.c (init_display): Initialize Vwindow_system.
2450
2451 * ymakefile (SHELL): No need to set this twice; remove one.
2452
2453 * emacs.c (main): SIGIOT isn't defined on all systems; don't set
2454 its signal handler unless it is.
2455
2456 * sysdep.c (init_baud_rate): Use input_fd, instead of fd; the
2457 latter is undefined.
2458
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
2461 strlen instead.
2462
24631993-03-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2464
2465 * keyboard.c (syms_of_keyboard): Handle gaps in modifier_names.
2466 (modifier_names): Reorder to match termhooks.h.
2467
2468 * keyboard.c (parse_modifiers_uncached): Detect `s-', not `super-'.
2469 (apply_modifiers_uncached): Make `s-', not `super-'.
2470
2471 * lread.c: Include termhooks.h.
2472 (read_escape): Handle \H, \A, \s. Use ..._modifier.
2473 * ymakefile (lread.o): Depend on termhooks.h.
2474
b344d29d 2475 * termhooks.h (alt_modifier, super_modifier, hyper_modifier)
615d0182
DL
2476 (shift_modifier, ctrl_modifier, meta_modifier):
2477 Renumber the bits.
2478 * keyboard.c (make_lispy_event): For ASCII event, the ..._modifier
2479 bits are the right bits to return.
2480
2481 * keyboard.c (lispy_function_keys): Add codes starting at 0xff00
2482 and running through 0xffff.
2483
2484 * xterm.c (x_alt_mod_mask, x_super_mod_mask, x_hyper_mod_mask):
2485 New variables.
2486 (x_find_modifier_meanings): Set them.
2487 (x_convert_modifiers): Check for them.
2488 (XTread_socket): Handle BackSpace, etc, function keys.
2489
2490 * keyboard.c (read_char): Move metabit when fetching from string macro.
2491
2492 * callint.c (check_mark): Error if mark is not active.
2493
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
2497 if it turns off.
2498 (region_limit): Error if mark inactive, if transient-mark-mode.
2499
2500 * insdel.c (prepare_to_modify_buffer): Set Vdeactivate_mark.
2501
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.
2506
2507 * buffer.c (syms_of_buffer): New buffer-local var `mark-active'.
2508 (init_buffer_once): Initialize mechanism for it.
2509
2510 * buffer.h (struct buffer): New field mark_active.
2511
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.
2516
2517 * textprop.c (Qmodification_hooks): Renamed from Qmodification.
2518 (syms_of_textprop): Changed accordingly.
2519
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.
2524
25251993-03-05 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2526
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.
2531
25321993-03-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2533
2534 * ymakefile (LIB_MATH): Delete -lc, since duplicates LIB_STANDARD.
2535
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.
2540
2541 * disptab.h (DISP_INVIS_VECTOR): Renamed from DISP_INVIS_ROPE.
2542 (DISP_CHAR_VECTOR): Renamed from DISP_CHAR_ROPE.
dff28924 2543 All callers changed.
615d0182
DL
2544
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.
2550
da1d68b2 2551 * alloc.c (Fmake_rope, Frope_elt): Fns deleted.
615d0182
DL
2552
2553 * lisp.h (CHAR_META, CHAR_SHIFT, CHAR_CTL): New macros.
2554
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.
2557
2558 * keyboard.c (Fthis_command_keys, Fread_key_sequence):
2559 Fix calls to make_event_array.
2560
2561 * macros.c (Fend_kbd_macro): Fix call to make_event_array.
2562
2563 * alloc.c (make_event_array): Renamed from make_array.
2564 Chars that fit in a string are 0...127 and their meta variants.
2565
2566 * keyboard.c (make_lispy_event): Put meta and shift modifiers
2567 into an integer.
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.
2574
2575 * xterm.c (XTread_socket): Set bufp->modifiers for all kinds of keys.
2576
2577 * keymap.c (Flookup_key): Use 0x800000 as meta-bit if from vector.
2578 (Fdefine_key): Likewise.
2579
25801993-03-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2581
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.
2586
25871993-03-04 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2588
2589 * keyboard.c (Fsuspend_emacs): Remember that `suspend-hooks' isn't
2590 necessarily bound.
2591
25921993-03-04 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
2593
2594 * Makefile.in (xmakefile): Add missing quote.
2595
dff28924 25961992-03-03 Wilson H. Tien (wtien@urbana.mcd.mot.com)
615d0182
DL
2597
2598 * unexelf.c (unexec): Move data2 section header up so all section
2599 headers will be in ascending order. This will prevent the unexeced
dff28924 2600 emacs that being processed by other applications (such as strip)
615d0182
DL
2601 to fail.
2602
26031993-03-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2604
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.
2612
2613 * unexelf.c: Handle rounding of section boundaries.
2614 (round_up): New function.
2615
26161993-03-02 Karl Berry (karl@cs.umb.edu)
2617
da1d68b2
JB
2618 * s/isc2-2.h (USG_SHARED_LIBRARIES, CLASH_DETECTION, NO_FCHMOD):
2619 Define.
2620 (HAVE_TIMEVAL): Do not define.
2621 (NO_ASM): Only define once.
615d0182
DL
2622
26231993-03-02 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2624
2625 * print.c (float_to_string): Define buf to be an unsigned char, to
2626 match the data field of strings.
2627
2628 * keyboard.c (kbd_buffer_get_event): Protect assignment to
2629 Vlast_event_frame in a "#ifdef MULTI_FRAME" clause.
2630
2631 * syntax.c (describe_syntax_1): Delete excess arg to describe_vector.
2632 (check_syntax_table): Delete excess arg to wrong_type_argument.
2633
26341993-03-01 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2635
2636 * buffer.c (buffer-undo-list): Doc fix.
2637
2638 * xdisp.c (redisplay): Protect calls to request_sigio and
dff28924 2639 unrequest_sigio in "#ifdef SIGIO" clauses; these are not defined
615d0182
DL
2640
2641 * cmds.c (Fnewline): Doc fix.
2642
26431993-03-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2644
2645 * insdel.c (del_range): Update point before offset_intervals.
2646
2647 * intervals.h: Don't include dispextern.h more than once.
2648 (INTERVAL_VISIBLE_P): NILP test was backwards.
2649
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.
2655
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.
2663 No longer inline.
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.
2669
26701993-02-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2671
2672 * Makefile.in (emacs, temacs): Add @true to prevent Make confusion.
2673
2674 * lread.c (read1--strings with properties case):
2675 Detect end of list, and invalid syntax, using recursive read1 calls.
2676
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.
2685
2686 * print.c (print--string case):
2687 Any non-null interval means print intervals.
2688 Get rid of var obj1; just use obj.
2689
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.
2695
b344d29d 2696 * xterm.c (x_do_pending_expose, XTframe_rehighlight)
615d0182
DL
2697 (x_window_to_scrollbar): Use XGCTYPE.
2698
26991993-02-28 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2700
2701 Use the term `scroll bar', instead of `scrollbar'.
2702 * alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h,
da1d68b2
JB
2703 * lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c,
2704 * xterm.c, xterm.h: Terminology changed.
615d0182 2705
da1d68b2 2706 Don't generate switch-frame events by checking Vlast_event_frame;
615d0182
DL
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
2711 Vlast_event_frame.
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
2716 after each event.
2717 (init_keyboard): Initialize both Vlast_event_frame and
2718 internal_last_event_frame.
2719 * keyboard.h (internal_last_event_frame): Add extern declaration
2720 for this.
2721 * frame.c (Vlast_event_frame): Remove external declaration for
2722 this.
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.
2726
2727 * keyboard.c (syms_of_keyboard): Doc fix for unread_command_events.
2728
27291993-02-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2730
2731 * keyboard.c (syms_of_keyboard): Doc fix.
2732
27331993-02-26 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2734
2735 * ymakefile (LIBES): Exchange the order of LIB_MATH and
2736 LIB_STANDARD, to avoid duplicated symbols under SunOS.
2737
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.
2741
27421993-02-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2743
2744 * ymakefile (intervals.o): Dep on intervals.c, not textprop.c.
2745
2746 * textprop.c (remove_properties): Call modify_buffer.
2747 (add_properties): Likewise.
2748
2749 * undo.c (record_property_change): Typo in last change.
2750
2751 * cmds.c (syms_of_cmds): Typo in last change.
2752
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.
2757
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.
2761
27621993-02-24 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2763
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.
2768
2769 * print.c (float_to_string): Define buf to be an unsigned char, to
2770 match the data field of strings.
2771
2772 * lisp.h (RETURN_UNGCPRO): Remove "do ... while (0)" wrapper
2773 around macro.
2774
2775 * data.c (Fstring_to_number): Declare p to be an unsigned char, to
2776 match the data field of strings.
2777
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>.
2781
27821993-02-24 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2783
2784 * buffer.c (Ferase_buffer): Added interactive spec.
2785
27861993-02-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2787
2788 * undo.c (Fprimitive_undo): Handle property-change undo entry.
2789 (record_property_change): New function.
2790
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.
2795
2796 * buffer.c (syms_of_buffer): Doc fix.
2797
2798 * cmds.c (syms_of_cmds): New var `overwrite-binary-mode'.
2799 (internal_self_insert): Handle that var.
2800
28011993-02-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2802
2803 * keyboard.c (read_avail_input): Args to `kill' were backwards.
2804
28051993-02-23 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
2806
2807 * alloc.c (make_pure_float): Assure that PUREBEG + pureptr is
2808 aligned, not pureptr itself.
2809
2810 * emacs.c (fatal_error_signal): Unblock the signal before we try
2811 to deliver it to ourselves. #include "syssignal.h" to get the
2812 right definitions.
2813
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
2817 point.
2818
28191993-02-23 Richard Stallman (rms@geech.gnu.ai.mit.edu)
2820
2821 * unexec.c (adjust_lnnoptrs): Handle symentry.n_type == 0x2400.
2822 (make_hdr) [USG_SHARED_LIBRARIES]: Set bias using bss_start.
2823
28241993-02-22 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2825
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.
2832
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.
2836
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.
2839
2840 * .gdbinit (xprocess): New command.
2841
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
2845 that have rint.
2846
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.
2850
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.
2854
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.
2861
28621993-02-22 Charles Hannum (mycroft@hal.gnu.ai.mit.edu)
2863
2864 * ibmrs6000.h (C_ALLOCA, STACK_DIRECTION): Only define if HAVE_ALLOCA
2865 is not defined.
2866 (X_DEFAULT_FONT): Change to `fixed', as `Rom14.500' only works on the
2867 console.
2868
2869 * aix3-1.h: Changes from 18.58.
2870 (HAVE_TERMIOS): Changed from HAVE_TERMIO.
2871 (unix): Define.
2872
2873 * sysdep.c (child_setup_tty): Recognize HAVE_TERMIOS as well as
2874 HAVE_TERMIO.
2875
2876 * xrdb.c (getuid): Remove declaration.
2877
2878 * systty.h [HAVE_TERMIOS]: Include fcntl.h.
2879
2880 * systime.h [_AIX]: Move test outside of previous #if.
2881 (EMACS_GET_TZ_OFFSET) [USG]: Don't declare twice. Prefer tzset.
2882
2883 * keyboard.c (init_keyboard): Recognize HAVE_TERMIOS as well as
2884 HAVE_TERMIO.
2885
2886 * aix3-2.h: New file. Specifies difference between AIX 3.1 and 3.2.
2887
28881993-02-20 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
2889
2890 * keyboard.c (Fsuspend_emacs): Make tem not register.
2891
2892 * syntax.c (Fforward_comment): New function.
2893
2894 * search.c (Fskip_syntax_backward): New function.
2895 (Fskip_syntax_forward): Likewise.
2896 (skip_chars): New argument syntaxp.
2897
2898 * alloc.c (Fmemory_limit): Doc fix.
2899
29001993-02-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2901
2902 * keyboard.c (Fsuspend_emacs): Rename suspend-hook to suspend-hooks
2903 and run it manually.
2904
2905 * keymap.c (describe_map): Call Fkey_description before build_string.
2906
29071993-02-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
2908
2909 * keyboard.c (Fopen_dribble_file): Doc fix.
2910
2911 * lread.c (syms_of_lread): Doc fix.
2912
29131993-02-18 Jim Blandy (jimb@totoro.cs.oberlin.edu)
2914
2915 * textprop.c (Fget_text_property): Fix typo in function's declaration.
2916
2917 * floatfns.c (IN_FLOAT): Make this work properly when SIGTYPE is void.
2918
2919 * alloc.c: Add description lines to the top of each page.
2920
2921 * alloc.c (mark_interval_tree): Remove spurious & in front of
2922 function name.
2923
cc4a96c6 2924 * alloc.c (UNMARK_BALANCE_INTERVALS): Fix to accommodate compilers
615d0182
DL
2925 other than GCC, which do not allow casts on the LHS of an
2926 assignment.
2927
2928 * config.h.in: #define USE_TEXT_PROPERTIES by default.
2929
2930 * alloc.c (mark_object, mark_buffer): Remove some unused
2931 variables.
2932
2933 * buffer.c (Fswitch_to_buffer): Pass the correct number of
2934 arguments to Fnext_window.
2935
2936 * buffer.c (Fbury_buffer): Pass the correct number of arguments to
2937 Fother_buffer.
2938
2939 * bytecode.c (Fbyte_code): Pass the correct number of arguments to
2940 temp_output_buffer_show.
2941
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.
2948
2949 * callproc.c (delete_temp_file): Declare this to return
2950 Lisp_Object, to smooth type-checking.
2951
2952 * data.c (wrong_type_argument): Pass the correct number of
2953 arguments to Fstring_to_int.
2954
2955 * data.c (arithcompare): Add a default case which aborts, just to
2956 make me happy.
2957
2958 * dispnew.c (sit_for): Pass the correct number of arguments to
2959 gobble_input.
2960
2961 * editfns.c (Fmessage): Don't forget to return a value when
2962 args[0] == Qnil.
2963
2964 * fns.c (Fequal): Call internal_equal to recurse on elements of
2965 lists and vectors, not Fequal.
2966
2967 * frame.c (Fdelete_frame): If FRAME is a dead frame, return Qnil,
2968 not nothing.
2969
2970 * keyboard.c (echo_char): Apply XINT to c before passing it to
2971 push_key_description.
2972
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.
2977
2978 * keyboard.c (command_loop_1): Apply XINT to c before passing it
2979 to internal_self_insert and direct_output_for_insert.
2980
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.
2985
2986 * keyboard.c (Fread_key_sequence): Backslash the newlines in this
2987 docstring.
2988 * textprop.c (Fget_text_property): Same.
2989
2990 * keymap.c (Fdescribe_vector): Pass the proper number of arguments
2991 to describe_vector.
2992 * syntax.c (describe_syntax_1): Same.
2993
2994 * minibuf.c (Fdisplay_completion_list): Pass the proper number of
2995 arguments to Flength.
2996 * xmenu.c (list_of_items): Same.
2997
2998 * window.c (Fset_window_configuration): Pass the proper number of
2999 arguments to Fselect_frame.
3000
3001 * xfns.c (x_set_icon_type): Pass the proper number of arguments to
3002 x_bitmap_icon.
3003
3004 * xterm.c (XTread_socket): Pass the proper number of arguments to
3005 construct_mouse_click.
3006
3007 * config.h.in (HAVE_CONST): New macro. If it's not #defined, #define
3008 const to be the empty string.
3009
3010 * config.h.in: If we're not __STDC__, define volatile to be the
3011 empty string.
3012
3013 * buffer.h: Remove code which #includes "undo.h" if lint is
3014 defined. undo.h no longer exists.
3015
3016 * buffer.c (buffer_slot_type_mismatch): Make symbol_name an
3017 unsigned char *, to match the type of a string's data.
3018
30191993-02-17 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
3020
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.
3025
30261993-02-17 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3027
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
3032 init_callproc.
3033
30341993-02-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3035
3036 * buffer.c (Frename_buffer): Make prefix arg set UNIQUE.
3037
30381993-02-14 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3039
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.
3043
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.
3048
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
3052 needed anymore.
3053 * xfns.c (Qnone): Add them here; we still accept "none" as a valid
3054 value for the `minibuffer' parameter.
3055
3056 * xfns.c (x_frame_params): Remember that the parameters are called
3057 "auto-raise" and "auto-lower", not "autoraise" and "autolower".
3058
3059 * xdisp.c (message): Set echo_frame to the frame whose message buf
3060 we want to use, not to the message buf itself.
3061
30621993-02-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3063
3064 * textprop.c (Fadd_text_properties): Put OBJECT arg last.
3065 Make it optional.
3066 (Fset_text_properties, Fremove_text_properties): Likewise.
b344d29d 3067 (Fnext_single_property_change, Fprevious_single_property_change)
615d0182
DL
3068 (Fnext_property_change, Fprevious_property_change): Likewise.
3069 (Ferase_text_properties): #if 0.
3070 (Fget_text_property): New function.
3071
3072 * s/irix4-0.h (C_SWITCH_MACHINE): Don't define if GCC.
3073
30741993-02-13 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3075
3076 * s/usg5-4.h: #include "usg5-3.h", not "s-usg5-3.h".
3077
30781993-02-11 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3079
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.
3084
30851993-02-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3086
3087 * editfns.c (Finsert_buffer_substring): Proper error for non-ex buffer.
3088 (Fcompare_buffer_substrings): Likewise.
3089
30901993-02-10 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3091
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.
3097
30981993-02-10 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3099
3100 * editfns.c (Fcompare_buffer_substrings): Ignore case
3101 if case-fold-search is non-nil.
3102
31031993-02-08 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3104
da1d68b2
JB
3105 * keymap.c (Flookup_key, Fkey_binding, Flocal_key_binding)
3106 (Fglobal_key_binding, Fminor_mode_key_binding): Add a new optional
615d0182
DL
3107 argument ACCEPT_DEFAULT, to control whether this function sees
3108 bindings for t.
da1d68b2
JB
3109 (Fwhere_is_internal, describe_map_tree, describe_map_2)
3110 (describe_vector): Pass the proper arguments to Flookup_key.
615d0182
DL
3111
3112 * fileio.c (Fexpand_file_name): Pass DEFALT through
3113 Fexpand_file_name before using it.
3114
3115 * fileio.c (Fexpand_file_name): Doc fix.
3116
31171993-02-07 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3118
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
3121 the selected frame.
3122
31231993-02-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3124
3125 * Makefile (emacs, temacs): Add no-op commands to these rules.
3126
3127 * dispnew.c (char_ins_del_cost): Use FRAME_WIDTH, not FRAME_HEIGHT.
3128
3129 * editfns.c (Fcompare_buffer_substrings): New function.
3130
31311993-02-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3132
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.
3136
31371993-01-29 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
3138
3139 * window.c (Fscroll_left, Fscroll_right): Don't forget to apply
3140 XWINDOW to selected_window before passing it to window_internal_width.
3141
3142 * xmenu.c (Fx_popup_menu): Don't forget to turn the frame-relative
3143 coordinates for the menu position into root-window-relative
3144 coordinates.
3145
3146 * lread.c (read1): Although digits followed by a '.' are an
3147 integer, a single . by itself (like, say, \.) should be a symbol.
3148
31491993-01-25 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
3150
3151 * fns.c (internal_equal): Protect the clause for comparing numbers
3152 of different types with a "#ifdef LISP_FLOAT_TYPE".
3153
31541993-01-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3155
3156 * s/hpux8.h [__GNUC__] (LD_SWITCH_SYSTEM): Remove -a.
3157 [__GNUC__] (ORDINARY_LINK): Defined.
3158
3159 * m/sparc.h [TERMINFO]: Don't define LIBS_TERMCAP.
3160
31611993-01-25 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3162
da1d68b2 3163 `live-frame-p' has become `frame-live-p'.
615d0182
DL
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.
3169
3170 * lread.c (read1): Treat a string of digits ending in a period as
3171 an integer.
3172
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
3182 directly.
3183
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.
dff28924 3188 * xselect.c (Fx_own_selection): Rename to Fx_set_selection,
615d0182
DL
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
3193 fix.
3194 (syms_of_xselect): Adjusted.
3195
3196 * xselect.c (Fx_own_selection, Fx_selection_value): Remove "#if
3197 0"'ed code which made cut buffers look like a special selection
3198 type.
3199
3200 * xfns.c (Vx_selection_value): Removed extern declaration for
3201 this; it's never used.
3202
3203 * data.c (Fcompiled_function_p): Renamed to Fbyte_code_function_p.
3204 (syms_of_data): Adjusted.
3205
3206 * data.c (Fnumberp, Fnumber_or_marker_p): Use the NUMBERP macro,
3207 instead of writing it out.
3208
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.
3212
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.
3220
3221 * frame.c: Doc fixes.
3222
32231993-01-24 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3224
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.
dff28924 3238 (Qbar, Qbox, Qcursor_type): New symbols.
615d0182
DL
3239 (syms_of_xfns): Init and staticpro them; remove DEFVAR for
3240 Vbar_cursor.
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.
3244
3245 * frame.c (Fmouse_position): Pass the appropriate arguments to
3246 *mouse_position_hook; the protocol was changed, but this caller
3247 wasn't fixed.
3248
3249 * xterm.c (XTclear_frame): Call x_scrollbar_clear.
3250 (x_scrollbar_clear): New function.
3251
3252 * xterm.c (XTflash): Totally rewritten. Only defined if
3253 HAVE_TIMEVAL and HAVE_SELECT are defined, since we use select for
3254 our timing.
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.
3260
3261 * window.c (Fscroll_other_window): Prefer windows on the selected
3262 frame, then look for windows on other visible frames.
3263
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.
3268
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
e4769531 3274 XPutImage to make it into a gray stipple, just call
615d0182
DL
3275 XCreatePixmapFromBitmapData to do it all at once.
3276
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
3279 need this.
3280
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.
3284
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.
3289
3290 * frame.c (next_frame): Check that FRAME is a live frame.
3291
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.
3297
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.
da1d68b2
JB
3302 (command_loop_1, read_char, Finput_pending, Fdiscard_input)
3303 (quit_throw_to_read_char, init_keyboard): Change to use
615d0182
DL
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.
3309
3310 * Makefile.in: Some makes can't handle comments in the middle of
3311 commands; move them to before the whole rule.
3312
33131993-01-21 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3314
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.
3318
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.
3322
3323 * xterm.c (XTread_socket): Minor reformatting.
3324
3325 * xterm.c (x_set_window_size): Always mark the frame garbaged.
3326
da1d68b2 3327 * window.c (Vmouse_window): Variable removed; it can't be handled
615d0182
DL
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
3335 accordingly.
3336
33371993-01-20 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3338
3339 * xterm.c (x_scrollbar_create): Set the scrollbars to use
3340 EastGravity.
3341
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.
3345
33461993-01-19 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3347
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
3351 x_destroy_window.
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.
3356
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.
3360
3361 keyboard.c (read_char_menu_prompt): Test HAVE_X_WINDOWS, not
3362 HAVE_X_WINDOW.
3363
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.
3368 * ymakefile: Same.
3369
3370 * keyboard.c (read_char, read_char_menu_prompt): Use the
3371 EVENT_HAS_PARAMETERS macro from keyboard.h, instead of writing it
3372 out.
3373
3374 * keyboard.c (read_char_menu_prompt): Doc fix.
3375
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.
3378
3379 * keymap.c (Fdefine_key): Call Fkey_description to make the string
3380 to use in the error message.
3381
33821993-01-18 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3383
3384 * window.c (Fdisplay_buffer): Doc fix.
3385
33861993-01-16 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
3387
3388 * xterm.c (x_window_to_scrollbar): Search frames'
3389 condemned_scrollbars list as well; input might arrive during
3390 redisplay.
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
3394 we've killed.
3395
33961993-01-15 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3397
3398 * keyboard.c (Frecent_keys): Doc fix.
3399
34001993-01-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3401
3402 * window.c (Fwindow_at): Doc fix.
3403
34041993-01-14 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3405
3406 * xterm.c (x_scrollbar_create): Include PointerMotionHintMask in
3407 the event mask for scrollbars.
3408
3409 * dispnew.c (Fredraw_display): DEFUN was missing a closing paren.
3410
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.
3414
3415 * .gdbinit: Add "-geometry +0+0" to default args.
3416 (xscrollbar): New command.
3417
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.
da1d68b2
JB
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):
615d0182
DL
3428 New macros, to help deal with the lispy structures, and deal with
3429 the graphics.
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
3442 field.
da1d68b2
JB
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
cc4a96c6 3448 typos and brainos, and to accommodate the lispy structures.
615d0182
DL
3449
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
3453 don't care.
3454
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
3464 declaration.
3465 * ymakefile: Note dependency change.
3466
3467 * xfns.c (Fx_create_frame): After mapping the frame, call
3468 SET_FRAME_GARBAGED, not just plain FRAME_GARBAGED.
3469
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.
da1d68b2
JB
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.
615d0182
DL
3485
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.
3489
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
3494 windows.
3495
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.
3503
da1d68b2
JB
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.
615d0182
DL
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.
da1d68b2
JB
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.
615d0182
DL
3515
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.
3518
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.
3521
3522 * xterm.c (pixel_to_glyph_coords): Properly set *bounds to the
3523 character cell bounding the position, even when the position is
3524 off the frame.
3525
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;".
3529
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.
3532
3533 * xfns.c (x_figure_window_size): Set the frame's
3534 vertical_scrollbar_extra field before trying to calculate its
3535 pixel dimensions.
3536
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.
3542
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,
3546 less one.
3547
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.
3551
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
3563 scrollbar.
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
3574 list.
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
3581 needed.
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
3586 window.
3587
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
3592 XTmouse_position.
3593
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.
3598
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.
3607
da1d68b2
JB
3608 * xterm.c (last_mouse_bar, last_mouse_bar_frame, last_mouse_part)
3609 (last_mouse_scroll_range_start, last_mouse_scroll_range_end):
615d0182
DL
3610 Replaced with...
3611 (last_mouse_scrollbar): New variable.
3612 (note_mouse_movement): Clear last_mouse_scrollbar when we have
10d1d0af 3613 received a new motion.
615d0182
DL
3614 (syms_of_xterm): Staticpro last_mouse_scrollbar.
3615
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,
3619 for consistency.
3620 (XTread_socket): Adjusted.
3621
3622 * xterm.c (XTset_scrollbar): Renamed to XTset_vertical_scrollbar.
3623 (x_term_init): Adjusted.
3624
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
3629 event queue.
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
3641 #defined.
3642
3643 * keyboard.c (head_table): Make Qscrollbar_movement have a
3644 Qevent_kind property of Qmouse_movement, not Qscrollbar_movement.
3645
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.
3650
3651 * keyboard.c (read_key_sequence): Doc fixes.
3652
3653 * keyboard.c (kbd_buffer_store_event): Fix reversed sense of test
3654 for focus redirection.
3655
3656 * keyboard.c (read_char): Don't echo mouse movements.
3657
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.
3664
3665 * xterm.c (x_error_quitter): Move the abort call to after we print
3666 the error message. No harm in that.
3667
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.
3671
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
3678 the time.
3679
3680 * xdisp.c (redisplay_windows): Don't restore the current buffer
3681 and its point before refreshing the scrollbars; we need the buffer
3682 accurate.
3683
36841993-01-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3685
3686 * print.c (float_to_string): Add final 0 if text ends with decimal pt.
3687
3688 * dispnew.c (Fredraw_display): Redraw all visible frames.
3689 Make the non-multi-frame version interactive.
3690
36911993-01-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3692
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.
3696
36971993-01-10 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3698
3699 * print.c (float_to_string): Add `.0' at end if needed.
3700
3701 * lread.c (Fload): If warn that .elc file is older, inhibit
3702 the ordinary message that would follow.
3703
37041993-01-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3705
3706 * fileio.c (Fdo_auto_save): Add CURRENT_ONLY argument, as
3707 described in doc string.
3708
37091993-01-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3710
3711 * fns.c (Frandom): Change arg name.
3712
3713 * editfns.c: Doc fixes.
3714
37151993-01-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3716
3717 * unexhp9k800.c (unexec): Don't call exit, just return.
3718
37191993-01-07 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3720
da1d68b2 3721 * config.h.in: Protect against multiple #inclusions.
615d0182
DL
3722
3723 * config.h.in: Add a declaration for getenv.
3724
3725 * xfns.c (Fx_get_resource): Add CLASS argument, to give class of
3726 ATTRIBUTE.
3727 [not HAVE_X11]: Change definition of Fx_get_resource macro
3728 accordingly.
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.
3736
3737 * xfns.c (Fx_create_frame): Use the same resource names and
3738 classes as xterm and Emacs 18.
3739
37401993-01-03 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3741
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.
3746
37471992-12-29 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3748
3749 * ralloc.c: [! emacs] [HAVE_CONFIG_H]: #include "config.h"
3750
37511992-12-21 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3752
3753 * Makefile.in (tagsfiles): New variable.
3754 (TAGS): Depend on $(tagsfiles); use that in cmds.
3755 (tags): Separate phony rule; depends on TAGS.
3756
37571992-12-21 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3758
da1d68b2 3759 * keyboard.c: Protect all references to kbd_buffer_frames with
615d0182
DL
3760 #ifdef MULTI_FRAME.
3761
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.
da1d68b2
JB
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.
615d0182
DL
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
3781 scrollbars.
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.
da1d68b2
JB
3799 (last_mouse_bar, last_mouse_bar_frame, last_mouse_part)
3800 (last_mouse_scroll_range_start, last_mouse_scroll_range_end): New
615d0182
DL
3801 variables.
3802 (XTmouse_position): Use them to return scrollbar movement events.
3803 Take new arguments, for that purpose.
da1d68b2
JB
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.
615d0182
DL
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.
3822
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.
3827
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
3836 other event types.
3837 * lisp.h (Qvertical_scrollbar): Declare this.
3838 * window.c (window_from_scrollbar): New function.
3839
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
3843 fields.
da1d68b2
JB
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
615d0182
DL
3847 interface.
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.
3874
3875 * xterm.c (x_set_mouse_position): Clip mouse position to be within
3876 frame.
3877
3878 * xterm.c: Adjust the first line of each page to have a reasonable
3879 description. This makes pages-directory more useful.
3880
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
dff28924 3884 HAVE_X11'.
615d0182
DL
3885
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.
3889
3890 * xterm.c (notice_mouse_movement): Deleted; obsolete and unused.
3891
3892 * keyboard.c (Fread_key_sequence): Doc fix.
3893
3894 * keyboard.c (make_lispy_event): Buttons are numbered starting
3895 with zero now.
3896
3897 * keyboard.c (make_lispy_event): Use the proper accessors when
3898 manipulating the `x' and `y' fields of struct input_event.
3899
3900 * keyboard.c (parse_modifiers_uncached): Remember that strncmp
3901 returns zero if the two substrings are equal.
3902
3903 * keyboard.c (do_mouse_tracking, Ftrack_mouse): Doc fix.
3904
3905 * keyboard.c (read_char): Don't put mouse movements in
3906 this_command_keys.
3907
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.
3910
39111992-12-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3912
3913 * callint.c (Fcall_interactively): For `s', use Fread_string.
3914
39151992-12-20 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3916
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
3924 have focus.
3925
3926 * xterm.c (XTread_socket): Remove special code in EnterNotify case
3927 to handle scrollbars and fake mouse motion events.
3928
39291992-12-19 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3930
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'.
3936
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
3942 selected_frame.
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.
3954
3955 * window.c (Fset_window_configuration): Don't restore the frame's
3956 focus redirection if the target frame is now dead.
3957
3958 * ymakefile (ralloc.o): This no longer depends on xterm.h.
3959
3960 * ymakefile (all, xemacs): We build an executable called `emacs' now,
3961 not `xemacs'.
3962 * Makefile.in (distclean, xemacs, doxemacs): Same.
3963
3964 * xterm.h (PIXEL_WIDTH, PIXEL_HEIGHT): Change name of parameter
3965 from `s' to `f'; it's a frame pointer.
3966
39671992-12-18 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3968
3969 * keyboard.c (kbd_buffer_frames): New vector, to GCPRO frames in
3970 kbd_buffer.
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.
3979
3980 * xterm.c (x_error_quitter): Just abort, so we can look at the
3981 core to see what happened.
3982
39831992-12-17 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3984
3985 * buffer.c (Frename_buffer): Set update_mode_lines.
3986
39871992-12-14 Jim Blandy (jimb@totoro.cs.oberlin.edu)
3988
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.
3992
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
4001 FRAME_ICONIFIED_P.
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.
4011
40121992-12-12 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4013
4014 * ymakefile (CFLAGS): #define HAVE_CONFIG_H too.
4015
4016 * Makefile.in (distclean): Don't delete machine.h or system.h;
4017 they don't exist anymore.
4018
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.
4022
40231992-12-11 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4024
4025 * search.c (Fskip_chars_forward, Fskip_chars_backward): Return the
4026 distance traveled.
4027 (skip_chars): Return the distance traveled, as a Lisp_Object.
4028
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
4033 matters.
4034
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
4038 when done.
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
4043 ${archlib}.
4044
4045 * ymakefile (lisp): Don't include version.el in this list.
4046
4047 Give subprocess creation a way to find a valid current directory
4048 for subprocesses when the buffer's default-directory is a handled
4049 name.
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.
dff28924 4057 * process.c (create_process): Don't check the validity of the
615d0182
DL
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.
4061
4062 * callproc.c (Fcall_process_region): Return the value returned by
4063 Fcall_process.
4064
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
4068 changed.
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.
4073
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.
4077
40781992-12-07 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4079
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
4085 try to select it.
4086
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
4090 anymore.
4091
40921992-12-03 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4093
dff28924 4094 Make sure that frames' visible flag only changes at acceptable
615d0182
DL
4095 times. See FRAME_SAMPLE_VISIBILITY's comments for details.
4096 * frame.h (struct frame): New fields called async_visible and
4097 async_iconified.
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
4109 f->visible.
da1d68b2
JB
4110 (x_do_pending_expose, x_raise_frame, x_lower_frame)
4111 (x_make_frame_invisible, x_make_frame_visible, x_iconify_frame):
615d0182
DL
4112 Test and set f->async_visible and f->async_iconified, not
4113 f->visible or f->async_iconified.
4114
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.
4119
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
4125 and crash here.
4126
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.
4130
4131 * dispextern.h (struct frame_glyphs): Doc fix.
4132
41331992-12-02 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
4134
4135 * dispnew.c: Remove dyked-out copy of safe_bcopy.
4136
4137 * environ.c: File removed; Changes on 1/13/1992 made it
4138 unnecessary.
4139
41401992-12-01 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4141
4142 * process.c (wait_reading_process_input): Doc fix.
4143
41441992-11-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4145
4146 * next.h: Copy changes from 18.59:
4147 (NeXT): Defined.
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.
4155
41561992-11-25 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4157
4158 * doc.c (store_function_docstring): New function, made from part
4159 of Fsnarf_documentation, which handles docstrings for macros
4160 properly.
4161 (Fsnarf_documentation): Call store_function_docstring.
4162
4163 * data.c (indirect_function): Delete unused argument ERROR.
4164
41651992-11-23 Jim Blandy (jimb@apple-gunkies.gnu.ai.mit.edu)
4166
4167 * Makefile.in (clean): Remove prefix-args.
4168
41691992-11-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4170
4171 * s/sol2.h (LD_SWITCH_SYSTEM): Make alternate version for GCC.
4172
41731992-11-19 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4174
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.
4179
41801992-11-15 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4181
4182 * dispnew.c [not MULTI_FRAME] (Fredraw_display): Pass the correct
4183 number of arguments to mark_window_display_accurate.
4184
4185 * undo.c (Fprimitive_undo): Remove whitespace in front of #ifdef
4186 and #endif.
4187
4188 * systty.h: Doc fix.
dff28924 4189
615d0182
DL
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.
4193
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.
4197
4198 * s/sol2.h (LD_SWITCH_SYSTEM): Add -R option.
4199
4200 * process.c (read_process_output): Save, widen, insert the process
4201 output, and then restore the restriction if inserting text outside
4202 the visible region.
4203
42041992-11-14 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4205
4206 * buffer.c (Ferase_buffer): Doc fix.
4207
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.
4211
42121992-11-13 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4213
4214 * process.c (Fstart_process): Establish an unwind-protect to
4215 remove PROC from the process list if an error occurs while
4216 starting it.
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.
4221
4222 * commands.h (unread_command_event): Doc fix.
4223
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.
4232
4233 * keyboard.c (Vlast_event_frame): Doc fix.
4234
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.
4238
4239 * fileio.c (Fexpand_file_name): Don't fiddle with "/." if it's the
4240 entire string.
4241
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.
4245
4246 * keyboard.c (read_char): Write composite events to the dribble
4247 file properly.
4248
4249 * keyboard.c (init_keyboard): Initialize Vlast_event_frame to
4250 Qnil, rather than the selected frame.
4251
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.
4255
4256 * Makefile.in (doxemacs, dotemacs): Explicitly pass along the CC
4257 variable in these rules, just as in the `doall' rule.
4258
4259 * ralloc.c (relocate_some_blocs): Handle BLOC == NIL_BLOC.
4260 (free_bloc): This can now be simplified.
4261
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
4264 free list.
4265
42661992-11-12 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4267
4268 * process.c (process_send_signal): On systems which have both
4269 the TIOCGETC and TCGETA ioctls, just use the former.
4270
4271 * xselect.c (Fx_get_cut_buffer): Correct check for buf_num in
4272 range.
4273
4274 * xselect.c (Fx_get_cut_buffer, Fx_set_cut_buffer): Fix error
4275 message format; use NUM_CUT_BUFFERS instead of literal 7.
4276
4277 * keyboard.c (lispy_modifier_list): Added sanity check before
4278 indexing into modifier_symbols.
4279
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.
4283
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.
da1d68b2
JB
4289 (command_loop_1, read_char, Finput_pending, Fdiscard_input)
4290 (quit_throw_to_read_char, init_keyboard, syms_of_keyboard): Change
615d0182
DL
4291 references.
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.
4297
42981992-11-11 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4299
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.
4302
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.
4308
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.
4312
43131992-11-10 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4314
4315 * process.c (process_send_signal): Doc fix.
4316
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.
4321
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.
4325
43261992-11-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4327
4328 * s/dgux.h (SYSTEM_TYPE): Use berkeley-unix.
4329
43301992-11-04 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4331
4332 * alloc.c: #include "frame.h" unconditionally. frame.h does the
4333 right thing when MULTI_FRAME isn't defined.
4334
4335 * Makefile.in: Rearrange dependencies to make sure that xmakefile
4336 is built before we try to use it, even using a parallel make.
4337
4338 Changes for SYSV from Eric Raymond:
4339 * process.c [SYSV]: Don't include <termios.h>, <termio.h>, or
4340 <fcntl.h>.
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.
4348
4349 * keyboard.c (read_key_sequence): Removed the
4350 replay_sequence_new_buffer label; replay_sequence should be here
4351 instead.
4352
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.
4370
4371 * buffer.c (init_buffer): If PWD is accurate, use it instead of
4372 calling getwd.
4373 #include <sys/types.h> and <sys/stat.h>, for the call to stat.
4374
da1d68b2 4375 Indicate whether an autoload form stands for a keymap or not.
615d0182
DL
4376 * eval.c (Fautoload): Renamed fifth argument TYPE. Document the
4377 fact that (eq TYPE 'keymap) means FUNCTION will become a keymap
4378 when loaded.
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
4382 denote macroness.
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.
4385
43861992-11-03 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4387
4388 * .gdbinit (mips): New command.
4389
43901992-10-31 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4391
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.
4395
43961992-10-30 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4397
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
4406 declarations.
4407 * bytecode.c (Fbyte_code): Use EQ to compare string_saved with
4408 bytestr.
4409 * casefiddle.c (operate_on_word): Declare end to be an int, not a
4410 Lisp_Object.
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
4419 using EQ, not ==.
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
4426 Lisp_Object.
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.
da1d68b2
JB
4443 * keyboard.h (get_keymap_1, Fkeymapp, reorder_modifiers)
4444 (Fmouse_click_p, read_char): Add external declarations for these.
615d0182
DL
4445 * keymap.c (Fdefine_key, Flookup_key, describe_map): Don't assume
4446 that Flength returns an integer.
da1d68b2
JB
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
615d0182
DL
4452 these.
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.
da1d68b2 4460 * process.c (status_convert): Declare this to return a
615d0182
DL
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
4468 C integer.
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
4479 positions, not !=.
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,
4497 not a Lisp_Object.
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.
da1d68b2
JB
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
615d0182
DL
4513 their definitions in xterm.c.
4514 * ymakefile: Note the new dependencies caused by the new
4515 #inclusions above.
4516
4517 * xdisp.c (last_arrow_position, last_arrow_string): Make these
4518 static.
4519
4520 * process.c (pty_process): Variable deleted; it's no longer used.
4521 (syms_of_process): Don't initialize it.
4522
4523 * buffer.h (struct buffer_local_types): This declaration needed an
4524 extern qualifier.
4525
4526 * floatfns.c (Fexpt): Don't return the value of the XSET function
4527 call; that's not guaranteed to be the value assigned.
4528
4529 * dired.c (Ffile_attributes): Doc fix.
4530
4531 * lisp.h (DEFVARLISP, DEFVARBOOL, DEFVARINT, DEFVARPERBUFFER):
4532 Removed these definitions; we should be using the versions whose
4533 names use underscores.
4534
4535 * keyboard.c (echobuf): Make this 300 characters, not 100. This
4536 isn't a real fix, but it's quick.
4537
45381992-10-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4539
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.
4544
45451992-10-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4546
4547 * dispnew.c (count_blanks): Leave argument r constant, and increment p.
4548
45491992-10-28 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4550
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.
4554
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
4558 this_command_keys.
4559
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.
4563
4564 * keyboard.c (unread_switch_frame): Make this static, to indicate
4565 that nobody outside of this file uses it.
4566
4567 * keymap.c: Deal with autoloaded keymaps properly.
da1d68b2 4568 (get_keymap_1): Renamed to inner_get_keymap; made
615d0182
DL
4569 static. New argument AUTOLOAD says to pursue autoloads if
4570 non-zero.
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
4575 variables now.
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.
4588
45891992-10-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4590
4591 * s/irix3-3.h (HAVE_SETSID, IRIX): Defined.
4592
4593 * s/irix4-0.h: New file.
4594
45951992-10-27 Noah Friedman (friedman@nutrimat.gnu.ai.mit.edu)
4596
da1d68b2
JB
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.
615d0182
DL
4600
46011992-10-27 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4602
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.
4611
46121992-10-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4613
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.
4617
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'.
4621
4622 * batcomp.com: New file. Waiting for papers from richard@ttt.kth.se.
4623
46241992-10-23 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
4625
4626 * emacs.c (main): Correct spelling of HAVE_X_WINDOW to
4627 HAVE_X_WINDOWS in conditionals around the call to syms_of_xmenu.
4628
46291992-10-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4630
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.
4634
46351992-10-22 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4636
4637 * ralloc.c (relinquish): Sign of arg to *real_morecore was backwards.
4638
46391992-10-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4640
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.
4646
46471992-10-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4648
4649 * keyboard.c (syms_of_keyboard): Properly staticpro this_command_keys.
4650
4651 * mem-limits.h (get_lim_data): Make it static.
4652
4653 * ymakefile (mallocobj): Use vm-limit.o along with ralloc.o.
4654
4655 * ralloc.c [emacs]: Define POINTER and SIZE.
4656 [!emacs]: Delete definition of EXCEEDS_LISP_PTR.
4657
4658 * eval.c (grow_specpdl): Increase max_specpdl_size before Fsignal.
4659
46601992-10-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
4661
4662 * xfns.c (x_set_face): Dyked out this function; it has no callers,
4663 and refers to an obsolete version of struct face.
4664
4665 * xterm.c (compose_status): New variable.
4666 (XTread_socket): Pass it by reference to XLookupString.
4667
46681992-10-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4669
4670 * s/esix5r4.h (BROKEN_FIONREAD): Defined.
4671
46721992-10-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4673
4674 * s/vms5-5.h: New file.
4675
46761992-10-16 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4677
4678 * xdisp.c (message): If M is zero, clear echo_area_glyphs and
4679 previous_echo_glyphs, so that the minibuffer shows through.
da1d68b2 4680 * editfns.c (Fmessage): With no arguments, clear any active
615d0182
DL
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.
4684
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
4689 appropriately.
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.
da1d68b2 4693 * callint.c (Fcall_interactively): Change handling of 'e' spec;
615d0182
DL
4694 this_command_keys is now a vector.
4695
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
4699 store things in it.
4700
4701 * window.c: Try to deal coherently with deleted windows:
da1d68b2 4702 (Flive_window_p): New function.
615d0182
DL
4703 (Qlive_window_p): New variable, to name it in type errors.
4704 (syms_of_window): Defsubr Slive_window_p, init and staticpro
4705 Qlive_window_p.
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.
da1d68b2
JB
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
615d0182
DL
4714 CHECK_WINDOW.
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.
4724
4725 * window.c (Fwindow_minibuffer_p): Make the WINDOW argument
4726 optional, like all the other window-querying functions.
4727
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.
4730
4731 * window.c (check_frame_size): Don't define this extern; that
4732 doesn't mean anything.
4733
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.
4743
47441992-10-15 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4745
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.
4749
47501992-10-15 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4751
4752 * vm-limit.c (check_memory_limits): Declare __morecore.
4753 Remove unused variable `result'.
4754
47551992-10-15 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4756
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.
4762
47631992-10-14 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
4764
4765 * intervals.c (traverse_intervals): New parameter `depth'.
4766 Increment this when passing recursively.
4767
4768 * alloc.c (mark_interval_tree): Pass 0 as initial depth argument
4769 to traverse_intervals.
4770
4771 * xterm.h: Declaration of struct face removed.
4772
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
4777 accessing macros.
4778
b643362c 4779 * scroll.c (do_scrolling): Don't bcopy non-existent `nruns' or
615d0182
DL
4780 `face_list' elements. Do copy new `max_ascent' frame element.
4781
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
b344d29d 4785 `face_list'; do free `max_ascent' element.
615d0182 4786 (make_frame_glyphs): Don't allocate nonexistent elements `nruns'
b344d29d 4787 and `face_list'; do allocate `max_ascent' element.
615d0182
DL
4788 (update_frame): Replaced use of macro LINE_HEIGHT with element
4789 frame element `pix_height'.
4790
47911992-10-14 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4792
4793 * keyboard.c (modify_event_symbol): Arrange to set the
4794 click_modifier bit on otherwise unmodified mouse clicks.
4795
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.
4799
48001992-10-12 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
4801
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.
4806
48071992-10-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4808
b344d29d 4809 * ymakefile (ralloc.o): Delete dep mem_limits.h.
615d0182
DL
4810 (vm-limit.o): Rename dep to mem-limits.h.
4811
48121992-10-12 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4813
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.
4818
48191992-10-12 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4820
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.
4830
48311992-10-12 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4832
4833 * vm-limit.c (warnfunction): Renamed to warn_function (was used
4834 inconsistently).
4835 (morecore_with_warning, memory_warnings): Change callers (were
4836 inconsistent).
4837
48381992-10-12 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4839
4840 * mem-limits.h (start_of_data): Removed extra defn.
4841 (get_lim_data): Define to return void.
4842
48431992-10-12 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4844
4845 * mem_limits.h: File renamed to mem-limits.h.
4846 * vm-limit.c, ralloc.c: Changed #includes.
4847
48481992-10-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4849
4850 * syntax.c (find_defun_start): scan_buffer returns start of line;
4851 no need to advance over newline.
4852
4853 * vm-limit.c (morecore_with_warning):
4854 Reduce warnlevel when usage drops far enough.
4855 * ralloc.c (check_memory_limits): Likewise.
4856
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.
4862
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.
4869
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.
4877
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.
4881
48821992-10-10 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4883
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.
4892
da1d68b2 4893 * keyboard.c: Add switch-frame events.
615d0182
DL
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
4904 is complete.
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.
4910
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
4918 non-ascii keys.
4919 * ymakefile: Note that frame.o depends on commands.h and keyboard.h.
4920
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.
4925
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
4929 T_OK false.
4930 * keyboard.c (follow_key, read_key_sequence): Call access_keymap
4931 with T_OK true.
4932
4933 * keyboard.c (apply_modifiers): Copy the value of BASE's
4934 Qevent_kind property to the new symbol.
4935
4936 * keyboard.c (syms_of_keyboard): Qevent_kind should be initialized
4937 to intern ("event-kind"), not intern ("event-type").
4938
49391992-10-10 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4940
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.
4944
4945 * m-ibmps2-aix.h [__GNUC__ >= 2] (LIB_STANDARD): Don't define.
4946
49471992-10-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
4948
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.
4952
4953 * ymakefile [HAVE_X_WINDOWS, not NO_X_MENU, HAVE_X11] (LIBXMENU):
4954 Link against -loldX, to get the association table functions.
4955
4956 * xterm.c, xrdb.c: #include <stdio.h> before "xterm.h", to avoid
4957 warnings about redefining NULL under GCC 2.2.2.
4958
49591992-10-09 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4960
4961 * m/pyrmips.h: New file.
4962
4963 * s/aix3-1.h (PTY_ITERATION, etc.): Defined.
4964 (FIRST_PTY_LETTER): Deleted.
4965
49661992-10-07 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
4967
4968 * m/sparc.h: Include <sys/param.h>, to define the FSCALE constant.
4969
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.
4973
49741992-10-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4975
4976 * link.com: Use gcclib if compiling with GCC.
4977
4978 * fileio.c (directory_file_name): Don't clobber the envvar
4979 when handling top-level rooted dir.
4980
4981 * ymakefile (LIB_STANDARD): If ORDINARY_LINK, default this to empty.
4982
4983 * m/ibmps2-aix.h [USG_SHARED_LIBRARIES]: Define ORDINARY_LINK.
4984 Undef LIB_STANDARD. Modify LD_SWITCH_MACHINE.
4985
4986 * unexnext.c: New file.
4987 * emacs.c (main) [NeXT]: Call malloc_jumpstart.
4988
49891992-10-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
4990
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.
4996
49971992-10-03 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
4998
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
5003 well.
5004
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.
5022
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.
5027
5028 * alloc.c (Fmemory_limit): New function.
5029 (syms_of_alloc): Defsubr it.
5030
5031 * window.c (SAVE_WINDOW_DATA_SIZE): Define this using sizeof,
dff28924 5032 instead of just saying it's 7; that way, we won't get screwed if
615d0182
DL
5033 we add members to struct save_window_data.
5034
5035 * window.c (struct save_window_data): Save the currently selected
5036 frame, too.
5037 (Fset_window_configuration): Restore the frame's selected window
5038 using Fselect_window, and then restore the selected frame using
5039 Fselect_frame.
5040 (Fcurrent_window_configuration): Record the currently selected
5041 frame. Update docstring to describe the information now recorded.
5042
50431992-10-02 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
5044
5045 * process.c (wait_reading_process_input): Ultrix select seems to
5046 return ENOMEM when interrupted. So, under Ultrix, treat ENOMEM
5047 like EINTR.
5048
5049 * keyboard.c (modifier_names): The modifier is named "control",
5050 not "ctrl".
5051
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.
5055
5056 * keyboard.c (Qmouse_click): Fix typo which assigned `mouse-click'
5057 symbol to Qmouse_movement.
5058
50591992-10-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5060
5061 * undo.c (Fprimitive_undo):
5062 When undoing an insert, move point and then delete.
5063
50641992-10-02 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
5065
5066 * intervals.c: `copy_intervals' no longer static.
5067
5068 * intervals.h: Declare `copy_intervals'.
5069
5070 * buffer.c: #include intervals.h.
5071
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".
5075
5076 * lisp.h: Declare Qbuffer_or_string_p.
5077
50781992-10-02 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
5079
5080 * xterm.c (x_find_modifier_meanings): If there are no
5081 modifiers containing a Meta_ keysym, use the Alt keysyms to
5082 denote meta.
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.
5091
5092 * window.c (Fset_window_configuration): Clean up the way we save
5093 and restore the frame's size.
5094
5095 * termhooks.h (struct input_event): Doc fix.
5096 (NUM_MOUSE_BUTTONS): New constant.
5097 (click_modifier): New modifier.
5098 (NUM_MODIFIER_COMBOS): Removed.
5099
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.
da1d68b2
JB
5104 (EVENT_WINDOW, EVENT_BUFFER_POSN, EVENT_SCROLLBAR_BUTTON)
5105 (EVENT_WINDOW_POSN, EVENT_TIMESTAMP): These aren't useful
615d0182
DL
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.
da1d68b2 5111 (POSN_WINDOW, POSN_BUFFER_POSN, PONS_SCROLLBAR_BUTTON)
10d1d0af
JB
5112 (POSN_WINDOW_POSN, POSN_TIMESTAMP): New macros, to further
5113 disassemble the values returned by EVENT_START and EVENT_END.
dff28924 5114 * keyboard.c (echo_char, read_char): Apply EVENT_HEAD without first
615d0182
DL
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
5118 an event occurred.
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.
5123
5124 * keyboard.c (Qevent_unmodified): Replaced by...
5125 (Qevent_symbol_elements): New property.
da1d68b2 5126 (syms_of_keyboard): Initialize and staticpro the latter, not the
615d0182
DL
5127 former.
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.
5132
5133 * keyboard.c (readable_events): This doesn't need to scan and
5134 discard mouse release events anymore; it just uses
5135 EVENT_QUEUES_EMPTY.
5136 (kbd_buffer_get_event): No need to skip past mouse release events.
5137
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.
c0943d3d 5149 (modifier_names, modifier_symbols): New variables, used to
615d0182
DL
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.
c0943d3d
JB
5157 (symbols_of_keyboard): Put Qevent_symbol_elements properties on the
5158 symbols specified in head_table, not Qevent_unmodified properties.
615d0182
DL
5159 Initialize and staticpro modifier_symbols, and staticpro the
5160 window elements of button_down_location.
5161
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.
5166
51671992-10-02 Joseph Arceneaux (jla@wookumz.gnu.ai.mit.edu)
5168
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".
5174
5175 * alloc.c: #include "intervals.h".
5176 (init_intervals, make_interval,
5177 mark_interval, mark_interval_tree): New functions conditionally
5178 defined.
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
5190 `size'.
5191 Moved static declaration of `mark_object' and other functions up
5192 in the file.
5193
5194 * fileio.c (Finsert_file_contents): Call offset_intervals if
5195 text was actually inserted.
5196 #include "intervals.h".
5197
51981992-09-30 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
5199
5200 * data.c: Qbuffer_or_string_p added.
5201
5202 * syntax.c (describe_syntax): Use insert_char to insert `match'.
5203
5204 * buffer.c (reset_buffer): Do INITIALIZE_INTERVAL on the buffer's
5205 interval component.
5206 (Fkill_buffer): Likewise.
5207
5208 * editfns.c (make_buffer_string): Call copy_intervals_to_string.
5209 (Finsert_buffer_substring): Call graft_intervals_into_buffer.
5210 #include "intervals.h".
5211
b344d29d 5212 * insdel.c: #include "intervals.h".
615d0182
DL
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.
5218
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.
5222
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.
5228
5229 * intervals.h: Declare temp_set_point.
5230
52311992-09-30 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
5232
5233 * ymakefile (config.h): Doc fix.
5234
52351992-09-30 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
5236
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.
5240
5241 * lisp.h: Conditionally define interval structure and macros.
5242 Add DECLARE_INTERVALS to struct Lisp_String.
5243
52441992-09-30 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
5245
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.
5249
da1d68b2 5250 * window.c (struct save_window_data): Add a member called
615d0182
DL
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.
5259
5260 * window.c (Fset_window_configuration): Don't select the frame
5261 just because we restored its configuration.
5262
5263 * window.c (Fset_window_configuration): Don't forget to set the
5264 frame's selected window when we can't call Fselect_window.
5265
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.
5271
5272 * data.c (Fmake_local_variable): If SYM forwards to a C variable,
5273 swap in the value for the current buffer immediately.
5274
5275 * lisp.h: Doc elaboration for Lisp_Buffer_Local_Value.
5276
52771992-09-29 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
5278
5279 * textprop.c (Ferase_text_properties): Merge intervals when
5280 possible.
5281
52821992-09-29 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
5283
5284 * xselect.c (Qcut_buffer0): Symbol removed; we're using a new
5285 interface to the cut buffer now.
da1d68b2
JB
5286 (NUM_CUT_BUFFERS, cut_buffer_atom, cut_buffer_value)
5287 (cut_buffer_cached, cut_buffer_just_set): New variables.
615d0182
DL
5288 (Fx_own_selection, Fx_selection_value): Dike out the code to
5289 handle CUT_BUFFER0 requests.
da1d68b2
JB
5290 (Fx_get_cut_buffer, Fx_set_cut_buffer, x_watch_cut_buffer_cache)
5291 (x_invalidate_cut_buffer_cache): New functions.
615d0182
DL
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.
5298
5299 * keymap.c (access_keymap): Don't forget to QUIT while scanning
5300 the keymap.
5301
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,
5306 not a C array.
5307 (syms_of_keyboard): Set recent_keys to be a vector, and staticpro it.
5308
5309 * ymakefile (xfns.o): This doesn't depend on xselect.c.
5310
5311 * xterm.h (ROOT_WINDOW): Use the DefaultScreen macro, not the
5312 XDefaultScreen function.
5313
5314 * frame.c (Fdelete_frame): Call Fselect_frame with the appropriate
5315 number of arguments.
5316
5317 * data.c (Frem): Use the `fmod' function under SunOS, Ultrix, and
5318 HP/UX, not just under USG systems.
5319
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.
5326
53271992-09-28 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
5328
da1d68b2
JB
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.
615d0182
DL
5332
5333 * ralloc.c: Since the users of the relocating allocation code
5334 handle memory exhaustion, it's better to return an error code to
dff28924 5335 them than to call abort.
615d0182
DL
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
5342 return zero.
5343 (r_re_alloc): If we can't allocate more memory, leave *PTR
5344 unchanged, and return zero.
5345
5346 * ralloc.c (warnfunction): Renamed to warn_function; users changed.
5347
53481992-09-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5349
5350 * insdel.c (del_range): Call record_delete before updating point.
5351
5352 * fileio.c (Finsert_file_contents): Do record_insert, then inc MODIFF.
5353
5354 * undo.c (record_delete): Record pos before the deletion.
5355 (Fprimitive_undo): Go back to recorded position.
5356
53571992-09-28 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
5358
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.
5366
5367 * window.c (delete_all_subwindows): Removed unused variable named
5368 "count".
5369
53701992-09-27 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
5371
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.
5379
da1d68b2
JB
5380 * termhooks.h (alt_modifier, hyper_modifier, super_modifier)
5381 (down_modifier, drag_modifier): New modifiers, to support the new
615d0182
DL
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
5385 modifier bits.
5386
5387 * keymap.c (access_keymap): Remove code to notice bindings for
5388 Qt.
5389
53901992-09-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5391
5392 * xmenu.c (single_keymap_panes): Handle vectors properly.
5393
53941992-09-25 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
5395
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,
5399 either.
5400
54011992-09-23 Joseph Arceneaux (jla@geech.gnu.ai.mit.edu)
5402
5403 * textprop.c (Fset_text_properties): Merge adjacent intervals with
5404 the same properties.
5405 (Fnext_single_property_change, Fprevious_single_property_change):
5406 New subrs.
5407
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
5413 explicitly.
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
5417 modification hook.
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.
5422
da1d68b2
JB
5423 * intervals.c, intervals.h (map_intervals, make_buffer_interval)
5424 (make_string_interval, run_hooks): Deleted.
615d0182
DL
5425
54261992-09-23 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
5427
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.
da1d68b2
JB
5431 (access_keymap, store_in_keymap, Fcopy_keymap)
5432 (Faccessible_keymaps): Correctly handle vectors at any point in the
615d0182
DL
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.
5442
5443 * keymap.c (access_keymap, store_in_keymap): Clarify error message
5444 for non-ASCII characters.
5445
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
5450 be diked out too.
5451
5452 * indent.c (Fmove_to_column): Pass the right number of arguments
5453 to Findent_to.
5454
54551992-09-22 Jim Blandy (jimb@kropotkin.gnu.ai.mit.edu)
5456
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.
5468
5469 * keymap.c (access_keymap): Return the binding of Qt as the
5470 binding for all unbound characters.
5471
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.
5474
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.
5478
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.
5485
54861992-09-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5487
5488 * alloc.c (mark_object): Avoid car recursion on cons with nil in cdr.
5489 Avoid recursion on constants-vector of a compiled function.
5490
5491 * oldXMenu: Symlink deleted; anything that uses it needs fixing
5492 in any case to work properly on systems without symlinks.
5493
54941992-09-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5495
5496 * s/sol2.h: New file.
5497
5498 * fileio.c: Don't include sys/dir.h.
5499
5500 * s/usg5-4.h (LIBS_SYSTEM): Move non-default libraries here.
5501 (LIB_STANDARD, START_FILES): Deleted.
5502 (ORDINARY_LINK): Defined.
5503
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.
5507 (CFLAGS): Use them.
5508
55091992-09-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5510
5511 * ymakefile (${etc}DOC): Use OBJECTS_SYSTEM and OBJECTS_MACHINE.
5512
5513 * dired.c [VMS]: Include string.h, rms.h, rmsdef.h.
5514 [VMS] (Ffile_version_limit): New function.
5515
dff28924 5516 * sysdep.c (sys_suspend): Read EMACS_PARENT_PID envvar for parent.
615d0182
DL
5517
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.
5526
5527 * alloc.c (mark_object): Save last 500 values of objptr.
5528 Check for clobberage of ptr, when marking a vector.
5529
55301992-09-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5531
5532 * keymap.c (get_keyelt): Skip menu help string after menu item name.
5533
55341992-09-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5535
5536 * buffer.c (Fget_buffer_create): Doc fix.
5537
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
5542 doesn't help.
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.
5550
5551 * eval.c (Fsignal): It's okay for the debugger to return to the
8350f087 5552 caller if the caller was signaling a quit.
615d0182
DL
5553
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.
dff28924 5557
615d0182
DL
5558 * lisp.h (struct specbinding, struct handler): More documentation.
5559 * eval.c (struct catchtag): More documentation.
5560
55611992-09-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5562
5563 * ymakefile (LIBX): Don't use -loldX.
5564
55651992-09-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5566
5567 * minibuf.c (get_minibuffer): Enable undo in minibuffers.
5568
55691992-09-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5570
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.
5574
5575 * config.h.in: Delete everything about config.h.
5576
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.
5580
55811992-09-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5582
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
5587 entering_debugger.
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
5596 for this.
5597
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.
5601
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.
5605
56061992-09-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5607
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.
b344d29d 5612 (Ffile_writable_p, Ffile_readable_p): Use abspath, not filename.
615d0182
DL
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.
5616
56171992-09-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5618
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.
5621
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.
5626
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
5629 included under AIX.
5630
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.
5634
56351992-09-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5636
5637 * process.c (Faccept_process_output): Initialize useconds.
5638
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.
5643
b344d29d 5644 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory)
dff28924 5645 (Ffile_name_as_directory, Fdirectory_file_name, Fexpand_file_name):
615d0182
DL
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.
5650
56511992-09-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5652
5653 * callint.c (Fcall_interactively): Remove the 'K' interactive
5654 code, in favor of 'e'; that's a better name.
5655
56561992-09-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5657
da1d68b2 5658 * s/esix5r4.h: New file.
615d0182 5659
da1d68b2
JB
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.
615d0182
DL
5664
5665 * keyboard.c (command_loop_1): Bind inhibit-quit to t when in Fsit_for.
5666
56671992-09-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5668
5669 * Makefile.in: Add comments starting with "# DIST: " explaining
5670 that this gets munged by the configure script.
5671
56721992-09-10 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5673
5674 * s-aix3-1.h (HAVE_GETHOSTNAME): Defined.
5675
56761992-09-09 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5677
da1d68b2 5678 * frame.c (choose_minibuf_frame): Abort if the selected frame has
615d0182
DL
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.
5682
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.
5688
56891992-09-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5690
dff28924 5691 * ralloc.c (r_re_alloc): Instead of allocating a new bloc at the
615d0182
DL
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
5696 less code.
5697
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...
5701
57021992-09-05 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5703
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.
5707
5708 * systime.h: Note that the tz_dsttime field of the struct timezone
0226922c 5709 returned by gettimeofday doesn't say whether daylight saving is
615d0182
DL
5710 _currently- active; rather it specifies whether it is *ever*
5711 active.
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.
5716
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.
5720
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.
5725
5726 * keymap.c (describe_buffer_bindings): If
5727 Vkeyboard_translate_table is in effect, describe its effects.
5728
5729 * frame.c (Fnext_frame): Doc fix.
5730
5731 * frame.c (prev_frame): #if 0'd out; nobody uses this.
5732
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.
5736
57371992-09-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5738
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.
5746
57471992-09-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5748
5749 * xmenu.c (xmenu_show): If no panes, just return.
5750
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'.
5757
57581992-09-03 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5759
da1d68b2
JB
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.
615d0182
DL
5763
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
5769 does this too.
5770
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.
5775
da1d68b2 57761992-09-02 Barry A. Warsaw (warsaw@anthem.nlm.nih.gov)
615d0182 5777
88c71720 5778 Extended syntax.c in the following ways to support up to 2
615d0182
DL
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.
5788
57891992-09-02 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5790
5791 * fileio.c (syms_of_fileio): Doc fix for Vfile_name_handler_alist.
5792
57931992-09-02 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5794
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
5799 Vlast_event_frame.
5800
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
5805 to break these.
5806
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
5814 minibuffer.
5815
5816 * doc.c (Fsnarf_documentation): Signal an error if this is
5817 called in a dumped Emacs.
5818
da1d68b2 5819 * alloc.c (mark_object): Mark a symbol's name after marking its
615d0182
DL
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.
5823
58241992-09-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5825
5826 * emacs.c (__main, __do_global_dtors): New dummy functions.
5827 (__do_global_ctors_aux, __do_global_ctors): Fix typo in fn names.
5828
58291992-09-01 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5830
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.
5836
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.
5840
5841 * unexmips.c (mark_x): Declare this as static void at the top of
5842 the file and at the function definition.
5843
5844 * keyboard.c (input_available_signal): Declare this to return
5845 SIGTYPE.
5846
5847 * xrdb.c (getuid): Declare this to return short.
5848
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.
5853
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.
5860
5861 * Makefile.in (distclean): Remove backups from the `m' and `s'
5862 directories, too.
5863
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>.
5877
5878 * m/mips.h: Don't undefine LOAD_AVE_TYPE; the comment says that
5879 Emacs 19 has the crocks to handle it properly.
5880
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.
dff28924 5888
615d0182
DL
5889 * s/osf1.h: New file.
5890
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.
5894
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
5900 done so.
da1d68b2 5901 [BSD4_3] Define m68000, instead of hp9000s300; crt0.c uses these
615d0182
DL
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
5911 specifications.
5912
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.
5916
59171992-08-31 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5918
5919 * keymap.c (Fmake_sparse_keymap): New optional arg. Callers changed.
5920 (Fmake_keymap): Likewise.
5921
5922 * emacs.c (__do_global_ctors, __do_global_ctors_aux): New dummy fns.
5923 (__CTOR_LIST__, __DTOR_LIST__): New dummy variables.
5924
5925 * fileio.c (Fdo_auto_save): Always call record_auto_save.
5926
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.
5935
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.
5940
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.
5946
59471992-08-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5948
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.
5954
5955 * keymap.c (keymap_table): No longer static.
5956
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.
5960
59611992-08-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5962
5963 * cmds.c (internal_self_insert): Assume Fexpand_abbrev expanded
5964 something if it incremented MODIFF.
5965
59661992-08-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5967
5968 * unexmips.c (unexec): Allow sections in any order.
5969 Adjust addresses of rdata section as well as data section.
5970
5971 * buffer.c (syms_of_buffer): Made buffer-display-table,
5972 buffer-field-list and buffer-undo-list allow any type of value.
5973
59741992-08-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
5975
5976 * fns.c (Fappend): Doc fix.
5977
59781992-08-24 Jim Blandy (jimb@pogo.cs.oberlin.edu)
5979
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.
5985
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.
5989
da1d68b2 5990 * xterm.c (x_make_frame_invisible): Don't forget to check the
615d0182
DL
5991 return value of XWithdrawWindow; it could indicate that the window
5992 wasn't successfully redrawn.
5993
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
5997 functions get used.
5998
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.
6002
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.
6006
da1d68b2 6007 * systerm.h: Renamed to systty.h, to be more consistent with
615d0182
DL
6008 everything else in Unix.
6009 * dispnew.c, emacs.c, keyboard.c, process.c, sysdep.c: #include
6010 directive changed.
6011 * ymakefile: References to systerm.h changed.
6012
6013 * s/usg5-3.h: Merged changes from 18.58:
6014 (HAVE_SYSV_SIGPAUSE): Defined.
6015 (BROKEN_TIOCGETC): Defined.
6016
60171992-08-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6018
6019 * process.c (WCOREDUMP): Define only if not defined.
6020 (create_process) [HAVE_SETSID]: Use TIOCSCTTY if exists.
dff28924 6021
615d0182
DL
60221992-08-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6023
da1d68b2 6024 * fileio.c (Fdo_auto_save): Call Fsleep_for with the appropriate
615d0182
DL
6025 number of arguments.
6026 * fns.c (Fyes_or_no_p): Same.
6027
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
6035 on the top line.
6036
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.
6040
60411992-08-19 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6042
da1d68b2 6043 * xterm.c (x_make_frame_invisible): Use XWithdrawWindow when
615d0182
DL
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].
6047
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.
6052
6053 * xterm.h (FRAME_X_WINDOW): New macro, for readability.
6054 * xterm.c, xfns.c, xselect.c: Use it.
6055
6056 * emacs.c (Fkill_emacs): Doc fix.
6057 (syms_of_emacs): Doc fix for Vkill_emacs_hook.
6058
6059 * xterm.c (x_death_handler): Renamed to x_connection_closed.
6060 (x_term_init): Use x_connection_closed as the SIGPIPE handler.
6061
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
6066 error handler.
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
6076 odd cursor.
6077
6078 * xterm.c (x_proto_requests): Removed; it's not important.
dff28924 6079
615d0182
DL
6080 * xterm.c (events): Array removed; it's not used.
6081
6082 * xfns.c (select_visual): Use XVisualIDFromVisual when available
6083 [HAVE_X11R4].
dff28924 6084
615d0182
DL
6085 * xrdb.c (get_user_db): Use XResourceManagerString when available
6086 [HAVE_X11R4].
6087
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
cd1181db 6092 resize one of the undeletable windows into nothingness. So call
615d0182
DL
6093 Fdelete_window even if the window doesn't have a parent.
6094
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.
6100
61011992-08-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6102
da1d68b2 6103 * frame.h (struct frame): New member - explicit_name.
615d0182
DL
6104 * frame.c (make_frame): Clear it.
6105 * xfns.c (x_set_name): Take new argument EXPLICIT, instead of
6106 OLDVAL.
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.
6111
6112 * xterm.c (x_wm_hints): Variable deleted. This has to be
6113 per-screen. Duh.
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
6119 here.
6120
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.
6124
61251992-08-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6126
6127 * frame.c (make_minibuffer_frame): Don't set this to auto-raise by
6128 default. It's annoying.
6129
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
6138 nil.
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
6143 in code.
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.
6151
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.
6155
6156 * window.c [MULTI_FRAME] (syms_of_window): Don't staticpro
6157 minibuf_window; the frame list will take care of it.
6158
6159 * xterm.h (HAVE_X11R4): Since we can autodetect this, and can
6160 write code more likely to be future-compatible, define this when
6161 appropriate.
6162 * xterm.c (x_set_text_property): Define this appropriately for
6163 X11R3 and X11R4.
6164
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.
6168
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
6171 symbol, intern it.
6172 (Fx_create_frame): Use the symbol type here.
6173
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.
6177
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.
6181
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.
6185
61861992-08-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6187
6188 * xterm.c: Doc fixes.
6189
da1d68b2 6190 More SYSV portability changes from Eric Raymond:
615d0182
DL
6191
6192 * xterm.c [USG5]: Don't include <sys/types.h>.
6193
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
6199 not present in R3.
dff28924 6200
615d0182
DL
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
6205 compatible with R3.
6206
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.
6210
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.
6214
62151992-08-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6216
6217 * abbrev.c (Fexpand_abbrev): If pre-expand hook changes the buffer,
6218 assume that means we "did an expansion".
6219
6220 * cmds.c (internal_self_insert): Ignore value of Fexpand_abbrev;
6221 instead, check whether buf is modified when it returns.
6222
62231992-08-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6224
da1d68b2 6225 Applied SYSV portability changes from Eric Raymond:
615d0182
DL
6226
6227 * xrdb.c [USG5]: Define SYSV, and then include <unistd.h>.
6228 Apparently, Xlib.h include string.h if SYSV is defined, and
6229 strings.h if not.
6230 Don't include <sys/types.h>; just declare getuid to return an
da1d68b2 6231 int. Big deal.
615d0182 6232 (MAXPATHLEN): If this is not defined by the system's include
da1d68b2 6233 files, give it a value of 256.
615d0182 6234 (get_user_db): Fetch the defaults directly from the display
da1d68b2
JB
6235 structure, rather than using XResourceManagerString; that
6236 function doesn't exist in the older versions of X.
615d0182
DL
6237
6238 * xterm.c (x_set_text_property): New function.
6239 * xfns.c (x_set_name): Use it instead of XSetWMName and
da1d68b2 6240 XSetWMIconName.
615d0182
DL
6241
6242 * xfns.c (select_visual): Fetch the visual id directly from v;
da1d68b2
JB
6243 don't call XVisualIDFromVisual, since that function is not
6244 available in earlier versions of X.
615d0182
DL
6245
6246 * term.c (term_get_fkeys): Some systems define `static' to be the
da1d68b2
JB
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.
615d0182
DL
6250 * xdisp.c (decode_mode_spec): Same deal, with lots_of_dashes.
6251 * xfns.c (x_make_gc): Same deal, regarding cursor_bits.
6252
6253 * term.c (keys): Include definitions for "K2" (the center key on
da1d68b2
JB
6254 an IBM keypad), "F1" (F11), and "F2" (F12). Handle "k0" and "k;"
6255 specially; see the code for details.
615d0182
DL
6256
6257 * term.c (clear_end_of_line): Remember that on some systems,
da1d68b2
JB
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
6262 not static.
615d0182
DL
6263
6264 * systime.h [not HAVE_TIMEVAL] (EMACS_USECS, EMACS_SET_USECS):
da1d68b2 6265 Don't forget to define dummy versions of these.
615d0182
DL
6266
6267 * systime.h [USE_UTIME]: time_t is a typedef, not a struct.
da1d68b2 6268 Don't prefix it with `struct'.
615d0182
DL
6269
6270 * systerm.h (EMACS_SET_TTY_PGRP): When there doesn't seem to be
da1d68b2 6271 any way to do this, don't forget to give it a dummy definition.
615d0182
DL
6272
6273 * sysdep.c (select): There's no need to cast the return value of
da1d68b2 6274 signal anymore, since we have the SIGTYPE macro defined.
615d0182
DL
6275
6276 * sysdep.c (read_input_waiting): When scanning for quit
da1d68b2
JB
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.
615d0182
DL
6279
6280 * sysdep.c [USG5]: Don't include fcntl.h.
6281
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.)
6291
6292 * s/usg5-4.h (USE_UTIME): Remove this definition; the C library
da1d68b2 6293 still doesn't have utimes.
615d0182
DL
6294
6295 * ralloc.c (get_bloc): When initializing new_bloc->variable, cast
6296 NIL to (POINTER *).
6297 (malloc_init): Give warning if sbrk returns zero. Wonder what
6298 that's supposed to mean.
6299
6300 * process.c (process_send_signal): Don't send SIGTSTP if the
6301 system doesn't have that facility.
6302
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.
6308
6309 * minibuf.c (Fread_from_minibuffer): Put this function's doc
6310 string into a comment; it's too long for the PCC preprocessor.
6311 Rah.
6312 (Fcompleting_read): Same deal.
6313
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.
6318
6319 * floatfns.c (Fexpm1, Flog1p): Function removed; it's not widely
6320 available, and hardly vital.
6321 (syms_of_floatfns): Adjusted appropriately.
6322
6323 * floatfns.c (Flog): Accept optional second arg, being the base
6324 for the logarithm.
6325 [USG] (Flogb): Define this in terms of Flog.
6326
6327 * data.c [USG] (Frem): Call fmod, rather than drem. Rah.
6328
6329 * emacs.c [USG5]: Don't #include <fcntl.h> for these systems.
6330
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.
6335
da1d68b2 6336 End of changes from Eric Raymond.
615d0182
DL
6337
6338 * xfns.c (Fx_create_frame): Make the default for the icon-type
da1d68b2
JB
6339 parameter nil, not t. It seems to cause problems with some X
6340 servers.
615d0182
DL
6341
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
6345 TYPE argument.
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.
6355
63561992-08-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6357
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.
6363
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.
6366
6367 * window.c (Fwindow_at): Don't check the type of the frame
6368 argument.
6369
6370 * window.c [not MULTI_FRAME] (window_loop): Set frame to zero,
6371 instead of trying to decode it.
6372
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.
6377
6378 * frame.h [not MULTI_FRAME] (FRAME_ROOT_WINDOW): Define this in
6379 terms of minibuf_window, rather than by reference to
6380 the_only_frame.
6381 * window.c (init_window_once): Initialize minibuf_window before
6382 FRAME_ROOT_WINDOW, so the latter actually points to something.
6383
da1d68b2 6384 * keyboard.c (Fexecute_mouse_event): Dyked-out function deleted.
615d0182 6385 We're not going to use this mouse interface.
da1d68b2
JB
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
615d0182
DL
6389 Fexecute_mouse_event.
6390 (syms_of_keyboard): Same.
6391 (command_loop_1): Remove dyked-out code to support
6392 Fexecute_mouse_event.
6393 (read_char): Same.
6394
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.
6401
6402 * keyboard.c (Fdiscard_input): Removed dyked-out code from when
6403 unread_command_char's quiescent value was -1, not nil.
6404
6405 * frame.c (make_frame): Stop passing zero to make_window; it's not
6406 expecting any arguments.
6407
64081992-08-12 Jim Blandy (jimb@albert.gnu.ai.mit.edu)
6409
dff28924 6410 * unexsunos4.c: Deleted "$Log" header in comments at top of file;
615d0182
DL
6411 this was beginning to grow RCS hair, which we don't want.
6412 * xmenu.c: Same deal.
6413
64141992-08-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6415
da1d68b2 6416 * fileio.c (Fread_filename): Don't add one here.
615d0182
DL
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.
6420
6421 * doc.c (Vdata_directory): Removed; this is declared in callproc.c.
6422 (syms_of_doc): Initialization removed.
6423
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.
6430
6431 * xfns.c (Fx_create_frame): Pass the correct number of arguments
6432 to x_set_font.
6433
6434 * xfns.c [not HAVE_X11] (Fx_create_frame): Delete section that's
6435 only included if we *do* have X11. Blind patching.
6436
da1d68b2 6437 * xfns.c (x_icon): Rewritten to call x_wm_set_icon_position and
615d0182
DL
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.
6443
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.
6448
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.
6451
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.
6456
6457 * xfns.c (x_set_icon_type): UNBLOCK_INPUT before reporting the
6458 error, not after. error doesn't return, sklitch-brain.
6459
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.
6463
6464 * xfns.c (x_set_frame_parameters): Properly recognize changes to
6465 the height of the frame. Recognize changes of the frame's
6466 position.
6467
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
6472 initialized.
6473
64741992-08-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6475
da1d68b2
JB
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
615d0182
DL
6482 symbols, with lisp code to rebuild syms_of_xfns.
6483 (syms_of_xfns): Initialize and staticpro them.
da1d68b2
JB
6484 (Qheight, Qminibuffer, Qname, Qnone, Qonly, Qwidth)
6485 (Qunsplittable): Add extern declaration for these.
615d0182
DL
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.
6492
da1d68b2
JB
6493 * frame.c (Qheight, Qicon, Qmodeline, Qname, Qnone, Qonly)
6494 (Qunsplittable, Qwidth, Qx): New symbol, with lisp code to rebuild
615d0182
DL
6495 syms_of_frame.
6496 (syms_of_xfns): Initialize and staticpro them.
da1d68b2
JB
6497 (Fframep, Fframe_visible_p, Fframe_parameters): Use the new Q...
6498 variables, instead of interning things.
615d0182
DL
6499 (store_in_alist): Change the argument char *PROPNAME into a
6500 Lisp_Object PROP; let the caller take care of interning the atom.
6501
6502 * frame.c (Fframe_visible_p): Doc fix.
6503
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
6507 window.
6508
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.
da1d68b2
JB
6515 Notice `width', `height', `top', and `left' parameters.
6516 Hold off changing the frame size and position until the end, so we
615d0182
DL
6517 can do both parameters at once when they are both specified.
6518 (x_default_parameter): Call x_set_frame_parameters, not
6519 x_set_frame_param.
6520
da1d68b2
JB
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
615d0182
DL
6525 `#ifdef HAVE_X_WINDOWS ... #endif' clauses.
6526
6527 * frame.c (Fset_frame_position): Doc fix.
6528
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.
6532
6533 * xfns.c (x_figure_window_size): Indicate that this function
6534 returns an int, rather than just leaving it unstated.
6535
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.
6540
6541 * window.h (MIN_SAFE_WINDOW_HEIGHT, MIN_SAFE_WINDOW_WIDTH): Macros
6542 removed.
6543 (check_frame_size): New extern declaration.
6544 * window.c (MIN_SAFE_WINDOW_HEIGHT, MIN_SAFE_WINDOW_WIDTH): Macros
6545 defined here now.
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.
6550
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
6553 overflow.
6554
6555 * bytecode.c (syms_of_bytecode): Add a docstring for
6556 byte-metering-on.
6557
65581992-08-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6559
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.
dff28924 6577
615d0182
DL
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.
6580
da1d68b2
JB
6581 * frame.c [not MULTI_SCREEN] (Fset_frame_height, Fset_frame_width)
6582 (Fset_frame_size, Fframe_height, Fframe_width): New functions, for
615d0182
DL
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.
6594
6595 * frame.c (Fset_frame_width): Change the size of FRAME, not of
6596 selected_frame.
6597
6598 * frame.c (Fset_frame_width, Fset_frame_height): Declare the
6599 `frame' argument to be a Lisp_Object. It used to be undeclared.
6600
66011992-08-07 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6602
6603 * dispnew.c, frame.c, frame.h, keyboard.c, scroll.c, term.c,
da1d68b2
JB
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,
615d0182
DL
6606 and FRAME_HAS_MINIBUF_P, for consistency with the rest of the
6607 frame macros.
6608
6609 * window.h (MIN_SAFE_WINDOW_WIDTH, MIN_SAFE_WINDOW_HEIGHT): New
6610 macros.
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
6614 out its code.
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
6618 crashing.
6619
6620 * editfns.c (Fcurrent_time_zone): Doc fix.
6621
66221992-08-06 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6623
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.
6626
177c0ea7 66271992-08-06 Joseph Arceneaux (jla@gnu.ai.mit.edu)
615d0182 6628
da1d68b2 6629 * doc.c (Vdata_directory): Declared.
615d0182
DL
6630 (syms_of_doc): Initialized.
6631
6632 * fileio.c (Fread_filename): Add 1 to the offset position for the
6633 cursor when reading file names.
6634
66351992-08-05 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6636
6637 * systime.h (EMACS_CURRENT_TIME_ZONE): New macro.
6638 * editfns.c (Fcurrent_time_zone): New function.
6639 (syms_of_editfns): defsubr it.
6640
062f2cfc 6641 * keyboard.c (read_key_sequence): Clear the eighth bit of the
615d0182
DL
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?
6644
177c0ea7 66451992-08-04 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
615d0182
DL
6646
6647 * eval.c (syms_of_eval): Doc fix for debug-on-quit.
6648
66491992-08-03 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6650
6651 * callproc.c (Fcall_process): Doc fix. Used to claim that
6652 Fcall_process doesn't wait when BUFFER was nil. It does.
6653
66541992-07-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6655
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.
6659
6660 * keyboard.c (read_key_sequence): Don't increment fkey_end when
6661 testing to see if keybuf[fkey_end] is a meta-character.
6662
66631992-07-27 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6664
6665 * Makefile.in (TAGS): Generate tags for files in ../external-lisp
6666 too.
6667
66681992-07-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6669
6670 * eval.c (find_handler_clause): For quit, don't check Vdebug_on_error.
6671 (wants_debugger): Rewrite so it cannot get an error.
6672
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.
6676
66771992-07-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6678
6679 * frame.c (Fmake_frame_visible, Fmake_frame_invisible,
6680 Ficonify_frame): Make the first argument optional, defaulting to
6681 selected_frame.
6682 (Ficonify_frame, Fmake_frame_invisible): Add interactive specs, so
6683 we can bind these directly to C-z.
6684
66851992-07-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6686
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.
dff28924 6690 Do staticpro for the recently created Q* vars.
615d0182
DL
6691
6692 * minibuf.c (read_minibuf): Two additional args histvar and histpos.
6693 All calls changed.
6694 (Fcompleting_read): Last arg is now HIST--(HISTVAR . HISTPOS).
6695 Arg INIT can now be (INITIAL-STRING . INITIAL-POSITION).
dff28924 6696 Pass BACKUP_N arg to read_minibuf properly as Lisp object.
615d0182
DL
6697 (Fread_from_minibuffer): Likewise.
6698 (syms_of_minibuf): Set Qminibuffer_history and staticpro it.
6699
6700 * eval.c (Ffuncall, Feval): Support subrs with 7 args.
6701
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
dff28924 6704 rather than read_minibuf.
615d0182
DL
6705
67061992-07-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
dff28924 6707
615d0182 6708 * minibuf.c (Vminibuffer_history_variable): New variable.
dff28924 6709 (syms_of_minibuf): Define variable minibuffer-history-variable.
615d0182 6710 (read_minibuf): Push the string on specified history list.
dff28924 6711
615d0182
DL
67121992-07-23 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6713
6714 * Makefile.in (doall, doxemacs, dotemacs): Put quotes around CC=${CC}.
6715 Don't include $(MAKEOVERRIDES); that is always implicit.
6716
67171992-07-22 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6718
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.
6722
6723 * lread.c (Fread_char_exclusive): Code this with a do-while loop,
6724 not a while loop with its body repeated.
6725
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
6728 Emacs was built.
6729 (syms_of_lread): Don't make its defsubr conditional either.
6730
6731 * lread.c (Fread_char): Doc fix.
6732
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.
6742
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.
6747
67481992-07-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6749
6750 * search.c (fast_string_match): New function.
6751 * fileio.c (find_file_handler): New function.
b344d29d
JB
6752 (Fcopy_file, Fmake_directory, Fdelete_directory, Fdelete_file)
6753 (Frename_file, Fadd_name_to_file, Fmake_symbolic_link)
615d0182 6754 (Ffile_exists_p, Ffile_executable_p, Ffile_readable_p, Ffile_symlink_p)
b344d29d
JB
6755 (Ffile_writable_p, Ffile_directory_p, Ffile_accessible_directory_p)
6756 (Ffile_modes, Fset_file_modes, Ffile_newer_than_file_p)
615d0182
DL
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.
dff28924 6761 (syms_of_fileio): Set up Qcopy_file, etc.
b344d29d 6762 * dired.c (Fdirectory_files, Ffile_name_completion)
615d0182
DL
6763 (Ffile_name_all_completions, Ffile_attributes):
6764 Use find_file_handler; call the handler.
6765 (syms_of_dired): Set Qfile_attributes, etc.
6766
67671992-07-21 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6768
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.
6772
6773 * xfns.c (x_set_name): If ARG is nil, set the frame's name to the
6774 current x_id_name.
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
10d1d0af 6777 nil as the name; this will display something generically
615d0182
DL
6778 appropriate.
6779
67801992-07-20 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
dff28924 6781
615d0182
DL
6782 * lread.c (isfloat_string): Recognize floats without a leading
6783 integer part, noting that "e5" is a symbol, not a floating point
6784 number.
dff28924 6785
615d0182
DL
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.
6790
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
6795 named.
6796
67971992-07-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
dff28924
SS
6798
6799 * process.c (allocate_pty): Handle PTY_OPEN.
615d0182 6800 Delete system-specific alternatives to PTY_NAME_SPRINTF
dff28924
SS
6801 and PTY_TTY_NAME_SPRINTF.
6802
615d0182 68031992-07-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
dff28924 6804
615d0182 6805 * callint.c (Fprefix_numeric_value): Fix typo: test raw, not val.
dff28924 6806
615d0182
DL
68071992-07-17 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6808
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.
6813
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
6818 the new TZ value.
6819
68201992-07-16 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6821
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.
6826
6827 * fileio.c (auto_save_error): Pass the correct number of arguments
6828 to Fsleep_for.
6829
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.
6832
da1d68b2
JB
6833 * process.c (Fdelete_process, Fprocess_status, Fprocess_send_region)
6834 (Fprocess_send_string, Fprocess_send_eof, Finterrupt_process): Doc
615d0182 6835 fixes.
dff28924 6836
615d0182
DL
6837 * process.c (Fprocess_status): Use get_process to find the process
6838 denoted by the PROC argument, not Fget_process.
6839
68401992-07-15 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6841
6842 * xdisp.c: Doc fix.
6843
68441992-07-14 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6845
6846 * window.c (syms_of_window): Doc fix for pop-up-frames.
6847
6848 * frame.c (Fframe_parameters): Note that if FRAME is omitted, it
6849 defaults to the selected frame.
6850
6851 * frame.c (Fframe_height, Fframe_width): Blocked out these
6852 functions; they have no C callers, and can be written nicely in
6853 lisp.
dff28924 6854
615d0182
DL
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.
6858
6859 * xterm.h, xterm.c, xselect.c, xmenu.c, xfns.c, xdisp.c, window.h,
da1d68b2
JB
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
615d0182
DL
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
6868 #includers changed.
6869 * ymakefile: Adjusted appropriately.
6870 * buffer.c: Doc fixes.
6871
6872 * xfns.c (Fx_store_cut_buffer): Reversed sense of test for non-X
6873 screen.
6874
6875 * window.c (Frecenter): Doc fix; this function places point in the
6876 middle of the current window, not the current screen.
6877
6878 * window.c (temp_output_buffer_show): Use WINDOW_SCREEN macro
6879 instead of accessing the member directly.
6880
68811992-07-13 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6882
6883 * print.c (print): Changed code which prints screen objects to use
6884 the SCREEN_LIVE_P macro instead of testing the screen structure
6885 directly.
6886
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.
6892
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.
6895
68961992-07-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6897
6898 * fns.c, callproc.c: Doc fix.
6899
69001992-07-10 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6901
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.
6906
69071992-07-09 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6908
6909 * screen.c (store_screen_param): Clarify error message.
6910
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.
6914
69151992-07-08 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6916
6917 * eval.c (Fmacroexpand): Code cleaned up; there's no need to
6918 handle forms like ((macro lambda ...) ...) specially.
6919
6920 * fileio.c (Finsert_file_contents): Signal an error if we're asked
6921 to read from a named pipe.
6922
69231992-07-07 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
6924
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.
6930
69311992-07-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6932
6933 * buffer.c: Doc fix.
6934
69351992-07-02 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
6936
6937 * minibuf.c (Fdisplay_completion_list): Declared new variables
6938 used in rms' previous change.
6939
69401992-07-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6941
6942 * minibuf.c (Fdisplay_completion_list): Handle non-buffer stream.
6943
69441992-07-01 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6945
6946 * window.c (Fdisplay_buffer): Add interactive spec.
6947
69481992-06-30 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
6949
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".
6954
69551992-06-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6956
6957 * xterm.c (x_make_screen_visible): Don't de-iconify the window;
6958 iconification is orthogonal to visibility.
6959
6960 * emacs.c (syms_of_emacs): Change docstring for `kill-emacs-hook'
6961 to describe it as a hook, not as a single function.
6962
69631992-06-29 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6964
6965 * minibuf.c (Fread_no_blanks_input): Corrected maximum number of
6966 arguments from one to two.
6967
6968 * emacs.c (Vkill_emacs_hook): Declare this here; it should have a
6969 docstring, so we might as well DEFVAR it.
da1d68b2 6970 (syms_of_emacs): Initialize it, and DEFVAR_LISP it with an
615d0182
DL
6971 appropriate docstring.
6972
69731992-06-28 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6974
6975 * lread.c (Feval_buffer): Make the DEFUN match the C argument
6976 list; this takes two optional arguments, not just one.
6977
6978 * lisp.h (Lisp_Buffer_Local_Value): Comments neatened.
6979
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
dff28924 6983 declares the cache invalid if the buffer is wrong (obviously), of
615d0182
DL
6984
69851992-06-27 Jim Blandy (jimb@pogo.cs.oberlin.edu)
6986
6987 * data.c (Fset): Comments reformatted for readability.
6988
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
6992 timestamp.
6993
6994 * keyboard.c (Qvertical_split): Renamed to `vertical-line',
6995 since the window arrangement is actually referred to as a
c4cc8b9a 6996 `horizontal split'.
615d0182
DL
6997 (make_lispy_event, make_lispy_movement, syms_of_keyboard): Uses
6998 renamed here.
da1d68b2
JB
6999 * keyboard.h (Qvertical_split): Extern declaration changed here.
7000 * window.c (Fcoordinates_in_window_p): Changed this to return
615d0182
DL
7001 `vertical-line' at the appropriate times, rather than
7002 `vertical-split'.
7003
7004 * window.c (Fcoordinates_in_window_p): Put symbol names in
7005 opposing single quotes - `vertical-split', for example.
7006
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.
7010
7011 * fileio.c (Fmake_symbolic_link): Rename argument `NEWNAME' to
7012 `LINKNAME', to conform with the docstring.
7013
7014 * Makefile.in (CPP): Pass `-Is -Im' to CPP, to make sure that
10d1d0af 7015 machine- and system-dependent files can include each other
615d0182
DL
7016 properly.
7017 * ymakefile (CFLAGS): Add those directories to the #include path
7018 here too.
7019
7020 * Makefile.in (xmakefile): Build this via a temporary file, so
7021 that if preprocessing fails we don't nuke the xmakefile.
7022
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
0105dc3e 7026 and supersede the real docstring.
615d0182
DL
7027
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.
7033
70341992-06-26 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7035
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
7038 positive.
7039
7040 * screen.c: Put '#ifdef MULTI_SCREEN' after the inclusion of
7041 config.h.
7042
7043 * window.c (Fpos_visible_in_window_p): Remember to apply XSCREEN
7044 to w->screen before applying SCREEN_WIDTH.
7045
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.
7052
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
7061 cases.
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.
da1d68b2
JB
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
615d0182 7072 refer to the_only_screen.
da1d68b2
JB
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
615d0182
DL
7077 deleted; they're all now kept in the_only_screen.
7078 * xdisp.c [not MULTI_SCREEN] (message_buf): Variable deleted; same
7079 fate.
7080 * term.c [not MULTI_SCREEN] (one_screen_width, one_screen_height):
7081 Variables deleted; same fate.
da1d68b2 7082 * screen.h [not MULTI_SCREEN]: Extern declarations for the above
615d0182
DL
7083 variables removed.
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.
da1d68b2 7087 * window.h [not MULTI_SCREEN] (root_window): Extern declaration
615d0182
DL
7088 removed.
7089 * scroll.c [not MULTI_SCREEN] (insert_line_cost, delete_line_cost,
7090 insert_n_lines_cost, delete_n_lines_cost): Variables deleted; same
7091 fate.
7092
7093 * dispnew.c [not MULTI_SCREEN] (cursX, cursY): Renamed to
7094 `one_screen_cursX' and `one_screen_cursY'.
da1d68b2
JB
7095 * screen.h [not MULTI_SCREEN] (cursX, cursY, SCREEN_CURSOR_X)
7096 (SCREEN_CURSOR_Y): Extern declarations and macros changed
615d0182
DL
7097 accordingly.
7098
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'
7102 macros.
7103 * screen.h [not MULTI_SCREEN] (screen_width, screen_height):
da1d68b2
JB
7104 Extern declarations changed accordingly.
7105 * termchar.h (screen_width, screen_height): Extern declarations
615d0182
DL
7106 deleted. Everyone should go through the `SCREEN_foo' macros.
7107 (SCREEN_WIDTH, SCREEN_HEIGHT): Changed accordingly.
7108
71091992-06-25 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7110
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'.
7114
7115 * xselect.c (Fx_own_selection): Cast XSTRING (string)->data to a
7116 char *, so it can be comfortably passed to XStoreBytes.
7117
7118 * filelock.c (strcpy): Declare this to return char *.
7119
71201992-06-24 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7121
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.
7127
7128 * keyboard.c (read_key_sequence): Put the code which restarts the
7129 key sequence in a `#ifdef MULTI_SCREEN' conditional.
7130
7131 * screen.h [not MULTI_SCREEN]: Added definitions for
7132 CHECK_LIVE_SCREEN and SCREEN_FOCUS_SCREEN for the non-multi-screen
7133 case.
7134
7135 * screen.h [not MULTI_SCREEN]: The name is
7136 `SCREEN_MINIBUF_ONLY_P', not `SCREEN_IS_MINIBUF_ONLY'.
7137
88c71720 7138 * xdisp.c [not MULTI_SCREEN] (Fredraw_display): Removed definition
615d0182
DL
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
7142 exist.
7143
7144 * lread.c (Fread_char_exclusive): Remove this from the `#ifdef
7145 HAVE_X_WINDOWS' conditional; it is appropriate in any context.
7146
7147 * eval.c (Fsignal): Put call to TOTALLY_UNBLOCK_INPUT under the
7148 protection of a `#ifdef HAVE_X_WINDOWS' conditional.
7149
da1d68b2 7150 * keyboard.c (kbd_buffer_get_event): Expect *mouse_position_hook
615d0182
DL
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
7155 an unsigned long.
7156 * termhooks.h (mouse_position_hook): Doc fix.
7157 * term.c (mouse_position_hook): Doc fix.
7158
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.
7163
7164 * print.c (printbufidx): Doc fix.
7165 * xdisp.c (message_buf_print): Doc fix.
7166
7167 * dispextern.h (message_buf_size): Variable deleted; it's no
7168 longer used, since the message buffer is always the width of the
7169 screen.
7170
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.
7178
7179 * dispnew.c (temp_glyphs): Added back this variable declaration;
7180 screen.h and various other places referred to this; where did it
7181 go?
7182 * screen.h [not MULTI_SCREEN] (temp_glyphs, desired_glyphs,
7183 current_glyphs): Add extern declarations for these.
7184
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.
7197
7198 * dispnew.c (update_screen): Enclose the statement which
7199 increments `downto' in a `#ifdef HAVE_X_WINDOWS' conditional.
7200
7201 * screen.h [MULTI_SCREEN and not MULTI_SCREEN] (FOR_EACH_SCREEN):
7202 New macro.
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.
7206
7207 * screen.c: Enclose the entire file in a #ifdef MULTI_SCREEN
7208 conditional.
7209
615d0182
DL
72101992-06-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7211
7212 * window.c (Fset_window_dedicated_p):
7213 Replaces Fset_window_buffer_dedicated. Second arg just t or nil.
7214
72151992-06-22 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7216
da1d68b2 7217 * syntax.h (SYNTAX, SYNTAX_MATCH, SYNTAX_COMSTART_FIRST, etc.):
615d0182
DL
7218 Cast character to unsigned char before indexing.
7219
72201992-06-19 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7221
7222 * xterm.c (x_wm_set_size_hint): Set size_hints.flags to indicate
7223 that we are providing the base_width and base_height data.
7224
7225 * xfns.c (Fx_create_screen): Default the internal border width to
7226 2; this matches XTerm.
7227
7228 * syntax.c (Fparse_partial_sexp): Doc fix.
7229
7230 * syntax.c (Fparse_partial_sexp): Added phony argument list to
7231 comment containing the docstring for this function, so that
7232 make-docfile.c will get the right arguments.
7233
7234 * xfns.c (x_set_name): Don't go through the X11 brouhaha to set
7235 the name unless we're actually setting it to something different
7236 from the current name.
7237
72381992-06-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7239
7240 * eval.c (syms_of_eval): Don't forget to escape the ends of the
7241 lines in the docstring for `debug-on-quit'.
7242
7243 * keyboard.c (Fread_key_sequence): Reversed sense of CONTINUE_ECHO
7244 argument - set this_command_key_count to zero iff CONTINUE_ECHO is
7245 Qnil, not iff it's non-Qnil.
7246
72471992-06-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
dff28924 7248
615d0182
DL
7249 * search.c: Changed to remember the object in which the last
7250 search was done, so that markers from match data are placed in
7251 that buffer, instead of the current buffer.
7252 (search_regs_from_string): Replaced with...
7253 (last_thing_searched): This is either Qnil, meaning no searching
7254 has been done, Qt, meaning that the last search was done in a
7255 string, or a buffer object, meaning that the last search was done
7256 in that buffer.
7257 (syms_of_search): Initialize and staticpro last_thing_searched.
7258 (Flooking_at, search_buffer): Set last_thing_searched to the
7259 current buffer.
7260 (Fstring_match): Set last_thing_searched to Qt.
7261 (Fmatch_data): Test last_thing_searched to see if any searching
7262 has been done, and construct integers or markers in the right
7263 buffer. Abort if it's not Qt, Qnil, or a buffer.
7264 (Fstore_match_data): Set last_thing_searched according to the
7265 things we find in LIST.
dff28924 7266
615d0182
DL
72671992-06-16 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7268
7269 * fns.c (Fload_average): Document the fact that this sometimes
7270 returns a list of fewer than three elements, on systems which
7271 don't provide 5- and 15-minute load averages.
7272
72731992-06-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
dff28924 7274
615d0182
DL
7275 * xterm.c (XTread_socket): If an event arrives to a screen S,
7276 don't attribute them to SCREEN_FOCUS_SCREEN (S) here. Do that
7277 synchronously, when the events are dequeued. This keeps events
7278 from being accidentally routed to the wrong screen, if we
7279 temporarily redirect a screen's focus.
7280 * keyboard.c (kbd_buffer_store_event): If the character being
7281 stuffed is a quit character, do the SCREEN_FOCUS_SCREEN
7282 redirection to it here.
7283 (kbd_buffer_get_event): And do it here, before returning the
7284 event.
dff28924 7285
615d0182
DL
7286 * eval.c (Finteractive_p): This assumed that if the function in
7287 the top frame of the lisp backtrace was not a Lisp_Compiled
7288 object, then Finteractive_p must have an explicit frame on the top
7289 of the stack, which we could skip. It didn't bother to follow the
7290 symbol function chaining, and it would break if any C code called
7291 from a non-compiled function tried to call Finteractive_p anyway.
7292 Changed this to actually check if the top frame's effective
7293 function is the Lisp_Subr for Finteractive_p. This also used to
7294 skip any number of frames for special forms and/or Fbytecode
7295 calls. Changed this to skip an Fbytecode frame (if present),
7296 followed by any number of special form frames.
7297
72981992-06-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7299
7300 * eval.c (struct backtrace): Doc fix.
7301
73021992-06-12 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7303
7304 * m/hp300bsd.h (LOAD_AVE_TYPE): This is long, not double.
7305 (LOAD_AVE_CVT): Adjusted as appropriate.
7306
7307 * fns.c: Moved lots of system-dependent preprocessor cruft
7308 dealing with getting the load average to `getloadavg.c'.
7309 (Fload_average): Guts moved to `getloadavg.c'.
7310 * getloadavg.c: New file, containing the necessary mess to get the
7311 load average on many different systems. This file is supposed to
7312 be Emacs-independent.
7313 * ymakefile (obj): Add getloadavg.o to the list.
7314 (getloadavg.o): Note that this depends on its source, and config.h.
7315
7316 * screen.c (Fdelete_screen): Typo in loop looking for new
b344d29d
JB
7317 last_nonminibuf_screen - change `screen = XCONS (screens)->cdr`
7318 to `screens = XCONS (screens)->cdr`
615d0182
DL
7319
7320 * xdisp.c (echo_area_display): Don't neglect to draw all the lines
7321 of the minibuffer window (or echo area) when a message is being
7322 displayed. If the minibuffer is more than one line high, they
7323 should all be blanked.
7324
73251992-06-10 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7326
7327 * sysdep.c [POSIX_SIGNALS] (sys_signal): Fix typo - rather than
7328 calling new_action as if it were a function, call sigaction.
7329
73301992-06-09 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7331
7332 * lisp.h (Qnumberp, Qnumber_or_marker_p): Declared.
7333
7334 * eval.c (wants_debugger): Changed NULL to NILP.
7335 Who installed these calls to NULL?
7336
73371992-06-09 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7338
7339 * dispnew.c (Fsit_for): Don't forget to actually set sec from ARG.
7340
7341 * termhooks.h (struct input_event): Doc fix - for mouse clicks, .x
7342 and .y give the position in characters, not in pixels.
7343
7344 * keyboard.c (format_modifiers): Order the modifier letters
7345 alphabetically - control, meta, shift, and up.
7346
73471992-06-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7348
7349 * xfns.c: Move some extern decls out of #if 0, to top of file.
7350
73511992-06-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7352
7353 * window.c (Fcoordinates_in_window_p): Docstring fix.
7354
7355 * buffer.c (Fother_buffer): Put a comma between arguments BUFFER
7356 and VISIBLE_OK in the argument list. Duh.
7357
7358 * screen.c (Fdelete_screen): Remember that s is a SCREEN_PTR *,
7359 not a Lisp_Object.
7360
7361 * search.c (search_regs): Doc fix.
7362 (compile_pattern): Take a new argument - the search register
7363 structure - so we can reassure the regex routines that the
7364 registers have been allocated.
7365 (Flooking_at, Fstring_match, search_buffer): Changed to pass
7366 &search_regs to compile_pattern.
7367 (search_buffer): When we've searched for a literal string and
7368 found it, make sure that the search registers are allocated before
7369 stuffing the location of the search into them.
7370 (Fstore_match_data): If we need to allocate more registers,
7371 allocate them using re_set_registers, instead of just storing the
7372 new registers and hoping that regex doesn't free them.
7373
7374 * search.c (Freplace_match): Doc fix.
7375
73761992-06-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7377
7378 * screen.c (Fdeiconify_screen): Function deleted.
7379 It was the same as make-screen-visible.
7380
73811992-06-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7382
7383 * keyboard.c: Doc fix.
7384
7385 * floatfns.c (Fcbrt): Renamed from Fcube_root, and #if 0'd.
7386
7387 * lisp.h (CHECK_NUMBER_OR_FLOAT*): Use Qnumberp or Qnumber_or_marker_p.
7388 * data.c (syms_of_data): Staticpro those.
7389 (Qinteger_or_float_p, Qinteger_or_float_or_marker_p): Deleted.
7390 (Fnumberp, Fnumber_or_marker_p): Define these always,
7391 but make them work even if not LISP_FLOAT_TYPE.
7392
73931992-06-05 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
7394
7395 * config.h.in: Undefine REL_ALLOC if a system specific file
7396 defines SYSTEM_MALLOC.
7397
b344d29d 7398 * sysdep.c (save_signal_handlers): Cast result of signal to
615d0182
DL
7399 avoid compiler warning.
7400 * process.c (send_process): Likewise.
7401
74021992-06-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
dff28924 7403
615d0182
DL
7404 * keyboard.c (Fread_key_sequence): New 2nd arg CONTINUE_ECHO
7405 added for the sake of universal-argument.
dff28924 7406
615d0182
DL
74071992-06-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7408
7409 * editfns.c (Fset_default_file_mode): Function deleted.
7410 (Funix_sync): Moved.
7411 * fileio.c (Funix_sync): Moved to here.
7412
b344d29d 7413 * xfns.c (Fx_erase_rectangle, Fx_draw_rectangle, Fx_contour_region)
615d0182
DL
7414 (Fx_uncontour_region): #if 0 these.
7415 (x_rectangle, outline_region): Likewise.
7416 (syms_of_xfns): #if 0 the defsubrs.
7417
7418 * dispnew.c (Fsleep_for, Fsit_for): Clean up error messages.
7419
7420 * eval.c, print.c, keyboard.c: Doc fix.
7421
7422 * xfns.c (Fx_horizontal_line): Disabled, since not documented.
7423
7424 * fileio.c (Fdelete_directory): Renamed from Fremove_directory.
7425
7426 * unexencap.c: Deinstalled (renamed to =unexencap.c)
7427 since awaited papers never arrived.
7428
7429 * xfns.c: Doc fix.
7430
74311992-06-04 Roland McGrath (roland@geech.gnu.ai.mit.edu)
7432
7433 * eval.c (stack_trace_on_error, debug_on_error): Made Lisp_Objects V*.
7434 (syms_of_eval): Changed DEFVAR_BOOLs to DEFVAR_LISPs.
7435 (wants_debugger): New fn.
7436 (find_handler_clause): Use it to look in debug-on-error and
7437 stack-trace-on-error lists.
7438
74391992-06-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7440
7441 * floatfns.c (Fbessel_*, Ferf, Ferfc, Flog_gamma): Turned off;
7442 not clearly worth including.
7443 (Fasinh, Facosh, Fatanh, Fsinh, Fcosh, Ftanh): Likewise.
7444
74451992-06-03 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7446
7447 * minibuf.c, keyboard.c: Doc fix.
7448
7449 * window.c (Fwindow_at): Fix number of args--minimum 2, max 3.
7450
7451 * screen.c: Doc fix.
7452
74531992-06-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7454
7455 * lread.c (Feval_buffer): Don't read any arguments, if interactive.
7456
74571992-06-02 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7458
7459 * screen.c (make_screen_without_minibuffer): Apply XSCREEN to
7460 Vdefault_minibuffer_screen before calling SCREEN_LIVE_P. The
7461 argument to SCREEN_LIVE_P must be a SCREEN_PTR, not a Lisp_Object.
7462
7463 * dispnew.c (Fsit_for): This used to compare arg with 0 and return
7464 Qt immediately. It should actually call sit_for anyway, because
7465 sit_for needs to test for input and do the redisplay.
7466 (sit_for): Compare sec and usec with zero here, after we've
7467 looked for input and done a redisplay.
7468
7469 * lread.c (Feval_buffer): Use NILP, not NIL_P.
7470
74711992-06-01 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
7472
7473 * buffer.h: New macro, BUF_SET_PT.
7474
7475 * lread.c: New subr `eval-buffer', replaces `eval-current-buffer',
7476 which is now defined in simple.el.
7477
74781992-05-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7479
7480 * screen.c (Fdelete_screen): If we're deleting the default
7481 minibuffer screen, try to find another minibuffer screen.
7482
74831992-05-29 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7484
7485 * buffer.c (Fother_buffer): New optional argument VISIBLE_OK,
7486 indicating that buffers currently visible in windows should not be
7487 discriminated against.
7488
74891992-05-28 Ken Raeburn (raeburn@cygnus.com)
dff28924 7490
615d0182
DL
7491 * screen.c (Fdelete_screen): Fix bugs in walking screen list.
7492 (make_screen_without_minibuffer): Signal an error if the default
7493 minibuffer screen is dead.
dff28924 7494
615d0182
DL
7495 * xfns.c (x_set_name): Use ICCCM-conforming scheme for changing
7496 window name in X11.
7497 (Fx_create_screen): Likewise.
7498
74991992-05-27 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7500
7501 * xselect.c: Support getting and setting the obsolete X cut
7502 buffers.
7503 (Qcut_buffer0): New atom, denoting the X cut buffer 0.
7504 (syms_of_xselect): Initialize and staticpro it.
7505 (Fx_own_selection): If TYPE is Qcut_buffer0, interpret this to
7506 mean that we should set cut buffer 0 to STRING.
7507 (Fx_selection_value): If TYPE is Qcut_buffer0, interpret this to
7508 mean that we should retrieve the value of cut buffer 0.
7509
75101992-05-21 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7511
7512 * xterm.c (construct_mouse_click): Removed extra assignment of
7513 result->timestamp.
7514
7515 * keyboard.c (last_event_timestamp): Doc fix.
7516 * xselect.c (last_event_timestamp): Declare it extern here.
7517 (mouse_timestamp): Variable deleted. last_event_timestamp is a
7518 more accurate thing to use here.
7519 (own_selection, get_selection_value): Use last_event_timestamp
7520 instead of mouse_timestamp.
7521 * keyboard.c (make_lispy_event): Pass the event's timestamp
7522 through the make_number function, to assure that it is properly
7523 tagged before incorporating it into the lispy event.
7524 * xterm.c (construct_mouse_click): The timestamp element of a
7525 struct input_event is no longer a Lisp_Object; it is now an
7526 unsigned long. So don't use XSET to assign to it.
7527 (XTread_socket): Same here, in processing KeyPress events.
7528
7529 * keyboard.c (Fexecute_extended_command): Properly initialize
7530 this_command_keys to the concatenation of the sequence that
7531 invoked Fexecute_extended_command, the characters making up the
7532 name of the command we're running, and a return character.
7533 Previously, this code would set it to the last key typed while
7534 reading the function name from the minibuffer, followed by the
7535 name of the function being run.
7536
75371992-05-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7538
7539 * xterm.c (x_display_box_cursor): Draw the cursor at curs_{x,y},
7540 rather than at s->cursor_{x,y}. If cursor_in_echo_area is set,
7541 then s->cursor_{x,y} does not accurately describe the position of
7542 the cursor. However, if we're not updating, then curs_{x,y} are
7543 garbage; set them from s->cursor_{x,y}.
7544
7545 * dispnew.c (update_screen): Check current_screen->enable and
7546 current_screen_used to see if there is any text on the last line,
7547 not desired_screen->{enable,used}. When the line isn't enabled,
7548 move to line SCREEN_HEIGHT (s) - 1, not SCREEN_HEIGHT (s).
7549 Rearranged conditionals.
7550
7551 * dispnew.c (cursor_in_echo_area): Document the interpretations of
7552 positive and negative values of this variable.
7553
75541992-05-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7555
7556 * dispnew.c (Fding): If have arg, don't end a keyboard macro.
7557
75581992-05-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7559
7560 * dispnew.c (sit_for): New function, which is a slight
7561 generalization of Fsit_for; you can tell it that it's waiting for
7562 input, so C-g gets handled properly.
7563 (Fsit_for): Call it, instead of replicating all its guts.
7564 * keyboard.c (read_char): Call sit_for instead of Fsit_for, and
7565 indicate that we're awaiting keyboard input.
7566
7567 * dispnew.c (Fsit_for): Rename arguments to match docstring. Use
b344d29d 7568 NILP instead of EQ (foo, Qnil). If nodisp is non-nil, call
615d0182
DL
7569 wait_reading_process_input with do_display 0, instead of 1; this
7570 will inhibit spurious redisplays when process input arrives during
7571 a sit-for.
7572
da1d68b2 7573 * process.c (Faccept_process_output): Pass zero as read_kbd
615d0182
DL
7574 argument to wait_reading_process_input when PROC is nil, not when
7575 PROC is non-nil.
7576
7577 * process.c (wait_reading_process_input): Declare read_kbd to be a
7578 Lisp_Object, and use the tagging to tell the difference between a
7579 process object and an integer.
7580 * dispnew.c (Fsleep_for, Fsit_for, Fsleep_for_millisecs): Pass
7581 read_kbd argument to wait_reading_process_input as a Lisp_Object.
7582 * keyboard.c (kbd_buffer_get_event): Same.
7583 * process.c (Faccept_process_output, send_process): Same.
7584
7585 * keyboard.c (read_char): Use save_getcjmp and restore_getcjmp
7586 instead of doing the bcopy explicitly.
7587
7588 * xterm.c (XTread_socket): When handling an EnterWindow event,
7589 don't bother to check waiting_for_input. It's not necessary.
7590
7591 * keyboard.c (read_char): Don't clear waiting_for_input and
7592 input_available_clear_time here.
7593 (quit_throw_to_read_char): It's already done here.
7594
7595 * keyboard.c (quit_throw_to_read_char): Use
7596 clear_waiting_for_input instead of clearing waiting_for_input
7597 explicitly.
7598
75991992-05-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7600
7601 * keyboard.c (read_char): Call clear_waiting_for_input instead of
7602 clearing waiting_for_input and input_available_clear_time
7603 explicitly.
7604
76051992-05-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7606
da1d68b2 7607 * ymakefile [defined (__GNUC__) and __GNUC__ > 1]: Define
615d0182
DL
7608 YMF_PASS_LDFLAGS so that it can deal with an empty flags argument.
7609
7610 * callproc.c (Fcall_process): Under VMS, a nil INFILE argument
7611 means to read from "NLA0:", not "/dev/null".
7612
7613 * callproc.c (Fcall_process): Use nil as the value for display
7614 (the fourth argument) when nargs >= 4, not when nargs >= 3.
7615
76161992-05-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
dff28924 7617
615d0182 7618 * termhooks.h: Change timestamp from a Lisp_Object to an unsigned
da1d68b2 7619 long.
615d0182 7620 * keyboard.c (kbd_buffer_store_event): We don't have to apply the
da1d68b2 7621 XINT macro to the timestamp member of the event anymore.
615d0182
DL
7622
7623 * process.c (wait_reading_process_output): Don't turn off polling.
7624
7625 * sysdep.c (setpgrp_of_tty): Pass the address of pid, not pid
7626 itself.
7627
7628 * process.c: Deleted cpp tangle for dealing with system-dependent
7629 tty handling; #included "systerm.h".
7630 * systerm.h: Add some of the things that were done in process.c:
7631 If titan is #defined, then we should include <sys/ttyhw.h> and
7632 <sys/stream.h> along with the other SYSV pty stuff.
7633 If HPUX is #defined, then EMACS_HAVE_TTY_PGRP isn't true.
7634 If XENIX is #defined, then we shouldn't try to use TIOCGETC.
7635 * ymakefile: Note that process.o depends on systerm.h now.
7636
76371992-05-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7638
da1d68b2 7639 * callint.c (Fprefix_numeric_value): Value 1 for symbol other than `-'.
615d0182
DL
7640
76411992-05-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7642
7643 * cmds.c (Fforward_line): If the buffer is empty, don't try to see
7644 if it contains a newline, and moving nowhere at eob after
7645 non-newline should return 1, not 0.
7646
7647 * search.c (scan_buffer): Doc fix.
7648
7649 * buffer.c (Fbuffer_disable_undo): Accept a buffer name as an
7650 argument.
7651
76521992-05-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7653
dff28924
SS
7654 * fileio.c: Include config.h first thing.
7655
615d0182
DL
7656 * keyboard.c (clear_input_pending): New subroutine.
7657 * process.c (wait_reading_process_input): Make C-g really quit in
7658 sit-for case.
7659
da1d68b2 7660 * ymakefile (LD_SWITCH_SYSTEM): Don't use -X with GCC.
615d0182
DL
7661
76621992-05-12 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7663
7664 * eval.c (Fapply): Use indirect_function, instead of doing a dumb
7665 loop.
7666 * keymap.c (get_keymap_1): Same.
7667 * macros.c (Fexecute_kbd_macro): Same.
7668
7669 * buffer.c (init_buffer_once): Don't disable undos for *scratch*
7670 here. Do it in loadup.el.
7671
7672 * buffer.c (init_buffer_once): Doc fix.
7673
7674 * doc.c (Fdocumentation): After extracting the doc string from a
7675 lambda or autoload expression, don't fall through to the default
7676 case and signal an invalid function error; instead, do a `break'.
7677
7678 * doc.c (Fdocumentation): Use EQ (x, y) instead of XSYMBOL (x) ==
7679 XSYMBOL (y).
7680
10d1d0af 7681 * doc.c (Fdocumentation): When deciphering a function made from
615d0182
DL
7682 conses, use 'else if' for the chain of alternatives instead of
7683 just 'if'. It used to be that each alternative returned, but
7684 that's not true anymore.
7685
7686 * alloc.c (Fgarbage_collect): Don't call truncate_undo_list on
7687 buffers whose undo list is 't.
7688
7689 * doc.c (Fdocumentation): Renamed argument `fun1' to `function',
7690 so make-docstring will list argument consistently with the
7691 docstring.
7692
76931992-05-11 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
7694
7695 * xterm.h: Removed definition of `RES_CLASS'.
7696
7697 * xfns.c (x_get_arg): Eliminated `screen_name' parameter. No
7698 longer uses screen name as X resource search component.
7699 All calls to x_get_arg changed accordingly.
7700 Global variable `screen_class' and #define `SCREEN_CLASS' removed.
7701
7702 * xterm.c (XTread_socket): Added basic structure for handling
7703 various ClientMessage events, using new global variables
7704 `Xatom_wm_take_focus', `Xatom_wm_save_yourself',
7705 `Xatom_wm_delete_window', `Xatom_wm_configure_denied',
7706 `Xatom_wm_moved'.
7707 * xfns.c: Declare these variables extern.
7708 (syms_of_xfns): Initialize these variables.
7709
7710 * xselect.c (Fx_own_selection, Fx_selection_value): New optional
7711 parameter `type', to specify the selection type.
7712 (syms_of_xselect): New symbols Qprimary, Qsecondary, Qclipboard
7713 initialized.
7714
77151992-05-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7716
7717 * data.c (Qcyclic_function_indirection): New error condition.
7718 (indirect_function, Findirect_function): New functions.
7719 (syms_of_data): Initialize Qcyclic_function_indirection, put the
7720 error properties on it, and staticpro it. Defsubr
7721 Findirect_function.
7722 * lisp.h (indirect_function, Findirect_function): Declare them here.
7723 * callint.c (Fcall_interactively): Get symbol's function by
7724 calling indirect_function, instead of just looping.
7725 * doc.c (Fdocumentation): Same.
da1d68b2
JB
7726 * eval.c (Finteractive_p, Fcommandp, do_autoload, Feval)
7727 (Ffuncall): Same.
615d0182
DL
7728 * keyboard.c (Fcommand_execute): Same.
7729
7730 * data.c (Fsymbol_function): Name the argument `symbol' instead of
7731 `sym', so make-docstring will list argument consistently with the
7732 docstring.
7733
7734 * process.c (wait_reading_process_input): Make sure the screen
7735 isn't garbaged (and therefore not displayed) before we enter the
7736 select and start waiting for input.
7737
7738 * keyboard.c: #include <systime.h>.
7739 * ymakefile (keyboard.o): This depends on systime.h.
7740 * keyboard.c (input_available_clear_word): Replaced with
7741 input_available_clear_time, which is a pointer to an EMACSTIME;
7742 sometimes the time information is larger than a single word.
7743 (read_char): Changed ..._word to ..._time.
7744 (input_available_signal): Use the EMACS_SET_SECS_USECS macro to
7745 clear *input_available_clear_time, instead of zapping a zero into
7746 *input_available_clear_word.
7747 (set_waiting_for_input, clear_waiting_for_input): Adjusted
7748 appropriately.
7749
77501992-05-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7751
7752 * editfns.c (make_buffer_string): New function.
7753 * lisp.h (make_buffer_string): Declare it here.
7754 * editfns.c (Fbuffer_substring): Call make_buffer_string instead
7755 of writing it out.
7756 (Fbuffer_string): Call make_buffer_string instead of make_string,
7757 so we can deal with buffer relocations.
7758 * minibuf.c (read_minibuf): Same here.
7759
77601992-05-09 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7761
7762 * syssignal.h (sigunblock): New macro, taken from 18.58's
7763 emacssignal.h file.
7764 * sysdep.c (request_sigio): Use the sigunblock macro to enable
10d1d0af 7765 receipt of SIGWINCH, instead of the dysfunctional sigblockx.
615d0182
DL
7766
77671992-05-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7768
7769 * search.c: Doc fix.
7770
77711992-05-06 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7772
7773 * emacs.c (decode_env_path): If EVARNAME is zero, don't try to
7774 call getenv on it.
7775 * lread.c (init_lread): When we don't have an environment variable
7776 to check, pass 0 instead of the empty string.
7777
7778 * alloc.c (Fmake_marker): Use `SIGMASKTYPE' instead of `int'.
7779 Instead of calling sigsetmask twice - once to get the mask, and
7780 again to restore it - call sigblock, specifying no additional
7781 signals.
7782
77831992-05-05 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7784
7785 * alloc.c: #include <syssignal.h>, for the sake of the
7786 bug-catching code in Fmake_marker.
7787 ymakefile: Add dependency.
7788
7789 * syssignal.h [not POSIX_SIGNALS] (SIGFULLMASK): New definition,
7790 for symmetry with the "defined (POSIX_SIGNALS)" case.
7791
7792 * callproc.c (child_setup): Since we always get the environment
7793 from Vprocess_environment, don't bother to take the environment
7794 the subprocess should inherit as an argument anymore.
7795 * process.c (create_process): Don't pass environment as a
7796 variable. Just preserve it across call to fork.
7797
77981992-05-04 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7799
7800 * floatfns.c: #include <syssignal.h>.
7801 (float_error): Use SIGEMPTYMASK instead of zero.
dff28924 7802
615d0182
DL
7803 * syssignal.h [POSIX_SIGNALS] (sigmask): Defined to expand to a
7804 statement expression under GCC, or a function call otherwise.
7805 (sigpause, sigblock, sigunblock, sigsetmask): These are now
7806 K&R-compatible macros.
7807 * systerm.h [POSIX_SIGNALS] (sys_sigmask): Here is the function
7808 the POSIX version of sigmask calls when we're not compiling with
7809 GCC.
7810 * alloc.c (Fmake_marker): Undo changes of Apr 29.
7811 * callproc.c (Fcall_process): Same.
7812 * data.c (arith_error): Same.
7813 * floatfns.c (float_error): Same.
7814 * keyboard.c (gobble_input): Same.
7815
7816 * sysdep.c (request_sigio, unrequest_sigio)
7817
78181992-04-29 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7819
7820 * x11term.h (CLASS): Change this from "emacs" to "Emacs"; class
7821 names should always start with an upper-case letter.
7822
7823 * syssignal.h: Arranged cpp conditionals so that the specific
7824 cases come first, generic cases last.
7825
7826 * syssignal.h (sigpause, sigblock, sigunblock, sigsetmask): Macros
7827 removed; they require GCC, and Emacs 19 should compile without GCC.
da1d68b2
JB
7828 (EMACS_SIGPAUSE, EMACS_SIGBLOCK, EMACS_SIGUNBLOCK)
7829 (EMACS_SIGSETMASK, EMACS_SIGFREE, EMACS_SIGHOLDX, EMACS_SIGBLOCKX)
7830 (EMACS_SIGUNBLOCKX, EMACS_SIGPAUSEX): These are new macros that
615d0182
DL
7831 don't require GCC, but expand to statements.
7832 * callproc.c (Fcall_process): Use new EMACS_SIG* macros from
7833 syssignal.h.
7834 * keyboard.c (gobble_input): Same.
7835 * sysdep.c (request_sigio, unrequest_sigio): Same.
7836 * x11term.h (BLOCK_INPUT, UNBLOCK_INPUT): Same.
7837 * alloc.c (Fmake_marker): Same.
7838 * data.c (arith_error): Same.
7839 * floatfns.c (float_error): Same.
7840
78411992-04-28 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7842
7843 * ymakefile: If we're using GCC version 2.0 or later, use "$(CC)
7844 -nostdlib" as the linker. This will allow us to find libgcc.a
7845 even when GCC puts it in a really weird place.
7846 (YMF_PASS_LDFLAGS): New macro.
7847 (temacs): Use it.
7848
7849 * s/hpux.h: Doc fix.
7850
7851 * filelock.c (egetenv): Declare this.
7852 (lock_path, SUPERLOCK_NAME, superlock_path): New variables and
7853 macros.
7854 (MAKE_LOCK_PATH, lock_file, unlock_file, lock_superlock): Use the
7855 variables lock_path and superlock_path instead of the PATH_LOCK
7856 and PATH_SUPERLOCK macros.
7857 (init_filelock): New function.
7858 * emacs.c (main): Call the init_filelock function.
7859 * paths.h.in (PATH_SUPERLOCK): Removed. This is now calculated
7860 from PATH_LOCK or from the EMACSLOCKDIR environment variable.
7861
7862 * filelock.c (MAKE_LOCK_PATH): New macro.
7863 (lock_file, unlock_file, Ffile_locked_p): Use it.
7864
7865 * syntax.c (Fmodify_syntax_entry): Note that '-' is a synonym for
7866 ' ' (both denote whitespace), that '\\' denotes the escape class,
7867 and that '/' denotes the character-quote class. The description
7868 used to claim that '\\' denoted the character-quote class, and
7869 neglected to mention '-' and '/'.
7870
7871 * filelock.c (lock_file): Doc fix.
7872
78731992-04-27 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7874
7875 * callproc.c (init_callproc): Get the default Vexec_path from the
7876 environment variable "EMACSPATH"; get Vdata_directory from
7877 "EMACSDATA".
7878
7879 * ymakefile: Fix #endif and #else comments.
7880
dff28924 78811992-04-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
7882
7883 * ymakefile (xemacs): Link xemacs to temacs if HAVE_SHM.
7884
7885 * ymakefile (paths.h, config.h): Never copy, always fail.
7886
7887 * process.c (wait_reading_process_input): Redisplay if screen_garbaged.
7888 Call do_pending_window_change first.
7889 Include dispextern.h.
7890 * ymakefile (process.o): Added dependency.
7891
7892 * ymakefile (OLDXMENU_OPTIONS): New macro, used compiling oldxmenu.
7893
78941992-04-25 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7895
7896 * ymakefile: Changed all references to LD_CMD to LINKER, for
7897 compatibility with the 18.58 configuration files.
7898 * s/aix3-1.h, s/sunos4shr.h: Same here.
7899
7900 * ymakefile: Doc fixes.
7901
7902 * ymakefile (CC, MAKE): Set these variables from optional macros.
7903 Change all uses of `make' to ${MAKE}.
7904
da1d68b2 7905 * ymakefile: Use HAVE_X11 as alias for X11.
615d0182
DL
7906
7907 * ymakefile (LIB_GCC, GNULIB_VAR): Handle GCC 2.
7908
7909 * process.c (allocate_pty): Re-arranged conditionals to put the
7910 system-specific-case first, and the generic case in the #else
7911 section, for consistency with the rest of Emacs.
7912
7913 * process.c (allocate_pty): Wait until we fail to open three ptys
7914 in a row before concluding that we've reached the end of the ptys.
7915
79161992-04-22 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7917
7918 * ralloc.c: #include "getpagesize.h".
7919
7920 * search.c (Flooking_at): Use search_regs.num_regs instead of
7921 RE_NREGS. As of regex version 0.4, the compiler allocates the
7922 registers, and may allocate more than RE_NREGS.
7923 (search_buffer): Same.
7924 (Freplace_match): Use search_regs.num_regs to tell how many
7925 registers are valid. Also note that if none are valid, no search
7926 has been performed.
7927 (match_limit): Same.
7928 (Fmatch_data): Same.
7929 (Fstore_match_data): If we're trying to store more registers than
7930 search_regs has allocated, re-allocate them to make room.
7931
79321992-04-21 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7933
615d0182
DL
7934 * callproc.c (egetenv): Declare the type of VAR.
7935
7936 * lisp.h: Don't undefine NULL. There is no longer any conflict.
7937
7938 * lisp.h (NUMBERP): New macro.
7939 * editfns.c (Fformat): Protect the sections that deal with
7940 Lisp_Float objects with a "#ifdef LISP_FLOAT_TYPE".
7941 * bytecode.c (Fbyte_code): Use the NUMBERP macro instead of
7942 explicitly checking for the Lisp_Float tag.
7943 * callint.c (Fcall_interactively): Same here.
7944
7945 * xrdb.c (magic_searchpath_decoder): Re-allocate string as needed,
7946 rather than making it a fixed-size array.
7947
7948 * xfns.c (Fx_rebind_key): Don't declare modifier_list to be a
7949 register variable. It's too big, and we need the address of its
7950 first element when we pass it to XRebindKeysym anyway.
7951
7952 * fileio.c (Fdo_auto_save): Doc fix.
7953
79541992-04-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7955
7956 * search.c (search_buffer): Cast RE_EXACTN_VALUE to char, because
7957 the regex-0.4 distribution says so.
7958
7959 * ymakefile (dired.o): This depends on regex.h.
7960
7961 * process.c (wait_reading_process_input): There is code here which
7962 sends SIGIO to Emacs if we thought we had input available but
7963 didn't get SIGIO. If the system doesn't have SIGIO, then
7964 #ifdef it out.
7965
7966 * print.c (Fexternal_debugging_output): Arguments were declared
7967 ANSI-style - rewritten in K&R 1 fashion.
7968
7969 * floatfns.c (IN_FLOAT): Cast the zero in the `else' clause of the
7970 conditional expression to SIGTYPE, to match the type of the
7971 float_error call in the `then' clause.
7972
88c71720 7973 * s/hpux8.h: #define HPUX8; this is supposed to be customary
615d0182
DL
7974 procedure, and fileio.c was expecting it, but somehow it didn't
7975 get defined.
7976
7977 * sysdep.h: Move inclusions of [AIX] <sys/hft.h>,
7978 <sys/devinfo.h>, <sys/pty.h>, <unistd.h> [NEED_BSDTTY]
7979 <sys/bsdtty.h>, [HPUX and HAVE_PTYS] <sys/ptyio.h>, [SYSV_PTYS]
7980 <sys/tty.h>, <sys/pty.h>, and [pfa] <sys/file.h> to systerm.h;
7981 also move undefinition of LLITOUT under BSD4_1 to systerm.h.
7982 * systerm.h: They're here.
7983
7984 * xterm.c (XTcursor_to, XTclear_end_of_line): Declare to return
7985 int in the function definitions as well as their declarations.
7986
79871992-04-19 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7988
7989 * fileio.c (directory_file_name): When checking if the string ends
7990 with '/', check that slen is a valid length *before* examining
7991 dst[slen-1], not after.
7992
79931992-04-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7994
7995 * xterm.c (x_death_handler): New function.
7996 (x_error_handler): Call x_death_handler to shut down Emacs.
7997 (x_term_init): Use x_death_handler to handle SIGPIPE, instead of
7998 x_error_handler, which expects to be passed a display and an
7999 event.
8000 * process.c (send_process): This used to set a handler to
8001 catch SIGPIPEs when writing to a subprocess, and then set the
8002 handler to SIGDFL after writing, but this would stomp on the
10d1d0af 8003 SIGPIPE handler for the X connection. So restore the previous
615d0182
DL
8004 handler instead of changing to SIGDFL.
8005
80061992-04-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8007
8008 * indent.c (compute_motion): Fix skipping invis lines and
8009 truncation at right margin.
8010
80111992-04-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8012
8013 * s/hpux.h (PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Use pty_name,
dff28924 8014 not ptyname.
615d0182
DL
8015 * s/rtu.h: Same.
8016
8017 * process.c (pty_process): Add 'int' to the declaration 'static
8018 pty_processes;'. This makes it a happy declaration even when
8019 static has been #defined as the empty string.
8020 * xterm.c (XTcursor_to, XTclear_end_of_line): Same.
8021
8022 * unexec.c (sbrk): Declare this to return void * if __STDC__ is
8023 defined, or char * otherwise.
8024
88c71720 8025 * lread.c (init_lread): Re-cleaned logic. To determine whether the
615d0182
DL
8026 load path was changed before dumping, cons up a dump path and
8027 compare it. This method is more localized and accurate.
8028 (initial_path): Variable removed.
8029 (syms_of_lread): Don't staticpro.
8030
8031 * floatfns.c (float_error): Declare and define this to return
8032 SIGTYPE.
8033
8034 * systime.h [HAVE_TIMEVAL] (EMACS_GET_TIME): Declare dummy to be a
8035 real struct timezone, instead of an EMACS_TIME. Since
8036 HAVE_TIMEVAL is defined, struct timezone ought to be declared, so
8037 there's no harm in passing the genuine article.
8038
8039 * sysdep.c [USG] (rename): Place under the protection of a new
8040 preprocessor symbol, HAVE_RENAME.
8041 * s/hpux.h (HAVE_RENAME): Defined.
8042
8043 * sysdep.c [USG] (setpriority): Declare to return int, not void.
8044
8045 * s/template.h: Add template section for HAVE_TERMIOS.
8046
8047 * term.c (cursor_to, raw_cursor_to, fatal): Do declare the types
8048 of the arguments.
8049
80501992-04-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8051
8052 * callint.c (Fcall_interactively): When the interactive spec is
8053 a string, it may be relocated while reading the arguments. To
8054 avoid this, make a copy of the spec to refer to, instead of
8055 using a pointer to the data of the spec string.
8056
8057 * callint.c (Fcall_interactively): When following the function
8058 chain of a symbol, check for quits.
8059
80601992-04-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8061
8062 * lread.c (init_lread): Make the load path default to
8063 PATH_LOADSEARCH when we're not dumping (null purify-flag), and
8064 PATH_DUMPLOADSEARCH when we are (not (null (purify-flag))).
8065 Change from April 7th incorrectly always used PATH_DUMPLOADSEARCH.
8066
8067 * lread.c (init_lread): Cleaned up logic; to determine whether the
8068 load path was changed before dumping, remember the initial value
8069 and compare against it.
8070 (initial_path): New variable to support this.
8071 (syms_of_lread): staticpro initial_path.
8072
8073 * ymakefile: Renamed filenames like "*-dist" to "*.in".
8074
8075 * config.h.in: Doc fixes.
8076
80771992-04-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8078
8079 * config.h-dist: Renamed to config.h.in, for consistency with
8080 the installation conventions of other GNU programs.
8081 * paths.h-dist: Renamed to paths.h.in.
8082
80831992-04-11 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
8084
8085 * termcap.c: Declare getenv.
8086
80871992-04-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8088
8089 * Makefile: Renamed to Makefile.in; the configure script will edit
8090 this to produce Makefile.
8091
80921992-04-07 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8093
8094 * paths.h-dist (PATH_DUMPLOADSEARCH): New macro.
8095 * lread.c (init_lread): If we're building an Emacs to be dumped,
8096 use PATH_DUMPLOADSEARCH as the default load path, so we can
8097 correctly find our lisp files.
8098
8099 * config.h-dist, paths.h-dist: Added "-*- C -*-" to top lines, so
8100 Emacs will know that these are really C source.
8101
81021992-04-03 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8103
8104 * search.c (syms_of_search): When allocating memory
8105 searchbuf.buffer, cast the return value of malloc to unsigned char
8106 *, not char *; this changed in the most recent version of the
8107 regex code.
8108
81091992-03-31 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8110
8111 * doc.c (Fdocumentation): Don't forget to end each line of the
8112 docstring with "\n\".
8113
8114 * process.c (Fprocess_connection): Change "#ifdef 0" around this
8115 function to "#if 0".
8116
8117 * eval.c (Flet, FletX): Signal an error if one of the let's binding
8118 clauses has more than one value form, as in (let ((a 1 2)) a).
8119
8120 * eval.c (Ffuncall): Re-install change of March 10; I don't know
8121 why it went away.
8122
8123 * search.c (compile_pattern): Declare the variable which holds the
8124 return value of re_compile_pattern to be const, if this is ANSI C.
8125
8126 * alloc.c (xrealloc): Change "ese" to "else".
8127
8128 * crt0.c (start1) [sun_soft]: Change 'jst' to 'jsr'. The Sun
8129 assembly language manual doesn't list any 'jst' instruction, I
8130 don't know of one personally, and all the analogous code
8131 around it uses 'jsr'.
8132
8133 * crt0.c [m68k]: Merged with GNU C Library's version: added
8134 conditionals for sun_68881, sun_fpa, sun_soft.
8135
8136 * config.h-dist: Adjusted for renaming of share-lib to etc.
8137 * lread.c (read1): Same.
8138 * doc.c (Fdocumentation_property, Fsnarf_documentation): Same.
8139 * ymakefile: Same.
8140
81411992-03-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8142
8143 * crt0.c: Merged changes from 18.58:
8144 [hp9000s300]: Set flag_fpa. Define float_loc.
8145 [new hp assembler]: Double flag_fpa and flag_68881 if %d2!=0.
8146 (start1): Declare to be static at the top of the file.
8147 (_start): Removed static declaration in this function; since
8148 everyone wants it, we'll just put it here.
8149
81501992-03-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8151
8152 * fileio.c (Finsert_file_contents): Allow quitting from I/O.
8153 (Fcopy_file): Likewise.
8154
81551992-03-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8156
8157 * m-intel386.h (HAVE_ALLOCA): Inhibit if C_ALLOCA.
8158 (LIB_STANDARD): Alternate USG value if __GNUC__ or C_ALLOCA
8159
8160 * alloc.c (xrealloc): If handed a NULL pointer for the block to
8161 resize, malloc a new block and return that. Not all reallocs do
8162 this.
8163
8164 * m/elxsi.h: Doc fix.
8165
81661992-03-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8167
8168 * dispnew.c (Fsleep_for): Call wait_reading_process_input, whether
8169 or not we have process support; let the emulator do the work.
8170 * emacs.c (fatal_error_signal, Fkill_emacs): Call
8171 kill_buffer_processes even when subprocesses is not #defined; we
8172 have a stub.
8173
8174 * process.c [not defined (subprocesses)] (Fget_buffer_process,
8175 init_process, syms_of_process): New stub versions of these functions.
8176 * emacs.c (main): Call init_process and syms_of_process whether or
8177 not subprocesses is #defined.
8178 * xdisp.c (decode_mode_spec): Call Fget_buffer_process whether or
8179 not subprocesses is #defined.
8180
81811992-03-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8182
8183 * keyboard.c (kbd_buffer_get_event): Call
8184 wait_reading_process_input, even when subprocesses is not
8185 #defined, instead of doing a whole lot of hairy SIGIO-pausing
8186 stuff.
8187 * dispnew.c (Fsit_for): Call wait_reading_process_input, whether
8188 or not subprocesses is #defined.
8189
8190 * process.c (wait_reading_process_input): Since we're no longer
8191 checking for exceptional conditions in the call to select, all of
8192 the different ways to call select for different systems have
8193 become the same; remove the #if conditionals around this.
8194
8195 * keyboard.c (read_char): When returning quit_char because we got
8196 an interrupt signal, claim that the character came from the
8197 currently selected screen.
8198
81991992-03-16 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8200
8201 * callproc.c (Fcall_process): Doc fix.
8202
8203 * process.c [not defined (subprocesses)] (kill_buffer_processes):
8204 New dummy version of this function.
8205 * buffer.c (Fkill_buffer): Removed '#ifdef subprocesses'
8206 protection from the call to kill_buffer_processes; this is safe
8207 whether or not we actually have subprocesses.
8208
82091992-03-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8210
8211 * m/pfa50.h: New file.
8212 * process.c (create_process, process_send_signal): Added changes
8213 for m/pfa50.h.
da1d68b2
JB
8214 * sysdep.c: Same.
8215 * unexec.c: Same.
615d0182
DL
8216
82171992-03-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8218
8219 * callproc.c (child_setup): Always put the child in its own
8220 process group.
8221
82221992-03-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8223
8224 * mem_limits.h (POINTER): Doc fix.
8225
8226 * ralloc.c: Don't #include lisp.h and xterm.h; we no longer need
8227 to block input in critical sections.
8228 (r_alloc, r_alloc_free, r_re_alloc): Don't use BLOCK_INPUT and
8229 UNBLOCK_INPUT; these are no longer needed.
8230 (struct bp): Doc fix.
8231
82321992-03-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8233
8234 * ralloc.c (obtain): When deciding how many pages to request, take
8235 into account the amount of spare bytes at the end of the current
8236 page; let get be ROUNDUP (size - already_available), instead of
8237 ROUNDUP (size).
8238 (relinquish): Re-organized for clarity.
8239
8240 * editfns.c (Fcurrent_time): Updated to return the current time's
8241 seconds split into two 16-bit integers (similar to the system used
8242 by file-attributes), and the milliseconds.
8243
82441992-03-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8245
8246 * process.c (Faccept_process_output): Add new optional argument
8247 TIMEOUT-MSECS, and return non-nil iff we actually got some input
8248 from the process(es).
8249 (wait_reading_process_input): Make return value indicate whether
8250 we got some input from the specified process, when read_kbd is a
8251 process, or from any process when read_kbd isn't particular.
8252
8253 * indent.c (Fmove_to_column): Pass the correct number of arguments
8254 to Findent_to.
8255
8256 * eval.c (Ffuncall): If a subr is asking for too many arguments,
8257 abort instead of printing an error message; this is an internal
8258 flaw in Emacs, and the subr cannot be called.
8259
82601992-03-06 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8261
8262 * doc.c (Fdocumentation, Fdocumentation_property): Take optional
8263 new arg to not pass results thru substitute-command-keys.
8264
dff28924 82651992-03-05 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8266
8267 * unexmips.c (unexec): When setting up the data_section header,
8268 calculate the size of the section as "brk - data_start," not "brk
8269 - DATA_START".
8270
dff28924 82711992-02-23 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8272
8273 * fileio.c: #include "systime.h".
8274 (Fcopy_file): Use the systime.h macros to copy the time to the new
8275 file.
8276 * ymakefile: Note that fileio.o depends on systime.h.
8277
8278 * ymakefile (dispnew.o): Note that this depends on systerm.h and
8279 systime.h.
8280 (editfns.o, xterm.o, sysdep.o): Note that this depends on
8281 systime.h.
8282 (emacs.o, keyboard.o, process.o, sysdep.o): Note that these depend
8283 on systerm.h.
8284
8285 * systerm.h: Expanded to handle getting and setting terminal
8286 parameters:
8287 (struct emacs_tty): New structure, which consolidates all of the
8288 old tty parameter structures.
8289 (EMACS_GET_TTY, EMACS_SET_TTY, EMACS_TTY_TABS_OK): New macros.
8290 * sysdep.c (TABS_OK): Definitions of this macro removed;
8291 EMACS_TTY_TABS_OK replaces it.
8292 (TERMINAL): Definitions removed; now we use struct emacs_tty.
8293 [VMS] (input_chan): Renamed to...
8294 (input_fd): and defined even when VMS isn't; in that case, we
8295 leave it initialized to zero, which is the input tty. This allows
8296 us to use the EMACS_GET_TTY and EMACS_SET_TTY for both VMS and
8297 Unix.
8298 (discard_tty_input): Use struct emacs_tty and its macros instead
8299 of TERMINAL. Replace some of conditional with a call to
8300 EMACS_GET_TTY.
8301 (child_setup_tty): Use struct emacs_tty and its macros instead of
8302 TERMINAL and conditionals.
8303 (old_gtty, old_ltchars, old_tchars, old_lmode): Replaced by...
8304 (old_tty): New variable.
8305 (lmode): Made conditional on BSD4_1, since it's only used by the
8306 BSD4_1 support code now.
8307 (init_sys_modes): Define tty to be a struct emacs_tty, not a
8308 TERMINAL. Use macros to get and set parameters for VMS and
8309 Unices. Set lmode, tchars, and ltchars along with the rest of the
8310 tty state.
8311 (tabs_safe_p): Use EMACS_GET_TTY and EMACS_TTY_TABS_OK instead of
8312 conditionals.
8313 (reset_sys_modes): Use EMACS_SET_TTY to restore the settings from
8314 old_tty, instead of using hairy conditionals.
8315
8316 * sysdep.c (get_screen_size): Neatened; now each system of
8317 reporting the screen size is separated from the rest.
dff28924 8318
615d0182
DL
8319 * systerm.h (EMACS_HAVE_TTY_PGRP, EMACS_GET_TTY_PGRP,
8320 EMACS_GET_TTY_PGRP): New macros to handle setting a tty's current
8321 process group.
8322 * sysdep.c (setpgrp_of_tty): Use the above, instead of
8323 conditionals.
8324
8325 * sysdep.c: #include "systerm.h".
8326 #ifs that choose #include files moved from here...
8327 * systerm.h: to here.
8328
8329 * sysdep.c [APOLLO]: We now undefine TIOCSTART not here but...
8330 * systerm.h: here.
8331
8332 * sysdep.c [BROKEN_TIOCGETC]: We now undefine TIOCGETC not here but...
8333 * systerm.h: here.
8334
8335 * sysdep.c [BROKEN_FIONREAD]: We now undefine FIONREAD and FASYNC
8336 not here but...
8337 * systerm.h: here.
8338
8339 * process.c (process_send_signal): Steal 18.58's version of this,
8340 but incorporate the support for VMS signals.
dff28924 8341
615d0182
DL
8342 * syssignal.h (EMACS_KILLPG): New macro.
8343 * process.c (process_send_signal): Use it.
8344 * sysdep.c (sys_suspend): Use it.
8345
8346 * syssignal.h (SIGCHLD): If we have SIGCLD and not SIGCHLD, define
8347 SIGCHLD as an alias for SIGCLD.
8348 * sysdep.c: Remove code for above.
8349
8350 * sysdep.c (init_baud_rate): Rather than trying to maintain the
8351 illusion of an abstraction with the OSPEED and SETOSPEED macros,
8352 just use conditionalized code for each terminal kind. This is the
8353 only place we ever need this functionality.
8354 (OSPEED, SETOSPEED): Definitions removed.
8355
dff28924 83561992-02-22 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8357
8358 * sysdep.c: Moved definition of sigunblock macro to ...
8359 * syssignal.h: Here.
8360
8361 * hftctl.c: #include <sys/uio.h> before #including <sys/tty.h>.
8362 (hfqry, hfskbd): Declare these functions as static before all uses.
8363 * unexaix.c (make_hdr, mark_x, copy_text_and_data, copy_sym):
8364 Declare as static before all uses.
da1d68b2
JB
8365 Remove extraneous semicolons from #ifdefs of COFF and XCOFF.
8366 (unrelocate_symbols): Cast the initializers of t_start and d_start
615d0182
DL
8367 to ulong.
8368
8369 * s/template.h: Include a clause for the HAVE_TERMIO flag.
8370
dff28924 83711992-02-21 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8372
8373 * keyboard.c (read_char): Don't clear Vquit_flag when we catch an
8374 interrupt and return a quit_char; this change (Mar 21 1991) is too
8375 large a change in functionality for the cleanliness it gains.
8376
8377 * pwd.h: Renamed to vms-pwd.h, so that we don't get it by accident
8378 when we #include <pwd.h> with the `-I.' flag given to the
8379 compiler.
8380 * editfns.c [VMS]: Changed to include vms-pwd.h instead of pwd.h.
8381 * fileio.c [VMS]: Same.
8382 * filelock.c [VMS]: Same.
8383 * sysdep.c [VMS]: Same.
8384
8385 * xrdb.c: Changed to #include "vms-pwd.h" if VMS is defined,
8386 instead of including <pwd.h> unconditionally.
8387
8388 * window.c (Fset_window_display_table): Rearranged to make etags
8389 happy.
8390
8391 * xterm.c (XTread_socket): Clear the meta flag from the keypress
8392 event before handing it to XLookupString.
8393
dff28924 83941992-02-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8395
8396 * sysdep.c: No need to test #ifdef TIOCGETP before #undefing it.
8397
dff28924 83981992-02-19 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8399
8400 * systime.h: New file.
8401 * dispnew.c: #include "systime.h" to get <time.h> or <sys/time.h>,
8402 whichever is appropriate, instead of using a conditional.
8403 (Fsleep_for, Fsit_for, Fsleep_for_millisecs): Use the systime.h
8404 macros instead of HAVE_TIMEVAL conditionals.
8405 * editfns.c: #include "systime.h" to get <time.h> or <sys/time.h>,
8406 whichever is appropriate, instead of using a conditional.
8407 * fileio.c: Same.
8408 * process.c: Same.
8409 * xterm.c: Same.
8410 (wait_reading_process_input): Use the systime.h macros.
8411 * sysdep.c: #include "systime.h" to get <time.h> or <sys/time.h>,
8412 whichever is appropriate, instead of using a conditional.
8413
8414 * m/template.h: Add description of NO_SOCK_SIGIO.
8415
8416 * sysdep.c (reset_sys_modes): Doc fix.
8417
da1d68b2
JB
8418 * keyboard.c (sigfree, sigholdx, sigblockx, sigunblockx)
8419 (sigpausex): Definitions moved to syssignal.h.
615d0182
DL
8420
8421 * dispnew.c: Doc fix.
8422
8423 * systerm.h: New file, to consolidate the system-dependent
8424 terminal-handling trash.
8425 * emacs.c: #include systerm.h.
8426 (main): Use systerm.h macros instead of conditionals.
8427 * dispnew.c: #include systerm.h.
8428 (update_screen): Use EMACS_OUTQSIZE instead of the direct ioctl.
8429 * keyboard.c: #include systerm.h to get the proper FIONREAD header
8430 files, instead of using conditional.
8431
8432 * syssignal.h: Added copyright notice.
8433
8434 * emacssignal.h: Renamed to syssignal.h, to be like sysdep.c.
8435 * data.c, keyboard.c, process.c, sysdep.c, ymakefile: Changed
8436 #include directives.
8437
dff28924 84381992-02-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8439
8440 * m/intel386.h: Don't bother casting the argument to the signal
8441 function; the SIGTYPE code in config.emacs ought to take care of
8442 this.
8443
8444 * buffer.c (record_buffer): Doc fix.
8445
dff28924 84461992-02-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8447
8448 * s/iris3-6.h: #define HAVE_GETWD.
8449
dff28924 84501992-02-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8451
8452 * window.c (Fwindow_at): Accept position as two arguments, not a
8453 cons of numbers.
8454
8455 * window.c (scroll_command): Undo the Jan 31 change; do set the
8456 current buffer to the selected window's buffer. A simple
8457 set-buffer will make these two different.
8458
dff28924 84591992-02-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8460
8461 * callproc.c (Fcall_process): Clear synch_process_death and
8462 synch_process_retcode to zero before forking the process.
8463
8464 * process.c (synch_process_death, synch_process_retcode): Don't
8465 declare them extern here.
8466 * process.h (synch_process_death, synch_process_retcode): Declare
8467 them extern here, along with synch_process_alive.
8468
8469 * s/hpux.h: Define CLASH_DETECTION.
8470
8471 * window.c (init_window_once): Don't pass any arguments to
8472 make_window.
8473
8474 * keyboard.c (command_loop_1): Move the label directly_done out of
8475 the else block to just after the else block. This shouldn't
8476 change the semantics of the code, but appears to avoid a compiler
8477 bug on SCO Unix V.3.2v2.
8478
8479 * fileio.c (Fset_umask, Fumask): New functions.
8480 (syms_of_fileio): defsubr them.
8481
8482 * undo.c (Fprimitive_undo): When undoing a deletion with the point
8483 before the deleted text, use Finsert_before_markers so that the
8484 mark will end up on the other side of the text, if it's in the
8485 area at all.
8486
8487 * xdisp.c (redisplay): Properly compute TAB_OFFSET for compute_motion.
8488
8489 * keyboard.c (command_loop_1): Don't check whether cursor is at
8490 edge of screen here.
8491 * dispnew.c (direct_output_forward_char): Check here, and return
8492 zero if it can't be done. And compare the cursor position to the
8493 window boundaries, not the screen boundaries.
8494
dff28924 84951992-02-05 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8496
8497 * screen.c (Fscreen_parameters): If the screen has a minibuffer
8498 window on another screen, return the window, instead of nil.
8499 (store_screen_param): If the value of the minibuffer parameter is
8500 a window, try to make it the surrogate minibuffer window.
8501 (Qminibuffer): New variable, to support above change.
da1d68b2 8502 (syms_of_screen): Initialize and staticpro it.
615d0182
DL
8503
8504 * m/tad68k.h: New file.
8505
8506 * fileio.c (Ffile_accessible_directory_p): New function.
8507 (syms_of_fileio): defsubr it.
8508 * callproc.c: #include <errno.h>.
da1d68b2 8509 (child_setup): Accept yet another argument, current_dir.
615d0182
DL
8510 Don't try to report an error here if current_dir is inaccessible;
8511 this function is called in a vforking process. Just have the
8512 process exit with an error code.
8513 (Fcall_process): Make sure that the current directory is okay
8514 here, before we fork. Pass the current_dir argument.
8515 * process.c (create_process): Same here.
8516
8517 * callproc.c (Fcall_process): Don't assign into args[1] when nargs
8518 < 2. Instead, use a new variable called infile. Re-arranged
8519 logic which processes the BUFFER argument.
8520
dff28924 85211992-02-03 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8522
8523 * fileio.c (Fexpand_file_name): Doc fix.
8524
8525 * scroll.c (line_ins_del): Since we're calculating the array from
8526 end to beginning, make the indices go that way, and thus clearly
8527 get the right boundary. This used to ignore the [0] element, and
8528 write in the [screen_height] element, which doesn't exist.
8529
dff28924 85301992-02-03 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
8531
8532 * xdisp.c (redisplay, try_window_id): Special case for change
8533 at beginning of line, if using selective display.
8534
dff28924 85351992-01-31 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8536
8537 * m/delta88k.h: Added USUAL-OPSYS information, for the
8538 config.emacs script to use.
8539
8540 * window.c (scroll_command): Don't bother setting the current
8541 buffer to the selected window's buffer; this should always already
8542 be the case. Add check just in case.
8543
8544 * indent.c (compute_motion): Don't pack vpos and hpos into one int;
8545 use separate variables hpos/vpos and prev_hpos/prev_vpos.
8546 (vmotion): Use largest int as tovpos arg to compute_motion.
8547
dff28924 85481992-01-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8549
8550 * window.c: #include "keyboard.h" to get the Qmode_line and
8551 Qvertical_split declarations.
8552 * ymakefile (window.o): Note that this depends on keyboard.h.
8553
8554 * callproc.c (getenv_internal): Cast the pointer to the variable's
8555 value to a char *; elisp strings are unsigned char *'s. And
8556 valuelen is an int *, not an int **.
8557
8558 * scroll.c (do_scrolling): Document meaning of enable flag in
8559 temp_screen.
8560
85611992-01-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8562
da1d68b2 8563 * m-orion105.h (C_DEBUG_SWITCH, LIBS_DEBUG): Defs deleted.
615d0182
DL
8564
85651992-01-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8566
8567 * m-iris4d.h (C_SWITCH_MACHINE): New definition.
8568
dff28924 85691992-01-28 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8570
8571 * term.c: #include "keyboard.h", for Vfunction_key_map.
8572 * keyboard.h: Declare Vfunction_key_map.
8573
8574 * keyboard.h: New file, for external declarations used in
8575 processing keyboard input and events.
da1d68b2
JB
8576 * lisp.h (Qmode_line, Qvertical_split, num_input_chars)
8577 (poll_suppress_count): Extern declarations moved to keyboard.h.
615d0182 8578 * keyboard.c: #include "keyboard.h".
da1d68b2
JB
8579 (Qvscrollbar_par, Qvslider_part, Qvthumbup_part)
8580 (Qvthumbdown_part, Qhscrollbar_part, Qhslider_part)
8581 (Qhthumbleft_part, Qhthumbright_part): Moved declarations here from
615d0182
DL
8582 xfns.c, so they're with the other event heading symbols.
8583 * eval.c: #include "keyboard.h".
8584 * ymakefile (callint.o, keyboard.o, keymap.o, xfns.o, eval.o):
8585 Note that these depend on keyboard.h.
8586
8587 * xfns.c: The above symbols aren't here any more. #include
8588 "keyboard.h" to get them.
8589 (syms_of_xfns): Don't initialize or staticpro them.
8590 * keyboard.h: Added extern declarations for the above.
8591 * callint.c: #include "keyboard.h".
8592
8593 * xfns.c (Vmouse_screen_part): Variable removed, no longer used.
8594 (syms_of_xfns): Changed accordingly.
8595
8596 * xterm.c (Qmouse_moved): Variable removed, no longer used.
8597 (Qmouse_click, Qscrollbar_click): Removed. These are now event
8598 types, in keyboard.c and keyboard.h; they're no longer used in
8599 this way.
8600 (Vmouse_window, Vmouse_screen_part): Extern declarations removed.
8601 (XTread_socket): Don't assign to Vmouse_window or
8602 Vmouse_screen_part.
8603 (syms_of_xterm): Changed accordingly.
8604
da1d68b2
JB
8605 * keyboard.h (EVENT_HAS_PARAMETERS, EVENT_HEAD, EVENT_WINDOW)
8606 (EVENT_BUFFER_POSN, EVENT_SCROLLBAR_BUTTON, EVENT_WINDOW_POSN)
8607 (EVENT_TIMESTAMP, EVENT_HEAD_UNMODIFIED, EVENT_HEAD_KIND): New
615d0182
DL
8608 macros to recognize and access events that have parameters, like
8609 mouse events.
da1d68b2
JB
8610 * keyboard.c (read_char, echo_char, Fmouse_click_p)
8611 (read_key_sequence): Use them.
615d0182
DL
8612 * keymap.c: #include "keyboard.h".
8613 (access_keymap, store_in_keymap, Fsingle_key_description): Use the
8614 macros from keyboard.h.
8615
8616 * keyboard.c (Qevent_kind): New symbol, naming the property of an event
8617 header where we put the event's type.
8618 (Qfunction_key, Qmouse_click, Qscrollbar_click): New symbols, used
8619 to tag different kinds of events.
8620 (Qevent_unmodified): New symbol, naming the property
8621 of an event header where we put an unmodified version of the event
8622 header.
8623 (modify_event_symbol): Take a new argument, SYMBOL_KIND, whose
8624 value should be put on the Qevent_kind property of each symbol we
8625 make. Set the Qevent_unmodified property of each symbol we make.
8626 (make_lispy_event): Pass the appropriate SYMBOL_KIND argument to
8627 modify_event_symbol.
8628 (struct event_head, head_table): New tables, to simplify the
8629 initialization of some of the event heads.
8630 (syms_of_keyboard): Initialize and staticpro the symbols given in
8631 head_table, and put the Qevent_kind and Qevent_unmodified
8632 properties on them. Initialize all of the new symbols listed
8633 above.
8634
8635 * keyboard.c (lispy_function_keys, lispy_mouse_names): Renamed
8636 these from function_key_names and mouse_names, and moved them
8637 outside of make_lispy_event, since static doesn't work on all
8638 systems, and these can't be automatic.
8639
86401992-01-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8641
8642 * fileio.c (Fwrite_region): Remove Alliant conditional.
8643 * crt0.c: Conditionals for ALLIANT_2800.
8644 * m/alliant-2800.h: New file.
8645 * unexfx2800.c: New file.
8646
8647 * m-mips4.h (C_DEBUG_SWITCH): Alternate defn for GCC.
8648
8649 * sysdep.c [VMS] (sys_write): Special case for fixed-length
8650 with carriage-control characters.
8651
8652 * s/isc2-2.h (NOMULTIPLEJOBS): Undef this.
8653 (LIB_STANDARD): Add -lPW.
8654 (LIBS_SYSTEM): Defined.
8655 * m/intel386.h (signal): Optionally don't define it.
8656
dff28924 86571992-01-27 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8658
8659 * s/template.h: Document the SIGTYPE macro.
8660 * s/bsd4-3.h: Define the SIGTYPE macro.
8661
8662 * data.c (Fsymbol_value): Extract all the innards of this function
8663 into find_symbol_value, except the code which signals an error.
8664 (find_symbol_value): New function.
8665 * lisp.h (find_symbol_value): Declare it.
8666 * keymap.c (current_minor_maps): Use it, instead of a call to
8667 Fboundp and Fsymbol_value per every minor map, for every key
8668 sequence read.
8669
8670 * xterm.c (x_make_screen_visible): Don't raise the window. This
8671 causes the window to pop to the front every time a message
8672 appears, which isn't desirable.
8673
da1d68b2
JB
8674 * screen.c (Fselect_screen, Fdelete_screen, Fset_mouse_position)
8675 (Fmake_screen_visible, Fmake_screen_invisible, Ficonify_screen)
8676 (Fdeiconify_screen, Fscreen_parameters, Fmodify_screen_parameters)
8677 (Fset_screen_height, Fset_screen_width, Fset_screen_size)
8678 (Fset_screen_position): Use SCREEN_IS_X macro instead of testing
615d0182
DL
8679 for output_x_window.
8680 * xfns.c (adjust_scrollbars, Fx_store_cut_buffer): Same.
8681
dff28924 86821992-01-25 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8683
8684 * term.c (term_get_fkeys): New function.
8685 (term_init): Call term_get_fkeys.
8686
dff28924 86871992-01-21 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8688
8689 * editfns.c (Ffollchar, Fprevchar): Renamed to Ffollowing_char and
8690 Fprevious_char, for consistency. Renamed Sfollchar and Sprevchar
8691 too.
8692 (syms_of_editfns): Fixed defsubrs.
8693 * lisp.h (Ffollchar, Fprevchar): Renamed extern declarations as above.
dff28924 8694
615d0182
DL
8695 * editfns.c (Ffollowing_char): Return 0 at the end of the buffer,
8696 as advertised. Doc fix.
8697 (Fprevious_char): Doc fix.
8698
8699 * config.h-dist: Rearranged to define user parameters before
8700 including the machine and opsystem files, so the files can have
8701 conditionals on the parameters.
8702
dff28924 87031992-01-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8704
8705 * keyboard.c (read_key_sequence): When expanding a function key
8706 recognized with Vfunction_key_map, don't scan the expansion for
8707 further function key sequences.
8708
8709 * keyboard.c (Vfunction_key_map): Real declaration moved to
8710 keymap.c; this declaration made extern.
8711 (syms_of_keyboard): DEFVAR and initialization of Vfunction_key_map
8712 moved to keymap.c, since it should be initialized to a keymap, but
8713 we don't want to rely on Qkeymap being initialized now.
8714 * keymap.c (Vfunction_key_map): Variable moved here.
8715 (syms_of_keymap): DEFVAR and init here.
8716
8717 * keymap.c (Fglobal_key_binding): Doc fix.
8718
dff28924 87191992-01-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
8720
8721 * m-delta88.h: New file.
8722
8723 * window.c (window_scroll): New arg `noerror'.
8724 (scroll_command, Fscroll_other_window): Pass that arg.
8725
dff28924 87261992-01-15 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
8727
8728 * process.c (sigchld_handler):
8729 Set synch_process_death and synch_process_retcode.
8730
dff28924 87311992-01-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8732
8733 * config.h-dist (SIGTYPE): New macro to help give signal handlers
8734 the correct type.
8735 * s/usg5-3.h (SIGTYPE): Define this to be void.
8736 * dispnew.c (window_change_signal): Declare this to return
8737 SIGTYPE.
8738 * emacs.c (fatal_error_signal): Same.
8739 * data.c (arith_error): Same.
8740 * process.c (create_process_1, send_process_trap,
8741 create_process_sigchld, sigchld_handler): Same.
8742 (create_process): Declare sigchld according to SIGTYPE. This
8743 means we don't have to cast the return value of signal.
8744 * keyboard.c (input_poll_signal, interrupt_signal): Declare these
8745 to return SIGTYPE.
8746 (kbd_buffer_store_event): Include a forward declaration for
8747 interrupt_signal here.
8748 * sysdep.c (struct save_signal): Say the handler returns SIGTYPE
8749 instead of int.
8750 (save_signal_handlers): So we don't have to cast the return value
8751 from signal here.
8752 (sys_suspend): Declare oldsig according to SIGTYPE.
8753 (select): Declare old_trap using SIGTYPE.
8754 (select_alarm, wait_for_termination_signal): Declare these to
8755 return SIGTYPE.
8756
8757 * emacs.c: #include <termios.h>, if we have it.
8758 (fatal_error_signal): If we have termios, use tcgetpgrp to get the
8759 terminal's process group.
8760 * process.c: If we have termios, #include <termios.h> instead of
8761 <termio.h>.
8762 (process_send_signal): If we have termios, use tcgetpgrp to get
8763 the terminal's process group. Have gid default to the child's
8764 pid, to simplify the logic below.
8765 * sysdep.c (flush_pending_output): If we are using termios, make
8766 this function a no-op; since we're not in the tty's pgroup, we
8767 would get a SIGTTIN.
8768
dff28924 87691992-01-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8770
8771 * config.h-dist: Removed MAINTAIN_ENVIRONMENT clause.
8772 * callproc.c: Removed support for MAINTAIN_ENVIRONMENT.
8773 (init_callproc): Use getenv instead of egetenv to initialize
8774 Vshell_file_name.
dff28924 8775 * emacs.c (decode_env_path): Use getenv instead of egetenv
615d0182
DL
8776 * lisp.h: Removed support for MAINTAIN_ENVIRONMENT.
8777 * process.c: Same.
8778 * ymakefile: Same.
8779 * dispnew.c (init_display): Call getenv instead of egetenv.
8780
8781 * editfns.c (Fgetenv): Function moved...
8782 * callproc.c (Fgetenv): To here, and made to scan
8783 Vprocess_environment instead of using the usual C getenv function.
8784 (getenv_internal): New function.
8785 (egetenv): New function.
8786 * lisp.h: Added extern declaration for egetenv.
8787 * editfns.c (syms_of_editfns): Adjusted.
8788 * callproc.c (syms_of_callproc): Adjusted.
8789
8790 * window.h (minibuf_prompt_width): Declare this extern here, after
8791 minibuf_prompt.
8792 minibuf.c: Don't extern declare it here.
8793 indent.c: As above.
8794
8795 * dispnew.c (buffer_posn_from_coords): If there is a prompt in the
8796 minibuffer, account for its width when computing the buffer
8797 position.
8798
8799 * Makefile (doall): Explicitly export CC to the xmakefile.
8800
8801 * ymakefile: Use /* */ around comments; # confuses cpp.
8802
8803 * ymakefile: Note that ralloc.o depends on mem_limits.h, xterm.h,
8804 and config.h.
8805 Note that vm-limit.o depends on mem_limits.h.
8806
8807 * lread.c (read_escape): Return \a as '\007', not '\a'; the latter
8808 isn't portable, and this routine would have to be revised anyway
8809 to deal with anything other than ASCII.
8810
8811 * keymap.c (current_minor_maps): Rewritten not to use
cc4a96c6 8812 function-local static variables, to accommodate DGUX.
615d0182
DL
8813
8814 * xterm.h (UNBLOCK_INPUT): Replace "abort ()" with "(abort (),
8815 0)", to avoid type conflicts on odd systems like Ultrix.
8816
8817 * xrdb.c: Include <sys/types.h>, and declare getuid to return uid_t.
8818
8819 * xdisp.c (redisplay_window): Use SET_PT macro instead of
8820 assigning to point.
8821 insdel.c (insert_from_string): Same.
8822
8823 * xterm.c (XTcursor_to): Declare it static at the function
8824 definition, as well as at the top of the file.
8825 (dumpglyphs): Removed declarations for buf and cp; these variables
8826 are never used.
8827
8828 * lisp.h (NULL): Renamed to NILP, so as not to conflict with
8829 <stdio.h>, and <stddef.h>. All callers changed; all
8830 #undefinitions of NULL removed.
8831
dff28924 88321992-01-12 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8833
8834 * xdisp.c (message): #ifdef NO_ARG_ARRAY, make a local block to
8835 declare the explicit argument array.
8836
8837 * config.h-dist: Instead of reaching the machine- and
dff28924 8838 system-dependent files through symlinks, replace the strings
615d0182 8839
dff28924 88401992-01-09 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8841
8842 * keyboard.c (stuff_buffered_input): Don't forget to increment
8843 kbd_fetch_ptr while looping through kbd_buffer.
8844
dff28924 88451992-01-08 Jim Blandy (jimb@occs.cs.oberlin.edu)
615d0182
DL
8846
8847 * keyboard.c (read_avail_input): Don't forget to fill in the
8848 screen field in events read from the terminal.
8849 * sysdep.c (kbd_input_ast, read_input_waiting): Call
8850 kbd_buffer_store_event with a `struct input_event *', not a
8851 character or a Lisp_Object.
8852
dff28924 88531991-12-21 Jim Blandy (jimb@occs.cs.oberlin.edu)
615d0182
DL
8854
8855 * bytecode.c (docall): Don't remove protection from the arguments
8856 to Ffuncall.
8857
dff28924 88581991-12-20 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
8859
8860 * keyboard.c (Vfunction_key_map): New variable.
8861 (read_key_sequence): Changed to recognize and substitute bindings
8862 in Vfunction_key_map at any point in the sequence, unless they
8863 conflict with ordinary bindings.
8864 (syms_of_keyboard): DEFVAR, document, and initialize
8865 Vfunction_key_map.
8866
dff28924 88671991-12-19 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
8868
8869 * keymap.c (Vminor_mode_map_alist): New variable, to support
8870 keymaps for minor modes.
8871 (current_minor_maps, Fminor_mode_key_binding,
8872 Fcurrent_minor_mode_maps): New functions.
8873 (Fkey_binding): Rewritten to scan for minor mode bindings too.
8874 (syms_of_keymap): DEFVAR, document, and initialize
8875 Vminor_mode_map_alist, and defsubr the new Ffunctions.
8876 (describe_buffer_bindings): Describe the bindings established by
8877 minor modes too.
8878 * keyboard.c (follow_key): New function, to support...
8879 (read_key_sequence): Completely rewritten to handle scanning an
8880 arbitrary number of keymaps at a time.
8881
8882 * keyboard.c (Fread_key_sequence): GCPRO keybuf, since it can hold
8883 lisp expressions while waiting for input. Don't pass too many
8884 arguments to read_key_sequence.
8885 (command_loop_1): Don't pass too many arguments to read_key_sequence.
8886
8887 * keyboard.c (add_command_key): New function; there are several
8888 places that add keys to this_command_keys, so we make one function
8889 to do the work.
8890 (read_char, Fexecute_extended_command): Call add_command_key
8891 instead of writing out its code again.
8892 (init_keyboard): Allocate this_command_keys according to
8893 this_command_keys_size.
8894
8895 * lread.c (read1): Change comment to use `share-lib' instead of `etc'.
8896 * doc.c (Fdocumentation_property, Fsnarf_documentation): Update
8897 docstring similarly.
8898 (Fsnarf_documentation): Use "../share-lib/" instead of "../etc/"
8899 to find doc file while dumping.
8900 * unexaix.c: Similar doc fix.
8901
8902 * ymakefile (etcdir): Variable removed.
8903 (libsrc, archlib, sharelib): New variables, to take the place of
8904 etcdir.
8905
dff28924 89061991-12-18 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
8907
8908 * ymakefile (CFLAGS): Don't automatically include C_DEBUG_SWITCH
8909 in the value for CFLAGS; the configuration script will take care
8910 of choosing the debugging and optimization switches.
8911
8912 * config.h-dist: Copy the GLYPH definitions from config.h to here.
8913
dff28924 89141991-12-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
8915
8916 * abbrev.c (Fexpand_abbrev): Run pre-abbrev-expand-hook.
8917 (syms_of_abbrev): Define that variable.
8918
dff28924 89191991-12-13 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
8920
8921 * m/m-*.h: Since the m- is now redundant, renamed all files to
8922 remove it, and changed references within files.
8923 * s/s-*.h: Same business.
8924
dff28924 89251991-12-11 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
8926
8927 * config.h-dist (MULTI_SCREEN): Define this automatically when
8928 we're using a window system.
8929
dff28924 89301991-12-09 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
8931
8932 * m/m-*.h (i.e. all machine config files): Added USUAL-OPSYS
8933 comments to tell the configuration script what sort of operating
8934 system this machine typically runs.
8935
8936 * config.h-dist (MScreenWidth, MScreenLength): Deleted; no longer
8937 used.
8938
dff28924 89391991-12-08 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
8940
8941 * editfns.c (Fcurrent_time): New function, to return the current
8942 time as a number, like the Unix time(3) function. This might be
8943 fun to port.
8944 (syms_of_editfns): defsubr it.
8945
dff28924 89461991-12-05 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
8947
8948 * keymap.c (Vminor_mode_map_alist): New variable.
8949 (current_minor_maps): New function.
8950 (Fcurrent_minor_mode_maps): New function.
8951 (syms_of_keymap): DEFVAR, document, and initialize
8952 Vminor_mode_map_alist, and defsubr Fcurrent_minor_mode_maps.
8953
8954 * callproc.c (Vdata_directory): New lisp variable, for the
8955 directory containing architecture-independent data files.
8956 (init_callproc): Initialize Vdata_directory from PATH_DATA, and
8957 make sure it exists. Renamed execdir to tempdir, because we use
8958 it for both Vexec_directory and Vdata_directory.
8959 (syms_of_callproc): Doc fix for Vexec_directory, new DEFVAR_LISP
8960 for Vdata_directory.
8961 * paths.h-dist (PATH_DATA): New path macro, to initialize
8962 Vdata_directory.
8963 * doc.c (get_doc_string): Use Vdata_directory to find the
8964 docstrings, not Vexec_directory.
8965 * lisp.h (Vdata_directory): New extern declaration, for above
8966 users.
8967 * config.h-dist: Changed references to ../etc to ../share-lib.
8968
8969 * callint.c (Fcall_interactively): For the 'k' interactive code,
8970 cast the type of the symbol name before passing it to error.
8971
dff28924 89721991-12-02 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
8973
8974 * keyboard.c (make_lispy_movement): Move call to
8975 mouse_position_hook from here...
8976 (kbd_buffer_get_event): To here, for symmetry with non-movement
8977 events.
8978
8979 * keyboard.c (kbd_buffer_get_event): Set Vlast_event_screen for
dff28924 8980 mouse movements, too.
615d0182 8981
dff28924 89821991-11-27 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu)
615d0182
DL
8983
8984 * alloca.c (alloca): Add parens to make precedence clearer.
8985
dff28924 89861991-11-26 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
615d0182 8987
da1d68b2 8988 * search.c: Need to include sys/types.h because of recent mod to
615d0182
DL
8989 regex.h.
8990
dff28924 89911991-11-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
8992
8993 * bytecode.c: BYTE_CODE_METER and BYTE_CODE_SAFE undefined by default.
8994 (METER_CODE): Define same name whether metering or not.
8995 (BinsertN): New byte code.
8996 (Fbyte_code): Improve overflow/underflow error messages.
8997 (docall): Put back previously lost code to remove protection
8998 from funcall args.
8999
dff28924 90001991-11-25 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9001
9002 * lisp.h (make_array): New extern declaration.
9003
9004 * alloc.c (make_sequence): Renamed to make_array; more accurate.
9005 * keyboard.c (Fread_key_sequence, Fthis_command_keys): Callers fixed.
9006 * macros.c (Fend_kbd_macro): Callers fixed.
9007
dff28924 90081991-11-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9009
9010 * keyboard.c (cmd_error): If an error occurs before somebody has
9011 provided a screen to print it on, print it to stderr and exit
9012 Emacs. Handle batch-mode errors with the same code.
e1dbe924 9013 * lisp.h (Qexternal_debugging_output): New extern declaration, for
615d0182
DL
9014 use in cmd_error.
9015
9016 * screen.c (Fscreen_pixel_size, Fset_screen_position): Doc fix.
9017
9018 * window.c (Fwindow_at): Typecheck COORDINATES more thoroughly.
9019
9020 * screen.c (read_mouse_position): Function deleted.
9021 (Fread_mouse_position): Renamed to Fmouse_position, and changed to
9022 use mouse_position_hook.
9023 (syms_of_screen): Adjusted accordingly.
9024 * xfns.c (x_read_mouse_position): Function deleted.
9025
9026 * screen.h (SCREENP): The non-MULTI_SCREEN case used to say this
9027 was false for all objects, but it should be true for the terminal
9028 screen, so make its definition the same as in the MULTI_SCREEN
9029 case.
9030
9031 * screen.h (SCREEN_LIVE_P): New predicate.
9032 (CHECK_LIVE_SCREEN): New type-checking macro.
9033 (Qlive_screen_p): New error-reporting symbol.
9034 * screen.c (Qlive_screen_p): Declare the new symbol.
9035 (Flive_screen_p): New lisp predicate.
9036 (syms_of_screen): Initialize, staticpro, and defsubr the lot.
9037 * dispnew.c (Fredraw_screen): Use CHECK_LIVE_SCREEN.
da1d68b2
JB
9038 * screen.c (Fscreen_root_window, Fscreen_selected_window)
9039 (Fnext_screen, Fset_mouse_position, Frestore_screen_configuration)
9040 (Fmake_screen_visible, Fmake_screen_invisible, Ficonify_screen)
9041 (Fdeiconify_screen, Fscreen_visible_p, Fredirect_screen_focus)
9042 (Fscreen_focus, Fmodify_screen_parameters, Fset_screen_height)
9043 (Fset_screen_width, Fset_screen_size, Fset_screen_position)
9044 (Fselect_screen): Use CHECK_LIVE_SCREEN.
615d0182
DL
9045 * window.c (Fwindow_at, Fcurrent_window_configuration): Use
9046 CHECK_LIVE_SCREEN.
9047 * xfns.c (Ffocus_screen, Fx_pixel_width, Fx_pixel_height): Use
9048 CHECK_LIVE_SCREEN.
9049
9050 * screen.c (Fdelete_screen): Do nothing if SCREEN is already
9051 deleted.
dff28924 9052
615d0182
DL
9053 * screen.c (Qscreenp): Staticpro this symbol.
9054
9055 * xfns.c (Fx_create_screen): Doc fix.
9056
9057 * xfns.c (Fx_create_screen): Give the screen a minibuffer if the
9058 'minibuffer parameter is t or nil; nil is the default value for
9059 omitted parameters, and t is intuitive.
9060
dff28924 90611991-11-14 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9062
9063 * eval.c (specbind): Check that the thing being bound is a symbol.
9064 (funcall_lambda): Signal an invalid-function error if the
9065 arguments are not all symbols.
9066
dff28924 90671991-11-08 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9068
9069 * screen.c (Fselect_screen): Don't select dead screens.
9070 * print.c (print): Print dead screen objects starting with
9071 "#<dead screen".
9072
9073 * keyboard.c (read_key_sequence): Make sure that the compound
9074 events actually have valid window fields.
9075
9076 * window.c (next_screen_window): Function deleted; Fnext_window
9077 can now do its job properly.
9078 (window_from_coordinates, window_loop): Call Fnext_window instead
9079 of next_screen_window.
9080
9081 * xdisp.c (redisplay): Don't clear out minibuffer windows in the
9082 midst of the screen loop here. That's confusing.
9083 (redisplay_window): Since this needs special code to detect
9084 minibuffers anyway, put it here. And clear all the lines of a
9085 multi-line minibuffer, not just the first one.
9086
dff28924 90871991-11-07 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9088
9089 * screen.c (Fdelete_screen): When searching Vscreen_list for a new
9090 value for last_nonminibuf_screen, remember that the screens live
9091 in the cars of the list, not the cdrs.
9092
9093 * xterm.c (x_make_screen_visible): Rearranged for clarity.
9094
9095 * xdisp.c (echo_area_display): Rearranged for clarity.
9096
dff28924 90971991-11-06 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9098
9099 * screen.c (next_screen, prev_screen): New meaning for MINI_SCREEN
9100 argument helps implement the behavior of Fnext_window.
9101 (Fnext_screen): Document the new behavior.
9102
9103 * screen.c (make_minibuffer_screen): Do set has_minibuffer for
9104 minibuffer-only screens.
9105 (Fscreen_parameters): Correctly generate value of minibuffer
9106 parameter using SCREEN_HAS_MINIBUF and SCREEN_MINIBUF_ONLY_P.
9107 * screen.h (SCREEN_HAS_MINIBUF): New predicate.
9108 * dispnew.c (change_screen_size): Use it.
9109 * screen.c (Fdelete_screen): Use it.
9110
9111 * screen.c (Vglobal_minibuffer_screen): Renamed
9112 Vdefault_minibuffer_screen to better describe its significance.
9113 (make_screen_without_minibuffer, syms_of_screen): Adjusted.
9114 * xfns.c (Fx_create_screen): Doc string adjusted.
9115
9116 * xdisp.c (display_mode_line): Make the code which names the
9117 screen after the current buffer not depend on
9118 Vglobal_minibuffer_screen.
9119 * xterm.c (Vglobal_minibuffer_screen): Don't declare this extern
9120 here; it's never used.
9121
dff28924 91221991-11-05 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9123
9124 * screen.c (Fdelete_screen): Document the fact that surrogate
9125 minibuffer screens may not be deleted.
9126
9127 * screen.h (SCREEN_MINIBUF_ONLY_P): New predicate, true iff the
9128 screen's only window is a minibuffer, aka a "minibuffer screen" or
9129 a "minibuffer-only" screen.
9130 * dispnew.c (change_screen_size): Use it.
da1d68b2
JB
9131 * screen.c (Fselect_screen, next_screen, prev_screen)
9132 (Fdelete_screen): Use it.
615d0182
DL
9133 * window.c (Fdisplay_buffer): Use it.
9134
9135 * screen.c (next_screen, prev_screen): Make MINIBUF a lisp
9136 boolean, not a C boolean.
9137 (Fnext_screen, Fdelete_screen): Changed to fit.
9138 * window.c (Fnext_window, Fprevious_window): Changed to fit.
9139
9140 * screen.c (make_screen_without_minibuffer): Error string improvement.
9141
9142 * screen.c (syms_of_screen): Doc grammar fix for Vemacs_iconified.
9143
9144 * screen.c (next_screen): Added some sanity checks, rewrote comments.
9145
9146 * screen.h (Vglobal_minibuffer_screen): Don't declare this. It
9147 shouldn't be used for anything but screen creation.
9148 * window.c (Fminibuffer_window): Vglobal_minibuffer_screen is not
9149 necessarily the screen containing the current minibuffer window.
9150 Also, call choose_minibuf_window; it does much of the work here.
9151 (Fnext_window): Used to insist on looping through all screens if
9152 Vglobal_minibuffer_screen was non-nil. Now includes screen's
9153 minibuffer window according to MINIBUF, no matter what screen it's
9154 on, and ignores Vglobal_minibuffer_screen. Loop termination logic
9155 cleaned up. Clarified doc string.
9156 (Fprev_window): Same problems as Fnext_window, above.
9157 * screen.c (Vglobal_minibuffer_screen): Documentation rewritten to
9158 emphasize that it is only a parameter of the creation of
9159 minibufferless screens, and not an indication of where the
9160 minibuffer is.
9161 (prev_screen): Used to assume that Vglobal_minibuffer_screen was
9162 the only minibuffer-only screen, and would enter an infinite loop
9163 if Vglobal_minibuffer_screen was the only screen in the list.
9164 Rewritten to fix these problems.
9165 * minibuf.c (Vglobal_minibuffer_screen): Don't declare it extern
9166 here; it's not used.
9167
9168 * editfns.c (Fmessage): Don't call Fmake_screen_visible here.
9169 * xdisp.c (message, message1): Call it here, so that Emacs C
9170 functions like Fy_or_n_p make the screen visible too.
9171
dff28924 91721991-11-04 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9173
9174 * keyboard.c (readable_events): If EVENT_QUEUES_EMPTY, we can
9175 short-circuit and say no. Otherwise, if do_mouse_tracking, we can
9176 short-circuit and say yes. These things let us scan the event
9177 queue less often.
9178
9179 * termhooks.h (mouse_tracking_enable_hook): Replaced by...
9180 (mouse_moved, mouse_position_hook): It turns out that it is
9181 possible and no less efficient simply to tell Emacs if the mouse
9182 has moved since last noticed, and let it ask for the current mouse
9183 position; X's pointer motion hints are a cool thing.
9184 * term.c (mouse_tracking_enable_hook): Replaced by...
9185 (mouse_position_hook): New, simpler interface.
9186 * keyboard.c (struct movement, movement_buf, movement_ptr):
9187 Replaced by...
10d1d0af 9188 (mouse_moved): This flag, to be used in conjunction with
615d0182
DL
9189 mouse_position_hook.
9190 (EVENT_QUEUES_EMPTY): Adjusted to use mouse_moved instead of
9191 movement_buf and movement_ptr.
9192 (tracking_off, Ftrack_mouse): Don't call mouse_tracking_enable
9193 hook.
9194 (note_mouse_position): Moved to xterm.c.
9195 (get_mouse_position): Replaced by mouse_position_hook.
9196 (make_lispy_event): Movement event generation code moved out to a
9197 separate function...
9198 (make_lispy_movement): Create a mouse movement event for the
9199 current mouse position. Use mouse_position_hook instead of
9200 get_mouse_position. Added static declaration for this above...
9201 (kbd_buffer_get_event): Use mouse_moved instead of movement_buf
9202 and movement_ptr. Call make_lispy_movement instead of
9203 make_lispy_event.
9204 (init_keyboard): Initialize do_mouse_tracking. Don't init
9205 movement_ptr and movement_buf.
9206 * xterm.h (STANDARD_EVENT_SET): Add PointerMotionMask and
9207 PointerMotionHintMask to the set.
9208 * xterm.c (pixel_to_glyph_translation): Renamed to
9209 pixel_to_glyph_coords, made static, simplified to take advantage
9210 of constant-size characters, and extended to return the bounding
9211 rectangle of the glyph returned.
9212 (construct_mouse_click): The 'button' field of a button event is
9213 the button number, not a mask; convert it to a mask before
9214 frobbing x_mouse_grabbed. Call pixel_to_glyph_coords properly.
9215 (last_mouse_screen, last_mouse_glyph): New variables, to keep
9216 track of when the pointer has moved to a different glyph.
9217 (note_mouse_position): Moved here from keyboard.c and made static.
9218 Check if the new mouse position is over a new glyph. If it is,
9219 set mouse_moved flag; otherwise, call XQueryPointer to get the
9220 next motion event.
9221 (XTmouse_tracking_enable): No longer needed, since pointer motion
9222 hints let us implement the simpler mouse position hook.
9223 (XTmouse_position): New hook. Call XQueryPointer to get the
9224 current mouse position and request notification about the next
9225 mouse movement. Clear the mouse_moved flag.
9226 (pixel_to_glyph_coords, construct_mouse_click,
9227 note_mouse_position, XTmouse_position): Put these all on the same
9228 page.
da1d68b2 9229 (XTread_socket): Case MotionNotify, call note_mouse_position with
615d0182
DL
9230 the right args; don't call pixel_to_glyph_translation.
9231 (x_term_init): Set mouse_position_hook instead of
9232 mouse_tracking_enable_hook.
9233
dff28924 92341991-10-31 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9235
9236 * xdisp.c (redisplay_window): When trying to avoid starting
9237 display at the end of the buffer: check that startp < ZV, not
9238 startp <= ZV.
9239
dff28924 92401991-10-29 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9241
9242 * xterm.c (x_do_pending_expose, XTmouse_tracking_enable): Use
9243 SCREEN_IS_X instead of testing output_method directly.
9244
dff28924 92451991-10-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9246
9247 * xdisp.c (redisplay): In the single-screen optimization, always
9248 update the minibuffer's screen as well as the selected screen, no
9249 matter what the echo_area_glyphs are. This makes sure that
9250 messages get cleared after a keystroke.
9251
dff28924 92521991-10-25 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9253
9254 * callint.c (Finteractive): Doc fix.
9255
9256 * xterm.c (XTmouse_tracking_enable): Block input while changing
9257 the screens' input selection masks.
9258
9259 * window.c (change_window_height): If the window being resized is
9260 the only window of the screen, no size change is possible; make
9261 the delta be zero. Exit without "changing" the sizes of any
9262 windows if the delta is zero.
9263
9264 * alloc.c: Don't bother to include xterm.h.
9265 (Fgarbage_collect): Don't bother to BLOCK_INPUT here,
9266 since we don't cons in the input handler.
9267
dff28924 92681991-10-21 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9269
9270 * window.c (init_window_once): Set last_nonminibuf_screen to the
9271 initial terminal screen, so that poor Fdisplay_buffer doesn't try
9272 to create a new screen on a terminal.
9273
92741991-10-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9275
9276 * m-intel386.h (signal): Optionally don't define it.
9277 * s-isc2-2.h (DONT_DEFINE_SIGNAL): Define this.
9278
dff28924 92791991-10-18 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9280
9281 * scroll.c (line_ins_del): Don't calculate costs off the end of mf
9282 and ov; use < in loop condition, not <=.
9283
9284 * scroll.c (scroll_cost): Logic rearranged.
9285
9286 * dispnew.c (change_screen_size): Change "SCREEN_IS_TERMCAP
b344d29d 9287 (screen) == output_termap" to "SCREEN_IS_TERMCAP (screen)".
615d0182
DL
9288 (window_change_signal): Use SCREEN_IS_TERMCAP predicate instead of
9289 testing output_method_directly.
9290
dff28924 92911991-10-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9292
9293 * xterm.h (STANDARD_EVENT_SET): Include ButtonReleaseMask in
9294 STANDARD_EVENT_SET.
9295 * xterm.c (XTmouse_tracking_enable): Don't bother or'ing
9296 ButtonReleaseMask with the STANDARD_EVENT_SET.
9297
9298 * dispnew.c (buffer_posn_from_coords): If the coordinates are off
9299 past the end of a line, return them as being *before* the newline,
9300 not after.
9301
9302 * keyboard.c (kbd_buffer_get_event): Set input_pending after
9303 reading the event, no matter what sort of event it is - i.e., move
9304 the assignment to input_pending outside of the event lispifying
9305 conditional.
9306
9307 * keyboard.c (note_mouse_position): Don't record a "new" mouse
9308 position unless it really differs from the last one returned.
9309
9310 * keyboard.c (kbd_buffer_read_char): Renamed to
9311 kbd_buffer_get_event, for consistency with kbd_buffer_store_event.
9312
da1d68b2 9313 * window.c (Fwindow_at): Modified to take the coordinates as a
615d0182
DL
9314 pair, not a two-element list, for ease of use and compatibility
9315 with events. Make SCREEN argument second and optional.
9316 (Fcoordinates_in_window_p): Modified to take and return the
9317 coordinates as above, and to distinguish the right border as well
9318 as the mode line.
9319 (window_from_coordinates): Modified to distinguish the right
9320 border as well as the mode line.
9321 * lisp.h (Qmode_line, Qvertical_split): Declare this extern, from
9322 keyboard.c.
9323 * keyboard.c (make_lispy_event): Distinguish a window's right
9324 border from its text area.
9325
9326 * window.c (coordinates_in_window): Make it static.
9327
9328 * window.c (Flocate_window_from_coordinates): Renamed to
da1d68b2 9329 Fwindow_at.
615d0182
DL
9330 (syms_of_window): Adjusted.
9331 * lisp.h: Adjusted to say so.
9332
9333 * screen.c (Fcoordinates_in_window_p, window_from_coordinates,
9334 Flocate_window_from_coordinates): Functions moved to window.c.
9335 (syms_of_screen): Adjusted.
9336 * window.c (Fcoordinates_in_window_p, window_from_coordinates,
9337 Flocate_window_from_coordinates): Here they are.
9338 (syms_of_window): Adjusted.
9339 * lisp.h: Adjusted to say so.
9340
dff28924 93411991-10-14 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9342
9343 * xterm.c (XTclear_end_of_line): This used to try to get the
9344 cursor out of the way by comparing the line being cleared with
9345 s->cursor_y, which is meaningless; it should have compared it with
9346 s->phys_cursor_y. Changed to just mark the cursor as cleared if
9347 it's in the area we're clearing.
9348
dff28924 93491991-10-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
9350
9351 * m-intel386.h: Fix typo in #endif.
9352
dff28924 93531991-10-12 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9354
9355 * callint.c (Fcall_interactively): Added new interactive spec 'K',
9356 for mouse clicks. Added explanation to doc string. Removed 'e'
9357 spec, which didn't work with the new input model anyway.
9358 * keyboard.c (Fmouse_click_p): New function.
9359 (syms_of_keyboard): defsubr it.
9360
9361 * keyboard.c (EVENT_QUEUES_EMPTY): Clarified comment.
9362 (tracking_off): Change "if (!readable_events)" to
9363 "if (!readable_events ())".
9364 (Ftrack_mouse): Doc fix.
9365 (kbd_buffer_read_char): Fix brainos in tossing of unwanted events.
9366 Don't use EVENT_QUEUES_EMPTY to set input_pending; call
9367 readable_events.
9368
dff28924 93691991-10-11 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9370
9371 * keyboard.c (Qmode_line): New quoted symbol.
9372 (syms_of_keyboard): Initialize and staticpro it.
9373 (make_lispy_event): Use it to indicate when a mouse position is in
9374 a window's mode line.
9375
9376 * xterm.c (XTread_socket): Consider the window to be resized if
9377 either the character or pixel dimensions have changed; this will
9378 catch font size changes.
9379
dff28924 93801991-10-08 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9381
9382 * process.c (wait_reading_process_input): Removed all the
9383 exceptional condition stuff. Emacs lacks any way to respond to
9384 such a state, and selecting for it without responding to it can make
9385 Emacs loop indefinitely.
9386
9387 * xterm.c (XTread_socket, construct_mouse_click): Make sure that
9388 all enqueued events have their timestamp field set.
9389 * termhooks.h (struct input_event): Doc fix.
9390 * keyboard.c (last_event_timestamp): New variable.
9391 (get_mouse_position, kbd_buffer_store_event,
9392 kbd_buffer_read_char): Make sure to fill in Vlast_event_screen and
9393 last_event_timestamp.
9394 * xselect.c (mouse_timestamp): Don't use this anymore.
9395 (last_event_timestamp): Use this instead.
da1d68b2
JB
9396 (Fx_own_selection, Fx_own_clipboard, Fx_get_selection)
9397 (Fx_get_clipboard): Use last_event_timestamp instead of
615d0182
DL
9398 mouse_timestamp.
9399
9400 * xdisp.c (redisplay): Don't pass extra arguments to
9401 update_screen.
9402
9403 * keyboard.c (echo_truncate): Don't call echo here; this results
9404 in extraneous echoing of characters.
9405 (read_key_sequence): After calling echo_truncate, call echo_char
9406 to put the character we just read into the minibuffer, if
9407 appropriate.
9408
9409 * keyboard.c (read_key_sequence): Removed unused argument
9410 no_redisplay.
9411
dff28924 94121991-10-01 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9413
9414 * xfns.c (x_create_screen): Initialize phys_cursor_x to -1, to
9415 indicate that the screen has no displayed cursor.
9416
9417 * xfns.c (x_create_screen): Let InternalBorderWidth default to 1.
9418
9419 * xterm.c (x_display_bar_cursor): Declare this to be static void.
9420
9421 * xterm.c (XTupdate_begin): Don't turn off the cursor. This makes
9422 ugly flickering. Instead, make it okay for XTins_del_lines to do
9423 so:
9424 * screen.h (struct screen): New field phys_cursor_glyph, keeping
9425 track of the glyph under the currently displayed cursor. Since
9426 current_glyphs is sometimes inaccurate when we want to undraw the
9427 cursor (as when XTins_del_lines is called from do_scrolling), we
9428 can't always get the GLYPH from there.
9429 * xterm.c (x_draw_single_glyph): Take the glyph to draw as an
9430 argument, instead of taking it from the screen matrix.
9431 (x_display_box_cursor): Set and use s->phys_cursor_glyph.
9432
9433 * ymakefile: Note that scroll.o and xmenu.o depend on screen.h.
9434
dff28924 94351991-09-29 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9436
9437 * keyboard.c (make_lispy_event): When building mouse movement
9438 event, use `m', not `event', dummy.
9439
dff28924 94401991-09-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9441
9442 * screen.c (Fscreen_parameters): Return the proper value for the
9443 'minibuffer parameter for minibuffer-only screens.
9444
9445 * xdisp.c (redisplay_window): When the start position is forced,
9446 constrain it to be within the visible region anyway.
9447
9448 * xterm.c (XTwrite_glyphs): Instead of turning off the cursor
9449 before we write, just notice if we wrote over it.
9450
9451 * xfns.c (x_decode_color): If a screen has two planes, then it is
9452 considered a color screen, and we should look up the color value.
9453
9454 * ymakefile: Include xselect.o and xrdb.o in XOBJ even when
9455 HAVE_X_MENU is not defined.
9456
9457 * fns.c (Fdelete): This used to be named Fdelq; Roland forgot to
9458 change the function name in his August 17 change.
9459 (syms_of_fns): defsubr Fdelete.
9460
94611991-09-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9462
9463 * alloca.c: Do nothing if alloca is defined as a macro.
9464
dff28924 94651991-09-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
9466
9467 * m-pfa50.h: New file.
9468
dff28924 94691991-09-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
9470
9471 * unexec.c: Add conditionals for COFF_ENCAPSULATE.
9472
94731991-08-17 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9474
9475 * fns.c (Fdelete): New fn. We have member now; we should have
9476 delete too.
9477
dff28924 94781991-08-16 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9479
9480 * xfns.c (x_get_arg): Clean bad characters out of the screen name
9481 before using it as a resource key.
9482
9483 * abbrev.c (Fexpand_abbrev): Don't let capitalization go past point.
9484
9485 * sysdep.c (sys_suspend): Don't use & before array name.
9486
9487 * sysdep.c [BROKEN_FIONREAD]: Undefine FASYNC.
9488
9489 * m-tandem-s2.h (START_FILES, LIB_STANDARD): Added.
9490
9491 * s/s-aix3-1.h: Define HAVE_TCATTR.
9492
9493 * xfns.c (Fx_grab_cursor, Fx_ungrab_cursor): Functions removed.
9494
dff28924 94951991-08-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9496
9497 * bytecode.c (Qbyte_code_meter): New.
da1d68b2
JB
9498 (Bend_of_line, Bset_marker, Bmatch_beginning, Bmatch_end, Bupcase)
9499 (Bdowncase, BRgoto, BRgotoifnil, BRgotoifnonnil)
9500 (BRgotoifnilelsepop, BRgotoifnonnilelsepop, BlistN, BconcatN): New
615d0182
DL
9501 byte codes.
9502 (Fbyte_code): Implemented new codes listed above. Added code to
9503 count how many times a function is called.
9504 (syms_of_bytecode): Initialize and staticpro Qbyte_code_meter.
dff28924 9505
615d0182
DL
9506 * xfns.c (x_window): When setting the class hints, use the
9507 screen's name as the res_name.
9508
9509 * xfns.c (x_make_screen_name): New function.
9510 (Fx_create_screen): Use x_get_arg to find screen name; if none has
9511 been specified, use x_make_screen_name; don't set the name again
9512 at the bottom.
9513 (x_get_arg): If SCREEN_NAME is nil, don't pass any class to
9514 Fx_get_resource.
9515
9516 * xfns.c (x_get_arg, x_default_parameter): Take an extra argument
9517 TYPE, instead of encoding the type in the first letter of the
9518 property name.
9519
95201991-08-15 Roland McGrath (roland@albert.gnu.ai.mit.edu)
9521
9522 * buffer.c (Fkill_all_local_variables): Don't pass
9523 Fmake_local_variable too many args. Use Fset instead.
9524
95251991-08-14 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9526
9527 * xfns.c (emacs_class): Variable removed.
9528 (EMACS_CLASS): New macro, specifying Emacs class for xrdb use.
9529 Use a class of "Emacs", to be compatible with previous versions.
9530 (Fx_get_resource, x_window, Fx_open_connection): Use macro here.
9531
9532 * buffer.c (Fgenerate_new_buffer): Function moved to
9533 lisp/files.el.
9534 (Fgenerate_new_buffer_name): New function which does only the
9535 name-choosing work Fgenerate_new_buffer used to do.
9536 (Frename_buffer): Added second optional argument DISTINGUISH,
9537 which lets rename_buffer use generate-new-buffer-name if non-nil.
9538 Return the name the buffer was given.
9539 Do nothing if new name is already buffer's name.
9540
9541 * xfns.c (Fx_get_resource): Take third argument CLASS, and require
9542 it to be specified whenever NAME is.
9543 All callers changed.
9544 [not HAVE_X11] (Fx_get_default): Only take the one arg.
9545 [not HAVE_X11] (Fx_get_resource): Toss the second two args.
9546
dff28924 95471991-08-13 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9548
9549 * xfns.c (Fx_close_current_connection): Add \n to error message.
9550
9551 * keyboard.c (make_lispy_event): Added HP keys into the
9552 function_key_names array.
9553 * xterm.c (XTread_socket): For KeyPressed events, strip the
9554 keysym's vendor-specific bit, and take a shot at fitting it into
9555 the Emacs key numbering.
9556
9557 * screen.c (Vdefault_screen_alist): Definition moved from
9558 screen.el to here.
9559 (syms_of_screen): DEFVAR_LISP and initialize it here.
9560 * screen.h: Declare it here.
9561 * xfns.c (x_get_arg): Use it here.
9562
9563 * screen.c (make_screen): When choosing a buffer for the screen's
9564 root window, shy away from buffers whose names start with a space.
9565
dff28924 95661991-08-11 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9567
9568 * process.c (exec_sentinel, exec_sentinel_unwind): Move these
9569 above status_notify.
9570
9571 * eval.c (Qinhibit_quit): New variable, to support Aug 5 changes
9572 to process.c.
9573 (syms_of_eval): Initialize and staticpro above.
da1d68b2 9574 * lisp.h: Added extern declaration for above.
615d0182 9575
dff28924 95761991-08-10 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9577
9578 * regex.c (re_search_2): When searching with the fastmap, test for
9579 a translate table outside of the loop, not inside the loop.
9580
dff28924 95811991-08-10 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
9582
9583 * fns.c (Fequal): Don't crash on circular structure.
9584 (internal_equal): New subroutine does the recursion.
9585
9586 * print.c (print): Recognize circular car pointers.
9587
dff28924 95881991-08-10 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9589
9590 * process.c (wait_reading_process_input): Ignore exceptional
9591 conditions on the keyboard input.
9592
dff28924 95931991-08-06 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
9594
9595 * lisp.h: Fiddled with formatting.
9596
9597 * process.c (exec_sentinel_unwind): New function.
9598 (exec_sentinel): Restore the process's sentinel, using an
9599 unwind_protect.
9600
dff28924 96011991-08-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
9602
9603 * keyboard.c: Doc fix.
9604
dff28924 96051991-08-05 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9606
9607 * dired.h: Don't include search.h; it doesn't exist.
9608
9609 * process.c (read_process_output, exec_sentinel): Bind
9610 Qinhibit_quit to true and call the filter directly instead of
9611 through a condition-case.
9612 (run_filter): Removed.
9613 (this_filter, filter_process, filter_string): Variables now
9614 unnecessary.
9615
da1d68b2 9616 * xfns.c (Fx_get_resource): Take the screen name as an optional
615d0182
DL
9617 argument and look up resources using the name of the screen as
9618 part of the key.
9619 [not HAVE_X11] (Fx_get_default): Take optional 2nd arg NAME and
9620 ignore it.
9621 (x_get_arg): Take the screen name as an arg, and call
9622 Fx_get_resource with that argument.
9623 (x_default_parameter, x_figure_window_size, x_icon): Pass the
9624 screen's name to x_get_arg.
9625 (Fx_create_screen): Make sure the screen name is either nil or a
9626 string, and pass it to x_get_arg.
9627
9628 * xfns.c (Vx_screen_defaults): Variable removed; such settings
9629 belong in the .Xdefaults file.
9630 (syms_of_xfns): Don't defvar it here.
9631 (Fx_create_screen): Don't use it here.
9632
9633 * keyboard.c (classify_object): #if 0'd function finally removed.
da1d68b2
JB
9634 * xterm.c (Qmapped_screen, Qunmapped_screen, Qexited_scrollbar)
9635 (Qexited_window, Qredraw_screen): Unused, so removed.
615d0182 9636 (syms_of_xterm): Don't bother to initialize above.
dff28924 9637
615d0182
DL
9638 * xterm.c (init_input_symbols): Renamed to syms_of_xterm, for
9639 consistency.
9640 (x_term_init): Don't call it here.
9641 * xfns.c (syms_of_xfns): Don't call syms_of_xselect here.
9642 * emacs.c (main): Call them here.
9643
9644 * xterm.c (invocation_name): Made this a Lisp_Object, so that its
9645 string value could be relocated properly.
9646 (x_term_init, x_text_icon): Adjusted code appropriately.
9647 (syms_of_xterm): staticpro invocation_name.
9648 * xfns.c (invocation_name): Changed extern declaration, deleted
9649 extra declaration.
9650 (Fx_get_resource): Adjusted code appropriately.
9651
dff28924 96521991-08-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
9653
9654 * lread.c (read1): Accept #[...] for bytecode object.
9655 * print.c (print): Print them that way.
9656
dff28924 96571991-08-01 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9658
9659 * fileio.c (Fexpand_file_name): Avoid doing strlen (0).
9660
9661 * editfns.c, filelock.c [VMS]: Use pwd.h from Emacs, not from system.
9662 * fileio.c [VMS]: Likewise. Also include stddef.h, string.h.
9663 Include perror.h only once.
9664 [VMS] (file_name_as_directory, directory_file_name): Remove
9665 assignments from if conditions.
9666 (Fexpand_file_name): Remove excess slash from end of user's home dir.
9667
dff28924 96681991-08-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
9669
9670 * emacs.c (main): Add SIGIO conditional within AIX conditional.
9671
9672 * xdisp.c (try_window_id): Compute proper position for screen bottom
9673 when all changes are below the screen.
9674 When first computing bp, don't go more than HEIGHT + 1 lines.
9675
dff28924 96761991-07-31 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9677
9678 * xterm.c (x_destroy_window): If we're destroying the currently
9679 highlighted screen, clear x_highlight_screen.
9680
9681 * xdisp.c (display_text_line, display_string):
9682 Don't go past endp for multi-column chars.
9683
dff28924 96841991-07-28 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9685
9686 * lread.c (init_lread): If Vload_path was set specially before
9687 dumping, preserve it by default.
9688
9689 * process.c (process_send_signal): Notice and deal if the
9690 TIOCGPGRP ioctl says that the subprocess has no pgrp.
9691
9692 * xdisp.c (try_window_id): Always update window_end_* if successful.
9693
9694 * process.h (subtty): New slot.
9695 * process.c (create_process): Set it.
9696 (process_send_signal): Use it.
9697
9698 * alloc.c (Fmake_rope): Doc fix.
9699 * screen.c (Fselect_screen): Doc fix.
9700 * vms-pp.c: Fix comment.
9701
9702 * keymap.c (Fkeymapp, Fdefine_prefix_command): Doc fixes.
9703
9704 * window.c (window_select_count): No longer static.
9705 (init_window_once): Increment window_select_count, to give each
9706 window a unique use_time.
9707 * window.h (window_select_count): extern this here.
9708 * screen.c (make_screen): Stamp a new screen's selected window
9709 with the proper selection time.
9710
9711 * ymakefile: xselect.o depends on screen.h, xterm.h, and config.h.
9712 xrdb.o depends on config.h.
9713 xterm.o depends on gnu.h.
9714 * xfns.h: File removed - it only declared Vx_send_movement_events.
9715 All includers changed.
9716
dff28924 97171991-07-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
9718
9719 * keymap.c (Fcopy_keymap): Don't recursively copy maps inside symbols.
9720
dff28924 97211991-07-27 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9722
9723 * xdisp.c (redisplay): If echo_area_display puts text in a
9724 surrogate minibuffer screen, don't neglect to update it.
9725
9726 * keyboard.c (kbd_buffer_store_event): Make sure
9727 Vlast_event_screen is set properly for quit characters.
9728
dff28924 97291991-07-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182 9730
da1d68b2 9731 * keyboard.c (command_loop_1): Pass both arguments to
615d0182
DL
9732 Fselect_screen.
9733
9734 * screen.c (make_screen): Divide the size by sizeof (Lisp_Object)
9735 before passing it to Fmake_vector.
dff28924 9736
da1d68b2 9737 * screen.h [not MULTI_SCREEN] (SCREEN_SCROLL_BOTTOM_VPOS): Fixed
615d0182
DL
9738 definition.
9739
9740 * screen.c: #include termhooks.h and therefore stdio.h.
9741 (make_screen): Initialize focus_screen member.
9742 (Fdelete_screen): Refuse to delete SCREEN if it is a
9743 surrogate minibuffer for some other screen, not just if it's the
9744 global minibuffer screen.
9745 (Fredirect_screen_focus, Fscreen_focus): New function.
9746 (syms_of_screen): defsubr Sredirect_screen_focus.
9747 * window.c: Don't include termhooks.h or stdio.h.
9748 (Fselect_window): Removed grunge to support minibuffer hack.
9749 * screen.h (struct screen): Added focus_screen member, and
9750 accessor for it.
da1d68b2 9751 * alloc.c (mark_object): Mark focus_screen member of Lisp_Screens.
615d0182
DL
9752 * xterm.c (XTscreen_rehighlight): Use the focus_screen member to
9753 decide which screen to highlight.
9754 (XTread_socket): Use focus_screen when enqueuing keystrokes.
9755 * minibuf.c (read_minibuf, read_minibuf_unwind): Shift the
9756 selected screen's focus around appropriately.
9757 * termhooks.h (screen_rehighlight_hook): Doc fix.
9758
9759 * lisp.h (CHECK_IMPURE): Moved definition...
9760 * puresize.h (CHECK_IMPURE): To here.
9761
97621991-07-25 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9763
9764 * dispnew.c (buffer_posn_from_coords): Bufp is broken; don't use it.
9765
9766 * xterm.c (XTscreen_rehighlight): Neatened sloppy logic.
dff28924 9767
615d0182
DL
9768 * keyboard.c (read_key_sequence): When truncating a key sequence,
9769 don't forget to put the new keystroke back in this_command_keys.
9770 Do this before calling echo_truncate, and don't call echo_char.
9771
97721991-07-24 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9773
9774 * xterm.c (x_term_init): Initialize x_focus_screen and
9775 x_highlight_screen.
9776
9777 * xterm.c (XTscreen_rehighlight): Handle things correctly when
9778 x_focus_screen is 0.
9779 (XTread_socket): Process EnterNotify and LeaveNotify events with
9780 .focus == 0 properly. For FocusOut events, pass the right
9781 arguments to x_new_focus_screen.
9782
9783 * fileio.c (Finsert_file_contents): Use RETURN_UNGCPRO macro.
9784
9785 * buffer.c (Fbuffer_name): Fix typo in doc string.
9786 (syms_of_buffer): Fix typo in before_change_function name.
9787
97881991-07-23 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9789
9790 * screen.h (CHECK_SCREEN): Define a dummy version of this when
9791 MULTI_SCREEN is not defined.
9792
9793 * sysdep.c (init_signals, sys_signal, sys_sigpause): New functions.
9794 (sys_sigblock, sys_sigunblock, sys_sigsetmask): New functions.
9795
9796 * sysdep.c (_sobuf): Unsigned chars if DGUX.
9797
9798 * sysdep.c [DGUX]: Include file.h.
9799 [DGUX] (sys_siglist): New variable.
9800
9801 * x11term.c (x_init_1) [SYSV_STREAMS]: Don't close the old
9802 descriptor.
9803
9804 * keyboard.c (read_key_sequence): Treat function keys like ascii
9805 characters.
9806
9807 * lread.c (init_lread, syms_of_lread): New names for init_read and
9808 syms_of_read, for consistency.
9809
9810 * emacssignal.h: New file.
9811 * data.c, keyboard.c, process.c, sysdep.c: Include it.
9812 * data.c (arith_error): Use SIGEMPTYMASK.
9813 * keyboard.c (sigfree, sigunblockx): Use SIGEMPTYMASK.
9814 (sigholdx, sigblockx): Use sigmask.
9815 (gobble_input): Use sigblockx instead of sigholdx, so that any
9816 other blocked signals stay blocked during and after the call to
9817 read_avail_input.
9818 * process.c (create_process): Use sigmask.
9819 [FASYNC] (request_sigio): Use sigunblock.
9820 * xterm.c (sigmask): Removed #definition here.
9821 * ymakefile (keyboard.o, process.o, sysdep.o, data.o): Make these
9822 depend on emacssignal.h.
9823
9824 * window.c (Fselect_window): Modify surrogate minibuffer hack to
9825 make the minibuffer the selected window of the selected screen,
9826 AND select the minibuffer window's screen.
9827 * minibuf.c (read_minibuf): If the minibuffer window is on a
9828 different screen, save that screen's configuration too.
9829
9830 * window.c (Fset_window_configuration): Use SCREEN_ accessor to
9831 get at a screen's root window. Removed unused variable
9832 screen_to_select.
9833 (Fcurrent_window_configuration): Take an optional argument SCREEN.
9834 All callers changed.
9835
9836 * window.c (auto_new_screen, Vauto_new_screen_function): Renamed
9837 to pop_up_screens and pop_up_screen_function, to be parallel with
9838 pop_up_windows.
9839 (display_buffer, syms_of_window): Changed appropriately.
9840
9841 * fns.c (Fload_average) [DGUX]: Add code to support DGUX.
9842
9843 * s-dgux.h, m-aviion.h: New files.
9844
9845 * emacs.c (main) [POSIX_SIGNALS]: Call init_signals.
9846
9847 * screen.c (Fdelete_screen): Update last_nonminibuf_screen if
9848 the screen it's currently pointing to gets deleted.
9849
98501991-07-22 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9851
9852 * screen.c (last_nonminibuf_screen): New variable.
9853 (Fselect_screen): Set last_nonminibuf_screen if appropriate.
9854
98551991-07-21 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9856
9857 * screen.h (last_nonminibuf_screen): Added declarations for new
dff28924 9858 variable.
615d0182
DL
9859 * minibuf.c (active_screen): Variable removed.
9860 (read_minibuf): Removed code to set and clear active_screen.
9861 * window.c (Fdisplay_buffer): Rewritten to use
9862 last_nonminibuf_screen.
9863
dff28924 9864 * screen.c (next_screen): Use SCREEN_ accessors instead of ->.
615d0182
DL
9865
9866 * window.c (Fdisplay_buffer): Removed reference to
9867 Fx_create_screen; we should rely on the auto-new-screen-function
9868 being set to something appropriate.
9869
dff28924 98701991-07-21 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
615d0182
DL
9871
9872 * keyboard.c (read_key_sequence): Restore the state of
9873 this_command_key_count along with the echoing state.
9874
dff28924 98751991-07-20 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
615d0182
DL
9876
9877 * xfns.c (Fx_synchronize): New function.
9878 (syms_of_xfns): defsubr it.
9879
9880 * xdisp.c (redisplay): Don't turn on all_windows whenever we're
9881 using a separate minibuffer screen. Even if there is some tweak
9882 necessary, this wasn't it.
9883
9884 * process.c (status_notify): Do not forget to UNGCPRO.
9885
9886 * screen.c (next_screen): Re-work logic to skip minibuffer-only
9887 screens so that it doesn't loop indefinitely, even when the only
9888 screen is a minibuffer-only screen. Skip all screens that are
9889 only minibuffers, not just when they are the global minibuffer
9890 screen.
9891
9892 * xdisp.c (message, message1): If the screen's message buffer
9893 is 0, toss the message; don't check the window system against
9894 the screen output_method.
9895
dff28924 98961991-07-19 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9897
9898 * keyboard.c (read_key_sequence): When we truncate the echo
9899 buffer because the user has switched screens, re-echo the
9900 character that caused the truncation.
9901
9902 * lread.c (Fload): Change "source newer than ..." message not to
9903 refer to "libraries." What is a "library," anyway?
9904
9905 * window.c: #include "termhooks.h", and therefore <stdio.h> too.
9906 [MULTI_SCREEN] (Fselect_window): If the window being selected is
9907 the selected screen's minibuffer, but it lives on another screen,
9908 don't select that other screen - call the screen_rehighlight_hook
9909 instead.
9910 * termhooks.h (screen_rehighlight_hook): New hook, so that Emacs
9911 can shift the screen highlighting when needed.
9912 * term.c (screen_rehighlight_hook): Define it.
9913 * xterm.c (x_highlight_screen): New variable.
9914 (x_new_focus_screen): Move the rehighlighting code to...
9915 (XTscreen_rehighlight): New function.
9916 (x_display_bar_cursor, x_display_box_cursor): Use
9917 x_highlighted_screen instead of x_focus_screen.
9918 (x_term_init): Initialize screen_rehighlight_hook.
9919 * ymakefile: Make window.o depend on termhooks.h.
9920
9921 * xfns.c (Fx_create_screen): Add mention of
9922 global-minibuffer-screen to docstring.
9923 * screen.c (make_screen_without_minibuffer): Improve error message
9924 displayed when Vglobal_minibuffer_screen is not a proper screen.
9925
dff28924 99261991-07-18 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9927
9928 * config.h (PURESIZE): Definition moved to...
9929 * puresize.h: New file.
9930 (PURESIZE): Define this here. This will allow people to change
9931 their pure storage allocation without having to recompile most of
9932 Emacs.
9933 * data.c: #include puresize.h, since CHECK_IMPURE needs PURESIZE.
9934 * alloc.c: #include puresize.h.
9935 [HAVE_SHM] (pure_size): New variable, so that XPNTR doesn't depend
9936 on PURESIZE.
9937 [HAVE_SHM] (init_alloc_once): Initialize pure_size here.
9938 * lisp.h [HAVE_SHM] (XPNTR): Defined in terms of pure_size,
9939 instead of PURESIZE.
da1d68b2 9940 (pure_size): Extern declaration added here.
615d0182
DL
9941 * ymakefile: Added puresize.h to dependencies for alloc.c and
9942 data.c's .o files.
9943
9944 * emacs.c (main): Doc fix for kludge to scan for -d.
9945
dff28924 99461991-07-17 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9947
9948 * termhooks.h (struct input_event): #if 0'd out the definition for
9949 the screen_selected event type, and added the stipulation that the
9950 {non_,}ascii_keystroke events specify the screen they happen in.
9951 * xterm.c (x_new_focus_screen): Don't enqueue a screen_selected
9952 event.
9953 (XTread_socket): Calls to x_new_focus_screen in the EnterNotify,
9954 FocusIn, LeaveNotify, and FocusOut event code don't worry about
9955 enqueued events any more.
9956 * keyboard.c (new_selected_screen): Removed - see below.
9957 (Vlast_event_screen): New variable, visible to lisp code.
9958 (echo_length, echo_truncate): New functions.
9959 (readable_events): Removed screen_selected events from the set of
9960 things to skip.
9961 (kbd_buffer_store_event): Don't bother collapsing consecutive
9962 screen_selected events.
9963 (kbd_buffer_read_char): Don't process screen_selected events.
9964 (make_lispy_event): Re-arrange scrollbar events to put the window
9965 whose scrollbar was diddled right after the identifying symbol,
9966 for consistency.
9967 (read_key_sequence): Let the selected screen and the location of
9968 the event affect the keymap used to find its binding.
9969 (Fread_key_sequence): Update docstring.
9970 (syms_of_keyboard): Added DEFVAR_LISP for Vlast_event_screen.
9971
99721991-07-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9973
9974 * screen.c (next_screen): If !mini_screen, only exclude the global
9975 minibuffer screen when the minibuffer is its only window.
9976 (Fnext_screen): Make the docstring clearer about what MINISCREEN
9977 means.
9978
9979 * window.c (Fother_window): Indicate that it takes both a required
9980 and optional argument, instead of just one required.
9981
99821991-07-15 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9983
9984 * buffer.c (Fkill_buffer): Rehacked kill-buffer-hooks to use
9985 standard name kill-buffer-hook, and to use set_buffer_internal
9986 instead of Fset_buffer. Use static variable containing symbol
9987 instead of intern.
9988 (syms_of_buffer, init_buffer_once): Qkill_buffer_hook =
9989 'kill-buffer-hook.
9990
dff28924 99911991-07-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9992
9993 * keymap.c (Fsingle_key_description): When describing a listy
9994 object, take the car to find the symbol that heads it, not the cdr.
9995
9996 * dispnew.c (buffer_posn_from_coords): Pass col and line to
9997 compute_motion in the correct order.
9998
9999 * keyboard.c (make_lispy_event): When calculating rows and columns
10000 for mouse clicks and movement events, don't forget to subtract the
10001 position of the window's top left corner before passing them to
10002 buffer_posn_from_coords.
10003
10004 * screen.c (coordinates_in_window): Removed useless test for *y ==
10005 screen_height, and screen_height variable; this would be out of
10006 range of all the windows anyway.
10007
10008 * xdisp.c (message1): Removed code to ignore messages before X has
10009 started up; this issue has hopefully been addressed by the
10010 condition-case in startup.el.
10011
10012 * editfns.c (init_editfns): Make user_name char * instead of
10013 unsigned char *, since that's what most of the usages seem to
10014 want. And when expanding ampersands in AMPERSAND_FULL_NAME mode,
10015 don't try to use user_name as a string; use Vuser_name.
10016
10017 * minibuf.c (assoc_for_completion): New function.
10018 (do_completion): Use that to check for exact match.
10019
da1d68b2 10020 * minibuf.c (Ftry_completion): Fix handling of matches aside from
615d0182
DL
10021 case. If ignoring case, and all else equal, try to preserve the
10022 case of the characters in the input.
10023
10024 * process.c (status_notify): GCPRO tail.
10025
da1d68b2 10026 * sysdep.c (creat_copy_attrs, rename_sans_version): Always set
615d0182
DL
10027 protection to O:REWD when creating file. Added new function
10028 rename_sans_version, which strips the version number from the target
da1d68b2 10029 filename, renames the temporary file to this filename, and then
615d0182
DL
10030 sets the file protection of this new file to be the same as the file
10031 being edited.
10032
10033 * sysdep.c [VMS]: Include pwd.h from Emacs. Use sys/file.h if GCC.
10034 (F_SETFL) [VMS]: Undefine this, to control conditionals.
10035 (getpwnam): Make `full' unsigned.
10036 (creat_copy_attrs): Add some casts.
10037 (sys_access): Change prvmask and CHECKPRIV to use bitfields.
10038 Add some casts, and make dummy an unsigned short int.
10039 Don't use & on constants.
10040 (vmserrstr): Add a cast.
10041 (sys_creat): Define va_count before this function.
10042
dff28924 100431991-07-14 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10044
10045 * sysdep.c (sys_sleep, input_wait_timeout): Don't use & on constant.
10046 [VMS]: Include pwd.h from Emacs. Use sys/file.h if GCC.
10047 (bzero, bcopy) [VMS]: Don't take address of `length'.
10048
10049 * sysdep.c (sys_suspend): Cast value of `signal' to insulate from
10050 changed value type in sysV.3.
10051
10052 * sysdep.c (child_setup_tty): Turn off erase & kill chars for BSD.
10053
10054 * sysdep.c (discard_tty_input): Use TIOCFLUSH on Apollo.
10055 (init_sys_modes): Avoid TIOCSTART on Apollo.
10056
10057 * sysdep.c: If HAVE_TERMIOS is not defined, define tcgetattr in
10058 terms of the TIOCGETP ioctl.
10059 (init_sys_modes): Handle VSUSP, V_DSUSP if HAVE_TCATTR.
da1d68b2
JB
10060 (discard_tty_input, init_baud_rate, child_setup_tty)
10061 (init_sys_modes, tabs_safe_p, reset_sys_modes):
615d0182
DL
10062 Use tcgetattr, and if HAVE_TCATTR, use tcsetattr.
10063
dff28924 100641991-07-13 Jim Blandy (jimb@churchy.gnu.ai.mit.edu)
615d0182
DL
10065
10066 * s-hpux8.h: New file.
10067 * fileio.c [HPUX8]: Don't include errnet.h.
10068
10069 * unexhp9k800.c (unexec): Local variable i to avoid compiler bug?
10070
10071 * sysdep.c (insque) [WRONG_NAME_INSQUE]: New function.
10072 * s-386ix.h (WRONG_NAME_INSQUE): Define it.
10073
10074 * xdisp.c (message_buf_print): New variable.
10075 (message): Clear it here.
10076 * dispextern.h: Declare it here.
10077 * print.c (printchar, strout): Set it and test it here.
10078
10079 * keyboard.c (command_loop_1): Don't clear last_command when start
10080 macro.
10081
10082 * keyboard.c (read_command_char): Exit at eof if noninteractive.
10083
10084 * indent.c (invalidate_current_column): New function.
10085 * editfns.c (Fwiden, Fnarrow_to_region): Call it.
10086
10087 * process.c (create_process): Use O_NOCTTY whenever defined,
10088 unless USG.
10089
10090 * process.c (Fprocess_send_eof): If using a pipe, close it.
dff28924 10091 (close_process_descs): Check IN and OUT for nonzeroness.
615d0182
DL
10092
10093 * process.c (process_send_signal): Use interrupt chars
10094 to send certain signals to the process group.
10095 (TIOCGETC): Undefine this if it is not really usable.
10096
10097 * sysdep.c (discard_tty_input): Do nothing if read_socket_hook.
10098
10099 * xfns.c (x_set_mouse_color): Change the default pointer shapes to
10100 be closer to xterm and emacs 18.
10101
10102 * xterm.c (x_focus_on_screen, x_unfocus_screen): These no longer
10103 call XSetInputFocus, because I think that the X-windows ICCCM
10104 says that only the window manager can do this sort of thing.
10105
10106 * keyboard.c (read_char): When there is an unread command
10107 character, goto reread_first when this_command_key_count is zero,
10108 not when it is >= 0.
10109 (command_loop_1): Reset this_command_key_count only if there is no
10110 prefix argument. This makes echoing of keystrokes work correctly.
10111
101121991-07-11 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10113
10114 * eval.c (Finteractive_p): Changed "! XTYPE (foo) == Lisp_Bar" to
10115 "XTYPE (foo) != bar".
10116
dff28924 101171991-07-11 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
10118
10119 * eval.c (apply1): Don't forget to UNGCPRO before returning.
10120
10121 * xterm.c (XTupdate_begin): Undisplay the cursor here; do_scrolling
10122 will call XTins_del_lines when the screen matrix is inaccurate, so
10123 we cannot undisplay the cursor then, but do_scrolling is always
10124 called within an update.
10125
dff28924 101261991-07-10 David J. MacKenzie (djm@nutrimat)
615d0182
DL
10127
10128 * termcap.c, tparam.c [!emacs, USG || STDC_HEADERS]: Define bcopy
10129 in terms of memcpy.
10130
dff28924 101311991-07-09 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
10132
10133 * scroll.c (do_scrolling): Use correct termination condition for
10134 loop that uses the glyph pointers for the deleted lines to fill in
10135 the inserted lines.
10136
dff28924 101371991-07-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
10138
10139 * editfns.c: Doc fix.
10140
dff28924 101411991-07-03 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10142
10143 * dispnew.c (line_hash_code): Test m->highlight[vpos], not
10144 m->highlight. All lines were getting hash codes of -1, because
10145 the highlight vector was never NULL. Golly.
10146
10147 * process.c (list_processes_1): Handle status of network streams.
10148
dff28924 101491991-07-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
10150
10151 * doc.c (Fdocumentation_property):
10152 Pass only strings to Fsubstitute_command_keys.
10153
dff28924 101541991-07-02 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
10155
10156 * editfns.c (init_editfns): If neither of the environment
10157 variables are set, DON'T set Vuser_name to Vuser_real_name; it's
10158 supposed to reflect the EFFECTIVE uid.
10159 Get the full name according to Vuser_name if it differs from
10160 Vuser_real_name, not if they are equal.
10161 And pass Vuser_name to getpwnam in that case instead of user_name,
10162 which might be 0.
10163
10164 * lisp.h (RETURN_UNGCPRO): New macro.
dff28924 10165
615d0182
DL
10166 * bytecode.c (Fbyte_code): Do not remove GC protection from the
10167 stack when making a function call, because the caller is
10168 responsible for protecting the arguments to a MANY-arg'ed
10169 function.
10170 * eval.c (Fapply): If we use funcall_args, GCPRO it.
10171 And when we call Ffuncall with funcall_args, tell it the correct
10172 length of funcall_args, no matter which branch allocated it.
10173 (Ffuncall): Don't gcpro the arguments before calling
10174 Fgarbage_collect.
10175 (Feval): If we're calling a subr that takes MANY args, don't
10176 UNGCPRO until after we call the subr.
10177 (apply1, call0, call1, call2, call3): GCPRO the arg arrays passed
10178 to Ffuncall and Fapply.
10179 * callproc.c (Fcall_process, Fcall_process_region): Don't GCPRO
10180 the argument array.
10181 * editfns.c (Finsert, Finsert_before_markers): Don't GCPRO the
10182 argument array. Added comment about when GCPROing is not needed.
10183 * mocklisp.c (Finsert_string): Don't GCPRO the argument array.
10184
10185 * keyboard.c (init_keyboard): Handle SIGQUIT with interrupt_signal
10186 on any system that has HAVE_TERMIO, not just on USG systems.
10187
dff28924 101881991-07-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
10189
10190 * editfns.c (init_editfns): Test that user_name isn't 0.
10191
dff28924 101921991-06-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
10193
10194 * search.c: Doc fixes.
10195
dff28924 101961991-06-28 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
10197
10198 * keyboard.c (make_lispy_event): Let the posns of mouse clicks and
10199 mouse movements be nil when window_from_coordinates returns a
10200 NON-window, not when it returns a window. Since posn is a lisp
10201 object, don't call make_number when consing up the event.
10202 Don't call make_number on the code member of the event.
10203
10204 * keyboard.c (struct movement): Make the x, y, and time members
10205 Lisp_Objects, since it's easier to convert from a Lisp_Object than
10206 to.
10207 (note_mouse_position): Adjusted for the above.
10208 (make_lispy_event): Removed code to make Lisp_Objects for those
10209 members.
10210
10211 * xterm.c (XTread_socket): When handling LeaveNotify events,
10212 remember that the focus member of the event is true when the
10213 receiving window now has the focus, not when it is losing it.
10214 * xfns.c (Ffocus_screen): Don't signal an error if SCREEN is
10215 already the focus screen.
10216
dff28924 102171991-06-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10218
10219 * alloc.c (Fmake_rope): Use sizeof (GLYPH) instead of 2 to
10220 determine how large the string should be, and changed doc string
10221 to describe ropes as strings of glyphs, not just as strings of
10222 character pairs.
10223 (Frope_elt): Use sizeof (GLYPH) as the element size, instead of
10224 assuming that the elements are two bytes.
10225 * lisp.h (typedef GLYPH): Moved the definition from here...
10226 * config.h (typedef GLYPH): to here, so people can elect to get
10227 better performance if they don't want to use huge fonts.
10228 * xterm.c (dumpglyphs): Use XDrawImageString or
10229 XDrawImageString16, Depending on sizeof (GLYPH).
dff28924 10230
615d0182
DL
10231 * data.c (Fsetq_default): Call Fset_default to do the assignments,
10232 not plain Fset.
10233
10234 The following changes were contributed by Jamie Zawinski
10235 <jwz@lucid.com>:
10236
10237 * bytecode.c (Fbyte_code): BYTE_CODE_SAFE and BYTE_CODE_METER
10238 options added.
10239 Added Bmark, Bscan_buffer, Bset_mark to support error-checking for
10240 these obsolete bytecodes.
10241 Added Bunbind_all to support tail-call optimization (not yet
10242 implemented).
10243 Did NOT add the relative branch opcodes that were in the version
10244 of bytecode.c that Jamie sent.
10245 The branching bytecodes now only QUIT if they take the branch.
10246 Btemp_output_buffer_show, Bforward_char, Bforward_word,
10247 Bskip_chars_forward, Bskip_chars_backward, and Bforward_line
dff28924 10248 passed the wrong number of arguments to their subrs.
615d0182
DL
10249 Brem, Bbuffer_substring, Bdelete_region, Bnarrow_to_region,
10250 Bstringeqlsign, Bstringlss, Bequal, Bnthcdr, Bmember, Bassq,
10251 Bsetcar, and Bsetcdr passed arguments to the subr in the wrong
10252 order.
10253
dff28924 102541991-06-25 Jim Blandy (jimb@churchy.gnu.ai.mit.edu)
615d0182
DL
10255
10256 * doc.c (Fdocumentation): Added a QUIT test to the loop that finds
10257 the symbol's function value.
10258
dff28924 102591991-06-24 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
10260
10261 * xterm.c (dumprectangle): Removed call to XFlushQueue here.
10262
10263 * keyboard.c (command_loop_1): Call Fselect_screen to establish
10264 the new selected screen after the key sequence has been read, not
10265 at the top of the loop. This way, a key sequence will happen in
10266 the screen it was typed at, or (to be more precise) the screen its
10267 last character was typed at.
10268
10269 * keyboard.c (fast_read_one_key): Function deleted, since it had
10270 been #if 0'd out a long time ago.
10271 (command_loop_1): Support for fast_read_one_key removed.
10272
10273 * eval.c (Ffuncall): Do GCPRO the arguments, contrary to the May
10274 16 change. The convention appears to be that the MANY-arged
10275 callee must protect its own arguments.
10276 (Fapply): Don't protect funcall_args; they are the caller's
10277 responsibility.
10278 * bytecode.c (Fbyte_code): GCPRO the section of the stack *above*
10279 the args to Ffuncall, since it will be protected again once
10280 Ffuncall returns and therefore should stay valid. If it is not
10281 protected, string relocation may make it invalid.
10282 * mocklisp.c (Finsert_string): GCPRO the arguments, since insert
10283 may cause a garbage collection.
10284 * editfns.c (Finsert, Finsert_before_markers): GCPRO the
10285 arguments, since insert may cause a garbage collection.
10286 * callproc.c (Fcall_process, Fcall_process_region): GCPRO the
10287 arguments, since insert may cause a garbage collection.
10288
dff28924 102891991-06-20 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
615d0182 10290
da1d68b2 10291 * buffer.h (struct buffer_text, struct buffer): Small change to
615d0182
DL
10292 comments.
10293
10294 * search.c (Fmatch_beginning, Fmatch_end): Fixed doc strings to
10295 indicate that non-regexp searches set these too.
10296
10297 * window.c (Fset_window_start): If window is not the selected
10298 window, set windows_or_buffers_changed, so that redisplay will
10299 know that it should redisplay the window.
10300
10301 * callint.c (Finteractive): Changed doc string to indicate that
10302 the interactive prompts are passed through format.
10303
103041991-06-20 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10305
10306 * buffer.c (syms_of_buffer): buffer-undo-list doc fix.
10307
103081991-06-11 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10309
10310 * data.c (Fsetq_default): Take multiple SYM, VAL args; syntax now
10311 parallel to setq.
10312
dff28924 103131991-05-25 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
615d0182
DL
10314
10315 * keyboard.c (kbd_buffer_read_char): Fix wait-for-input loop so
10316 that we always process/toss events we don't want to return.
10317
da1d68b2 10318 * screen.c (Fselect_screen): Call Ffocus_screen instead of
615d0182
DL
10319 x_new_selected_screen, which doesn't exist anymore.
10320
10321 * xfns.c (Ffocus_screen): Declare the type of the SCREEN argument.
10322
10323 * xfns.c (Fx_track_pointer): Function #if 0'd out - I don't think
10324 that this is a feature that we want.
10325 (syms_of_xfns): Elide the defsubr for the above.
10326
10327 * xterm.c (x_mouse_screen, x_input_screen): Variable deleted,
10328 since all we really need is x_focus_screen; all other issues are
10329 the realm and responsibility of the window manager.
10330 (x_new_selected_screen): Renamed to x_new_focus_screen, and
10d1d0af 10331 modified not to do things inappropriate for signal handlers.
615d0182
DL
10332 (XTread_socket): Change the handling of EnterNotify, LeaveNotify,
10333 FocusOut and FocusIn events to use x_new_selected_screen, and
10334 ditched code that deals with x_mouse_screen and x_input_screen,
10335 since they don't exist anymore.
10336 (x_display_bar_cursor, x_display_box_cursor): Compare s with
10337 x_focus_screen to see what form the cursor should take.
10338 (x_destroy_window): Don't bother with x_input_screen.
10339 * xfns.c (x_mouse_screen): Removed extern declaration for this.
10340 (Fx_grab_pointer): Confine the pointer to x_focus_screen, not
10341 x_mouse_screen. This is wrong, but will make emacs compile until
10342 this gets fixed.
10343
dff28924 103441991-05-23 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10345
10346 * keyboard.c (get_input_pending): Don't use trim_events; use
10347 readable_events instead.
10348
10349 * keyboard.c (make_lispy_event): Remove case for window_sys_event,
10350 since that type of event doesn't exist anymore.
10351
10352 * minibuf.c (Fcompleting_read): Document the backup-n argument.
10353
10354 * dispnew.c (init_display): Don't declare alternate_display extern
10355 here. I can't figure out what this feature is, and it's broken.
10356 * emacs.c (main): Don't test alternate_display and put its value
10357 in the environment.
10358
dff28924 103591991-05-22 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10360
10361 * keyboard.c (struct movement): Made .used an int instead of a
10362 char, since that's more likely to be stored atomically on SPARCS
dff28924 10363 and similar machines.
615d0182
DL
10364
10365 * termhooks.h (struct input_event): Removed the window_sys_event,
10366 since it's not used anywhere. Added screen_selected event type.
10367 The event handling code used to change the current buffer,
10368 selected window, and selected screen out from under running lisp
10369 code. Now we wait for a more convenient time by enqueuing an
10370 event.
10371 * xterm.c (XTread_socket): When handling FocusIn events and
10372 EnterNotify events with the focus member set, enqueue a
10373 selected_screen event instead of calling x_new_selected_screen.
10374 * keyboard.c (trim_events): Function deleted; it is a bad idea to
10375 delete events based on the current tracking state, since tracking
10376 might be re-enabled later.
10377 (readable_events): New function which searches the input queue for
10378 readable events.
10379 (tracking_off): Call readable_events to see if we should
10380 redisplay.
b344d29d 10381 (kbd_buffer_read_char): Toss events that we are not interested in.
615d0182
DL
10382 This is a better place to do it than trim_events, since we know
10383 that do_mouse_tracking will not change. Also, handle
10384 screen_selected events.
10385 (new_selected_screen): New variable, holding the screen which
10386 should become selected the next time through command_loop_1.
10387 (syms_of_keyboard): Initialize and staticpro new_selected_screen.
10388 (command_loop_1): If there is a new screen to be selected, do so.
10389
103901991-05-21 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
10391
10392 * xdisp.c (message): Removed the if at the top that did not
10393 display messages if the current screen was a termcap screen and a
10394 window system will be used. The change to startup.el on May 18,
10395 1991 replaces this.
10396
10397 * ralloc.c (check_memory_limits): If the address returned by the
10398 allocator is not representable in a Lisp_Object, call memory_full
10399 instead of printing a very silly "warning" message.
10400
dff28924 104011991-05-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
615d0182
DL
10402
10403 * xterm.c (XTread_socket): Don't overwrite the end of the buffer
10404 with function keys.
10405
10406 * keyboard.c (tracking_off): Update input_pending after reading
10407 all the input.
10408 * process.c: #include "screen.h".
10409 (wait_reading_process_input): Check if any screens have been newly
10410 mapped and need updating.
10411 * xterm.c (XTread_socket): Don't SET_SCREEN_GARBAGED when the
10412 screen is unmapped; do this when is mapped.
10413 (dumprectangle): Don't dump any data for garbaged screens.
10414
dff28924 104151991-05-18 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10416
10417 * sysdep.c (init_sys_modes): Moved the clauses that set up
10418 interrupt-driven input out of the "if running on a terminal"
10419 clause, since these may need to be set up even when running on a
10420 window system.
10421
dff28924 104221991-05-17 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10423
10424 * process.c (Fprocess_status): For network connections, return
10425 Qopen and Qclosed instead of Qrun and Qexit, as documented.
10426
10427 * lread.c (read1): Removed code that treated numbers starting with
10428 a zero as octal.
10429
dff28924 104301991-05-16 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
10431
10432 * eval.c (Ffuncall): Don't gcpro the arguments; the caller
10433 protects them.
10434 (Fapply): Gcpro funcall_args, if we use them.
10435
10436 * xterm.c (notice_mouse_movement): #if 0'd this function out.
10437 (XTread_socket): #if 0 the code that fakes motion events for
10438 moving in and out of windows. Also, rearrange the MotionNotify
10439 case to give character rows and columns to note_mouse_position,
10440 not pixel x and y positions. Don't deal with scrollbars here.
10441 * termhooks.h (struct input_event): Removed the mouse_movement
10442 event kind.
10443 * keyboard.c (movement_buf): A new buffer for mouse-movement events.
10444 This is hairier than you might think; see the comments for this
10445 and the comments for note_mouse_position and get_mouse_position
10446 for an explanation of why this is hairy.
10447 (movement_ptr): Where the event handler should store new mouse
10448 locations.
10449 (EVENT_QUEUES_EMPTY): New macro, to be used in the places that
10450 used to compare kbd_fetch_ptr to kbd_store_ptr to see if there
10451 were any events available; this macro tests the mouse movement
10452 buffer too.
10453 (Qmouse_movement): New symbol to head mouse movement events with.
10454 (trim_events): Mouse movement events are no longer in kbd_buffer,
10455 so don't try to trim them.
10456 (tracking_off, kbd_buffer_read_char, get_input_pending): Use
10457 EVENT_QUEUES_EMPTY.
10458 (get_mouse_position): New function to retrieve a mouse position
10459 from the buffer properly, no matter when the event-handling signal
10460 occurs.
10461 (kbd_buffer_read_char): If there is something in kbd_buffer, make
10462 an event for that; if there is a mouse movement, make an event for
10463 that; otherwise, the while loop lied.
10464 (make_lispy_event): Added code to produce mouse movement events.
10465 (init_keyboard): Clear the mouse movement buffer.
da1d68b2
JB
10466 (Qmouse_moved, Qredraw_screen, Qmapped_screen, Qunmapped_screen)
10467 (Qexited_window, Qexited_scrollbar): Removed extern declarations
615d0182
DL
10468 for these, since they're no longer generated.
10469 (syms_of_keyboard): Initialize and staticpro Qmouse_movement,
10470 remove DEFVAR_LISP for Vignore_mouse_events.
10471
dff28924 104721991-05-14 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
10473
10474 * lread.c (read1): Correctly parenthesize the shift when parsing
10475 octal numbers, and signal an error if we see a non-octal digit.
10476
dff28924 104771991-05-13 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
615d0182
DL
10478
10479 * keyboard.c (trim_events): New function, to remove uninteresting
10480 events from the input queue.
10481 (get_input_pending): Call trim_events before checking the queue,
10482 so as not to advertise input we don't care about.
10483 (Ftrack_mouse): A new function to enable mouse tracking for a
10484 block of code.
10485 (tracking_off): A function for unwind_protection; restore the
b344d29d 10486 mouse tracking state to what it was outside of the track-mouse.
615d0182
DL
10487 (syms_of_keyboard): defsubr track-mouse.
10488 (make_lispy_event): Find the window io which the click occurred
10489 when processing mouse_click events, instead of trusting the window
10490 tree in the signal-handling code. Include the buffer position in
10491 the click event.
10492
10493 * xterm.c (construct_mouse_click): Return the click's screen, not
10494 its window, and don't bother updating Vmouse_window. Calculate
10495 the row and column of text-area clicks using
10496 pixel_to_glyph_translation, since we know that those data
10497 structures are alive in signal handlers.
10498
10499 * screen.c (window_from_coordinates,
10500 Flocate_window_from_coordinates): Moved these to window.c, since I
10501 need to be able to call them even if we don't have multi-screen
10502 support.
10503 (syms_of_screen): Removed defsubr for
10504 Flocate_window_from_coordinates.
10505 * window.c (window_from_coordinates, Flocate_window_from_coordinates):
10506 Here they are.
10507 (syms_of_window): Here is the defsubr.
10508
10509 * keyboard.c (note_mouse_position): New function to enqueue
10510 mouse movement events properly.
10511 (current_movement_event): New variable, to support the above. See
10512 its comment for more explanation.
10513
10514 * termhooks.h (struct input_event): Change the .window member to
10515 .screen, make it a struct screen *, and indicate that those events
b344d29d 10516 which used to return windows now return screens. It is unsafe
615d0182
DL
10517 for the event reader to traverse the window structure, because it
10518 can be called by a signal handler.
10519
dff28924 105201991-05-10 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
10521
10522 * keyboard.c (Vignore_mouse_events): Variable deleted.
10523 (make_lispy_event): For mouse and scrollbar clicks, return the
10524 position as a pair of numbers, not a list of two numbers.
10525
dff28924 105261991-05-09 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
615d0182
DL
10527
10528 * keyboard.c (do_mouse_tracking): Define this variable, which
10529 controls whether kbd_buffer_read_char will ignore button up and
10530 mouse movement events.
da1d68b2 10531 * termhooks.h: Declare do_mouse_tracking here.
615d0182 10532
da1d68b2 10533 * xterm.h (STANDARD_EVENT_SET): New constant, giving the event
615d0182
DL
10534 mask all the windows use.
10535
10536 * xfns.c (Vx_send_mouse_movement_events): Removed this variable;
10537 XTmouse_tracking_enable and do_mouse_tracking do its job better.
10538 (syms_of_xfns): Remove the DEFVAR_LISP for the above.
10539 (x_window): Don't ask for any pointer motion events or button
10540 release events by default; use the unmodified STANDARD_EVENT_MASK.
10541 The user will ask for them explicitly if he or she wants them.
10542 And don't ask for backing store.
10543
10544 * xterm.c (XTmouse_tracking_enable): New function to
10545 request/unrequest detailed mouse tracking information of the
10546 server, and set the flag used by XTread_socket.
10547 (x_term_init): Set mouse_tracking_enable_hook to
10548 XTmouse_tracking_enable here.
10549 (XTread_socket): Handle mouse movement events by calling
10550 note_mouse_position.
10551
10552 * xterm.c (XTread_socket): For MapNotify events, go ahead and set
10553 the screen's visible flag, so Expose events will work. Clear the
10554 iconified flag.
10555
10556 * editfns.c (Finsert_char): Return immediately if n <= 0, not just
10557 if n < 0, so that the `while' below does not become an infinite
10558 loop.
10559
10560 * term.c (mouse_tracking_enable_hook): Added this variable to
10561 allow emacs to request that the window system start or stop
10562 detailed mouse tracking.
10563 * termhooks.h (mouse_tracking_enable_hook): Declare it here.
10564
10565 * xfns.c: Declare the functions before initializing
10566 x_screen_parm_table to point to them.
10567
10568 * xterm.c (XTread_socket): Don't send Qmapped_screen,
10569 Qunmapped_screen, Qexited_scrollbar, Qexited_window,
10570 Qredraw_screen - these are not features that we want to support.
10571
dff28924 105721991-05-07 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10573
10574 * editfns.c (Finsert_char): Let strlen be the minimum of n and
10575 256, not the maximum, so we use an n-byte buffer when n < 256, and
10576 a 256-byte buffer many times when n > 256.
10577
dff28924 105781991-05-05 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
10579
10580 * keymap.c (Fkeymapp): Fixed docstring to give the right
10581 definition of a keymap.
10582
dff28924 105831991-05-03 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
10584
10585 * data.c (Fcompiled_function_p): New function.
10586
dff28924 105871991-05-03 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10588
10589 * xfns.c (struct x_screen_parm_table): New type for recording
10590 information about screen parameters.
10591 (x_screen_parms): New table describing the existing parameters.
10592 (init_x_parm_symbols, x_set_screen_param): Use x_screen_parms
10593 instead of a large switch statement.
10594 (x_figure_window_size): Make the default case of the switch call
8350f087 10595 abort instead of signaling an error, since window_prompting's
615d0182
DL
10596 value is internally generated.
10597
dff28924 105981991-05-01 Jim Blandy (jimb@churchy.gnu.ai.mit.edu)
615d0182
DL
10599
10600 * keymap.c (describe_map_tree): GCPRO the maps variable;
10601 Fkey_description calls Fmapconcat, which eventually calls
10602 Ffuncall, which can garbage-collect.
10603
dff28924 106041991-04-28 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10605
10606 * dispnew.c (buffer_posn_from_coords): Use the information in bufp
10607 to reduce the distance compute_motion must scan, when possible.
10608
dff28924 106091991-04-27 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10610
10611 * keyboard.c (syms_of_keyboard): Qtop_level is initialized and
10612 staticpro'd in syms_of_data too. Don't staticpro (or initialize)
10613 it again here.
10614
10615 * macros.c (syms_of_macros): Since executing-macro and
10616 executing-kbd-macro are actually the same variable, use
10617 DEFVAR_LISP_NOPRO for the second one so it doesn't get staticpro'd
10618 twice.
10619
10620 * process.c (syms_of_process): Don't staticpro or initialize Qexit
10621 here, since syms_of_eval already does this and it's bad to
10622 staticpro something twice.
10623 (Qexit): Remove declaration here, so there will be a compilation
10624 error if someone rearranges eval.c without fixing the Qexit stuff.
10625 * eval.c (syms_of_eval): Add comment here to say that
10626 syms_of_process cares about Qexit too.
10627
10628 * lread.c (init_obarray): Don't staticpro Vobarray, since the
10629 DEFVAR_LISP in syms_of_read takes care of that.
10630
dff28924 106311991-04-22 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10632
10633 * window.c (save_window_save): Always get the selected window's
10634 value of point from its buffer, not just when it's also the
10635 current buffer.
10636
10637 * lisp.h (Qdisabled): Declare this here so that the keys_of_*
10638 files can disable the commands they define.
10639 * casefiddle.c (keys_of_casefiddle): Make upcase-region and
10640 downcase-region disabled, by default.
10641
dff28924 106421991-04-16 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182 10643
da1d68b2 10644 * bytecode.c (PUSH): Alliant can't be bothered to implement the
615d0182
DL
10645 preincrement operator right, so use a comma.
10646
da1d68b2 10647 * print.c (syms_of_print): staticpro Qexternal_debugging_output.
615d0182
DL
10648
10649 * editfns.c (clip_to_bounds): No longer static - used in window.c.
10650 * window.c (unshow_buffer): Use clip_to_bounds to make sure we
10651 change point to something legal.
10652
dff28924 106531991-04-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
10654
10655 * sysdep.c: Changes in formatting and comments.
10656
dff28924 106571991-04-12 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
615d0182
DL
10658
10659 * editfns.c (Fbuffer_substring): Don't call make_string, because
10660 it may cause a compaction and move the buffer, and then copy the
10661 wrong data.
10662
10663 * keyboard.c (read_char): Only GC if we've actually done enough
10664 consing since the last gc to make it worthwhile.
10665
dff28924 106661991-04-11 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
10667
10668 * keymap.c (access_keymap): Canonicalize the order of the
10669 modifiers when you look up a symbol in a keymap, too.
10670 (where-is-internal): If the keymap in which we found the
10671 definition was reached by meta-prefix-char, replace it with the
10672 metized character.
10673
10674 * eval.c (Fcondition_case): Initialize the `handler_list' member
10675 of the catchtag.
10676
da1d68b2 10677 * keyboard.c (read_char): Reset recent_keys_index when it is
615d0182
DL
10678 greater than OR EQUAL to the number of elements in recent_keys,
10679 stupid.
10680
10681 * keymap.c (access_keymap): When fetching the car of listy events,
10682 no need to call Fcar_safe - extract the car directly.
10683 * keyboard.c (read_key_sequence): Don't extract the car from listy
10684 events here since 1) it strips information that we need from the
10685 events, and 2) access_keymap will take care of that for us.
10686
10687 * macros.c (Qexecute_kbd_macro): New variable, used by
10688 Fexecute_command.
10689 (syms_of_macros): Initialize and staticpro Qexecute_kbd_macro.
10690 * lisp.h: Add extern declaration for Qexecute_kbd_macro.
10691 * keyboard.c (Fcommand_execute): Add an entry to the command
10692 history for keyboard macros too.
10693
10694 * xterm.c (XTread_socket): If we get a MappingNotify event whose
10695 request == MappingKeyboard, someone has changed the keyboard
10696 mapping, and we should get the new mapping with
10697 XRefreshKeyboardMapping.
10698
dff28924 106991991-04-10 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
615d0182
DL
10700
10701 * commands.h: Declare last_command_char to be a Lisp_Object, not
10702 an integer (ack).
10703
10704 * cmds.c (Fself_insert_command): If last_command_char is not an
10705 integer, beep.
10706 * minibuf.c (Fself_insert_and_exit): Same thing.
10707
10708 * keyboard.c (format_modifiers): New function, factoring out code
10709 from modify_event_symbol and reorder_modifiers.
10710 (modify_event_symbol): Call format_modifiers instead of doing the
10711 work inline.
10712 (reorder_modifiers): New function to put the modifiers on a
10713 modified symbol in the canonical order.
10714
10715 * keymap.c (modify_event_symbol): Prepend the modifiers so they
10716 appear in the canonical order: `M-C-S-U-'.
10717 (store_in_keymap): If IDX is a symbol, put the modifiers in the
10718 canonical order before storing.
10719
dff28924 107201991-04-09 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10721
10722 * keymap.c (Flocal_set_key, Fglobal_set_key): When checking types
10723 of arguments, allow KEYS to be a vector or string, not just a
10724 string.
10725 (keymap_table): New static function to replace duplicated code in
10726 access_keymap and store_in_keymap.
10727 (access_keymap): Use keymap_table.
10728 (store_in_keymap): Use keymap_table, and put non-character
10729 definitions in dense keymaps *after* the vector.
10730
10731 * fileio.c (directory_file_name): Remove trailing slashes from
10732 single-letter names like "a/" too. Let slen be the string length,
10733 not one less than the string length.
10734
10735 * keyboard.c (Fset_input_mode): Don't complain that QUIT isn't an
10736 ASCII character if it is nil - it is an optional parameter.
10737
10738 * keymap.c (Faccessible_keymaps): Use meta-characters in the key
10739 sequences returned, carefully making sure that the sequences still
10740 appear in order of increasing length.
10741
dff28924 107421991-04-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
10743
10744 * vmsfns.c (vms_trnlog): Increased size of str to 256 elements.
10745 (vms_symbol): Increased size of str to 1025 elements.
10746
dff28924 107471991-03-24 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10748
10749 * dispnew.c (pixel_to_glyph_translation): Moved this function to
10750 xterm.c, since it is specific to X and only called by the X code.
10751 * xterm.c (pixel_to_glyph_translation): Here it is.
10752
dff28924 107531991-03-22 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
10754
10755 * s-usg5-4.h (DATA_SEG_BITS): Definition deleted.
10756 * m-intel386.h (DATA_SEG_BITS): Define here if USG5_4.
10757
dff28924 107581991-03-22 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10759
10760 * keymap.c (Faccessible_keymaps): Produce meta-characters in the
10761 key sequences instead of [meta-prefix-char CHAR] sequences.
10762
dff28924 107631991-03-21 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10764
10765 * keymap.c (Flookup_key): If KEY is a zero-length array, then
10766 return KEYMAP; this is more algebraically satisfying.
10767
10768 * dispnew.c (Fsit_for): If the time to sit is zero and there is no
10769 input available, then return Qt, not Qnil.
10770
10771 * keyboard.c (read_char): If a quit occurs and we return
10772 quit_char, clear Vquit_flag, so we don't end up returning it again
10773 and again... All lisp code does this manually if they call
10774 read-char with quits inhibited, so it's the right thing to do.
10775
dff28924 107761991-03-20 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10777
10778 * keyboard.c (read_char): If there is still no input available
10779 after an auto-save, do a garbage-collection.
10780
10781 * undo.c (truncate_undo_list): Always leave at least one undo
10782 record in the undo list. And use sizeof (struct Lisp_Cons), etc.
10783 instead of 8, etc.
10784
10785 * keyboard.c (read_char): When deciding whether to wrap
10786 recent_keys_index back to 0, compare it against
10787 sizeof (recent_keys)/sizeof(recent_keys[0]),
10788 not sizeof (recent_keys).
10789 (quit_char): This can't be anything but an ASCII character, so it
10790 shouldn't be a Lisp_Object. The declaration's comment says why.
10791 (read_char, init_keyboard): Treat quit_char as an int now.
10792 (Fset_input_mode): As above, and signal an error if QUIT is not an
10793 ASCII character.
10794
10795 * callint.c (Fprefix_numeric_value): Use XFASTINT to initialize
10796 val, not raw.
10797
10798 * fileio.c (Fmake_symbolic_link): Don't expand FILENAME; this
10799 would make it impossible to make a link to a relative name.
10800
dff28924 108011991-03-19 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10802
10803 * keyboard.c (syms_of_keyboard): Removed the DEFVAR_BOOL for
10804 meta-flag. This cannot be a lisp variable because we need to
10805 change the terminal settings whenever this flag changes. Change
10806 this through set-input-mode instead.
10807
dff28924 108081991-03-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
10809
10810 * keyboard.c (read_avail_input): Raise SIGHUP if no input on AIX.
10811
dff28924 108121991-03-19 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182 10813
da1d68b2
JB
10814 * keyboard.c (kbd_buffer_store_event, kbd_buffer_read_char)
10815 (read_key_sequence, Fexecute_extended_command, Fset_input_mode)
10816 (init_keyboard, syms_of_keyboard): Use XSET (var, Lisp_Int, exp)
615d0182
DL
10817 instead of XSETINT (var, exp) in those cases where var is not
10818 known to already be a Lisp_Int.
10819 * search.c (skip_chars): Same.
10820 * xterm.c (construct_mouse_click, XTread_socket): Same.
10821 * callint.c (Fprefix_numeric_value): Make sure to return a
10822 Lisp_Int even when RAW is a cons whose car is not a Lisp_Int.
10823 * process.c (sigchld_handler): When searching for a process whose
10824 pid is -1, make sure that the pid is an int first, since network
10825 streams are in Vprocess_alist too.
10826
10827 * keyboard.c (syms_of_keyboard): Added DEFVAR_BOOL for
10828 meta-flag. Emacs 18 had this, and I see no entry in the ChangeLog
10829 saying that it was purposefully removed.
10830
dff28924 108311991-03-17 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182 10832
da1d68b2
JB
10833 * keymap.c (Fcopy_keymap, Faccessible_keymaps, describe_map)
10834 (append_key): Minor typos and brainos corrected.
615d0182
DL
10835
10836 * keyboard.c (read_char): Removed code to find the vector in a
10837 (kbd-macro . VECTOR) - style macro, since the macro is represented
10838 by the vector itself.
dff28924 10839 (read_char_menu_prompt): Changed to correctly recognize the new
615d0182
DL
10840 dense keymap structures.
10841 (read_key_sequence): Changed code that checks for keymapness to
10842 use get_keymap_1 instead of doing the indirection and keymapness
10843 testing itself.
10844 (Fcommand_execute): A keyboard macro is now a string or a vector.
10845 (Fexecute_extended_command): When expanding this_command_keys,
10846 remember that it is now an array of Lisp_Objects, not chars.
10847
10848 * doc.c (Fdocumentation): Rearranged into a switch statement, and
10849 made vectors macros, not keymaps.
10850
dff28924 10851 * eval.c (Fcommandp): Removed code to recognize
615d0182
DL
10852 (kbd-macro . VECTOR) as a command, and added code to recognize
10853 vectors as commands.
10854 * macros.c (Qkbd_macro): Variable deleted.
10855 (syms_of_macros): Initialization of Qkbd_macro removed.
10856
dff28924 108571991-03-14 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
10858
10859 * minibuf.c (keys_of_minibuf): Changed all calls to
10860 initial_define_lisp_key to calls to initial_define_key.
10861
10862 * keymap.c (describe_map): Adjusted to handle the new style of
10863 keymap.
10864
dff28924 108651991-03-14 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
10866
10867 * fileio.c (Fwrite_region): On VMS, don't try rewriting old version.
10868
dff28924 108691991-03-14 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
10870
10871 * keymap.c (Faccessible_keymaps): Adjusted to handle the new style
10872 of keymap.
10873 (Fwhere_is_internal): Handle the new-style of keymaps.
10874 Additionally, only check to see if a match is shadowed by a
10875 binding in the local keymap when LOCAL_KEYMAP is non-nil, instead
10876 of comparing elt against DEFINITION yet again.
10877 (describe_map_tree): Handle key sequences that are vectors, as
10878 well as those that are strings.
10879
dff28924 108801991-03-13 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
10881
10882 * commands.h, keymap.c (meta_map, control_x_map): Make these
10883 Lisp_Objects, not Lisp_Vectors.
10884 keymap.c (syms_of_keymap): Same.
10885
10886 * keymap.c (Fuse_global_map): There is no longer any reason to
10887 insist that KEYMAP must be a dense keymap; delete the code that
10888 does so.
10889
dff28924 108901991-03-12 Jim Blandy (jimb@wookumz.ai.mit.edu)
615d0182 10891
b344d29d 10892 * commands.h, lisp.h: Changed global_map and current_global_map to
615d0182
DL
10893 be Lisp_Objects, not Lisp_Vectors.
10894 keyboard.c (read_key_sequence): Same.
da1d68b2
JB
10895 keymap.c (Fkey_binding, Fglobal_key_binding, Fglobal_set_key)
10896 (Fuse_global_map, Fwhere_is_internal, describe_buffer_bindings)
10897 (syms_of_keymap): Same.
615d0182
DL
10898
10899 * keymap.c (Fdefine_key): Braino: increment idx and clear metized
10900 flag even when the element of the key sequence isn't a character.
10901 (Flookup_key): Fix same braino.
10902
dff28924 109031991-03-10 Jim Blandy (jimb@wookumz.ai.mit.edu)
615d0182
DL
10904
10905 * keymap.c (get_keyelt): Use access_keymap to resolve indirect
10906 entries, instead of duplicating its code.
10907 (Fcopy_keymap): Handle the new keymap structure.
10908
dff28924 109091991-03-09 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
10910
10911 * eval.c (struct catchtag): New field handlerlist.
10912 (internal_catch, internal_condition_case): Set that field.
10913 (unbind_catch): Use it.
10914
dff28924 109151991-03-08 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
10916
10917 * m-intel386.h (signal): Maybe define if USG.
10918
10919 * keyboard.c (echo_char): Don't have space at end of echobuf.
10920
dff28924 109211991-03-07 Jim Blandy (jimb@albert.ai.mit.edu)
615d0182
DL
10922
10923 * keyboard.c (syms_of_keyboard): Initialize mouse_syms, instead of
10924 doing func_key_syms twice. Don't deal with scrollbar_syms, since
10925 it doesn't exist.
10926
dff28924 109271991-03-06 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
10928
10929 * keymap.c (access_keymap, store_in_keymap): Changed to handle the
10930 new style of keymaps.
10931
10932 * fns.c (Fassq, Fcopy_alist): Changed docstring to promise to
10933 ignore elements of LIST that are not conses. See access_keymap
10934 and copy_keymap for a cheap excuse.
10935
dff28924 109361991-03-06 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
10937
10938 * s-vms.h (DATA_START): Remove `+ 512'.
10939
dff28924 109401991-03-05 Jim Blandy (jimb@spiff.ai.mit.edu)
615d0182
DL
10941
10942 * keymap.c (Fmake_keymap): Rewritten to construct the
10943 new dense keymap structure: (keymap VECTOR . ALIST). Docstring
10944 adjusted accordingly. This means that the keyboard macro
10945 stupidity (see Feb 27, keyboard.c) is no longer needed.
10946
dff28924 109471991-03-03 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
10948
10949 * sysdep.c (MEMORY_IN_STRING_H): New compilation flag.
10950 * s-isc2-2.h: New file.
10951
dff28924 109521991-02-27 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
10953
10954 * macros.c (Qkbd_macro): New variable, to hold the symbol
10955 `kbd-macro', which we use to tag vector-style keyboard macros.
10956 (syms_of_macros): Initialize and staticpro Qkbd_macro.
10957
10958 * eval.c (Fcommandp): Recognize the new keyboard macros.
10959
10960 * keyboard.c (Fcommand_execute): A keyboard macro is now a string,
10961 or a cons whose car is the symbol `kbd-macro' and whose
10962 cdr is a vector of events; previously, macros were strings or
10963 vectors, but that makes it difficult to tell the difference
10964 between macros and dense keymaps.
10965 (read_char): Handle the new macros correctly, and re-allocate
10966 this_command_keys correctly.
10967
dff28924 109681991-02-26 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
10969
10970 * s-vms.h (calloc): Define like malloc, etc.
10971
dff28924 109721991-02-26 Jim Blandy (jimb@spiff.ai.mit.edu)
615d0182
DL
10973
10974 * xterm.c (XTread_socket): Move enter_timestamp outside of the
10975 function; static variables inside functions don't always work in
10976 Emacs.
10977
10d1d0af 10978 * editfns.c (in_accessible_range): Deleted - insufficiently
615d0182
DL
10979 general.
10980 (clip_to_bounds): New function, much like in_accessible_range,
10981 except that the upper and lower bounds are arguments.
10982 (goto_char, save_restriction_restore): Rewritten to use
10983 clip_to_bounds instead of in_accessible_range.
10984
dff28924 109851991-02-25 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
10986
10987 * keymap.c (initial_define_lisp_key): Turn KEY into a Lisp_Int
10988 before passing it to store_in_keymap.
10989
10990 * buffer.c (reset_buffer_local_variables): Don't try to initialize
10991 the buffer's mouse_map and function_key_map fields, since they
10992 don't exist anymore.
10993
10994 * macro.c (kbd_macro_buffer, kbd_macro_ptr, kbd_macro_end): These
10995 are now all pointers to Lisp_Objects instead of chars.
10996 (Fend_kbd_macro): Use make_sequence.
10997 (store_kbd_macro_char): Argument c is now a Lisp_Object. Change
10998 call to xrealloc to ask for Lisp_Objects instead of chars. Set
10999 kbd_macro_end to the same place in the new buffer as it was in the
11000 old one, not to the end of the buffer.
11001 (Fexecute_kbd_macro): Allow MACRO to be a string or a vector.
11002 (syms_of_macros): Allocate Lisp_Objects instead of chars for
11003 kbd_macro_buffer.
11004
11005 * alloc.c (make_sequence): New function, useful to keyboard.c and
11006 macro.c.
11007 * keyboard.c (Fread_key_sequence): Use make_sequence.
11008 (Fthis_command_keys): Use make_sequence.
11009
dff28924 110101991-02-24 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
11011
11012 * keymap.c (Fwhere_is): If the command can't be found, the message
11013 is now "foobie is not on any key.", instead of "... any keys.".
11014
11015 * keyboard.c (input_poll_signal): Pass 0 to read_avail_input,
11016 instead of `&junk'. Removed variable `junk'.
11017 (command_loop_1): Updated to handle the unified function key/mouse
11018 event/keystroke arrangement.
11019 (Finput_pending_p): Removed vestiges of code to handle
11020 unread_input_char value of -1, since this doesn't happen anymore.
11021 (read_char): Adapted to handle lispy events.
11022 (read_char_menu_prompt): Allocate `menu' buffer using alloca,
11023 instead of a variable-sized array, which is gcc-specific.
11024 (Frecent_keys): Return the most recent "keystrokes" as a vector,
cc4a96c6
GM
11025 to accommodate lispy events.
11026 (Fset_input_mode): Accommodate non-characters as quit keys. If
615d0182
DL
11027 this is a bad thing, init_sys_modes will tell us.
11028 (init_keyboard): this_command_keys is now an array of
11029 Lisp_Objects; adjust the amount of storage we request to hold it.
11030 Remember that quit_char can be any keystroke.
11031 (syms_of_keyboard): last_command_char, last_input_char, help_char,
11032 menu_prompt_more_char and meta_prefix_char are now DEFVAR_LISPs
11033 instead of DEFVAR_INTs.
dff28924
SS
11034
110351991-02-24 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11036
11037 * process.c (wait_reading_process_input): Use NETCONN_P.
11038
dff28924 110391991-02-23 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 11040
da1d68b2
JB
11041 * keyboard.c (recent_keys, this_command_keys)
11042 (menu_prompt_more_char, help_char, last_command_char, quit_char)
11043 (last_input_char): Changed to Lisp_Objects, so we can use function
615d0182
DL
11044 keys for them.
11045 (Vglobal_function_map): Variable deleted.
11046 (echo_char): Echo function keys too. The argument C is now a
11047 Lisp_Object instead of a char.
11048 (Fread_key_sequence): Removed sludge to handle window events
11049 specially, and added sludge to handle sequences with
11050 non-characters in them.
11051 (classify_object): Elided, since this should go away soon.
11052 (read_key_sequence): Adapted to look up symbols in keymaps,
11053 just like characters.
11054
dff28924 110551991-02-23 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11056
11057 * process.c (send_process): Handle EAGAIN like EWOULDBLOCK.
11058
dff28924 110591991-02-22 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
11060
11061 * doc.c (substitute_command_keys): Call describe_map_tree with
11062 only three arguments, since the CHARTAB arg has been disposed of.
11063
11064 * keymap.c (Fcurrent_global_map, Fuse_local_mouse_map): Functions
11065 deleted, since the mouse maps are no longer separate from the key
11066 maps.
11067 (append_key): New function, which handles tacking a single
11068 keystroke on the end of a key sequence, promoting strings to
11069 vectors when needed.
11070 (Faccessible_keymaps): Adjusted to return vectors for key
11071 sequences, when necessary.
11072 (Fkey_description): Removed stuff to handle mouse buttons and
11073 other things specially, since this work will go into
11074 Fsingle_key_description.
11075 (Fsingle_key_description): SIMPLIFIED to handle everything
11076 correctly! Jeepers!
11077 (Fwhere_is_internal): Scan the assoc-list at the end of dense
11078 keymaps, and construct strings or vectors.
11079 (where_is_string, describe_buffer_bindings): Simplified by
11080 deleting code to handle mouse button bindings specially.
11081 (describe_map_tree): Removed CHARTAB argument; this was
11082 a kludge to print out mouse events nicely, and is no longer
11083 necessary. Nobody was using it anyway.
11084 (describe_map): Removed ugly hack to handle mouse buttons
11085 specially, added code to describe alists on dense keymaps, and
11086 removed CHARTAB argument.
11087 (describe_alist): Made to handle bindings of symbols as well as
11088 characters. Removed CHARTAB argument.
11089 (describe_vector): Removed CHARTAB argument, allocated KLUDGE
11090 outside of loop and GCPRO'd it.
11091 (syms_of_keymap): Remove last vestiges of Vglobal_mouse_map,
11092 Vmouse_button_names, Suse_local_mouse_map,
11093 Scurrent_local_mouse_map.
11094
11095 * buffer.h (struct buffer): Removed mouse_map and function_key_map
11096 members, since they are now handled by the keymap element.
11097
11098 * keyboard.c (syms_of_keyboard): Change initialization of
11099 meta_prefix_char, since it's now a Lisp_Object.
11100
11101 * keymap.c (Fkeymapp): Rewrote this to use get_keymap_1; now it's
11102 a one-liner instead of a 13-liner.
11103 (DENSE_TABLE_SIZE): Created new constant for the # of lookup-style
11104 entries in a dense keymap, and the index of the map's assoc list.
11105 Used it where appropriate.
11106 (Fcopy_keymap): Notice that 129'th element in dense keymaps.
11107 (Fdefine_key, Flookup_key): Reworked to deal with vectors of
11108 symbols and characters as well as strings for key sequences.
11109 (meta_prefix_char): Changed from an int to a Lisp_Object.
11110
dff28924 111111991-02-21 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11112
11113 * fileio.c (report_file_error): Don't downcase "I/O".
11114
dff28924 111151991-02-20 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182
DL
11116
11117 * keymap.c (access_keymap): Allow IDX to be any sort of bindable
11118 event, and deal with the extended keymaps. IDX is now a
11119 Lisp_Object instead of an int, obviously.
11120 (store_in_keymap): Allow IDX to be any sort of bindable event, and
11121 deal with the extended keymaps. IDX is now a Lisp_Object.
11122
11123 * xterm.c (construct_mouse_click): Add code to set the up_modifier
11124 bit for ButtonRelease events.
11125
11126 * keyboard.c (kbd_buffer_store_event): Use XFASTINT and XSETINT to
11127 access event->code, since it's a Lisp_Object.
11128 (kbd_buffer_read_char): Golly, perhaps we should increment
11129 kbd_fetch_ptr to remove the event we just read from the queue.
11130 (modify_event_symbol): Stupid fixes: correctly look up unmodified
11131 symbols when cache entry has a modified symbol vector. And, when
11132 first adding the modified symbol vector, copy the old slot value
11133 into it correctly.
11134
dff28924 111351991-02-19 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
11136
11137 * keyboard.c (command_loop_1): #if 0 the block of code which
11138 handles mouse events and other lispy events specially, since I
11139 hope it will go away soon.
11140
11141 * dispnew.c (Fsleep_for_millisecs): Pass all four arguments to
11142 wait_reading_process_input, instead of just the first two.
11143
11144 * process.c (wait_reading_process_input): Remove support for
0105dc3e 11145 only waiting for mouse input, since that has been superseded.
615d0182
DL
11146 This removes X dependencies from process.c, and eliminates some
11147 references to code that should only exist when using X10.
11148
11149 * keyboard.c (mouse_moved_symbol, redraw_screen_symbol,
11150 mapped_screen_symbol, unmapped_screen_symbol,
11151 exited_window_symbol, exited_scrollbar_symbol): Renamed to
11152 Qmouse_moved, Qredraw_screen, Qmapped_screen, Qunmapped_screen,
11153 Qexited_window, Qexited_scrollbar, just as done in xterm.c.
11154 (classify_object): Removed code to look up a function key in the
11155 global and local function key keymaps, since this will be done
11156 more generally.
41e9b956 11157 (Fexecute_mouse_event): Elided this function with a #if 0; I
615d0182
DL
11158 think it will go away once the more general keymap stuff is
11159 implemented, but I'm not sure.
11160 (syms_of_keyboard): Removed defsubr for Sexecute_mouse_event.
11161 (where_is_string, describe_buffer_bindings, syms_of_keymap):
11162 Elided code to handle mouse button bindings specially; I hope this
11163 will go away.
11164
11165 * lread.c (syms_of_lread): Change defsubr for eval-buffer to
11166 defsubr for eval-current-buffer.
11167
11168 * keymap.c (syms_of_keymap): defvar for Vglobal_function_map
11169 removed, since that variable has disappeared.
11170
11171 * xterm.c (x_func_key_to_sym): Removed entirely, since we no
11172 longer convert X keycodes to symbols in this section of code.
11173 (x_convert_modifiers): New function to turn the X modifier bits
11174 into struct input_event modifier bits.
da1d68b2 11175 (encode_mouse_button): Removed, since this work isn't done here
615d0182
DL
11176 anymore.
11177 (Vx_send_mouse_movement_events): Add an extern declaration for
11178 this.
11179
11180 * termhooks.h: Only define struct input_event if the module
11181 has previously #included lisp.h; this avoids forcing simple modules
11182 like cm.c to #include lisp.h.
11183
11184 * term.c: #include "lisp.h" before #including "termhooks.h", since
11185 the latter uses Lisp_Objects now.
11186
11187 * xfns.c (syms_of_xfns): Delete the defsubr for Sx_window_id,
11188 since Fx_window_id is gone.
11189
11190 * xterm.c (construct_mouse_event): Construct a struct input_event
11191 instead of a lispy event.
11192
da1d68b2 11193 * screen.c (coordinates_in_window): Added explanatory comment.
615d0182
DL
11194 (window_from_coordinates): Change PART, whose returned values are
11195 dependent on X-windows, to be called MODELINE_P, with appropriate
11196 new return values.
11197 * xterm.c (notice_mouse_movement): Handle the X-windows dependent
11198 stuff that used to be in window_from_coordinates here instead.
11199 (XTread_socket): Modified to produce struct input_events
11200 instead of lispy events.
11201
dff28924 112021991-02-18 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 11203
da1d68b2 11204 * termhooks.h: Added up_modifier to the enum for modifier bits;
615d0182
DL
11205 this bit will be applied to mouse events.
11206 (struct input_event): Changed specification of non_ascii_keystroke
11207 events to send the function key number instead of a symbol.
11208 * keyboard.c (modify_event_symbol): Re-arranged to work well
11209 with function key/mouse button numbers instead of symbols.
c0943d3d 11210 And if (MODIFIERS & up_modifier), prepend "U-" to the name of the
615d0182
DL
11211 symbol being constructed.
11212 (make_lispy_event): Use the new modify_event_symbol.
11213
11214 * xterm.c (notice_mouse_movement): Adjusted this function to
11215 work with a struct input_event instead of producing an
11216 s-expression.
11217
11218 * xterm.c, xfns.c: Made all references to x_mouse_queue,
11219 x_expose_queue, and the functions which manipulate them
11220 conditional on having X10, since only X10 code ever places
11221 anything in these queues.
11222
dff28924 112231991-02-15 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
11224
11225 * termhooks.h: Define struct input_event, to represent input
11226 events while they sit in the keyboard input buffer. Using lisp
11227 objects to represent input events is a bad idea because the
11228 routines which enqueue them can be called from signal handlers,
11229 and therefore should not cons.
11230
da1d68b2 11231 * keyboard.c (kbd_buffer, kbd_fetch_ptr, kbd_store_ptr): Change
615d0182
DL
11232 these to be of type `struct input_event *'.
11233 (kbd_buffer_store_event): Manipulate struct input_events instead
11234 of lisp objects.
11235 (make_lispy_event): New function, to construct a lisp-style event
11236 corresponding to a particular struct input_event.
11237 (modify_event_symbol): New function, to add modifier prefixes to a
11238 symbol, and look the new symbols up quickly if they've already
11239 been created.
11240 (kbd_buffer_read_char): Call make_lispy_event to turn the thing
11241 in the keyboard buffer into the form that read_char is expecting.
11242 (Qwith_modifier_keys): Define this new symbol variable.
11243 (syms_of_keyboard): Initialize and protect Qwith_modifier_keys.
11244
11245 * xterm.c (init_input_symbols): Rearranged the code that produces
11246 the func_key_syms array.
11247 (x_func_key_to_sym): Simplified, since more will be handled in
11248 make_lispy_event.
11249 (XTread_socket): When handling KeyPress events, don't pass the
11250 state of the modifier keys to x_func_key_to_sym, since it doesn't
11251 care any more.
11252
11253 * sysdep.c (kbd_input_ast, end_kbd_input, read_input_waiting):
11254 Rename kbd_buffer_store_char to kbd_buffer_store_event.
11255
11256 * keyboard.c (stuff_buffered_input): Since the keyboard buffer
11257 holds lisp objects, only stuff entries that are Lisp_Ints, and
11258 XINT them before passing them to stuff_char.
11259 (kbd_buffer_store_char): Make this not a static function, since
11260 sysdep.c calls it. And rename it kbd_buffer_store_event.
11261
11262 * keyboard.c (kbd_buffer, kbd_fetch_ptr, kbd_store_ptr): Made these
11263 variables static, to document the fact that they're only used
11264 within keyboard.c.
11265
dff28924 112661991-02-13 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 11267
da1d68b2 11268 * xterm.c (init_input_symbols): Remove the `xk-' prefix from all
615d0182
DL
11269 the function key symbols, since they're going to be used for
11270 function keys from all sorts of terminals, not just when running
11271 under X.
11272
11273 * lread.c (read_escape): Removed support for mouse button escapes
11274 (\S-, \U-, \C- applied to digits), because they're being replaced
11275 by something more rational.
11276
dff28924 112771991-02-09 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11278
11279 * buffer.c: Doc fix.
11280
11281 * sysdep.c (dup2): Rewrite of non-F_DUPFD case.
11282
dff28924 112831991-02-08 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11284
11285 * m-intel386.h (LOAD_AVE_CVT): Add extra parens.
11286 * s-usg5-4.h (LIBX11_SYSTEM): #undef it.
11287
dff28924 112881991-02-07 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11289
11290 * s-esix.h: New version from kayvan.
11291 Adds HAVE_X11 conditional, NEED_PTEM_H, USG_SYS_TIME, USE_UTIME,
dff28924 11292 LIBS_DEBUG; removes #undef sigsetmask, LIBS_SYSTEM, ESIX,
615d0182
DL
11293 MISSING_UTIMES.
11294
dff28924 112951991-02-06 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11296
11297 * process.c (Faccept_process_output): Second arg gives timeout.
11298
dff28924 112991991-02-06 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182
DL
11300
11301 * lread.c (read_escape): Added support for \S- and \U- escapes (for
11302 binding mouse buttons), and noted that \C- must work on digits.
11303
11304 * xterm.c (init_input_symbols): Was mistakenly renamed
11305 init_inputs; named back.
11306
11307 * xterm.c (construct_mouse_click, encode_mouse_button): Rewritten
11308 to build new-style mouse events.
11309
11310 * dispnew.c (update_line): Write a zero into obody[olen] to make
11311 sure the lines in current_screen->glyphs remain terminated.
11312 * xdisp.c (display_string, display_text_line): Don't write off
11313 the end of the line and destroy the zero terminator when expanding
11314 a tab.
11315
11316 * fns.c (Fy_or_n_p): Accept C-] (usually abort-recursive-edit) as
11317 well as C-g to quit.
11318
dff28924 113191991-02-05 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182
DL
11320
11321 * sysdep.c, s-aix3-1.h, s-hpux.h, s-iris3-5.h, s-iris3-6.h,
da1d68b2
JB
11322 * s-irix3-3.h, s-rtu.h, s-sunos4-1.h, s-unipl5-0.h, s-unipl5-2.h,
11323 * s-usg5-0.h, s-usg5-2-2.h, s-usg5-2.h, s-usg5-3.h, s-xenix.h:
615d0182
DL
11324 Globally replaced INTERRUPTABLE with INTERRUPTIBLE.
11325
11326 * xterm.c (construct_mouse_event): Renamed to
11327 construct_mouse_click, since there are kinds of mouse events
11328 besides clicks (movement, for example).
da1d68b2 11329 (XTread_socket): Rename calls here.
615d0182 11330
da1d68b2
JB
11331 * xterm.c (mapped_screen_symbol, unmapped_screen_symbol)
11332 (exited_scrollbar_symbol, exited_window_symbol)
11333 (redraw_screen_symbol, mouse_moved_symbol): Renamed to
615d0182
DL
11334 Qmapped_screen, Qunmapped_screen, Qexited_scrollbar,
11335 Qexited_window, Qredraw_screen, Qmouse_moved, to agree with naming
11336 conventions elsewhere in Emacs.
11337
da1d68b2
JB
11338 * xfns.c (text_part_sym, modeline_part_sym)
11339 (vertical_scrollbar_sym, vertical_slider_sym, vertical_thumbup_sym)
11340 (vertical_thumbdown_sym, horizontal_scrollbar_sym)
11341 (horizontal_slider_sym, horizontal_thumbleft_sym)
11342 (horizontal_thumbright_sym): Renamed to Qtext_part, Qmodeline_part,
615d0182
DL
11343 Qvscrollbar_part, Qvslider_part, Qvthumbup_part, Qvthumbdown_part,
11344 Qhscrollbar_part, Qhslider_part, Qhthumbleft_part,
11345 Qhthumbright_part, to agree with the naming conventions elsewhere
11346 in Emacs.
11347
11348 * xterm.c (XTread_socket): While handling EnterNotify events,
11349 clear Vmouse_event here.
11350 (notice_mouse_movement): Don't clear it here.
11351
dff28924 113521991-02-04 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11353
11354 * s-sunos4-0.h: Renamed from s-sunos4.h.
11355 (read, write, open, close): Macro defs moved to s-sunos4-1.h.
11356 (INTERRUPTABLE_*): Likewise.
11357 * s-sunos4-1.h: New file.
11358
dff28924 113591991-02-04 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
11360
11361 * keymap.c (Vglobal_mouse_map, Vglobal_function_map): Variables
11362 removed in preparation for conversion to unified keymap format.
11363 (Fmake_keymap): Make vector keymaps with 129 entries; the last
11364 will be an assoc-list for looking up symbols. Update docstring to
11365 describe 129'th element.
11366 (Fmake_sparse_keymap): Update docstring to say that you can bind
11367 symbols in these maps too.
11368 (Fkeymapp): Recognize 129-element vectors as keymaps, not
11369 128-element vectors.
11370 (get_keymap_1): wrong_type_argument can no longer return a new
11371 value supplied by the debugger; remove loop to support this.
11372
11373 * xterm.c (XTread_socket): When handling EnterNotify events,
11374 enqueue fake mouse events iff Vx_send_mouse_movement_events !=
11375 Qnil.
11376
11377 * xfns.c (Fx_window_id): Function removed; Fscreen_parameters
11378 already provides this information.
11379
11380 * xterm.c (x_term_init): Cleaned up the code to get the host name,
11381 and removed fixed limit on host name length.
11382
11383 * window.c (Fscroll_other_window): Don't explicitly save
11384 current_buffer and point; the save_excursion will take care of
11385 that anyway.
11386
11387 * dispnew.c (safe_bcopy): Rewritten to handle overlapping regions
11388 with multiple calls to bcopy instead of a stupid copy loop.
11389
11390 * xterm.c, xfns.c (Vscreen_part, Vx_send_movement_events): These
11391 variables renamed to Vmouse_screen_part,
11392 Vx_send_mouse_movement_events.
11393
da1d68b2 11394 * lread.c (Feval_buffer): Function deleted.
615d0182
DL
11395 (Feval_current_buffer): Removed "#if 0 ... #endif" around this
11396 function.
11397
dff28924 113981991-02-03 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11399
11400 * Makefile, ymakefile (SHELL): Force use of sh.
11401
11402 * s-usg5-4.h (USG5_4): Define it.
11403 (LOAD_AVE_*): Don't define them.
11404 * m-intel386.h (LOAD_AVE_*): Define, if USG5_4.
11405
11406 * buffer.c (Fbuffer_local_variables): Omit slots with no names.
11407
dff28924 114081991-02-03 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182
DL
11409
11410 * xterm.c (x_term_init, init_input_symbols): Moved these to the
11411 bottom of the file, 1) to be consistent with the other files, and
11412 2) so it can initialize some variables I want.
11413
dff28924 114141991-02-02 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
11415
11416 * xterm.h: Added external declaration for x_focus_screen.
11417
11418 * search.h: File deleted.
da1d68b2 11419 * buffer.h: Declare searchbuf here instead.
615d0182
DL
11420
11421 * screen.c (Ffocus_screen, Funfocus_screen): Moved these functions
11422 to xfns.c, since they're x-specific.
11423 (syms_of_screen): Removed defsubr calls for above.
11424 * xfns.c (Ffocus_screen, Funfocus_screen): Here they are.
11425 (syms_of_xfns): The defsubrs are here now.
11426
11427 * buffer.h (PT): Make this expand to an expression which is not an
11428 l-value, to prevent people from assigning to it. If everyplace
11429 uses SET_PT, it will be easier to merge in the interval code.
11430 (point): Similar changes here.
11431 (SET_PT): This can no longer be written in terms of PT, so write
11432 out current_buffer->text.pt.
11433
11434 * xterm.c (x_new_font): Rewritten to remove arbitrary limit on
11435 size of x_font_table.
11436 (x_font_table_size): Created new variable.
11437 (n_available_fonts, font_names, font_info, MAX_FONTS): Deleted
11438 these variables/macros.
11439
11440 * dispnew.c (scroll_screen_lines): Instead of disabling the lines
11441 vacated by the scroll (i.e. zeroing enable), mark them as enabled
11442 but empty.
11443
11444 * callint.c (Fcall_interactively): Move UNGCPRO down, so that
11445 stuff is protected while we build the command history entry and do
11446 the function call.
11447
11448 * xterm.c (XTupdate_end): Turn cursor on, even if we don't
11449 currently have the focus.
11450
11451 * minibuf.c (temp_echo_area_glyphs): Clear echo_area_glyphs and
11452 previous_echo_glyphs, so the message we're displaying will
0105dc3e 11453 supersede any existing message.
615d0182
DL
11454
11455 * keyboard.c: Removed external declaration of echo_area_glyphs,
11456 since it's declared in window.h.
11457
dff28924 114581991-01-31 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
11459
11460 * xterm.c (XRINGBELL): Pass 0 as the second argument to XBell;
11461 respect the user's preferences.
11462
dff28924 114631991-01-30 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
11464
11465 * xterm.c (x_draw_single_glyph): New function, created to simplify
11466 cursor drawing/undrawing.
11467 (x_display_box_cursor): Rewritten to properly handle the box
11468 cursor in its filled and hollow forms.
11469 * xterm.h (enum text_cursor_kinds): Added enum for the different
11470 kinds of cursors which might be displayed in a window.
da1d68b2 11471 (struct x_display): Added member `text_cursor_kind' which says
615d0182
DL
11472 which kind of cursor is currently being displayed in the window, so
11473 we can arrange to redraw it effectively.
11474
11475 * keyboard.c (command_loop_1): When handling the forward_char
11476 command, don't let point move to the location after the end of the
11477 buffer.
11478
11479 * keyboard.c (poll_suppress_count): Define this even if
11480 POLL_FOR_INPUT is not defined, because this makes lots of #ifdef
11481 clauses unnecessary, and doesn't hurt, because
11482 {start,stop}_polling become nops.
11483
11484 * config.h, config.h-dist: Make these #include "system.h" and
11485 "machine.h", and let the config script link these appropriately,
11486 instead of using the machine-specific names and expecting the user
11487 to edit this file.
11488
dff28924 114891991-01-29 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
11490
11491 * window.c (Fdelete_window): sib is a Lisp_Object; treat it as
11492 such.
11493
11494 * xterm.c (screen_unhighlight): When the focus leaves a screen,
11495 draw the cursor as a box instead of making it disappear entirely.
11496
dff28924 114971991-01-29 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11498
11499 * unexec.c (make_hdr) [TPIX]: Set f_hdr.f_nscns and f_thdr.f_scnptr.
11500
11501 * sysdep.c [BROKEN_TIOCGWINSZ]: Undef TIOCGWINSZ.
11502
11503 * process.c (wait_reading_process_input): Don't ignore
11504 a zero-length read on a network connection. Do close it.
11505
11506 * sysdep.c (hft_init, hft_reset): Pass &junk as arg to HFQERROR.
11507 Do nothing if not HFT.
11508
dff28924 115091991-01-29 Jim Blandy (jimb@albert.ai.mit.edu)
615d0182
DL
11510
11511 * xfns.h: Created, to declare things defined in xfns.c.
11512 Declare Vx_send_movement_events.
11513 * xfns.c: #include "xfns.h".
11514 (Vx_send_movement_events): Define this variable.
11515 (syms_of_xfns): DEFVAR_LISP it.
11516 * xterm.c: #include "xfns.h".
11517 (XTread_socket): Place a mouse-moved event in the buffer iff
11518 Vx_send_movement_events says to.
11519
dff28924 115201991-01-28 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182 11521
da1d68b2 11522 * ymakefile: Noted that callint.o depends on mocklisp.h,
615d0182
DL
11523 and dired.o on search.h.
11524
11525 * environ.h: Deleted - its creation in the first place was misguided.
11526 callproc.h: Removed #include "environ.h", and added declarations
11527 for environ.h
11528
11529 * buffer.c (syms_of_buffer): Add more detailed documentation to
11530 buffer-undo-list.
11531
11532 * lisp.h (poll_suppress_count): Add external declaration for this here.
11533
dff28924 115341991-01-28 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11535
11536 * m-sun3-68881.h, m-sun3-fpa.h, m-sun3-soft.h: New files.
11537
dff28924 115381991-01-27 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182 11539
da1d68b2 11540 * lisp.h (struct handler): Add poll_suppress_count member, so
615d0182
DL
11541 we can restore poll_suppress_count when we handle an error.
11542 * eval.c (struct catchtag): Add it here too, for throws.
11543 (internal_catch, Fcondition_case, internal_condition_case): Record
11544 the value of poll_suppress_count here in the handler and catch tag.
11545 (Fthrow, Fsignal): Restore it here.
11546
dff28924 115471991-01-25 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
11548
11549 * xterm.c (x_display_box_cursor): If we're undrawing the cursor by
11550 redrawing the character underneath it, draw according to that
11551 line's highlight, instead of assuming it's in the normal GC.
11552
4d8d4b3a 115531991-01-25 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11554
11555 * buffer.h (PTR_CHAR_POS): Value was too small by 1.
11556
dff28924 115571991-01-16 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11558
11559 * doprnt.c (doprnt): Check for overflow in fmtcpy.
11560
dff28924 115611991-01-16 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
11562
11563 * window.c (Fdelete_window): If the deletee gives its space to its
11564 next sibling, that sibling needs to have its top/left side pulled
11565 back to where the deletee's is.
11566
dff28924 115671991-01-15 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182 11568
da1d68b2 11569 * doc.c (Fsnarf_documentation): Handle attaching docstrings to
615d0182
DL
11570 bytecode objects too.
11571
da1d68b2 11572 * syntax.h (syntax_spec_code): Make external declaration for this
615d0182
DL
11573 unsigned char to match the definition in syntax.c.
11574
da1d68b2 11575 * indent.c (compute_motion): Added comments describing how it
615d0182
DL
11576 can be used.
11577
dff28924 115781991-01-15 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11579
11580 * process.c (create_process): Use SETUP_SLAVE_PTY if defined.
11581
11582 * s-usg5-4.h (HAVE_PTYS, HAVE_SETSID): Defined.
11583 (HAVE_WAIT_HEADER, WAITTYPE, wait3, WRETCODE): New macros.
11584 (TIOCSIGSEND): Alias for TIOCSIGNAL.
11585 (FIRST_PTY_LETTER): Overridden.
11586 (PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF, SETUP_SLAVE_PTY): New macros.
11587
b344d29d 11588 * m-ibmrs6000.h (CANNOT_DUMP): Undefine it.
615d0182
DL
11589 (UNEXEC): Define it.
11590 (PURE_SEG_BITS, SHMKEY): Define only if CANNOT_DUMP.
11591 (LINKER): Override it. Then add -bnodelcsect.
11592
11593 * xfns.c (Fx_get_default): Try reversing XGetDefault args if it fails.
11594
dff28924 115951991-01-13 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11596
11597 * s-usg5-4.h (LOAD_AVE_CVT): Cast value to int.
11598
11599 * keyboard.c (read_avail_input): Signal SIGHUP if FIONREAD fails.
11600
11601 * ymakefile: Put tokens after #endif into comment.
11602
11603 * filelock.c (lock_file_owner_name): Declare argument type.
11604
11605 * syntax.c (syntax_spec_code): Type now unsigned char.
11606
11607 * process.c (wait_reading_process_input):
11608 Call status_notify even when not doing redisplay.
11609
11610 * emacs.c (Fkill_emacs): Turn off SIGIO before exiting.
11611
11612 * s-usg5-3.h (USG5_3): Define it.
11613 * m-ibmps2-aix.h [USG5_3]: Define TEXT_START as 0.
11614 Don't define DATA_START or DATA_END or TEXT_END or DATA_SEG_BITS.
11615 Override various other symbols at end of file.
11616
dff28924 116171991-01-12 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
11618
11619 * window.c (window-configuration-p): Closing paren needed. Added.
11620
11621 * keyboard.c (command_loop_1): When displaying a message over an
11622 active minibuffer, call Fsit_for with three arguments, not two.
11623
dff28924 116241991-01-12 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11625
11626 * s-irix3-3.h (HAVE_SYSVIPC): Defined.
11627
dff28924 116281991-01-12 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 11629
da1d68b2 11630 * dispnew.c (buffer_posn_from_coords): Compute_motion starting
615d0182
DL
11631 from bufp[y] instead of counting from the top of the window.
11632
dff28924 116331991-01-11 Richard Mlynarik (mly@pizza.ai.mit.edu)
615d0182 11634
da1d68b2 11635 * window.c (window-configuration-p): Needed. Added.
615d0182 11636
dff28924 116371991-01-11 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
11638
11639 * dispnew.c (buffer_posn_from_coords): Remember to deduce space
11640 for the line continuation markers and the window separators from
11641 the window width.
11642
dff28924 116431991-01-11 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11644
11645 * m-tower32v3.h (VALBITS, GCTYPEBITS): Use 26 bits for pointer.
11646
dff28924 116471991-01-10 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11648
11649 * fileio.c (Fcopy_file): Always close descriptors.
11650
11651 * s-sunos4.h: read, write, open and close are interruptable.
11652
dff28924 116531991-01-09 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
11654
11655 * xterm.c, dispnew.c (pixel_to_char_translation): Renamed to
11656 pixel_to_glyph_translation, and rewritten. Just get coordinates,
11657 don't return anything.
11658 (buffer_posn_from_coords): New function - given a window and
11659 co-ordinates on the screen, find the buffer position at those
dff28924 11660 co-ordinates.
615d0182 11661
dff28924 116621991-01-08 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182
DL
11663
11664 * alloc.c (Fmake_byte_code): Flesh out docstring.
11665
da1d68b2 11666 * window.c (window_loop): Pick the first window correctly, even
615d0182
DL
11667 when screen == 0.
11668
11669 * dispnew.c (scroll_screen_lines): Don't forget to call
11670 update_begin at the top of the down-scrolling section.
11671 And rotate by amount, not -amount, in the up-scrolling section.
11672
11673 * xterm.h (MAX_FONTS, x_font_table, n_fonts): Removed external
11674 declarations for these variables, since they're declared static in
11675 xterm.c and not used elsewhere.
11676 * xterm.c (MAX_FONTS): Moved definition of this to here from
11677 xterm.h.
11678
11679 * xterm.c (x_new_font): If you can't find the requested font,
11680 return a code which indicates this, instead of calling abort.
11681
dff28924 116821991-01-07 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
11683
11684 * xdisp.c (redisplay, display_mode_line): To test
11685 Vglobal_minibuffer_screen for validity, you must check that its
11686 type is Lisp_Screen; comparing it to Qnil isn't good enough.
11687
11688 * screen.c (syms_of_screen): Initialize Vglobal_minibuffer_screen
11689 to Qnil; otherwise, it inhibits decent redisplay (is that another
11690 bug?)
11691
11692 * dispnew.c (init_display): Make sure that the standard input is a
11693 terminal here.
11694 * emacs.c (main): Not here, since we don't know yet if we want to
11695 use a window system of some sort.
11696
11697 * xfns.c (x_make_gc): Delete code to support default_face and
11698 highlight_face, since they're part of the interval code, and
11699 shouldn't be installed yet.
11700
da1d68b2 11701 * dispnew.c (init_display): Calculate_costs expects a screen
615d0182
DL
11702 parameter; pass selected_screen, instead of nothing.
11703
11704 * search.c (Freplace_match): Protect STRING.
11705 * process.c (run_filter): New function.
11706 (read_process_output, exec_sentinel): Use run_filter to call the
dff28924 11707 process's filter function.
da1d68b2
JB
11708 (status_notify): GCPro MSG.
11709 * process.c (Fopen_network_stream): Protect various args.
615d0182
DL
11710 * print.c (Fprin1_to_string, Fprint): Protect OBJ.
11711 * lread.c (Feval_region): Check type of B.
11712 * keymap.c (describe_alist): Protect ELT_PREFIX and TEM2.
11713 (describe_vector): Likewise for ELT_PREFIX and TEM1.
11714
dff28924 117151991-01-06 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11716
11717 * sysdep.c (init_sys_modes): Turn off VSUSP and V_DSUSP if they exist.
11718 Only on a MIPS.
11719
dff28924 117201991-01-05 Jim Blandy (jimb@spiff.ai.mit.edu)
615d0182
DL
11721
11722 * xselect.c (x_answer_selection_request): For incremental, set
11723 format to 32 and send only 1 element. Pass the address of size,
11724 not size itself.
11725 (x_selection_arrival): For incremental, delete the property
11726 containing the size of the transfer. This generates a
11727 PropertyNotify to the owner, starting the exchange.
11728
11729 * xrdb.c (get_user_app): Pass correct number of parameters to
11730 sprintf.
11731
11732 * xfns.c (x_window): Don't use backing store or saveunders; they
11733 seem to slow down suns.
11734 (x_icon): Set the InputHint to the window manager to False.
11735 (x_make_gc): Initialize gc_values.line_width to zero before
11736 creating the normal video GC, since it uses it. And set the
11737 default_face and hilite_face gcs here.
11738 (install_vertical_scrollbar): Add 2 to thumbdown y position, and
11739 don't add ibw.
11740
11741 * insdel.c (insert, del_range): Use SET_PT rather than assigning
11742 point directly.
11743 * window.c (Fselect_window): Here too.
11744
da1d68b2 11745 * xdisp.c (redisplay_all_windows): Removed static declaration for
615d0182
DL
11746 this nonexistent function.
11747
dff28924 117481991-01-04 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 11749
da1d68b2 11750 * window.c (window_loop): Neatened up. MINI being non-zero now
615d0182
DL
11751 makes it recognize active minibuffer windows. Iterates properly
11752 over multiple screens when asked nicely.
11753 (Fget_lru_window, Fget_largest_window): SCREENS arguments are now
11754 declared as a Lisp_Object, and documented.
11755 (Fget_buffer_window): SCREENS argument is now documented.
11756 (Fdelete_other_windows): Delete other windows on the argument
11757 window's screen, not the current screen.
11758
11759 * screen.c (window_from_coordinates): Changed other reference to
11760 Fnext_window to use next_screen_window; see below.
11761
11762 * window.c (Fnext_window, Fprevious_window): Accept non-nil, non-t
11763 values for mini, and don't turn off all-screens when mini is t but
11764 there is no global minibuffer screen. Remove screen_{root,mini}
11765 variables.
11766 (Fother_window): Added second argument all_screens.
11767
11768 * undo.c (record_delete): Removed dead variable llength.
11769
11770 * data.c (Qkeyp, Fkeyp): Removed these and supporting code.
11771 * keymap.c (Fsingle_key_description): Report an error instead of
11772 calling wrong_type_argument.
11773 * lisp.h (Qkeyp): Removed external declaration for this.
dff28924
SS
11774
117751991-01-03 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11776
11777 * search.c (search_buffer): Return starting position if count == 0.
11778
dff28924 117791991-01-02 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
11780
11781 * scroll.c (do_scrolling): Use correct limits on loop to clear
11782 lines just inserted--old version lost a line.
11783
b344d29d 11784 * screen.c: #ifdef HAVE_X_WINDOWS, #include xterm.h.
da1d68b2 11785 (Ffocus_screen, Funfocus_screen): Use Joe's new definitions, and
615d0182 11786 only define these functions ifdef HAVE_X_WINDOWS.
da1d68b2 11787 (window_from_coordinates): Use next_screen_window instead of
615d0182
DL
11788 Fnext_window, so that global minibuffers work.
11789
11790 * lread.c (syms_of_read): Don't forget to defsubr
11791 read-char-exclusive.
11792
da1d68b2
JB
11793 * lisp.h (Fscreenp, Fselect_screen, Ffocus_screen)
11794 (Funfocus_screen, Fselected_screen, Fwindow_screen)
11795 (Fscreen_root_window, Fscreen_selected_window, Fscreen_list)
11796 (Fnext_screen, Fdelete_screen, Fread_mouse_position)
11797 (Fset_mouse_position, Fmake_screen_visible, Fmake_screen_invisible)
11798 (Ficonify_screen, Fdeiconify_screen, Fscreen_visible_p)
11799 (Fvisible_screen_list, Fscreen_parameters)
11800 (Fmodify_screen_parameters, Fscreen_pixel_size, Fscreen_height)
11801 (Fscreen_width, Fset_screen_height, Fset_screen_width)
11802 (Fset_screen_size, Fset_screen_position, Fcoordinates_in_window_p)
11803 (Flocate_window_from_coordinates, Frubber_band_rectangle): Added
615d0182
DL
11804 extern declarations for all these.
11805
da1d68b2 11806 * lisp.h (Qscreenp): Added an extern declaration for this.
615d0182
DL
11807
11808 * lisp.h (DBL_DIG): Added constant for the maximum number of
11809 decimal digits a float could print to. Used in print.c.
11810
11811 * keymap.c (Fkey_description): Produce pretty descriptions of
11812 mouse and window system events too.
da1d68b2 11813 (Fsingle_key_description): Signal an error if obj is not a key.
615d0182
DL
11814
11815 * data.c (Fkeyp, Qkeyp): Added predicate to recognize things which
11816 can be bound - this includes keys, symbols (for function keys and
11817 window system events), and conses (for mouse events).
11818 * lisp.h (Qkeyp): Added external declaration for this.
11819
11820 * keyboard.c (Frecursive_edit): Don't specbind the standard IO here.
11821 (recursive_edit_1): Do it here, and don't forgot to unbind_to.
11822
11823 (command_loop_1): Reset no_redisplay after mouse commands.
11824
11825 (classify_object): Place the object in read_key_sequence_cmd.
11826
da1d68b2 11827 (Fread_key_sequence): Recognize that when read_key_sequence
615d0182
DL
11828 returns -1 or -2, it's a mouse event or window system event.
11829
dff28924 118301991-01-01 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
11831
11832 * fileio.c (Fwrite_region): We should dereference GPT_ADDR[-1]
11833 before comparing it to '\n' for VMS cruft.
11834 (Fdo_auto_save): Don't call run-hooks before it's defined. This
11835 only happens before emacs is dumped, when loading inc-vers.el.
11836
da1d68b2 11837 * eval.c (Fsignal): TOTALLY_UNBLOCK_INPUT here.
615d0182
DL
11838 (error): Not here.
11839
11840 (Feval): We use argvals[0..5], so declare it to have six elements
11841 instead of just five.
11842
dff28924 118431990-12-30 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11844
11845 * eval.c (Fsignal): Don't ever return.
11846 Call error instead if user tries to use debugger to return.
11847
11848 * eval.c (unbind_to): New second arg is value to return. gcpro it.
11849 All callers changed to pass the arg; if a caller uses unbind_to
11850 just before returning, it passes as this arg the value it wants
11851 to return, then it returns whatever comes back.
11852
dff28924 118531990-12-28 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182 11854
da1d68b2 11855 * print.c (print): Put obj in a non-register variable so
615d0182
DL
11856 we could gcpro it. Also fixed some syntax errors.
11857
da1d68b2 11858 * editfns.c (Fformat): Declare nstrings, and declare nstrings and
615d0182
DL
11859 strings in a local block.
11860 (Fformat): XFLOAT(args[n]) isn't a float; ->data is.
11861
dff28924 118621990-12-27 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11863
11864 * m-tower32.h: Add comments for how to optimize.
11865 * m-tower32v3.h: New file.
11866
11867 * fileio.c (Fwrite_region): Save errno around unlock_file.
11868
dff28924 118691990-12-26 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11870
11871 * editfns.c (Fformat): Handle floats. Convert between int and float.
11872 Don't truncate value at null char coming from doprnt.
11873 * doprnt.c (doprnt): Replace tembuf with malloced buff if too small.
11874 Handle %e, %f and %g.
11875
dff28924 118761990-12-25 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11877
11878 * abbrev.c (Fexpand_abbrev): Use insert_from_string, not insert.
11879 (Funexpand_abbrev): Likewise.
11880 * doc.c (Fsubstitute_command_keys): Likewise.
11881 * editfns.c (Finsert, Finsert_before_markers): Likewise.
11882 * minibuf.c (Fminibuffer_complete_word): Likewise.
11883 * mocklisp.c (Finsert_string): Use insert1.
11884 * vmsfns.c (Fdefault_subproc_input_handler): Likewise.
11885
11886 * print.c: Don't use strout for the text of a Lisp string.
11887 (print_string): New function to use instead.
11888 (print): Use print_string when no escapes needed.
11889 When printing with escapes, protect the string and check addr often.
11890
dff28924 118911990-12-24 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11892
11893 * insdel.c (insert_from_string): New function.
11894
dff28924 118951990-12-20 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11896
11897 * term.c (ins_del_lines): Handle scroll region wrt chars_wasted.
11898
dff28924 118991990-12-16 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
11900
11901 * Globally renamed InsStr to insert_string.
11902
dff28924 119031990-12-15 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11904
11905 * s-usg5-3.h (USG_SHARED_LIBRARIES): Define it.
11906
11907 * m-intel386.h (C_SWITCH_MACHINE): New macro.
11908
dff28924 119091990-12-15 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
11910
11911 * alloc.c (STRING_FULLSIZE): Use sizeof(struct Lisp_String)
11912 instead of sizeof(int).
11913
dff28924 119141990-12-14 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
11915
11916 * keyboard.c (Fread_key_sequence): Clear this_command_key_count
11917 here; who unfixed this?
11918
dff28924 119191990-12-12 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11920
11921 * abbrev.c (Fdefine_abbrevs): Don't crash when EXPANSION is nil.
11922
dff28924 119231990-12-11 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11924
11925 * eval.c (Fmacroexpand): Change handling of (foo . bar) in ENV.
11926
dff28924 119271990-12-10 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11928
11929 * m-pmax.h (SYSTEM_MALLOC): Define it.
11930
11931 * process.c (wait_reading_process_input): Ignore failure with EIO.
11932
dff28924 119331990-12-09 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11934
11935 * m-iris4d.h (LOAD_AVE_CVT): Divide by 1024.
11936 (LIB_STANDARD): Use -lbsd first.
11937 (LIBS_MACHINE): Don't use -lbsd here.
11938 * s-irix3-3.h (ADDR_CORRECT): Macro deleted.
11939 (LIBS_MACHINE): Macro deleted.
11940 (LDAV_SYMBOL): Delete the `_' from start of symbol.
11941
11942 * process.c (create_process): Delete duplicate sigsetmask.
11943
11944 * m-ibmrt.h (RTPC_REGISTER_BUG, SHORT_CAST_BUG): Macros deleted.
11945 (C_SWITCH_MACHINE): Use -D to define alloca.
11946 (SIGN_EXTEND_CHAR): Use a cast.
11947
dff28924 119481990-12-05 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 11949
da1d68b2 11950 * keyboard.c (Fsuspend_emacs): Protect STUFFSTRING.
615d0182
DL
11951 (cmd_error): Protect TAIL while printing.
11952 (input_poll_signal, start_polling): Use polling_period.
11953 (syms_of_keyboard): Initialize it and make it a Lisp var.
11954
11955 * fns.c (Fyes_or_no_p): Protect PROMPT for entire loop.
11956
11957 * fileio.c (Frename_file): Protect args.
11958 * fileio.c (Fadd_name_to_file): Protect the args.
11959 (Fcopy_file, Fmake_symbolic_link): Likewise.
11960 (Finsert_file_contents): Protect FILENAME.
11961
dff28924 119621990-12-04 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182
DL
11963
11964 * eval.c (Fbacktrace): gcpro TAIL.
11965 * emacs.c (Fkill_emacs): gcpro ARG.
da1d68b2 11966 * editfns.c (Fformat): Remove remains of gcpro'd args.
615d0182
DL
11967
11968 * dispnew.c (syms_of_dispnew): Don't clobber Vwindow_system_version
11969 if CANNOT_DUMP.
11970
11971 * dired.c (file_name_completion): Check that FILE is a string.
11972
11973 * buffer.c (Fbury_buffer): Don't init BUF1.
11974
11975 * doc.c (Fsubstitute_command_keys): Protect STR and don't keep a
11976 pointer to the middle of it.
11977
11978 * m-hp9000s300.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Override for BSD.
11979
11980 * process.c (sigchld_handler): Clear synch_process_alive if the
11981 dying process isn't in the table at all.
11982 * callproc.c (call_process_cleanup): Clear synch_process_alive.
11983
dff28924 119841990-12-03 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182 11985
da1d68b2 11986 * callproc.c (Fcall_process): Change synch_process_pid to
615d0182
DL
11987 synch_process_alive, as a general flag that we are waiting for
11988 a synchronous process to die. This obviates the need to block
11989 SIGCHLDs until we know the pid.
b344d29d 11990 * sysdep.c (wait_for_termination): Wait for synch_process_alive to
615d0182
DL
11991 be false.
11992
11993 * process.c (sigchld_handler): If pid not recognized, look for a
11994 process recorded with pid -1.
11995 (create_process): Set pid to -1 before the fork.
11996 Store correct pid right after the fork.
11997 Don't change sigchld handler on system V.
11998
11999 * process.c (Fstart_process): Set BUFFER before other string vars
12000 so a gc in Fget_buffer_create won't clobber them.
12001
dff28924 120021990-11-30 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12003
12004 * keyboard.c (read_command_char): Save and restore getcjmp.
12005
dff28924 120061990-11-29 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12007
12008 * process.c (status_convert): Use WRETCODE for exited process.
12009
dff28924 120101990-11-26 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12011
12012 * s-usg5-4.h (LIB_STANDARD): Add libucb.a.
12013 (NEED_PTEM_H): Define this instead of NEED_SIOCTL.
12014 * m-ibm370aix.h, m-ibmps2-aix.h, m-ibmrs6000.h (NEED_SIOCTL):
12015 Undefine this.
12016 (NEED_PTEM_H): Likewise.
12017
12018 * s-sunos4.h (O_NDELAY): Don't define this.
12019
12020 * print.c (Fwith_output_to_temp_buffer): Don't eval first arg twice.
12021
dff28924 120221990-11-22 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12023
12024 * m-hp9000s300.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Alternate defs for BSD.
12025
dff28924 120261990-11-21 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
12027
12028 * dispnew.c (init_display): Check if we're using a window system
12029 before trying to initialize the terminal. If someone has
12030 indicated that they want to use a window system, we shouldn't
12031 bother initializing the terminal. This is especially important
12032 when the terminal is so dumb that emacs gives up and doesn't bother
12033 using the window system.
12034
dff28924 120351990-11-20 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182 12036
da1d68b2 12037 * print.c (Fexternal_debugging_output): Added new function which
615d0182
DL
12038 writes a character to stderr, for use when debugging emacs with
12039 gdb.
12040
dff28924 120411990-11-14 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182 12042
da1d68b2 12043 * dispnew.c (window_change_signal): Used to assume that SIGWINCHes
615d0182
DL
12044 always applied to the currently selected screen. Now it scans the
12045 list of screens for a screen controlled by termcap, and changes that
12046 screen's size.
12047
dff28924 120481990-11-13 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12049
12050 * fileio.c (err_str): New macro.
12051 (Finsert_file_contents, Fwrite_region): Use it in error messages.
12052
dff28924 120531990-11-12 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12054
12055 * insdel.c (del_range): Supply missing arg to gap_left.
12056
dff28924 120571990-11-11 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
12058
12059 * regex.c: Disabled definition of NULL from lisp.h
12060
da1d68b2 12061 * crt0.c (_start): Added static declaration of start1.
615d0182 12062
da1d68b2 12063 * xfns.c: Added definition for Vbar_cursor.
615d0182
DL
12064 (syms_of_xfns): Added DEFVAR_LISP clause for Vbar_cursor.
12065
da1d68b2 12066 * xterm.c (XTread_socket): Passed &event.xkey instead of &event to
615d0182
DL
12067 XLookupString, so things will typecheck nicely.
12068
12069 * Globally rewrote all references to Vmouse_buffer to use the
12070 buffer viewed by Vmouse_window instead.
12071
da1d68b2 12072 * alloc.c (xmalloc, xrealloc): Removed calls to
615d0182
DL
12073 {un,}hold_window_change. The new SIGWINCH-handling code and
12074 do_pending_window_change make them unnecessary.
12075
dff28924 120761990-11-11 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12077
12078 * process.c (wait_reading_process_input): Make Available static;
12079 don't clear when a nonzero bit is found.
12080
12081 * fns.c (Fnthcdr): Stop loop if reach end.
12082
12083 * dispnew.c: Include fcntl.h if HAVE_TERMIO.
12084
dff28924 120851990-11-10 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
12086
12087 * alloc.c (make_uninit_string): No longer declared static, and
12088 extern declaration added to lisp.h. It's used in dired.c.
12089
dff28924 120901990-11-08 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182
DL
12091
12092 * dispnew.c (do_pending_window_change): Changed incorrect call to
12093 change_window_size_1 into a loop which scans list of screens and
12094 resizes those that need resizing.
12095
dff28924 120961990-11-06 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12097
12098 * m-ibmrs6000.h (CANNOT_DUMP): Define it.
12099
12100 * process.c (create_process): Unblock SIGCHLD in the child.
12101
12102 * process.c (wait_reading_process_input): Don't read input
12103 from more than one process between calls to `select'.
12104
dff28924 121051990-11-02 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12106
12107 * callint.c (syms_of_callint):
12108 Initialize Vprefix_arg and Vcurrent_prefix_arg.
12109
dff28924 121101990-11-01 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12111
12112 * dired.c (Fdirectory_files): Avoid using MAXNAMLEN.
12113
dff28924 121141990-10-31 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
12115
12116 * process.c (MAXDESC): Enclosed definition in `#ifndef ... #endif'
12117 clause.
12118
12119 * bytecode.c: Included syntax.h to declare syntax_code_spec.
12120
12121 * syntax.h (syntax_spec_code): Added extern declaration for this.
12122
12123 * floatfns.c (float_error): Added static declaration for this at
12124 the top of the file.
12125
dff28924 121261990-10-29 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12127
da1d68b2 12128 * indent.c (position_indentation): Renamed stray `bf_cur' to
615d0182 12129 `current_buffer', and old `CharAt' usages to `FETCH_CHAR'.
da1d68b2 12130 * buffer.c (Fbuffer_disable_undo): The symbol object for this
615d0182
DL
12131 subroutine was still named Sbuffer_flush_undo, and the symbol's
12132 lisp name was similarly out of date. Renamed both, and added an
12133 alias in lisp/subr.el .
12134
da1d68b2 12135 * keyboard.c (Fset_input_mode): A `meta_flag' had escaped being
615d0182
DL
12136 renamed to `meta_key'.
12137
dff28924 121381990-10-29 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12139
12140 * process.c (Fprocess_send_region, Fprocess_send_string):
12141 Break data into bunches less than 500 bytes.
12142 Accept process output between bunches.
12143 ??? Must update manual.
12144
dff28924 121451990-10-29 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12146
da1d68b2 12147 * window.c (Fset_window_start, window_scroll): Renamed stray
615d0182
DL
12148 references to `redo_mode_line' to `update_mode_line'.
12149
da1d68b2 12150 * xdisp.c (decode_mode_spec): Renamed stray references to `bf_cur'
615d0182
DL
12151 and `bf_modified' to `current_buffer' and `MODIFF'.
12152
dff28924 121531990-10-25 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12154
da1d68b2 12155 * environ.h: File created - contains declarations for users of the
615d0182 12156 environment variable list.
da1d68b2 12157 * callproc.c (environ): Removed extern declaration of environ, and
615d0182
DL
12158 included environ.h.
12159
dff28924 121601990-10-24 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12161
da1d68b2 12162 * callproc.c (init_callproc): Removed extern declaration of
615d0182
DL
12163 environ - it's already taken care of at the top of the file.
12164
da1d68b2 12165 * mocklisp.h: File created - externally declares certain
615d0182 12166 functions defined in mocklisp.c.
da1d68b2 12167 * lisp.h (Fread_buffer, Fread_key_sequence): Added extern
615d0182 12168 declarations for these functions.
da1d68b2 12169 * callint.c (ml_apply, Fread_buffer, Fread_key_sequence): Removed
615d0182
DL
12170 extern declarations for these functions, included mocklisp.h.
12171 Moved external declaration of index to top of file.
12172
dff28924 121731990-10-24 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12174
12175 * ymakefile (GNULIB_VAR): New make variable.
12176 (LIBES): Use that, not GNULIB directly.
12177 (GNULIB): Don't define if already defined.
12178
dff28924 121791990-10-23 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182 12180
da1d68b2 12181 * indent.h (last_known_column_point): Added extern declaration for
615d0182 12182 this variable.
da1d68b2 12183 * buffer.c (last_known_column_point): Removed extern declaration for
615d0182 12184 this variable, included indent.h.
da1d68b2 12185 (Vprin1_to_string_buffer): Removed extern declaration - it's
615d0182
DL
12186 already in lisp.h.
12187
da1d68b2
JB
12188 * lisp.h (catchlist, backtrace_list, stack_bottom)
12189 (current_global_map): Added extern declarations for these
615d0182 12190 variables.
da1d68b2 12191 * alloc.c: Removed external declarations for catchlist,
615d0182
DL
12192 backtrace_list, and stack_bottom, since this file includes
12193 lisp.h.
da1d68b2 12194 * callint.c (current_global_map): Removed extern declaration.
615d0182 12195
da1d68b2
JB
12196 * search.h: New file - declares searchbuf.
12197 * dired.c (Fdirectory_files): Removed extern declaration of
615d0182
DL
12198 searchbuf, included search.h.
12199
12200 * Globally renamed `CHAR_AT_POSITION' to `FETCH_CHAR'.
12201
dff28924 122021990-10-22 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12203
12204 * keyboard.c (quit_char): New variable.
12205 (init_keyboard): Initialize it.
12206 (Fset_input_mode): New optional arg to set quit_char.
b344d29d 12207 (command_loop_1, read_char, kbd_buffer_store_char)
615d0182
DL
12208 (read_avail_input): Use quit_char, not C-g.
12209 * sysdep.c (init_sys_modes): Use quit_char to set special chars.
12210 * xterm.c (x_term_init): Pass new arg to Fset_input_mode.
12211
dff28924 122121990-10-22 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12213
da1d68b2 12214 * xdisp.c: Added `extern' declaration for command_loop_level.
615d0182
DL
12215
12216 * term.c (term_init): Internal cleanups.
da1d68b2 12217 (write_glyphs): Renamed argument `start' to `string'.
615d0182 12218
dff28924 122191990-10-21 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12220
12221 * xterm.c (FIONREAD): Undefine if BROKEN_FIONREAD.
12222 (SIGIO): Undefine if no FIONREAD.
12223 (ioctl.h, termio.h, strings.h, string.h): Include them before those.
12224
12225 * alloc.c (make_vector_from_string, Fvector_from_string):
12226 Functions deleted.
12227
12228 * sysdep.c (select): Handle timeout == 0. Add var local_timeout.
12229
12230 * alloc.c (make_uninit_string, make_float): Use VALIDATE_LISP_STORAGE.
12231 (Fcons, Fmake_vector, Fmake_symbol, Fmake_marker): Likewise.
12232 (Fmake_vector_from_list): Likewise.
12233 (VALIDATE_LISP_STORAGE): New macro.
12234
dff28924 122351990-10-20 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12236
12237 * dispnew.c (scrolling): Give up if some new lines not enabled.
12238 (update_screen): Rework outq logic.
12239
12240 * xdisp.c (message, message1): Clear noninteractive_need_newline.
12241
dff28924 122421990-10-19 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12243
da1d68b2 12244 * scroll.c (do_scrolling): Allocate queue using alloca instead
615d0182
DL
12245 of variable-sized arrays.
12246
dff28924 122471990-10-19 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12248
12249 * buffer.c: Doc fix.
12250
dff28924 122511990-10-18 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12252
da1d68b2 12253 * print.c (internal_with_output_to_temp_buffer): Install an
615d0182
DL
12254 unwind_protect to make sure the current buffer is restored.
12255
da1d68b2 12256 * minibuf.c (read_minibuf): Call recursive_edit_1 instead of
615d0182
DL
12257 Frecursive_edit, to support the new command_loop_level
12258 arrangement.
12259
12260 * malloc.c (calloc): Added this function, in case something linked
12261 with emacs calls it.
12262
12263 * lread.c (openp): Since access returns 0 on success, change that
12264 into a 1 before returning it.
12265
da1d68b2 12266 * lisp.h: Deleted DEFSIMPLE and DEFPRED, since they're no
615d0182
DL
12267 longer used.
12268
dff28924 122691990-10-18 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12270
12271 * m-intel386.h (alloca): Define as builtin, if using GCC.
12272
12273 * m-att3b.h (NEED_PTEM_H): Define this for 3b2.
12274
12275 * s-aix3-1.h (SYSV_SYSTEM_DIR): Define it.
12276
12277 * print.c (print): Improve error message for bad data type.
12278
dff28924 122791990-10-18 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12280
da1d68b2 12281 * keymap.c (Flookup_key): Rearranged to use an index into the key
615d0182
DL
12282 sequence instead of a pointer and a level counter.
12283
dff28924 122841990-10-18 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12285
12286 * floatfns.c (sinh, cosh): On VMS, define to use exp.
12287 (IN_FLOAT): Detect errors reported using errno.
12288 (float_error): Define function unconditionally.
12289 Reestablish handler when called, if not BSD.
12290
dff28924 122911990-10-17 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12292
12293 * m-delta.h (C_DEBUG_SWITCH): Don't define this.
12294
dff28924 122951990-10-17 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12296
da1d68b2 12297 * keyboard.c (command_loop): Made call to command_loop_2
615d0182
DL
12298 conditional on minibuf_level too (it used to be only conditional
12299 on command_loop_level), since this is what 18.56 and all the other
12300 functions in Emacs 19 keyboard.c do.
12301
dff28924 123021990-10-16 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
12303
12304 * keyboard.c (read_char): Don't echo dash if there is already
12305 something else being displayed in the echo area.
12306
dff28924 123071990-10-16 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12308
12309 * process.c (status_convert): If killed by signal, use WTERMSIG.
12310
12311 * data.c (arith_error): Reestablish handler on VMS.
12312
12313 * keyboard.c (start_polling, stop_polling): New functions.
12314 (input_poll_signal): New function, handles periodic alarms.
12315 (read_command_char): Turn off polling temporarily.
12316 * xdisp.c (redisplay): Likewise.
12317 * process.c (wait_reading_process_input, create_process): Likewise.
12318
dff28924 123191990-10-16 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12320
da1d68b2 12321 * indent.c (position_indentation): Instead of using CharAt, use a
615d0182
DL
12322 pointer to scan the buffer - this is faster.
12323
12324 * emacs.c (Fdump_emacs): The conditional expression which passes
12325 symname to unexec was missing a `: 0'.
12326
12327 * dispnew.c (rotate_vector): Was rotating backwards.
12328
dff28924 123291990-10-15 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
12330
12331 * dired.c (file_name_completion): Use scmp to compare names.
12332
dff28924 123331990-10-15 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12334
12335 * process.c (create_process): Don't turn off handling of SIGCHLD.
12336 Just set a flag if a signal comes in when not wanted.
12337 (create_process_sigchld): New signal handler.
12338
dff28924 123391990-10-14 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12340
12341 * bytecode.c: De-implement Bmark, Bset_mark, Bscan_buffer.
12342 Mark Bsymbol_function, Bfset, Bread_char as obsolete.
12343 Implement codes Bmult, Bforward_char...Bwiden,
12344 and Bstringeqlsign...Bintegerp.
12345
dff28924 123461990-10-12 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
12347
12348 * buffer.c (list_buffers_1): Select the buffer given in
12349 Vstandard_output using Fset_buffer instead of set_buffer_internal.
12350
da1d68b2 12351 * buffer.c (set_buffer_internal): Deleted variable swb - it's
615d0182
DL
12352 never used.
12353
da1d68b2 12354 * buffer.c (count_modified_buffers): Function deleted - it's
615d0182
DL
12355 not used anymore.
12356
dff28924 123571990-10-11 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
12358
12359 * buffer.c (reset_buffer_local_variables, buffer_local_variables):
12360 added support for default values for buffer local variables which
12361 do not have a DEFVAR_PER_BUFFER, as described in the comments
12362 above buffer_local_flags.
12363
da1d68b2 12364 * buffer.c (Fget_buffer_create): Move initialization of
615d0182
DL
12365 b->save_length and b->last_window_start to reset_buffer.
12366
dff28924 123671990-10-11 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12368
12369 * m-ibmps2-aix.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Define them.
12370 (C_DEBUG_SWITCH): Delete -fstrength-reduce.
12371
12372 * unexmips.c (unexec): Add conditional for MIPS2.
12373
dff28924 123741990-10-10 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12375
12376 * m-iris4d.h (LIBS_MACHINE): Use -lsun, don't use -lPW.
12377
12378 * unexelf.c: New file.
12379 * s-usg5-4.h: New file.
12380 * unexec.c [USG_SHARED_LIBARARIES]: Numerous changes under this cond.
12381 (copy_text_and_data): New second argument.
12382
dff28924 123831990-10-10 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12384
da1d68b2 12385 * alloc.c (gc_sweep): Only unchain markers that are in a buffer.
615d0182 12386
dff28924 123871990-10-10 Mike Rowan (mtr@apple-gunkies)
615d0182
DL
12388
12389 * process.c: Merged in more changes from 18.56: update_status,
12390 FD_SET changes (define all the FD_ macros). Other small changes.
12391
dff28924 123921990-10-09 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182 12393
da1d68b2 12394 * xdist.c (decode_mode_spec): Reworked code to handle %* - it now
615d0182
DL
12395 goes like `if return else if return else ... return' instead of
12396 using a conditional operator.
12397
da1d68b2 12398 * xdist.c (fmodetrunc): Function deleted - no longer used.
615d0182 12399
dff28924 124001990-10-09 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12401
12402 * xdisp.c (decode_mode_spec): Handle dashes in wide windows.
12403
dff28924 124041990-10-08 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12405
12406 * sysdep.c (sys_open, sys_close, sys_read, sys_write):
12407 Don't handle EAGAIN.
12408
12409 * process.c (wait_reading_process_input): Handle nread==-1
12410 for O_NDELAY like O_NONBLOCK.
12411
12412 * s-vms.h (LINK_CTRL_SHARE): Turn on again.
12413 tranle@intellicorp.com found it needed in VMS 5.3.
12414
12415 * emacs.c (main): Move VMS declaration of environ outside function.
12416
12417 * vmsfns.c (Fdefault_subproc_input_handler): InsCstr -> insert.
12418
dff28924 124191990-10-07 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12420
12421 * m-pmax.h (START_FILES): Handle crt0.o in different dir in Ultrix 4.0.
12422
12423 * s-sunos4.h (O_NDELAY): Define only if not defined.
12424
dff28924 124251990-10-06 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12426
da1d68b2 12427 * sysdep.c (tabs_safe_p, get_screen_size): Renamed `sg' to `tty'.
615d0182 12428
da1d68b2 12429 * sysdep.c (init_baud_rate): Rearranged code for calculating
615d0182
DL
12430 baud_rate.
12431
dff28924 124321990-10-05 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12433
da1d68b2 12434 * search.c (Freplace_match): Used Finsert_buffer_substring instead
615d0182
DL
12435 of place and deleted place.
12436
da1d68b2 12437 * search.c (place): Function removed.
615d0182
DL
12438
12439 * process.c (count_active_processes): Deleted; not used.
12440
da1d68b2 12441 * minibuf.c (read_minibuf): Renamed `prefix' argument to `initial'.
615d0182 12442
dff28924 124431990-10-01 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12444
da1d68b2 12445 * lread.c (Fload): Renamed `MISSING-OK' to `NOERROR'.
615d0182 12446
da1d68b2 12447 * keyboard.c (describe_map): Renamed `keys' to `string'.
615d0182
DL
12448
12449 * keyboard.c `Vauto_save_interval' unrenamed back to
dff28924 12450 `auto-save-interval'.
615d0182 12451
da1d68b2 12452 * keymap.c (Fdefine_key, Flookup_key): Renamed arguments called
615d0182
DL
12453 `keys' to `key'.
12454
dff28924 124551990-10-01 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12456
12457 * sysdep.c (sys_open, sys_close, sys_read, sys_write):
12458 Handle EAGAIN like EINTR.
12459
dff28924 124601990-09-30 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12461
12462 * insdel.c (gap_left, gap_right): Use bcopy if requested.
12463 New config parameters GAP_USE_BCOPY, BCOPY_SAFE_UPWARD,
12464 and BCOPY_SAFE_DOWNWARD.
12465
12466 * eval.c (find_handler_clause): Bind debug-on-error to nil.
12467 (Qdebug_on_error): New variable.
12468 (syms_of_eval): Initialize that.
12469
12470 * sysdep.c: Include various headers for ptys, for hpux, aix, and sysv.
12471
12472 * dispnew.c (preserve_other_columns): Fix args to second bcopy.
12473
dff28924 124741990-09-30 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
12475
12476 * keyboard.c: `auto_save_interval' renamed to
12477 `Vauto_save_interval', since it *is* a lisp-accessible variable.
12478
da1d68b2 12479 * fileio.c (Fdo_auto_save): Call record_auto_save so that
615d0182
DL
12480 read_char knows when we've auto-saved.
12481
da1d68b2 12482 * keyboard.c (record_auto_save): Added function to support the new
615d0182
DL
12483 auto-save conditions.
12484
da1d68b2 12485 * keyboard.c (read_char): Use num_input_chars and last_auto_save
615d0182
DL
12486 instead of keystrokes to decide when to autosave.
12487
da1d68b2 12488 * keyboard.c (keystrokes): Variable deleted.
615d0182 12489
dff28924 124901990-09-30 Mike Rowan (mtr@spike.ai.mit.edu)
615d0182 12491
da1d68b2 12492 * keyboard.c, alloc.c: Added malloc warning code from
615d0182
DL
12493 18.56.
12494
12495 * dispnew.c, xdisp.c: (un)hold_window_change no longer exists;
12496 added do_pending_window_change from 18.56.
12497
88c71720 12498 * process.c, process.h: Add the raw_status_low and raw_status_high
615d0182
DL
12499 code from 18.56.
12500
dff28924 125011990-09-29 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12502
12503 * alloca.s: Handle ns32000 like ns16000.
12504
12505 * m-ns32000.h: New file.
12506
12507 * lread.c (Fload): Warn if elc file older than source file.
12508
da1d68b2 12509 * ymakefile (LIB_X11_LIB): New parameter, default -lX11.
615d0182
DL
12510 (LIBX): Use that.
12511
12512 * Makefile (xmakefile): Delete junk.c at the beginning.
12513
12514 * hftctl.c: Include termios.h before termio.h.
12515 Define TCGETS and TCSETS if nec.
12516 Give some forward declarations for the static functions.
12517 Reformat in usual GNU style.
12518
12519 * m-orion105.h (LOAD_AVE_TYPE, FSCALE): Changed from double and 1.0.
12520
12521 * m-delta.h: New file.
12522
dff28924 125231990-09-28 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12524
12525 * fns.c (Frequire): Undo certain things on failure, like autoload.
12526
dff28924 125271990-09-28 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12528
da1d68b2 12529 * fileio.c (Fwrite_region): Renamed variable `fd' to `desc' and
615d0182
DL
12530 changed argument to open from `1' to `O_WRONLY'.
12531
da1d68b2 12532 * fileio.c (O_WRONLY): Added clause to define this if not already
615d0182
DL
12533 defined.
12534
da1d68b2 12535 * emacs.c (Fdump_emacs): Removed a_name variable.
615d0182 12536
da1d68b2 12537 * emacs.c (Fkill_emacs): Removed code which asked about modified
615d0182
DL
12538 buffers and running subprocesses.
12539
da1d68b2 12540 * editfns.c (Fcurrent_time_string): Renamed variable `now' to
615d0182
DL
12541 `current_time'.
12542
da1d68b2 12543 * dispnew.c (update_line): Renamed variables `m1' and `m2' to
615d0182
DL
12544 `begmatch' and `endmatch'.
12545
da1d68b2 12546 * dispnew.c (update_screen): Use preempt_count as a limit instead
615d0182
DL
12547 of a counter; count with i instead.
12548
da1d68b2
JB
12549 * dispnew.c (visible_bell, inverse_video, baud_rate)
12550 (Vwindow_system): Rearranged comments.
615d0182 12551
dff28924 125521990-09-27 Richard Stallman (rms@mole.ai.mit.edu)
615d0182 12553
3fcfc4ee 12554 * emacs.c (main): Set the DISPLAY environment value when both of
615d0182
DL
12555 MAINTAIN_ENVIRONMENT and HAVE_X_WINDOW are defined.
12556
da1d68b2 12557 * m-convex.h (LIB_STANDARD, LIBS_MACHINE): Remove these, they
615d0182
DL
12558 cause an unnecessary C1/C2 dependency.
12559
da1d68b2 12560 * m-convex.h (LD_SWITCH_MACHINE): Use -e__start to specify
615d0182
DL
12561 where crt0.c begins.
12562
da1d68b2 12563 * m-convex.h (HAVE_SETSID): Define; must call setsid
615d0182 12564 when creating an inferior with a different controlling tty.
da1d68b2 12565 * process.c (create_process): Rearrange so that HAVE_SETSID
615d0182
DL
12566 will be seen when not under USG.
12567
da1d68b2 12568 * m-convex.h (S_IFMT etc): Define in case of posix compilation.
615d0182 12569
da1d68b2
JB
12570 * m-convex.h (FIRST_PTY_LETTER): Do it at runtime.
12571 * unexconvex.c (first_pty_letter): Routine to locate lowest pty.
615d0182
DL
12572
12573 * unexconvex.c: Rewrite so it can cope with thread-local sections.
12574
12575 * sysdep.c (select): Use process_tick and update_tick,
12576 not child_changed.
12577
dff28924 125781990-09-23 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12579
12580 * keyboard.c (Fsuspend_emacs): Check screen size after resume.
12581
dff28924 125821990-09-19 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12583
12584 * editfns.c: Doc fix.
12585
dff28924 125861990-09-18 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12587
12588 * window.c (Fsplit_window): Minor cleanup.
12589
dff28924 125901990-09-17 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12591
12592 * emacs.c (main) [USG_SHARED_LIBRARIES]: Call brk.
12593
dff28924 125941990-09-13 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12595
12596 * floatfns.c (float_error_arg): New variable.
12597 (IN_FLOAT): New arg; sets float_error_arg. All uses changed.
12598 (float_error): Use that value when signaling error.
12599
dff28924 126001990-09-11 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12601
12602 * unexaix.c, m-ibmr2.h, s-aix3-1.h: New files.
12603
12604 * ymakefile (allocaobj): New variable. Used in otherobjs.
12605 Eliminates assignment of mallocobj using itself.
12606 (mallocobj): Handle SYSTEM_MALLOC without HAVE_ALLOCA.
12607 (xemacs): Use -nl option if HAVE_SHM.
12608
12609 * sysdep.c: Change IBMRTAIX conditionals to AIX.
12610 Move hft.h to the top.
12611 [IBMR2AIX]: Use termios.h and change macros accordingly.
12612 (child_setup_tty): Change IBMRTAIX to AIX.
12613 (setpgrp_of_tty): Handle IBMR2AIX.
12614 (init_sys_modes): Handle IBMR2AIX. Output special things for AIX.
12615 (reset_sys_modes): Output special things for AIX.
12616 (hft_init, hft_reset): Conditionals for IBMR2AIX.
12617
12618 * process.c: Change IBMRTAIX to AIX controlling time.h.
12619 [AIX]: Include sys/pty.h and unistd.h.
12620 (wait_reading_process_input): If AIX, handle EBADF differently.
12621 (create_process): Handle HAVE_SETSID. Change conditional to AIX.
12622
12623 * lisp.h (XPNTR): New definition if HAVE_SHM.
12624 (NULL): Undef before defining.
12625
12626 * emacs.c (main): If HAVE_SHM, call map_in_data.
12627 Use AIX, not IBMRTAIX, for signal conditional.
12628 (Fdump_emacs_data): New function if HAVE_SHM.
12629 (Fdump_emacs): Don't define if HAVE_SHM.
12630
12631 * alloc.c (pure, PUREBEG): If HAVE_SHM, define place for a segment.
12632
dff28924 126331990-09-03 Mike Rowan (mtr@apple-gunkies)
615d0182 12634
da1d68b2 12635 * sysdep.c: Added setup_pty from 18.56
615d0182 12636
da1d68b2 12637 * process.c: Merged in 18.55->6 changes. Same for process.h
615d0182 12638
41a98391 12639 globally replaced:
b344d29d
JB
12640 redisplay_preserving_echo_area -> redisplay_preserve_echo_area
12641 SetBfp -> set_buffer_internal
12642 buffer_flush_undo -> buffer_disable_undo
12643 redo_mode_line -> update_mode_line (window.h)
615d0182 12644
dff28924 126451990-08-31 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12646
12647 * data.c (Fmake_local_variable): If var is local when set, make it
12648 local now in this buffer.
12649
12650 * data.c (Fstring_to_int): Finish eliminating second arg.
12651
12652 * data.c (Faset): Require integer as third arg for string.
12653
dff28924 126541990-08-28 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12655
12656 * search.c: Doc fix.
12657
12658 * screen.h (SCREEN_SCROLL_BOTTOM_VPOS): New macro.
12659 * xdisp.c (screen_bottom_vpos): Variable used if just one screen.
12660 (redisplay, try_window_id): Set that field in screen.
12661 * dispnew.c (scrolling, update_screen): New arg scroll_bottom_vpos.
12662
12663 * dispnew.c (scroll_screen_lines): Mark newly empty lines as empty.
12664 (scrolling): Give up if any line in current_screen not enabled.
12665
dff28924 126661990-08-27 Roland McGrath (roland@churchy.ai.mit.edu)
615d0182
DL
12667
12668 * dired.c (Ffile_attributes): Return the device number too (elt 11
12669 of the returned list).
12670
dff28924 126711990-08-27 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12672
12673 * sysdep.c (wait_for_kbd_input): Frob waiting_for_input here.
12674 * keyboard.c (kbd_buffer_read_command_char): Not here.
12675
12676 * sysdep.c (wait_for_kbd_input): Clear process_ef before snarfing
12677 process input.
12678
12679 * fileio.c (Fdirectory_file_name): On VMS, leave space for log name.
12680
12681 * sysdep.c (init_sys_modes): Clear process_ef only the first time.
12682
12683 * vmsfns.c (process_exit): Logic of deletion was wrong.
12684 (Fspawn_subprocess): Correctly reuse existing struct process_list.
12685
dff28924 126861990-08-22 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12687
12688 * m-plexus.h (LD_SWITCH_MACHINE): New macro.
12689
dff28924 126901990-08-22 Joseph Arceneaux (jla@geech)
615d0182
DL
12691
12692 * xterm.c (XTread_socket): Cleaned up #ifdefs prior to event
12693 reading loop. Also handle FIOSNBIO.
12694
dff28924 126951990-08-19 Joseph Arceneaux (jla@geech)
615d0182 12696
10d1d0af 12697 * xterm.c (dumpglyphs): Last vestige of MScreenWidth removed.
615d0182
DL
12698 * config.h: MScreenWidth, MScreenHeight definitions removed.
12699
dff28924 127001990-08-18 Joseph Arceneaux (jla@geech)
615d0182
DL
12701
12702 * scroll.c (do_scrolling): Pass the correct sizes to bcopy.
12703 * dispnew.c (make_screen_glyphs): Likewise.
12704
dff28924 127051990-08-16 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12706
12707 * dispnew.c (scroll_screen_lines, free_screen_glyphs): Only deal
12708 with the X components of screen_glyphs if SCREEN_IS_X.
12709 free_screen_glyphs now takes screen argument.
12710
12711 * window.c (Fnext_window, Fprevious_window): Fixed typo. New
fffa137c 12712 behavior: mini non-nil implies all_screens if global mini screen
615d0182
DL
12713 exists, implies current screen only if not.
12714 (Fdisplay_buffer): Simplification of multi-screen code.
12715
dff28924 127161990-08-15 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12717
12718 * buffer.c: Doc fix.
12719
dff28924 127201990-08-15 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12721
12722 * dispnew.c (update_line): Simplification of pixel size code, only
12723 done if screen is X.
12724 (update_screen): Only set pixel stuff if screen is X.
12725
dff28924 127261990-08-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12727
12728 * m-targon31.h (NO_REMAP): Definition removed.
12729 (SEGMENT_MASK): New macro.
12730
dff28924 127311990-08-14 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12732
12733 * lread.c (eval-region): Don't set opoint to point, etc.
12734 Fnarrow_to_region from BEGV, not b.
12735 (eval-buffer): New subr, generalization of eval-current-buffer.
12736 (eval-current-buffer): Moved to elisp, in simple.el.
12737
12738 * xfns.c (x_y_pos): Nuked. Replaced by pixel_to_char_translation
12739 and notice_mouse_movment (dispnew.c, xterm.c).
12740 (Fx_point_coordinates): Also nuked.
da1d68b2 12741 (mouse_buffer_offset): New lisp variable.
615d0182
DL
12742
12743 * xterm.c (notice_mouse_movement): Use it in call to
12744 pixel_to_char_translation.
12745
12746 * screen.h: For non-multiscreen, XSCREEN returns selected_screen,
12747 as does WINDOW_SCREEN.
12748
12749 * xdisp.c (display_mode_line): Set desired_glyphs->bufp to 0 for
12750 mode line.
183080b6 12751 All occurrences of struct screen * replaced with SCREEN_PTR.
615d0182 12752
dff28924 127531990-08-13 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12754
12755 * xmenu.c (list_of_items, list_of_panes): Fixed wrong params to
12756 wrong_type_argument.
12757
dff28924 127581990-08-12 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 12759
da1d68b2 12760 * dispnew.c (pixel_to_char_translation): New algorithm for
615d0182
DL
12761 finding y.
12762
12763 * xfns.c (install_*_scrollbar): No more height, width parameters.
12764 Don't block input here.
12765 (x_set_*_scrollbar): Block input here.
12766
12767 * xterm.c (notice_mouse_motion): Check if the mouse is still in
12768 the window.
12769 (encode_mouse_button): Don't bother about motion types.
12770
dff28924 127711990-08-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 12772
b344d29d 12773 * m-convex.h (C_SWITCH_MACHINE, LIB_STANDARD, LIBS_MACHINE)
615d0182
DL
12774 (LD_SWITCH_MACHINE): Add definitions for Convex V 4.0.
12775
dff28924 127761990-08-11 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12777
12778 * xfns.c (Fx_grab_pointer): Call XCreateFontCursor on shape,
12779 setting new variable grabbed_cursor. Return Qt if successful,
12780 Qnil otherwise.
da1d68b2 12781 (Fx_ungrab_pointer): Free grabbed_cursor if non zero. Return Qnil.
615d0182 12782
dff28924 127831990-08-10 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12784
12785 * xfns.c (x_figure_window_size): Don't set pixel sizes until
12786 height and width are determined.
12787
dff28924 127881990-08-08 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12789
12790 * xfns.c (Fx_grab_pointer): New parameter to explicitly ignore
12791 keyboard events.
12792
12793 * xterm.c (notice_mouse_movement): Use pixel_to_char_translation
12794 to get char position and buffer offset.
12795
dff28924 127961990-08-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12797
12798 * sysdep.c [NEED_PTEM_H]: New flag macro says include ptem.h.
12799
dff28924 128001990-08-07 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 12801
da1d68b2 12802 * dispextern.h: Element bufp of screen_glyphs no longer dependent
615d0182
DL
12803 on X windows.
12804 * xdisp.c (display_text_line): Likewise.
12805
12806 * xfns.c (Fx_grab_pointer, Fx_ungrab_pointer): New subrs.
12807 (x_figure_window_size): Set pixel_width and pixel_height of
12808 screen, using font height and width.
12809
12810 * xfns.c: Vmouse_grabbed renamed Vmouse_depressed.
12811 * xterm.c: Likewise.
b344d29d 12812 (construct_mouse_event): Don't check mouse coordinates; this is
615d0182
DL
12813 done by the notice_mouse_motion. Don't grab the mouse here.
12814
12815 * dispnew.c (update_line): Set the pix_width and pix_height of the
12816 line. This fashion of doing so is temporary.
12817
dff28924 128181990-08-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12819
12820 * dispextern.h: screen_glyphs struct elements bottom_right_x,
12821 bottom_right_y changed to pix_width and pix_height.
12822 * scroll.c: Likewise.
12823 * dispnew.c: Likewise.
12824 (update_screen): Set top_left_x, top_left_y for X windows.
12825
12826 * xterm.h: Macros PIXEL_{WIDTH,HEIGHT} now use the display
12827 structure elements.
12828
dff28924 128291990-08-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12830
12831 * xfns.c (x_window_to_scrollbar): Return Lisp symbol in parameter
12832 PART_PTR, rather than string.
12833 Declare these symbols.
12834 New variable Vscreen_part, indicates which part of the screen the
12835 mouse is in.
12836
12837 * xterm.c (notice_mouse_motion): Do XQueryPointer first thing.
12838 Set Vmouse_event to Qnil.
12839 (construct_mouse_event): Don't check if mouse has moved or not.
12840 When returning cons, part is now already lisp symbol.
12841 (XTread_socket): Set Vmouse_window = Vscreen_part = Qnil when
12842 leaving screen, as well as setting x_mouse_x = x_mouse_y = -1.
12843
12844 * keyboard.c: Vmouse_window, Vmouse_event declared extern and no
b344d29d 12845 longer DEFVARed: they are already declared in window.c.
615d0182
DL
12846
12847 * screen.c (window_from_coordinates): Use Fnext_window, even if
09a7c0fe
PE
12848 MULTI_SCREEN, to obtain the next window. This is a test.
12849 Also, new parameter part returns text or modeline symbol.
615d0182
DL
12850 (Flocate_window_from_coordinates): Pass &part to
12851 window_from_coordinates.
12852 (coordinates_in_window): Don't say modeline if window_height is 1,
12853 as this is likely to be the minibuffer.
12854
dff28924 128551990-08-04 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12856
12857 * screen.c (Fcoordinates_in_window_p): Doc fix. Simplified.
da1d68b2
JB
12858 (window_from_coordinates): New function.
12859 (Flocate_window_from_coordinates): Use it.
615d0182 12860
da1d68b2 12861 * keyboard.c (classify_object): New function for dealing with the
615d0182
DL
12862 input object. New symbol, mouse-motion, called here.
12863 Call to mouse-motion-handler now takes no parameters.
da1d68b2 12864 (read_key_sequence): Use the new function. Don't set keybuf[0]
615d0182
DL
12865 to 0.
12866
da1d68b2 12867 * xterm.c (init_input_symbols): Create all the Lisp symbols
615d0182 12868 returned in the input stream.
da1d68b2 12869 (func_key_syms): New array to hold all symbols for function keys.
615d0182
DL
12870 (x_func_key_to_sym): Use this array.
12871 (notice_mouse_movement): New function for dealing with motion
12872 events.
12873 (XTread_socket): Use it here.
12874
dff28924 128751990-08-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12876
12877 * callproc.c (child_setup): Report error in chdir.
12878
dff28924 128791990-08-01 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12880
12881 * lisp.h: New macro XFLOATINT. extract_float declared.
12882 * floatfns.c (Ffloor): Call floor, not ceil.
12883 (extract_float): No longer static.
12884 * bytecode.c (Fbyte_code): Correctly handle floats in case Beqlsign.
12885
dff28924 128861990-07-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12887
12888 * keyboard.c (read_key_sequence): When downcasing letters,
12889 don't change the value returned in keybuf.
12890 (This is an experiment; it might be unpleasant in
12891 things such as C-h c, but it is an improvement
12892 for M-x global-set-key.)
12893
dff28924 128941990-07-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12895
12896 * eval.c: Doc fix.
12897
dff28924 128981990-07-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12899
12900 * s-iris*.h (SYSTEM_TYPE): Change silicon-graphics-unix to irix.
12901
dff28924 129021990-07-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12903
12904 * indent.c (Fmove_to_column): End-test was off by 1.
12905
12906 * abbrev.c (Fexpand_abbrev): Return nil if alloca arg would be neg.
12907
dff28924 129081990-07-26 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 12909
da1d68b2 12910 * xdisp.c (display_text_line): String to rope copy for inserting
615d0182
DL
12911 arrow text.
12912
dff28924 129131990-07-25 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12914
12915 * xdisp.c (display_mode_line): Check that the name has actually
12916 changed before calling x_set_name.
12917
da1d68b2 12918 * ralloc.c (check_memory_limits): New function.
615d0182
DL
12919 Also check if new memory will be larger than elisp pointer.
12920 (r_alloc_sbrk): Call this function.
12921 (relocate_blocs_upward, relocate_blocs_downward): Eliminated.
12922 (r_alloc_sbrk): Use relocate_some_blocs instead of the eliminated
12923 functions.
12924
12925 * vm-limit.c (morecore_with_warning): Check if new memory larger
12926 than elisp pointer size.
12927
dff28924 129281990-07-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12929
12930 * keyboard.c (save_getcjmp, restore_getcjmp): New functions.
12931 (read_char): Use them around Fdo_auto_save.
12932 * process.c (read_process_output, exec_sentinel): Use them.
12933 * fileio.c (Fdo_auto_save): Run auto-save-hook.
12934
dff28924 129351990-07-24 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12936
12937 * dispnew.c (safe_bcopy): No longer static.
12938
da1d68b2
JB
12939 * ralloc.c (relocate_blocs_upward, relocate_blocs_downward):
12940 Use safe_bcopy.
615d0182 12941
da1d68b2 12942 * mem_limits.c: typedef SIZE.
615d0182 12943
dff28924 129441990-07-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12945
12946 * fileio.c (Finsert_file_contents): Initialize how_much when exiting
12947 main loop.
12948
12949 * m/m-mips.h: Added stuff from the 18.56 version.
12950
dff28924 129511990-07-18 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 12952
da1d68b2 12953 * indent.c (Fmove_to_column): Set end to ZV.
615d0182 12954
dff28924 129551990-07-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12956
12957 * editfns.c (init_editfns): Let envvar NAME override full name.
12958
12959 * buffer.c (list_buffers_1): Avoid error with list-buffers-directory.
12960
dff28924 129611990-07-17 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 12962
da1d68b2 12963 * buffer.c (list_buffers_1): Don't check list-buffers-directory.
615d0182 12964
dff28924 129651990-07-16 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 12966
da1d68b2 12967 * xdisp.c (display_text_line): Don't print ellipsis if they're
615d0182
DL
12968 off the left edge.
12969
dff28924 129701990-07-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12971
12972 * s-386-ix.h: Define BROKEN_TIOCGETC.
12973
dff28924 129741990-07-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12975
12976 * m-pmax.h: Undef LD_SWITCH_MACHINE, change DATA_START
12977 and DATA_SEG_BITS.
12978
dff28924 129791990-07-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12980
12981 * s-iris3-6.h (HAVE_GETWD): Define this.
12982 (KERNEL_FILE): Change to /unix.
12983 (sigsetmask, sigblock, NEED_ERRNO, C_SWITCH_MACHINE): Turn off.
12984 (SIGIO): Don't undefine it.
12985 (LIBS_MACHINE): Remove -lbsd.
12986
12987 * minibuf.c (Fall_completions, do_completion): Treat nil as alist.
12988 (Ftry_completion): Likewise.
12989
dff28924 129901990-07-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12991
12992 * sysdep.c: Undefine TIOCGETC if BROKEN_TIOCGETC defined.
12993 * s-usg5-3.h, s-xenix.h: Define BROKEN_TIOCGETC.
12994
dff28924 129951990-06-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12996
12997 * process.c (Fopen_network_connection): Minor cleanup.
12998
dff28924 129991990-06-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13000
13001 * m-sun3.h: Add comments for dealing with 68881.
13002
dff28924 130031990-06-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13004
13005 * m-ibmps2-aix.h [__GNUC__]: Define LIB_STANDARD and C_DEBUG_SWITCH,
13006 and don't define LIBS_MACHINE.
13007 (HAVE_WAIT_HEADER): Define this.
13008 Also reordered definitions so recently added ones are together.
13009
dff28924 130101990-06-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13011
13012 * insdel.c (insert): Error if buffer would get too long.
13013 * fileio.c (Finsert_file_contents): Likewise.
13014
dff28924 130151990-06-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13016
13017 * syntax.c (scan_sexps_forward): Allow Squote inside symbols.
13018
dff28924 130191990-06-16 Joseph Arceneaux (jla@geech)
615d0182
DL
13020
13021 * window.c (Fscroll_other_window): Don't unbind_to. Keep track of
13022 current_buffer and point explicitly.
13023
dff28924 130241990-06-15 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13025
da1d68b2 13026 * term.c (cursor_to): Only add chars_wasted if not calling hook.
615d0182
DL
13027 (clear_end_of_line_raw): Likewise.
13028 (clear_end_of_line): Check that screen is termcap before using
13029 chars_wasted.
13030 (ins_del_lines): Eliminated local copybuf[].
13031 (calculate_ins_del_char_costs): Now has screen parameter.
13032 DCICcost: Change to char_ins_del_costs and defined with
13033 SCREEN_WIDTH (screen).
13034 DC_ICcost: Changed to char_ins_del_vector.
13035 * term.h: DCICcost no longer defined here. DC_ICcost no longer
13036 declared here.
13037 * dispnew.c: char_ins_del_cost defined here. char_ins_del_vector
13038 declared extern here.
13039
dff28924 130401990-06-14 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13041
88c71720 13042 Globally replaced screen_width with macro
615d0182
DL
13043 SCREEN_WIDTH (selected_screen).
13044 * dispnew.c (init_display): Don't set SCREEN_WIDTH, etc. from
13045 screen_width.
da1d68b2 13046 (change_window_size): No longer check output_type and set
615d0182
DL
13047 ScreenRows.
13048
dff28924 130491990-06-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13050
13051 * indent.c (Findent_to): Don't fail to return value.
13052 (Fmove_to_column, Fcurrent_column): Doc fixes.
13053
dff28924 130541990-06-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13055
da1d68b2
JB
13056 * keyboard.c (echo_prompt): Now uses glyphs.
13057 echobuf, echobuf_ptr: These variables now glyphs.
615d0182 13058
dff28924 130591990-06-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13060
13061 * fileio.c (Fdo_auto_save): Use glyphs_to_str_copy to set
13062 omessage.
13063 * alloc.c (Fgarbage_collect): Ditto.
13064
da1d68b2 13065 * xdisp.c (message): message_buf set here, realloced if smaller
615d0182
DL
13066 than screen width.
13067 message_buf now type GLYF *. New variable message_buf_size holds
13068 its size.
13069 Use temp_buf for call to doprnt, then use str_to_glyph_cpy to set
13070 echo_area_glyphs.
13071
da1d68b2 13072 * print.c (printchar, strout): Use message_buf_size. Convert to
615d0182 13073 glyfs before assigning chars.
da1d68b2
JB
13074 (str_to_glyph_cpy, str_to_glyph_ncpy)
13075 (glyph_to_str_cpy, glyph_to_str_ncpy): New functions.
615d0182 13076
dff28924 130771990-06-03 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13078
13079 * keyboard.c (command_loop_1): Clear this_command_key_count here.
13080 (Fread_key_sequence): And here.
13081 (read_key_sequence): Not here.
13082
13083 * dispnew.c (update_screen):
13084 Add missing else in handling cursor_in_echo_area.
dff28924 13085 * xdisp.c (redisplay_window): Eliminate lpoint. Alter opoint
615d0182
DL
13086 if point should be changed permanently in the selected window.
13087
13088 * window.c (unshow_buffer): Don't set pt in selected window's buffer.
13089
13090 * xdisp.c (decode_mode_spec): Don't truncate buffer or file name.
13091
13092 * editfns.c (Finsert_buffer_substring): Don't fail to set beg, end.
13093
13094 * keyboard.c (command_loop_level): New variable.
13095 Used in place of RecurseDepth, but different meaning.
13096 (recursive_edit_1): New function.
13097 (Frecursive_edit): Call it.
13098 * minibuf.c (read_minibuf): Call recursive_edit_1.
13099 * xdisp.c (RecurseDepth): Variable deleted.
13100 display_minibuffer_message renamed echo_area_display.
13101
13102 * print.c: Include dispextern.h.
13103 (printchar, strout): Use message_buf.
13104
13105 * scroll.c (CalcIDCosts): Dynamically allocate ILcost, etc.
13106 (ILcost, DLcost, ILncost, DLncost): Now pointers.
13107 (do_scrolling): Use alloca for queue.
13108
da1d68b2 13109 * term.c (term_init): selected_screen as arg to calculate_costs.
615d0182
DL
13110 (calculate_costs):
13111 Dynamically allocate chars_wasted, copybuf, DC_ICcost.
13112 Set RPov based on actual width.
13113 (chars_wasted, copybuf, DC_ICcost): Now pointers.
13114
13115 * xterm.c (x_term_init): Don't set dont_calculate_costs anymore.
13116
dff28924 131171990-06-02 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13118
da1d68b2 13119 * term.c (calculate_ins_del_char_costs, string_cost_one_line):
615d0182
DL
13120 Made static.
13121
13122 * dispnew.c: Declare scrolling_1;
13123
da1d68b2 13124 * scroll.c (CalcIDCosts, CalcIDCosts1, CalcLID): Renamed
615d0182
DL
13125 calculate_ins_del_char_costs, ins_del_costs, and line_ins_del.
13126 CalcIDCosts1 and CalcLID also renamed.
da1d68b2 13127 (calculate_scrolling): Now void.
615d0182 13128
da1d68b2 13129 * Global renaming: bf_modified -> MODIFF. CharAt -> CHAR_AT_POSITION.
615d0182
DL
13130 BufferSafe{Floor,Ceiling} -> BUFFER_{FLOOR,CEILING}_OF.
13131 SetPoint -> SET_PT.
13132
13133 * xterm.c (x_term_init): Don't CalcIDCosts here anymore.
13134
dff28924 131351990-06-01 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13136
13137 * print.c: Include dispextern.h.
13138 (printchar, strout): Use message_buf.
13139
53964682 13140 * sysdep.c (get_screen_size): Don't use MscreenWidth, MscreenLength.
da1d68b2 13141 * term.c: Likewise.
615d0182 13142
da1d68b2 13143 * scroll.c (CalcIDCosts, CalcIDCosts1, CalcLID): These now take a
615d0182
DL
13144 screen argument.
13145 (CalcIDCosts): Dynamically allocate ILcost, etc.
13146 (ILcost, DLcost, ILncost, DLncost): Now pointers.
13147 (do_scrolling): Use alloca for queue.
13148
13149 * dispnew.c (remake_screen_structures): Allocate message_buf.
53964682 13150 Don't use MscreenWidth, MscreenLength.
615d0182
DL
13151
13152 * xdisp.c: bf_cur replaced with current_buffer.
13153 Calls to SetBfx deleted.
13154 message_buf is now char *.
13155 (message): Use SCREEN_WIDTH macro as limit for doprnt.
13156
13157 * indent.c (current_column): Detect special case when point == BEGV.
13158
13159 * buffer.h (struct buffer_text): Component modified renamed to
13160 modiff. All refs changed to macros below.
13161 (MODIFF, BUF_MODIFF): New macros.
13162 Macro SetBfx removed.
13163 Macro SetPoint renamed SET_PT.
13164
da1d68b2 13165 * fileio.c (Fexpand_file_name): Simplified.
615d0182 13166
dff28924 131671990-06-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13168
13169 * dired.c: Doc fix.
13170
dff28924 131711990-05-31 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13172
13173 * search.c (Fsearch_forward): Docstring fix.
13174
dff28924 131751990-05-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13176
13177 * dired.c: Comment added.
13178
dff28924 131791990-05-31 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13180
da1d68b2 13181 * process.c (Fprocess_connection): Return the type of a process
dff28924 13182 object.
da1d68b2 13183 (syms_of_process): Initialize pty_process and stream_process.
615d0182 13184 Declare Fprocess_type.
b344d29d 13185 * process.h: New element type to struct Lisp_Process.
615d0182
DL
13186
13187 * syntax.c (scan_sexps_forward): Initialize curlevel->last to -1.
13188
dff28924 131891990-05-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13190
da1d68b2 13191 * fileio.c (Finsert_file_contents): Use new variable how_much to
615d0182
DL
13192 hold read result.
13193
dff28924 131941990-05-24 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13195
da1d68b2 13196 * lread.c (read_char_exclusive): New subr.
615d0182 13197
dff28924 131981990-05-24 David Lawrence (tale@pogo.ai.mit.edu)
615d0182 13199
da1d68b2 13200 * fileio.c (file_executable_p): New function.
615d0182 13201
dff28924 132021990-05-23 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13203
13204 * insdel.c (make_gap): Only set BEG_ADDR if BUFFER_REALLOC was
13205 successful.
13206
da1d68b2 13207 * editfns.c (syms_of_editfns): DEFVAR the new variables.
615d0182
DL
13208
13209 * eval.c (Finteractive_p): Don't skip the first frame if the
13210 function was compiled.
13211
13212 * print.c (print): Use ... only for conses, and instead of normal
13213 print.
13214
dff28924 132151990-05-22 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13216
13217 * Renamed meta_flag meta_key.
13218
da1d68b2 13219 * termopts.h: Comment changes.
615d0182 13220
dff28924 132211990-05-20 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13222
13223 * buffer.h: upcase_table and downcase_table are now Lisp_Objects.
da1d68b2 13224 * alloc.c (mark_object, gc_sweep): Related changes.
615d0182
DL
13225 * casetab.c: Ditto.
13226
dff28924 132271990-05-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13228
13229 * minibuf.c (Fall_completions): Protect STRING from gc.
13230 Copy ALIST to TAIL to protect it.
13231
13232 * paths.h-dist: Doc fix.
13233
dff28924 132341990-05-17 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13235
13236 * search.c (Flooking_at, search_buffer): Use new accessors.
13237 * indent.c (Fcurrent_column): Likewise.
13238 * minibuf.c (read_minibuf): Likewise.
13239 * regex.c (re_match_2): Use PTR_CHAR_POS.
b344d29d 13240 * editfns.c (Fbuffer_size, Fnarrow_to_region, Fbuffer_substring)
615d0182
DL
13241 (Fbuffer_string, Finsert_buffer_substring): Likewise.
13242 (save_restriction_restore): Likewise.
13243 * dispnew.c (direct_output_for_insert): Likewise.
13244 * fileio.c (Fwrite_region, Finsert_file_contents): Likewise.
13245 (Fdo_auto_save): Likewise.
13246 * insdel.c (move_gap, gap_left, gap_right, make_gap): Likewise.
13247 (InsCStr, del_range, modify_region): Likewise.
13248 * process.c (Fprocess_send_region): Likewise.
13249 * xdisp.c (try_window, try_window_id, display_text_line): Likewise.
13250 (redisplay): Likewise.
13251 * buffer.c (list_buffers_1): Likewise.
b344d29d 13252 * marker.c (marker_position, Fset_marker, set_marker_restricted)
615d0182
DL
13253 (Fmarker_position): Likewise.
13254 * window.c (unshow_buffer, Fset_window_configuration): Likewise.
13255 (Fset_window_buffer): Likewise.
13256
13257 * editfns.c (save_restriction_restore): Use a macro to alter point.
13258
13259 * lread.c (readchar): Use new accessors, and avoid knowing about
13260 the text field of a buffer.
13261 * window.c (Fpos_visible_in_window_p): Likewise.
13262
13263 * buffer.h (struct buffer): Make the syntax table a Lisp object.
13264 * alloc.c (mark_buffer): No need to treat it specially.
b344d29d 13265 * syntax.c (Fsyntax_table, Fset_syntax_table, Fdescribe_syntax)
615d0182
DL
13266 (Fmodify_syntax_entry): Adjust for this change.
13267 * buffer.c (reset_buffer_local_variables): Need not be special.
13268 (init_buffer_once): Make this slot a defaulted local variable.
13269 * syntax.h: Adjust macros for this change.
13270 (Vstandard_syntax_table): Define as macro, in buffer_defaults.
13271 * syntax.c (syms_of_syntax): Don't staticpro it here.
13272 (Fset_syntax_table): Set the flag in local_var_flags.
13273
13274 * buffer.h (struct text): Represent the buffer dimensions
13275 with new slots, memory, begv, pt, gpt, zv, z and gap_size.
13276 (BEGV, etc.): Use new slots.
13277 (CharAt): Likewise.
13278 (BufferSafeCeiling, BufferSafeFloor): Use new slots; fix old bugs.
13279 (bf_p1, bf_s1, etc.): Old macros deleted.
13280
13281 * buffer.c (Fget_buffer_create): Set up memory and new slots.
13282 (Fkill_buffer): Likewise.
13283
13284 * insdel.c (move_gap, gap_left, gap_right, make_gap): Update new slots.
13285 (del_range, InsCStr): Likewise.
13286 * fileio.c (Finsert_file_contents): Likewise.
13287 * window.c (temp_output_buffer_show): Likewise.
13288 * xdisp.c (decode_mode_spec, try_window_id): Likewise.
13289
13290 * insdel.c (make_gap): Complete rewrite. Arg is amount of new gap
13291 to create. All calls changed.
13292 (gap_left): New argument NEWGAP.
13293
13294 * buffer.c (Fset_buffer): Check for deleted buffer.
13295 (SetBfp): Don't check.
13296 (SetBfp, Frename_buffer): Local cleanups.
13297 * print.c (PRINTPREPARE): Use Fset_buffer.
13298
13299 * buffer.c (SetBfp): Don't bother with selected window or its point.
dff28924 13300 * window.c (Fselect_window): Always set pointm of old window.
615d0182
DL
13301
13302 * editfns.c: Eliminate all use of DEFSIMPLE and DEFPRED.
13303 * indent.c, keyboard.c: Ditto.
13304
13305 * search.c (skip_chars): Eliminate PointLeft and PointRight.
13306 * cmds.c (SelfInsert): Likewise.
13307
dff28924 133081990-05-16 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13309
da1d68b2 13310 * xdisp.c (try_window): No return value.
615d0182
DL
13311 Fix calls to try_window.
13312 * Global variable RedoModes is now redraw_mode_line.
13313
dff28924 133141990-05-13 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13315
13316 * keymap.c (Fdefine_key, Flookup_key): Local cleanups.
13317
dff28924 13318 * sysdep.c (sys_suspend): Use save_signal_handlers and
615d0182
DL
13319 restore_signal_handlers to save and restore signal state.
13320
13321 * indent.c (Findent_to): Merge guts of indentation into here.
13322 (position_indentation): Scan with a pointer, for speed.
13323
13324 * casefiddle.c (operate_on_word): Just return the other end.
13325 (Fupcase_word, Fdowncase_word, Fcapitalize_word):
13326 Pass that value to casify_region.
13327
13328 * editfns.c (init_editfns): Store system and user names as
13329 strings to avoid arbitrary limits.
13330
13331 * keymap.c (describe_vector, describe_alist): Make elt_prefix
13332 and elt_describer responsible for indentation and newlines.
13333 Local cleanups.
13334 (describe_command): Do indentation and newline.
13335 (describe_map): Add space to end of prefix.
13336 * syntax.c (describe_syntax): Do indentation and newline.
13337
dff28924 133381990-05-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13339
13340 * process.c (create_process) [not USG]: Put subproc in pgrp 0.
13341
dff28924 133421990-05-10 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13343
da1d68b2 13344 * dispextern.h: New struct screen_glyfs replaces struct
615d0182 13345 display_line.
da1d68b2 13346 * screen.c: New screen elements current_glyfs, desired_glyfs, and
615d0182 13347 temp_glyfs.
b344d29d 13348 * dispnew.c (make_screen_glyfs, free_screen_glyfs)
da1d68b2 13349 (remake_screen_glyfs): New functions.
615d0182
DL
13350 (make_display_lines, new_display_line, return_display_line):
13351 Functions deleted.
13352 (change_screen_size, init_display): Use the new functions.
13353 (cancel_line, clear_screen_records, get_display_line):
13354 Rewritten for new data structures. get_display_line no longer
13355 returns anything.
13356 (preserve_other_columns, preserve_my_columns): Likewise.
13357 (cancel_my_columns, direct_output*): Likewise.
13358 (update_screen, update_line, quit_error_check, scrolling): Likewise.
13359 (scroll_screen_lines): Likewise.
13360 (rotate_vector, safe_bcopy): New subroutines.
13361 (line_hash_code, line_draw_cost): Cleaned up.
13362 Args are different, and hash computation too.
13363 (update_screen): Rearrange buffer-emptying code.
da1d68b2 13364 * xdisp.c (display_minibuf_message, redisplay): Rewritten for new
dff28924 13365 structures.
615d0182
DL
13366 (display_text_line, display_mode_line): Likewise.
13367 (display_mode_element, display_string): Likewise.
13368 (decode_mode_spec): Local cleanups.
13369 * scroll.c (do_scrolling): Rewritten for new data structures.
13370 * xterm.c (XTflash): Use this new structure.
13371
13372 * editfns.c (in_accessible_range): New function.
13373 (Fgoto_char, save_restriction_restore): Use it.
13374 (save_excursion_save, Fcurrent_time_string): Local cleanups.
13375
13376 * process.c (Fprocess_kill_without_query): New arg; new return value.
13377 (count_active_processes): Function deleted.
13378
13379 * fileio.c (Finsert_file, Fwrite_region): Local cleanups.
13380
13381 * fns.c (Fsubstring): Local cleanup.
13382
13383 * keyboard.c (echo_prompt, echo_char, echo_dash, echo): New functions.
13384 (cancel_echoing): Likewise.
13385 (immediate_echo, echoptr): New variables.
b344d29d 13386 (command_loop_1, request_echo, get_char, read_key_sequence)
615d0182
DL
13387 (set_waiting_for_input, interrupt_signal): Related changes.
13388 (get_char): No more declaration of request_echo. Local cleanups.
13389
13390 (this_command_key...): New variables.
13391 (Fexecute_extended_command, Fthis_command_keys): Related changes.
13392 (init_keyboard, get_char): Likewise.
13393
13394 * macros.c (Fstart_kbd_macro): Local cleanup.
13395
9b8ba1e5 13396 * minibuf.c (read_minibuf): No more declaration of
615d0182
DL
13397 Frestore_screen_configuration.
13398
13399 * search.c (Fregexp_quote): Simplified.
13400
dff28924 134011990-05-08 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13402
da1d68b2 13403 * process.c (Fopen_network_stream): Also handle numeric inet addresses.
615d0182 13404
dff28924 134051990-05-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13406
13407 * alloca.c: #ifdef __STDC__ rather than X3J11/
13408
dff28924 134091990-05-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13410
13411 * fileio.c (Fmake_symbolic_link): Delete old file if permitted.
13412
dff28924 134131990-05-02 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13414
13415 * data.c (Fstring_to_int): Delete disabled feature
13416 of accepting `yes' and `no'.
13417
13418 * xdisp.c (redisplay, redisplay_preserving_echo_area):
13419 Two functions replace DoDsp. All callers changed.
13420 (redisplay, redisplay_window): Eliminate `inhibit_hairy_id'.
13421 (redisplay_window): No return value. Local cleanups.
13422
13423 * alloc.c (Fmake_marker): Delete `modified' field.
13424 * insdel.c (adjust_markers): Likewise.
13425
13426 * abbrev.c (Fdefine_mode_abbrev): Clean up error message.
13427
dff28924 134281990-05-01 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13429
13430 * xfns.c (Fx_draw_rectangle, Fx_erase_rectangle): Simplified.
13431
13432 * xterm.c (x_display_cursor): Don't check s->phys_x when drawing
13433 cursor.
13434
da1d68b2
JB
13435 * undo.c: New version.
13436 * undo.h: No longer exists.
615d0182
DL
13437 * alloc.c (Fgarbage_collect): Call truncate_undo_list.
13438 (syms_of_alloc): Define vars undo-threshold and undo-high-threshold.
13439 * buffer.c (Fget_buffer_create): Set undo_list to t or nil.
13440 (Fbuffer_disable_undo, Fbuffer_enable_undo): Likewise.
13441 (Fkill_buffer): Likewise.
13442 (init_buffer_once): Set up local variable buffer-undo-list.
13443 (syms_of_buffer): Likewise.
13444 * buffer.h: New element undo_list in struct buffer.
13445 * fileio.c (Finsert_file_contents): Store nil in undo_list.
13446
da1d68b2 13447 * buffer.c: Variable bf_text deleted.
615d0182 13448 (Fkill_buffer, SetBfp): Delete code that worked with it.
da1d68b2 13449 (SetBfx): Now a macro in buffer.h
615d0182
DL
13450 * editfns.c (Fwiden, Fnarrow_to_region): Related changes.
13451 (save_restriction_save, save_restriction_restore): Likewise.
13452 (Finsert_buffer_substring): Likewise.
13453 * fileio.c (Fdo_auto_save): Likewise.
13454 * insdel.c (make_gap): Likewise.
13455 * lread.c (readchar): Likewise.
13456 * marker.c (Fmarker_position, marker_position): Likewise.
13457 (Fset_marker): Likewise.
13458 * xdisp.c (DoDsp): Likewise.
13459
dff28924 134601990-04-30 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13461
da1d68b2 13462 * buffer.h: New macro R_ALLOC_SET_BUFFER for declaring all the
615d0182
DL
13463 text pointers of a buffer to the relocating allocator.
13464 * buffer.c (Fbury_buffer, SetBfx, SetBfp): Use the macro.
da1d68b2
JB
13465 * editfns.c (Finsert_buffer_substring): Ditto.
13466 * fileio.c (Fdo_auto_save): Ditto.
13467 * insdel.c (make_gap): Ditto.
615d0182
DL
13468 * xfns.c (adjust_scrollbars): Don't set bf_cur->text.
13469
dff28924 134701990-04-26 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13471
13472 * minibuf.c: Declare active_screen struct screen *, not
13473 Lisp_Screen *.
13474
dff28924 134751990-04-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13476
13477 * xterm.c (XTupdate_end): Only x_display_cursor if s is x_input_screen.
13478
dff28924 134791990-04-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13480
13481 * fns.c (Fy_or_n_p): If a C-g comes in and does not quit, quit by hand.
13482
13483 * buffer.c (Frename_buffer): Allow renaming to same name it has.
13484
dff28924 134851990-04-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13486
da1d68b2 13487 * xfns.c (Fx_open_connection): Attach xrdb to x_current_display.
615d0182 13488
dff28924 134891990-04-17 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13490
da1d68b2
JB
13491 * xterm.c (dumpborder): Now only used for X10.
13492 (highlight, unhighlight): New functions for X11.
615d0182 13493
dff28924 134941990-04-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13495
13496 * cm.c (Wcm_init): Return -2 if screen size not specified.
13497 * term.c (term_init): Special error message for that case.
13498
dff28924 134991990-04-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13500
13501 * s-sunos4.h, s-sunos4shr.h (SYSTEM_MALLOC): Define it.
13502
dff28924 135031990-04-15 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13504
da1d68b2 13505 * xfns.c (Fx_get_resource): Concatenate invocation_name before
615d0182 13506 the resource tag.
da1d68b2 13507 (Fx_create_screen): Use the latest resource id's.
615d0182 13508
dff28924 135091990-04-13 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13510
da1d68b2
JB
13511 * xfns.c (Fx_get_resource): New subr.
13512 (Fx_open_connection): Call x_load_resources. New parameter
615d0182 13513 xrm_string.
da1d68b2 13514 * xrdb.c: New file for doing resource manager stuff.
615d0182 13515
da1d68b2 13516 * xscrollbar.h: New file for scrollbar bitmaps.
615d0182 13517
da1d68b2 13518 * xselect.h: New file for the X selection stuff.
615d0182
DL
13519
13520 * ymakefile: Take note of these new files.
13521
dff28924 135221990-04-10 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13523
da1d68b2 13524 * xterm.c (x_term_init): Use MAXPATHLEN.
615d0182 13525
dff28924 135261990-04-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13527
13528 * buffer.c (list_buffers_1): Get filename from list-buffers-directory.
13529
dff28924 135301990-04-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13531
da1d68b2
JB
13532 * screen.c (coordinates_in_window): Return -1 if in modeline of window.
13533 (Fcoordinates_in_window_p): Return Qt if in modeline of window.
13534 (Flocate_window_from_coordinates): Use next_screen_window if
615d0182
DL
13535 MULTI_WINDOW is defined.
13536
dff28924 135371990-04-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13538
da1d68b2 13539 * xterm.c (construct_mouse_event): Deal with the motion events
615d0182
DL
13540 first. Only grab the mouse when in the scrollbar.
13541
dff28924 135421990-04-04 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13543
13544 * screen.c (coordinates_in_window): Include mode line as part of
13545 window.
13546
da1d68b2
JB
13547 * xterm.c (XTread_socket): Initialize nbytes to 0.
13548 (x_display_cursor): Don't draw if screen not selected.
615d0182 13549
da1d68b2 13550 * xdisp.c (DoDsp): Additional checks for screen being visible.
615d0182 13551
dff28924 135521990-04-03 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13553
da1d68b2 13554 * editfns.c (Fmessage): If there is a global minibuffer screen,
615d0182
DL
13555 raise it before displaying the message.
13556
da1d68b2 13557 * window.c (window_loop): Parameter SCREENS now affects which
615d0182
DL
13558 screen is scanned for windows. All subrs calling window_loop must
13559 pass a Lisp_Object here now.
13560
dff28924 135611990-04-01 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13562
da1d68b2 13563 * window.c (window_loop): Additional parameter mini to control
615d0182 13564 minibuffer selection or not.
b344d29d
JB
13565 (Fget_lru_window, Fget_largest_window, Fget_buffer_window)
13566 (Fdelete_other_windows, Fdelete_windows_on)
da1d68b2 13567 (Freplace_buffer_in_windows): Use that parameter.
615d0182 13568
dff28924 135691990-03-29 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13570
da1d68b2 13571 * screen.c (Fselect_screen): Raise the selected screen.
615d0182 13572
b344d29d 13573 * window.c (Fget_buffer_window, Fget_largest_window)
da1d68b2
JB
13574 (Fget_lru_window): New parameter all_screens.
13575 (Fdisplay_buffer): Use the new param in Fget_lru_window,
b344d29d 13576 Fget_buffer_window, and Fget_largest_window.
da1d68b2
JB
13577 (Fscroll_other_window): Use new param in Fget_buffer_window.
13578 * buffer.c (Fother_buffer): Ditto.
615d0182 13579
da1d68b2 13580 * xterm.c (x_display_cursor): Always draw the cursor if ON is
615d0182
DL
13581 true. Don't check if the screen S is selected or equal to
13582 mouse-screen.
13583
da1d68b2 13584 * xfns.c (Fx_track_pointer): Don't turn off cursor, just call
615d0182
DL
13585 x_display_cursor.
13586
dff28924 135871990-03-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13588
da1d68b2 13589 * data.c (Fmake_local_variable): Give the variable value nil if
615d0182
DL
13590 unbound.
13591
da1d68b2 13592 * window.c (Fnext_window, Fprevious_window): For MULTI_SCREEN,
615d0182
DL
13593 check if Vglobal_minibuffer_screen is non-nil and maybe call
13594 next_screen.
13595
b344d29d
JB
13596 * screen.c (Fscreen_selected_window, Fscreen_root_window):
13597 If screen is nil, use selected-screen.
615d0182 13598
dff28924 135991990-03-27 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13600
da1d68b2 13601 * xterm.c (XTread_socket): SET_SCREEN_GARBAGED which returning
615d0182 13602 symbol which causes DoDsp to be invoked.
da1d68b2 13603 * keyboard.c (read_key_sequence): Don't SET_SCREEN_GARBAGED here.
615d0182 13604
da1d68b2 13605 * screen.h: New macro SET_SCREEN_GARBAGED.
615d0182
DL
13606
13607 * xfns.c:
13608 * window.c:
13609 * sysdep.c:
13610 * keyboard.c:
da1d68b2 13611 * dispnew.c: Use the new macro.
615d0182 13612
dff28924 136131990-03-25 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13614
da1d68b2 13615 * xfns.c (Fx_own_selection): Only take one argument, string.
615d0182 13616
dff28924 136171990-03-24 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13618
da1d68b2 13619 * xfns.c (select_visual): Catch bullshit machines whose hardware
615d0182 13620 doesn't support the X server pixel depth by looking at colormap_size.
da1d68b2 13621 (x_decode_color): Use x_screen_planes to check for color.
615d0182 13622
dff28924 136231990-03-23 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13624
da1d68b2
JB
13625 * xterm.c (x_display_cursor): Try using vertical bar cursor.
13626 (clear_cursor): Call x_display_cursor for X11.
615d0182
DL
13627
13628 * xfns.c: Zotzed Vx_pointer_mask.
da1d68b2 13629 (Fx_track_pointer): Call x_display_cursor if we just
615d0182
DL
13630 wasted the cursor. Break out of loop if no display line.
13631 Use mode line cursor if we're there.
da1d68b2 13632 (x_y_pos): New function.
10d1d0af 13633 (x_set_font): Don't set x_font_{width,height}, they are gone.
615d0182 13634
dff28924 136351990-03-22 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13636
da1d68b2 13637 * xfns.c (Fx_track_pointer): Check that s == selected_screen each
615d0182
DL
13638 time through loop. If event is nil, read mouse position.
13639
da1d68b2 13640 * keyboard.c (get_char): DoDsp only if selected_screen visible.
615d0182 13641
da1d68b2 13642 * xterm.c (XTread_socket): Mark screen as visible only on expose
615d0182
DL
13643 event.
13644
da1d68b2
JB
13645 * emacs.c (main): Check here for "-d" option and set display_arg.
13646 * dispnew.c (init_display): Set Vwindow_system, etc. if display_arg.
615d0182 13647
dff28924 136481990-03-21 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13649
da1d68b2 13650 * keyboard.c (read_key_sequence): Don't DoDsp if the screen was
615d0182 13651 just unmapped.
da1d68b2 13652 (command_loop_1): Call the mouse motion handler before calling
615d0182 13653 read_key_sequence.
da1d68b2 13654 (interrupt_signal): Fixed typo checking screen type.
615d0182 13655
da1d68b2 13656 * xfns.c (Fx_track_mouse): Don't crash because of null display
615d0182
DL
13657 line. Don't set obj til call to get_char.
13658
da1d68b2 13659 * xterm.c (x_term_init): Disable SIGWINCH here.
615d0182 13660
da1d68b2 13661 * fns.c (Fmember): New subr.
615d0182 13662
da1d68b2 13663 * dispnew.c (init_display): Don't check env variable DISPLAY to
615d0182
DL
13664 set Vwindow_system. Now done in startup.el.
13665
da1d68b2 13666 * emacs.c: Removed variables xargc, xargv.
615d0182 13667
dff28924 136681990-03-20 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13669
da1d68b2 13670 * xfns.c (Fx_track_pointer): Go faster.
615d0182 13671
da1d68b2 13672 * screen.h: New macro SCREENP.
615d0182 13673
da1d68b2 13674 * window.c (Fminibuffer_window): Rewritten.
615d0182 13675
dff28924 136761990-03-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13677
13678 * sysdep.c (perror): Control with HAVE_PERROR as well as HPUX.
13679 * s-hpux.h (HAVE_PERROR): Define it.
13680
dff28924 136811990-03-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13682
da1d68b2 13683 * keyboard.c (command_loop_1): Restructured handling of X event
615d0182 13684 things.
da1d68b2 13685 (read_key_sequence): Handle new `unmapped-screen' symbol with new
615d0182
DL
13686 Vunmap_screen_hook.
13687
da1d68b2 13688 * xterm.c (XTread_socket): Return unmapped-screen symbol if the
615d0182
DL
13689 window for UnmapNotify events.
13690
da1d68b2 13691 * lread.c (Feval_region): GCPRO opoint.
615d0182 13692
dff28924 136931990-03-16 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13694
da1d68b2 13695 * keyboard.c (command_loop_1): Call mouse-motion handler with
615d0182
DL
13696 argument. Also, don't call undo-boundary.
13697
da1d68b2 13698 * process.c (create_process): Set the process group for BSD at
615d0182
DL
13699 the same time as for USG.
13700
dff28924 137011990-03-14 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13702
da1d68b2 13703 * xterm.c (x_new_selected_screen): Set x_input_screen here.
615d0182 13704
dff28924 137051990-03-11 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13706
da1d68b2
JB
13707 * xterm.c: Vx_mouse_grabbed now Vmouse_grabbed.
13708 (XTread_socket): Generate exited-window symbols on LeaveNotify
615d0182
DL
13709 even if screen is focused.
13710
da1d68b2
JB
13711 * xfns.c: Vx_mouse_grabbed now Vmouse_grabbed.
13712 (outline_region): Now static.
13713 (Fx_track_pointer): Check x_mouse_screen == s in loop.
615d0182 13714
dff28924 137151990-03-10 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13716
13717 * xterm.c (encode_mouse_button): Correctly get the button from
13718 Motion events.
13719
da1d68b2 13720 * xfns.c (x11_encode_mouse_button): Nuked.
615d0182
DL
13721 (encode_mouse_button, Fx_mouse_events, Fx_get_mouse_event): #if 0'd.
13722
da1d68b2 13723 * keyboard.c (get_char): Re-set obj if we've keyboard-translated c.
615d0182 13724
dff28924 137251990-03-08 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13726
da1d68b2
JB
13727 * xterm.c (x_focus_screen): No longer static.
13728 (x_error_handler): Use XDefaultIOError.
615d0182 13729
da1d68b2
JB
13730 * screen.c (Ffocus_screen): New subr, removed Fscreen_has_focus.
13731 (Fselect_screen): New, optional parameter no_enter.
b344d29d 13732 (Frestore_screen_configuration)
da1d68b2 13733 (Fdelete_screen): Pass second parm Qnil to Fselect_screen.
615d0182 13734
da1d68b2 13735 * window.c (Fdisplay_buffer, Fset_window_configuration): Pass
615d0182
DL
13736 second parm Qnil to Fselect_screen.
13737
dff28924 137381990-03-07 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13739
da1d68b2
JB
13740 * screen.c (Fscreen_has_focus): New subr.
13741 (Fselect_screen): Use x_focus_on_screen to physically select the
615d0182
DL
13742 screen.
13743
dff28924 137441990-03-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13745
da1d68b2 13746 * xfns.c (x_set_mouse_position): Moved to xterm.c.
615d0182 13747
da1d68b2 13748 * fileio.c (Fremove_directory): New subr.
615d0182 13749
da1d68b2 13750 * screen.c (Frelease_focused_screen): Just call x_unfocus_screen.
615d0182 13751
da1d68b2 13752 * xterm.c (XTread_socket): On FocusOut, if s isn't mouse screen,
615d0182
DL
13753 return exited-window. On LeaveNotify, simplify if expression for
13754 dumpborder. Reworked FocusIn/FocusOut events.
da1d68b2
JB
13755 (x_unfocus_screen): Check that screen is x_focus_screen.
13756 (x_set_mouse_position): Moved from xfns.c. Use new macro
615d0182 13757 XWarpPointer.
da1d68b2 13758 * xterm.h: New macro XWarpPointer.
615d0182 13759
da1d68b2 13760 * buffer.c: Replaced Fbuffer_flush_undo with
615d0182 13761 Fbuffer_disable_undo.
da1d68b2 13762 * process.c: Ditto.
615d0182 13763
dff28924 137641990-03-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13765
da1d68b2 13766 * xterm.c (XTupdate_end): Use parameter s rather than
615d0182 13767 updating_screen.
da1d68b2 13768 (XTread_socket): On EnterNotify, don't check s != focus_screen
615d0182
DL
13769 before selecting. On Focus In/Out don't set/reset mouse_screen.
13770
dff28924 137711990-03-04 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13772
88c71720 13773 * eval.c: If using X windows, include xterm.h.
da1d68b2 13774 (error): TOTALLY_UNBLOCK_INPUT if using X.
615d0182 13775
da1d68b2 13776 * xterm.h (BLOCK_INPUT, UNBLOCK_INPUT): No signal stuff, just inc
615d0182
DL
13777 and decrement x_input_blocked.
13778
da1d68b2
JB
13779 * xfns.c (adjust_scrollbars): Don't BLOCK_INPUT.
13780 (x_set_font): Check result of x_new_font. Call error if nonzero.
615d0182
DL
13781 (x_set_icon_type): Check result of x_*_icon, maybe call error.
13782
13783 * screen.c (Fdeiconify_screen): Use x_make_screen_visible rather
13784 than x_deiconify_screen. Return screen.
da1d68b2 13785 (Fmake_screen_visible): Don't raise it here. Return screen.
615d0182 13786
da1d68b2 13787 * xterm.c (XTwrite_glyfs): Don't show cursor if screen is
615d0182
DL
13788 global-minibuffer-screen.
13789 (x_new_selected_screen): Do dumpborder and check auto-raise here,
13790 rather than XEvent switch.
13791 (x_deiconify_screen): No longer exists.
b344d29d
JB
13792 (x_do_pending_expose, x_clear_cursor)
13793 (x_invert_screen, scraplines, stufflines, x_bitmap_icon)
da1d68b2
JB
13794 (x_text_icon, x_new_font): Don't BLOCK_INPUT.
13795 (XTins_del_lines): BLOCK_INPUT here.
13796 (XTupdate_end): Don't turn on cursor if minibuffer-screen.
615d0182
DL
13797 (XTread_socket): On MotionNotify, just that screen is selected before
13798 processing.
da1d68b2 13799 (XTtopos): If updating_screen, just set x and y, don't flush.
b344d29d
JB
13800 (x_bitmap_icon, x_text_icon, x_new_font): Return 1 if failed,
13801 don't call error.
da1d68b2 13802 (x_make_screen_visible): Raise the screen as well.
615d0182 13803
dff28924 138041990-03-02 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13805
da1d68b2 13806 * screen.c (Frelease_focused_screen): Just check that screen is
615d0182
DL
13807 selected.
13808
dff28924 138091990-02-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13810
da1d68b2 13811 * screen.c (Fselect_screen_focused, Frelease_focused_screen): New
615d0182 13812 subrs.
da1d68b2 13813 * xterm.c (x_focus_on_screen, x_unfocus_screen): New procedures
615d0182
DL
13814 to implement focusing.
13815
dff28924 138161990-02-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13817
13818 * casefiddle.c: Doc fix.
13819
dff28924 138201990-02-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13821
da1d68b2 13822 * xterm.h: Redefined BLOCK_INPUT and UNBLOCK_INPUT to use sigblock
615d0182 13823 and sigsetmask if available.
da1d68b2 13824 * xterm.c: Declare BLOCK_INPUT_mask if have SIGIO and FIONREAD.
615d0182 13825
dff28924 138261990-02-27 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13827
13828 * minibuf.c (Fread_from_minibuffer): Initialize pos to 0.
13829
dff28924 138301990-02-25 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13831
13832 * keyboard.c (read_key_sequence): Handle mapped-screen event
13833 symbol by calling new hook Vmap_screen_hook.
13834
da1d68b2 13835 * xterm.c (x_make_screen_invisible): Use the new Xlib function
615d0182 13836 XWidthdrawWindow.
da1d68b2 13837 (x_iconify_screen): Use the new Xlib function XIconifyWindow.
615d0182
DL
13838 (XTread_socket): Return mapped-screen symbol to signal
13839 mapped-screen events.
13840
dff28924 138411990-02-23 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13842
da1d68b2 13843 * keyboard.c (command_loop_1): Check the character for width 1
615d0182
DL
13844 before doing direct_output_forward, as well as the cursor position
13845 on the screen.
13846
da1d68b2 13847 * xdisp.c (DoDsp): Use redisplay_windows rather than
615d0182
DL
13848 redisplay_all_windows, which was removed.
13849
dff28924 138501990-02-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13851
13852 * unexencap.c: New file, waiting for papers.
13853
dff28924 138541990-02-22 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13855
13856 * keyboard.c: Removed much debugging stuff.
13857 * xterm.c: Removed much debugging stuff.
13858 (x_error_handler): For X11, if caught BadAlloc error while
13859 converting selection (note new variable x_converting_selection),
13860 just set new variable x_selection_alloc_error.
13861
da1d68b2
JB
13862 * xfns.c: Massive changes for crufty selection processing details.
13863 New X atoms: Xatom_clipboard, Xatom_delete, Xatom_insert_selection,
615d0182
DL
13864 Xatom_insert_property, Xatom_pair.
13865
dff28924 138661990-02-21 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13867
13868 * keyboard.c (kbd_buffer_store_char): Check NULL objects.
13869
13870 * xterm.c (XTread_socket): Correctly advance bufp for all KeyPress
13871 events.
13872
dff28924 138731990-02-20 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13874
da1d68b2 13875 * keyboard.c (kbd_buffer_get_char): Use KBD_BUFFER_SIZE rather
615d0182
DL
13876 than sizeof kbd_buffer.
13877 (read_key_sequence): Upon redraw-display symbol, set
13878 screen_garbaged.
13879
13880 * xterm.c (XTread_socket): On EnterNotify events, make sure to
13881 return mouse event for both scrollbars and windows.
13882
dff28924 138831990-02-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13884
13885 * casefiddle.c (casify_region): Move the new statement.
13886
dff28924 138871990-02-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13888
13889 * casefiddle.c (casify_region): Return if beginning and end same.
13890
dff28924 138911990-02-18 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13892
13893 * keyboard.c (kbd_buffer_store_char): Use KBD_BUFFER_SIZE rather
13894 than sizeof kbd_buffer.
13895
13896 * fns.c (Fy_or_n_p): Only accept ints from get_char.
13897
dff28924 138981990-02-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13899
13900 * minibuf.c (Fread_from_minibuffer): New arg POSITION.
13901
13902 * unexsunos4.c: New file. Waiting for papers.
13903 * s-sunos4shr.h: New file.
13904
13905 * emacs.c (main) [RUN_TIME_REMAP]: Call run_time_remap.
13906
13907 * ymakefile (LD): Let config file override with LD_CMD.
13908
dff28924 139091990-02-14 Joseph Arceneaux (jla@albert.ai.mit.edu)
615d0182 13910
da1d68b2 13911 * keyboard.c (read_avail_input): Pass read_socket_hook
615d0182
DL
13912 KBD_BUFFER_SIZE rather than doing sizeof (buf).
13913
13914 * xterm.c (XTread_socket): Set event.type = MotionNotify when
13915 entering screen or scrollbar to fake motion event.
13916
dff28924 139171990-02-13 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13918
da1d68b2 13919 * window.c (next_screen, prev_screen): Moved to screen.c.
615d0182
DL
13920 (Fnext_window): If mini non-nil, count the separate minibuffer
13921 screen.
da1d68b2 13922 * screen.c (Fnext_screen): New subr.
615d0182 13923
dff28924 139241990-02-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13925
13926 * xdisp.c (display_text_line, try_window, try_window_id, DoDsp):
13927 Don't display overlay arrow on more than one line in a window.
13928
dff28924 139291990-02-12 Joseph Arceneaux (jla@albert.ai.mit.edu)
615d0182
DL
13930
13931 * doprnt.c (doprnt): Expand size of tembuf to 512.
13932
dff28924 139331990-02-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13934
13935 * minibuf.c (Fread_no_blanks_input): Make second arg optional.
13936
dff28924 139371990-02-09 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13938
13939 * keyboard.c (get_char): Remember to set obj when executing macro.
13940 (read_key_sequence): Handle the exited-scrollbar symbol.
13941 Compare obj, not read_key_sequence_cmd.
13942
13943 * xterm.c (x_make_screen_visible, x_deiconify_screen): Check
13944 window-manager variable.
13945 (x_make_screen_invisible, x_iconify_screen): Don't use new R4
13946 calls (they crash), do it ourselves.
13947 (XTread_socket): Return exited-scrollbar symbol when doing so.
13948
dff28924 139491990-02-08 Joseph Arceneaux (jla@albert.ai.mit.edu)
615d0182
DL
13950
13951 * xterm.c (construct_mouse_event): Rewritten to do mouse-motion
13952 compression. All mouse processing now done here.
13953 Also, just use nil and t for x-mouse-grabbed. Record buttons
13954 pressed in new variable x_mouse_grabbed. XGrabPointer on button
dff28924 13955 depression.
da1d68b2 13956 * xfns.c (Fx_horizontal_line): Use x_mouse_grabbed.
615d0182 13957
dff28924 139581990-02-07 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13959
13960 * xdisp.c (DoDsp): If only updating selected screen, but there is
13961 a minibuffer screen, update it as well.
13962
dff28924 139631990-02-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13964
13965 * xfns.c (Fx_pixel_width, Fx_pixel_height): New subrs.
88c71720 13966 * xterm.h: New components pixel_width, pixel_height, to x_display.
615d0182
DL
13967 * xterm.c (XTread_socket): On configure notify, set these components.
13968
13969 * window.c (Fset_window_configuration): Select the screen of the
13970 root window if it's not the selected_screen.
13971 * minibuf.c (read_minibuf): Remove all the screen selection stuff,
13972 now that this is integrated in Fset_window_configuration.
13973
dff28924 139741990-02-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13975
13976 * screen.h: Declare Vglobal_minibuffer_screen.
13977 * xdisp.c (DoDsp): Set all_windows if using global-minibuffer-screen.
13978
dff28924 139791990-02-03 Joseph Arceneaux (jla@geech)
615d0182
DL
13980
13981 * window.c (Fset_window_configuration): Make sure to set
13982 window->next to nil for a minibuffer-only screen.
13983
13984 * screen.c (make_minibuffer_screen): Set mini_window->next nil.
13985
dff28924 139861990-02-01 Joseph Arceneaux (jla@albert.ai.mit.edu)
615d0182
DL
13987
13988 * screen.c (make_screen): Set wants_modeline elt to 1.
13989
13990 * window.c (Fset_window_configuration): Use screen->root_window
13991 as arg to delete_all_subwindows rather than minibuf_window->prev.
13992
13993 * minibuf.c (read_minibuf): Don't unwind with
13994 Frestore_screen_configuration. Save selected_screen if different
13995 than minibuf screen, and re-select it after reading minibuf.
13996 * screen.c: #if 0 Fscreen_configuration,
13997 Frestore_screen_configuration.
13998
dff28924 139991990-02-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14000
14001 * m-ibmps2-aix.h: Undef NEED_SIOCTL.
14002 (SIGN_EXTEND_CHAR): Cast to `signed char'.
14003
dff28924 140041990-01-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 14005
da1d68b2 14006 * xfns.c (Fx_track_pointer): Rewrote this to loop while there are
615d0182
DL
14007 mouse events.
14008
14009 * xterm.c (XTread_socket): Return left-window-event symbol upon
14010 LeaveNotify.
14011 * keyboard.c (read_key_sequence): Handle this symbol.
14012
dff28924 140131990-01-27 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
14014
14015 * xterm.c (x_display_cursor): Use dumpglyfs with SPACEGLYF for
14016 cursor, as `XFillRectaogle's kill HP-BSD server.
14017
14018 * xterm.h: Added nontext_cursor, modeline_cursor to x_display
14019 structure.
14020 * xfns.c (x_set_mouse_color, Fx_track_pointer): Changes to use
14021 nontext_cursor.
14022
dff28924 140231990-01-25 Joseph Arceneaux (jla@albert.ai.mit.edu)
615d0182
DL
14024
14025 * xterm.h: Changed the face structure for X11 to handle GCs and
14026 pixmaps.
14027
14028 * xterm.c (XTread_socket): Return a motion event when mouse enters
14029 scrollbar or window.
14030 (x_make_screen_invisible): Use the new X11R4 function XWithdrawWindow.
10d1d0af 14031 (x_iconify_screen): Use the X11R4 function XIconifyWindow.
615d0182
DL
14032 (dumpglyfs): Use the new face structure.
14033
14034 * xfns.c (install_vertical_scrollbar, install_horizontal_scrollbar):
14035 Accept EnterNotify events. Use XMapSubwindows rather than mapping
14036 each one.
14037 (Fx_set_face_font): New subr for X11 to set face GC.
14038
dff28924 140391990-01-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14040
14041 * dispnew.c (direct_output_for_insert): Give up if buf in 2 windows.
14042
14043 * keyboard.c (command_loop_1):
14044 Dumb bugs disabled special fast display for character motion.
14045
14046 * xdisp.c (DoDsp): For cursor motion within line,
14047 hpos result from compute_motion is relative to window.
14048
dff28924 140491990-01-24 Richard Stallman (rms@albert.ai.mit.edu)
615d0182
DL
14050
14051 * eval.c (Fmacroexpand): Handle explicit macros ((macro ...) ...).
14052
dff28924 140531990-01-18 Joseph Arceneaux (jla@spiff)
615d0182
DL
14054
14055 * undo.c (Fundo_more): Fixed typo.
14056
dff28924 140571990-01-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14058
14059 * xdisp.c (display_text_line): When checking HPOS for continuation
14060 line, compensate for w->left.
14061
dff28924 140621990-01-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14063
14064 * dispnew.c [no FIONREAD]: Undefine SIGIO.
14065
14066 * buffer.c (SetBfp): Use XTYPE to test for no selected window yet.
14067
14068 * editfns.c, dispnew.c, fileio.c, process.c, sysdep.c, xterm.c:
14069 Uniformly let NEED_TIME_H control use of time.h instead of sys/time.h.
14070
14071 * xterm.h (TOTALLY_UNBLOCK_INPUT, UNBLOCK_INPUT): Don't use
14072 SIGIO if no FIONREAD.
14073
dff28924 140741990-01-15 Joseph Arceneaux (jla@spiff)
615d0182
DL
14075
14076 * xfns.c (x_set_mouse_color): Set non-text pointer shape with new
14077 variable Vx_nontext_pointer_shape.
14078
14079 * keyboard.c: More checks for evil bug which trashes kbd_*_ptr.
14080
14081 * m/hp300bsd.h: Try using BSD load average stuff.
14082
dff28924 140831990-01-11 Joseph Arceneaux (jla@spiff)
615d0182
DL
14084
14085 * xfns.c (x_draw_pixmap): New routine.
14086
dff28924 140871990-01-10 Jim Kingdon (kingdon@pogo)
615d0182
DL
14088
14089 * m/hp300bsd.h: New file
14090
dff28924 140911990-01-08 Joseph Arceneaux (jla@spiff)
615d0182
DL
14092
14093 * xfns.c (Fx_window_id): New subr.
14094
14095 * screen.c (make_screen): Set wants_modeline elt to mini_p.
14096 If mini_p 0, then set root_window->next to nil.
14097
dff28924 140981990-01-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14099
14100 * editfns.c (Fchar_after): Set N after coercing marker.
14101
dff28924 141021990-01-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14103
14104 * buffer.c (Fkill_all_local_variables): Force mode line update.
14105
dff28924 141061990-01-05 Joseph Arceneaux (jla@spiff)
615d0182
DL
14107
14108 * insdel.c: Declare Vfirst_change_function.
14109
14110 * keyboard.c (read_key_sequence): Function keys are now lisp symbols.
14111 (kbd_buffer_store_char): Abort if store pointer past
10d1d0af 14112 buffer. Temporary; this shouldn't be able to happen.
da1d68b2 14113 (read_key_sequence): #ifdef HAVE_X_WINDOWS code
615d0182 14114 which handles complex objects.
dff28924 14115 (command_loop_1): Check not termcap screen before
615d0182
DL
14116 processing non-char input.
14117 (kbd_{store,fetch}_char): More debugging checks.
14118
14119 * screen.c (make_screen): Set root_window height to 9 if mini_p.
14120 (make_minibuffer_screen): Set the mini window's next,
14121 prev, and screen elements.
14122
14123 * xterm.c (x_func_key_to_sym): New function, uses new variable
14124 func_key_syms.
14125 (XTread_socket): Use this in KeyPress event for function keys.
14126 (XTflash): Draw solid rectangle in middle of screen.
14127 (x_set_offset): Set the size hints as well when doing
14128 this.
14129 (XTflash): Just dumpglyfs instead of redrawing the
14130 screen after flashing the rectangle.
14131
da1d68b2 14132 * lread.c (syms_of_lread): defsubr Fread_event.
615d0182 14133
dff28924 141341990-01-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 14135
dff28924 14136 * buffer.h, buffer.c (Vfirst_change_function): New Lisp variable.
615d0182
DL
14137 * insdel.c (signal_before_change): Call that function.
14138
14139 * keyboard.c (cmd_error): Don't crash if TAIL is nil.
14140
dff28924 141411989-12-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14142
14143 * minibuf.c: Doc fixes.
14144
dff28924 141451989-12-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14146
14147 * process.c (create_process): Unhold SIGCHLD in the child.
14148
dff28924 141491989-12-27 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14150
14151 * process.c (create_process): Treat HPUX like BSD for sigsetmask.
14152
dff28924 141531989-12-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14154
14155 * fns.c (Fmapconcat): Gcpro SEP around mapcar1.
14156
dff28924 141571989-12-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14158
14159 * dispnew.c (get_display_line): Don't touch X data if not using X.
14160
14161 * syntax.c (Fscan_sexps): Fix fatal documentation typo.
14162
14163 * lread.c: Include commands.h.
14164
14165 * xterm.c (construct_mouse_event): Delete unreached return at end.
14166 (x_wm_set_size_hint): #if 0 some broken code.
14167
14168 * cmds.c (SelfInsert): Set HAIRY if have before or after change hooks.
14169 * editfns.c (Fsubst_char_in_region, Ftranslate_region):
14170 Call signal_after_change for chars changed.
14171 * undo.c (Fundo_more): When undoing Uchange, do signal_after_change.
14172 * casefiddle.c (casify_region): Do modify_region before the change,
14173 signal_after_change afterward.
14174
14175 * insdel.c (prepare_to_modify_buffer): Call signal_before_change.
14176 (del_range, InsCStr): Call signal_after_change.
14177 (signal_after_change, signal_before_change): New functions.
14178
dff28924 141791989-12-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14180
14181 * dispnew.c (init_display) [VMS]: Downcase terminal type.
14182
dff28924 141831989-12-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14184
14185 * sysdep.c: Use NEED_SIOCTL to control use of sioctl.h.
14186 * m/m-mips.h, m/m-iris4d.h: Define that.
14187
14188 * m/m-ibmps2-aix.h (NEED_SIOCTL, HAVE_UNION_WAIT, HAVE_PTYS): Define.
14189 (HAVE_SYSVIPC, HAVE_SOCKETS, X_DEFAULT_FONT): Define.
14190 (sigsetmask): #undef this.
14191
5691a3f8 141921989-12-15 Joseph Arceneaux (jla@spiff)
615d0182
DL
14193
14194 * lread.c (Fread_char): Catch error if read non-char.
14195 (Fread_event): New subr. Return any input object.
14196
dff28924 141971989-12-14 Joseph Arceneaux (jla@spiff)
615d0182
DL
14198
14199 * xfns.c: New variable Vx_no_window_manager.
4e2af782 14200 (Fx_track_pointer): If bufp < 0, abort.
615d0182 14201
da1d68b2 14202 * xterm.c (XTread_socket): When leaving window, set x_mouse_x and
615d0182
DL
14203 x_mouse_y to -1.
14204
dff28924 142051989-12-13 Joseph Arceneaux (jla@spiff)
615d0182
DL
14206
14207 * xterm.c (XTread_socket): On ConfigureNotify events, return
14208 "redraw-screen" symbol.
14209 (dumpborder): Only do border stuff if x-no-window-manager non nil.
14210 Also check if there is a tracking rectangle.
14211 (XTupdate_begin): If there is a mouse tracking rectangle, erase
14212 it.
14213 * keyboard.c (read_key_sequence): Return -2 for symbols.
14214 (command_loop_1): DoDsp when 'redraw-screen arrives as input.
14215 For mouse events, call Fexecute_mouse_event with
14216 read_key_sequence_cmd instead of Vmouse_event.
14217
dff28924 142181989-12-08 Joseph Arceneaux (jla@spiff)
615d0182 14219
da1d68b2 14220 * process.c (create_process): For not USG, properly set the
615d0182
DL
14221 process group.
14222
dff28924 142231989-12-07 Joseph Arceneaux (jla@spiff)
615d0182 14224
da1d68b2 14225 * term.c (topos): Under X Windows, abort if topos_hook not
615d0182
DL
14226 correct. Temporary.
14227
14228 * xfns.c (Fx_horizontal_line): New subr.
14229
dff28924 142301989-12-05 Joseph Arceneaux (jla@spiff)
615d0182
DL
14231
14232 * keyboard.c (Fexecute_mouse_event): Don't set Vmouse_window here
14233 for X11.
14234
14235 * xterm.c (construct_mouse_event): Vx_mouse_grabbed now indicates
14236 which keys are depressed.
14237 (construct_mouse_event): Set Vmouse_window here.
14238
dff28924 142391989-12-04 Joseph Arceneaux (jla@spiff)
615d0182
DL
14240
14241 * screen.c (coordinates_in_window): New function.
da1d68b2 14242 (Fcoordinates_in_window_p): Rewritten to use above.
615d0182
DL
14243
14244 * dispextern.h: New element bufp for display_line structure when
14245 using X windows.
14246 * xdisp.c (redisplay_window): Set this to the position in the
14247 buffer of the first char in this display line.
14248 * dispnew.c (get_display_line): Set this to -1 here.
14249
dff28924 142501989-12-03 Joseph Arceneaux (jla@spiff)
615d0182 14251
88c71720 14252 * alloc.c: Upped NSTATICS from 200 to 256.
615d0182 14253
da1d68b2 14254 * xterm.c (XTread_socket): Report MotionNotify events only if
615d0182
DL
14255 mouse has changed character position. Call x_read_mouse_position.
14256 Set Vmouse_event here.
14257 * xfns.c (x_read_mouse_position): Set new global variables
14258 x_mouse_x and x_mouse_y.
14259
da1d68b2 14260 * keyboard.c: Vignore_mouse_events: New variable.
615d0182
DL
14261
14262 * syntax.c (Fscan_sexps): Doc change.
14263
14264 * lread.c (Fread_char): Return only chars. If new variable
14265 Vignore_mouse_events non nil, execute any mouse events which
14266 appear.
14267
dff28924 142681989-12-01 Joseph Arceneaux (jla@spiff)
615d0182
DL
14269
14270 * xfns.c (Fx_track_pointer): Draw half-sized rectangles for '\n'.
14271 (x_rectangle): Draw half-size if negative argument.
14272
da1d68b2 14273 * xterm.c (XTread_socket): Abort if garbage collecting when doing
615d0182
DL
14274 mouse events.
14275
14276 * ymakefile: #define FLOATSUP if LISP_FLOAT_TYPE defined.
14277
14278 * emacs.c (main): If BSD, set pgrp to pid.
14279
dff28924 142801989-11-30 Joseph Arceneaux (jla@spiff)
615d0182
DL
14281
14282 * callint.c (Fcall_interactively): For case 'e', set varies[i] to
14283 avoid entering in the command history.
14284
14285 * xterm.c: Removed the function x_indicate_pointer_char.
14286 (XTread_socket): When leaving window, erase mouse tracking box if
14287 it exists.
14288 * xfns.c (Fx_track_pointer): New function, does what
14289 x_indicate_pointer_char used to.
14290 (x_read_mouse_position): Subtract internal_border_width.
14291
14292 * screen.c: No rubber-banding function for X11.
14293
14294 * window.c (Fmove_to_window_line): Document string fix.
14295
dff28924 142961989-11-29 Joseph Arceneaux (jla@spiff)
615d0182 14297
da1d68b2 14298 * lread.c (Fread_char): Return a Lisp_Object (directly from
615d0182
DL
14299 get_char).
14300
14301 * keyboard.c:
14302 * xterm.c: Function keys now arrive as cons cells.
14303
dff28924 143041989-11-27 Joseph Arceneaux (jla@spiff)
615d0182
DL
14305
14306 * keyboard.c (read_key_sequence): Handle Lisp_Symbols on input
14307 (function keys). Also, handle these and mouse events with
14308 prefixes (by ignoring the prefixes for now).
14309
88c71720 14310 * xfns.c: New variable Vx_mouse_grabbed.
615d0182
DL
14311 * xterm.c (construct_mouse_event): Use it.
14312 (XTread_socket): Return Lisp_Symbol for function key.
14313
14314 * buffer.c (reset_buffer_local_variables): Set function_key_map to
14315 Qnil.
14316
dff28924 143171989-11-24 Joseph Arceneaux (jla@spiff)
615d0182
DL
14318
14319 * buffer.h: Per-buffer function key maps.
14320
14321 * keyboard.c (read_avail_input): Convert chars to Lisp_Objects in
14322 case of stdin.
14323
dff28924 143241989-11-22 Joseph Arceneaux (jla@spiff)
615d0182
DL
14325
14326 * keyboard.c (read_key_sequence): Check type of object returned
14327 from get_char. Handle mouse events (set Vmouse_event) and
14328 function keys.
14329 (get_char_menu_prompt): Return a Lisp_Object.
14330 (Fexecute_mouse_event): No longer set Vmouse_event.
14331 Vmouse_window set here.
14332
14333 * xterm.c (XTread_socket): KeyPress events now return
14334 Lisp_Objects, as do ButtonPress events.
14335 (construct_mouse_event): New function.
14336 (encode_mouse_button): New function.
14337
dff28924 143381989-11-21 Joseph Arceneaux (jla@spiff)
615d0182
DL
14339
14340 * keyboard.c (kbd_buffer_store_char, kbd_buffer_get_char):
14341 Store and get Lisp_Objects.
14342 (get_char): Use those Lisp_Objects.
14343
14344 * fileio.c (Fread_filename_internal): If exactly complete, but
14345 string was modified, return string.
14346
14347 * minibuf.c (temp_minibuf_message): Pass correct arguments to Fsit_for.
14348
dff28924 143491989-11-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14350
14351 * s-386-ix.h: New file.
14352
dff28924 143531989-11-17 Joseph Arceneaux (jla@spiff)
615d0182
DL
14354
14355 * xterm.c (dump_rectangle): Flush the X queue.
14356
dff28924 143571989-11-16 Joseph Arceneaux (jla@spiff)
615d0182
DL
14358
14359 * xmenu.c (xmenu_show): Use ButtonReleaseMask instead of
14360 ButtonRelease.
14361
14362 * fileio.c (Fmake_directory): New subr.
14363
dff28924 143641989-11-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14365
14366 * config.h-dist (C_SWITCH_SITE, LD_SWITCH_SITE): Mention these.
14367 (HAVE_X11): Renamed from X11 and defined by default.
10d1d0af 14368 It should have no effect when not using X.
615d0182 14369
dff28924 143701989-11-14 Joseph Arceneaux (jla@spiff)
615d0182 14371
da1d68b2 14372 * xfns.c (Fx_get_selection, x_selection_arrival): Use &event
615d0182
DL
14373 instead of event.
14374 (x_selection_arrival): For incremental selections, loop on
14375 XGetWindowProperty if one is not enough.
14376
dff28924 143771989-11-13 Joseph Arceneaux (jla@spiff)
615d0182
DL
14378
14379 * ymakefile: Just link if ../oldXMenu/libXMenu11.a already exists.
14380
dff28924 143811989-11-09 Joseph Arceneaux (jla@spiff)
615d0182
DL
14382
14383 * m/m-sparc.h: If __GNUC__ use "-O", else "-O2"
14384
dff28924 143851989-11-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14386
14387 * search.c (Fstore_match_data): A marker pointing nowhere, treat as 0.
14388
dff28924 143891989-11-08 Joseph Arceneaux (jla@spiff)
615d0182 14390
da1d68b2 14391 * search.c (Fmatch_data): Fixed typo.
615d0182
DL
14392
14393 * insdel.c (make_gap): Use BUFFER_REALLOC instead of realloc.
14394 * buffer.c (Fget_buffer_create): Use new define BUFFER_ALLOC in
14395 place of malloc, and set b->data.
14396 (Fkill_buffer): Use BUFFER_FREE on b->data, rather than malloc on
14397 b->p1 + 1.
14398 * buffer.h: New element data in buffer_text structure.
14399 New define for it, bf_data.
14400
dff28924 144011989-11-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14402
14403 * marker.c (Fset_marker): Don't force POS into visible range.
14404 * window.c (set_marker_restricted): New function does what
14405 Fset_marker did. All calls in this file now use the new function.
14406
dff28924 144071989-11-07 Joseph Arceneaux (jla@spiff)
615d0182
DL
14408
14409 * buffer.h: Defines for allocating buffer variables.
14410
14411 * ralloc.c: Completely rewritten.
14412
14413 * alloc.c (xmalloc, xrealloc): Return 0 immediately for requests
14414 of 0 size.
14415
dff28924 144161989-11-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14417
14418 * search.c (Flooking_at, Fstring_match, search_buffer):
14419 Record in search_regs_from_string whether matching against a string.
14420 (Fmatch_data): Save data as integers if from a string.
14421
14422 * s-umips.h: Now include either s-usg5-2-2.h or s-bsd4-3.h
14423 and then override as needed.
14424 * m-mips.h: System dependence deleted.
14425 LD_SWITCH_MACHINE remains w/ options needed on all systems.
14426 * m-pmax.h: A little of that (LIBS_DEBUG) moved here.
14427 No need to undef LIBS_MACHINE.
14428
14429 * fns.c (Fload_average): FIXUP_KERNEL_SYMBOL_ADDR is now general hook.
14430 * s-umips.h: Define it.
14431
14432 * sysdep.c: Handle BROKEN_FIONREAD.
14433
dff28924 144341989-11-03 Joseph Arceneaux (jla@spiff)
615d0182
DL
14435
14436 * config.h-dist: Mention LISP_FLOAT_TYPE, GNU_MALLOC, and REL_ALLOC.
14437
14438 * s/s-umips.h: New file.
14439
dff28924 144401989-11-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14441
14442 * process.c (Fopen_network_stream): Handle EINTR in connect.
14443 Describe errno in err msg if connect fails.
14444
dff28924 144451989-11-02 Joseph Arceneaux (jla@spiff)
615d0182
DL
14446
14447 * vm-limit.c: New file.
14448 * ralloc.c: New file.
14449 * ymakefile: Take vm-limit.o into account.
14450
dff28924 144511989-11-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14452
14453 * alloc.c (staticvec): Make this a simple vector of pointers
14454 rather than an alias for a vector of chars.
14455
dff28924 144561989-11-01 Joseph Arceneaux (jla@spiff)
615d0182
DL
14457
14458 * window.c: Moved some functions (save_window_save,
14459 replace_window, unshow_buffer) around.
14460 * search.c: Moved function place.
14461 * lread.c: Moved function read_escape.
14462 * unexec.c: Declarations for make_hdr, copy_text_and_data,
14463 copy_sym. Declare mark_x as static void.
da1d68b2 14464 * dispextern.h: Removed declaration of new_display_line.
615d0182
DL
14465
14466 * emacs.c: Do malloc_init if GNU_MALLOC.
da1d68b2 14467 * gmalloc.c (malloc_init): New function.
615d0182 14468
da1d68b2
JB
14469 * xfns.c (x_rectangle, Fx_draw_rectangle, Fx_erase_rectangle)
14470 (outline_region, Fx_countour_region, Fx_uncontour_region): New
615d0182
DL
14471 subroutines for drawing rectangles and things.
14472 (Fx_point_coordinates): New subr.
14473
dff28924 144741989-10-31 Joseph Arceneaux (jla@spiff)
615d0182 14475
da1d68b2 14476 * All .c and .h files: New copyright header.
615d0182 14477
dff28924 144781989-10-30 Joseph Arceneaux (jla@spiff)
615d0182
DL
14479
14480 * gmalloc.c: New GNU malloc.
14481
14482 * emacs.c (main, Fdump_emacs): No malloc init if GNU_MALLOC.
14483
14484 * ymakefile: Check if GNU_MALLOC defined.
14485
dff28924 144861989-10-27 Joseph Arceneaux (jla@spiff)
615d0182
DL
14487
14488 * xfns.c (Fx_pointer_char): New subr.
14489 * xterm.c (x_indicate_pointer): New procedure.
14490
14491 * alloc.c (Fmake_vector_from_list, make_vector_from_list): New subrs.
14492
dff28924 144931989-10-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14494
14495 * xterm.c (x_term_init):
14496 Negate arg to fcntl F_SETOWN if F_SETOWN_SOCK_NEG.
14497 * keyboard.c (Fset_input_mode) [NO_SOCK_SIGIO]:
14498 No interrupt input if using a socket.
14499 * m-sequent.h: Define NO_SOCK_SIGIO, F_SETOWN_SOCK_NEG, MAIL_USE_FLOCK.
14500
dff28924 145011989-10-26 Joseph Arceneaux (jla@spiff)
615d0182
DL
14502
14503 * xterm.c (x_handle_error_gracefully): Make sure to completely
14504 release input before returning, using:
14505 * xterm.h New macro TOTALLY_UNBLOCK_INPUT.
14506
14507 * xmenu.c (xmenu_quit): No longer use this error_handler; use
14508 default one.
14509
dff28924 145101989-10-25 Joseph Arceneaux (jla@spiff)
615d0182
DL
14511
14512 * config.h-dist: Comment fix.
14513
dff28924 145141989-10-24 Joseph Arceneaux (jla@spiff)
615d0182
DL
14515
14516 * xfns.c (Fx_draw_lines, translate_vectors): New functions.
14517
dff28924 145181989-10-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14519
14520 * search.c (search_buffer): Always find null string.
14521
14522 * window.c (window_loop): For UNSHOW_BUFFER, don't Fset_buffer
14523 unless window is the selected one.
14524
dff28924 145251989-10-20 Joseph Arceneaux (jla@spiff)
615d0182
DL
14526
14527 * xdisp.c (display_minibuf_message): Choose minibuf screen first
14528 of all. Return if not visible.
14529
dff28924 145301989-10-19 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
14531
14532 * xterm.c (x_handle_error_gracefully): New procedure to handle
14533 non-fatal X errors.
14534 (x_error_handler): Use it.
14535 (acceptable_x_error_p): New macro.
14536
14537 * xfns.c (Fx_own_selection): Use second parameter SCREEN.
14538
da1d68b2 14539 * xdisp.c (message, message1): No longer displays messages
dff28924 14540 when using X but not yet mapped.
615d0182 14541
dff28924 145421989-10-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14543
14544 * m-pyramid.h (NO_ARG_ARRAY): Define if using GCC.
14545
dff28924 145461989-10-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14547
14548 * vmsfns.c (process_command_input): Call clear_waiting_for_input.
14549
dff28924 145501989-10-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14551
14552 * syntax.c (scan_words): If words_include_escapes not 0,
14553 treat Sescape and Scharquote like Sword.
14554 (syms_of_syntax): Define Lisp variable.
14555
14556 * process.c (wait_reading_process_input): Get rid of kbd_count.
14557 Use detect_input_pending.
14558 * sysdep.c (select, read_input_waiting): Likewise.
14559 (read_input_waiting): Don't read directly into kbd_buffer;
14560 use kbd_buffer_store_char.
14561 * keyboard.c: Don't define kbd_count.
14562
14563 * keyboard.c (read_key_sequence): Reject the prefix char generated
14564 for a Meta char, if it finds a non-prefix definition.
14565
dff28924 145661989-10-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14567
14568 * process.c (wait_reading_process_input): READ_KBD==2 means
14569 wait until have mouse input.
14570 * xfns.c (Fx_get_mouse_event): Use that.
14571 * xterm.c (mouse_event_pending_p): New subroutine.
14572
dff28924 145731989-10-13 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 14574
b344d29d 14575 * xfns.c (x_selection_arrival, x_send_incremental)
615d0182
DL
14576 (x_answer_selection_request): New procedures for incremental
14577 selection transfer.
14578
dff28924 145791989-10-12 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
14580
14581 * lread.c (complete_filename_p): New function which replaces
b344d29d 14582 absolute_filename_p. This one doesn't consider "~" valid.
615d0182 14583
dff28924 145841989-10-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14585
14586 * buffer.c: Comment fix.
14587
dff28924 145881989-10-11 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 14589
da1d68b2 14590 * xfns.c (Fx_open_connection) New X atoms Xatom_incremental and
615d0182
DL
14591 Xatom_multiple.
14592
14593 * xterm.h: New macros MAX_SELECTION and SELECTION_LENGTH.
14594
da1d68b2 14595 * process.c (child_sig): Check pid <= 0 in case WNOHANG not defined.
615d0182 14596
dff28924 145971989-10-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14598
14599 * termcap.c (tgetent, gobble_line): Always store null at end of bfr.
14600 Allocate one extra byte at end to ensure space.
14601 Clean up order of arithmetic when updating ptrs into buffer
14602 after xrealloc.
14603
dff28924 146041989-10-10 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
14605
14606 * xfns.c (Fx_open_connection): Make all X Atoms here.
14607
da1d68b2 14608 * xterm.c (x_iconify_screen): Cleaned up this code.
615d0182
DL
14609 (x_term_init): Removed warpmouseondeiconify stuff.
14610
dff28924 146111989-10-09 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
14612
14613 * xdisp.c (DoDsp): Make sure to call unhold_window_change after
dff28924 14614 before all returns.
615d0182
DL
14615
14616 * minibuf.c (read_minibuf): Changed set_mouse_position to
14617 Fset_mouse_position.
14618
14619 * xterm.c (XTread_socket): dumprectangle (whole screen) instead of
14620 DoDsp in ConfigureNotify event.
14621 (x_wm_set_size_hint): New calculations for size_hints.
14622
14623 * screen.c (Fset_mouse_position): No more function
14624 set_mouse_position; use x_set_mouse_position directly.
14625
14626 * xfns.c (x_set_cursor_color): Really decode Vx_cusor_fore_pixel
14627 if set. Define new cursor before freeing old. This may eliminate
14628 a server bug on the Sony.
14629 Also check for invisible cursors.
14630 (x_set_mouse_color): Check for invisible pointers.
14631 (x_resize_scrollbars): BLOCK_INPUT whilst doing operations.
14632 (adjust_scrollbars): Likewise.
14633
dff28924 146341989-10-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14635
14636 * m/m-hp9000s800.h (XUNMARK): Delete definition.
14637 (S_IFLNK): Do not undef it.
14638
dff28924 146391989-10-03 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
14640
14641 * dispnew.c (get_display_line): If screen not visible, abort.
14642
dff28924 146431989-10-02 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
14644
14645 * xterm.c (x_make_screen_visible): Set s->visible, unset
14646 s->iconified for HAVE_X11.
14647
dff28924 146481989-09-29 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
14649
14650 * xterm.c (XTread_socket): Check screen s before proceeding for
14651 MapNotify event.
14652
14653 * xterm.c: No longer sets the variable mouse_down_timestamp.
da1d68b2
JB
14654 * xfns.c (Fx_get_mouse_event): mouse_timestamp (formerly
14655 mouse_down_timestamp) set here. Also, mask out upper 9
14656 bits before doing XSET.
615d0182 14657
dff28924 146581989-09-28 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
14659
14660 * xfns.c (Fx_geometry): Kludge for the case of position `-0'.
14661 (Fx_get_mouse_event): Also return the time stamp as last list elt.
b344d29d 14662 (Fx_color_display_p, Fx_defined_color, x_decode_color)
615d0182
DL
14663 (defined_color): Eliminate screen argument.
14664 (Fx_create_screen): No more ColorMap component to display.x.
14665 * xterm.h: Likewise.
14666
dff28924 146671989-09-27 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 14668
da1d68b2
JB
14669 * xfns.c (Fx_own_selection, Fx_get_selection, x_disown_selection):
14670 New funcs, which use new variables Vx_selection_value,
14671 x_begin_selection_own, mouse_down_timestamp, requestor_time,
14672 requestor_window, property_name, and x_begin_selection_own.
615d0182
DL
14673
14674 * xterm.c (XTread_socket): Only do stuff if s for FocusOut under X11.
14675 SelectionClear:
14676 SelectionRequest:
da1d68b2 14677 SelectionNotify: New events to handle the selection inter-client
615d0182
DL
14678 communication mechanism.
14679 ButtonPress: Set mouse_down_timestamp.
14680
dff28924 146811989-09-26 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
14682
14683 * xfns.c: New variable Vx_cursor_fore_pixel.
14684
dff28924 146851989-09-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14686
14687 * lread.c (openp): Don't ! the result of `access'.
14688
dff28924 146891989-09-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14690
14691 * fileio.c (Fread_file_name_internal): Try to work properly
14692 if dirs are specified using environment vars. Preserve use of vars.
14693
dff28924 146941989-09-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14695
14696 * fileio.c: Comment fix.
14697
dff28924 146981989-09-18 Joseph Arceneaux (jla@spiff)
615d0182
DL
14699
14700 * xfns.c (Fx_get_cut_buffer): XFree the data returned by
14701 XFetchBytes.
14702
dff28924 147031989-09-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14704
14705 * fileio.c (Fwrite_region): Reinstall #if 0 around fstat.
14706
dff28924 147071989-09-12 Joseph Arceneaux (jla@spiff)
615d0182
DL
14708
14709 * xfns.c (defined_color): New function to test if a color is
14710 currently defined.
14711 (x_decode_color): Use defined_color.
14712 (Fx_defined_color): New subr.
14713 (select_visual): Select the appropriate X11 Visual.
14714 (Fx_open_connection): Use select_visual. screen_visual now
14715 global and used when making emacs windows.
14716 (Fx_color_display_p): New subr.
14717
dff28924 147181989-09-11 Joseph Arceneaux (jla@spiff)
615d0182 14719
da1d68b2 14720 * fileio.c (Fwrite_region): Fixed typo.
615d0182 14721
da1d68b2 14722 * keyboard.c (Fdiscard_input): Fixed typo.
615d0182 14723
da1d68b2 14724 * window.c (Fnext_window): Fixed typos.
615d0182
DL
14725
14726 * alloc.c (xmalloc, xrealloc): hold_window_changes whilst doing
14727 the associated operations.
14728
b344d29d 14729 * dispnew.c (init_display, Fsleep_for, Fsit_for):
dff28924 14730 * process.c (Faccept_process_output):
b344d29d 14731 * keyboard.c ({clear,set}_waiting_for_input)
dff28924 14732 (quit_throw_to_get_char, get_char):
615d0182 14733 * xdisp.c (DoDsp, message, message1): Undid changes of Aug. 23
b344d29d 14734 (see below); accept window changes most of the time.
615d0182 14735
dff28924 147361989-09-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14737
14738 * keyboard.c: Eliminate kbd_count, and use two pointers,
14739 kbd_fetch_ptr and kbd_store_ptr. Assume buffer is empty when
14740 they are equal. This should eliminate timing error.
14741 (kbd_buffer_store_char): Update kbd_store_ptr when storing.
14742 Don't ever fill the entire buffer.
14743 (kbd_buffer_get_char): Update kbd_fetch_ptr when fetching.
14744 (stuff_buffered_input): Likewise.
14745 (get_input_pending): Compare the two pointers.
14746
14747 * fileio.c (Fwrite_region): Reenable using fstat rather than stat
14748 to get the modtime of the file just written, except on VMS and APOLLO.
14749
dff28924 147501989-09-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14751
14752 * emacs.c, doc.c, filelock.c: Move Emacs header includes after
14753 system header includes, and #undef NULL in between.
14754
dff28924 147551989-08-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14756
14757 * process.c [SYSV_PTYS]: If `titan', include some other files.
14758
dff28924 147591989-08-29 Joseph Arceneaux (jla@spiff)
615d0182
DL
14760
14761 * fileio.c: read-file-name replaced with new version, formerly
14762 called new-read-file-name.
14763
dff28924 147641989-08-26 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
615d0182
DL
14765
14766 * window.c (Fscroll_other_window): Use save-excursion (in effect)
14767 to save and restore current buffer and point.
14768 (window_scroll): If selected window's buffer isn't current,
14769 make it current, using save-excursion to go back.
14770
dff28924 147711989-08-24 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
615d0182 14772
88c71720 14773 Use two variables to convey reason for synch process death,
615d0182
DL
14774 to avoid consing in signal handler.
14775 They are synch_process_death and synch_process_retcode.
14776 * callproc.c (Fcall_process): Use both variables.
14777 * process.c (child_sig): Set both variables.
14778
dff28924 147791989-08-24 Joseph Arceneaux (jla@spiff)
615d0182
DL
14780
14781 * xterm.c (x_wm_set_size_hint): Use new ICCCM values for size_hints.
14782
dff28924 147831989-08-24 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
615d0182
DL
14784
14785 * buffer.c: Doc fix.
14786
dff28924 147871989-08-24 Joseph Arceneaux (jla@spiff)
615d0182
DL
14788
14789 * xfns.c (Fx_create_screen): X11 part. Set height and width to 0
14790 before calling change_screen_size.
14791
14792 * buffer.c (kill-all-local-variables): Changed doc string.
14793
dff28924 147941989-08-23 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
615d0182
DL
14795
14796 * dispnew.c (init_display): Call hold_window_change.
14797 (Fsleep_for, Fsit_for): Temporarily unhold, while waiting.
14798 * process.c (Faccept_process_output): Likewise.
14799 * keyboard.c ({clear,set}_waiting_for_input): Temporarily unhold.
14800 (quit_throw_to_get_char, get_char): Rehold.
14801 * xdisp.c (DoDsp, message, message1):
14802 Unhold and rehold momentarily before any real work.
14803
14804 * Makefile (CPP): Use $(CC).
14805
dff28924 148061989-08-22 Joseph Arceneaux (jla@spiff)
615d0182
DL
14807
14808 * xfns.c (x_set_mouse_color): Use new variables Vx_pointer_mask,
14809 Vx_pointer_shape.
14810
dff28924 148111989-08-21 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
615d0182
DL
14812
14813 * alloc.c (malloc_warning): Do nothing if ignore_warnings.
14814 (init_alloc_once): Set ignore_warnings while initializing allocation.
14815
14816 * buffer.c: Doc fix.
14817
dff28924 148181989-08-21 Joseph Arceneaux (jla@spiff)
615d0182
DL
14819
14820 * xterm.c (x_calc_absolute_position): New function to calculate
14821 positive screen position.
14822 (x_set_position): Use it.
14823 (x_reset_cursor): No longer exists.
14824
14825 * xfns.c (x_set_mouse_color): Reset the cursor even if there's no
14826 X window.
14827 (x_figure_window_size): Use x_calc_absolute_position.
14828 (x_set_mouse_color): Rewrote this function. Always set cursor and
14829 its color. If the window exists, then attach the cursor to it.
14830 No longer uses x_reset_cursor.
b344d29d
JB
14831 (x_create_window, x_set_background, x_set_foreground):
14832 Use x_set_mouse_color instead of x_reset_cursor.
615d0182 14833
dff28924 148341989-08-18 Richard Stallman (rms@hobbes.ai.mit.edu)
615d0182
DL
14835
14836 * vmsfns.c: Define PRV$V_... syms if prvdef.h does not.
14837
dff28924 148381989-08-18 Joseph Arceneaux (jla@spiff)
615d0182
DL
14839
14840 * xfns.c (Fx_geometry): New subr.
14841 (x_figure_window_size): Don't worry about "geometry" here anymore;
14842 now done in x-win.el.
14843 (x_icon): Look in parms for iconic-startup rather than in variable.
14844
dff28924 148451989-08-16 Joseph Arceneaux (jla@spiff)
615d0182
DL
14846
14847 * xfns.c (x_set_*_scrollbar): Don't destroy a scrollbar if it
14848 doesn't exist. Also set scrollbar size only if actually creating
14849 one.
14850 (x_set_name): Don't do anything if the X window doesn't exist.
14851 Set the icon name as well.
14852 (x_window): Set the class hints for the window.
14853
dff28924 148541989-08-16 Richard Stallman (rms@hobbes.ai.mit.edu)
615d0182
DL
14855
14856 * lread.c (Fload): Fix unterminated comment.
14857
14858 * scroll.c (scrolling_max_lines_saved): Replace fixed threshold of 20
14859 with 1/4 of average length of lines.
14860
dff28924 148611989-08-13 Joseph Arceneaux (jla@spiff)
615d0182
DL
14862
14863 * ymakefile: Do ${make} for oldXMenu.
14864
dff28924 148651989-08-13 Richard Stallman (rms@hobbes.ai.mit.edu)
615d0182
DL
14866
14867 * eval.c: Doc fix.
14868
dff28924 148691989-08-12 Richard Stallman (rms@hobbes.ai.mit.edu)
615d0182
DL
14870
14871 * emacs.c (main): Check for failure opening -t device.
14872 Fatal error if terminal isn't a real terminal.
14873
14874 * window.c (Fscroll_other_window): Let Vother_window_scroll_buffer
14875 specify a buffer to scroll.
14876
dff28924 148771989-08-11 Richard Stallman (rms@hobbes.ai.mit.edu)
615d0182
DL
14878
14879 * dispnew.c: Handle BROKEN_FIONREAD as in other files.
14880
dff28924 148811989-08-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 14882
8350f087 14883 * fileio.c (barf_or_query_if_file_exists): When signaling,
615d0182
DL
14884 provide the expected args for a file-error.
14885
dff28924 148861989-08-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14887
14888 * process.c: Let NEED_BSDTTY control include of bsdtty.h.
14889
14890 * process.c [BSD or STRIDE]: If ioctl.h fails to define O_NDELAY,
14891 and we need it, try fcntl.h.
14892
14893 * s-bsd*.h, s-rtu.h, s-umax.h, s-unipl*.h: Define HAVE_UNION_WAIT.
14894 * m-stride.h: Likewise.
14895 * process.c: Decide which type to use with `wait'
14896 according to HAVE_UNION_WAIT. If WAITTYPE already defined,
14897 assume everything all set up for this.
14898
14899 * m-hp9000s300.h: Unless NOT_C_CODE or NO_SHORTNAMES,
14900 define WAITTYPE and WRETCODE, and include sys/wait.h.
14901
dff28924 149021989-08-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14903
14904 * callproc.c (child_setup): Get rid of junk in #if 0.
14905
dff28924 149061989-08-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14907
14908 * abbrev.c (Fdefine_abbrev): Allow nil spec'd as expansion.
14909 (Fexpand_abbrev): Eliminate abbrev length limit; use alloca.
14910 Eliminate redundant tests, always true.
14911 Record positions of both start and end of abbrev.
14912 Handle whitespace following the abbrev, before point.
14913
14914 * callproc.c (Fcall_process_region): Use unwind-protect to delete
14915 temp file.
14916
14917 * lread.c (load_unwind): Free the pointer-word malloc'd in Fload.
14918
dff28924 149191989-08-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14920
14921 * emacs.c (Fdump_emacs): Doc fix.
14922
dff28924 149231989-08-02 Joseph Arceneaux (jla@spiff)
615d0182
DL
14924
14925 * xfns.c: Reorganized several functions to be in same order as the
14926 enum list.
14927 (x_set_border_color): For X11, don't set pix to -1 for
14928 gray values.
14929 (Fx_create_screen): Simplified this function even more.
14930
dff28924 149311989-07-31 Joseph Arceneaux (jla@spiff)
615d0182
DL
14932
14933 * keymap.c: New subrs Fuse_local_mouse_map, Fcurrent_local_mouse_map.
14934
b344d29d
JB
14935 * xfns.c (x_set_mouse_color, x_set_cur): No need to redraw display
14936 after doing these.
615d0182
DL
14937
14938 (Fx_get_mouse_event): Accept motion events.
14939 (x11_encode_mouse_button): Encoding a la X11, except for one
14940 kludge. This is used only for motion events.
14941
10d1d0af 14942 * xterm.c (XTread_socket): Handle motion events.
dff28924
SS
14943
149441989-07-26 Joseph Arceneaux (jla@spiff)
615d0182
DL
14945
14946 * xfns.c (Fx_create_screen): I couldn't take it any more, the
14947 ugliness of this routine offended me too deeply. It is now
14948 completely rewritten for X11 and uses subroutines:
b344d29d
JB
14949 (x_figure_window_size, x_create_window, x_icon, x_make_gc)
14950 (Fx_draw_rectangle, Fx_erase_rectangle): New subrs.
615d0182
DL
14951
14952 * m/m-intel386.h: Changes in LOAD_AVE_TYPE, LOAD_AVE_CVT, and
14953 FSCALE to make loadst work correctly.
14954
dff28924 149551989-07-24 Joseph Arceneaux (jla@spiff)
615d0182
DL
14956
14957 * xfns.c (Fmodify_screen_parameters): Check s->output_method
14958 before looping through alist.
14959
14960 (Fx_create_screen): Call x_default_parameter for font.
da1d68b2 14961 Don't add the scrollbar widths when making the main window: this
615d0182
DL
14962 is done when the scrollbar is actually made.
14963
14964 (x_set_vertical_scrollbar): Set v_scrollbar_width here instead of
14965 in install_vertical_scrollbar. Also, pass that function macros
14966 PIXEL_WIDTH, PIXEL_HEIGHT as args.
14967
14968 (x_set_horizontal_scrollbar): Likewise.
14969
da1d68b2 14970 * xterm.c (x_set_window_size): Don't call the things called
615d0182
DL
14971 anyway upon the ConfigureNotify event.
14972 (x_set_offset): Use the screen-size lisp variables for these
14973 calculations.
14974
14975 * xterm.h: Added the screen parameter declarations from xfns.c for
14976 X11.
14977
dff28924 149781989-07-21 Joseph Arceneaux (jla@spiff)
615d0182
DL
14979
14980 * sysdep.c: Don't include sioctl.h on mips.
14981
da1d68b2 14982 * buffer.c (Flist_buffers): Pass prefix as arg.
615d0182
DL
14983
14984 * editfns.c (Finsert_char): Insert at most 256 chars at a whack.
14985
14986 * xterm.c (x_draw_box): Moved cursor box right by one pixel.
14987
dff28924 149881989-07-20 Joseph Arceneaux (jla@spiff)
615d0182
DL
14989
14990 * xfns.c: New variable x_screen_visuals, set if Fx_open_display,
14991 to be used in screen-color-p.
14992
14993 * process.c (create_process): Don't call setpgrp_of_tty here.
14994 Also, do setpgrp for USG regardless of HAVE_PTYS.
14995
14996 * callproc.c (child_setup): Ignore argument set_pgrp and always do
14997 setpgrp_of_tty.
14998 (Fcall_process): Don't call setpgrp_of_tty here.
14999
15000 * keyboard.c (command_loop_1): Make sure Vprefix_arg is NULL
15001 before finalizing_kbd_macro_chars;
15002
dff28924 150031989-07-19 Joseph Arceneaux (jla@spiff)
615d0182
DL
15004
15005 * xfns.c (Fx_rebind_key): Completely rewrote this function for
15006 X11.
15007
dff28924 150081989-07-13 Joseph Arceneaux (jla@spiff)
615d0182
DL
15009
15010 * emacs.c:
15011 * process.c:
15012 * unexec.c:
15013 * m/m-ibmrt-aix.h: Changed IBMRTAIX to IBMAIX.
15014 * sysdep.c: Likewise. Also, don't define our closedir if IBMAIX.
15015 * m/m-ibmps2-aix.h: New file.
15016
dff28924 150171989-07-12 Joseph Arceneaux (jla@spiff)
615d0182
DL
15018
15019 * xdisp.c (message, message1): If using x, but haven't mapped the
15020 window yet, use noninteractive output.
15021
15022 * dispnew.c (Fredraw_display): Don't redraw a screen which is not
15023 visible.
15024
15025 * xterm.c (x_set_window_size): Don't DoDsp if screen isn't visible.
15026
15027 * xfns.c (x_set_mouse_color)
15028 (x_set_border_color)
15029 (x_set_cursor_color)
15030 (x_set_background_color)
15031 (x_set_foreground_color): Don't redraw when screen isn't visible.
15032
dff28924 150331989-07-11 Joseph Arceneaux (jla@gluteus)
615d0182 15034
da1d68b2 15035 * xterm.c (x_term_init, XTread_socket): Use ConnectionNumber for
615d0182
DL
15036 both X10 and X11. This is #defined for X10.
15037
15038 * screen.c (Fset_screen_width, Fset_screen_height): These now take
15039 a SCREEN argument.
15040
dff28924 150411989-07-10 Joseph Arceneaux (jla@gluteus)
615d0182
DL
15042
15043 * xterm.c (x_set_window_size): Call x_wm_set_size_hint.
15044 (x_new_font): Don't call x_wm_set_size_hint.
15045
15046 * xfns.c (x_set_internal_border_width): Don't call
15047 x_set_resize_hint, and call x_set_window_size after BLOCK_INPUT.
15048
15049 * screen.c, dispnew.c (Fset_screen_width, Fset_screen_height):
15050 These functions have moved to screen.c.
15051
dff28924 150521989-07-07 Joseph Arceneaux (jla@sugar-bombs.ai.mit.edu)
615d0182
DL
15053
15054 * eval.c (Ffuncall): Handle 6 arguments. Also, print a nice error
15055 message if there are more than 6 args.
15056
da1d68b2 15057 * fns.c (Fyes-or-no-p):
b344d29d
JB
15058 * minibuf.c (read_minibuf_unwind, Fread_minibuffer)
15059 (Fread_no_blanks_input, Fcompleting_read): Extra arg to read_minibuf.
615d0182
DL
15060
15061 * callint.c (Fcall_interactively):
15062 * keyboard.c (Fexecute_extended_command):
b344d29d 15063 * minibuf.c (Fread_command, Fread_function, Fread_variable)
615d0182
DL
15064 (Fread_buffer): Extra arg to Fcompleting_read.
15065
dff28924 150661989-07-05 Joseph Arceneaux (jla@spiff)
615d0182
DL
15067
15068 * minibuf.c (read_minibuf): New argument back_n is number of
15069 characters to back-up point by.
15070 (Fcompleting_read): Same.
da1d68b2 15071 * fileio.c (Fnew_read_file_name): New version of Fread_file_name
615d0182
DL
15072 using the above features.
15073 (Finsert_file_contents): Check for negative file length.
15074
dff28924 150751989-07-03 Joseph Arceneaux (jla@spiff)
615d0182 15076
da1d68b2
JB
15077 * xfns.c (x_pixel_width, x_pixel_height) New functions.
15078 * screen.c (Fscreen_pixel_size): New subr.
615d0182 15079
dff28924 150801989-06-30 Joseph Arceneaux (jla@spiff)
615d0182
DL
15081
15082 * xterm.c: Use invocation_name as argument to XGetDefaults.
15083
dff28924 150841989-06-29 Joseph Arceneaux (jla@spiff)
615d0182
DL
15085
15086 * xterm.c (x_error_handler) #ifdef sony_news use XDefaultError
15087 instead of XPrintDefaultError due to weirdness in Sony library.
15088 * xterm.c: Avoid infinite raise/lower, enter/leave cycle when both
15089 auto_raise and auto_lower are set by checking times between
15090 consecutive Enter events.
15091
dff28924 150921989-06-27 Joseph Arceneaux (jla@sugar-bombs.ai.mit.edu)
615d0182 15093
da1d68b2
JB
15094 * screen.c (Fselect_screen):
15095 * window.c (Fselect_window): The previous strategy was bugging the
615d0182
DL
15096 lisp stuff, so these are now rewritten.
15097
dff28924 150981989-06-26 Joseph Arceneaux (jla@galapas.ai.mit.edu)
615d0182
DL
15099
15100 * cm.c (Wcm_init): Don't check for Wcm.cm_ds, since this has been
15101 removed.
da1d68b2 15102 (losecursor): This function now a #define in cm.h.
615d0182
DL
15103
15104 * xterm.c (x_iconify_screen): Send message to root window to do
15105 this, as per latest Inter-Client Communications Conventions. This
15106 is commented out until it's implemented by X. For now, do it with
15107 the iconic_state hint.
15108 (x_deiconify_screen): For X11, just Map the window, as per the new
15109 ICCC.
15110 (x_make_screen_visible): Only handle visible and iconified screen
b344d29d 15111 elements for X10; these variables are handled in event processing
615d0182
DL
15112 for X11.
15113 (x_make_screen_invisible): Send an UnmapNotify event to the root
10d1d0af 15114 window to apprise the window manager of the change.
615d0182
DL
15115 (XTread_socket): Catch VisibilityNotify events.
15116
dff28924 151171989-06-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15118
15119 * window.c (Fsplit_window): If horizontal, round left window size up.
15120
dff28924 151211989-06-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15122
15123 * cm.h (cmplus): Improve formatting.
15124 Use losecursor when reach end of line, if losewrap.
15125
15126 * cm.h: New fields to handle multi-line and multi-char motion,
15127 and both max and min cost for certain operations.
15128 * term.c (term_init): Init those fields.
15129
15130 * term.c (clear_end_of_line_raw): Don't clear last char of last line
15131 if autowrap.
15132
15133 * abbrev.c (Finsert_abbrev_table_description): Make 2nd arg optional.
15134
dff28924 151351989-06-23 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 15136
a12bf61e
GM
15137 * xfns.c: C routine Fscreen_color_p now lisp
15138 function x-color-screen-p in lisp/term/x-win.el.
da1d68b2 15139 (x_set_cursor_color): New method: first disallow same cursor as
615d0182
DL
15140 background, then if cursor not foreground, use it as cursor
15141 foreground.
15142
dff28924 151431989-06-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15144
15145 * lisp.h (XPNTR): Don't define if already defined.
15146
dff28924 151471989-06-22 Joseph Arceneaux (jla@cream-of-wheat.ai.mit.edu)
615d0182
DL
15148
15149 * screen.c: New subrs Ficonify_screen, Fdeiconify_screen,
15150 Fread_mouse_position, Fset_mouse_position.
15151
15152 * xterm.c: New functions x_deiconify_screen, x_iconify_screen.
15153
dff28924 151541989-06-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15155
15156 * window.c (Fsplit_window, change_window_height):
15157 Enforce minimum of 2 for window_min_width and window_min_height.
15158
dff28924 151591989-06-22 Joseph Arceneaux (jla@galapas.ai.mit.edu)
615d0182
DL
15160
15161 * dispnew.c (unhold_window_change): Don't set and unset in_display
15162 before and after calling change_screen_size.
15163
dff28924 151641989-06-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15165
15166 * buffer.c (Fkill_buffer): Ignore errors deleting auto-save file.
15167 Delete only if delete-auto-save-files.
15168
15169 * data.c (Fmake_local_variable): Don't change value if unbound.
15170
dff28924 151711989-06-20 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
15172
15173 * screen.c (Fselect_screen): Use x_set_mouse_position instead of
15174 x_enter_screen.
15175
15176 * xterm.c (x_enter_screen): Deleted, now merged with
15177 * xfns.c (x_set_mouse_position): If the position is negative, use
15178 the center screen position.
15179
15180 * data.c (swap_in_symval_forwarding): Declared tem1.
15181 (Fset): Changed variable name void to voide. Also, set it to a C
15182 true/false, rather than Qt or Qnil.
15183
dff28924 151841989-06-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15185
15186 * eval.c (Fdefvar): Operate on default value if sym is buffer-local.
15187 (Fdefconst): Likewise.
15188
88c71720 15189 Allow buffer-local variables to be void in one buffer
615d0182
DL
15190 or in the default value.
15191 * data.c (swap_in_symval_forwarding): New function.
15192 (Fboundp, Fsymbol_value): Use that.
15193 (default_value): New function.
15194 (Fdefault_value): Use that.
15195 (Fdefault_boundp): New function, uses that.
15196
dff28924 151971989-06-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15198
15199 * ymakefile: New variable OLDXMENU has filename of libXMenu.a
15200 as a target. Make temacs depend on it.
15201
dff28924 152021989-06-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15203
15204 * ymakefile [HAVE_X11, HAVE_X_MENU]: Build oldXMenu.
15205 * xmenu.c: Get XMenu.h from sibling dir.
15206
15207 * buffer.c (Fkill_buffer): Return t if buffer is killed.
15208 Delete auto-save file if any.
15209
dff28924 152101989-06-09 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 15211
da1d68b2 15212 * window.c: Initialize auto_new_screen to 0 (nil).
615d0182 15213
da1d68b2 15214 * screen.c (make_screen): Added auto_lower to the list of screen
615d0182 15215 elements initialized.
da1d68b2 15216 (make_minibuffer_screen): Likewise.
615d0182 15217
dff28924 152181989-06-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15219
15220 * window.c (Fset_window_point): Don't lose if window's buffer is
15221 not current.
15222
dff28924 152231989-06-08 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 15224
b344d29d
JB
15225 * xfns.c (Fx_open_connection): Added 9 Lisp variables
15226 defined by the screen and server.
615d0182 15227
dff28924 152281989-06-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15229
15230 * m-pmax.h: New file.
15231
dff28924 152321989-06-08 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 15233
da1d68b2 15234 * xfns.c: Removed superfluous definition of gray_bits.
615d0182 15235
dff28924 152361989-06-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15237
15238 * m-hp9000s300.h: Define NEED_BSDTTY unless NOMULTIPLEJOBS.
15239
dff28924 152401989-06-07 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
15241
15242 * emacs.c (Fkill_emacs): If under X, call
15243 Fx_close_current_connection. This has fixed the "bad file" bug.
15244 * xfns.c (Fx_close_current_connection): Added this subr which for
15245 the moment serves only to close the X-connection when killing emacs.
15246
dff28924 152471989-06-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15248
15249 * m-hp9000s800.h: Define NEED_BSDTTY here.
15250 * s-hpux.h: Not here.
15251
dff28924 152521989-06-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15253
15254 * s/s-hpux.h: Define NEED_BSDTTY.
15255
dff28924 152561989-06-06 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
15257
15258 * xterm.c (x_new_selected_screen): Make the new selected_screen
15259 and it's selected_window's screen be the same.
15260 (x_enter_screen): Calculate the middle of the screen, and warp the
15261 mouse there. Also, raise the screen before doing so.
15262
dff28924 152631989-06-05 Joseph Arceneaux (jla@cream-of-wheat.ai.mit.edu)
615d0182 15264
da1d68b2 15265 * xterm.c (x_set_window_size): If not already in DoDsp (checked
615d0182
DL
15266 with variable in_display) then DoDsp here. Handles redisplay
15267 after screen configuration.
15268 (x_error_handler): Print out stuff about the error if we're in
15269 debug mode.
15270
da1d68b2 15271 * dispnew.c (change_screen_size): No longer call DoDsp here.
615d0182 15272
dff28924 152731989-06-05 Chris Hanson (cph@kleph)
615d0182
DL
15274
15275 * syntax.c (Fmodify_syntax_entry): Change documentation string to
15276 reflect earlier change to action of `p' syntax bit.
15277
dff28924 152781989-06-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15279
15280 * lread.c (read1): Don't accept "" in middle of string.
15281
dff28924 152821989-05-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15283
15284 * search.c (Freplace_match): If \N has nothing to insert,
15285 insert nothing.
15286
dff28924 152871989-05-29 Joseph Arceneaux (jla@gracilis.ai.mit.edu)
615d0182 15288
da1d68b2 15289 * xfns.c (Fx_create_screen): If parms is nil and
615d0182
DL
15290 Vx_screen_defaults isn't, then use them.
15291 (Fdisplay_buffer): Call Fx_create_screen with Qnil.
15292
dff28924 152931989-05-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15294
15295 * syntax.c (scan_lists): Once within a word, treat Squote like Sword.
15296
dff28924 152971989-05-24 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
15298
15299 * dispnew.c (change_screen_size): DoDsp if not pretend.
15300
dff28924 153011989-05-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15302
15303 * search.c (skip_chars): Dumb error checking for \.
15304
dff28924 153051989-05-22 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
15306
15307 * screen.c (Fselect_screen): Under X, basically just warp the
15308 cursor into the desired screen. The event handler will then do
15309 the right thing.
15310 (Frestore_screen_configuration): Don't set the mouse position.
15311
da1d68b2 15312 * window.c (Fselect_window): If window's screen is not selected,
615d0182
DL
15313 call Fselecte_screen.
15314 (Fdisplay_buffer): Call Fx_create_screen with x-screen-parameters
15315 as argument instead of nil.
15316
15317 * keyboard.c (clear_waiting_for_input): Don't call
15318 x_new_selected_screen here.
15319
15320 * xterm.c (XTread_socket): Add case slots for CirculateNotify and
15321 CirculateRequest events.
15322
dff28924 153231989-05-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 15324
dff28924 15325 * doc.c (Fsubstitute_command_keys): Evaluate \\<...> keymap
615d0182
DL
15326 in proper buffer.
15327
15328 * keymap.c (Fapropos_internal): New Lisp function, old apropos
15329 but only returns a list.
15330
dff28924 153311989-05-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15332
15333 * process.c (Fopen_network_stream): Don't set kill-without-query.
15334
dff28924 153351989-05-19 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 15336
da1d68b2
JB
15337 * xterm.c (x_new_selected_screen): This now takes a struct screen
15338 pointer as parameter.
15339 (XTread_socket): Call x_new_selected_screen *before* dumpborder.
615d0182 15340
dff28924 153411989-05-16 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 15342
da1d68b2 15343 * xfns.c (x_window_to_scrollbar): If the caller's not interested
615d0182
DL
15344 in the names--passing 0 for last two parameters--just return the
15345 screen pointer.
15346
da1d68b2 15347 * xterm.c (x_enter_screen): Added this function for warping the
615d0182
DL
15348 pointer into a screen.
15349
dff28924 153501989-05-16 Chris Hanson (cph@kleph)
615d0182
DL
15351
15352 * syntax.c (scan_lists, scan_sexps_forward): Treat characters
15353 whose "prefix" bit is on as whitespace when they are encountered
15354 between expressions. When they occur within expressions they are
15355 treated according to their syntax code.
15356
dff28924 153571989-05-16 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 15358
da1d68b2 15359 * xterm.c (x_new_selected_screen): Don't call Fselect_screen.
615d0182
DL
15360 Just do everything here.
15361
15362 * window.c (Fselect_window): If the screen associated with the
15363 window is not selected, warp the mouse, cause an EnterNotify event
15364 which then causes the proper screen to become selected. This does
15365 *not* call Fselect_screen.
15366
da1d68b2 15367 * screen.c (Fselect_screen): Now this is *only* a lisp subr. It
615d0182
DL
15368 just calls Fselect_window on the selected window of the screen.
15369
dff28924 153701989-05-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15371
15372 * editfns.c (Fsubst_char_in_region): If NOUNDO, do increment tick,
15373 but maybe also increment save-tick.
15374
dff28924 153751989-05-15 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
15376
15377 * xterm.c (x_set_window_size): Only one #ifdef HAVE_X11 due to new
15378 macro in:
15379 * xterm.h: New macro XChangeWindowSize for both X10 and X11.
15380
da1d68b2 15381 * xfns.c (Fx_create_screen): Use XCreateWindow instead of
615d0182
DL
15382 XCreateSimpleWindow to directly set some extra attributes.
15383
dff28924 153841989-05-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15385
15386 * syntax.h (SYNTAX_PREFIX): New macro.
15387 * syntax.c (Fmodify_syntax_table): Handle `p'; set new flag.
15388 (describe_syntax): Describe new flag.
15389 (Fbackward_prefix_chars): Move back over such chars.
15390
15391 * lread.c (read1): Dumb errors in last change.
15392
dff28924 153931989-05-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15394
15395 * lread.c (read1): Error if EOF after `?' or in string.
15396
15397 * sysdep.c (init_sys_modes) [IBMRTAIX]: Typo; had s for sg.
15398
dff28924 153991989-05-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15400
15401 * s/s-usg5-3.h: Define HAVE_SYSVIPC?
15402
15403 * alloc.c (Fmake_byte_code): If purifying, purecopy all elements.
15404
15405 * ymakefile (LIBXMENU): Use -loldX.
15406 Find libXMenu11.a in special place.
15407
dff28924 154081989-05-12 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 15409
da1d68b2 15410 * xfns.c (Fx_create_screen): If user has specified
615d0182
DL
15411 `x-iconic-startup' then start emacs in iconic form.
15412 Look for icon position in `icon-left' and `icon-top', or use
0b381c7e 15413 window position.
615d0182 15414
da1d68b2 15415 * xterm.c (x_term_init): If server doesn't respond, use fatal
615d0182
DL
15416 instead of error. Also tell user about -d option.
15417
dff28924 154181989-05-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15419
15420 * sysdep.c (init_sys_modes, reset_sys_modes):
15421 Handle TIOCGLTC even if HAVE_TERMIO.
15422
15423 * print.c (Qprint_escape_newlines): New variable.
15424 * minibuf.c (read_minibuf): Make it t locally in minibuffers.
15425
15426 * fileio.c (Fcopy_file): Check for error on close.
15427
dff28924 154281989-05-10 Joseph Arceneaux (jla@corn-chex.ai.mit.edu)
615d0182 15429
da1d68b2 15430 * xfns.c (adjust_scrollbars): Don't subtract 2 from
615d0182
DL
15431 h_scrollbar_height when calculating `length'.
15432
dff28924 154331989-05-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15434
15435 * eval.c (call_debugger): Set entering_debugger.
15436 (find_handler_cause): Don't enter debugger if that's set.
15437 (Fbacktrace): Clear it; we are presumably in the debugger.
15438
15439 * m/m-sps7.h: New file.
15440
dff28924 154411989-05-08 Joseph Arceneaux (jla@rice-chex.ai.mit.edu)
615d0182
DL
15442
15443 * xterm.c (XTread_socket_hook): For X11, on map and unmap events
15444 check the window manager hints for iconification status.
15445
fa6bc6fd 15446 * xterm.c (x_make_window_icon): For X11, just request
615d0182
DL
15447 iconification of the window manager.
15448
dff28924 154491989-05-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15450
15451 * m/m-clipper.h: New file.
15452
dff28924 154531989-05-07 Joseph Arceneaux (jla@corn-chex.ai.mit.edu)
615d0182 15454
da1d68b2 15455 * xfns.c (adjust_scrollbars): Don't subtract 2 from
615d0182
DL
15456 v_scrollbar_width when calculating `height'.
15457
da1d68b2 15458 * xfns.c (x_set_foreground, x_set_border_pixel): Finished color
615d0182 15459 coordination. Scrollbar border, thump-arrows, and slider pixmap
b344d29d 15460 linked with foreground color; slider border with window border.
615d0182 15461
dff28924 154621989-05-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15463
15464 * lread.c (read1): Handle octal integers.
15465
15466 * macros.c: Doc fix.
15467
15468 * search.c (Fstore_match_data): Allow ints instead of markers.
15469
15470 * keyboard.c (get_char_menu_prompt): New function; does menu prompting
15471 based on current keymaps.
15472
dff28924 154731989-05-05 Joseph Arceneaux (jla@gracilis.ai.mit.edu)
615d0182 15474
da1d68b2 15475 * xfns.c (Fx_set_face): Rewrote the doc-string and renamed the
615d0182
DL
15476 parameters.
15477
dff28924 154781989-05-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15479
15480 * unexec.c: New control parameters COFF_BSD_SYMBOLS, KEEP_OLD_PADDR,
15481 KEEP_OLD_TEXT_SCNPTR, ADJUST_TEXT_SCNHDR_SIZE, ADJUST_TEXTBASE,
15482 HEADER_INCL_IN_TEXT.
15483
15484 * unexec.c: Define IN_UNEXEC as flag for config.h.
15485
15486 * keymap.c: Fapropos, etc., deleted. (Now in Lisp code.)
15487
15488 * eval.c (Fcommandp): Byte code object is command if interactive slot
15489 exists at all.
15490
dff28924 154911989-05-05 Chris Hanson (cph@kleph)
615d0182
DL
15492
15493 * process.c [HPUX && !NOMULTIPLEJOBS]: Include <bsdtty.h>, which
15494 defines TIOCGPGRP.
15495
dff28924 154961989-05-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15497
15498 * data.c (Faref, Farray_length): Handle byte-code objects.
15499 * fns.c (Flength, concat): Likewise.
15500
15501 * data.c (Faref, Faset, Farray_length): Rename arg VECTOR to ARRAY.
15502
15503 * m/m-hp9000s300.h: Undefine NOMULTIPLEJOBS.
15504
15505 * keyboard.c (Fcommand_execute): Treat bytecode object as function.
15506
15507 * callint.c (Fcall_interactively): Separate decoding of fcn
15508 from handling of it.
15509
15510 * alloc.c (Fmake_byte_code): Renamed from Fmake_compiled_code.
15511 Make it pure if Vpurify_flag is non-nil.
15512 (Fpurecopy): Handle byte-code objects.
15513
15514 * keyboard.c (get_char): Use Fsit_for for echoing timeout, not alarm.
15515 Do this before timeout for auto-save since the latter is longer.
15516 (request_echo): Function deleted.
15517 ({set,clear}_waiting_for_input): No need for echo_now, echo_flag.
15518
dff28924 155191989-05-04 Joseph Arceneaux (jla@gracilis.ai.mit.edu)
615d0182
DL
15520
15521 * xterm.c (x_lower_window, x_raise_window): Don't do anything if
15522 the window isn't visible.
15523
15524 * xfns.c (x_set_foreground_color): Recolor the scrollbar windows
15525 appropriately, compatible with xterm.
15526
15527 * xterm.c (x_reset_cursor): Do cursor recoloring.
15528
dff28924 155291989-05-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15530
15531 * fns.c (Frandom): With number as arg, return value < that number.
15532
15533 * sysdep.c [USG, BSD4_1] (random): Call `rand' twice, to get
15534 30 bits of significance.
15535
dff28924 155361989-05-03 Joe Arceneaux (jla@gracilis.ai.mit.edu)
615d0182 15537
da1d68b2
JB
15538 * xterm.c (x_draw_box): Use the cursor_gc.
15539 * xfns.c (x_set_cursor_color, x_create_screen): Do a better job
615d0182
DL
15540 with cursor colors, and use 0 line width for the cursor_gc.
15541
dff28924 155421989-05-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 15543
88c71720 15544 Begin changing representation of compiled functions.
615d0182
DL
15545 * lisp.h (enum Lisp_Type): New type code Lisp_Compiled, like a vector.
15546 (COMPILED_*): Names for slots in those vectors.
15547 * alloc.c (Fmake_compiled_code): New function.
15548 * eval.c (Fcommandp, Feval, Ffuncall, funcall_lambda):
15549 Handle fcns of type Lisp_Compiled.
15550 (Fcommandp, Fapply): Avoid directly nested ifs.
15551 * print.c (print): Handle Lisp_Compiled objects.
da1d68b2
JB
15552 * callint.c (Fcall_interactively): Likewise.
15553 * doc.c (Fdocumentation): Likewise.
615d0182
DL
15554
15555 * keyboard.c (Fopen_dribble_file): nil as arg means close it.
15556
15557 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c:
15558 * casefiddle.c, cmds.c, data.c, dired.c, dispnew.c, doc.c, editfns.c:
15559 * eval.c, fileio.c, filelock.c, floatfns.c, fns.c, keyboard.c:
15560 * keymap.c, lread.c, minibuf.c, mocklisp.c, print.c, process.c:
15561 * screen.c, search.c, syntax.c, undo.c, vmsfns.c:
15562 Many doc fixes.
15563
dff28924 155641989-04-30 Joseph Arceneaux (jla@hobbes)
615d0182
DL
15565
15566 * xterm.c (XTring_bell): Wasn't passing selected_screen to XTflash.
15567 Fixed this.
15568
15569 * xterm.c (XTread_socket): Don't check if server died under
15570 X11. Temporary.
15571
dff28924 155721989-04-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15573
15574 * window.c (Fdelete_other_windows): Bug getting top edge.
15575
dff28924 155761989-04-29 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15577
15578 * keyboard.c (get_char): Auto save if enough time elapses.
15579 (auto_save_timeout): New Lisp variable.
15580
15581 * xdisp.c (try_window, try_window_id): Set w->redo_mode_line
15582 if should show percentage instead of `Bot'.
15583
dff28924 155841989-04-29 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
15585
15586 * xterm.c (x_term_init): Don't set visible bell, as it pre-empts
15587 .emacs control.
15588
dff28924 155891989-04-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15590
15591 * doc.c (syms_of_doc): Make Vdoc_file_name a Lisp variable
15592 named internal-doc-file-name.
15593
dff28924 155941989-04-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15595
15596 * m-news.h: m-news800.h renamed.
15597 Removed EXPLICIT_SIGN_EXTEND and COMPILER_REGISTER_BUG.
15598 Removed SEGMENT_MASK and sigmask.
15599 LOAD_AVE_TYPE is now `double'; LOAD_AVE_CVT changed too.
15600 Define m68000 if not defined.
15601
dff28924 156021989-04-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15603
15604 * ymakefile: If COFF_ENCAPSULATE, define LD as gcc -nostdlib.
15605
15606 * sysdep.c: Unconditionally include sys/ioctl.h.
15607
15608 * m/m-mips.h [USG]: Define LIBS_TERMCAP.
15609 If HAVE_X11, define HAVE_VFORK.
15610
dff28924 156111989-04-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15612
15613 * m/m-altos.h: Use termcap, not terminfo.
15614 Define COFF_ENCAPSULATE if using gcc.
15615 Use built-in alloca if using gcc.
15616 Define PURESIZE.
15617
15618 * lread.c (absolute_filename_p): On ALTOS, @ means absolute.
15619
15620 * process.c: Missing #endif.
15621 * fileio.c (Finsert_file_contents): Define `p' for last change.
15622 * buffer.c, floatfns.c: Typos in DEFUN doc strings.
15623 * keyboard.c: Typo in DEFVAR_LISP doc string.
15624
15625 * window.c (Fdelete_other_windows): Fix confusion about type of W.
15626
dff28924 156271989-04-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15628
15629 * ymakefile (LDFLAGS): Forgot to use LD_SWITCH_SITE.
15630
15631 * xterm.c (XTflash): Draw the bars here.
15632 (x_invert_screen): Change to invert entire window.
15633 (stufflines): Changed args to XClearArea.
15634 (XTread_socket): Clean up handling of KeyPress events.
15635 For LeaveWindow, ignore uninteresting ones and handle autolower.
15636 For FocusIn, ignore if unknown window, and handle autoraise.
15637 For MotionNotify, add real handling for X11.
15638 For ConfigureNotify, count width of scroll bars.
15639 Don't call change_screen_size redundantly; ignore linked expose events.
15640 Update left and top pos if nec.
15641 For button events, ignore if not in known window or scrollbar.
15642 (x_new_selected_screen): Takes screen as arg.
15643 (x_error_handler): Arg type different for X11.
15644 (x_set_window_size) [HAVE_X11]: Call change_screen_size
15645 before x_wm_set_size_hint.
15646 (x_make_window_visible): Make scroll bars visible too, if any.
15647 (x_lower_window): New fn.
15648 (x_wm_set_size_hint): Take account of width of scroll bars.
15649 Ior specified hint flags with those already set.
15650
15651 * xterm.h (HSCROLL_HEIGHT): HSCROLL_WIDTH is renamed.
15652 (MAXWIDTH): Increased to 300.
15653 (MAXHEIGHT): Increased to 100.
15654 (DISPLAY_SCREEN_ARG): Remove parentheses.
15655 (ButtonReleased, WhichMouseButton): Delete definitions.
15656
15657 * xmenu.c: Adapted to new X interface. X11ONLY replaced with xDISPLAY.
15658 Many X11 conditionals removed.
15659
15660 * xfns.c (x_set_cursor_color): Special case if matches foreground.
15661 (Fx_create_screen): Typo for HSCROLL_HEIGHT.
15662 Use BLACK_PIX_DEFAULT, WHITE_PIX_DEFAULT.
15663 Set PRETEND arg to change_screen_size.
15664 Delete gray_bits; this value made global.
15665 Don't call install_*_scrollbar here.
15666 (x_set_horizontal_scrollbar): Define this for real.
10d1d0af 15667 (x_set_vertical_scrollbar): Correct args to install_vertical_scrollbar.
615d0182
DL
15668 (install_vertical_scrollbar): New local slider_pixmap, and set it.
15669 Delete locals GC_values, temp_gc.
15670 Change arrow_width, arrow_height (appears to be undefined) to 16.
15671 Un-if-0 this code.
15672 Use border_pixel, not foreground_pixel, for scrollbar.
15673 (install_horizontal_scrollbar): Define this for real.
15674 (adjust_scrollbars): Handle horizontal scrollbar.
15675 Define XMoveResizeWindow as XConfigureWindow if X10 to simplify.
15676 (x_resize_scrollbars): Remove #if 0 from quick-exit case.
15677 Really handle horizontal scrollbar.
15678 Simplify using new macro.
15679 (Fx_get_mouse_event): Mostly ignore events other than buttons.
15680 Use many new macros to handle X10 and X11.
15681 (encode_mouse_button): New fn: encoding of which button, broken out.
15682
15683 * xfns.c (left_arror_cursor, etc.): New vars.
15684 (x_screen_parm, init_x_parm_symbols, x_set_screen_param):
15685 Define X_PARM_AUTOLOWER.
15686
15687 * xdisp.c (display_string, redisplay-window, DoDsp):
15688 Use SCREEN_WIDTH, SCREEN_HEIGHT.
15689
dff28924 156901989-04-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15691
15692 * indent.c (compute_motion): Use SCREEN_WIDTH.
15693 * dispnew.c (update_line): Use SCREEN_WIDTH.
15694 (update_screen): Use SCREEN_HEIGHT.
15695
dff28924 156961989-04-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 15697
da1d68b2 15698 * window.c: Rename Vauto_new_screen_hook, Vdisplay_buffer_hook, and
615d0182
DL
15699 Vtemp_buffer_show_hook to ..._function.
15700
da1d68b2 15701 * keyboard.c: Rename mouse_hook to mouse_event_function.
615d0182
DL
15702
15703 * buffer.c, buffer.h, cmds.c: blink-paren-hook and auto-fill-hook
15704 renamed to -function.
15705
15706 * fileio.c (Finsert_file_contents): Allow quit in read.
15707 (Fwrite_region): Allow quit in write.
15708
dff28924 157091989-04-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15710
15711 * doprnt.c (doprnt): Comment out %b since sprintf can't do it.
15712
15713 * Change X11 to HAVE_X11 everywhere.
15714
15715 * m-sun3.h: Define C_SWITCH_MACHINE as -fsoft.
15716
dff28924 157171989-04-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15718
15719 * process.c: Don't define wstopsig, wtersig if already defined.
15720
15721 * sysdep.c [VMS] (sys_getenv): Copy the string before returning it.
15722
15723 * m-alliant.h: Define `vector'.
15724
dff28924 157251989-04-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15726
15727 * process.c (wait_reading_process_input) [sun]: If SIGIO failed
15728 to be sent, send it by hand.
15729
dff28924 157301989-04-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 15731
da1d68b2 15732 * window.c (Fdelete_other_windows): Recenter window to avoid scrolling.
615d0182 15733
dff28924 157341989-04-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15735
15736 * indent.c: Include screen.h.
15737
15738 * indent.c (pos_tab_offset, Fvertical_motion): Compute internal width
15739 correctly and uniformly.
15740
15741 * xdisp.c (try_window, try_window_id): Use exact internal width
15742 to update tab_offset.
15743 (try_window_id): pos_tab_offset value needs adjustment only if
15744 starting a line in middle of a character.
15745
dff28924 157461989-04-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15747
15748 * sysdep.c [USG]: If TIOCGWINSZ defined, include sioctl.h.
15749
dff28924 157501989-04-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15751
15752 * eval.c (Fbacktrace): Set Vprint_level to 3 throughout.
15753
15754 * fns.c (Fload_average): nlist data structure is funny on convex.
15755
da1d68b2 15756 * window.c (scroll_command): Scroll at least 1 line in specd direction.
615d0182
DL
15757
15758 * cm.c (calccost): NTABS was off by 1 sometimes; take account of
15759 the starting position modulo 8.
15760
15761 * fileio.c (Fexpand_file_name): Don't simplify /../ at start of name.
15762
da1d68b2 15763 * callint.c: Doc fixes.
615d0182
DL
15764
15765 * process.c (create_process):
15766 On all USG systems, not just IRIS and AIX, don't pre-open pty's tty.
15767 Move the setpgrp done for USG (no real change).
15768 Tell child_setup to do a setpgrp.
15769 * callproc.c (child_setup): New arg says whether to setpgrp.
15770 Never setpgrp on USG.
15771 (Fcall_process): Tell child_setup not to setpgrp.
15772
15773 * sysdep.c (init_sys_modes, reset_sys_modes): Don't try to hack
15774 TIOCGLTC, TIOCGETC, etc. if HAVE_TERMIO.
15775 Don't bother to undef these for XENIX.
15776
dff28924 157771989-04-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15778
15779 * ymakefile (LIBES): Put LIBX first; it may depend on LIBS_MACHINE.
15780
15781 * m-sequent.h: Define HAVE_ALLOCA.
15782
dff28924 157831989-04-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15784
15785 * term.c (term_init): Can't use scroll region if no abs positioning.
15786
dff28924 157871989-04-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 15788
da1d68b2 15789 * process.c (Fopen_network_stream): Close desc. if connect fails.
615d0182 15790
dff28924 157911989-03-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15792
15793 * minibuf.c (Fall_completions): gcprotect ALLMATCHES and TAIL,
15794 not STRING.
15795
15796 * keyboard.c (read_avail_input): Handle EBADSLT like EAGAIN.
15797
dff28924 157981989-03-29 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15799
15800 * term.c (term_init): Either ic or ip or im or IC => can insert chars.
15801
15802 * minibuf.c (read_minibuf_unwind): Ensure minibuf writable for erasure.
15803
dff28924 158041989-02-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15805
15806 * m-convex.h: Undefine NO_ARG_ARRAY.
15807 Changed defns of DATA_SEG_BITS and XINT.
15808 Define alloca for GCC compilation.
15809
dff28924 158101989-02-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15811
15812 * m-ibmrt-aix.h: Define BROKEN_FIONREAD.
15813
dff28924 158141989-02-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15815
15816 * keymap.c (Fdefine_prefix_command): Set both value and fn defn,
15817 with separate syms specified for each purpose.
15818
dff28924 158191989-02-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15820
15821 * callproc.c (Fcall_process): Open /dev/null with O_WRONLY.
15822
dff28924 158231989-02-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15824
15825 * window.c (window_scroll): Allow scrolling to very end (empty screen)
15826 if that's exactly where we wanted to scroll to.
15827
dff28924 158281989-02-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15829
15830 * data.c (Fkill_local_variable): New local to simplify big stmt.
15831
dff28924 158321989-02-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15833
15834 * xdisp.c (display_text_line): cvt chars to glyfs for overlay arrow.
15835
15836 * sysdep.c (init_sys_modes, child_setup_tty) [IBMRTAIX]:
15837 Don't ignore BRK, and don't signal it.
15838
15839 * process.c (pty): An IBMRTAIX conditional.
15840 (create_process): Another here.
15841
dff28924 158421989-02-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15843
15844 * keymap.c (Fdefine_prefix_command): Use Ffset, not Fset.
15845
dff28924 158461989-02-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15847
15848 * fileio.c (Fset_visited_file_modtime): New fn.
15849
15850 * xfns.c (Fx_create_screen) [X10]: XCreateWindow wants pixmaps as args.
15851
dff28924 158521989-02-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15853
15854 * dispnew.c (Fsit_for): It accepts 3 args.
15855
dff28924 158561989-02-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15857
15858 * xterm.c (XTread_socket): For X10, make EVENT an XKeyPressedEvent.
15859 (x_set_resize_hint): Call XSetResizeHint.
15860
15861 * process.c: Declare interrupt_input.
15862
15863 * sysdep.c (init_sys_modes): TIOCSTART, not TCSTART.
15864
dff28924 158651989-01-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15866
15867 * xterm.h (struct x_display): `GC' renamed `gc' in all field names.
15868 Field `ColorMap' renamed to `color_map'.
15869 (face_gc_values): face_GC_values renamed.
15870
dff28924 158711989-01-28 Joe Arceneaux (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15872
15873 * xterm.h (face_GC): Var deleted.
15874 (struct x_display): New field face_GC.
15875 (VSCROLL_WIDTH, HSCROLL_WIDTH): Moved here.
15876 (MINWIDTH, MINHEIGHT, MAXWIDTH, MAXHEIGHT): New vars. Eliminate them!
15877 (BLACK_PIX_DEFAULT): Typo in definition.
15878 (WHITE_PIX_DEFAULT): Typos in definitions; was the black default.
15879
15880 * xterm.c: Include ioctl.h only if BSD.
15881 Include termio.h otherwise.
15882 (XMapWindow) [X11]: Typo in definition.
15883 (METABIT): New definition; maybe not needed.
15884 (hostname, id_name, invocation_name, Vcommand_line_args): New vars
15885 declared for main icon title.
15886 (x_debug): Init to 1 if XDEBUG defined.
15887 (dumpglyfs) [X11]: Changed args to XDrawImageString.
15888 If debugging, do XFlushQueue.
15889 Use screen's face_gc rather than old global one.
da1d68b2 15890 (XTflash) [not BSD]: Avoid `struct itimerval'; use `alarm'.
615d0182
DL
15891 (events): New table of event type names.
15892 (XTread_socket): EVENT is now an XEvent even on x10.
15893 Translate modifier key 1 into meta-bit.
15894 For EnterNotify event, don't dumpborder or x_new_selected_screen
15895 if there is an x_focus_screen.
15896 For LeaveNotify event, don't ignore due to nonzero subwindow.
15897 For ConfigureNotify, change screen size.
15898 Do `select' check for SIGHUP only if HAVE_SELECT.
15899 (x_new_selected_screen): An arg, SCREEN.
15900 (x_display_cursor): dumpglyfs args changed.
15901 (x_draw_box): Add GC arg to XDrawRectangle; change other args.
15902 (clear_cursor): Change args to XClearArea.
da1d68b2 15903 (dumpborder): Check x_input_screen, not selected_screen.
615d0182
DL
15904 (x_text_icon): For X11, new arg to XGetDefault.
15905 Cast values stored in icon_label.
15906 (x_term_init): Hair to calculate name for icon.
15907 Don't init_sigio unless SIGIO defined.
15908 Call Fset_input_mode.
15909 For X11, new arg to XGetDefault.
15910 Set _Xdebug if debugging.
15911 (x_new_font) Use XGetFont.
15912 Get GC values from the screen structure.
15913 (x_reset_cursor): Don't call XRecolorCursor.
15914 (x_set_window_size): Call x_wm_set_size_hint, not x_set_size_hint.
15915 (x_set_resize_hint): For X11, call x_wm_set_size_hint.
b344d29d 15916 (x_wm_set_size_hint, x_wm_set_window_state, x_wm_set_icon_pixmap)
615d0182
DL
15917 (x_wm_set_icon_position): New fns for X11.
15918
b344d29d 15919 * xfns.c: For X11, include Xutil.h.
615d0182
DL
15920 (VSCROLL_WIDTH): Moved to xterm.h.
15921 (face_GC): Don't declare it.
15922 (id_name): Declare this.
15923 (x_decode_color): Check `white' and `black' first of all.
15924 (x_set_foreground_color) [X11]: Reset foreground and background.
15925 (x_set_background_color) [X11]: Missing arg to XSetWindowBackground.
15926 (x_set_cursor_color) [X11]: Reset foreground and background.
15927 (x_read_mouse_position) [X11]: Changed call to XQueryPointer.
15928 (x_set_mouse_position) [X11]: Add args to XWarpPointer.
15929 (Fx_create_screen): Set some temporary geometry parms at the beginning.
15930 For X11, changed setup of iconidentity, and implement rubber-banding.
15931 For X11, implement merging individual geometry parms.
15932 For X11, changed args to XCreateSimpleWindow.
15933 For X11, call x_wm_set_size_hint.
15934 Specify name when creating icon.
15935 Don't call XSetForeground, XSetBackground before making border tile.
15936 New var `cursor_bits'. Init the screen's GC's.
15937
15938 * screen.c (Frubber_band_rectangle): For X11, just return nil.
15939
dff28924 159401989-01-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15941
15942 * buffer.c (Fbuffer_modified_tick): New fn.
15943
15944 * window.c (Fnext_window): Accept 3 args from Lisp.
15945
dff28924 159461989-01-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15947
15948 * sysdep.c (sys_suspend): Handle case of SIGTSTP but not BSD.
15949
dff28924 159501989-01-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15951
15952 * sysdep.c (init_sys_modes): Do TIOCSTART if def, like TCXONC.
15953
dff28924 159541989-01-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15955
15956 * process.c (wait_reading_process_input): New 2nd arg is extra usecs.
15957 All callers changed.
15958 * dispnew.c (Fsit_for, Fsleep_for): New 2nd arg says 1st arg
15959 counts in milliseconds.
15960
15961 * buffer.c (Fkill_all_local_variables): Implement permanent locals.
15962
dff28924 159631989-01-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15964
15965 * keymap.c (get_keyelt): Allow indirection within (STRING . DEFN).
15966
dff28924 159671989-01-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15968
15969 * process.c (wait_reading_process_input): If select returns there
15970 is kbd input, but detect_input_pending can't find it, signal SIGIO.
15971 This may avoid the X loop-on-logout bug.
15972
15973 * process.c (wait_reading_process_input): Flush fix_screen_hook.
da1d68b2 15974 * termhooks.h, term.c: Likewise.
615d0182
DL
15975
15976 * xdisp.c (Fredraw_display): Don't do set_terminal_modes.
da1d68b2 15977 * dispnew.c (Fredraw_screen): Likewise.
615d0182
DL
15978
15979 * eval.c (Fcond): If no args, return nil.
15980
dff28924 159811989-01-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15982
15983 * eval.c (Fbacktrace_frame): Require one arg. Return nil if too high.
15984
dff28924 159851989-01-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15986
15987 * minibuf.c (read_minibuf): Set Vminibuf_scroll_window before
15988 switching windows.
15989
15990 * xterm.c (XTread_socket): If no HAVE_SELECT, wait for input
15991 if new arg WAITP is non0. Do this by not bothering to test for
15992 presence of input before reading some.
15993 Check for dead connection only if new arg EXPECTED is nonzero.
15994 All callers changed (keyboard and sysdep).
15995
88c71720
KS
15996 * keyboard.c: Simplify keyboard input.
15997 (read_avail_input): Don't assume buffer is empty.
615d0182
DL
15998 Don't call get_input_pending; do FIONREAD here.
15999 Don't do FIONREAD if read_socket_hook, just tell it don't wait.
16000 Arg EXPECTED is passed to read_socket_hook.
16001 (input_available_signal): Use read_avail_input.
16002 (gobble_input): Use read_avail_input; arg EXPECTED passed along.
da1d68b2 16003 (get_input_pending): Let gobble_input do the work.
615d0182 16004
88c71720 16005 VMS keyboard input should have interrupt_input nonzero.
615d0182
DL
16006 * keyboard.c (Fset_input_mode, init_keyboard): [VMS] Always set
16007 interrupt_input to 1.
16008 (get_input_pending): Special case deleted.
16009
dff28924 160101989-01-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16011
16012 * fileio.c (auto_save_1): Always make auto-save file owner-writable.
16013
16014 * eval.c (Fbacktrace_frame): New fn.
16015
16016 * buffer.h: Define `fieldlist' field in a buffer.
16017 * buffer.c (Fregion_fields): Return list of fields overlapping
16018 specified region.
16019 (syms_of_buffer): New variable buffer-field-list.
16020 (reset_buffer): Clear the fieldlist.
16021 (init_buffer_once): Set up default and flag for buffer-field-list.
16022 * insdel.c (prepare_to_modify_buffer): If check_protected_fields,
16023 call Fregion_fields to detect error.
16024 Delete buffer_modify_hook.
16025
16026 * callint.c (Fcall_interactively): Bind `command-debug-status'
16027 for each interactive command.
16028
16029 * keyboard.c (command_loop_1): Count # commands read.
16030 (num_input_keys): New Lisp variable.
16031
16032 * m/m-gould.h, m/m-ibmrt-aix.h, m/m-sequent.h, m/m-sparc.h,
da1d68b2 16033 * m/m-sun3.h, m/m-symmetry.h: Define A_TEXT_SEEK.
615d0182
DL
16034 * unexec.c (copy_text_and_data): Don't check A_TEXT_OFFSET,
16035 just A_TEXT_SEEK.
16036 * unexconvex.c: Likewise.
16037
16038 * unexconvex.c: machine/*.h unconditionally.
16039
16040 * process.c (pty): Delete RTU, HPUX, IRIS alternatives to
16041 PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF.
16042 * s/s-hpux.h: Define PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF.
16043 * s/s-rtu.h: Likewise.
16044 * s/s-iris*.h: Define PTY_TTY_NAME_SPRINTF.
16045
16046 * sunfns.c (Fsun_change_cursor_icon): Avoid ambiguity in eval order.
16047
dff28924 160481989-01-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16049
16050 * data.c (Fdefault_value): If var set up with default value as current,
16051 take the current value slot, more up to date than the default slot.
16052
dff28924 160531989-01-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 16054
da1d68b2 16055 * dispnew.c (init_display): Don't handle SIGWINCH if using X.
615d0182
DL
16056
16057 * fileio.c (Fdo_auto_save): If file has shrunk, turn off auto-save.
16058 This avoids duplicate messages and allows M-x auto-save to turn it on.
16059
16060 * lread.c (Fload): Look in Vafter_load_alist.
16061 (syms_of_load): Define after-load-alist.
16062
dff28924 160631989-01-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16064
16065 * dired.c (Fdirectory_files): 4th arg NOSORT non-nil means don't sort.
16066
16067 * syntax.c (scan_lists): Change Sendcomment case so that
16068 ignoring comments works even for newline-terminated comments.
16069
16070 * minibuf.c (read_minibuf): Default Vminibuf_scroll_window
16071 to the window that was selected.
16072
dff28924 160731989-01-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16074
16075 * fns.c (do_yes_or_no_p): Typo, call2 => call1.
16076
16077 * eval.c (Fbacktrace): Each frame item should have a newline.
16078
16079 * emacs.c (Fkill_emacs): Don't run hook if noninteractive.
16080
16081 * eval.c: Define Vrun_hooks.
16082 (syms_of_eval): Initialize Vrun_hooks.
16083
16084 * indent.c (Fmove_to_column): Use del_range; Fdelete_backward non ex.
16085
16086 * ymakefile (objs, floatfns.o): Re-add this file.
16087 (LIBX): Install X11 case.
16088
16089 * ymakefile (LIB_GCC): Now a cpp macro, like all other LIB_...
16090 Define null if not using GCC.
16091
16092 * lread.c (unreadchar): New function to unread a char
16093 by stuffing it back into its stream. Now unread chars
16094 work properly between multiple reads.
16095 (UNREAD): Now calls that function.
16096 (readchar): Don't us `unrch'; variable deleted.
16097 (various): Don't initialize `unrch'.
16098 (readevalloop): No need to save and restore `unrch'.
16099 (read1): Don't unread a -1.
16100
16101 * keymap.c (get_keyelt): If keymap defn is (STRING . FOO),
16102 remove just FOO. Will help HierarKey.
16103
dff28924 161041989-01-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16105
16106 * unexmips.c [IRIS_4D]: Don't include fcntl.h.
16107 (unexec): Look for LIT8, LIT4 sections iff they are defined.
16108
16109 * buffer.c (Fkill_all_local_variables): Force redisplay of mode lines.
16110
dff28924 161111989-01-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16112
16113 * emacs.c (main): Do the setpgrp before handling -t.
16114
16115 * keyboard.c (Fsuspend_emacs): Use run-hooks to run suspend-hook
16116 and suspend-resume-hook.
16117
16118 * buffer.c (Fkill_buffer): Execute kill-buffer-hooks
16119 with buffer to be killed as current buffer.
16120
16121 * buffer.c (count_modified_buffers): ModExist renamed.
16122
16123 * emacs.c (Fkill-emacs): Execute kill-emacs-hook.
16124
16125 * fileio.c (auto_save_1): Set auto_save_mode_bits from visited file.
16126 (Fwrite_region) [not VMS]: If auto-saving, write file with that mode.
16127
16128 * fileio.c (Fwrite_region): If START is a string, write that string.
16129
dff28924 161301989-01-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16131
16132 * lisp.h (XMARKBIT, XSETMARKBIT): If mark bit is sign bit,
16133 use sign-test for XMARKBIT; value is then 1 or 0.
16134 Make XSETMARKBIT test 2nd arg for nonzeroness only.
16135
16136 * m/m-mips.h: Last batch of changes are only for USG.
16137 (XMARKBIT, XSETMARKBIT): Deleted; the new default ones are good.
16138
16139 * editfns.c (Fformat): Use princ for %s.
16140 New format %S converts everything (even strings) with prin1.
16141 * doprnt.c (doprnt): Treat %s like %S.
16142
16143 * print.c (Fprin1_to_string): Opt 3nd arg non-nil does princ.
16144
dff28924 161451988-12-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16146
16147 * data.c (Fstring_to_int): Correct max # args.
16148
dff28924 161491988-12-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16150
16151 * ymakefile (LIBES, LIB_GCC): If using GCC, link with gnulib.
16152
dff28924 161531988-12-29 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16154
16155 * editfns.c: Many doc improvements.
16156
dff28924 161571988-12-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16158
16159 * lisp.h (CHECK_NATNUM): New macro.
16160
16161 * indent.c (Fmove_to_column): 2nd arg t means indent till spec'd column
16162 or change tab to spaces if necessary.
16163
da1d68b2 16164 * m/m-iris4d.h: (Conditionally) delete DEFAULT_ENTRY_ADDRESS
615d0182
DL
16165 and change START_FILES and LIB_STANDARD.
16166
16167 * s/s-iris3-6.h: Define sigblock as no-op.
16168
16169 * m/m-mips.h: Cancel defn of VIRT_ADDR_VARIES, `static'.
16170 Undef SIGIO. Define BROKEN_FIONREAD.
16171 Define various HAVE_... flags a la BSD.
16172 Add options, libraries for linking and compilation.
16173
16174 * unexmips.c (unexec): Handle additional optional sections now likely.
16175 New scheme for recording what sections there are.
16176 Make handling of the LIT8,LIT4 sections conditional (not on IRIS).
16177
16178 * fns.c (do_yes_or_no_p): New interface to Lisp function yes-or-no-p.
16179 Allows the user to redefine that function.
16180 All callers of Fyes_or_no_p changed.
16181
16182 * data.c (Fmakunbound): Don't allow nil or t as arg.
16183
16184 * m/m-orion105.h (LOAD_AVE_TYPE): Now `long'.
16185
dff28924 161861988-12-27 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16187
16188 * dispnew.c (unhold_window_change):
16189 Don't signal SIGWINCH. Instead, do pending size-changes here,
16190 while holding any new size-changes that arrive, so they become
16191 pending. Loop around to get the new pending ones.
16192 (change_screen_size): Clear any previous pending size-change.
16193
16194 * search.c (place): Was clipping to (1- (point-max)) by mistake.
16195
dff28924 161961988-12-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16197
16198 * window.c (Fdelete_window): Give all this window's space
16199 to one adjacent sibling.
16200
dff28924 162011988-12-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16202
16203 * keymap.c (describe_alist): Don't lose on non-cons-cell alist elts.
16204 (Fwhere_is_internal): Don't fail to step down the alist.
16205 (Faccessible_keymaps): Considerable confusion in alist case.
16206
16207 * lread.c (Feval_current_buffer, Feval_region):
16208 Save and restore point as a marker, not a number.
16209 Don't restore it at all if printflag is t.
16210
16211 * print.c (float_to_string): Mostly rewritten; output format
16212 is now a printf %-spec.
16213 (Qfloat_output_format): Doc changed to match.
16214
dff28924 162151988-12-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16216
16217 * ymakefile (obj): Include floatfns.o.
16218 * data.c (syms_of_data): Fix typo Snumberp_or_marker_p.
16219
88c71720 16220 Allow keymaps to have other keymaps as tails.
615d0182
DL
16221 Thus, one keymap can inherit from another.
16222 * keymap.c (Fwhere_is_internal): Ignore non-cons elements of alist.
16223 (Faccessible_keymaps): Support symbols as alist indices.
16224 Ignore alist elements that aren't conses.
16225
16226 * m/m-sun386.h (LDAV_SYMBOL): Define as "avenrun" with no underscore.
16227
16228 * lread.c (read_escape): Support ANSI C `\x...' hex escapes.
16229
da1d68b2 16230 * bytecode.c (Fbyte_code): Fix jump operators for change in `pc'.
615d0182 16231
dff28924 162321988-12-21 Joe Arceneaux (jla@gracilis.ai.mit.edu)
615d0182
DL
16233
16234 * ymakefile: Commented #endif LISP_FLOAT_TYPE. Also changed
16235 the code pertaining to X11 to use the same files as X10.
16236
16237 * bytecode.c (Fbyte_code): Declared unsigned char *pc.
16238
dff28924 162391988-12-19 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
16240
16241 * xterm.c: Finished a first cut of the X11 version.
16242
dff28924 162431988-12-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16244
16245 * sysdep.c (select): `buf' is now unsigned char.
16246
dff28924 162471988-12-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16248
16249 * m/m-elxsi.h: Don't define WORD_MACHINE or CANNOT_DUMP.
16250 Do define symbols for load average.
16251 Define COFF and ADJUST_EXEC_HEADER.
16252
dff28924 162531988-12-16 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 16254
da1d68b2
JB
16255 * sink.h, sinkmask.h: Same file now works for both X10 and X11.
16256 * xterm.c, xfns.c (x_text_icon) Can now take new name as parameter.
615d0182 16257
dff28924 162581988-12-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16259
16260 * m/m-is386.h: No need to undef HAVE_PTYS, HAVE_SOCKETS, SYSV_PTYS
16261 since s-usg5-3.h no longer defines them.
16262
dff28924 162631988-12-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 16264
39c87140 16265 * bytecode.c (Fbyte_code): Cache the pointer in the string
615d0182
DL
16266 to avoid recalculating it at each fetch.
16267 Also turn off the error check for stack overflow/underflow.
16268
dff28924 162691988-12-14 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
16270
16271 * xfns.c: Made the first cut for X11 version.
da1d68b2 16272 * xterm.c (x_reset_cursor): Did the X11 version.
615d0182 16273
dff28924 162741988-12-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16275
16276 * keyboard.c (Fexecute_mouse_event): Set Vmouse_event. Doc fix.
16277 Run Vmouse_hook at the end.
16278 (syms_of_keyboard): Define var `mouse-hook'.
16279
dff28924 162801988-12-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16281
16282 * term.c (insert_glyfs): Typo, was fetching G twice.
16283
dff28924 162841988-12-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16285
16286 * keymap.c (describe_buffer_bindings): Print mouse bindings too.
16287 (describe_map): If have a chartab, use mouse-describe-key for prefixes.
16288 * keymap.c (describe_{map,map_tree,alist}, describe_vector):
16289 Extra arg mapping chars to their names. Calls changed.
16290 * syntax.c (describe_syntax_1): Call changed.
16291
16292 * keymap.c (Vglobal_mouse_map): Make it exist unconditionally.
16293
16294 * keymap.c (apropos1): Clean up.
16295 Do where-is-internal only if there is a function definition.
16296 Use mouse-describe-key to turn mouse key sequences into strings.
b344d29d 16297 (Fwhere_is): Check the mouse map too.
615d0182
DL
16298 (Fwhere_is_internal): New arg is global map to use.
16299 All callers changed in keypad.c and doc.c.
16300 (where_is_string): New fn cvts result of Fwhere_is_internal to string.
16301
dff28924 163021988-12-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16303
16304 * emacs.c (stack_bottom): New variable, set in main.
16305 * alloc.c (Fgarbage_collect): Save a copy of the entire stack contents.
16306
dff28924 163071988-12-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16308
16309 * editfns.c (Funix_umask, Funix_sync): New functions.
16310
16311 * process.c (Fsignal_process): New function.
16312
dff28924 163131988-12-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16314
16315 * editfns.c (Fsubst_char_in_region): Fix typo in when to un-modify buf.
16316
dff28924 163171988-12-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16318
16319 * process.c (create_process): Take the usg's setpgrp and the close-and
16320 -open of the tty outside the TIOCNOTTY conditional, since TIOCNOTTY
16321 is always missing outside BSD. Now the TIOCNOTTY conditional controls
16322 only the TIOCNOTTY.
16323
dff28924 163241988-12-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16325
16326 * lread.c (Feval_current_buffer, Feval_region):
16327 If there is an error, don't restore original point.
16328
16329 * s-hpux.h (SHORT_CAST_BUG): Define this, for HPUX version 6.2.
16330
16331 * ymakefile (THIS_IS_YMAKEFILE): Define macro to tell m- files
16332 to do special things.
16333
da1d68b2 16334 * m/m-ns16000.h (LOAD_AVE_TYPE, etc.): Don't define them if USG.
615d0182
DL
16335 * m/m-ns16000.h [USG]: Define various macros differently.
16336 (munnari!sibyl.eleceng.ua.oz.au!ian@uunet.uu.net).
16337
16338 * sysdep.c (reset_sys_modes): Don't output a CR here.
16339 * term.c (reset_terminal_modes): Do it here, but first
16340 do a newline if it's a magic cookie terminal.
16341
16342 * sysdep.c (sys_suspend) [USG]: Use `nice' to set subshell pri. to 0.
16343
16344 * sysdep.c (TIOCSETN) [USG]: Use TCSETAW, not TCSETA.
16345
16346 * sysdep.c (setpriority) [USG]: No longer a no-op; use `nice'.
16347
16348 * keymap.c (Fwhere_is_internal): New 4th arg inhibits looking thru
dff28924 16349 indirect definitions--so you can search for one.
615d0182
DL
16350
16351 * alloc.c, fns.c, search.c: Doc fix.
16352
dff28924 163531988-12-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16354
16355 * process.c (read_process_output): Insert with insert_before_markers.
16356
16357 * filelock.c (lock_file_1, lock_superlock):
16358 If USG, use chmod instead of fchmod.
16359
16360 * environ.c (Fsetenv): Doc fix.
16361
dff28924 163621988-11-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16363
16364 * eval.c (do_autoload): Verify FUNNAME is a symbol.
16365
dff28924 163661988-11-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16367
16368 * fileio.c (Fread_file_name): New arg specifies initial minibuf cntnts.
16369 * callint.c (Fcall_interactively): Calls changed.
16370
dff28924 163711988-10-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16372
16373 * insdel.c (make_gap): Error if buffer size exceeds range of Lisp int.
16374
dff28924 163751988-10-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16376
16377 * window.c (Fsplit_window): Prevent error in Fset_window_buffer.
16378
16379 * sysdep.c (gettimeofday): Store -1 thru tzp so caller knows invalid.
16380
16381 * xdisp.c (message): Pass 0 as new arg to doprnt.
16382 * callint.c (Fcall_interactively): Likewise.
16383 * editfns.c (format1):
16384 * doprnt.c (doprnt): Allow 0 as FORMAT_END arg meaning null-terminated.
16385
dff28924 163861988-10-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16387
16388 * keyboard.c: If UNIPLUS, include ioctl.h.
16389
16390 * sysdep.c (utime): Use new flag IRIS_UTIME, not IRIS.
16391 * s-iris*.h: Define that flag.
16392
dff28924 163931988-10-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16394
16395 * term.c (term_init): If have `im' capability, permit ins/del char
16396 even without `ic'.
16397
dff28924 163981988-10-03 Richard Stallman (rms@corn-chex.ai.mit.edu)
615d0182
DL
16399
16400 * m/m-hp9000s300.h: Conditionals for BSD vs HPUX.
16401
16402 * ymakefile: Look for C_SWITCH_SITE, LD_SWITCH_SITE.
16403
dff28924 164041988-09-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16405
16406 * editfns.c (Fformat): Allow nulls in the format.
da1d68b2 16407 * doprnt.c (doprnt): Likewise. End of format string is new arg.
615d0182 16408
dff28924 164091988-09-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16410
16411 * m/m-7300.h: Undefine SHORTNAMES. Supposedly newer Unix now.
16412
16413 * print.c (print): Support new var print_length.
16414 (syms_of_print): Define Lisp var print-length.
16415 * eval.c (Fbacktrace): Print unevalled form with print_length = 3.
16416
16417 * Makefile (tags): Add TAGS as alternate target.
16418 Process the files in ../lisp/term.
16419
dff28924 164201988-09-27 Richard Stallman (rms@corn-chex.ai.mit.edu)
615d0182
DL
16421
16422 * doprnt.c (doprnt): Handle %-20s.
16423 * editfns.c (Fformat): Likewise (make enough space for it).
16424
16425 * minibuf.c (do_completion): If get "Complete but not unique" twice
16426 in a row, display all completions. New var last_exact_completion.
16427
dff28924 164281988-09-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 16429
2a34a036 16430 * dispnew.c (baud_rate): Now a Lisp variable, not a function.
615d0182
DL
16431 * termcap.c (tputs) [emacs]: Use baud_rate as the speed.
16432
dff28924 164331988-09-19 Richard Stallman (rms@gluteus.ai.mit.edu)
615d0182
DL
16434
16435 * window.c (Fset_window_configuration): Set deleted windows' buffer
16436 to nil, via new function delete_all_subwindows.
16437 * window.c (Fset_window_buffer): Reject deleted windows.
16438 * window.c (init_window_once): Init the ->buffer fields
16439 to satisfy error check in Fset_window_buffer.
16440
2a34a036 16441 * xmenu.c (Fx_popup_menu): 1st arg is now ((X Y) WINDOW).
615d0182
DL
16442
16443 * process.c (child_sig): If synch process terminates, clear
16444 synch_process_pid and record synch_process_death.
da1d68b2 16445 * callproc.c (Fcall_process): Return synch_process_death.
615d0182
DL
16446 Always set synch_process_pid and do it with SIGCHLD masked off.
16447 * sysdep.c (wait_for_termination) [subprocesses and not VMS]:
16448 Use alarms to check every second whether synch_process_pid is 0.
16449
dff28924 164501988-09-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16451
16452 * xdisp.c (redisplay_window): If window-point is outside restriction
16453 then correct it in the window.
16454 * window.c (Fdelete_buffer): Don't change buffer's point to a value
16455 outside its restriction.
16456
16457 * sysdep.c (init_sys_modes) [MULTI_SCREEN]: Set Vterminal_screen's
16458 garbaged bit.
16459
dff28924 164601988-09-16 Richard Stallman (rms@corn-chex.ai.mit.edu)
615d0182
DL
16461
16462 * keyboard.c (kbd_buffer_get_char): VMS now uses same code as Unix.
16463
16464 * vmsproc.c: New file for VMS only.
16465 * callproc.c [VMS]: Omit Fcall_process and child_setup_tty.
16466 * emacs.c (main) [VMS]: Call init_vmsproc and syms_of_vmsproc.
16467
16468 * lread.c (OBARRAY_SIZE): Change slightly to 509 (prime).
16469
2a34a036 16470 * keyboard.c, dispnew.c, term.c, xterm.c (meta_flag): MetaFlag renamed.
615d0182
DL
16471 * keyboard.c (Fset_input_mode): 3rd arg sets meta_flag.
16472 (syms_of_keyboard): Variable meta-flag deleted.
16473 * sysdep.c (init_sys_modes): Don't override parity settings
16474 if meta_flag is 0.
16475
dff28924 164761988-09-15 Richard Stallman (rms@corn-chex.ai.mit.edu)
615d0182 16477
2a34a036 16478 * search.c (Fsearch_forward, etc.): All buffer-search functions
615d0182
DL
16479 return new the value of point if they succeed.
16480
dff28924 164811988-09-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16482
16483 * cmds.c (Fnewline): Correct test of ARG1 to inhibit auto-fill.
16484
dff28924 164851988-09-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16486
16487 * window.c (Fdelete_window): Put nil as buffer of the deleted window.
16488 This makes select-window get an error earlier.
16489
dff28924 164901988-09-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 16491
dff28924 16492 * search.c (search_buffer, string_match, looking_at):
615d0182
DL
16493 Report matcher stack overflow as error, not just failure to match.
16494
16495 * data.c (Fmake_local_variable): Add local variable to simplify
16496 too-complex expression.
16497
16498 * fileio.c (Fdo_auto_save): No "file has shrunk" msg if < 5000 chars.
16499
16500See ChangeLog.2 for earlier changes.
2a34a036 16501
b344d29d
JB
16502;; Local Variables:
16503;; coding: utf-8
16504;; End:
16505
ba318903 16506 Copyright (C) 1993, 2001-2014 Free Software Foundation, Inc.
7f6d64f8
GM
16507
16508 This file is part of GNU Emacs.
16509
5a1dde61 16510 GNU Emacs is free software: you can redistribute it and/or modify
7f6d64f8 16511 it under the terms of the GNU General Public License as published by
5a1dde61
GM
16512 the Free Software Foundation, either version 3 of the License, or
16513 (at your option) any later version.
7f6d64f8
GM
16514
16515 GNU Emacs is distributed in the hope that it will be useful,
16516 but WITHOUT ANY WARRANTY; without even the implied warranty of
16517 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16518 GNU General Public License for more details.
16519
16520 You should have received a copy of the GNU General Public License
5a1dde61 16521 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.