(Mail and Post): Update documentation for gnus-user-agent.
[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
dff28924 328 of fontns 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
578 Potorti` <pot@fly.CNUCE.CNR.IT> says it's necessary on his
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.
903 Use CHECK_OVERLAY instead of signalling a special error.
904 (Fmove_overlay, Foverlay_put): Use CHECK_OVERLAY instead of
905 signalling a special error.
906 (Foverlay_get): Use CHECK_OVERLAY.
907 * fns.c (internal_equal): Define this for overlays.
908 * buffer.h (OVERLAY_VALID): Define in terms of OVERLAYP.
909 * print.c (print): Give overlays their own print syntax.
910 * alloc.c (mark_object): Treat overlays like conses.
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.
964 (display_text_line): Initialize current_face to zero. Apply it
965 to characters as we write them to the display matrix.
966 (display_string): Pass the new argument to copy_rope.
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.
1308 Per suggestion from Francesco Potorti`.
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
dff28924 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
1846 Use the `visiblity' parameter to determine the initial state of
1847 the frame, instead of the `iconic-startup' and
1848 `suppress-initial-map' parameters.
1849 * xfns.c (x_icon): Test the Qvisibility parameter against Qicon,
1850 instead of the Qiconic_startup against Qt.
1851 (x_create_frame): Test Qvisibility against Qnil and
1852 Qicon, instead of testing Qsuppress_initial_map and Qvisibility.
1853 (Qicon): New symbol.
1854 (Qiconic_startup, Qsuppress_initial_map): Removed.
1855 (syms_of_xfns): Adjusted appropriately.
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.
2020 (Qwindow_live_p): Extern declaration renamed fom Qlive_window_p.
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.
2122 (Xatom_emacs_selection, Xatom_clipboard, Xatom_clipboard_selection):
2123 (Xatom_wm_change_state, Xatom_incremental, Xatom_multiple):
2124 (Xatom_targets, Xatom_timestamp, Xatom_delete, Xatom_insert_selection):
2125 (Xatom_pair, Xatom_insert_property, Xatom_text): Decls deleted.
2126 (x_begin_selection_own): Decls deleted.
2127 (Fx_open_connection): Set up only the wm atoms here.
2128 Call Xatoms_of_xselect.
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.
2170 (keymap_panes): New arg enables
2171 (single_keymap_panes): New arg enables. Fill in its contents.
2172 (list_of_panes, list_of_items): New arg enables. Fill in contents.
2173 (Fx_popup_menu): Pass enable and enable_list args.
2174 (single_keymap_panes): Set enable flag to -1 if cmd definition is nil.
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
2372 * lisp.h (Qrange_error, Qdomain_error, Qsingularity_error):
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
2391 * frame.c (Fframe_char_height, Fframe_char_width):
2392 (Fframe_pixel_height, Fframe_pixel_width):
2393 New functions, two versions of each.
2394 [MULTI_FRAME] (syms_of_frame): Make them Lisp functions.
2395 [!MULTI_FRAME] (syms_of_frame): Likewise. Also Fselected_frame.
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
2475 * termhooks.h (alt_modifier, super_modifier, hyper_modifier):
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
2696 * xterm.c (x_do_pending_expose, XTframe_rehighlight):
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
2924 * alloc.c (UNMARK_BALANCE_INTERVALS): Fix to accomodate compilers
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.
dff28924 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
3274 XPutImage to make it into a grey stipple, just call
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
615d0182
DL
3448 typos and brainos, and to accomodate the lispy structures.
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
3613 receieved a new motion.
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
4779 * scroll.c (do_scrolling): Don't bcopy non-existant `nruns' or
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
4785 `face_list'; do free `max_ascent' element.
4786 (make_frame_glyphs): Don't allocate nonexistent elements `nruns'
4787 and `face_list'; do allocate `max_ascent' element.
4788 (update_frame): Replaced use of macro LINE_HEIGHT with element
4789 frame element `pix_height'.
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
4809 * ymakefile (ralloc.o): Delete dep mem_limits.h
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
JB
5111 (POSN_WINDOW, POSN_BUFFER_POSN, PONS_SCROLLBAR_BUTTON)
5112 (POSN_WINDOW_POSN, POSN_TIMESTAMP): New macros, to futher
615d0182 5113 diasassemble 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.
5149 (modifier_names, modifer_symbols): New variables, used to
5150 create the Qevent_symbol_elements property.
5151 (modify_event_symbol): Change the format of the modified
5152 symbol cache; there are too many modifier bits now to use a
5153 vector indexed by a modifier mask. Use an assoc-list instead.
5154 Document the format of the cache.
5155 Put the Qevent_symbol_elements property on each new symbol,
5156 instead of a Qevent_unmodified property.
5157 (symbols_of_keyboard): Put Qevent_symbol_elements properties on
5158 the symbols specified in head_table, not Qevent_unmodifed properties.
5159 Initialize and staticpro modifier_symbols, and staticpro the
5160 window elements of button_down_location.
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
5212 * insdel.c: #include "intervals.h"
5213 (prepare_to_modify_buffer): Call verify_interval_modification.
5214 (insert_from_string): Call offset_intervals and
5215 graft_intervals_into_buffer.
5216 (del_range): Call offset_intervals.
5217 (insert): Call offset_intervals.
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
5552 caller if the caller was signalling a quit.
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.
5612 (Ffile_writable_p, Ffile_readable_p): Use abspath, not filename,
5613 (Ffile_executable_p, Ffile_exists_p): to run the handler.
5614 (Fset_file_modes, Ffile_directory_p, Ffile_modes): Likewise.
5615 (Ffile_newer_than_file_p): GCPRO around expand_and_dir_to_file.
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
dff28924
SS
5644 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
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
5709 returned by gettimeofday doesn't say whether daylight savings is
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
6092 resize one of the undeleteable windows into nothingness. So call
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
6641 * keyboard.c (read_key_sequence): Clear the eighth bit of the
6642 character from the key sequence, NOT the index of the character IN
6643 the key sequence. How many tries will it take to get it right?
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.
6752 (Fcopy_file, Fmake_directory, Fdelete_directory, Fdelete_file):
6753 (Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
6754 (Ffile_exists_p, Ffile_executable_p, Ffile_readable_p, Ffile_symlink_p)
6755 (Ffile_writable_p, Ffile_directory_p, Ffile_accessible_directory_p):
6756 (Ffile_modes, Fset_file_modes, Ffile_newer_than_file_p):
6757 (Fwrite_region, Fverify_visited_file_modtime):
6758 Use find_file_handler; call the handler and return.
6759 (Finsert_file_contents): Use find_file_handler;
6760 cannot just return after the handler, but must handle VISIT.
dff28924 6761 (syms_of_fileio): Set up Qcopy_file, etc.
615d0182
DL
6762 * dired.c (Fdirectory_files, Ffile_name_completion):
6763 (Ffile_name_all_completions, Ffile_attributes):
6764 Use find_file_handler; call the handler.
6765 (syms_of_dired): Set Qfile_attributes, etc.
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
6777 nil as the name; this will display samething generically
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
6996 `horizontal split.'
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
7015 machine- and system-dependend files can include each other
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
7026 and supercede the real docstring.
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
7210
72111992-06-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7212
7213 * window.c (Fset_window_dedicated_p):
7214 Replaces Fset_window_buffer_dedicated. Second arg just t or nil.
7215
72161992-06-22 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7217
da1d68b2 7218 * syntax.h (SYNTAX, SYNTAX_MATCH, SYNTAX_COMSTART_FIRST, etc.):
615d0182
DL
7219 Cast character to unsigned char before indexing.
7220
72211992-06-19 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7222
7223 * xterm.c (x_wm_set_size_hint): Set size_hints.flags to indicate
7224 that we are providing the base_width and base_height data.
7225
7226 * xfns.c (Fx_create_screen): Default the internal border width to
7227 2; this matches XTerm.
7228
7229 * syntax.c (Fparse_partial_sexp): Doc fix.
7230
7231 * syntax.c (Fparse_partial_sexp): Added phony argument list to
7232 comment containing the docstring for this function, so that
7233 make-docfile.c will get the right arguments.
7234
7235 * xfns.c (x_set_name): Don't go through the X11 brouhaha to set
7236 the name unless we're actually setting it to something different
7237 from the current name.
7238
72391992-06-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7240
7241 * eval.c (syms_of_eval): Don't forget to escape the ends of the
7242 lines in the docstring for `debug-on-quit'.
7243
7244 * keyboard.c (Fread_key_sequence): Reversed sense of CONTINUE_ECHO
7245 argument - set this_command_key_count to zero iff CONTINUE_ECHO is
7246 Qnil, not iff it's non-Qnil.
7247
72481992-06-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
dff28924 7249
615d0182
DL
7250 * search.c: Changed to remember the object in which the last
7251 search was done, so that markers from match data are placed in
7252 that buffer, instead of the current buffer.
7253 (search_regs_from_string): Replaced with...
7254 (last_thing_searched): This is either Qnil, meaning no searching
7255 has been done, Qt, meaning that the last search was done in a
7256 string, or a buffer object, meaning that the last search was done
7257 in that buffer.
7258 (syms_of_search): Initialize and staticpro last_thing_searched.
7259 (Flooking_at, search_buffer): Set last_thing_searched to the
7260 current buffer.
7261 (Fstring_match): Set last_thing_searched to Qt.
7262 (Fmatch_data): Test last_thing_searched to see if any searching
7263 has been done, and construct integers or markers in the right
7264 buffer. Abort if it's not Qt, Qnil, or a buffer.
7265 (Fstore_match_data): Set last_thing_searched according to the
7266 things we find in LIST.
dff28924 7267
615d0182
DL
72681992-06-16 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7269
7270 * fns.c (Fload_average): Document the fact that this sometimes
7271 returns a list of fewer than three elements, on systems which
7272 don't provide 5- and 15-minute load averages.
7273
72741992-06-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
dff28924 7275
615d0182
DL
7276 * xterm.c (XTread_socket): If an event arrives to a screen S,
7277 don't attribute them to SCREEN_FOCUS_SCREEN (S) here. Do that
7278 synchronously, when the events are dequeued. This keeps events
7279 from being accidentally routed to the wrong screen, if we
7280 temporarily redirect a screen's focus.
7281 * keyboard.c (kbd_buffer_store_event): If the character being
7282 stuffed is a quit character, do the SCREEN_FOCUS_SCREEN
7283 redirection to it here.
7284 (kbd_buffer_get_event): And do it here, before returning the
7285 event.
dff28924 7286
615d0182
DL
7287 * eval.c (Finteractive_p): This assumed that if the function in
7288 the top frame of the lisp backtrace was not a Lisp_Compiled
7289 object, then Finteractive_p must have an explicit frame on the top
7290 of the stack, which we could skip. It didn't bother to follow the
7291 symbol function chaining, and it would break if any C code called
7292 from a non-compiled function tried to call Finteractive_p anyway.
7293 Changed this to actually check if the top frame's effective
7294 function is the Lisp_Subr for Finteractive_p. This also used to
7295 skip any number of frames for special forms and/or Fbytecode
7296 calls. Changed this to skip an Fbytecode frame (if present),
7297 followed by any number of special form frames.
7298
72991992-06-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7300
7301 * eval.c (struct backtrace): Doc fix.
7302
73031992-06-12 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7304
7305 * m/hp300bsd.h (LOAD_AVE_TYPE): This is long, not double.
7306 (LOAD_AVE_CVT): Adjusted as appropriate.
7307
7308 * fns.c: Moved lots of system-dependent preprocessor cruft
7309 dealing with getting the load average to `getloadavg.c'.
7310 (Fload_average): Guts moved to `getloadavg.c'.
7311 * getloadavg.c: New file, containing the necessary mess to get the
7312 load average on many different systems. This file is supposed to
7313 be Emacs-independent.
7314 * ymakefile (obj): Add getloadavg.o to the list.
7315 (getloadavg.o): Note that this depends on its source, and config.h.
7316
7317 * screen.c (Fdelete_screen): Typo in loop looking for new
7318 last_nonminibuf_screen - change `screen = XCONS (screens)->cdr`
da1d68b2 7319 to `screens = XCONS (screens)->cdr`
615d0182
DL
7320
7321 * xdisp.c (echo_area_display): Don't neglect to draw all the lines
7322 of the minibuffer window (or echo area) when a message is being
7323 displayed. If the minibuffer is more than one line high, they
7324 should all be blanked.
7325
73261992-06-10 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7327
7328 * sysdep.c [POSIX_SIGNALS] (sys_signal): Fix typo - rather than
7329 calling new_action as if it were a function, call sigaction.
7330
73311992-06-09 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7332
7333 * lisp.h (Qnumberp, Qnumber_or_marker_p): Declared.
7334
7335 * eval.c (wants_debugger): Changed NULL to NILP.
7336 Who installed these calls to NULL?
7337
73381992-06-09 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7339
7340 * dispnew.c (Fsit_for): Don't forget to actually set sec from ARG.
7341
7342 * termhooks.h (struct input_event): Doc fix - for mouse clicks, .x
7343 and .y give the position in characters, not in pixels.
7344
7345 * keyboard.c (format_modifiers): Order the modifier letters
7346 alphabetically - control, meta, shift, and up.
7347
73481992-06-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7349
7350 * xfns.c: Move some extern decls out of #if 0, to top of file.
7351
73521992-06-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7353
7354 * window.c (Fcoordinates_in_window_p): Docstring fix.
7355
7356 * buffer.c (Fother_buffer): Put a comma between arguments BUFFER
7357 and VISIBLE_OK in the argument list. Duh.
7358
7359 * screen.c (Fdelete_screen): Remember that s is a SCREEN_PTR *,
7360 not a Lisp_Object.
7361
7362 * search.c (search_regs): Doc fix.
7363 (compile_pattern): Take a new argument - the search register
7364 structure - so we can reassure the regex routines that the
7365 registers have been allocated.
7366 (Flooking_at, Fstring_match, search_buffer): Changed to pass
7367 &search_regs to compile_pattern.
7368 (search_buffer): When we've searched for a literal string and
7369 found it, make sure that the search registers are allocated before
7370 stuffing the location of the search into them.
7371 (Fstore_match_data): If we need to allocate more registers,
7372 allocate them using re_set_registers, instead of just storing the
7373 new registers and hoping that regex doesn't free them.
7374
7375 * search.c (Freplace_match): Doc fix.
7376
73771992-06-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7378
7379 * screen.c (Fdeiconify_screen): Function deleted.
7380 It was the same as make-screen-visible.
7381
73821992-06-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7383
7384 * keyboard.c: Doc fix.
7385
7386 * floatfns.c (Fcbrt): Renamed from Fcube_root, and #if 0'd.
7387
7388 * lisp.h (CHECK_NUMBER_OR_FLOAT*): Use Qnumberp or Qnumber_or_marker_p.
7389 * data.c (syms_of_data): Staticpro those.
7390 (Qinteger_or_float_p, Qinteger_or_float_or_marker_p): Deleted.
7391 (Fnumberp, Fnumber_or_marker_p): Define these always,
7392 but make them work even if not LISP_FLOAT_TYPE.
7393
73941992-06-05 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
7395
7396 * config.h.in: Undefine REL_ALLOC if a system specific file
7397 defines SYSTEM_MALLOC.
7398
7399 * sysdep.c (save_signal_handlers): Cast result of signal to
7400 avoid compiler warning.
7401 * process.c (send_process): Likewise.
7402
74031992-06-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
dff28924 7404
615d0182
DL
7405 * keyboard.c (Fread_key_sequence): New 2nd arg CONTINUE_ECHO
7406 added for the sake of universal-argument.
dff28924 7407
615d0182
DL
74081992-06-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7409
7410 * editfns.c (Fset_default_file_mode): Function deleted.
7411 (Funix_sync): Moved.
7412 * fileio.c (Funix_sync): Moved to here.
7413
7414 * xfns.c (Fx_erase_rectangle, Fx_draw_rectangle, Fx_contour_region):
7415 (Fx_uncontour_region): #if 0 these.
7416 (x_rectangle, outline_region): Likewise.
7417 (syms_of_xfns): #if 0 the defsubrs.
7418
7419 * dispnew.c (Fsleep_for, Fsit_for): Clean up error messages.
7420
7421 * eval.c, print.c, keyboard.c: Doc fix.
7422
7423 * xfns.c (Fx_horizontal_line): Disabled, since not documented.
7424
7425 * fileio.c (Fdelete_directory): Renamed from Fremove_directory.
7426
7427 * unexencap.c: Deinstalled (renamed to =unexencap.c)
7428 since awaited papers never arrived.
7429
7430 * xfns.c: Doc fix.
7431
74321992-06-04 Roland McGrath (roland@geech.gnu.ai.mit.edu)
7433
7434 * eval.c (stack_trace_on_error, debug_on_error): Made Lisp_Objects V*.
7435 (syms_of_eval): Changed DEFVAR_BOOLs to DEFVAR_LISPs.
7436 (wants_debugger): New fn.
7437 (find_handler_clause): Use it to look in debug-on-error and
7438 stack-trace-on-error lists.
7439
74401992-06-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7441
7442 * floatfns.c (Fbessel_*, Ferf, Ferfc, Flog_gamma): Turned off;
7443 not clearly worth including.
7444 (Fasinh, Facosh, Fatanh, Fsinh, Fcosh, Ftanh): Likewise.
7445
74461992-06-03 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7447
7448 * minibuf.c, keyboard.c: Doc fix.
7449
7450 * window.c (Fwindow_at): Fix number of args--minimum 2, max 3.
7451
7452 * screen.c: Doc fix.
7453
74541992-06-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7455
7456 * lread.c (Feval_buffer): Don't read any arguments, if interactive.
7457
74581992-06-02 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7459
7460 * screen.c (make_screen_without_minibuffer): Apply XSCREEN to
7461 Vdefault_minibuffer_screen before calling SCREEN_LIVE_P. The
7462 argument to SCREEN_LIVE_P must be a SCREEN_PTR, not a Lisp_Object.
7463
7464 * dispnew.c (Fsit_for): This used to compare arg with 0 and return
7465 Qt immediately. It should actually call sit_for anyway, because
7466 sit_for needs to test for input and do the redisplay.
7467 (sit_for): Compare sec and usec with zero here, after we've
7468 looked for input and done a redisplay.
7469
7470 * lread.c (Feval_buffer): Use NILP, not NIL_P.
7471
74721992-06-01 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
7473
7474 * buffer.h: New macro, BUF_SET_PT.
7475
7476 * lread.c: New subr `eval-buffer', replaces `eval-current-buffer',
7477 which is now defined in simple.el.
7478
74791992-05-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7480
7481 * screen.c (Fdelete_screen): If we're deleting the default
7482 minibuffer screen, try to find another minibuffer screen.
7483
74841992-05-29 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7485
7486 * buffer.c (Fother_buffer): New optional argument VISIBLE_OK,
7487 indicating that buffers currently visible in windows should not be
7488 discriminated against.
7489
74901992-05-28 Ken Raeburn (raeburn@cygnus.com)
dff28924 7491
615d0182
DL
7492 * screen.c (Fdelete_screen): Fix bugs in walking screen list.
7493 (make_screen_without_minibuffer): Signal an error if the default
7494 minibuffer screen is dead.
dff28924 7495
615d0182
DL
7496 * xfns.c (x_set_name): Use ICCCM-conforming scheme for changing
7497 window name in X11.
7498 (Fx_create_screen): Likewise.
7499
75001992-05-27 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7501
7502 * xselect.c: Support getting and setting the obsolete X cut
7503 buffers.
7504 (Qcut_buffer0): New atom, denoting the X cut buffer 0.
7505 (syms_of_xselect): Initialize and staticpro it.
7506 (Fx_own_selection): If TYPE is Qcut_buffer0, interpret this to
7507 mean that we should set cut buffer 0 to STRING.
7508 (Fx_selection_value): If TYPE is Qcut_buffer0, interpret this to
7509 mean that we should retrieve the value of cut buffer 0.
7510
75111992-05-21 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7512
7513 * xterm.c (construct_mouse_click): Removed extra assignment of
7514 result->timestamp.
7515
7516 * keyboard.c (last_event_timestamp): Doc fix.
7517 * xselect.c (last_event_timestamp): Declare it extern here.
7518 (mouse_timestamp): Variable deleted. last_event_timestamp is a
7519 more accurate thing to use here.
7520 (own_selection, get_selection_value): Use last_event_timestamp
7521 instead of mouse_timestamp.
7522 * keyboard.c (make_lispy_event): Pass the event's timestamp
7523 through the make_number function, to assure that it is properly
7524 tagged before incorporating it into the lispy event.
7525 * xterm.c (construct_mouse_click): The timestamp element of a
7526 struct input_event is no longer a Lisp_Object; it is now an
7527 unsigned long. So don't use XSET to assign to it.
7528 (XTread_socket): Same here, in processing KeyPress events.
7529
7530 * keyboard.c (Fexecute_extended_command): Properly initialize
7531 this_command_keys to the concatenation of the sequence that
7532 invoked Fexecute_extended_command, the characters making up the
7533 name of the command we're running, and a return character.
7534 Previously, this code would set it to the last key typed while
7535 reading the function name from the minibuffer, followed by the
7536 name of the function being run.
7537
75381992-05-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7539
7540 * xterm.c (x_display_box_cursor): Draw the cursor at curs_{x,y},
7541 rather than at s->cursor_{x,y}. If cursor_in_echo_area is set,
7542 then s->cursor_{x,y} does not accurately describe the position of
7543 the cursor. However, if we're not updating, then curs_{x,y} are
7544 garbage; set them from s->cursor_{x,y}.
7545
7546 * dispnew.c (update_screen): Check current_screen->enable and
7547 current_screen_used to see if there is any text on the last line,
7548 not desired_screen->{enable,used}. When the line isn't enabled,
7549 move to line SCREEN_HEIGHT (s) - 1, not SCREEN_HEIGHT (s).
7550 Rearranged conditionals.
7551
7552 * dispnew.c (cursor_in_echo_area): Document the interpretations of
7553 positive and negative values of this variable.
7554
75551992-05-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7556
7557 * dispnew.c (Fding): If have arg, don't end a keyboard macro.
7558
75591992-05-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7560
7561 * dispnew.c (sit_for): New function, which is a slight
7562 generalization of Fsit_for; you can tell it that it's waiting for
7563 input, so C-g gets handled properly.
7564 (Fsit_for): Call it, instead of replicating all its guts.
7565 * keyboard.c (read_char): Call sit_for instead of Fsit_for, and
7566 indicate that we're awaiting keyboard input.
7567
7568 * dispnew.c (Fsit_for): Rename arguments to match docstring. Use
7569 NILP instead of EQ (foo, Qnil). If nodisp is non-nil, call
7570 wait_reading_process_input with do_display 0, instead of 1; this
7571 will inhibit spurious redisplays when process input arrives during
7572 a sit-for.
7573
da1d68b2 7574 * process.c (Faccept_process_output): Pass zero as read_kbd
615d0182
DL
7575 argument to wait_reading_process_input when PROC is nil, not when
7576 PROC is non-nil.
7577
7578 * process.c (wait_reading_process_input): Declare read_kbd to be a
7579 Lisp_Object, and use the tagging to tell the difference between a
7580 process object and an integer.
7581 * dispnew.c (Fsleep_for, Fsit_for, Fsleep_for_millisecs): Pass
7582 read_kbd argument to wait_reading_process_input as a Lisp_Object.
7583 * keyboard.c (kbd_buffer_get_event): Same.
7584 * process.c (Faccept_process_output, send_process): Same.
7585
7586 * keyboard.c (read_char): Use save_getcjmp and restore_getcjmp
7587 instead of doing the bcopy explicitly.
7588
7589 * xterm.c (XTread_socket): When handling an EnterWindow event,
7590 don't bother to check waiting_for_input. It's not necessary.
7591
7592 * keyboard.c (read_char): Don't clear waiting_for_input and
7593 input_available_clear_time here.
7594 (quit_throw_to_read_char): It's already done here.
7595
7596 * keyboard.c (quit_throw_to_read_char): Use
7597 clear_waiting_for_input instead of clearing waiting_for_input
7598 explicitly.
7599
76001992-05-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7601
7602 * keyboard.c (read_char): Call clear_waiting_for_input instead of
7603 clearing waiting_for_input and input_available_clear_time
7604 explicitly.
7605
76061992-05-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7607
da1d68b2 7608 * ymakefile [defined (__GNUC__) and __GNUC__ > 1]: Define
615d0182
DL
7609 YMF_PASS_LDFLAGS so that it can deal with an empty flags argument.
7610
7611 * callproc.c (Fcall_process): Under VMS, a nil INFILE argument
7612 means to read from "NLA0:", not "/dev/null".
7613
7614 * callproc.c (Fcall_process): Use nil as the value for display
7615 (the fourth argument) when nargs >= 4, not when nargs >= 3.
7616
76171992-05-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
dff28924 7618
615d0182 7619 * termhooks.h: Change timestamp from a Lisp_Object to an unsigned
da1d68b2 7620 long.
615d0182 7621 * keyboard.c (kbd_buffer_store_event): We don't have to apply the
da1d68b2 7622 XINT macro to the timestamp member of the event anymore.
615d0182
DL
7623
7624 * process.c (wait_reading_process_output): Don't turn off polling.
7625
7626 * sysdep.c (setpgrp_of_tty): Pass the address of pid, not pid
7627 itself.
7628
7629 * process.c: Deleted cpp tangle for dealing with system-dependent
7630 tty handling; #included "systerm.h".
7631 * systerm.h: Add some of the things that were done in process.c:
7632 If titan is #defined, then we should include <sys/ttyhw.h> and
7633 <sys/stream.h> along with the other SYSV pty stuff.
7634 If HPUX is #defined, then EMACS_HAVE_TTY_PGRP isn't true.
7635 If XENIX is #defined, then we shouldn't try to use TIOCGETC.
7636 * ymakefile: Note that process.o depends on systerm.h now.
7637
76381992-05-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7639
da1d68b2 7640 * callint.c (Fprefix_numeric_value): Value 1 for symbol other than `-'.
615d0182
DL
7641
76421992-05-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7643
7644 * cmds.c (Fforward_line): If the buffer is empty, don't try to see
7645 if it contains a newline, and moving nowhere at eob after
7646 non-newline should return 1, not 0.
7647
7648 * search.c (scan_buffer): Doc fix.
7649
7650 * buffer.c (Fbuffer_disable_undo): Accept a buffer name as an
7651 argument.
7652
76531992-05-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7654
dff28924
SS
7655 * fileio.c: Include config.h first thing.
7656
615d0182
DL
7657 * keyboard.c (clear_input_pending): New subroutine.
7658 * process.c (wait_reading_process_input): Make C-g really quit in
7659 sit-for case.
7660
da1d68b2 7661 * ymakefile (LD_SWITCH_SYSTEM): Don't use -X with GCC.
615d0182
DL
7662
76631992-05-12 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7664
7665 * eval.c (Fapply): Use indirect_function, instead of doing a dumb
7666 loop.
7667 * keymap.c (get_keymap_1): Same.
7668 * macros.c (Fexecute_kbd_macro): Same.
7669
7670 * buffer.c (init_buffer_once): Don't disable undos for *scratch*
7671 here. Do it in loadup.el.
7672
7673 * buffer.c (init_buffer_once): Doc fix.
7674
7675 * doc.c (Fdocumentation): After extracting the doc string from a
7676 lambda or autoload expression, don't fall through to the default
7677 case and signal an invalid function error; instead, do a `break'.
7678
7679 * doc.c (Fdocumentation): Use EQ (x, y) instead of XSYMBOL (x) ==
7680 XSYMBOL (y).
7681
7682 * doc.c (Fdocumentation): When decyphering a function made from
7683 conses, use 'else if' for the chain of alternatives instead of
7684 just 'if'. It used to be that each alternative returned, but
7685 that's not true anymore.
7686
7687 * alloc.c (Fgarbage_collect): Don't call truncate_undo_list on
7688 buffers whose undo list is 't.
7689
7690 * doc.c (Fdocumentation): Renamed argument `fun1' to `function',
7691 so make-docstring will list argument consistently with the
7692 docstring.
7693
76941992-05-11 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
7695
7696 * xterm.h: Removed definition of `RES_CLASS'.
7697
7698 * xfns.c (x_get_arg): Eliminated `screen_name' parameter. No
7699 longer uses screen name as X resource search component.
7700 All calls to x_get_arg changed accordingly.
7701 Global variable `screen_class' and #define `SCREEN_CLASS' removed.
7702
7703 * xterm.c (XTread_socket): Added basic structure for handling
7704 various ClientMessage events, using new global variables
7705 `Xatom_wm_take_focus', `Xatom_wm_save_yourself',
7706 `Xatom_wm_delete_window', `Xatom_wm_configure_denied',
7707 `Xatom_wm_moved'.
7708 * xfns.c: Declare these variables extern.
7709 (syms_of_xfns): Initialize these variables.
7710
7711 * xselect.c (Fx_own_selection, Fx_selection_value): New optional
7712 parameter `type', to specify the selection type.
7713 (syms_of_xselect): New symbols Qprimary, Qsecondary, Qclipboard
7714 initialized.
7715
77161992-05-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7717
7718 * data.c (Qcyclic_function_indirection): New error condition.
7719 (indirect_function, Findirect_function): New functions.
7720 (syms_of_data): Initialize Qcyclic_function_indirection, put the
7721 error properties on it, and staticpro it. Defsubr
7722 Findirect_function.
7723 * lisp.h (indirect_function, Findirect_function): Declare them here.
7724 * callint.c (Fcall_interactively): Get symbol's function by
7725 calling indirect_function, instead of just looping.
7726 * doc.c (Fdocumentation): Same.
da1d68b2
JB
7727 * eval.c (Finteractive_p, Fcommandp, do_autoload, Feval)
7728 (Ffuncall): Same.
615d0182
DL
7729 * keyboard.c (Fcommand_execute): Same.
7730
7731 * data.c (Fsymbol_function): Name the argument `symbol' instead of
7732 `sym', so make-docstring will list argument consistently with the
7733 docstring.
7734
7735 * process.c (wait_reading_process_input): Make sure the screen
7736 isn't garbaged (and therefore not displayed) before we enter the
7737 select and start waiting for input.
7738
7739 * keyboard.c: #include <systime.h>.
7740 * ymakefile (keyboard.o): This depends on systime.h.
7741 * keyboard.c (input_available_clear_word): Replaced with
7742 input_available_clear_time, which is a pointer to an EMACSTIME;
7743 sometimes the time information is larger than a single word.
7744 (read_char): Changed ..._word to ..._time.
7745 (input_available_signal): Use the EMACS_SET_SECS_USECS macro to
7746 clear *input_available_clear_time, instead of zapping a zero into
7747 *input_available_clear_word.
7748 (set_waiting_for_input, clear_waiting_for_input): Adjusted
7749 appropriately.
7750
77511992-05-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7752
7753 * editfns.c (make_buffer_string): New function.
7754 * lisp.h (make_buffer_string): Declare it here.
7755 * editfns.c (Fbuffer_substring): Call make_buffer_string instead
7756 of writing it out.
7757 (Fbuffer_string): Call make_buffer_string instead of make_string,
7758 so we can deal with buffer relocations.
7759 * minibuf.c (read_minibuf): Same here.
7760
77611992-05-09 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7762
7763 * syssignal.h (sigunblock): New macro, taken from 18.58's
7764 emacssignal.h file.
7765 * sysdep.c (request_sigio): Use the sigunblock macro to enable
7766 reciept of SIGWINCH, instead of the dysfunctional sigblockx.
7767
77681992-05-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7769
7770 * search.c: Doc fix.
7771
77721992-05-06 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7773
7774 * emacs.c (decode_env_path): If EVARNAME is zero, don't try to
7775 call getenv on it.
7776 * lread.c (init_lread): When we don't have an environment variable
7777 to check, pass 0 instead of the empty string.
7778
7779 * alloc.c (Fmake_marker): Use `SIGMASKTYPE' instead of `int'.
7780 Instead of calling sigsetmask twice - once to get the mask, and
7781 again to restore it - call sigblock, specifying no additional
7782 signals.
7783
77841992-05-05 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7785
7786 * alloc.c: #include <syssignal.h>, for the sake of the
7787 bug-catching code in Fmake_marker.
7788 ymakefile: Add dependency.
7789
7790 * syssignal.h [not POSIX_SIGNALS] (SIGFULLMASK): New definition,
7791 for symmetry with the "defined (POSIX_SIGNALS)" case.
7792
7793 * callproc.c (child_setup): Since we always get the environment
7794 from Vprocess_environment, don't bother to take the environment
7795 the subprocess should inherit as an argument anymore.
7796 * process.c (create_process): Don't pass environment as a
7797 variable. Just preserve it across call to fork.
7798
77991992-05-04 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7800
7801 * floatfns.c: #include <syssignal.h>.
7802 (float_error): Use SIGEMPTYMASK instead of zero.
dff28924 7803
615d0182
DL
7804 * syssignal.h [POSIX_SIGNALS] (sigmask): Defined to expand to a
7805 statement expression under GCC, or a function call otherwise.
7806 (sigpause, sigblock, sigunblock, sigsetmask): These are now
7807 K&R-compatible macros.
7808 * systerm.h [POSIX_SIGNALS] (sys_sigmask): Here is the function
7809 the POSIX version of sigmask calls when we're not compiling with
7810 GCC.
7811 * alloc.c (Fmake_marker): Undo changes of Apr 29.
7812 * callproc.c (Fcall_process): Same.
7813 * data.c (arith_error): Same.
7814 * floatfns.c (float_error): Same.
7815 * keyboard.c (gobble_input): Same.
7816
7817 * sysdep.c (request_sigio, unrequest_sigio)
7818
78191992-04-29 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7820
7821 * x11term.h (CLASS): Change this from "emacs" to "Emacs"; class
7822 names should always start with an upper-case letter.
7823
7824 * syssignal.h: Arranged cpp conditionals so that the specific
7825 cases come first, generic cases last.
7826
7827 * syssignal.h (sigpause, sigblock, sigunblock, sigsetmask): Macros
7828 removed; they require GCC, and Emacs 19 should compile without GCC.
da1d68b2
JB
7829 (EMACS_SIGPAUSE, EMACS_SIGBLOCK, EMACS_SIGUNBLOCK)
7830 (EMACS_SIGSETMASK, EMACS_SIGFREE, EMACS_SIGHOLDX, EMACS_SIGBLOCKX)
7831 (EMACS_SIGUNBLOCKX, EMACS_SIGPAUSEX): These are new macros that
615d0182
DL
7832 don't require GCC, but expand to statements.
7833 * callproc.c (Fcall_process): Use new EMACS_SIG* macros from
7834 syssignal.h.
7835 * keyboard.c (gobble_input): Same.
7836 * sysdep.c (request_sigio, unrequest_sigio): Same.
7837 * x11term.h (BLOCK_INPUT, UNBLOCK_INPUT): Same.
7838 * alloc.c (Fmake_marker): Same.
7839 * data.c (arith_error): Same.
7840 * floatfns.c (float_error): Same.
7841
78421992-04-28 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7843
7844 * ymakefile: If we're using GCC version 2.0 or later, use "$(CC)
7845 -nostdlib" as the linker. This will allow us to find libgcc.a
7846 even when GCC puts it in a really weird place.
7847 (YMF_PASS_LDFLAGS): New macro.
7848 (temacs): Use it.
7849
7850 * s/hpux.h: Doc fix.
7851
7852 * filelock.c (egetenv): Declare this.
7853 (lock_path, SUPERLOCK_NAME, superlock_path): New variables and
7854 macros.
7855 (MAKE_LOCK_PATH, lock_file, unlock_file, lock_superlock): Use the
7856 variables lock_path and superlock_path instead of the PATH_LOCK
7857 and PATH_SUPERLOCK macros.
7858 (init_filelock): New function.
7859 * emacs.c (main): Call the init_filelock function.
7860 * paths.h.in (PATH_SUPERLOCK): Removed. This is now calculated
7861 from PATH_LOCK or from the EMACSLOCKDIR environment variable.
7862
7863 * filelock.c (MAKE_LOCK_PATH): New macro.
7864 (lock_file, unlock_file, Ffile_locked_p): Use it.
7865
7866 * syntax.c (Fmodify_syntax_entry): Note that '-' is a synonym for
7867 ' ' (both denote whitespace), that '\\' denotes the escape class,
7868 and that '/' denotes the character-quote class. The description
7869 used to claim that '\\' denoted the character-quote class, and
7870 neglected to mention '-' and '/'.
7871
7872 * filelock.c (lock_file): Doc fix.
7873
78741992-04-27 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7875
7876 * callproc.c (init_callproc): Get the default Vexec_path from the
7877 environment variable "EMACSPATH"; get Vdata_directory from
7878 "EMACSDATA".
7879
7880 * ymakefile: Fix #endif and #else comments.
7881
dff28924 78821992-04-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
7883
7884 * ymakefile (xemacs): Link xemacs to temacs if HAVE_SHM.
7885
7886 * ymakefile (paths.h, config.h): Never copy, always fail.
7887
7888 * process.c (wait_reading_process_input): Redisplay if screen_garbaged.
7889 Call do_pending_window_change first.
7890 Include dispextern.h.
7891 * ymakefile (process.o): Added dependency.
7892
7893 * ymakefile (OLDXMENU_OPTIONS): New macro, used compiling oldxmenu.
7894
78951992-04-25 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7896
7897 * ymakefile: Changed all references to LD_CMD to LINKER, for
7898 compatibility with the 18.58 configuration files.
7899 * s/aix3-1.h, s/sunos4shr.h: Same here.
7900
7901 * ymakefile: Doc fixes.
7902
7903 * ymakefile (CC, MAKE): Set these variables from optional macros.
7904 Change all uses of `make' to ${MAKE}.
7905
da1d68b2 7906 * ymakefile: Use HAVE_X11 as alias for X11.
615d0182
DL
7907
7908 * ymakefile (LIB_GCC, GNULIB_VAR): Handle GCC 2.
7909
7910 * process.c (allocate_pty): Re-arranged conditionals to put the
7911 system-specific-case first, and the generic case in the #else
7912 section, for consistency with the rest of Emacs.
7913
7914 * process.c (allocate_pty): Wait until we fail to open three ptys
7915 in a row before concluding that we've reached the end of the ptys.
7916
79171992-04-22 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7918
7919 * ralloc.c: #include "getpagesize.h".
7920
7921 * search.c (Flooking_at): Use search_regs.num_regs instead of
7922 RE_NREGS. As of regex version 0.4, the compiler allocates the
7923 registers, and may allocate more than RE_NREGS.
7924 (search_buffer): Same.
7925 (Freplace_match): Use search_regs.num_regs to tell how many
7926 registers are valid. Also note that if none are valid, no search
7927 has been performed.
7928 (match_limit): Same.
7929 (Fmatch_data): Same.
7930 (Fstore_match_data): If we're trying to store more registers than
7931 search_regs has allocated, re-allocate them to make room.
7932
79331992-04-21 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7934
7935
7936 * callproc.c (egetenv): Declare the type of VAR.
7937
7938 * lisp.h: Don't undefine NULL. There is no longer any conflict.
7939
7940 * lisp.h (NUMBERP): New macro.
7941 * editfns.c (Fformat): Protect the sections that deal with
7942 Lisp_Float objects with a "#ifdef LISP_FLOAT_TYPE".
7943 * bytecode.c (Fbyte_code): Use the NUMBERP macro instead of
7944 explicitly checking for the Lisp_Float tag.
7945 * callint.c (Fcall_interactively): Same here.
7946
7947 * xrdb.c (magic_searchpath_decoder): Re-allocate string as needed,
7948 rather than making it a fixed-size array.
7949
7950 * xfns.c (Fx_rebind_key): Don't declare modifier_list to be a
7951 register variable. It's too big, and we need the address of its
7952 first element when we pass it to XRebindKeysym anyway.
7953
7954 * fileio.c (Fdo_auto_save): Doc fix.
7955
79561992-04-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7957
7958 * search.c (search_buffer): Cast RE_EXACTN_VALUE to char, because
7959 the regex-0.4 distribution says so.
7960
7961 * ymakefile (dired.o): This depends on regex.h.
7962
7963 * process.c (wait_reading_process_input): There is code here which
7964 sends SIGIO to Emacs if we thought we had input available but
7965 didn't get SIGIO. If the system doesn't have SIGIO, then
7966 #ifdef it out.
7967
7968 * print.c (Fexternal_debugging_output): Arguments were declared
7969 ANSI-style - rewritten in K&R 1 fashion.
7970
7971 * floatfns.c (IN_FLOAT): Cast the zero in the `else' clause of the
7972 conditional expression to SIGTYPE, to match the type of the
7973 float_error call in the `then' clause.
7974
88c71720 7975 * s/hpux8.h: #define HPUX8; this is supposed to be customary
615d0182
DL
7976 procedure, and fileio.c was expecting it, but somehow it didn't
7977 get defined.
7978
7979 * sysdep.h: Move inclusions of [AIX] <sys/hft.h>,
7980 <sys/devinfo.h>, <sys/pty.h>, <unistd.h> [NEED_BSDTTY]
7981 <sys/bsdtty.h>, [HPUX and HAVE_PTYS] <sys/ptyio.h>, [SYSV_PTYS]
7982 <sys/tty.h>, <sys/pty.h>, and [pfa] <sys/file.h> to systerm.h;
7983 also move undefinition of LLITOUT under BSD4_1 to systerm.h.
7984 * systerm.h: They're here.
7985
7986 * xterm.c (XTcursor_to, XTclear_end_of_line): Declare to return
7987 int in the function definitions as well as their declarations.
7988
79891992-04-19 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7990
7991 * fileio.c (directory_file_name): When checking if the string ends
7992 with '/', check that slen is a valid length *before* examining
7993 dst[slen-1], not after.
7994
79951992-04-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
7996
7997 * xterm.c (x_death_handler): New function.
7998 (x_error_handler): Call x_death_handler to shut down Emacs.
7999 (x_term_init): Use x_death_handler to handle SIGPIPE, instead of
8000 x_error_handler, which expects to be passed a display and an
8001 event.
8002 * process.c (send_process): This used to set a handler to
8003 catch SIGPIPEs when writing to a subprocess, and then set the
8004 handler to SIGDFL after writing, but this would stomp on the
8005 SIGPIPE handler for for the X connection. So restore the prevous
8006 handler instead of changing to SIGDFL.
8007
80081992-04-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8009
8010 * indent.c (compute_motion): Fix skipping invis lines and
8011 truncation at right margin.
8012
80131992-04-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8014
8015 * s/hpux.h (PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Use pty_name,
dff28924 8016 not ptyname.
615d0182
DL
8017 * s/rtu.h: Same.
8018
8019 * process.c (pty_process): Add 'int' to the declaration 'static
8020 pty_processes;'. This makes it a happy declaration even when
8021 static has been #defined as the empty string.
8022 * xterm.c (XTcursor_to, XTclear_end_of_line): Same.
8023
8024 * unexec.c (sbrk): Declare this to return void * if __STDC__ is
8025 defined, or char * otherwise.
8026
88c71720 8027 * lread.c (init_lread): Re-cleaned logic. To determine whether the
615d0182
DL
8028 load path was changed before dumping, cons up a dump path and
8029 compare it. This method is more localized and accurate.
8030 (initial_path): Variable removed.
8031 (syms_of_lread): Don't staticpro.
8032
8033 * floatfns.c (float_error): Declare and define this to return
8034 SIGTYPE.
8035
8036 * systime.h [HAVE_TIMEVAL] (EMACS_GET_TIME): Declare dummy to be a
8037 real struct timezone, instead of an EMACS_TIME. Since
8038 HAVE_TIMEVAL is defined, struct timezone ought to be declared, so
8039 there's no harm in passing the genuine article.
8040
8041 * sysdep.c [USG] (rename): Place under the protection of a new
8042 preprocessor symbol, HAVE_RENAME.
8043 * s/hpux.h (HAVE_RENAME): Defined.
8044
8045 * sysdep.c [USG] (setpriority): Declare to return int, not void.
8046
8047 * s/template.h: Add template section for HAVE_TERMIOS.
8048
8049 * term.c (cursor_to, raw_cursor_to, fatal): Do declare the types
8050 of the arguments.
8051
80521992-04-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8053
8054 * callint.c (Fcall_interactively): When the interactive spec is
8055 a string, it may be relocated while reading the arguments. To
8056 avoid this, make a copy of the spec to refer to, instead of
8057 using a pointer to the data of the spec string.
8058
8059 * callint.c (Fcall_interactively): When following the function
8060 chain of a symbol, check for quits.
8061
80621992-04-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8063
8064 * lread.c (init_lread): Make the load path default to
8065 PATH_LOADSEARCH when we're not dumping (null purify-flag), and
8066 PATH_DUMPLOADSEARCH when we are (not (null (purify-flag))).
8067 Change from April 7th incorrectly always used PATH_DUMPLOADSEARCH.
8068
8069 * lread.c (init_lread): Cleaned up logic; to determine whether the
8070 load path was changed before dumping, remember the initial value
8071 and compare against it.
8072 (initial_path): New variable to support this.
8073 (syms_of_lread): staticpro initial_path.
8074
8075 * ymakefile: Renamed filenames like "*-dist" to "*.in".
8076
8077 * config.h.in: Doc fixes.
8078
80791992-04-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8080
8081 * config.h-dist: Renamed to config.h.in, for consistency with
8082 the installation conventions of other GNU programs.
8083 * paths.h-dist: Renamed to paths.h.in.
8084
80851992-04-11 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
8086
8087 * termcap.c: Declare getenv.
8088
80891992-04-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8090
8091 * Makefile: Renamed to Makefile.in; the configure script will edit
8092 this to produce Makefile.
8093
80941992-04-07 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8095
8096 * paths.h-dist (PATH_DUMPLOADSEARCH): New macro.
8097 * lread.c (init_lread): If we're building an Emacs to be dumped,
8098 use PATH_DUMPLOADSEARCH as the default load path, so we can
8099 correctly find our lisp files.
8100
8101 * config.h-dist, paths.h-dist: Added "-*- C -*-" to top lines, so
8102 Emacs will know that these are really C source.
8103
81041992-04-03 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8105
8106 * search.c (syms_of_search): When allocating memory
8107 searchbuf.buffer, cast the return value of malloc to unsigned char
8108 *, not char *; this changed in the most recent version of the
8109 regex code.
8110
81111992-03-31 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8112
8113 * doc.c (Fdocumentation): Don't forget to end each line of the
8114 docstring with "\n\".
8115
8116 * process.c (Fprocess_connection): Change "#ifdef 0" around this
8117 function to "#if 0".
8118
8119 * eval.c (Flet, FletX): Signal an error if one of the let's binding
8120 clauses has more than one value form, as in (let ((a 1 2)) a).
8121
8122 * eval.c (Ffuncall): Re-install change of March 10; I don't know
8123 why it went away.
8124
8125 * search.c (compile_pattern): Declare the variable which holds the
8126 return value of re_compile_pattern to be const, if this is ANSI C.
8127
8128 * alloc.c (xrealloc): Change "ese" to "else".
8129
8130 * crt0.c (start1) [sun_soft]: Change 'jst' to 'jsr'. The Sun
8131 assembly language manual doesn't list any 'jst' instruction, I
8132 don't know of one personally, and all the analogous code
8133 around it uses 'jsr'.
8134
8135 * crt0.c [m68k]: Merged with GNU C Library's version: added
8136 conditionals for sun_68881, sun_fpa, sun_soft.
8137
8138 * config.h-dist: Adjusted for renaming of share-lib to etc.
8139 * lread.c (read1): Same.
8140 * doc.c (Fdocumentation_property, Fsnarf_documentation): Same.
8141 * ymakefile: Same.
8142
81431992-03-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8144
8145 * crt0.c: Merged changes from 18.58:
8146 [hp9000s300]: Set flag_fpa. Define float_loc.
8147 [new hp assembler]: Double flag_fpa and flag_68881 if %d2!=0.
8148 (start1): Declare to be static at the top of the file.
8149 (_start): Removed static declaration in this function; since
8150 everyone wants it, we'll just put it here.
8151
81521992-03-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8153
8154 * fileio.c (Finsert_file_contents): Allow quitting from I/O.
8155 (Fcopy_file): Likewise.
8156
81571992-03-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8158
8159 * m-intel386.h (HAVE_ALLOCA): Inhibit if C_ALLOCA.
8160 (LIB_STANDARD): Alternate USG value if __GNUC__ or C_ALLOCA
8161
8162 * alloc.c (xrealloc): If handed a NULL pointer for the block to
8163 resize, malloc a new block and return that. Not all reallocs do
8164 this.
8165
8166 * m/elxsi.h: Doc fix.
8167
81681992-03-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8169
8170 * dispnew.c (Fsleep_for): Call wait_reading_process_input, whether
8171 or not we have process support; let the emulator do the work.
8172 * emacs.c (fatal_error_signal, Fkill_emacs): Call
8173 kill_buffer_processes even when subprocesses is not #defined; we
8174 have a stub.
8175
8176 * process.c [not defined (subprocesses)] (Fget_buffer_process,
8177 init_process, syms_of_process): New stub versions of these functions.
8178 * emacs.c (main): Call init_process and syms_of_process whether or
8179 not subprocesses is #defined.
8180 * xdisp.c (decode_mode_spec): Call Fget_buffer_process whether or
8181 not subprocesses is #defined.
8182
81831992-03-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8184
8185 * keyboard.c (kbd_buffer_get_event): Call
8186 wait_reading_process_input, even when subprocesses is not
8187 #defined, instead of doing a whole lot of hairy SIGIO-pausing
8188 stuff.
8189 * dispnew.c (Fsit_for): Call wait_reading_process_input, whether
8190 or not subprocesses is #defined.
8191
8192 * process.c (wait_reading_process_input): Since we're no longer
8193 checking for exceptional conditions in the call to select, all of
8194 the different ways to call select for different systems have
8195 become the same; remove the #if conditionals around this.
8196
8197 * keyboard.c (read_char): When returning quit_char because we got
8198 an interrupt signal, claim that the character came from the
8199 currently selected screen.
8200
82011992-03-16 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8202
8203 * callproc.c (Fcall_process): Doc fix.
8204
8205 * process.c [not defined (subprocesses)] (kill_buffer_processes):
8206 New dummy version of this function.
8207 * buffer.c (Fkill_buffer): Removed '#ifdef subprocesses'
8208 protection from the call to kill_buffer_processes; this is safe
8209 whether or not we actually have subprocesses.
8210
82111992-03-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8212
8213 * m/pfa50.h: New file.
8214 * process.c (create_process, process_send_signal): Added changes
8215 for m/pfa50.h.
da1d68b2
JB
8216 * sysdep.c: Same.
8217 * unexec.c: Same.
615d0182
DL
8218
82191992-03-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8220
8221 * callproc.c (child_setup): Always put the child in its own
8222 process group.
8223
82241992-03-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8225
8226 * mem_limits.h (POINTER): Doc fix.
8227
8228 * ralloc.c: Don't #include lisp.h and xterm.h; we no longer need
8229 to block input in critical sections.
8230 (r_alloc, r_alloc_free, r_re_alloc): Don't use BLOCK_INPUT and
8231 UNBLOCK_INPUT; these are no longer needed.
8232 (struct bp): Doc fix.
8233
82341992-03-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8235
8236 * ralloc.c (obtain): When deciding how many pages to request, take
8237 into account the amount of spare bytes at the end of the current
8238 page; let get be ROUNDUP (size - already_available), instead of
8239 ROUNDUP (size).
8240 (relinquish): Re-organized for clarity.
8241
8242 * editfns.c (Fcurrent_time): Updated to return the current time's
8243 seconds split into two 16-bit integers (similar to the system used
8244 by file-attributes), and the milliseconds.
8245
82461992-03-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8247
8248 * process.c (Faccept_process_output): Add new optional argument
8249 TIMEOUT-MSECS, and return non-nil iff we actually got some input
8250 from the process(es).
8251 (wait_reading_process_input): Make return value indicate whether
8252 we got some input from the specified process, when read_kbd is a
8253 process, or from any process when read_kbd isn't particular.
8254
8255 * indent.c (Fmove_to_column): Pass the correct number of arguments
8256 to Findent_to.
8257
8258 * eval.c (Ffuncall): If a subr is asking for too many arguments,
8259 abort instead of printing an error message; this is an internal
8260 flaw in Emacs, and the subr cannot be called.
8261
82621992-03-06 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8263
8264 * doc.c (Fdocumentation, Fdocumentation_property): Take optional
8265 new arg to not pass results thru substitute-command-keys.
8266
dff28924 82671992-03-05 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8268
8269 * unexmips.c (unexec): When setting up the data_section header,
8270 calculate the size of the section as "brk - data_start," not "brk
8271 - DATA_START".
8272
dff28924 82731992-02-23 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8274
8275 * fileio.c: #include "systime.h".
8276 (Fcopy_file): Use the systime.h macros to copy the time to the new
8277 file.
8278 * ymakefile: Note that fileio.o depends on systime.h.
8279
8280 * ymakefile (dispnew.o): Note that this depends on systerm.h and
8281 systime.h.
8282 (editfns.o, xterm.o, sysdep.o): Note that this depends on
8283 systime.h.
8284 (emacs.o, keyboard.o, process.o, sysdep.o): Note that these depend
8285 on systerm.h.
8286
8287 * systerm.h: Expanded to handle getting and setting terminal
8288 parameters:
8289 (struct emacs_tty): New structure, which consolidates all of the
8290 old tty parameter structures.
8291 (EMACS_GET_TTY, EMACS_SET_TTY, EMACS_TTY_TABS_OK): New macros.
8292 * sysdep.c (TABS_OK): Definitions of this macro removed;
8293 EMACS_TTY_TABS_OK replaces it.
8294 (TERMINAL): Definitions removed; now we use struct emacs_tty.
8295 [VMS] (input_chan): Renamed to...
8296 (input_fd): and defined even when VMS isn't; in that case, we
8297 leave it initialized to zero, which is the input tty. This allows
8298 us to use the EMACS_GET_TTY and EMACS_SET_TTY for both VMS and
8299 Unix.
8300 (discard_tty_input): Use struct emacs_tty and its macros instead
8301 of TERMINAL. Replace some of conditional with a call to
8302 EMACS_GET_TTY.
8303 (child_setup_tty): Use struct emacs_tty and its macros instead of
8304 TERMINAL and conditionals.
8305 (old_gtty, old_ltchars, old_tchars, old_lmode): Replaced by...
8306 (old_tty): New variable.
8307 (lmode): Made conditional on BSD4_1, since it's only used by the
8308 BSD4_1 support code now.
8309 (init_sys_modes): Define tty to be a struct emacs_tty, not a
8310 TERMINAL. Use macros to get and set parameters for VMS and
8311 Unices. Set lmode, tchars, and ltchars along with the rest of the
8312 tty state.
8313 (tabs_safe_p): Use EMACS_GET_TTY and EMACS_TTY_TABS_OK instead of
8314 conditionals.
8315 (reset_sys_modes): Use EMACS_SET_TTY to restore the settings from
8316 old_tty, instead of using hairy conditionals.
8317
8318 * sysdep.c (get_screen_size): Neatened; now each system of
8319 reporting the screen size is separated from the rest.
dff28924 8320
615d0182
DL
8321 * systerm.h (EMACS_HAVE_TTY_PGRP, EMACS_GET_TTY_PGRP,
8322 EMACS_GET_TTY_PGRP): New macros to handle setting a tty's current
8323 process group.
8324 * sysdep.c (setpgrp_of_tty): Use the above, instead of
8325 conditionals.
8326
8327 * sysdep.c: #include "systerm.h".
8328 #ifs that choose #include files moved from here...
8329 * systerm.h: to here.
8330
8331 * sysdep.c [APOLLO]: We now undefine TIOCSTART not here but...
8332 * systerm.h: here.
8333
8334 * sysdep.c [BROKEN_TIOCGETC]: We now undefine TIOCGETC not here but...
8335 * systerm.h: here.
8336
8337 * sysdep.c [BROKEN_FIONREAD]: We now undefine FIONREAD and FASYNC
8338 not here but...
8339 * systerm.h: here.
8340
8341 * process.c (process_send_signal): Steal 18.58's version of this,
8342 but incorporate the support for VMS signals.
dff28924 8343
615d0182
DL
8344 * syssignal.h (EMACS_KILLPG): New macro.
8345 * process.c (process_send_signal): Use it.
8346 * sysdep.c (sys_suspend): Use it.
8347
8348 * syssignal.h (SIGCHLD): If we have SIGCLD and not SIGCHLD, define
8349 SIGCHLD as an alias for SIGCLD.
8350 * sysdep.c: Remove code for above.
8351
8352 * sysdep.c (init_baud_rate): Rather than trying to maintain the
8353 illusion of an abstraction with the OSPEED and SETOSPEED macros,
8354 just use conditionalized code for each terminal kind. This is the
8355 only place we ever need this functionality.
8356 (OSPEED, SETOSPEED): Definitions removed.
8357
dff28924 83581992-02-22 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8359
8360 * sysdep.c: Moved definition of sigunblock macro to ...
8361 * syssignal.h: Here.
8362
8363 * hftctl.c: #include <sys/uio.h> before #including <sys/tty.h>.
8364 (hfqry, hfskbd): Declare these functions as static before all uses.
8365 * unexaix.c (make_hdr, mark_x, copy_text_and_data, copy_sym):
8366 Declare as static before all uses.
da1d68b2
JB
8367 Remove extraneous semicolons from #ifdefs of COFF and XCOFF.
8368 (unrelocate_symbols): Cast the initializers of t_start and d_start
615d0182
DL
8369 to ulong.
8370
8371 * s/template.h: Include a clause for the HAVE_TERMIO flag.
8372
dff28924 83731992-02-21 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8374
8375 * keyboard.c (read_char): Don't clear Vquit_flag when we catch an
8376 interrupt and return a quit_char; this change (Mar 21 1991) is too
8377 large a change in functionality for the cleanliness it gains.
8378
8379 * pwd.h: Renamed to vms-pwd.h, so that we don't get it by accident
8380 when we #include <pwd.h> with the `-I.' flag given to the
8381 compiler.
8382 * editfns.c [VMS]: Changed to include vms-pwd.h instead of pwd.h.
8383 * fileio.c [VMS]: Same.
8384 * filelock.c [VMS]: Same.
8385 * sysdep.c [VMS]: Same.
8386
8387 * xrdb.c: Changed to #include "vms-pwd.h" if VMS is defined,
8388 instead of including <pwd.h> unconditionally.
8389
8390 * window.c (Fset_window_display_table): Rearranged to make etags
8391 happy.
8392
8393 * xterm.c (XTread_socket): Clear the meta flag from the keypress
8394 event before handing it to XLookupString.
8395
dff28924 83961992-02-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8397
8398 * sysdep.c: No need to test #ifdef TIOCGETP before #undefing it.
8399
dff28924 84001992-02-19 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8401
8402 * systime.h: New file.
8403 * dispnew.c: #include "systime.h" to get <time.h> or <sys/time.h>,
8404 whichever is appropriate, instead of using a conditional.
8405 (Fsleep_for, Fsit_for, Fsleep_for_millisecs): Use the systime.h
8406 macros instead of HAVE_TIMEVAL conditionals.
8407 * editfns.c: #include "systime.h" to get <time.h> or <sys/time.h>,
8408 whichever is appropriate, instead of using a conditional.
8409 * fileio.c: Same.
8410 * process.c: Same.
8411 * xterm.c: Same.
8412 (wait_reading_process_input): Use the systime.h macros.
8413 * sysdep.c: #include "systime.h" to get <time.h> or <sys/time.h>,
8414 whichever is appropriate, instead of using a conditional.
8415
8416 * m/template.h: Add description of NO_SOCK_SIGIO.
8417
8418 * sysdep.c (reset_sys_modes): Doc fix.
8419
da1d68b2
JB
8420 * keyboard.c (sigfree, sigholdx, sigblockx, sigunblockx)
8421 (sigpausex): Definitions moved to syssignal.h.
615d0182
DL
8422
8423 * dispnew.c: Doc fix.
8424
8425 * systerm.h: New file, to consolidate the system-dependent
8426 terminal-handling trash.
8427 * emacs.c: #include systerm.h.
8428 (main): Use systerm.h macros instead of conditionals.
8429 * dispnew.c: #include systerm.h.
8430 (update_screen): Use EMACS_OUTQSIZE instead of the direct ioctl.
8431 * keyboard.c: #include systerm.h to get the proper FIONREAD header
8432 files, instead of using conditional.
8433
8434 * syssignal.h: Added copyright notice.
8435
8436 * emacssignal.h: Renamed to syssignal.h, to be like sysdep.c.
8437 * data.c, keyboard.c, process.c, sysdep.c, ymakefile: Changed
8438 #include directives.
8439
dff28924 84401992-02-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8441
8442 * m/intel386.h: Don't bother casting the argument to the signal
8443 function; the SIGTYPE code in config.emacs ought to take care of
8444 this.
8445
8446 * buffer.c (record_buffer): Doc fix.
8447
dff28924 84481992-02-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8449
8450 * s/iris3-6.h: #define HAVE_GETWD.
8451
dff28924 84521992-02-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8453
8454 * window.c (Fwindow_at): Accept position as two arguments, not a
8455 cons of numbers.
8456
8457 * window.c (scroll_command): Undo the Jan 31 change; do set the
8458 current buffer to the selected window's buffer. A simple
8459 set-buffer will make these two different.
8460
dff28924 84611992-02-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8462
8463 * callproc.c (Fcall_process): Clear synch_process_death and
8464 synch_process_retcode to zero before forking the process.
8465
8466 * process.c (synch_process_death, synch_process_retcode): Don't
8467 declare them extern here.
8468 * process.h (synch_process_death, synch_process_retcode): Declare
8469 them extern here, along with synch_process_alive.
8470
8471 * s/hpux.h: Define CLASH_DETECTION.
8472
8473 * window.c (init_window_once): Don't pass any arguments to
8474 make_window.
8475
8476 * keyboard.c (command_loop_1): Move the label directly_done out of
8477 the else block to just after the else block. This shouldn't
8478 change the semantics of the code, but appears to avoid a compiler
8479 bug on SCO Unix V.3.2v2.
8480
8481 * fileio.c (Fset_umask, Fumask): New functions.
8482 (syms_of_fileio): defsubr them.
8483
8484 * undo.c (Fprimitive_undo): When undoing a deletion with the point
8485 before the deleted text, use Finsert_before_markers so that the
8486 mark will end up on the other side of the text, if it's in the
8487 area at all.
8488
8489 * xdisp.c (redisplay): Properly compute TAB_OFFSET for compute_motion.
8490
8491 * keyboard.c (command_loop_1): Don't check whether cursor is at
8492 edge of screen here.
8493 * dispnew.c (direct_output_forward_char): Check here, and return
8494 zero if it can't be done. And compare the cursor position to the
8495 window boundaries, not the screen boundaries.
8496
dff28924 84971992-02-05 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8498
8499 * screen.c (Fscreen_parameters): If the screen has a minibuffer
8500 window on another screen, return the window, instead of nil.
8501 (store_screen_param): If the value of the minibuffer parameter is
8502 a window, try to make it the surrogate minibuffer window.
8503 (Qminibuffer): New variable, to support above change.
da1d68b2 8504 (syms_of_screen): Initialize and staticpro it.
615d0182
DL
8505
8506 * m/tad68k.h: New file.
8507
8508 * fileio.c (Ffile_accessible_directory_p): New function.
8509 (syms_of_fileio): defsubr it.
8510 * callproc.c: #include <errno.h>.
da1d68b2 8511 (child_setup): Accept yet another argument, current_dir.
615d0182
DL
8512 Don't try to report an error here if current_dir is inaccessible;
8513 this function is called in a vforking process. Just have the
8514 process exit with an error code.
8515 (Fcall_process): Make sure that the current directory is okay
8516 here, before we fork. Pass the current_dir argument.
8517 * process.c (create_process): Same here.
8518
8519 * callproc.c (Fcall_process): Don't assign into args[1] when nargs
8520 < 2. Instead, use a new variable called infile. Re-arranged
8521 logic which processes the BUFFER argument.
8522
dff28924 85231992-02-03 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8524
8525 * fileio.c (Fexpand_file_name): Doc fix.
8526
8527 * scroll.c (line_ins_del): Since we're calculating the array from
8528 end to beginning, make the indices go that way, and thus clearly
8529 get the right boundary. This used to ignore the [0] element, and
8530 write in the [screen_height] element, which doesn't exist.
8531
dff28924 85321992-02-03 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
8533
8534 * xdisp.c (redisplay, try_window_id): Special case for change
8535 at beginning of line, if using selective display.
8536
dff28924 85371992-01-31 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8538
8539 * m/delta88k.h: Added USUAL-OPSYS information, for the
8540 config.emacs script to use.
8541
8542 * window.c (scroll_command): Don't bother setting the current
8543 buffer to the selected window's buffer; this should always already
8544 be the case. Add check just in case.
8545
8546 * indent.c (compute_motion): Don't pack vpos and hpos into one int;
8547 use separate variables hpos/vpos and prev_hpos/prev_vpos.
8548 (vmotion): Use largest int as tovpos arg to compute_motion.
8549
dff28924 85501992-01-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8551
8552 * window.c: #include "keyboard.h" to get the Qmode_line and
8553 Qvertical_split declarations.
8554 * ymakefile (window.o): Note that this depends on keyboard.h.
8555
8556 * callproc.c (getenv_internal): Cast the pointer to the variable's
8557 value to a char *; elisp strings are unsigned char *'s. And
8558 valuelen is an int *, not an int **.
8559
8560 * scroll.c (do_scrolling): Document meaning of enable flag in
8561 temp_screen.
8562
85631992-01-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8564
da1d68b2 8565 * m-orion105.h (C_DEBUG_SWITCH, LIBS_DEBUG): Defs deleted.
615d0182
DL
8566
85671992-01-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8568
8569 * m-iris4d.h (C_SWITCH_MACHINE): New definition.
8570
dff28924 85711992-01-28 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8572
8573 * term.c: #include "keyboard.h", for Vfunction_key_map.
8574 * keyboard.h: Declare Vfunction_key_map.
8575
8576 * keyboard.h: New file, for external declarations used in
8577 processing keyboard input and events.
da1d68b2
JB
8578 * lisp.h (Qmode_line, Qvertical_split, num_input_chars)
8579 (poll_suppress_count): Extern declarations moved to keyboard.h.
615d0182 8580 * keyboard.c: #include "keyboard.h".
da1d68b2
JB
8581 (Qvscrollbar_par, Qvslider_part, Qvthumbup_part)
8582 (Qvthumbdown_part, Qhscrollbar_part, Qhslider_part)
8583 (Qhthumbleft_part, Qhthumbright_part): Moved declarations here from
615d0182
DL
8584 xfns.c, so they're with the other event heading symbols.
8585 * eval.c: #include "keyboard.h".
8586 * ymakefile (callint.o, keyboard.o, keymap.o, xfns.o, eval.o):
8587 Note that these depend on keyboard.h.
8588
8589 * xfns.c: The above symbols aren't here any more. #include
8590 "keyboard.h" to get them.
8591 (syms_of_xfns): Don't initialize or staticpro them.
8592 * keyboard.h: Added extern declarations for the above.
8593 * callint.c: #include "keyboard.h".
8594
8595 * xfns.c (Vmouse_screen_part): Variable removed, no longer used.
8596 (syms_of_xfns): Changed accordingly.
8597
8598 * xterm.c (Qmouse_moved): Variable removed, no longer used.
8599 (Qmouse_click, Qscrollbar_click): Removed. These are now event
8600 types, in keyboard.c and keyboard.h; they're no longer used in
8601 this way.
8602 (Vmouse_window, Vmouse_screen_part): Extern declarations removed.
8603 (XTread_socket): Don't assign to Vmouse_window or
8604 Vmouse_screen_part.
8605 (syms_of_xterm): Changed accordingly.
8606
da1d68b2
JB
8607 * keyboard.h (EVENT_HAS_PARAMETERS, EVENT_HEAD, EVENT_WINDOW)
8608 (EVENT_BUFFER_POSN, EVENT_SCROLLBAR_BUTTON, EVENT_WINDOW_POSN)
8609 (EVENT_TIMESTAMP, EVENT_HEAD_UNMODIFIED, EVENT_HEAD_KIND): New
615d0182
DL
8610 macros to recognize and access events that have parameters, like
8611 mouse events.
da1d68b2
JB
8612 * keyboard.c (read_char, echo_char, Fmouse_click_p)
8613 (read_key_sequence): Use them.
615d0182
DL
8614 * keymap.c: #include "keyboard.h".
8615 (access_keymap, store_in_keymap, Fsingle_key_description): Use the
8616 macros from keyboard.h.
8617
8618 * keyboard.c (Qevent_kind): New symbol, naming the property of an event
8619 header where we put the event's type.
8620 (Qfunction_key, Qmouse_click, Qscrollbar_click): New symbols, used
8621 to tag different kinds of events.
8622 (Qevent_unmodified): New symbol, naming the property
8623 of an event header where we put an unmodified version of the event
8624 header.
8625 (modify_event_symbol): Take a new argument, SYMBOL_KIND, whose
8626 value should be put on the Qevent_kind property of each symbol we
8627 make. Set the Qevent_unmodified property of each symbol we make.
8628 (make_lispy_event): Pass the appropriate SYMBOL_KIND argument to
8629 modify_event_symbol.
8630 (struct event_head, head_table): New tables, to simplify the
8631 initialization of some of the event heads.
8632 (syms_of_keyboard): Initialize and staticpro the symbols given in
8633 head_table, and put the Qevent_kind and Qevent_unmodified
8634 properties on them. Initialize all of the new symbols listed
8635 above.
8636
8637 * keyboard.c (lispy_function_keys, lispy_mouse_names): Renamed
8638 these from function_key_names and mouse_names, and moved them
8639 outside of make_lispy_event, since static doesn't work on all
8640 systems, and these can't be automatic.
8641
86421992-01-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8643
8644 * fileio.c (Fwrite_region): Remove Alliant conditional.
8645 * crt0.c: Conditionals for ALLIANT_2800.
8646 * m/alliant-2800.h: New file.
8647 * unexfx2800.c: New file.
8648
8649 * m-mips4.h (C_DEBUG_SWITCH): Alternate defn for GCC.
8650
8651 * sysdep.c [VMS] (sys_write): Special case for fixed-length
8652 with carriage-control characters.
8653
8654 * s/isc2-2.h (NOMULTIPLEJOBS): Undef this.
8655 (LIB_STANDARD): Add -lPW.
8656 (LIBS_SYSTEM): Defined.
8657 * m/intel386.h (signal): Optionally don't define it.
8658
dff28924 86591992-01-27 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8660
8661 * s/template.h: Document the SIGTYPE macro.
8662 * s/bsd4-3.h: Define the SIGTYPE macro.
8663
8664 * data.c (Fsymbol_value): Extract all the innards of this function
8665 into find_symbol_value, except the code which signals an error.
8666 (find_symbol_value): New function.
8667 * lisp.h (find_symbol_value): Declare it.
8668 * keymap.c (current_minor_maps): Use it, instead of a call to
8669 Fboundp and Fsymbol_value per every minor map, for every key
8670 sequence read.
8671
8672 * xterm.c (x_make_screen_visible): Don't raise the window. This
8673 causes the window to pop to the front every time a message
8674 appears, which isn't desirable.
8675
da1d68b2
JB
8676 * screen.c (Fselect_screen, Fdelete_screen, Fset_mouse_position)
8677 (Fmake_screen_visible, Fmake_screen_invisible, Ficonify_screen)
8678 (Fdeiconify_screen, Fscreen_parameters, Fmodify_screen_parameters)
8679 (Fset_screen_height, Fset_screen_width, Fset_screen_size)
8680 (Fset_screen_position): Use SCREEN_IS_X macro instead of testing
615d0182
DL
8681 for output_x_window.
8682 * xfns.c (adjust_scrollbars, Fx_store_cut_buffer): Same.
8683
dff28924 86841992-01-25 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8685
8686 * term.c (term_get_fkeys): New function.
8687 (term_init): Call term_get_fkeys.
8688
dff28924 86891992-01-21 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8690
8691 * editfns.c (Ffollchar, Fprevchar): Renamed to Ffollowing_char and
8692 Fprevious_char, for consistency. Renamed Sfollchar and Sprevchar
8693 too.
8694 (syms_of_editfns): Fixed defsubrs.
8695 * lisp.h (Ffollchar, Fprevchar): Renamed extern declarations as above.
dff28924 8696
615d0182
DL
8697 * editfns.c (Ffollowing_char): Return 0 at the end of the buffer,
8698 as advertised. Doc fix.
8699 (Fprevious_char): Doc fix.
8700
8701 * config.h-dist: Rearranged to define user parameters before
8702 including the machine and opsystem files, so the files can have
8703 conditionals on the parameters.
8704
dff28924 87051992-01-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8706
8707 * keyboard.c (read_key_sequence): When expanding a function key
8708 recognized with Vfunction_key_map, don't scan the expansion for
8709 further function key sequences.
8710
8711 * keyboard.c (Vfunction_key_map): Real declaration moved to
8712 keymap.c; this declaration made extern.
8713 (syms_of_keyboard): DEFVAR and initialization of Vfunction_key_map
8714 moved to keymap.c, since it should be initialized to a keymap, but
8715 we don't want to rely on Qkeymap being initialized now.
8716 * keymap.c (Vfunction_key_map): Variable moved here.
8717 (syms_of_keymap): DEFVAR and init here.
8718
8719 * keymap.c (Fglobal_key_binding): Doc fix.
8720
dff28924 87211992-01-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
8722
8723 * m-delta88.h: New file.
8724
8725 * window.c (window_scroll): New arg `noerror'.
8726 (scroll_command, Fscroll_other_window): Pass that arg.
8727
dff28924 87281992-01-15 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
8729
8730 * process.c (sigchld_handler):
8731 Set synch_process_death and synch_process_retcode.
8732
dff28924 87331992-01-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8734
8735 * config.h-dist (SIGTYPE): New macro to help give signal handlers
8736 the correct type.
8737 * s/usg5-3.h (SIGTYPE): Define this to be void.
8738 * dispnew.c (window_change_signal): Declare this to return
8739 SIGTYPE.
8740 * emacs.c (fatal_error_signal): Same.
8741 * data.c (arith_error): Same.
8742 * process.c (create_process_1, send_process_trap,
8743 create_process_sigchld, sigchld_handler): Same.
8744 (create_process): Declare sigchld according to SIGTYPE. This
8745 means we don't have to cast the return value of signal.
8746 * keyboard.c (input_poll_signal, interrupt_signal): Declare these
8747 to return SIGTYPE.
8748 (kbd_buffer_store_event): Include a forward declaration for
8749 interrupt_signal here.
8750 * sysdep.c (struct save_signal): Say the handler returns SIGTYPE
8751 instead of int.
8752 (save_signal_handlers): So we don't have to cast the return value
8753 from signal here.
8754 (sys_suspend): Declare oldsig according to SIGTYPE.
8755 (select): Declare old_trap using SIGTYPE.
8756 (select_alarm, wait_for_termination_signal): Declare these to
8757 return SIGTYPE.
8758
8759 * emacs.c: #include <termios.h>, if we have it.
8760 (fatal_error_signal): If we have termios, use tcgetpgrp to get the
8761 terminal's process group.
8762 * process.c: If we have termios, #include <termios.h> instead of
8763 <termio.h>.
8764 (process_send_signal): If we have termios, use tcgetpgrp to get
8765 the terminal's process group. Have gid default to the child's
8766 pid, to simplify the logic below.
8767 * sysdep.c (flush_pending_output): If we are using termios, make
8768 this function a no-op; since we're not in the tty's pgroup, we
8769 would get a SIGTTIN.
8770
dff28924 87711992-01-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8772
8773 * config.h-dist: Removed MAINTAIN_ENVIRONMENT clause.
8774 * callproc.c: Removed support for MAINTAIN_ENVIRONMENT.
8775 (init_callproc): Use getenv instead of egetenv to initialize
8776 Vshell_file_name.
dff28924 8777 * emacs.c (decode_env_path): Use getenv instead of egetenv
615d0182
DL
8778 * lisp.h: Removed support for MAINTAIN_ENVIRONMENT.
8779 * process.c: Same.
8780 * ymakefile: Same.
8781 * dispnew.c (init_display): Call getenv instead of egetenv.
8782
8783 * editfns.c (Fgetenv): Function moved...
8784 * callproc.c (Fgetenv): To here, and made to scan
8785 Vprocess_environment instead of using the usual C getenv function.
8786 (getenv_internal): New function.
8787 (egetenv): New function.
8788 * lisp.h: Added extern declaration for egetenv.
8789 * editfns.c (syms_of_editfns): Adjusted.
8790 * callproc.c (syms_of_callproc): Adjusted.
8791
8792 * window.h (minibuf_prompt_width): Declare this extern here, after
8793 minibuf_prompt.
8794 minibuf.c: Don't extern declare it here.
8795 indent.c: As above.
8796
8797 * dispnew.c (buffer_posn_from_coords): If there is a prompt in the
8798 minibuffer, account for its width when computing the buffer
8799 position.
8800
8801 * Makefile (doall): Explicitly export CC to the xmakefile.
8802
8803 * ymakefile: Use /* */ around comments; # confuses cpp.
8804
8805 * ymakefile: Note that ralloc.o depends on mem_limits.h, xterm.h,
8806 and config.h.
8807 Note that vm-limit.o depends on mem_limits.h.
8808
8809 * lread.c (read_escape): Return \a as '\007', not '\a'; the latter
8810 isn't portable, and this routine would have to be revised anyway
8811 to deal with anything other than ASCII.
8812
8813 * keymap.c (current_minor_maps): Rewritten not to use
8814 function-local static variables, to accomodate DGUX.
8815
8816 * xterm.h (UNBLOCK_INPUT): Replace "abort ()" with "(abort (),
8817 0)", to avoid type conflicts on odd systems like Ultrix.
8818
8819 * xrdb.c: Include <sys/types.h>, and declare getuid to return uid_t.
8820
8821 * xdisp.c (redisplay_window): Use SET_PT macro instead of
8822 assigning to point.
8823 insdel.c (insert_from_string): Same.
8824
8825 * xterm.c (XTcursor_to): Declare it static at the function
8826 definition, as well as at the top of the file.
8827 (dumpglyphs): Removed declarations for buf and cp; these variables
8828 are never used.
8829
8830 * lisp.h (NULL): Renamed to NILP, so as not to conflict with
8831 <stdio.h>, and <stddef.h>. All callers changed; all
8832 #undefinitions of NULL removed.
8833
dff28924 88341992-01-12 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8835
8836 * xdisp.c (message): #ifdef NO_ARG_ARRAY, make a local block to
8837 declare the explicit argument array.
8838
8839 * config.h-dist: Instead of reaching the machine- and
dff28924 8840 system-dependent files through symlinks, replace the strings
615d0182 8841
dff28924 88421992-01-09 Jim Blandy (jimb@pogo.cs.oberlin.edu)
615d0182
DL
8843
8844 * keyboard.c (stuff_buffered_input): Don't forget to increment
8845 kbd_fetch_ptr while looping through kbd_buffer.
8846
dff28924 88471992-01-08 Jim Blandy (jimb@occs.cs.oberlin.edu)
615d0182
DL
8848
8849 * keyboard.c (read_avail_input): Don't forget to fill in the
8850 screen field in events read from the terminal.
8851 * sysdep.c (kbd_input_ast, read_input_waiting): Call
8852 kbd_buffer_store_event with a `struct input_event *', not a
8853 character or a Lisp_Object.
8854
dff28924 88551991-12-21 Jim Blandy (jimb@occs.cs.oberlin.edu)
615d0182
DL
8856
8857 * bytecode.c (docall): Don't remove protection from the arguments
8858 to Ffuncall.
8859
dff28924 88601991-12-20 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
8861
8862 * keyboard.c (Vfunction_key_map): New variable.
8863 (read_key_sequence): Changed to recognize and substitute bindings
8864 in Vfunction_key_map at any point in the sequence, unless they
8865 conflict with ordinary bindings.
8866 (syms_of_keyboard): DEFVAR, document, and initialize
8867 Vfunction_key_map.
8868
dff28924 88691991-12-19 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
8870
8871 * keymap.c (Vminor_mode_map_alist): New variable, to support
8872 keymaps for minor modes.
8873 (current_minor_maps, Fminor_mode_key_binding,
8874 Fcurrent_minor_mode_maps): New functions.
8875 (Fkey_binding): Rewritten to scan for minor mode bindings too.
8876 (syms_of_keymap): DEFVAR, document, and initialize
8877 Vminor_mode_map_alist, and defsubr the new Ffunctions.
8878 (describe_buffer_bindings): Describe the bindings established by
8879 minor modes too.
8880 * keyboard.c (follow_key): New function, to support...
8881 (read_key_sequence): Completely rewritten to handle scanning an
8882 arbitrary number of keymaps at a time.
8883
8884 * keyboard.c (Fread_key_sequence): GCPRO keybuf, since it can hold
8885 lisp expressions while waiting for input. Don't pass too many
8886 arguments to read_key_sequence.
8887 (command_loop_1): Don't pass too many arguments to read_key_sequence.
8888
8889 * keyboard.c (add_command_key): New function; there are several
8890 places that add keys to this_command_keys, so we make one function
8891 to do the work.
8892 (read_char, Fexecute_extended_command): Call add_command_key
8893 instead of writing out its code again.
8894 (init_keyboard): Allocate this_command_keys according to
8895 this_command_keys_size.
8896
8897 * lread.c (read1): Change comment to use `share-lib' instead of `etc'.
8898 * doc.c (Fdocumentation_property, Fsnarf_documentation): Update
8899 docstring similarly.
8900 (Fsnarf_documentation): Use "../share-lib/" instead of "../etc/"
8901 to find doc file while dumping.
8902 * unexaix.c: Similar doc fix.
8903
8904 * ymakefile (etcdir): Variable removed.
8905 (libsrc, archlib, sharelib): New variables, to take the place of
8906 etcdir.
8907
dff28924 89081991-12-18 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
8909
8910 * ymakefile (CFLAGS): Don't automatically include C_DEBUG_SWITCH
8911 in the value for CFLAGS; the configuration script will take care
8912 of choosing the debugging and optimization switches.
8913
8914 * config.h-dist: Copy the GLYPH definitions from config.h to here.
8915
dff28924 89161991-12-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
8917
8918 * abbrev.c (Fexpand_abbrev): Run pre-abbrev-expand-hook.
8919 (syms_of_abbrev): Define that variable.
8920
dff28924 89211991-12-13 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
8922
8923 * m/m-*.h: Since the m- is now redundant, renamed all files to
8924 remove it, and changed references within files.
8925 * s/s-*.h: Same business.
8926
dff28924 89271991-12-11 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
8928
8929 * config.h-dist (MULTI_SCREEN): Define this automatically when
8930 we're using a window system.
8931
dff28924 89321991-12-09 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
8933
8934 * m/m-*.h (i.e. all machine config files): Added USUAL-OPSYS
8935 comments to tell the configuration script what sort of operating
8936 system this machine typically runs.
8937
8938 * config.h-dist (MScreenWidth, MScreenLength): Deleted; no longer
8939 used.
8940
dff28924 89411991-12-08 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
8942
8943 * editfns.c (Fcurrent_time): New function, to return the current
8944 time as a number, like the Unix time(3) function. This might be
8945 fun to port.
8946 (syms_of_editfns): defsubr it.
8947
dff28924 89481991-12-05 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
8949
8950 * keymap.c (Vminor_mode_map_alist): New variable.
8951 (current_minor_maps): New function.
8952 (Fcurrent_minor_mode_maps): New function.
8953 (syms_of_keymap): DEFVAR, document, and initialize
8954 Vminor_mode_map_alist, and defsubr Fcurrent_minor_mode_maps.
8955
8956 * callproc.c (Vdata_directory): New lisp variable, for the
8957 directory containing architecture-independent data files.
8958 (init_callproc): Initialize Vdata_directory from PATH_DATA, and
8959 make sure it exists. Renamed execdir to tempdir, because we use
8960 it for both Vexec_directory and Vdata_directory.
8961 (syms_of_callproc): Doc fix for Vexec_directory, new DEFVAR_LISP
8962 for Vdata_directory.
8963 * paths.h-dist (PATH_DATA): New path macro, to initialize
8964 Vdata_directory.
8965 * doc.c (get_doc_string): Use Vdata_directory to find the
8966 docstrings, not Vexec_directory.
8967 * lisp.h (Vdata_directory): New extern declaration, for above
8968 users.
8969 * config.h-dist: Changed references to ../etc to ../share-lib.
8970
8971 * callint.c (Fcall_interactively): For the 'k' interactive code,
8972 cast the type of the symbol name before passing it to error.
8973
dff28924 89741991-12-02 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
8975
8976 * keyboard.c (make_lispy_movement): Move call to
8977 mouse_position_hook from here...
8978 (kbd_buffer_get_event): To here, for symmetry with non-movement
8979 events.
8980
8981 * keyboard.c (kbd_buffer_get_event): Set Vlast_event_screen for
dff28924 8982 mouse movements, too.
615d0182 8983
dff28924 89841991-11-27 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu)
615d0182
DL
8985
8986 * alloca.c (alloca): Add parens to make precedence clearer.
8987
dff28924 89881991-11-26 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
615d0182 8989
da1d68b2 8990 * search.c: Need to include sys/types.h because of recent mod to
615d0182
DL
8991 regex.h.
8992
dff28924 89931991-11-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
8994
8995 * bytecode.c: BYTE_CODE_METER and BYTE_CODE_SAFE undefined by default.
8996 (METER_CODE): Define same name whether metering or not.
8997 (BinsertN): New byte code.
8998 (Fbyte_code): Improve overflow/underflow error messages.
8999 (docall): Put back previously lost code to remove protection
9000 from funcall args.
9001
dff28924 90021991-11-25 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9003
9004 * lisp.h (make_array): New extern declaration.
9005
9006 * alloc.c (make_sequence): Renamed to make_array; more accurate.
9007 * keyboard.c (Fread_key_sequence, Fthis_command_keys): Callers fixed.
9008 * macros.c (Fend_kbd_macro): Callers fixed.
9009
dff28924 90101991-11-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9011
9012 * keyboard.c (cmd_error): If an error occurs before somebody has
9013 provided a screen to print it on, print it to stderr and exit
9014 Emacs. Handle batch-mode errors with the same code.
9015 * lisp.h (Qexternal_debugging_ouput): New extern declaration, for
9016 use in cmd_error.
9017
9018 * screen.c (Fscreen_pixel_size, Fset_screen_position): Doc fix.
9019
9020 * window.c (Fwindow_at): Typecheck COORDINATES more thoroughly.
9021
9022 * screen.c (read_mouse_position): Function deleted.
9023 (Fread_mouse_position): Renamed to Fmouse_position, and changed to
9024 use mouse_position_hook.
9025 (syms_of_screen): Adjusted accordingly.
9026 * xfns.c (x_read_mouse_position): Function deleted.
9027
9028 * screen.h (SCREENP): The non-MULTI_SCREEN case used to say this
9029 was false for all objects, but it should be true for the terminal
9030 screen, so make its definition the same as in the MULTI_SCREEN
9031 case.
9032
9033 * screen.h (SCREEN_LIVE_P): New predicate.
9034 (CHECK_LIVE_SCREEN): New type-checking macro.
9035 (Qlive_screen_p): New error-reporting symbol.
9036 * screen.c (Qlive_screen_p): Declare the new symbol.
9037 (Flive_screen_p): New lisp predicate.
9038 (syms_of_screen): Initialize, staticpro, and defsubr the lot.
9039 * dispnew.c (Fredraw_screen): Use CHECK_LIVE_SCREEN.
da1d68b2
JB
9040 * screen.c (Fscreen_root_window, Fscreen_selected_window)
9041 (Fnext_screen, Fset_mouse_position, Frestore_screen_configuration)
9042 (Fmake_screen_visible, Fmake_screen_invisible, Ficonify_screen)
9043 (Fdeiconify_screen, Fscreen_visible_p, Fredirect_screen_focus)
9044 (Fscreen_focus, Fmodify_screen_parameters, Fset_screen_height)
9045 (Fset_screen_width, Fset_screen_size, Fset_screen_position)
9046 (Fselect_screen): Use CHECK_LIVE_SCREEN.
615d0182
DL
9047 * window.c (Fwindow_at, Fcurrent_window_configuration): Use
9048 CHECK_LIVE_SCREEN.
9049 * xfns.c (Ffocus_screen, Fx_pixel_width, Fx_pixel_height): Use
9050 CHECK_LIVE_SCREEN.
9051
9052 * screen.c (Fdelete_screen): Do nothing if SCREEN is already
9053 deleted.
dff28924 9054
615d0182
DL
9055 * screen.c (Qscreenp): Staticpro this symbol.
9056
9057 * xfns.c (Fx_create_screen): Doc fix.
9058
9059 * xfns.c (Fx_create_screen): Give the screen a minibuffer if the
9060 'minibuffer parameter is t or nil; nil is the default value for
9061 omitted parameters, and t is intuitive.
9062
dff28924 90631991-11-14 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9064
9065 * eval.c (specbind): Check that the thing being bound is a symbol.
9066 (funcall_lambda): Signal an invalid-function error if the
9067 arguments are not all symbols.
9068
dff28924 90691991-11-08 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9070
9071 * screen.c (Fselect_screen): Don't select dead screens.
9072 * print.c (print): Print dead screen objects starting with
9073 "#<dead screen".
9074
9075 * keyboard.c (read_key_sequence): Make sure that the compound
9076 events actually have valid window fields.
9077
9078 * window.c (next_screen_window): Function deleted; Fnext_window
9079 can now do its job properly.
9080 (window_from_coordinates, window_loop): Call Fnext_window instead
9081 of next_screen_window.
9082
9083 * xdisp.c (redisplay): Don't clear out minibuffer windows in the
9084 midst of the screen loop here. That's confusing.
9085 (redisplay_window): Since this needs special code to detect
9086 minibuffers anyway, put it here. And clear all the lines of a
9087 multi-line minibuffer, not just the first one.
9088
dff28924 90891991-11-07 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9090
9091 * screen.c (Fdelete_screen): When searching Vscreen_list for a new
9092 value for last_nonminibuf_screen, remember that the screens live
9093 in the cars of the list, not the cdrs.
9094
9095 * xterm.c (x_make_screen_visible): Rearranged for clarity.
9096
9097 * xdisp.c (echo_area_display): Rearranged for clarity.
9098
dff28924 90991991-11-06 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9100
9101 * screen.c (next_screen, prev_screen): New meaning for MINI_SCREEN
9102 argument helps implement the behavior of Fnext_window.
9103 (Fnext_screen): Document the new behavior.
9104
9105 * screen.c (make_minibuffer_screen): Do set has_minibuffer for
9106 minibuffer-only screens.
9107 (Fscreen_parameters): Correctly generate value of minibuffer
9108 parameter using SCREEN_HAS_MINIBUF and SCREEN_MINIBUF_ONLY_P.
9109 * screen.h (SCREEN_HAS_MINIBUF): New predicate.
9110 * dispnew.c (change_screen_size): Use it.
9111 * screen.c (Fdelete_screen): Use it.
9112
9113 * screen.c (Vglobal_minibuffer_screen): Renamed
9114 Vdefault_minibuffer_screen to better describe its significance.
9115 (make_screen_without_minibuffer, syms_of_screen): Adjusted.
9116 * xfns.c (Fx_create_screen): Doc string adjusted.
9117
9118 * xdisp.c (display_mode_line): Make the code which names the
9119 screen after the current buffer not depend on
9120 Vglobal_minibuffer_screen.
9121 * xterm.c (Vglobal_minibuffer_screen): Don't declare this extern
9122 here; it's never used.
9123
dff28924 91241991-11-05 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9125
9126 * screen.c (Fdelete_screen): Document the fact that surrogate
9127 minibuffer screens may not be deleted.
9128
9129 * screen.h (SCREEN_MINIBUF_ONLY_P): New predicate, true iff the
9130 screen's only window is a minibuffer, aka a "minibuffer screen" or
9131 a "minibuffer-only" screen.
9132 * dispnew.c (change_screen_size): Use it.
da1d68b2
JB
9133 * screen.c (Fselect_screen, next_screen, prev_screen)
9134 (Fdelete_screen): Use it.
615d0182
DL
9135 * window.c (Fdisplay_buffer): Use it.
9136
9137 * screen.c (next_screen, prev_screen): Make MINIBUF a lisp
9138 boolean, not a C boolean.
9139 (Fnext_screen, Fdelete_screen): Changed to fit.
9140 * window.c (Fnext_window, Fprevious_window): Changed to fit.
9141
9142 * screen.c (make_screen_without_minibuffer): Error string improvement.
9143
9144 * screen.c (syms_of_screen): Doc grammar fix for Vemacs_iconified.
9145
9146 * screen.c (next_screen): Added some sanity checks, rewrote comments.
9147
9148 * screen.h (Vglobal_minibuffer_screen): Don't declare this. It
9149 shouldn't be used for anything but screen creation.
9150 * window.c (Fminibuffer_window): Vglobal_minibuffer_screen is not
9151 necessarily the screen containing the current minibuffer window.
9152 Also, call choose_minibuf_window; it does much of the work here.
9153 (Fnext_window): Used to insist on looping through all screens if
9154 Vglobal_minibuffer_screen was non-nil. Now includes screen's
9155 minibuffer window according to MINIBUF, no matter what screen it's
9156 on, and ignores Vglobal_minibuffer_screen. Loop termination logic
9157 cleaned up. Clarified doc string.
9158 (Fprev_window): Same problems as Fnext_window, above.
9159 * screen.c (Vglobal_minibuffer_screen): Documentation rewritten to
9160 emphasize that it is only a parameter of the creation of
9161 minibufferless screens, and not an indication of where the
9162 minibuffer is.
9163 (prev_screen): Used to assume that Vglobal_minibuffer_screen was
9164 the only minibuffer-only screen, and would enter an infinite loop
9165 if Vglobal_minibuffer_screen was the only screen in the list.
9166 Rewritten to fix these problems.
9167 * minibuf.c (Vglobal_minibuffer_screen): Don't declare it extern
9168 here; it's not used.
9169
9170 * editfns.c (Fmessage): Don't call Fmake_screen_visible here.
9171 * xdisp.c (message, message1): Call it here, so that Emacs C
9172 functions like Fy_or_n_p make the screen visible too.
9173
dff28924 91741991-11-04 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9175
9176 * keyboard.c (readable_events): If EVENT_QUEUES_EMPTY, we can
9177 short-circuit and say no. Otherwise, if do_mouse_tracking, we can
9178 short-circuit and say yes. These things let us scan the event
9179 queue less often.
9180
9181 * termhooks.h (mouse_tracking_enable_hook): Replaced by...
9182 (mouse_moved, mouse_position_hook): It turns out that it is
9183 possible and no less efficient simply to tell Emacs if the mouse
9184 has moved since last noticed, and let it ask for the current mouse
9185 position; X's pointer motion hints are a cool thing.
9186 * term.c (mouse_tracking_enable_hook): Replaced by...
9187 (mouse_position_hook): New, simpler interface.
9188 * keyboard.c (struct movement, movement_buf, movement_ptr):
9189 Replaced by...
9190 (mouse_moved): This flag, to be used in conjuction with
9191 mouse_position_hook.
9192 (EVENT_QUEUES_EMPTY): Adjusted to use mouse_moved instead of
9193 movement_buf and movement_ptr.
9194 (tracking_off, Ftrack_mouse): Don't call mouse_tracking_enable
9195 hook.
9196 (note_mouse_position): Moved to xterm.c.
9197 (get_mouse_position): Replaced by mouse_position_hook.
9198 (make_lispy_event): Movement event generation code moved out to a
9199 separate function...
9200 (make_lispy_movement): Create a mouse movement event for the
9201 current mouse position. Use mouse_position_hook instead of
9202 get_mouse_position. Added static declaration for this above...
9203 (kbd_buffer_get_event): Use mouse_moved instead of movement_buf
9204 and movement_ptr. Call make_lispy_movement instead of
9205 make_lispy_event.
9206 (init_keyboard): Initialize do_mouse_tracking. Don't init
9207 movement_ptr and movement_buf.
9208 * xterm.h (STANDARD_EVENT_SET): Add PointerMotionMask and
9209 PointerMotionHintMask to the set.
9210 * xterm.c (pixel_to_glyph_translation): Renamed to
9211 pixel_to_glyph_coords, made static, simplified to take advantage
9212 of constant-size characters, and extended to return the bounding
9213 rectangle of the glyph returned.
9214 (construct_mouse_click): The 'button' field of a button event is
9215 the button number, not a mask; convert it to a mask before
9216 frobbing x_mouse_grabbed. Call pixel_to_glyph_coords properly.
9217 (last_mouse_screen, last_mouse_glyph): New variables, to keep
9218 track of when the pointer has moved to a different glyph.
9219 (note_mouse_position): Moved here from keyboard.c and made static.
9220 Check if the new mouse position is over a new glyph. If it is,
9221 set mouse_moved flag; otherwise, call XQueryPointer to get the
9222 next motion event.
9223 (XTmouse_tracking_enable): No longer needed, since pointer motion
9224 hints let us implement the simpler mouse position hook.
9225 (XTmouse_position): New hook. Call XQueryPointer to get the
9226 current mouse position and request notification about the next
9227 mouse movement. Clear the mouse_moved flag.
9228 (pixel_to_glyph_coords, construct_mouse_click,
9229 note_mouse_position, XTmouse_position): Put these all on the same
9230 page.
da1d68b2 9231 (XTread_socket): Case MotionNotify, call note_mouse_position with
615d0182
DL
9232 the right args; don't call pixel_to_glyph_translation.
9233 (x_term_init): Set mouse_position_hook instead of
9234 mouse_tracking_enable_hook.
9235
dff28924 92361991-10-31 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9237
9238 * xdisp.c (redisplay_window): When trying to avoid starting
9239 display at the end of the buffer: check that startp < ZV, not
9240 startp <= ZV.
9241
dff28924 92421991-10-29 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9243
9244 * xterm.c (x_do_pending_expose, XTmouse_tracking_enable): Use
9245 SCREEN_IS_X instead of testing output_method directly.
9246
dff28924 92471991-10-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9248
9249 * xdisp.c (redisplay): In the single-screen optimization, always
9250 update the minibuffer's screen as well as the selected screen, no
9251 matter what the echo_area_glyphs are. This makes sure that
9252 messages get cleared after a keystroke.
9253
dff28924 92541991-10-25 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9255
9256 * callint.c (Finteractive): Doc fix.
9257
9258 * xterm.c (XTmouse_tracking_enable): Block input while changing
9259 the screens' input selection masks.
9260
9261 * window.c (change_window_height): If the window being resized is
9262 the only window of the screen, no size change is possible; make
9263 the delta be zero. Exit without "changing" the sizes of any
9264 windows if the delta is zero.
9265
9266 * alloc.c: Don't bother to include xterm.h.
9267 (Fgarbage_collect): Don't bother to BLOCK_INPUT here,
9268 since we don't cons in the input handler.
9269
dff28924 92701991-10-21 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9271
9272 * window.c (init_window_once): Set last_nonminibuf_screen to the
9273 initial terminal screen, so that poor Fdisplay_buffer doesn't try
9274 to create a new screen on a terminal.
9275
92761991-10-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9277
9278 * m-intel386.h (signal): Optionally don't define it.
9279 * s-isc2-2.h (DONT_DEFINE_SIGNAL): Define this.
9280
dff28924 92811991-10-18 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9282
9283 * scroll.c (line_ins_del): Don't calculate costs off the end of mf
9284 and ov; use < in loop condition, not <=.
9285
9286 * scroll.c (scroll_cost): Logic rearranged.
9287
9288 * dispnew.c (change_screen_size): Change "SCREEN_IS_TERMCAP
9289 (screen) == output_termap" to "SCREEN_IS_TERMCAP (screen)"
9290 (window_change_signal): Use SCREEN_IS_TERMCAP predicate instead of
9291 testing output_method_directly.
9292
dff28924 92931991-10-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9294
9295 * xterm.h (STANDARD_EVENT_SET): Include ButtonReleaseMask in
9296 STANDARD_EVENT_SET.
9297 * xterm.c (XTmouse_tracking_enable): Don't bother or'ing
9298 ButtonReleaseMask with the STANDARD_EVENT_SET.
9299
9300 * dispnew.c (buffer_posn_from_coords): If the coordinates are off
9301 past the end of a line, return them as being *before* the newline,
9302 not after.
9303
9304 * keyboard.c (kbd_buffer_get_event): Set input_pending after
9305 reading the event, no matter what sort of event it is - i.e., move
9306 the assignment to input_pending outside of the event lispifying
9307 conditional.
9308
9309 * keyboard.c (note_mouse_position): Don't record a "new" mouse
9310 position unless it really differs from the last one returned.
9311
9312 * keyboard.c (kbd_buffer_read_char): Renamed to
9313 kbd_buffer_get_event, for consistency with kbd_buffer_store_event.
9314
da1d68b2 9315 * window.c (Fwindow_at): Modified to take the coordinates as a
615d0182
DL
9316 pair, not a two-element list, for ease of use and compatibility
9317 with events. Make SCREEN argument second and optional.
9318 (Fcoordinates_in_window_p): Modified to take and return the
9319 coordinates as above, and to distinguish the right border as well
9320 as the mode line.
9321 (window_from_coordinates): Modified to distinguish the right
9322 border as well as the mode line.
9323 * lisp.h (Qmode_line, Qvertical_split): Declare this extern, from
9324 keyboard.c.
9325 * keyboard.c (make_lispy_event): Distinguish a window's right
9326 border from its text area.
9327
9328 * window.c (coordinates_in_window): Make it static.
9329
9330 * window.c (Flocate_window_from_coordinates): Renamed to
da1d68b2 9331 Fwindow_at.
615d0182
DL
9332 (syms_of_window): Adjusted.
9333 * lisp.h: Adjusted to say so.
9334
9335 * screen.c (Fcoordinates_in_window_p, window_from_coordinates,
9336 Flocate_window_from_coordinates): Functions moved to window.c.
9337 (syms_of_screen): Adjusted.
9338 * window.c (Fcoordinates_in_window_p, window_from_coordinates,
9339 Flocate_window_from_coordinates): Here they are.
9340 (syms_of_window): Adjusted.
9341 * lisp.h: Adjusted to say so.
9342
dff28924 93431991-10-14 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9344
9345 * xterm.c (XTclear_end_of_line): This used to try to get the
9346 cursor out of the way by comparing the line being cleared with
9347 s->cursor_y, which is meaningless; it should have compared it with
9348 s->phys_cursor_y. Changed to just mark the cursor as cleared if
9349 it's in the area we're clearing.
9350
dff28924 93511991-10-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
9352
9353 * m-intel386.h: Fix typo in #endif.
9354
dff28924 93551991-10-12 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9356
9357 * callint.c (Fcall_interactively): Added new interactive spec 'K',
9358 for mouse clicks. Added explanation to doc string. Removed 'e'
9359 spec, which didn't work with the new input model anyway.
9360 * keyboard.c (Fmouse_click_p): New function.
9361 (syms_of_keyboard): defsubr it.
9362
9363 * keyboard.c (EVENT_QUEUES_EMPTY): Clarified comment.
9364 (tracking_off): Change "if (!readable_events)" to
9365 "if (!readable_events ())".
9366 (Ftrack_mouse): Doc fix.
9367 (kbd_buffer_read_char): Fix brainos in tossing of unwanted events.
9368 Don't use EVENT_QUEUES_EMPTY to set input_pending; call
9369 readable_events.
9370
dff28924 93711991-10-11 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9372
9373 * keyboard.c (Qmode_line): New quoted symbol.
9374 (syms_of_keyboard): Initialize and staticpro it.
9375 (make_lispy_event): Use it to indicate when a mouse position is in
9376 a window's mode line.
9377
9378 * xterm.c (XTread_socket): Consider the window to be resized if
9379 either the character or pixel dimensions have changed; this will
9380 catch font size changes.
9381
dff28924 93821991-10-08 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9383
9384 * process.c (wait_reading_process_input): Removed all the
9385 exceptional condition stuff. Emacs lacks any way to respond to
9386 such a state, and selecting for it without responding to it can make
9387 Emacs loop indefinitely.
9388
9389 * xterm.c (XTread_socket, construct_mouse_click): Make sure that
9390 all enqueued events have their timestamp field set.
9391 * termhooks.h (struct input_event): Doc fix.
9392 * keyboard.c (last_event_timestamp): New variable.
9393 (get_mouse_position, kbd_buffer_store_event,
9394 kbd_buffer_read_char): Make sure to fill in Vlast_event_screen and
9395 last_event_timestamp.
9396 * xselect.c (mouse_timestamp): Don't use this anymore.
9397 (last_event_timestamp): Use this instead.
da1d68b2
JB
9398 (Fx_own_selection, Fx_own_clipboard, Fx_get_selection)
9399 (Fx_get_clipboard): Use last_event_timestamp instead of
615d0182
DL
9400 mouse_timestamp.
9401
9402 * xdisp.c (redisplay): Don't pass extra arguments to
9403 update_screen.
9404
9405 * keyboard.c (echo_truncate): Don't call echo here; this results
9406 in extraneous echoing of characters.
9407 (read_key_sequence): After calling echo_truncate, call echo_char
9408 to put the character we just read into the minibuffer, if
9409 appropriate.
9410
9411 * keyboard.c (read_key_sequence): Removed unused argument
9412 no_redisplay.
9413
dff28924 94141991-10-01 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9415
9416 * xfns.c (x_create_screen): Initialize phys_cursor_x to -1, to
9417 indicate that the screen has no displayed cursor.
9418
9419 * xfns.c (x_create_screen): Let InternalBorderWidth default to 1.
9420
9421 * xterm.c (x_display_bar_cursor): Declare this to be static void.
9422
9423 * xterm.c (XTupdate_begin): Don't turn off the cursor. This makes
9424 ugly flickering. Instead, make it okay for XTins_del_lines to do
9425 so:
9426 * screen.h (struct screen): New field phys_cursor_glyph, keeping
9427 track of the glyph under the currently displayed cursor. Since
9428 current_glyphs is sometimes inaccurate when we want to undraw the
9429 cursor (as when XTins_del_lines is called from do_scrolling), we
9430 can't always get the GLYPH from there.
9431 * xterm.c (x_draw_single_glyph): Take the glyph to draw as an
9432 argument, instead of taking it from the screen matrix.
9433 (x_display_box_cursor): Set and use s->phys_cursor_glyph.
9434
9435 * ymakefile: Note that scroll.o and xmenu.o depend on screen.h.
9436
dff28924 94371991-09-29 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9438
9439 * keyboard.c (make_lispy_event): When building mouse movement
9440 event, use `m', not `event', dummy.
9441
dff28924 94421991-09-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9443
9444 * screen.c (Fscreen_parameters): Return the proper value for the
9445 'minibuffer parameter for minibuffer-only screens.
9446
9447 * xdisp.c (redisplay_window): When the start position is forced,
9448 constrain it to be within the visible region anyway.
9449
9450 * xterm.c (XTwrite_glyphs): Instead of turning off the cursor
9451 before we write, just notice if we wrote over it.
9452
9453 * xfns.c (x_decode_color): If a screen has two planes, then it is
9454 considered a color screen, and we should look up the color value.
9455
9456 * ymakefile: Include xselect.o and xrdb.o in XOBJ even when
9457 HAVE_X_MENU is not defined.
9458
9459 * fns.c (Fdelete): This used to be named Fdelq; Roland forgot to
9460 change the function name in his August 17 change.
9461 (syms_of_fns): defsubr Fdelete.
9462
94631991-09-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9464
9465 * alloca.c: Do nothing if alloca is defined as a macro.
9466
dff28924 94671991-09-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
9468
9469 * m-pfa50.h: New file.
9470
dff28924 94711991-09-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
9472
9473 * unexec.c: Add conditionals for COFF_ENCAPSULATE.
9474
94751991-08-17 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9476
9477 * fns.c (Fdelete): New fn. We have member now; we should have
9478 delete too.
9479
dff28924 94801991-08-16 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9481
9482 * xfns.c (x_get_arg): Clean bad characters out of the screen name
9483 before using it as a resource key.
9484
9485 * abbrev.c (Fexpand_abbrev): Don't let capitalization go past point.
9486
9487 * sysdep.c (sys_suspend): Don't use & before array name.
9488
9489 * sysdep.c [BROKEN_FIONREAD]: Undefine FASYNC.
9490
9491 * m-tandem-s2.h (START_FILES, LIB_STANDARD): Added.
9492
9493 * s/s-aix3-1.h: Define HAVE_TCATTR.
9494
9495 * xfns.c (Fx_grab_cursor, Fx_ungrab_cursor): Functions removed.
9496
dff28924 94971991-08-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9498
9499 * bytecode.c (Qbyte_code_meter): New.
da1d68b2
JB
9500 (Bend_of_line, Bset_marker, Bmatch_beginning, Bmatch_end, Bupcase)
9501 (Bdowncase, BRgoto, BRgotoifnil, BRgotoifnonnil)
9502 (BRgotoifnilelsepop, BRgotoifnonnilelsepop, BlistN, BconcatN): New
615d0182
DL
9503 byte codes.
9504 (Fbyte_code): Implemented new codes listed above. Added code to
9505 count how many times a function is called.
9506 (syms_of_bytecode): Initialize and staticpro Qbyte_code_meter.
dff28924 9507
615d0182
DL
9508 * xfns.c (x_window): When setting the class hints, use the
9509 screen's name as the res_name.
9510
9511 * xfns.c (x_make_screen_name): New function.
9512 (Fx_create_screen): Use x_get_arg to find screen name; if none has
9513 been specified, use x_make_screen_name; don't set the name again
9514 at the bottom.
9515 (x_get_arg): If SCREEN_NAME is nil, don't pass any class to
9516 Fx_get_resource.
9517
9518 * xfns.c (x_get_arg, x_default_parameter): Take an extra argument
9519 TYPE, instead of encoding the type in the first letter of the
9520 property name.
9521
95221991-08-15 Roland McGrath (roland@albert.gnu.ai.mit.edu)
9523
9524 * buffer.c (Fkill_all_local_variables): Don't pass
9525 Fmake_local_variable too many args. Use Fset instead.
9526
95271991-08-14 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9528
9529 * xfns.c (emacs_class): Variable removed.
9530 (EMACS_CLASS): New macro, specifying Emacs class for xrdb use.
9531 Use a class of "Emacs", to be compatible with previous versions.
9532 (Fx_get_resource, x_window, Fx_open_connection): Use macro here.
9533
9534 * buffer.c (Fgenerate_new_buffer): Function moved to
9535 lisp/files.el.
9536 (Fgenerate_new_buffer_name): New function which does only the
9537 name-choosing work Fgenerate_new_buffer used to do.
9538 (Frename_buffer): Added second optional argument DISTINGUISH,
9539 which lets rename_buffer use generate-new-buffer-name if non-nil.
9540 Return the name the buffer was given.
9541 Do nothing if new name is already buffer's name.
9542
9543 * xfns.c (Fx_get_resource): Take third argument CLASS, and require
9544 it to be specified whenever NAME is.
9545 All callers changed.
9546 [not HAVE_X11] (Fx_get_default): Only take the one arg.
9547 [not HAVE_X11] (Fx_get_resource): Toss the second two args.
9548
dff28924 95491991-08-13 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9550
9551 * xfns.c (Fx_close_current_connection): Add \n to error message.
9552
9553 * keyboard.c (make_lispy_event): Added HP keys into the
9554 function_key_names array.
9555 * xterm.c (XTread_socket): For KeyPressed events, strip the
9556 keysym's vendor-specific bit, and take a shot at fitting it into
9557 the Emacs key numbering.
9558
9559 * screen.c (Vdefault_screen_alist): Definition moved from
9560 screen.el to here.
9561 (syms_of_screen): DEFVAR_LISP and initialize it here.
9562 * screen.h: Declare it here.
9563 * xfns.c (x_get_arg): Use it here.
9564
9565 * screen.c (make_screen): When choosing a buffer for the screen's
9566 root window, shy away from buffers whose names start with a space.
9567
dff28924 95681991-08-11 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9569
9570 * process.c (exec_sentinel, exec_sentinel_unwind): Move these
9571 above status_notify.
9572
9573 * eval.c (Qinhibit_quit): New variable, to support Aug 5 changes
9574 to process.c.
9575 (syms_of_eval): Initialize and staticpro above.
da1d68b2 9576 * lisp.h: Added extern declaration for above.
615d0182 9577
dff28924 95781991-08-10 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9579
9580 * regex.c (re_search_2): When searching with the fastmap, test for
9581 a translate table outside of the loop, not inside the loop.
9582
dff28924 95831991-08-10 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
9584
9585 * fns.c (Fequal): Don't crash on circular structure.
9586 (internal_equal): New subroutine does the recursion.
9587
9588 * print.c (print): Recognize circular car pointers.
9589
dff28924 95901991-08-10 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9591
9592 * process.c (wait_reading_process_input): Ignore exceptional
9593 conditions on the keyboard input.
9594
dff28924 95951991-08-06 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
9596
9597 * lisp.h: Fiddled with formatting.
9598
9599 * process.c (exec_sentinel_unwind): New function.
9600 (exec_sentinel): Restore the process's sentinel, using an
9601 unwind_protect.
9602
dff28924 96031991-08-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
9604
9605 * keyboard.c: Doc fix.
9606
dff28924 96071991-08-05 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9608
9609 * dired.h: Don't include search.h; it doesn't exist.
9610
9611 * process.c (read_process_output, exec_sentinel): Bind
9612 Qinhibit_quit to true and call the filter directly instead of
9613 through a condition-case.
9614 (run_filter): Removed.
9615 (this_filter, filter_process, filter_string): Variables now
9616 unnecessary.
9617
da1d68b2 9618 * xfns.c (Fx_get_resource): Take the screen name as an optional
615d0182
DL
9619 argument and look up resources using the name of the screen as
9620 part of the key.
9621 [not HAVE_X11] (Fx_get_default): Take optional 2nd arg NAME and
9622 ignore it.
9623 (x_get_arg): Take the screen name as an arg, and call
9624 Fx_get_resource with that argument.
9625 (x_default_parameter, x_figure_window_size, x_icon): Pass the
9626 screen's name to x_get_arg.
9627 (Fx_create_screen): Make sure the screen name is either nil or a
9628 string, and pass it to x_get_arg.
9629
9630 * xfns.c (Vx_screen_defaults): Variable removed; such settings
9631 belong in the .Xdefaults file.
9632 (syms_of_xfns): Don't defvar it here.
9633 (Fx_create_screen): Don't use it here.
9634
9635 * keyboard.c (classify_object): #if 0'd function finally removed.
da1d68b2
JB
9636 * xterm.c (Qmapped_screen, Qunmapped_screen, Qexited_scrollbar)
9637 (Qexited_window, Qredraw_screen): Unused, so removed.
615d0182 9638 (syms_of_xterm): Don't bother to initialize above.
dff28924 9639
615d0182
DL
9640 * xterm.c (init_input_symbols): Renamed to syms_of_xterm, for
9641 consistency.
9642 (x_term_init): Don't call it here.
9643 * xfns.c (syms_of_xfns): Don't call syms_of_xselect here.
9644 * emacs.c (main): Call them here.
9645
9646 * xterm.c (invocation_name): Made this a Lisp_Object, so that its
9647 string value could be relocated properly.
9648 (x_term_init, x_text_icon): Adjusted code appropriately.
9649 (syms_of_xterm): staticpro invocation_name.
9650 * xfns.c (invocation_name): Changed extern declaration, deleted
9651 extra declaration.
9652 (Fx_get_resource): Adjusted code appropriately.
9653
dff28924 96541991-08-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
9655
9656 * lread.c (read1): Accept #[...] for bytecode object.
9657 * print.c (print): Print them that way.
9658
dff28924 96591991-08-01 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9660
9661 * fileio.c (Fexpand_file_name): Avoid doing strlen (0).
9662
9663 * editfns.c, filelock.c [VMS]: Use pwd.h from Emacs, not from system.
9664 * fileio.c [VMS]: Likewise. Also include stddef.h, string.h.
9665 Include perror.h only once.
9666 [VMS] (file_name_as_directory, directory_file_name): Remove
9667 assignments from if conditions.
9668 (Fexpand_file_name): Remove excess slash from end of user's home dir.
9669
dff28924 96701991-08-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
9671
9672 * emacs.c (main): Add SIGIO conditional within AIX conditional.
9673
9674 * xdisp.c (try_window_id): Compute proper position for screen bottom
9675 when all changes are below the screen.
9676 When first computing bp, don't go more than HEIGHT + 1 lines.
9677
dff28924 96781991-07-31 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9679
9680 * xterm.c (x_destroy_window): If we're destroying the currently
9681 highlighted screen, clear x_highlight_screen.
9682
9683 * xdisp.c (display_text_line, display_string):
9684 Don't go past endp for multi-column chars.
9685
dff28924 96861991-07-28 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9687
9688 * lread.c (init_lread): If Vload_path was set specially before
9689 dumping, preserve it by default.
9690
9691 * process.c (process_send_signal): Notice and deal if the
9692 TIOCGPGRP ioctl says that the subprocess has no pgrp.
9693
9694 * xdisp.c (try_window_id): Always update window_end_* if successful.
9695
9696 * process.h (subtty): New slot.
9697 * process.c (create_process): Set it.
9698 (process_send_signal): Use it.
9699
9700 * alloc.c (Fmake_rope): Doc fix.
9701 * screen.c (Fselect_screen): Doc fix.
9702 * vms-pp.c: Fix comment.
9703
9704 * keymap.c (Fkeymapp, Fdefine_prefix_command): Doc fixes.
9705
9706 * window.c (window_select_count): No longer static.
9707 (init_window_once): Increment window_select_count, to give each
9708 window a unique use_time.
9709 * window.h (window_select_count): extern this here.
9710 * screen.c (make_screen): Stamp a new screen's selected window
9711 with the proper selection time.
9712
9713 * ymakefile: xselect.o depends on screen.h, xterm.h, and config.h.
9714 xrdb.o depends on config.h.
9715 xterm.o depends on gnu.h.
9716 * xfns.h: File removed - it only declared Vx_send_movement_events.
9717 All includers changed.
9718
dff28924 97191991-07-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
9720
9721 * keymap.c (Fcopy_keymap): Don't recursively copy maps inside symbols.
9722
dff28924 97231991-07-27 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9724
9725 * xdisp.c (redisplay): If echo_area_display puts text in a
9726 surrogate minibuffer screen, don't neglect to update it.
9727
9728 * keyboard.c (kbd_buffer_store_event): Make sure
9729 Vlast_event_screen is set properly for quit characters.
9730
dff28924 97311991-07-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182 9732
da1d68b2 9733 * keyboard.c (command_loop_1): Pass both arguments to
615d0182
DL
9734 Fselect_screen.
9735
9736 * screen.c (make_screen): Divide the size by sizeof (Lisp_Object)
9737 before passing it to Fmake_vector.
dff28924 9738
da1d68b2 9739 * screen.h [not MULTI_SCREEN] (SCREEN_SCROLL_BOTTOM_VPOS): Fixed
615d0182
DL
9740 definition.
9741
9742 * screen.c: #include termhooks.h and therefore stdio.h.
9743 (make_screen): Initialize focus_screen member.
9744 (Fdelete_screen): Refuse to delete SCREEN if it is a
9745 surrogate minibuffer for some other screen, not just if it's the
9746 global minibuffer screen.
9747 (Fredirect_screen_focus, Fscreen_focus): New function.
9748 (syms_of_screen): defsubr Sredirect_screen_focus.
9749 * window.c: Don't include termhooks.h or stdio.h.
9750 (Fselect_window): Removed grunge to support minibuffer hack.
9751 * screen.h (struct screen): Added focus_screen member, and
9752 accessor for it.
da1d68b2 9753 * alloc.c (mark_object): Mark focus_screen member of Lisp_Screens.
615d0182
DL
9754 * xterm.c (XTscreen_rehighlight): Use the focus_screen member to
9755 decide which screen to highlight.
9756 (XTread_socket): Use focus_screen when enqueuing keystrokes.
9757 * minibuf.c (read_minibuf, read_minibuf_unwind): Shift the
9758 selected screen's focus around appropriately.
9759 * termhooks.h (screen_rehighlight_hook): Doc fix.
9760
9761 * lisp.h (CHECK_IMPURE): Moved definition...
9762 * puresize.h (CHECK_IMPURE): To here.
9763
97641991-07-25 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9765
9766 * dispnew.c (buffer_posn_from_coords): Bufp is broken; don't use it.
9767
9768 * xterm.c (XTscreen_rehighlight): Neatened sloppy logic.
dff28924 9769
615d0182
DL
9770 * keyboard.c (read_key_sequence): When truncating a key sequence,
9771 don't forget to put the new keystroke back in this_command_keys.
9772 Do this before calling echo_truncate, and don't call echo_char.
9773
97741991-07-24 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9775
9776 * xterm.c (x_term_init): Initialize x_focus_screen and
9777 x_highlight_screen.
9778
9779 * xterm.c (XTscreen_rehighlight): Handle things correctly when
9780 x_focus_screen is 0.
9781 (XTread_socket): Process EnterNotify and LeaveNotify events with
9782 .focus == 0 properly. For FocusOut events, pass the right
9783 arguments to x_new_focus_screen.
9784
9785 * fileio.c (Finsert_file_contents): Use RETURN_UNGCPRO macro.
9786
9787 * buffer.c (Fbuffer_name): Fix typo in doc string.
9788 (syms_of_buffer): Fix typo in before_change_function name.
9789
97901991-07-23 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9791
9792 * screen.h (CHECK_SCREEN): Define a dummy version of this when
9793 MULTI_SCREEN is not defined.
9794
9795 * sysdep.c (init_signals, sys_signal, sys_sigpause): New functions.
9796 (sys_sigblock, sys_sigunblock, sys_sigsetmask): New functions.
9797
9798 * sysdep.c (_sobuf): Unsigned chars if DGUX.
9799
9800 * sysdep.c [DGUX]: Include file.h.
9801 [DGUX] (sys_siglist): New variable.
9802
9803 * x11term.c (x_init_1) [SYSV_STREAMS]: Don't close the old
9804 descriptor.
9805
9806 * keyboard.c (read_key_sequence): Treat function keys like ascii
9807 characters.
9808
9809 * lread.c (init_lread, syms_of_lread): New names for init_read and
9810 syms_of_read, for consistency.
9811
9812 * emacssignal.h: New file.
9813 * data.c, keyboard.c, process.c, sysdep.c: Include it.
9814 * data.c (arith_error): Use SIGEMPTYMASK.
9815 * keyboard.c (sigfree, sigunblockx): Use SIGEMPTYMASK.
9816 (sigholdx, sigblockx): Use sigmask.
9817 (gobble_input): Use sigblockx instead of sigholdx, so that any
9818 other blocked signals stay blocked during and after the call to
9819 read_avail_input.
9820 * process.c (create_process): Use sigmask.
9821 [FASYNC] (request_sigio): Use sigunblock.
9822 * xterm.c (sigmask): Removed #definition here.
9823 * ymakefile (keyboard.o, process.o, sysdep.o, data.o): Make these
9824 depend on emacssignal.h.
9825
9826 * window.c (Fselect_window): Modify surrogate minibuffer hack to
9827 make the minibuffer the selected window of the selected screen,
9828 AND select the minibuffer window's screen.
9829 * minibuf.c (read_minibuf): If the minibuffer window is on a
9830 different screen, save that screen's configuration too.
9831
9832 * window.c (Fset_window_configuration): Use SCREEN_ accessor to
9833 get at a screen's root window. Removed unused variable
9834 screen_to_select.
9835 (Fcurrent_window_configuration): Take an optional argument SCREEN.
9836 All callers changed.
9837
9838 * window.c (auto_new_screen, Vauto_new_screen_function): Renamed
9839 to pop_up_screens and pop_up_screen_function, to be parallel with
9840 pop_up_windows.
9841 (display_buffer, syms_of_window): Changed appropriately.
9842
9843 * fns.c (Fload_average) [DGUX]: Add code to support DGUX.
9844
9845 * s-dgux.h, m-aviion.h: New files.
9846
9847 * emacs.c (main) [POSIX_SIGNALS]: Call init_signals.
9848
9849 * screen.c (Fdelete_screen): Update last_nonminibuf_screen if
9850 the screen it's currently pointing to gets deleted.
9851
98521991-07-22 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9853
9854 * screen.c (last_nonminibuf_screen): New variable.
9855 (Fselect_screen): Set last_nonminibuf_screen if appropriate.
9856
98571991-07-21 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9858
9859 * screen.h (last_nonminibuf_screen): Added declarations for new
dff28924 9860 variable.
615d0182
DL
9861 * minibuf.c (active_screen): Variable removed.
9862 (read_minibuf): Removed code to set and clear active_screen.
9863 * window.c (Fdisplay_buffer): Rewritten to use
9864 last_nonminibuf_screen.
9865
dff28924 9866 * screen.c (next_screen): Use SCREEN_ accessors instead of ->.
615d0182
DL
9867
9868 * window.c (Fdisplay_buffer): Removed reference to
9869 Fx_create_screen; we should rely on the auto-new-screen-function
9870 being set to something appropriate.
9871
dff28924 98721991-07-21 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
615d0182
DL
9873
9874 * keyboard.c (read_key_sequence): Restore the state of
9875 this_command_key_count along with the echoing state.
9876
dff28924 98771991-07-20 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
615d0182
DL
9878
9879 * xfns.c (Fx_synchronize): New function.
9880 (syms_of_xfns): defsubr it.
9881
9882 * xdisp.c (redisplay): Don't turn on all_windows whenever we're
9883 using a separate minibuffer screen. Even if there is some tweak
9884 necessary, this wasn't it.
9885
9886 * process.c (status_notify): Do not forget to UNGCPRO.
9887
9888 * screen.c (next_screen): Re-work logic to skip minibuffer-only
9889 screens so that it doesn't loop indefinitely, even when the only
9890 screen is a minibuffer-only screen. Skip all screens that are
9891 only minibuffers, not just when they are the global minibuffer
9892 screen.
9893
9894 * xdisp.c (message, message1): If the screen's message buffer
9895 is 0, toss the message; don't check the window system against
9896 the screen output_method.
9897
dff28924 98981991-07-19 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9899
9900 * keyboard.c (read_key_sequence): When we truncate the echo
9901 buffer because the user has switched screens, re-echo the
9902 character that caused the truncation.
9903
9904 * lread.c (Fload): Change "source newer than ..." message not to
9905 refer to "libraries." What is a "library," anyway?
9906
9907 * window.c: #include "termhooks.h", and therefore <stdio.h> too.
9908 [MULTI_SCREEN] (Fselect_window): If the window being selected is
9909 the selected screen's minibuffer, but it lives on another screen,
9910 don't select that other screen - call the screen_rehighlight_hook
9911 instead.
9912 * termhooks.h (screen_rehighlight_hook): New hook, so that Emacs
9913 can shift the screen highlighting when needed.
9914 * term.c (screen_rehighlight_hook): Define it.
9915 * xterm.c (x_highlight_screen): New variable.
9916 (x_new_focus_screen): Move the rehighlighting code to...
9917 (XTscreen_rehighlight): New function.
9918 (x_display_bar_cursor, x_display_box_cursor): Use
9919 x_highlighted_screen instead of x_focus_screen.
9920 (x_term_init): Initialize screen_rehighlight_hook.
9921 * ymakefile: Make window.o depend on termhooks.h.
9922
9923 * xfns.c (Fx_create_screen): Add mention of
9924 global-minibuffer-screen to docstring.
9925 * screen.c (make_screen_without_minibuffer): Improve error message
9926 displayed when Vglobal_minibuffer_screen is not a proper screen.
9927
dff28924 99281991-07-18 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9929
9930 * config.h (PURESIZE): Definition moved to...
9931 * puresize.h: New file.
9932 (PURESIZE): Define this here. This will allow people to change
9933 their pure storage allocation without having to recompile most of
9934 Emacs.
9935 * data.c: #include puresize.h, since CHECK_IMPURE needs PURESIZE.
9936 * alloc.c: #include puresize.h.
9937 [HAVE_SHM] (pure_size): New variable, so that XPNTR doesn't depend
9938 on PURESIZE.
9939 [HAVE_SHM] (init_alloc_once): Initialize pure_size here.
9940 * lisp.h [HAVE_SHM] (XPNTR): Defined in terms of pure_size,
9941 instead of PURESIZE.
da1d68b2 9942 (pure_size): Extern declaration added here.
615d0182
DL
9943 * ymakefile: Added puresize.h to dependencies for alloc.c and
9944 data.c's .o files.
9945
9946 * emacs.c (main): Doc fix for kludge to scan for -d.
9947
dff28924 99481991-07-17 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9949
9950 * termhooks.h (struct input_event): #if 0'd out the definition for
9951 the screen_selected event type, and added the stipulation that the
9952 {non_,}ascii_keystroke events specify the screen they happen in.
9953 * xterm.c (x_new_focus_screen): Don't enqueue a screen_selected
9954 event.
9955 (XTread_socket): Calls to x_new_focus_screen in the EnterNotify,
9956 FocusIn, LeaveNotify, and FocusOut event code don't worry about
9957 enqueued events any more.
9958 * keyboard.c (new_selected_screen): Removed - see below.
9959 (Vlast_event_screen): New variable, visible to lisp code.
9960 (echo_length, echo_truncate): New functions.
9961 (readable_events): Removed screen_selected events from the set of
9962 things to skip.
9963 (kbd_buffer_store_event): Don't bother collapsing consecutive
9964 screen_selected events.
9965 (kbd_buffer_read_char): Don't process screen_selected events.
9966 (make_lispy_event): Re-arrange scrollbar events to put the window
9967 whose scrollbar was diddled right after the identifying symbol,
9968 for consistency.
9969 (read_key_sequence): Let the selected screen and the location of
9970 the event affect the keymap used to find its binding.
9971 (Fread_key_sequence): Update docstring.
9972 (syms_of_keyboard): Added DEFVAR_LISP for Vlast_event_screen.
9973
99741991-07-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
9975
9976 * screen.c (next_screen): If !mini_screen, only exclude the global
9977 minibuffer screen when the minibuffer is its only window.
9978 (Fnext_screen): Make the docstring clearer about what MINISCREEN
9979 means.
9980
9981 * window.c (Fother_window): Indicate that it takes both a required
9982 and optional argument, instead of just one required.
9983
99841991-07-15 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9985
9986 * buffer.c (Fkill_buffer): Rehacked kill-buffer-hooks to use
9987 standard name kill-buffer-hook, and to use set_buffer_internal
9988 instead of Fset_buffer. Use static variable containing symbol
9989 instead of intern.
9990 (syms_of_buffer, init_buffer_once): Qkill_buffer_hook =
9991 'kill-buffer-hook.
9992
dff28924 99931991-07-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
9994
9995 * keymap.c (Fsingle_key_description): When describing a listy
9996 object, take the car to find the symbol that heads it, not the cdr.
9997
9998 * dispnew.c (buffer_posn_from_coords): Pass col and line to
9999 compute_motion in the correct order.
10000
10001 * keyboard.c (make_lispy_event): When calculating rows and columns
10002 for mouse clicks and movement events, don't forget to subtract the
10003 position of the window's top left corner before passing them to
10004 buffer_posn_from_coords.
10005
10006 * screen.c (coordinates_in_window): Removed useless test for *y ==
10007 screen_height, and screen_height variable; this would be out of
10008 range of all the windows anyway.
10009
10010 * xdisp.c (message1): Removed code to ignore messages before X has
10011 started up; this issue has hopefully been addressed by the
10012 condition-case in startup.el.
10013
10014 * editfns.c (init_editfns): Make user_name char * instead of
10015 unsigned char *, since that's what most of the usages seem to
10016 want. And when expanding ampersands in AMPERSAND_FULL_NAME mode,
10017 don't try to use user_name as a string; use Vuser_name.
10018
10019 * minibuf.c (assoc_for_completion): New function.
10020 (do_completion): Use that to check for exact match.
10021
da1d68b2 10022 * minibuf.c (Ftry_completion): Fix handling of matches aside from
615d0182
DL
10023 case. If ignoring case, and all else equal, try to preserve the
10024 case of the characters in the input.
10025
10026 * process.c (status_notify): GCPRO tail.
10027
da1d68b2 10028 * sysdep.c (creat_copy_attrs, rename_sans_version): Always set
615d0182
DL
10029 protection to O:REWD when creating file. Added new function
10030 rename_sans_version, which strips the version number from the target
da1d68b2 10031 filename, renames the temporary file to this filename, and then
615d0182
DL
10032 sets the file protection of this new file to be the same as the file
10033 being edited.
10034
10035 * sysdep.c [VMS]: Include pwd.h from Emacs. Use sys/file.h if GCC.
10036 (F_SETFL) [VMS]: Undefine this, to control conditionals.
10037 (getpwnam): Make `full' unsigned.
10038 (creat_copy_attrs): Add some casts.
10039 (sys_access): Change prvmask and CHECKPRIV to use bitfields.
10040 Add some casts, and make dummy an unsigned short int.
10041 Don't use & on constants.
10042 (vmserrstr): Add a cast.
10043 (sys_creat): Define va_count before this function.
10044
dff28924 100451991-07-14 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10046
10047 * sysdep.c (sys_sleep, input_wait_timeout): Don't use & on constant.
10048 [VMS]: Include pwd.h from Emacs. Use sys/file.h if GCC.
10049 (bzero, bcopy) [VMS]: Don't take address of `length'.
10050
10051 * sysdep.c (sys_suspend): Cast value of `signal' to insulate from
10052 changed value type in sysV.3.
10053
10054 * sysdep.c (child_setup_tty): Turn off erase & kill chars for BSD.
10055
10056 * sysdep.c (discard_tty_input): Use TIOCFLUSH on Apollo.
10057 (init_sys_modes): Avoid TIOCSTART on Apollo.
10058
10059 * sysdep.c: If HAVE_TERMIOS is not defined, define tcgetattr in
10060 terms of the TIOCGETP ioctl.
10061 (init_sys_modes): Handle VSUSP, V_DSUSP if HAVE_TCATTR.
da1d68b2
JB
10062 (discard_tty_input, init_baud_rate, child_setup_tty)
10063 (init_sys_modes, tabs_safe_p, reset_sys_modes):
615d0182
DL
10064 Use tcgetattr, and if HAVE_TCATTR, use tcsetattr.
10065
dff28924 100661991-07-13 Jim Blandy (jimb@churchy.gnu.ai.mit.edu)
615d0182
DL
10067
10068 * s-hpux8.h: New file.
10069 * fileio.c [HPUX8]: Don't include errnet.h.
10070
10071 * unexhp9k800.c (unexec): Local variable i to avoid compiler bug?
10072
10073 * sysdep.c (insque) [WRONG_NAME_INSQUE]: New function.
10074 * s-386ix.h (WRONG_NAME_INSQUE): Define it.
10075
10076 * xdisp.c (message_buf_print): New variable.
10077 (message): Clear it here.
10078 * dispextern.h: Declare it here.
10079 * print.c (printchar, strout): Set it and test it here.
10080
10081 * keyboard.c (command_loop_1): Don't clear last_command when start
10082 macro.
10083
10084 * keyboard.c (read_command_char): Exit at eof if noninteractive.
10085
10086 * indent.c (invalidate_current_column): New function.
10087 * editfns.c (Fwiden, Fnarrow_to_region): Call it.
10088
10089 * process.c (create_process): Use O_NOCTTY whenever defined,
10090 unless USG.
10091
10092 * process.c (Fprocess_send_eof): If using a pipe, close it.
dff28924 10093 (close_process_descs): Check IN and OUT for nonzeroness.
615d0182
DL
10094
10095 * process.c (process_send_signal): Use interrupt chars
10096 to send certain signals to the process group.
10097 (TIOCGETC): Undefine this if it is not really usable.
10098
10099 * sysdep.c (discard_tty_input): Do nothing if read_socket_hook.
10100
10101 * xfns.c (x_set_mouse_color): Change the default pointer shapes to
10102 be closer to xterm and emacs 18.
10103
10104 * xterm.c (x_focus_on_screen, x_unfocus_screen): These no longer
10105 call XSetInputFocus, because I think that the X-windows ICCCM
10106 says that only the window manager can do this sort of thing.
10107
10108 * keyboard.c (read_char): When there is an unread command
10109 character, goto reread_first when this_command_key_count is zero,
10110 not when it is >= 0.
10111 (command_loop_1): Reset this_command_key_count only if there is no
10112 prefix argument. This makes echoing of keystrokes work correctly.
10113
101141991-07-11 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
10115
10116 * eval.c (Finteractive_p): Changed "! XTYPE (foo) == Lisp_Bar" to
10117 "XTYPE (foo) != bar".
10118
dff28924 101191991-07-11 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
10120
10121 * eval.c (apply1): Don't forget to UNGCPRO before returning.
10122
10123 * xterm.c (XTupdate_begin): Undisplay the cursor here; do_scrolling
10124 will call XTins_del_lines when the screen matrix is inaccurate, so
10125 we cannot undisplay the cursor then, but do_scrolling is always
10126 called within an update.
10127
dff28924 101281991-07-10 David J. MacKenzie (djm@nutrimat)
615d0182
DL
10129
10130 * termcap.c, tparam.c [!emacs, USG || STDC_HEADERS]: Define bcopy
10131 in terms of memcpy.
10132
dff28924 101331991-07-09 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
10134
10135 * scroll.c (do_scrolling): Use correct termination condition for
10136 loop that uses the glyph pointers for the deleted lines to fill in
10137 the inserted lines.
10138
dff28924 101391991-07-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
10140
10141 * editfns.c: Doc fix.
10142
dff28924 101431991-07-03 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10144
10145 * dispnew.c (line_hash_code): Test m->highlight[vpos], not
10146 m->highlight. All lines were getting hash codes of -1, because
10147 the highlight vector was never NULL. Golly.
10148
10149 * process.c (list_processes_1): Handle status of network streams.
10150
dff28924 101511991-07-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
10152
10153 * doc.c (Fdocumentation_property):
10154 Pass only strings to Fsubstitute_command_keys.
10155
dff28924 101561991-07-02 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
10157
10158 * editfns.c (init_editfns): If neither of the environment
10159 variables are set, DON'T set Vuser_name to Vuser_real_name; it's
10160 supposed to reflect the EFFECTIVE uid.
10161 Get the full name according to Vuser_name if it differs from
10162 Vuser_real_name, not if they are equal.
10163 And pass Vuser_name to getpwnam in that case instead of user_name,
10164 which might be 0.
10165
10166 * lisp.h (RETURN_UNGCPRO): New macro.
dff28924 10167
615d0182
DL
10168 * bytecode.c (Fbyte_code): Do not remove GC protection from the
10169 stack when making a function call, because the caller is
10170 responsible for protecting the arguments to a MANY-arg'ed
10171 function.
10172 * eval.c (Fapply): If we use funcall_args, GCPRO it.
10173 And when we call Ffuncall with funcall_args, tell it the correct
10174 length of funcall_args, no matter which branch allocated it.
10175 (Ffuncall): Don't gcpro the arguments before calling
10176 Fgarbage_collect.
10177 (Feval): If we're calling a subr that takes MANY args, don't
10178 UNGCPRO until after we call the subr.
10179 (apply1, call0, call1, call2, call3): GCPRO the arg arrays passed
10180 to Ffuncall and Fapply.
10181 * callproc.c (Fcall_process, Fcall_process_region): Don't GCPRO
10182 the argument array.
10183 * editfns.c (Finsert, Finsert_before_markers): Don't GCPRO the
10184 argument array. Added comment about when GCPROing is not needed.
10185 * mocklisp.c (Finsert_string): Don't GCPRO the argument array.
10186
10187 * keyboard.c (init_keyboard): Handle SIGQUIT with interrupt_signal
10188 on any system that has HAVE_TERMIO, not just on USG systems.
10189
dff28924 101901991-07-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
10191
10192 * editfns.c (init_editfns): Test that user_name isn't 0.
10193
dff28924 101941991-06-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
10195
10196 * search.c: Doc fixes.
10197
dff28924 101981991-06-28 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
10199
10200 * keyboard.c (make_lispy_event): Let the posns of mouse clicks and
10201 mouse movements be nil when window_from_coordinates returns a
10202 NON-window, not when it returns a window. Since posn is a lisp
10203 object, don't call make_number when consing up the event.
10204 Don't call make_number on the code member of the event.
10205
10206 * keyboard.c (struct movement): Make the x, y, and time members
10207 Lisp_Objects, since it's easier to convert from a Lisp_Object than
10208 to.
10209 (note_mouse_position): Adjusted for the above.
10210 (make_lispy_event): Removed code to make Lisp_Objects for those
10211 members.
10212
10213 * xterm.c (XTread_socket): When handling LeaveNotify events,
10214 remember that the focus member of the event is true when the
10215 receiving window now has the focus, not when it is losing it.
10216 * xfns.c (Ffocus_screen): Don't signal an error if SCREEN is
10217 already the focus screen.
10218
dff28924 102191991-06-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10220
10221 * alloc.c (Fmake_rope): Use sizeof (GLYPH) instead of 2 to
10222 determine how large the string should be, and changed doc string
10223 to describe ropes as strings of glyphs, not just as strings of
10224 character pairs.
10225 (Frope_elt): Use sizeof (GLYPH) as the element size, instead of
10226 assuming that the elements are two bytes.
10227 * lisp.h (typedef GLYPH): Moved the definition from here...
10228 * config.h (typedef GLYPH): to here, so people can elect to get
10229 better performance if they don't want to use huge fonts.
10230 * xterm.c (dumpglyphs): Use XDrawImageString or
10231 XDrawImageString16, Depending on sizeof (GLYPH).
dff28924 10232
615d0182
DL
10233 * data.c (Fsetq_default): Call Fset_default to do the assignments,
10234 not plain Fset.
10235
10236 The following changes were contributed by Jamie Zawinski
10237 <jwz@lucid.com>:
10238
10239 * bytecode.c (Fbyte_code): BYTE_CODE_SAFE and BYTE_CODE_METER
10240 options added.
10241 Added Bmark, Bscan_buffer, Bset_mark to support error-checking for
10242 these obsolete bytecodes.
10243 Added Bunbind_all to support tail-call optimization (not yet
10244 implemented).
10245 Did NOT add the relative branch opcodes that were in the version
10246 of bytecode.c that Jamie sent.
10247 The branching bytecodes now only QUIT if they take the branch.
10248 Btemp_output_buffer_show, Bforward_char, Bforward_word,
10249 Bskip_chars_forward, Bskip_chars_backward, and Bforward_line
dff28924 10250 passed the wrong number of arguments to their subrs.
615d0182
DL
10251 Brem, Bbuffer_substring, Bdelete_region, Bnarrow_to_region,
10252 Bstringeqlsign, Bstringlss, Bequal, Bnthcdr, Bmember, Bassq,
10253 Bsetcar, and Bsetcdr passed arguments to the subr in the wrong
10254 order.
10255
dff28924 102561991-06-25 Jim Blandy (jimb@churchy.gnu.ai.mit.edu)
615d0182
DL
10257
10258 * doc.c (Fdocumentation): Added a QUIT test to the loop that finds
10259 the symbol's function value.
10260
dff28924 102611991-06-24 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
10262
10263 * xterm.c (dumprectangle): Removed call to XFlushQueue here.
10264
10265 * keyboard.c (command_loop_1): Call Fselect_screen to establish
10266 the new selected screen after the key sequence has been read, not
10267 at the top of the loop. This way, a key sequence will happen in
10268 the screen it was typed at, or (to be more precise) the screen its
10269 last character was typed at.
10270
10271 * keyboard.c (fast_read_one_key): Function deleted, since it had
10272 been #if 0'd out a long time ago.
10273 (command_loop_1): Support for fast_read_one_key removed.
10274
10275 * eval.c (Ffuncall): Do GCPRO the arguments, contrary to the May
10276 16 change. The convention appears to be that the MANY-arged
10277 callee must protect its own arguments.
10278 (Fapply): Don't protect funcall_args; they are the caller's
10279 responsibility.
10280 * bytecode.c (Fbyte_code): GCPRO the section of the stack *above*
10281 the args to Ffuncall, since it will be protected again once
10282 Ffuncall returns and therefore should stay valid. If it is not
10283 protected, string relocation may make it invalid.
10284 * mocklisp.c (Finsert_string): GCPRO the arguments, since insert
10285 may cause a garbage collection.
10286 * editfns.c (Finsert, Finsert_before_markers): GCPRO the
10287 arguments, since insert may cause a garbage collection.
10288 * callproc.c (Fcall_process, Fcall_process_region): GCPRO the
10289 arguments, since insert may cause a garbage collection.
10290
dff28924 102911991-06-20 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
615d0182 10292
da1d68b2 10293 * buffer.h (struct buffer_text, struct buffer): Small change to
615d0182
DL
10294 comments.
10295
10296 * search.c (Fmatch_beginning, Fmatch_end): Fixed doc strings to
10297 indicate that non-regexp searches set these too.
10298
10299 * window.c (Fset_window_start): If window is not the selected
10300 window, set windows_or_buffers_changed, so that redisplay will
10301 know that it should redisplay the window.
10302
10303 * callint.c (Finteractive): Changed doc string to indicate that
10304 the interactive prompts are passed through format.
10305
103061991-06-20 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10307
10308 * buffer.c (syms_of_buffer): buffer-undo-list doc fix.
10309
103101991-06-11 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10311
10312 * data.c (Fsetq_default): Take multiple SYM, VAL args; syntax now
10313 parallel to setq.
10314
dff28924 103151991-05-25 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
615d0182
DL
10316
10317 * keyboard.c (kbd_buffer_read_char): Fix wait-for-input loop so
10318 that we always process/toss events we don't want to return.
10319
da1d68b2 10320 * screen.c (Fselect_screen): Call Ffocus_screen instead of
615d0182
DL
10321 x_new_selected_screen, which doesn't exist anymore.
10322
10323 * xfns.c (Ffocus_screen): Declare the type of the SCREEN argument.
10324
10325 * xfns.c (Fx_track_pointer): Function #if 0'd out - I don't think
10326 that this is a feature that we want.
10327 (syms_of_xfns): Elide the defsubr for the above.
10328
10329 * xterm.c (x_mouse_screen, x_input_screen): Variable deleted,
10330 since all we really need is x_focus_screen; all other issues are
10331 the realm and responsibility of the window manager.
10332 (x_new_selected_screen): Renamed to x_new_focus_screen, and
10333 modified not to do thiogs inappropriate for signal handlers.
10334 (XTread_socket): Change the handling of EnterNotify, LeaveNotify,
10335 FocusOut and FocusIn events to use x_new_selected_screen, and
10336 ditched code that deals with x_mouse_screen and x_input_screen,
10337 since they don't exist anymore.
10338 (x_display_bar_cursor, x_display_box_cursor): Compare s with
10339 x_focus_screen to see what form the cursor should take.
10340 (x_destroy_window): Don't bother with x_input_screen.
10341 * xfns.c (x_mouse_screen): Removed extern declaration for this.
10342 (Fx_grab_pointer): Confine the pointer to x_focus_screen, not
10343 x_mouse_screen. This is wrong, but will make emacs compile until
10344 this gets fixed.
10345
dff28924 103461991-05-23 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10347
10348 * keyboard.c (get_input_pending): Don't use trim_events; use
10349 readable_events instead.
10350
10351 * keyboard.c (make_lispy_event): Remove case for window_sys_event,
10352 since that type of event doesn't exist anymore.
10353
10354 * minibuf.c (Fcompleting_read): Document the backup-n argument.
10355
10356 * dispnew.c (init_display): Don't declare alternate_display extern
10357 here. I can't figure out what this feature is, and it's broken.
10358 * emacs.c (main): Don't test alternate_display and put its value
10359 in the environment.
10360
dff28924 103611991-05-22 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10362
10363 * keyboard.c (struct movement): Made .used an int instead of a
10364 char, since that's more likely to be stored atomically on SPARCS
dff28924 10365 and similar machines.
615d0182
DL
10366
10367 * termhooks.h (struct input_event): Removed the window_sys_event,
10368 since it's not used anywhere. Added screen_selected event type.
10369 The event handling code used to change the current buffer,
10370 selected window, and selected screen out from under running lisp
10371 code. Now we wait for a more convenient time by enqueuing an
10372 event.
10373 * xterm.c (XTread_socket): When handling FocusIn events and
10374 EnterNotify events with the focus member set, enqueue a
10375 selected_screen event instead of calling x_new_selected_screen.
10376 * keyboard.c (trim_events): Function deleted; it is a bad idea to
10377 delete events based on the current tracking state, since tracking
10378 might be re-enabled later.
10379 (readable_events): New function which searches the input queue for
10380 readable events.
10381 (tracking_off): Call readable_events to see if we should
10382 redisplay.
10383 (kbd_buffer_read_char): Toss events that we are not interested in.
10384 This is a better place to do it than trim_events, since we know
10385 that do_mouse_tracking will not change. Also, handle
10386 screen_selected events.
10387 (new_selected_screen): New variable, holding the screen which
10388 should become selected the next time through command_loop_1.
10389 (syms_of_keyboard): Initialize and staticpro new_selected_screen.
10390 (command_loop_1): If there is a new screen to be selected, do so.
10391
103921991-05-21 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
10393
10394 * xdisp.c (message): Removed the if at the top that did not
10395 display messages if the current screen was a termcap screen and a
10396 window system will be used. The change to startup.el on May 18,
10397 1991 replaces this.
10398
10399 * ralloc.c (check_memory_limits): If the address returned by the
10400 allocator is not representable in a Lisp_Object, call memory_full
10401 instead of printing a very silly "warning" message.
10402
dff28924 104031991-05-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
615d0182
DL
10404
10405 * xterm.c (XTread_socket): Don't overwrite the end of the buffer
10406 with function keys.
10407
10408 * keyboard.c (tracking_off): Update input_pending after reading
10409 all the input.
10410 * process.c: #include "screen.h".
10411 (wait_reading_process_input): Check if any screens have been newly
10412 mapped and need updating.
10413 * xterm.c (XTread_socket): Don't SET_SCREEN_GARBAGED when the
10414 screen is unmapped; do this when is mapped.
10415 (dumprectangle): Don't dump any data for garbaged screens.
10416
dff28924 104171991-05-18 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10418
10419 * sysdep.c (init_sys_modes): Moved the clauses that set up
10420 interrupt-driven input out of the "if running on a terminal"
10421 clause, since these may need to be set up even when running on a
10422 window system.
10423
dff28924 104241991-05-17 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10425
10426 * process.c (Fprocess_status): For network connections, return
10427 Qopen and Qclosed instead of Qrun and Qexit, as documented.
10428
10429 * lread.c (read1): Removed code that treated numbers starting with
10430 a zero as octal.
10431
dff28924 104321991-05-16 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
10433
10434 * eval.c (Ffuncall): Don't gcpro the arguments; the caller
10435 protects them.
10436 (Fapply): Gcpro funcall_args, if we use them.
10437
10438 * xterm.c (notice_mouse_movement): #if 0'd this function out.
10439 (XTread_socket): #if 0 the code that fakes motion events for
10440 moving in and out of windows. Also, rearrange the MotionNotify
10441 case to give character rows and columns to note_mouse_position,
10442 not pixel x and y positions. Don't deal with scrollbars here.
10443 * termhooks.h (struct input_event): Removed the mouse_movement
10444 event kind.
10445 * keyboard.c (movement_buf): A new buffer for mouse-movement events.
10446 This is hairier than you might think; see the comments for this
10447 and the comments for note_mouse_position and get_mouse_position
10448 for an explanation of why this is hairy.
10449 (movement_ptr): Where the event handler should store new mouse
10450 locations.
10451 (EVENT_QUEUES_EMPTY): New macro, to be used in the places that
10452 used to compare kbd_fetch_ptr to kbd_store_ptr to see if there
10453 were any events available; this macro tests the mouse movement
10454 buffer too.
10455 (Qmouse_movement): New symbol to head mouse movement events with.
10456 (trim_events): Mouse movement events are no longer in kbd_buffer,
10457 so don't try to trim them.
10458 (tracking_off, kbd_buffer_read_char, get_input_pending): Use
10459 EVENT_QUEUES_EMPTY.
10460 (get_mouse_position): New function to retrieve a mouse position
10461 from the buffer properly, no matter when the event-handling signal
10462 occurs.
10463 (kbd_buffer_read_char): If there is something in kbd_buffer, make
10464 an event for that; if there is a mouse movement, make an event for
10465 that; otherwise, the while loop lied.
10466 (make_lispy_event): Added code to produce mouse movement events.
10467 (init_keyboard): Clear the mouse movement buffer.
da1d68b2
JB
10468 (Qmouse_moved, Qredraw_screen, Qmapped_screen, Qunmapped_screen)
10469 (Qexited_window, Qexited_scrollbar): Removed extern declarations
615d0182
DL
10470 for these, since they're no longer generated.
10471 (syms_of_keyboard): Initialize and staticpro Qmouse_movement,
10472 remove DEFVAR_LISP for Vignore_mouse_events.
10473
dff28924 104741991-05-14 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
10475
10476 * lread.c (read1): Correctly parenthesize the shift when parsing
10477 octal numbers, and signal an error if we see a non-octal digit.
10478
dff28924 104791991-05-13 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
615d0182
DL
10480
10481 * keyboard.c (trim_events): New function, to remove uninteresting
10482 events from the input queue.
10483 (get_input_pending): Call trim_events before checking the queue,
10484 so as not to advertise input we don't care about.
10485 (Ftrack_mouse): A new function to enable mouse tracking for a
10486 block of code.
10487 (tracking_off): A function for unwind_protection; restore the
10488 mouse tracking state to what it was outside of the track-mouse
10489 (syms_of_keyboard): defsubr track-mouse.
10490 (make_lispy_event): Find the window io which the click occurred
10491 when processing mouse_click events, instead of trusting the window
10492 tree in the signal-handling code. Include the buffer position in
10493 the click event.
10494
10495 * xterm.c (construct_mouse_click): Return the click's screen, not
10496 its window, and don't bother updating Vmouse_window. Calculate
10497 the row and column of text-area clicks using
10498 pixel_to_glyph_translation, since we know that those data
10499 structures are alive in signal handlers.
10500
10501 * screen.c (window_from_coordinates,
10502 Flocate_window_from_coordinates): Moved these to window.c, since I
10503 need to be able to call them even if we don't have multi-screen
10504 support.
10505 (syms_of_screen): Removed defsubr for
10506 Flocate_window_from_coordinates.
10507 * window.c (window_from_coordinates, Flocate_window_from_coordinates):
10508 Here they are.
10509 (syms_of_window): Here is the defsubr.
10510
10511 * keyboard.c (note_mouse_position): New function to enqueue
10512 mouse movement events properly.
10513 (current_movement_event): New variable, to support the above. See
10514 its comment for more explanation.
10515
10516 * termhooks.h (struct input_event): Change the .window member to
10517 .screen, make it a struct screen *, and indicate that those events
10518 which used to return windows now return screens. It is unsafe
10519 for the event reader to traverse the window structure, because it
10520 can be called by a signal handler.
10521
dff28924 105221991-05-10 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
10523
10524 * keyboard.c (Vignore_mouse_events): Variable deleted.
10525 (make_lispy_event): For mouse and scrollbar clicks, return the
10526 position as a pair of numbers, not a list of two numbers.
10527
dff28924 105281991-05-09 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
615d0182
DL
10529
10530 * keyboard.c (do_mouse_tracking): Define this variable, which
10531 controls whether kbd_buffer_read_char will ignore button up and
10532 mouse movement events.
da1d68b2 10533 * termhooks.h: Declare do_mouse_tracking here.
615d0182 10534
da1d68b2 10535 * xterm.h (STANDARD_EVENT_SET): New constant, giving the event
615d0182
DL
10536 mask all the windows use.
10537
10538 * xfns.c (Vx_send_mouse_movement_events): Removed this variable;
10539 XTmouse_tracking_enable and do_mouse_tracking do its job better.
10540 (syms_of_xfns): Remove the DEFVAR_LISP for the above.
10541 (x_window): Don't ask for any pointer motion events or button
10542 release events by default; use the unmodified STANDARD_EVENT_MASK.
10543 The user will ask for them explicitly if he or she wants them.
10544 And don't ask for backing store.
10545
10546 * xterm.c (XTmouse_tracking_enable): New function to
10547 request/unrequest detailed mouse tracking information of the
10548 server, and set the flag used by XTread_socket.
10549 (x_term_init): Set mouse_tracking_enable_hook to
10550 XTmouse_tracking_enable here.
10551 (XTread_socket): Handle mouse movement events by calling
10552 note_mouse_position.
10553
10554 * xterm.c (XTread_socket): For MapNotify events, go ahead and set
10555 the screen's visible flag, so Expose events will work. Clear the
10556 iconified flag.
10557
10558 * editfns.c (Finsert_char): Return immediately if n <= 0, not just
10559 if n < 0, so that the `while' below does not become an infinite
10560 loop.
10561
10562 * term.c (mouse_tracking_enable_hook): Added this variable to
10563 allow emacs to request that the window system start or stop
10564 detailed mouse tracking.
10565 * termhooks.h (mouse_tracking_enable_hook): Declare it here.
10566
10567 * xfns.c: Declare the functions before initializing
10568 x_screen_parm_table to point to them.
10569
10570 * xterm.c (XTread_socket): Don't send Qmapped_screen,
10571 Qunmapped_screen, Qexited_scrollbar, Qexited_window,
10572 Qredraw_screen - these are not features that we want to support.
10573
dff28924 105741991-05-07 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10575
10576 * editfns.c (Finsert_char): Let strlen be the minimum of n and
10577 256, not the maximum, so we use an n-byte buffer when n < 256, and
10578 a 256-byte buffer many times when n > 256.
10579
dff28924 105801991-05-05 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
10581
10582 * keymap.c (Fkeymapp): Fixed docstring to give the right
10583 definition of a keymap.
10584
dff28924 105851991-05-03 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
10586
10587 * data.c (Fcompiled_function_p): New function.
10588
dff28924 105891991-05-03 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10590
10591 * xfns.c (struct x_screen_parm_table): New type for recording
10592 information about screen parameters.
10593 (x_screen_parms): New table describing the existing parameters.
10594 (init_x_parm_symbols, x_set_screen_param): Use x_screen_parms
10595 instead of a large switch statement.
10596 (x_figure_window_size): Make the default case of the switch call
10597 abort instead of signalling an error, since window_prompting's
10598 value is internally generated.
10599
dff28924 106001991-05-01 Jim Blandy (jimb@churchy.gnu.ai.mit.edu)
615d0182
DL
10601
10602 * keymap.c (describe_map_tree): GCPRO the maps variable;
10603 Fkey_description calls Fmapconcat, which eventually calls
10604 Ffuncall, which can garbage-collect.
10605
dff28924 106061991-04-28 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10607
10608 * dispnew.c (buffer_posn_from_coords): Use the information in bufp
10609 to reduce the distance compute_motion must scan, when possible.
10610
dff28924 106111991-04-27 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10612
10613 * keyboard.c (syms_of_keyboard): Qtop_level is initialized and
10614 staticpro'd in syms_of_data too. Don't staticpro (or initialize)
10615 it again here.
10616
10617 * macros.c (syms_of_macros): Since executing-macro and
10618 executing-kbd-macro are actually the same variable, use
10619 DEFVAR_LISP_NOPRO for the second one so it doesn't get staticpro'd
10620 twice.
10621
10622 * process.c (syms_of_process): Don't staticpro or initialize Qexit
10623 here, since syms_of_eval already does this and it's bad to
10624 staticpro something twice.
10625 (Qexit): Remove declaration here, so there will be a compilation
10626 error if someone rearranges eval.c without fixing the Qexit stuff.
10627 * eval.c (syms_of_eval): Add comment here to say that
10628 syms_of_process cares about Qexit too.
10629
10630 * lread.c (init_obarray): Don't staticpro Vobarray, since the
10631 DEFVAR_LISP in syms_of_read takes care of that.
10632
dff28924 106331991-04-22 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10634
10635 * window.c (save_window_save): Always get the selected window's
10636 value of point from its buffer, not just when it's also the
10637 current buffer.
10638
10639 * lisp.h (Qdisabled): Declare this here so that the keys_of_*
10640 files can disable the commands they define.
10641 * casefiddle.c (keys_of_casefiddle): Make upcase-region and
10642 downcase-region disabled, by default.
10643
dff28924 106441991-04-16 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182 10645
da1d68b2 10646 * bytecode.c (PUSH): Alliant can't be bothered to implement the
615d0182
DL
10647 preincrement operator right, so use a comma.
10648
da1d68b2 10649 * print.c (syms_of_print): staticpro Qexternal_debugging_output.
615d0182
DL
10650
10651 * editfns.c (clip_to_bounds): No longer static - used in window.c.
10652 * window.c (unshow_buffer): Use clip_to_bounds to make sure we
10653 change point to something legal.
10654
dff28924 106551991-04-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
10656
10657 * sysdep.c: Changes in formatting and comments.
10658
dff28924 106591991-04-12 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
615d0182
DL
10660
10661 * editfns.c (Fbuffer_substring): Don't call make_string, because
10662 it may cause a compaction and move the buffer, and then copy the
10663 wrong data.
10664
10665 * keyboard.c (read_char): Only GC if we've actually done enough
10666 consing since the last gc to make it worthwhile.
10667
dff28924 106681991-04-11 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
615d0182
DL
10669
10670 * keymap.c (access_keymap): Canonicalize the order of the
10671 modifiers when you look up a symbol in a keymap, too.
10672 (where-is-internal): If the keymap in which we found the
10673 definition was reached by meta-prefix-char, replace it with the
10674 metized character.
10675
10676 * eval.c (Fcondition_case): Initialize the `handler_list' member
10677 of the catchtag.
10678
da1d68b2 10679 * keyboard.c (read_char): Reset recent_keys_index when it is
615d0182
DL
10680 greater than OR EQUAL to the number of elements in recent_keys,
10681 stupid.
10682
10683 * keymap.c (access_keymap): When fetching the car of listy events,
10684 no need to call Fcar_safe - extract the car directly.
10685 * keyboard.c (read_key_sequence): Don't extract the car from listy
10686 events here since 1) it strips information that we need from the
10687 events, and 2) access_keymap will take care of that for us.
10688
10689 * macros.c (Qexecute_kbd_macro): New variable, used by
10690 Fexecute_command.
10691 (syms_of_macros): Initialize and staticpro Qexecute_kbd_macro.
10692 * lisp.h: Add extern declaration for Qexecute_kbd_macro.
10693 * keyboard.c (Fcommand_execute): Add an entry to the command
10694 history for keyboard macros too.
10695
10696 * xterm.c (XTread_socket): If we get a MappingNotify event whose
10697 request == MappingKeyboard, someone has changed the keyboard
10698 mapping, and we should get the new mapping with
10699 XRefreshKeyboardMapping.
10700
dff28924 107011991-04-10 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
615d0182
DL
10702
10703 * commands.h: Declare last_command_char to be a Lisp_Object, not
10704 an integer (ack).
10705
10706 * cmds.c (Fself_insert_command): If last_command_char is not an
10707 integer, beep.
10708 * minibuf.c (Fself_insert_and_exit): Same thing.
10709
10710 * keyboard.c (format_modifiers): New function, factoring out code
10711 from modify_event_symbol and reorder_modifiers.
10712 (modify_event_symbol): Call format_modifiers instead of doing the
10713 work inline.
10714 (reorder_modifiers): New function to put the modifiers on a
10715 modified symbol in the canonical order.
10716
10717 * keymap.c (modify_event_symbol): Prepend the modifiers so they
10718 appear in the canonical order: `M-C-S-U-'.
10719 (store_in_keymap): If IDX is a symbol, put the modifiers in the
10720 canonical order before storing.
10721
dff28924 107221991-04-09 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10723
10724 * keymap.c (Flocal_set_key, Fglobal_set_key): When checking types
10725 of arguments, allow KEYS to be a vector or string, not just a
10726 string.
10727 (keymap_table): New static function to replace duplicated code in
10728 access_keymap and store_in_keymap.
10729 (access_keymap): Use keymap_table.
10730 (store_in_keymap): Use keymap_table, and put non-character
10731 definitions in dense keymaps *after* the vector.
10732
10733 * fileio.c (directory_file_name): Remove trailing slashes from
10734 single-letter names like "a/" too. Let slen be the string length,
10735 not one less than the string length.
10736
10737 * keyboard.c (Fset_input_mode): Don't complain that QUIT isn't an
10738 ASCII character if it is nil - it is an optional parameter.
10739
10740 * keymap.c (Faccessible_keymaps): Use meta-characters in the key
10741 sequences returned, carefully making sure that the sequences still
10742 appear in order of increasing length.
10743
dff28924 107441991-04-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
10745
10746 * vmsfns.c (vms_trnlog): Increased size of str to 256 elements.
10747 (vms_symbol): Increased size of str to 1025 elements.
10748
dff28924 107491991-03-24 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10750
10751 * dispnew.c (pixel_to_glyph_translation): Moved this function to
10752 xterm.c, since it is specific to X and only called by the X code.
10753 * xterm.c (pixel_to_glyph_translation): Here it is.
10754
dff28924 107551991-03-22 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
10756
10757 * s-usg5-4.h (DATA_SEG_BITS): Definition deleted.
10758 * m-intel386.h (DATA_SEG_BITS): Define here if USG5_4.
10759
dff28924 107601991-03-22 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10761
10762 * keymap.c (Faccessible_keymaps): Produce meta-characters in the
10763 key sequences instead of [meta-prefix-char CHAR] sequences.
10764
dff28924 107651991-03-21 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10766
10767 * keymap.c (Flookup_key): If KEY is a zero-length array, then
10768 return KEYMAP; this is more algebraically satisfying.
10769
10770 * dispnew.c (Fsit_for): If the time to sit is zero and there is no
10771 input available, then return Qt, not Qnil.
10772
10773 * keyboard.c (read_char): If a quit occurs and we return
10774 quit_char, clear Vquit_flag, so we don't end up returning it again
10775 and again... All lisp code does this manually if they call
10776 read-char with quits inhibited, so it's the right thing to do.
10777
dff28924 107781991-03-20 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10779
10780 * keyboard.c (read_char): If there is still no input available
10781 after an auto-save, do a garbage-collection.
10782
10783 * undo.c (truncate_undo_list): Always leave at least one undo
10784 record in the undo list. And use sizeof (struct Lisp_Cons), etc.
10785 instead of 8, etc.
10786
10787 * keyboard.c (read_char): When deciding whether to wrap
10788 recent_keys_index back to 0, compare it against
10789 sizeof (recent_keys)/sizeof(recent_keys[0]),
10790 not sizeof (recent_keys).
10791 (quit_char): This can't be anything but an ASCII character, so it
10792 shouldn't be a Lisp_Object. The declaration's comment says why.
10793 (read_char, init_keyboard): Treat quit_char as an int now.
10794 (Fset_input_mode): As above, and signal an error if QUIT is not an
10795 ASCII character.
10796
10797 * callint.c (Fprefix_numeric_value): Use XFASTINT to initialize
10798 val, not raw.
10799
10800 * fileio.c (Fmake_symbolic_link): Don't expand FILENAME; this
10801 would make it impossible to make a link to a relative name.
10802
dff28924 108031991-03-19 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
615d0182
DL
10804
10805 * keyboard.c (syms_of_keyboard): Removed the DEFVAR_BOOL for
10806 meta-flag. This cannot be a lisp variable because we need to
10807 change the terminal settings whenever this flag changes. Change
10808 this through set-input-mode instead.
10809
dff28924 108101991-03-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
615d0182
DL
10811
10812 * keyboard.c (read_avail_input): Raise SIGHUP if no input on AIX.
10813
dff28924 108141991-03-19 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182 10815
da1d68b2
JB
10816 * keyboard.c (kbd_buffer_store_event, kbd_buffer_read_char)
10817 (read_key_sequence, Fexecute_extended_command, Fset_input_mode)
10818 (init_keyboard, syms_of_keyboard): Use XSET (var, Lisp_Int, exp)
615d0182
DL
10819 instead of XSETINT (var, exp) in those cases where var is not
10820 known to already be a Lisp_Int.
10821 * search.c (skip_chars): Same.
10822 * xterm.c (construct_mouse_click, XTread_socket): Same.
10823 * callint.c (Fprefix_numeric_value): Make sure to return a
10824 Lisp_Int even when RAW is a cons whose car is not a Lisp_Int.
10825 * process.c (sigchld_handler): When searching for a process whose
10826 pid is -1, make sure that the pid is an int first, since network
10827 streams are in Vprocess_alist too.
10828
10829 * keyboard.c (syms_of_keyboard): Added DEFVAR_BOOL for
10830 meta-flag. Emacs 18 had this, and I see no entry in the ChangeLog
10831 saying that it was purposefully removed.
10832
dff28924 108331991-03-17 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182 10834
da1d68b2
JB
10835 * keymap.c (Fcopy_keymap, Faccessible_keymaps, describe_map)
10836 (append_key): Minor typos and brainos corrected.
615d0182
DL
10837
10838 * keyboard.c (read_char): Removed code to find the vector in a
10839 (kbd-macro . VECTOR) - style macro, since the macro is represented
10840 by the vector itself.
dff28924 10841 (read_char_menu_prompt): Changed to correctly recognize the new
615d0182
DL
10842 dense keymap structures.
10843 (read_key_sequence): Changed code that checks for keymapness to
10844 use get_keymap_1 instead of doing the indirection and keymapness
10845 testing itself.
10846 (Fcommand_execute): A keyboard macro is now a string or a vector.
10847 (Fexecute_extended_command): When expanding this_command_keys,
10848 remember that it is now an array of Lisp_Objects, not chars.
10849
10850 * doc.c (Fdocumentation): Rearranged into a switch statement, and
10851 made vectors macros, not keymaps.
10852
dff28924 10853 * eval.c (Fcommandp): Removed code to recognize
615d0182
DL
10854 (kbd-macro . VECTOR) as a command, and added code to recognize
10855 vectors as commands.
10856 * macros.c (Qkbd_macro): Variable deleted.
10857 (syms_of_macros): Initialization of Qkbd_macro removed.
10858
dff28924 108591991-03-14 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
10860
10861 * minibuf.c (keys_of_minibuf): Changed all calls to
10862 initial_define_lisp_key to calls to initial_define_key.
10863
10864 * keymap.c (describe_map): Adjusted to handle the new style of
10865 keymap.
10866
dff28924 108671991-03-14 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
10868
10869 * fileio.c (Fwrite_region): On VMS, don't try rewriting old version.
10870
dff28924 108711991-03-14 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
10872
10873 * keymap.c (Faccessible_keymaps): Adjusted to handle the new style
10874 of keymap.
10875 (Fwhere_is_internal): Handle the new-style of keymaps.
10876 Additionally, only check to see if a match is shadowed by a
10877 binding in the local keymap when LOCAL_KEYMAP is non-nil, instead
10878 of comparing elt against DEFINITION yet again.
10879 (describe_map_tree): Handle key sequences that are vectors, as
10880 well as those that are strings.
10881
dff28924 108821991-03-13 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
10883
10884 * commands.h, keymap.c (meta_map, control_x_map): Make these
10885 Lisp_Objects, not Lisp_Vectors.
10886 keymap.c (syms_of_keymap): Same.
10887
10888 * keymap.c (Fuse_global_map): There is no longer any reason to
10889 insist that KEYMAP must be a dense keymap; delete the code that
10890 does so.
10891
dff28924 108921991-03-12 Jim Blandy (jimb@wookumz.ai.mit.edu)
615d0182
DL
10893
10894 * commands.h, lisp.h: Changed global_map and current_global_map to
10895 be Lisp_Objects, not Lisp_Vectors.
10896 keyboard.c (read_key_sequence): Same.
da1d68b2
JB
10897 keymap.c (Fkey_binding, Fglobal_key_binding, Fglobal_set_key)
10898 (Fuse_global_map, Fwhere_is_internal, describe_buffer_bindings)
10899 (syms_of_keymap): Same.
615d0182
DL
10900
10901 * keymap.c (Fdefine_key): Braino: increment idx and clear metized
10902 flag even when the element of the key sequence isn't a character.
10903 (Flookup_key): Fix same braino.
10904
dff28924 109051991-03-10 Jim Blandy (jimb@wookumz.ai.mit.edu)
615d0182
DL
10906
10907 * keymap.c (get_keyelt): Use access_keymap to resolve indirect
10908 entries, instead of duplicating its code.
10909 (Fcopy_keymap): Handle the new keymap structure.
10910
dff28924 109111991-03-09 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
10912
10913 * eval.c (struct catchtag): New field handlerlist.
10914 (internal_catch, internal_condition_case): Set that field.
10915 (unbind_catch): Use it.
10916
dff28924 109171991-03-08 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
10918
10919 * m-intel386.h (signal): Maybe define if USG.
10920
10921 * keyboard.c (echo_char): Don't have space at end of echobuf.
10922
dff28924 109231991-03-07 Jim Blandy (jimb@albert.ai.mit.edu)
615d0182
DL
10924
10925 * keyboard.c (syms_of_keyboard): Initialize mouse_syms, instead of
10926 doing func_key_syms twice. Don't deal with scrollbar_syms, since
10927 it doesn't exist.
10928
dff28924 109291991-03-06 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
10930
10931 * keymap.c (access_keymap, store_in_keymap): Changed to handle the
10932 new style of keymaps.
10933
10934 * fns.c (Fassq, Fcopy_alist): Changed docstring to promise to
10935 ignore elements of LIST that are not conses. See access_keymap
10936 and copy_keymap for a cheap excuse.
10937
dff28924 109381991-03-06 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
10939
10940 * s-vms.h (DATA_START): Remove `+ 512'.
10941
dff28924 109421991-03-05 Jim Blandy (jimb@spiff.ai.mit.edu)
615d0182
DL
10943
10944 * keymap.c (Fmake_keymap): Rewritten to construct the
10945 new dense keymap structure: (keymap VECTOR . ALIST). Docstring
10946 adjusted accordingly. This means that the keyboard macro
10947 stupidity (see Feb 27, keyboard.c) is no longer needed.
10948
dff28924 109491991-03-03 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
10950
10951 * sysdep.c (MEMORY_IN_STRING_H): New compilation flag.
10952 * s-isc2-2.h: New file.
10953
dff28924 109541991-02-27 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
10955
10956 * macros.c (Qkbd_macro): New variable, to hold the symbol
10957 `kbd-macro', which we use to tag vector-style keyboard macros.
10958 (syms_of_macros): Initialize and staticpro Qkbd_macro.
10959
10960 * eval.c (Fcommandp): Recognize the new keyboard macros.
10961
10962 * keyboard.c (Fcommand_execute): A keyboard macro is now a string,
10963 or a cons whose car is the symbol `kbd-macro' and whose
10964 cdr is a vector of events; previously, macros were strings or
10965 vectors, but that makes it difficult to tell the difference
10966 between macros and dense keymaps.
10967 (read_char): Handle the new macros correctly, and re-allocate
10968 this_command_keys correctly.
10969
dff28924 109701991-02-26 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
10971
10972 * s-vms.h (calloc): Define like malloc, etc.
10973
dff28924 109741991-02-26 Jim Blandy (jimb@spiff.ai.mit.edu)
615d0182
DL
10975
10976 * xterm.c (XTread_socket): Move enter_timestamp outside of the
10977 function; static variables inside functions don't always work in
10978 Emacs.
10979
10980 * editfns.c (in_accessible_range): Deleted - insufficently
10981 general.
10982 (clip_to_bounds): New function, much like in_accessible_range,
10983 except that the upper and lower bounds are arguments.
10984 (goto_char, save_restriction_restore): Rewritten to use
10985 clip_to_bounds instead of in_accessible_range.
10986
dff28924 109871991-02-25 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
10988
10989 * keymap.c (initial_define_lisp_key): Turn KEY into a Lisp_Int
10990 before passing it to store_in_keymap.
10991
10992 * buffer.c (reset_buffer_local_variables): Don't try to initialize
10993 the buffer's mouse_map and function_key_map fields, since they
10994 don't exist anymore.
10995
10996 * macro.c (kbd_macro_buffer, kbd_macro_ptr, kbd_macro_end): These
10997 are now all pointers to Lisp_Objects instead of chars.
10998 (Fend_kbd_macro): Use make_sequence.
10999 (store_kbd_macro_char): Argument c is now a Lisp_Object. Change
11000 call to xrealloc to ask for Lisp_Objects instead of chars. Set
11001 kbd_macro_end to the same place in the new buffer as it was in the
11002 old one, not to the end of the buffer.
11003 (Fexecute_kbd_macro): Allow MACRO to be a string or a vector.
11004 (syms_of_macros): Allocate Lisp_Objects instead of chars for
11005 kbd_macro_buffer.
11006
11007 * alloc.c (make_sequence): New function, useful to keyboard.c and
11008 macro.c.
11009 * keyboard.c (Fread_key_sequence): Use make_sequence.
11010 (Fthis_command_keys): Use make_sequence.
11011
dff28924 110121991-02-24 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
11013
11014 * keymap.c (Fwhere_is): If the command can't be found, the message
11015 is now "foobie is not on any key.", instead of "... any keys.".
11016
11017 * keyboard.c (input_poll_signal): Pass 0 to read_avail_input,
11018 instead of `&junk'. Removed variable `junk'.
11019 (command_loop_1): Updated to handle the unified function key/mouse
11020 event/keystroke arrangement.
11021 (Finput_pending_p): Removed vestiges of code to handle
11022 unread_input_char value of -1, since this doesn't happen anymore.
11023 (read_char): Adapted to handle lispy events.
11024 (read_char_menu_prompt): Allocate `menu' buffer using alloca,
11025 instead of a variable-sized array, which is gcc-specific.
11026 (Frecent_keys): Return the most recent "keystrokes" as a vector,
11027 to accomodate lispy events.
11028 (Fset_input_mode): Accomodate non-characters as quit keys. If
11029 this is a bad thing, init_sys_modes will tell us.
11030 (init_keyboard): this_command_keys is now an array of
11031 Lisp_Objects; adjust the amount of storage we request to hold it.
11032 Remember that quit_char can be any keystroke.
11033 (syms_of_keyboard): last_command_char, last_input_char, help_char,
11034 menu_prompt_more_char and meta_prefix_char are now DEFVAR_LISPs
11035 instead of DEFVAR_INTs.
dff28924
SS
11036
110371991-02-24 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11038
11039 * process.c (wait_reading_process_input): Use NETCONN_P.
11040
dff28924 110411991-02-23 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 11042
da1d68b2
JB
11043 * keyboard.c (recent_keys, this_command_keys)
11044 (menu_prompt_more_char, help_char, last_command_char, quit_char)
11045 (last_input_char): Changed to Lisp_Objects, so we can use function
615d0182
DL
11046 keys for them.
11047 (Vglobal_function_map): Variable deleted.
11048 (echo_char): Echo function keys too. The argument C is now a
11049 Lisp_Object instead of a char.
11050 (Fread_key_sequence): Removed sludge to handle window events
11051 specially, and added sludge to handle sequences with
11052 non-characters in them.
11053 (classify_object): Elided, since this should go away soon.
11054 (read_key_sequence): Adapted to look up symbols in keymaps,
11055 just like characters.
11056
dff28924 110571991-02-23 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11058
11059 * process.c (send_process): Handle EAGAIN like EWOULDBLOCK.
11060
dff28924 110611991-02-22 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
11062
11063 * doc.c (substitute_command_keys): Call describe_map_tree with
11064 only three arguments, since the CHARTAB arg has been disposed of.
11065
11066 * keymap.c (Fcurrent_global_map, Fuse_local_mouse_map): Functions
11067 deleted, since the mouse maps are no longer separate from the key
11068 maps.
11069 (append_key): New function, which handles tacking a single
11070 keystroke on the end of a key sequence, promoting strings to
11071 vectors when needed.
11072 (Faccessible_keymaps): Adjusted to return vectors for key
11073 sequences, when necessary.
11074 (Fkey_description): Removed stuff to handle mouse buttons and
11075 other things specially, since this work will go into
11076 Fsingle_key_description.
11077 (Fsingle_key_description): SIMPLIFIED to handle everything
11078 correctly! Jeepers!
11079 (Fwhere_is_internal): Scan the assoc-list at the end of dense
11080 keymaps, and construct strings or vectors.
11081 (where_is_string, describe_buffer_bindings): Simplified by
11082 deleting code to handle mouse button bindings specially.
11083 (describe_map_tree): Removed CHARTAB argument; this was
11084 a kludge to print out mouse events nicely, and is no longer
11085 necessary. Nobody was using it anyway.
11086 (describe_map): Removed ugly hack to handle mouse buttons
11087 specially, added code to describe alists on dense keymaps, and
11088 removed CHARTAB argument.
11089 (describe_alist): Made to handle bindings of symbols as well as
11090 characters. Removed CHARTAB argument.
11091 (describe_vector): Removed CHARTAB argument, allocated KLUDGE
11092 outside of loop and GCPRO'd it.
11093 (syms_of_keymap): Remove last vestiges of Vglobal_mouse_map,
11094 Vmouse_button_names, Suse_local_mouse_map,
11095 Scurrent_local_mouse_map.
11096
11097 * buffer.h (struct buffer): Removed mouse_map and function_key_map
11098 members, since they are now handled by the keymap element.
11099
11100 * keyboard.c (syms_of_keyboard): Change initialization of
11101 meta_prefix_char, since it's now a Lisp_Object.
11102
11103 * keymap.c (Fkeymapp): Rewrote this to use get_keymap_1; now it's
11104 a one-liner instead of a 13-liner.
11105 (DENSE_TABLE_SIZE): Created new constant for the # of lookup-style
11106 entries in a dense keymap, and the index of the map's assoc list.
11107 Used it where appropriate.
11108 (Fcopy_keymap): Notice that 129'th element in dense keymaps.
11109 (Fdefine_key, Flookup_key): Reworked to deal with vectors of
11110 symbols and characters as well as strings for key sequences.
11111 (meta_prefix_char): Changed from an int to a Lisp_Object.
11112
dff28924 111131991-02-21 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11114
11115 * fileio.c (report_file_error): Don't downcase "I/O".
11116
dff28924 111171991-02-20 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182
DL
11118
11119 * keymap.c (access_keymap): Allow IDX to be any sort of bindable
11120 event, and deal with the extended keymaps. IDX is now a
11121 Lisp_Object instead of an int, obviously.
11122 (store_in_keymap): Allow IDX to be any sort of bindable event, and
11123 deal with the extended keymaps. IDX is now a Lisp_Object.
11124
11125 * xterm.c (construct_mouse_click): Add code to set the up_modifier
11126 bit for ButtonRelease events.
11127
11128 * keyboard.c (kbd_buffer_store_event): Use XFASTINT and XSETINT to
11129 access event->code, since it's a Lisp_Object.
11130 (kbd_buffer_read_char): Golly, perhaps we should increment
11131 kbd_fetch_ptr to remove the event we just read from the queue.
11132 (modify_event_symbol): Stupid fixes: correctly look up unmodified
11133 symbols when cache entry has a modified symbol vector. And, when
11134 first adding the modified symbol vector, copy the old slot value
11135 into it correctly.
11136
dff28924 111371991-02-19 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
11138
11139 * keyboard.c (command_loop_1): #if 0 the block of code which
11140 handles mouse events and other lispy events specially, since I
11141 hope it will go away soon.
11142
11143 * dispnew.c (Fsleep_for_millisecs): Pass all four arguments to
11144 wait_reading_process_input, instead of just the first two.
11145
11146 * process.c (wait_reading_process_input): Remove support for
11147 only waiting for mouse input, since that has been superceded.
11148 This removes X dependencies from process.c, and eliminates some
11149 references to code that should only exist when using X10.
11150
11151 * keyboard.c (mouse_moved_symbol, redraw_screen_symbol,
11152 mapped_screen_symbol, unmapped_screen_symbol,
11153 exited_window_symbol, exited_scrollbar_symbol): Renamed to
11154 Qmouse_moved, Qredraw_screen, Qmapped_screen, Qunmapped_screen,
11155 Qexited_window, Qexited_scrollbar, just as done in xterm.c.
11156 (classify_object): Removed code to look up a function key in the
11157 global and local function key keymaps, since this will be done
11158 more generally.
11159 (Fexecute_mouse_event): Elided this function with a #if 0; I
11160 think it will go away once the more general keymap stuff is
11161 implemented, but I'm not sure.
11162 (syms_of_keyboard): Removed defsubr for Sexecute_mouse_event.
11163 (where_is_string, describe_buffer_bindings, syms_of_keymap):
11164 Elided code to handle mouse button bindings specially; I hope this
11165 will go away.
11166
11167 * lread.c (syms_of_lread): Change defsubr for eval-buffer to
11168 defsubr for eval-current-buffer.
11169
11170 * keymap.c (syms_of_keymap): defvar for Vglobal_function_map
11171 removed, since that variable has disappeared.
11172
11173 * xterm.c (x_func_key_to_sym): Removed entirely, since we no
11174 longer convert X keycodes to symbols in this section of code.
11175 (x_convert_modifiers): New function to turn the X modifier bits
11176 into struct input_event modifier bits.
da1d68b2 11177 (encode_mouse_button): Removed, since this work isn't done here
615d0182
DL
11178 anymore.
11179 (Vx_send_mouse_movement_events): Add an extern declaration for
11180 this.
11181
11182 * termhooks.h: Only define struct input_event if the module
11183 has previously #included lisp.h; this avoids forcing simple modules
11184 like cm.c to #include lisp.h.
11185
11186 * term.c: #include "lisp.h" before #including "termhooks.h", since
11187 the latter uses Lisp_Objects now.
11188
11189 * xfns.c (syms_of_xfns): Delete the defsubr for Sx_window_id,
11190 since Fx_window_id is gone.
11191
11192 * xterm.c (construct_mouse_event): Construct a struct input_event
11193 instead of a lispy event.
11194
da1d68b2 11195 * screen.c (coordinates_in_window): Added explanatory comment.
615d0182
DL
11196 (window_from_coordinates): Change PART, whose returned values are
11197 dependent on X-windows, to be called MODELINE_P, with appropriate
11198 new return values.
11199 * xterm.c (notice_mouse_movement): Handle the X-windows dependent
11200 stuff that used to be in window_from_coordinates here instead.
11201 (XTread_socket): Modified to produce struct input_events
11202 instead of lispy events.
11203
dff28924 112041991-02-18 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 11205
da1d68b2 11206 * termhooks.h: Added up_modifier to the enum for modifier bits;
615d0182
DL
11207 this bit will be applied to mouse events.
11208 (struct input_event): Changed specification of non_ascii_keystroke
11209 events to send the function key number instead of a symbol.
11210 * keyboard.c (modify_event_symbol): Re-arranged to work well
11211 with function key/mouse button numbers instead of symbols.
11212 And if (MODIFIERS & up_modifer), prepend "U-" to the name of the
11213 symbol being constructed.
11214 (make_lispy_event): Use the new modify_event_symbol.
11215
11216 * xterm.c (notice_mouse_movement): Adjusted this function to
11217 work with a struct input_event instead of producing an
11218 s-expression.
11219
11220 * xterm.c, xfns.c: Made all references to x_mouse_queue,
11221 x_expose_queue, and the functions which manipulate them
11222 conditional on having X10, since only X10 code ever places
11223 anything in these queues.
11224
dff28924 112251991-02-15 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
11226
11227 * termhooks.h: Define struct input_event, to represent input
11228 events while they sit in the keyboard input buffer. Using lisp
11229 objects to represent input events is a bad idea because the
11230 routines which enqueue them can be called from signal handlers,
11231 and therefore should not cons.
11232
da1d68b2 11233 * keyboard.c (kbd_buffer, kbd_fetch_ptr, kbd_store_ptr): Change
615d0182
DL
11234 these to be of type `struct input_event *'.
11235 (kbd_buffer_store_event): Manipulate struct input_events instead
11236 of lisp objects.
11237 (make_lispy_event): New function, to construct a lisp-style event
11238 corresponding to a particular struct input_event.
11239 (modify_event_symbol): New function, to add modifier prefixes to a
11240 symbol, and look the new symbols up quickly if they've already
11241 been created.
11242 (kbd_buffer_read_char): Call make_lispy_event to turn the thing
11243 in the keyboard buffer into the form that read_char is expecting.
11244 (Qwith_modifier_keys): Define this new symbol variable.
11245 (syms_of_keyboard): Initialize and protect Qwith_modifier_keys.
11246
11247 * xterm.c (init_input_symbols): Rearranged the code that produces
11248 the func_key_syms array.
11249 (x_func_key_to_sym): Simplified, since more will be handled in
11250 make_lispy_event.
11251 (XTread_socket): When handling KeyPress events, don't pass the
11252 state of the modifier keys to x_func_key_to_sym, since it doesn't
11253 care any more.
11254
11255 * sysdep.c (kbd_input_ast, end_kbd_input, read_input_waiting):
11256 Rename kbd_buffer_store_char to kbd_buffer_store_event.
11257
11258 * keyboard.c (stuff_buffered_input): Since the keyboard buffer
11259 holds lisp objects, only stuff entries that are Lisp_Ints, and
11260 XINT them before passing them to stuff_char.
11261 (kbd_buffer_store_char): Make this not a static function, since
11262 sysdep.c calls it. And rename it kbd_buffer_store_event.
11263
11264 * keyboard.c (kbd_buffer, kbd_fetch_ptr, kbd_store_ptr): Made these
11265 variables static, to document the fact that they're only used
11266 within keyboard.c.
11267
dff28924 112681991-02-13 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 11269
da1d68b2 11270 * xterm.c (init_input_symbols): Remove the `xk-' prefix from all
615d0182
DL
11271 the function key symbols, since they're going to be used for
11272 function keys from all sorts of terminals, not just when running
11273 under X.
11274
11275 * lread.c (read_escape): Removed support for mouse button escapes
11276 (\S-, \U-, \C- applied to digits), because they're being replaced
11277 by something more rational.
11278
dff28924 112791991-02-09 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11280
11281 * buffer.c: Doc fix.
11282
11283 * sysdep.c (dup2): Rewrite of non-F_DUPFD case.
11284
dff28924 112851991-02-08 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11286
11287 * m-intel386.h (LOAD_AVE_CVT): Add extra parens.
11288 * s-usg5-4.h (LIBX11_SYSTEM): #undef it.
11289
dff28924 112901991-02-07 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11291
11292 * s-esix.h: New version from kayvan.
11293 Adds HAVE_X11 conditional, NEED_PTEM_H, USG_SYS_TIME, USE_UTIME,
dff28924 11294 LIBS_DEBUG; removes #undef sigsetmask, LIBS_SYSTEM, ESIX,
615d0182
DL
11295 MISSING_UTIMES.
11296
dff28924 112971991-02-06 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11298
11299 * process.c (Faccept_process_output): Second arg gives timeout.
11300
dff28924 113011991-02-06 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182
DL
11302
11303 * lread.c (read_escape): Added support for \S- and \U- escapes (for
11304 binding mouse buttons), and noted that \C- must work on digits.
11305
11306 * xterm.c (init_input_symbols): Was mistakenly renamed
11307 init_inputs; named back.
11308
11309 * xterm.c (construct_mouse_click, encode_mouse_button): Rewritten
11310 to build new-style mouse events.
11311
11312 * dispnew.c (update_line): Write a zero into obody[olen] to make
11313 sure the lines in current_screen->glyphs remain terminated.
11314 * xdisp.c (display_string, display_text_line): Don't write off
11315 the end of the line and destroy the zero terminator when expanding
11316 a tab.
11317
11318 * fns.c (Fy_or_n_p): Accept C-] (usually abort-recursive-edit) as
11319 well as C-g to quit.
11320
dff28924 113211991-02-05 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182
DL
11322
11323 * sysdep.c, s-aix3-1.h, s-hpux.h, s-iris3-5.h, s-iris3-6.h,
da1d68b2
JB
11324 * s-irix3-3.h, s-rtu.h, s-sunos4-1.h, s-unipl5-0.h, s-unipl5-2.h,
11325 * s-usg5-0.h, s-usg5-2-2.h, s-usg5-2.h, s-usg5-3.h, s-xenix.h:
615d0182
DL
11326 Globally replaced INTERRUPTABLE with INTERRUPTIBLE.
11327
11328 * xterm.c (construct_mouse_event): Renamed to
11329 construct_mouse_click, since there are kinds of mouse events
11330 besides clicks (movement, for example).
da1d68b2 11331 (XTread_socket): Rename calls here.
615d0182 11332
da1d68b2
JB
11333 * xterm.c (mapped_screen_symbol, unmapped_screen_symbol)
11334 (exited_scrollbar_symbol, exited_window_symbol)
11335 (redraw_screen_symbol, mouse_moved_symbol): Renamed to
615d0182
DL
11336 Qmapped_screen, Qunmapped_screen, Qexited_scrollbar,
11337 Qexited_window, Qredraw_screen, Qmouse_moved, to agree with naming
11338 conventions elsewhere in Emacs.
11339
da1d68b2
JB
11340 * xfns.c (text_part_sym, modeline_part_sym)
11341 (vertical_scrollbar_sym, vertical_slider_sym, vertical_thumbup_sym)
11342 (vertical_thumbdown_sym, horizontal_scrollbar_sym)
11343 (horizontal_slider_sym, horizontal_thumbleft_sym)
11344 (horizontal_thumbright_sym): Renamed to Qtext_part, Qmodeline_part,
615d0182
DL
11345 Qvscrollbar_part, Qvslider_part, Qvthumbup_part, Qvthumbdown_part,
11346 Qhscrollbar_part, Qhslider_part, Qhthumbleft_part,
11347 Qhthumbright_part, to agree with the naming conventions elsewhere
11348 in Emacs.
11349
11350 * xterm.c (XTread_socket): While handling EnterNotify events,
11351 clear Vmouse_event here.
11352 (notice_mouse_movement): Don't clear it here.
11353
dff28924 113541991-02-04 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11355
11356 * s-sunos4-0.h: Renamed from s-sunos4.h.
11357 (read, write, open, close): Macro defs moved to s-sunos4-1.h.
11358 (INTERRUPTABLE_*): Likewise.
11359 * s-sunos4-1.h: New file.
11360
dff28924 113611991-02-04 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
11362
11363 * keymap.c (Vglobal_mouse_map, Vglobal_function_map): Variables
11364 removed in preparation for conversion to unified keymap format.
11365 (Fmake_keymap): Make vector keymaps with 129 entries; the last
11366 will be an assoc-list for looking up symbols. Update docstring to
11367 describe 129'th element.
11368 (Fmake_sparse_keymap): Update docstring to say that you can bind
11369 symbols in these maps too.
11370 (Fkeymapp): Recognize 129-element vectors as keymaps, not
11371 128-element vectors.
11372 (get_keymap_1): wrong_type_argument can no longer return a new
11373 value supplied by the debugger; remove loop to support this.
11374
11375 * xterm.c (XTread_socket): When handling EnterNotify events,
11376 enqueue fake mouse events iff Vx_send_mouse_movement_events !=
11377 Qnil.
11378
11379 * xfns.c (Fx_window_id): Function removed; Fscreen_parameters
11380 already provides this information.
11381
11382 * xterm.c (x_term_init): Cleaned up the code to get the host name,
11383 and removed fixed limit on host name length.
11384
11385 * window.c (Fscroll_other_window): Don't explicitly save
11386 current_buffer and point; the save_excursion will take care of
11387 that anyway.
11388
11389 * dispnew.c (safe_bcopy): Rewritten to handle overlapping regions
11390 with multiple calls to bcopy instead of a stupid copy loop.
11391
11392 * xterm.c, xfns.c (Vscreen_part, Vx_send_movement_events): These
11393 variables renamed to Vmouse_screen_part,
11394 Vx_send_mouse_movement_events.
11395
da1d68b2 11396 * lread.c (Feval_buffer): Function deleted.
615d0182
DL
11397 (Feval_current_buffer): Removed "#if 0 ... #endif" around this
11398 function.
11399
dff28924 114001991-02-03 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11401
11402 * Makefile, ymakefile (SHELL): Force use of sh.
11403
11404 * s-usg5-4.h (USG5_4): Define it.
11405 (LOAD_AVE_*): Don't define them.
11406 * m-intel386.h (LOAD_AVE_*): Define, if USG5_4.
11407
11408 * buffer.c (Fbuffer_local_variables): Omit slots with no names.
11409
dff28924 114101991-02-03 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182
DL
11411
11412 * xterm.c (x_term_init, init_input_symbols): Moved these to the
11413 bottom of the file, 1) to be consistent with the other files, and
11414 2) so it can initialize some variables I want.
11415
dff28924 114161991-02-02 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
11417
11418 * xterm.h: Added external declaration for x_focus_screen.
11419
11420 * search.h: File deleted.
da1d68b2 11421 * buffer.h: Declare searchbuf here instead.
615d0182
DL
11422
11423 * screen.c (Ffocus_screen, Funfocus_screen): Moved these functions
11424 to xfns.c, since they're x-specific.
11425 (syms_of_screen): Removed defsubr calls for above.
11426 * xfns.c (Ffocus_screen, Funfocus_screen): Here they are.
11427 (syms_of_xfns): The defsubrs are here now.
11428
11429 * buffer.h (PT): Make this expand to an expression which is not an
11430 l-value, to prevent people from assigning to it. If everyplace
11431 uses SET_PT, it will be easier to merge in the interval code.
11432 (point): Similar changes here.
11433 (SET_PT): This can no longer be written in terms of PT, so write
11434 out current_buffer->text.pt.
11435
11436 * xterm.c (x_new_font): Rewritten to remove arbitrary limit on
11437 size of x_font_table.
11438 (x_font_table_size): Created new variable.
11439 (n_available_fonts, font_names, font_info, MAX_FONTS): Deleted
11440 these variables/macros.
11441
11442 * dispnew.c (scroll_screen_lines): Instead of disabling the lines
11443 vacated by the scroll (i.e. zeroing enable), mark them as enabled
11444 but empty.
11445
11446 * callint.c (Fcall_interactively): Move UNGCPRO down, so that
11447 stuff is protected while we build the command history entry and do
11448 the function call.
11449
11450 * xterm.c (XTupdate_end): Turn cursor on, even if we don't
11451 currently have the focus.
11452
11453 * minibuf.c (temp_echo_area_glyphs): Clear echo_area_glyphs and
11454 previous_echo_glyphs, so the message we're displaying will
11455 supercede any existing message.
11456
11457 * keyboard.c: Removed external declaration of echo_area_glyphs,
11458 since it's declared in window.h.
11459
dff28924 114601991-01-31 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
11461
11462 * xterm.c (XRINGBELL): Pass 0 as the second argument to XBell;
11463 respect the user's preferences.
11464
dff28924 114651991-01-30 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
11466
11467 * xterm.c (x_draw_single_glyph): New function, created to simplify
11468 cursor drawing/undrawing.
11469 (x_display_box_cursor): Rewritten to properly handle the box
11470 cursor in its filled and hollow forms.
11471 * xterm.h (enum text_cursor_kinds): Added enum for the different
11472 kinds of cursors which might be displayed in a window.
da1d68b2 11473 (struct x_display): Added member `text_cursor_kind' which says
615d0182
DL
11474 which kind of cursor is currently being displayed in the window, so
11475 we can arrange to redraw it effectively.
11476
11477 * keyboard.c (command_loop_1): When handling the forward_char
11478 command, don't let point move to the location after the end of the
11479 buffer.
11480
11481 * keyboard.c (poll_suppress_count): Define this even if
11482 POLL_FOR_INPUT is not defined, because this makes lots of #ifdef
11483 clauses unnecessary, and doesn't hurt, because
11484 {start,stop}_polling become nops.
11485
11486 * config.h, config.h-dist: Make these #include "system.h" and
11487 "machine.h", and let the config script link these appropriately,
11488 instead of using the machine-specific names and expecting the user
11489 to edit this file.
11490
dff28924 114911991-01-29 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
11492
11493 * window.c (Fdelete_window): sib is a Lisp_Object; treat it as
11494 such.
11495
11496 * xterm.c (screen_unhighlight): When the focus leaves a screen,
11497 draw the cursor as a box instead of making it disappear entirely.
11498
dff28924 114991991-01-29 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11500
11501 * unexec.c (make_hdr) [TPIX]: Set f_hdr.f_nscns and f_thdr.f_scnptr.
11502
11503 * sysdep.c [BROKEN_TIOCGWINSZ]: Undef TIOCGWINSZ.
11504
11505 * process.c (wait_reading_process_input): Don't ignore
11506 a zero-length read on a network connection. Do close it.
11507
11508 * sysdep.c (hft_init, hft_reset): Pass &junk as arg to HFQERROR.
11509 Do nothing if not HFT.
11510
dff28924 115111991-01-29 Jim Blandy (jimb@albert.ai.mit.edu)
615d0182
DL
11512
11513 * xfns.h: Created, to declare things defined in xfns.c.
11514 Declare Vx_send_movement_events.
11515 * xfns.c: #include "xfns.h".
11516 (Vx_send_movement_events): Define this variable.
11517 (syms_of_xfns): DEFVAR_LISP it.
11518 * xterm.c: #include "xfns.h".
11519 (XTread_socket): Place a mouse-moved event in the buffer iff
11520 Vx_send_movement_events says to.
11521
dff28924 115221991-01-28 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182 11523
da1d68b2 11524 * ymakefile: Noted that callint.o depends on mocklisp.h,
615d0182
DL
11525 and dired.o on search.h.
11526
11527 * environ.h: Deleted - its creation in the first place was misguided.
11528 callproc.h: Removed #include "environ.h", and added declarations
11529 for environ.h
11530
11531 * buffer.c (syms_of_buffer): Add more detailed documentation to
11532 buffer-undo-list.
11533
11534 * lisp.h (poll_suppress_count): Add external declaration for this here.
11535
dff28924 115361991-01-28 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11537
11538 * m-sun3-68881.h, m-sun3-fpa.h, m-sun3-soft.h: New files.
11539
dff28924 115401991-01-27 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182 11541
da1d68b2 11542 * lisp.h (struct handler): Add poll_suppress_count member, so
615d0182
DL
11543 we can restore poll_suppress_count when we handle an error.
11544 * eval.c (struct catchtag): Add it here too, for throws.
11545 (internal_catch, Fcondition_case, internal_condition_case): Record
11546 the value of poll_suppress_count here in the handler and catch tag.
11547 (Fthrow, Fsignal): Restore it here.
11548
dff28924 115491991-01-25 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
11550
11551 * xterm.c (x_display_box_cursor): If we're undrawing the cursor by
11552 redrawing the character underneath it, draw according to that
11553 line's highlight, instead of assuming it's in the normal GC.
11554
4d8d4b3a 115551991-01-25 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11556
11557 * buffer.h (PTR_CHAR_POS): Value was too small by 1.
11558
dff28924 115591991-01-16 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11560
11561 * doprnt.c (doprnt): Check for overflow in fmtcpy.
11562
dff28924 115631991-01-16 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
11564
11565 * window.c (Fdelete_window): If the deletee gives its space to its
11566 next sibling, that sibling needs to have its top/left side pulled
11567 back to where the deletee's is.
11568
dff28924 115691991-01-15 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182 11570
da1d68b2 11571 * doc.c (Fsnarf_documentation): Handle attaching docstrings to
615d0182
DL
11572 bytecode objects too.
11573
da1d68b2 11574 * syntax.h (syntax_spec_code): Make external declaration for this
615d0182
DL
11575 unsigned char to match the definition in syntax.c.
11576
da1d68b2 11577 * indent.c (compute_motion): Added comments describing how it
615d0182
DL
11578 can be used.
11579
dff28924 115801991-01-15 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11581
11582 * process.c (create_process): Use SETUP_SLAVE_PTY if defined.
11583
11584 * s-usg5-4.h (HAVE_PTYS, HAVE_SETSID): Defined.
11585 (HAVE_WAIT_HEADER, WAITTYPE, wait3, WRETCODE): New macros.
11586 (TIOCSIGSEND): Alias for TIOCSIGNAL.
11587 (FIRST_PTY_LETTER): Overridden.
11588 (PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF, SETUP_SLAVE_PTY): New macros.
11589
11590 * m-ibmrs6000.h (CANNOT_DUMP): Undefine it.
11591 (UNEXEC): Define it.
11592 (PURE_SEG_BITS, SHMKEY): Define only if CANNOT_DUMP.
11593 (LINKER): Override it. Then add -bnodelcsect.
11594
11595 * xfns.c (Fx_get_default): Try reversing XGetDefault args if it fails.
11596
dff28924 115971991-01-13 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11598
11599 * s-usg5-4.h (LOAD_AVE_CVT): Cast value to int.
11600
11601 * keyboard.c (read_avail_input): Signal SIGHUP if FIONREAD fails.
11602
11603 * ymakefile: Put tokens after #endif into comment.
11604
11605 * filelock.c (lock_file_owner_name): Declare argument type.
11606
11607 * syntax.c (syntax_spec_code): Type now unsigned char.
11608
11609 * process.c (wait_reading_process_input):
11610 Call status_notify even when not doing redisplay.
11611
11612 * emacs.c (Fkill_emacs): Turn off SIGIO before exiting.
11613
11614 * s-usg5-3.h (USG5_3): Define it.
11615 * m-ibmps2-aix.h [USG5_3]: Define TEXT_START as 0.
11616 Don't define DATA_START or DATA_END or TEXT_END or DATA_SEG_BITS.
11617 Override various other symbols at end of file.
11618
dff28924 116191991-01-12 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
11620
11621 * window.c (window-configuration-p): Closing paren needed. Added.
11622
11623 * keyboard.c (command_loop_1): When displaying a message over an
11624 active minibuffer, call Fsit_for with three arguments, not two.
11625
dff28924 116261991-01-12 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11627
11628 * s-irix3-3.h (HAVE_SYSVIPC): Defined.
11629
dff28924 116301991-01-12 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 11631
da1d68b2 11632 * dispnew.c (buffer_posn_from_coords): Compute_motion starting
615d0182
DL
11633 from bufp[y] instead of counting from the top of the window.
11634
dff28924 116351991-01-11 Richard Mlynarik (mly@pizza.ai.mit.edu)
615d0182 11636
da1d68b2 11637 * window.c (window-configuration-p): Needed. Added.
615d0182 11638
dff28924 116391991-01-11 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
11640
11641 * dispnew.c (buffer_posn_from_coords): Remember to deduce space
11642 for the line continuation markers and the window separators from
11643 the window width.
11644
dff28924 116451991-01-11 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11646
11647 * m-tower32v3.h (VALBITS, GCTYPEBITS): Use 26 bits for pointer.
11648
dff28924 116491991-01-10 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11650
11651 * fileio.c (Fcopy_file): Always close descriptors.
11652
11653 * s-sunos4.h: read, write, open and close are interruptable.
11654
dff28924 116551991-01-09 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
11656
11657 * xterm.c, dispnew.c (pixel_to_char_translation): Renamed to
11658 pixel_to_glyph_translation, and rewritten. Just get coordinates,
11659 don't return anything.
11660 (buffer_posn_from_coords): New function - given a window and
11661 co-ordinates on the screen, find the buffer position at those
dff28924 11662 co-ordinates.
615d0182 11663
dff28924 116641991-01-08 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182
DL
11665
11666 * alloc.c (Fmake_byte_code): Flesh out docstring.
11667
da1d68b2 11668 * window.c (window_loop): Pick the first window correctly, even
615d0182
DL
11669 when screen == 0.
11670
11671 * dispnew.c (scroll_screen_lines): Don't forget to call
11672 update_begin at the top of the down-scrolling section.
11673 And rotate by amount, not -amount, in the up-scrolling section.
11674
11675 * xterm.h (MAX_FONTS, x_font_table, n_fonts): Removed external
11676 declarations for these variables, since they're declared static in
11677 xterm.c and not used elsewhere.
11678 * xterm.c (MAX_FONTS): Moved definition of this to here from
11679 xterm.h.
11680
11681 * xterm.c (x_new_font): If you can't find the requested font,
11682 return a code which indicates this, instead of calling abort.
11683
dff28924 116841991-01-07 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
11685
11686 * xdisp.c (redisplay, display_mode_line): To test
11687 Vglobal_minibuffer_screen for validity, you must check that its
11688 type is Lisp_Screen; comparing it to Qnil isn't good enough.
11689
11690 * screen.c (syms_of_screen): Initialize Vglobal_minibuffer_screen
11691 to Qnil; otherwise, it inhibits decent redisplay (is that another
11692 bug?)
11693
11694 * dispnew.c (init_display): Make sure that the standard input is a
11695 terminal here.
11696 * emacs.c (main): Not here, since we don't know yet if we want to
11697 use a window system of some sort.
11698
11699 * xfns.c (x_make_gc): Delete code to support default_face and
11700 highlight_face, since they're part of the interval code, and
11701 shouldn't be installed yet.
11702
da1d68b2 11703 * dispnew.c (init_display): Calculate_costs expects a screen
615d0182
DL
11704 parameter; pass selected_screen, instead of nothing.
11705
11706 * search.c (Freplace_match): Protect STRING.
11707 * process.c (run_filter): New function.
11708 (read_process_output, exec_sentinel): Use run_filter to call the
dff28924 11709 process's filter function.
da1d68b2
JB
11710 (status_notify): GCPro MSG.
11711 * process.c (Fopen_network_stream): Protect various args.
615d0182
DL
11712 * print.c (Fprin1_to_string, Fprint): Protect OBJ.
11713 * lread.c (Feval_region): Check type of B.
11714 * keymap.c (describe_alist): Protect ELT_PREFIX and TEM2.
11715 (describe_vector): Likewise for ELT_PREFIX and TEM1.
11716
dff28924 117171991-01-06 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11718
11719 * sysdep.c (init_sys_modes): Turn off VSUSP and V_DSUSP if they exist.
11720 Only on a MIPS.
11721
dff28924 117221991-01-05 Jim Blandy (jimb@spiff.ai.mit.edu)
615d0182
DL
11723
11724 * xselect.c (x_answer_selection_request): For incremental, set
11725 format to 32 and send only 1 element. Pass the address of size,
11726 not size itself.
11727 (x_selection_arrival): For incremental, delete the property
11728 containing the size of the transfer. This generates a
11729 PropertyNotify to the owner, starting the exchange.
11730
11731 * xrdb.c (get_user_app): Pass correct number of parameters to
11732 sprintf.
11733
11734 * xfns.c (x_window): Don't use backing store or saveunders; they
11735 seem to slow down suns.
11736 (x_icon): Set the InputHint to the window manager to False.
11737 (x_make_gc): Initialize gc_values.line_width to zero before
11738 creating the normal video GC, since it uses it. And set the
11739 default_face and hilite_face gcs here.
11740 (install_vertical_scrollbar): Add 2 to thumbdown y position, and
11741 don't add ibw.
11742
11743 * insdel.c (insert, del_range): Use SET_PT rather than assigning
11744 point directly.
11745 * window.c (Fselect_window): Here too.
11746
da1d68b2 11747 * xdisp.c (redisplay_all_windows): Removed static declaration for
615d0182
DL
11748 this nonexistent function.
11749
dff28924 117501991-01-04 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 11751
da1d68b2 11752 * window.c (window_loop): Neatened up. MINI being non-zero now
615d0182
DL
11753 makes it recognize active minibuffer windows. Iterates properly
11754 over multiple screens when asked nicely.
11755 (Fget_lru_window, Fget_largest_window): SCREENS arguments are now
11756 declared as a Lisp_Object, and documented.
11757 (Fget_buffer_window): SCREENS argument is now documented.
11758 (Fdelete_other_windows): Delete other windows on the argument
11759 window's screen, not the current screen.
11760
11761 * screen.c (window_from_coordinates): Changed other reference to
11762 Fnext_window to use next_screen_window; see below.
11763
11764 * window.c (Fnext_window, Fprevious_window): Accept non-nil, non-t
11765 values for mini, and don't turn off all-screens when mini is t but
11766 there is no global minibuffer screen. Remove screen_{root,mini}
11767 variables.
11768 (Fother_window): Added second argument all_screens.
11769
11770 * undo.c (record_delete): Removed dead variable llength.
11771
11772 * data.c (Qkeyp, Fkeyp): Removed these and supporting code.
11773 * keymap.c (Fsingle_key_description): Report an error instead of
11774 calling wrong_type_argument.
11775 * lisp.h (Qkeyp): Removed external declaration for this.
dff28924
SS
11776
117771991-01-03 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11778
11779 * search.c (search_buffer): Return starting position if count == 0.
11780
dff28924 117811991-01-02 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
11782
11783 * scroll.c (do_scrolling): Use correct limits on loop to clear
11784 lines just inserted--old version lost a line.
11785
11786 * screen.c: #ifdef HAVE_X_WINDOWS, #include xterm.h
da1d68b2 11787 (Ffocus_screen, Funfocus_screen): Use Joe's new definitions, and
615d0182 11788 only define these functions ifdef HAVE_X_WINDOWS.
da1d68b2 11789 (window_from_coordinates): Use next_screen_window instead of
615d0182
DL
11790 Fnext_window, so that global minibuffers work.
11791
11792 * lread.c (syms_of_read): Don't forget to defsubr
11793 read-char-exclusive.
11794
da1d68b2
JB
11795 * lisp.h (Fscreenp, Fselect_screen, Ffocus_screen)
11796 (Funfocus_screen, Fselected_screen, Fwindow_screen)
11797 (Fscreen_root_window, Fscreen_selected_window, Fscreen_list)
11798 (Fnext_screen, Fdelete_screen, Fread_mouse_position)
11799 (Fset_mouse_position, Fmake_screen_visible, Fmake_screen_invisible)
11800 (Ficonify_screen, Fdeiconify_screen, Fscreen_visible_p)
11801 (Fvisible_screen_list, Fscreen_parameters)
11802 (Fmodify_screen_parameters, Fscreen_pixel_size, Fscreen_height)
11803 (Fscreen_width, Fset_screen_height, Fset_screen_width)
11804 (Fset_screen_size, Fset_screen_position, Fcoordinates_in_window_p)
11805 (Flocate_window_from_coordinates, Frubber_band_rectangle): Added
615d0182
DL
11806 extern declarations for all these.
11807
da1d68b2 11808 * lisp.h (Qscreenp): Added an extern declaration for this.
615d0182
DL
11809
11810 * lisp.h (DBL_DIG): Added constant for the maximum number of
11811 decimal digits a float could print to. Used in print.c.
11812
11813 * keymap.c (Fkey_description): Produce pretty descriptions of
11814 mouse and window system events too.
da1d68b2 11815 (Fsingle_key_description): Signal an error if obj is not a key.
615d0182
DL
11816
11817 * data.c (Fkeyp, Qkeyp): Added predicate to recognize things which
11818 can be bound - this includes keys, symbols (for function keys and
11819 window system events), and conses (for mouse events).
11820 * lisp.h (Qkeyp): Added external declaration for this.
11821
11822 * keyboard.c (Frecursive_edit): Don't specbind the standard IO here.
11823 (recursive_edit_1): Do it here, and don't forgot to unbind_to.
11824
11825 (command_loop_1): Reset no_redisplay after mouse commands.
11826
11827 (classify_object): Place the object in read_key_sequence_cmd.
11828
da1d68b2 11829 (Fread_key_sequence): Recognize that when read_key_sequence
615d0182
DL
11830 returns -1 or -2, it's a mouse event or window system event.
11831
dff28924 118321991-01-01 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
11833
11834 * fileio.c (Fwrite_region): We should dereference GPT_ADDR[-1]
11835 before comparing it to '\n' for VMS cruft.
11836 (Fdo_auto_save): Don't call run-hooks before it's defined. This
11837 only happens before emacs is dumped, when loading inc-vers.el.
11838
da1d68b2 11839 * eval.c (Fsignal): TOTALLY_UNBLOCK_INPUT here.
615d0182
DL
11840 (error): Not here.
11841
11842 (Feval): We use argvals[0..5], so declare it to have six elements
11843 instead of just five.
11844
dff28924 118451990-12-30 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11846
11847 * eval.c (Fsignal): Don't ever return.
11848 Call error instead if user tries to use debugger to return.
11849
11850 * eval.c (unbind_to): New second arg is value to return. gcpro it.
11851 All callers changed to pass the arg; if a caller uses unbind_to
11852 just before returning, it passes as this arg the value it wants
11853 to return, then it returns whatever comes back.
11854
dff28924 118551990-12-28 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182 11856
da1d68b2 11857 * print.c (print): Put obj in a non-register variable so
615d0182
DL
11858 we could gcpro it. Also fixed some syntax errors.
11859
da1d68b2 11860 * editfns.c (Fformat): Declare nstrings, and declare nstrings and
615d0182
DL
11861 strings in a local block.
11862 (Fformat): XFLOAT(args[n]) isn't a float; ->data is.
11863
dff28924 118641990-12-27 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11865
11866 * m-tower32.h: Add comments for how to optimize.
11867 * m-tower32v3.h: New file.
11868
11869 * fileio.c (Fwrite_region): Save errno around unlock_file.
11870
dff28924 118711990-12-26 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11872
11873 * editfns.c (Fformat): Handle floats. Convert between int and float.
11874 Don't truncate value at null char coming from doprnt.
11875 * doprnt.c (doprnt): Replace tembuf with malloced buff if too small.
11876 Handle %e, %f and %g.
11877
dff28924 118781990-12-25 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11879
11880 * abbrev.c (Fexpand_abbrev): Use insert_from_string, not insert.
11881 (Funexpand_abbrev): Likewise.
11882 * doc.c (Fsubstitute_command_keys): Likewise.
11883 * editfns.c (Finsert, Finsert_before_markers): Likewise.
11884 * minibuf.c (Fminibuffer_complete_word): Likewise.
11885 * mocklisp.c (Finsert_string): Use insert1.
11886 * vmsfns.c (Fdefault_subproc_input_handler): Likewise.
11887
11888 * print.c: Don't use strout for the text of a Lisp string.
11889 (print_string): New function to use instead.
11890 (print): Use print_string when no escapes needed.
11891 When printing with escapes, protect the string and check addr often.
11892
dff28924 118931990-12-24 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11894
11895 * insdel.c (insert_from_string): New function.
11896
dff28924 118971990-12-20 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11898
11899 * term.c (ins_del_lines): Handle scroll region wrt chars_wasted.
11900
dff28924 119011990-12-16 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
11902
11903 * Globally renamed InsStr to insert_string.
11904
dff28924 119051990-12-15 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11906
11907 * s-usg5-3.h (USG_SHARED_LIBRARIES): Define it.
11908
11909 * m-intel386.h (C_SWITCH_MACHINE): New macro.
11910
dff28924 119111990-12-15 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
11912
11913 * alloc.c (STRING_FULLSIZE): Use sizeof(struct Lisp_String)
11914 instead of sizeof(int).
11915
dff28924 119161990-12-14 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
11917
11918 * keyboard.c (Fread_key_sequence): Clear this_command_key_count
11919 here; who unfixed this?
11920
dff28924 119211990-12-12 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11922
11923 * abbrev.c (Fdefine_abbrevs): Don't crash when EXPANSION is nil.
11924
dff28924 119251990-12-11 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11926
11927 * eval.c (Fmacroexpand): Change handling of (foo . bar) in ENV.
11928
dff28924 119291990-12-10 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11930
11931 * m-pmax.h (SYSTEM_MALLOC): Define it.
11932
11933 * process.c (wait_reading_process_input): Ignore failure with EIO.
11934
dff28924 119351990-12-09 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
11936
11937 * m-iris4d.h (LOAD_AVE_CVT): Divide by 1024.
11938 (LIB_STANDARD): Use -lbsd first.
11939 (LIBS_MACHINE): Don't use -lbsd here.
11940 * s-irix3-3.h (ADDR_CORRECT): Macro deleted.
11941 (LIBS_MACHINE): Macro deleted.
11942 (LDAV_SYMBOL): Delete the `_' from start of symbol.
11943
11944 * process.c (create_process): Delete duplicate sigsetmask.
11945
11946 * m-ibmrt.h (RTPC_REGISTER_BUG, SHORT_CAST_BUG): Macros deleted.
11947 (C_SWITCH_MACHINE): Use -D to define alloca.
11948 (SIGN_EXTEND_CHAR): Use a cast.
11949
dff28924 119501990-12-05 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 11951
da1d68b2 11952 * keyboard.c (Fsuspend_emacs): Protect STUFFSTRING.
615d0182
DL
11953 (cmd_error): Protect TAIL while printing.
11954 (input_poll_signal, start_polling): Use polling_period.
11955 (syms_of_keyboard): Initialize it and make it a Lisp var.
11956
11957 * fns.c (Fyes_or_no_p): Protect PROMPT for entire loop.
11958
11959 * fileio.c (Frename_file): Protect args.
11960 * fileio.c (Fadd_name_to_file): Protect the args.
11961 (Fcopy_file, Fmake_symbolic_link): Likewise.
11962 (Finsert_file_contents): Protect FILENAME.
11963
dff28924 119641990-12-04 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182
DL
11965
11966 * eval.c (Fbacktrace): gcpro TAIL.
11967 * emacs.c (Fkill_emacs): gcpro ARG.
da1d68b2 11968 * editfns.c (Fformat): Remove remains of gcpro'd args.
615d0182
DL
11969
11970 * dispnew.c (syms_of_dispnew): Don't clobber Vwindow_system_version
11971 if CANNOT_DUMP.
11972
11973 * dired.c (file_name_completion): Check that FILE is a string.
11974
11975 * buffer.c (Fbury_buffer): Don't init BUF1.
11976
11977 * doc.c (Fsubstitute_command_keys): Protect STR and don't keep a
11978 pointer to the middle of it.
11979
11980 * m-hp9000s300.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Override for BSD.
11981
11982 * process.c (sigchld_handler): Clear synch_process_alive if the
11983 dying process isn't in the table at all.
11984 * callproc.c (call_process_cleanup): Clear synch_process_alive.
11985
dff28924 119861990-12-03 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182 11987
da1d68b2 11988 * callproc.c (Fcall_process): Change synch_process_pid to
615d0182
DL
11989 synch_process_alive, as a general flag that we are waiting for
11990 a synchronous process to die. This obviates the need to block
11991 SIGCHLDs until we know the pid.
da1d68b2 11992 * sysdep.c (wait_for_termination): Wait for synch_process_alive to
615d0182
DL
11993 be false.
11994
11995 * process.c (sigchld_handler): If pid not recognized, look for a
11996 process recorded with pid -1.
11997 (create_process): Set pid to -1 before the fork.
11998 Store correct pid right after the fork.
11999 Don't change sigchld handler on system V.
12000
12001 * process.c (Fstart_process): Set BUFFER before other string vars
12002 so a gc in Fget_buffer_create won't clobber them.
12003
dff28924 120041990-11-30 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12005
12006 * keyboard.c (read_command_char): Save and restore getcjmp.
12007
dff28924 120081990-11-29 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12009
12010 * process.c (status_convert): Use WRETCODE for exited process.
12011
dff28924 120121990-11-26 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12013
12014 * s-usg5-4.h (LIB_STANDARD): Add libucb.a.
12015 (NEED_PTEM_H): Define this instead of NEED_SIOCTL.
12016 * m-ibm370aix.h, m-ibmps2-aix.h, m-ibmrs6000.h (NEED_SIOCTL):
12017 Undefine this.
12018 (NEED_PTEM_H): Likewise.
12019
12020 * s-sunos4.h (O_NDELAY): Don't define this.
12021
12022 * print.c (Fwith_output_to_temp_buffer): Don't eval first arg twice.
12023
dff28924 120241990-11-22 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12025
12026 * m-hp9000s300.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Alternate defs for BSD.
12027
dff28924 120281990-11-21 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
12029
12030 * dispnew.c (init_display): Check if we're using a window system
12031 before trying to initialize the terminal. If someone has
12032 indicated that they want to use a window system, we shouldn't
12033 bother initializing the terminal. This is especially important
12034 when the terminal is so dumb that emacs gives up and doesn't bother
12035 using the window system.
12036
dff28924 120371990-11-20 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182 12038
da1d68b2 12039 * print.c (Fexternal_debugging_output): Added new function which
615d0182
DL
12040 writes a character to stderr, for use when debugging emacs with
12041 gdb.
12042
dff28924 120431990-11-14 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182 12044
da1d68b2 12045 * dispnew.c (window_change_signal): Used to assume that SIGWINCHes
615d0182
DL
12046 always applied to the currently selected screen. Now it scans the
12047 list of screens for a screen controlled by termcap, and changes that
12048 screen's size.
12049
dff28924 120501990-11-13 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12051
12052 * fileio.c (err_str): New macro.
12053 (Finsert_file_contents, Fwrite_region): Use it in error messages.
12054
dff28924 120551990-11-12 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12056
12057 * insdel.c (del_range): Supply missing arg to gap_left.
12058
dff28924 120591990-11-11 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
12060
12061 * regex.c: Disabled definition of NULL from lisp.h
12062
da1d68b2 12063 * crt0.c (_start): Added static declaration of start1.
615d0182 12064
da1d68b2 12065 * xfns.c: Added definition for Vbar_cursor.
615d0182
DL
12066 (syms_of_xfns): Added DEFVAR_LISP clause for Vbar_cursor.
12067
da1d68b2 12068 * xterm.c (XTread_socket): Passed &event.xkey instead of &event to
615d0182
DL
12069 XLookupString, so things will typecheck nicely.
12070
12071 * Globally rewrote all references to Vmouse_buffer to use the
12072 buffer viewed by Vmouse_window instead.
12073
da1d68b2 12074 * alloc.c (xmalloc, xrealloc): Removed calls to
615d0182
DL
12075 {un,}hold_window_change. The new SIGWINCH-handling code and
12076 do_pending_window_change make them unnecessary.
12077
dff28924 120781990-11-11 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12079
12080 * process.c (wait_reading_process_input): Make Available static;
12081 don't clear when a nonzero bit is found.
12082
12083 * fns.c (Fnthcdr): Stop loop if reach end.
12084
12085 * dispnew.c: Include fcntl.h if HAVE_TERMIO.
12086
dff28924 120871990-11-10 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
12088
12089 * alloc.c (make_uninit_string): No longer declared static, and
12090 extern declaration added to lisp.h. It's used in dired.c.
12091
dff28924 120921990-11-08 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182
DL
12093
12094 * dispnew.c (do_pending_window_change): Changed incorrect call to
12095 change_window_size_1 into a loop which scans list of screens and
12096 resizes those that need resizing.
12097
dff28924 120981990-11-06 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12099
12100 * m-ibmrs6000.h (CANNOT_DUMP): Define it.
12101
12102 * process.c (create_process): Unblock SIGCHLD in the child.
12103
12104 * process.c (wait_reading_process_input): Don't read input
12105 from more than one process between calls to `select'.
12106
dff28924 121071990-11-02 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12108
12109 * callint.c (syms_of_callint):
12110 Initialize Vprefix_arg and Vcurrent_prefix_arg.
12111
dff28924 121121990-11-01 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12113
12114 * dired.c (Fdirectory_files): Avoid using MAXNAMLEN.
12115
dff28924 121161990-10-31 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182
DL
12117
12118 * process.c (MAXDESC): Enclosed definition in `#ifndef ... #endif'
12119 clause.
12120
12121 * bytecode.c: Included syntax.h to declare syntax_code_spec.
12122
12123 * syntax.h (syntax_spec_code): Added extern declaration for this.
12124
12125 * floatfns.c (float_error): Added static declaration for this at
12126 the top of the file.
12127
dff28924 121281990-10-29 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12129
da1d68b2 12130 * indent.c (position_indentation): Renamed stray `bf_cur' to
615d0182 12131 `current_buffer', and old `CharAt' usages to `FETCH_CHAR'.
da1d68b2 12132 * buffer.c (Fbuffer_disable_undo): The symbol object for this
615d0182
DL
12133 subroutine was still named Sbuffer_flush_undo, and the symbol's
12134 lisp name was similarly out of date. Renamed both, and added an
12135 alias in lisp/subr.el .
12136
da1d68b2 12137 * keyboard.c (Fset_input_mode): A `meta_flag' had escaped being
615d0182
DL
12138 renamed to `meta_key'.
12139
dff28924 121401990-10-29 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12141
12142 * process.c (Fprocess_send_region, Fprocess_send_string):
12143 Break data into bunches less than 500 bytes.
12144 Accept process output between bunches.
12145 ??? Must update manual.
12146
dff28924 121471990-10-29 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12148
da1d68b2 12149 * window.c (Fset_window_start, window_scroll): Renamed stray
615d0182
DL
12150 references to `redo_mode_line' to `update_mode_line'.
12151
da1d68b2 12152 * xdisp.c (decode_mode_spec): Renamed stray references to `bf_cur'
615d0182
DL
12153 and `bf_modified' to `current_buffer' and `MODIFF'.
12154
dff28924 121551990-10-25 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12156
da1d68b2 12157 * environ.h: File created - contains declarations for users of the
615d0182 12158 environment variable list.
da1d68b2 12159 * callproc.c (environ): Removed extern declaration of environ, and
615d0182
DL
12160 included environ.h.
12161
dff28924 121621990-10-24 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12163
da1d68b2 12164 * callproc.c (init_callproc): Removed extern declaration of
615d0182
DL
12165 environ - it's already taken care of at the top of the file.
12166
da1d68b2 12167 * mocklisp.h: File created - externally declares certain
615d0182 12168 functions defined in mocklisp.c.
da1d68b2 12169 * lisp.h (Fread_buffer, Fread_key_sequence): Added extern
615d0182 12170 declarations for these functions.
da1d68b2 12171 * callint.c (ml_apply, Fread_buffer, Fread_key_sequence): Removed
615d0182
DL
12172 extern declarations for these functions, included mocklisp.h.
12173 Moved external declaration of index to top of file.
12174
dff28924 121751990-10-24 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12176
12177 * ymakefile (GNULIB_VAR): New make variable.
12178 (LIBES): Use that, not GNULIB directly.
12179 (GNULIB): Don't define if already defined.
12180
dff28924 121811990-10-23 Jim Blandy (jimb@geech.ai.mit.edu)
615d0182 12182
da1d68b2 12183 * indent.h (last_known_column_point): Added extern declaration for
615d0182 12184 this variable.
da1d68b2 12185 * buffer.c (last_known_column_point): Removed extern declaration for
615d0182 12186 this variable, included indent.h.
da1d68b2 12187 (Vprin1_to_string_buffer): Removed extern declaration - it's
615d0182
DL
12188 already in lisp.h.
12189
da1d68b2
JB
12190 * lisp.h (catchlist, backtrace_list, stack_bottom)
12191 (current_global_map): Added extern declarations for these
615d0182 12192 variables.
da1d68b2 12193 * alloc.c: Removed external declarations for catchlist,
615d0182
DL
12194 backtrace_list, and stack_bottom, since this file includes
12195 lisp.h.
da1d68b2 12196 * callint.c (current_global_map): Removed extern declaration.
615d0182 12197
da1d68b2
JB
12198 * search.h: New file - declares searchbuf.
12199 * dired.c (Fdirectory_files): Removed extern declaration of
615d0182
DL
12200 searchbuf, included search.h.
12201
12202 * Globally renamed `CHAR_AT_POSITION' to `FETCH_CHAR'.
12203
dff28924 122041990-10-22 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12205
12206 * keyboard.c (quit_char): New variable.
12207 (init_keyboard): Initialize it.
12208 (Fset_input_mode): New optional arg to set quit_char.
12209 (command_loop_1, read_char, kbd_buffer_store_char):
12210 (read_avail_input): Use quit_char, not C-g.
12211 * sysdep.c (init_sys_modes): Use quit_char to set special chars.
12212 * xterm.c (x_term_init): Pass new arg to Fset_input_mode.
12213
dff28924 122141990-10-22 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12215
da1d68b2 12216 * xdisp.c: Added `extern' declaration for command_loop_level.
615d0182
DL
12217
12218 * term.c (term_init): Internal cleanups.
da1d68b2 12219 (write_glyphs): Renamed argument `start' to `string'.
615d0182 12220
dff28924 122211990-10-21 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12222
12223 * xterm.c (FIONREAD): Undefine if BROKEN_FIONREAD.
12224 (SIGIO): Undefine if no FIONREAD.
12225 (ioctl.h, termio.h, strings.h, string.h): Include them before those.
12226
12227 * alloc.c (make_vector_from_string, Fvector_from_string):
12228 Functions deleted.
12229
12230 * sysdep.c (select): Handle timeout == 0. Add var local_timeout.
12231
12232 * alloc.c (make_uninit_string, make_float): Use VALIDATE_LISP_STORAGE.
12233 (Fcons, Fmake_vector, Fmake_symbol, Fmake_marker): Likewise.
12234 (Fmake_vector_from_list): Likewise.
12235 (VALIDATE_LISP_STORAGE): New macro.
12236
dff28924 122371990-10-20 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12238
12239 * dispnew.c (scrolling): Give up if some new lines not enabled.
12240 (update_screen): Rework outq logic.
12241
12242 * xdisp.c (message, message1): Clear noninteractive_need_newline.
12243
dff28924 122441990-10-19 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12245
da1d68b2 12246 * scroll.c (do_scrolling): Allocate queue using alloca instead
615d0182
DL
12247 of variable-sized arrays.
12248
dff28924 122491990-10-19 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12250
12251 * buffer.c: Doc fix.
12252
dff28924 122531990-10-18 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12254
da1d68b2 12255 * print.c (internal_with_output_to_temp_buffer): Install an
615d0182
DL
12256 unwind_protect to make sure the current buffer is restored.
12257
da1d68b2 12258 * minibuf.c (read_minibuf): Call recursive_edit_1 instead of
615d0182
DL
12259 Frecursive_edit, to support the new command_loop_level
12260 arrangement.
12261
12262 * malloc.c (calloc): Added this function, in case something linked
12263 with emacs calls it.
12264
12265 * lread.c (openp): Since access returns 0 on success, change that
12266 into a 1 before returning it.
12267
da1d68b2 12268 * lisp.h: Deleted DEFSIMPLE and DEFPRED, since they're no
615d0182
DL
12269 longer used.
12270
dff28924 122711990-10-18 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12272
12273 * m-intel386.h (alloca): Define as builtin, if using GCC.
12274
12275 * m-att3b.h (NEED_PTEM_H): Define this for 3b2.
12276
12277 * s-aix3-1.h (SYSV_SYSTEM_DIR): Define it.
12278
12279 * print.c (print): Improve error message for bad data type.
12280
dff28924 122811990-10-18 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12282
da1d68b2 12283 * keymap.c (Flookup_key): Rearranged to use an index into the key
615d0182
DL
12284 sequence instead of a pointer and a level counter.
12285
dff28924 122861990-10-18 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12287
12288 * floatfns.c (sinh, cosh): On VMS, define to use exp.
12289 (IN_FLOAT): Detect errors reported using errno.
12290 (float_error): Define function unconditionally.
12291 Reestablish handler when called, if not BSD.
12292
dff28924 122931990-10-17 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12294
12295 * m-delta.h (C_DEBUG_SWITCH): Don't define this.
12296
dff28924 122971990-10-17 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12298
da1d68b2 12299 * keyboard.c (command_loop): Made call to command_loop_2
615d0182
DL
12300 conditional on minibuf_level too (it used to be only conditional
12301 on command_loop_level), since this is what 18.56 and all the other
12302 functions in Emacs 19 keyboard.c do.
12303
dff28924 123041990-10-16 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
12305
12306 * keyboard.c (read_char): Don't echo dash if there is already
12307 something else being displayed in the echo area.
12308
dff28924 123091990-10-16 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12310
12311 * process.c (status_convert): If killed by signal, use WTERMSIG.
12312
12313 * data.c (arith_error): Reestablish handler on VMS.
12314
12315 * keyboard.c (start_polling, stop_polling): New functions.
12316 (input_poll_signal): New function, handles periodic alarms.
12317 (read_command_char): Turn off polling temporarily.
12318 * xdisp.c (redisplay): Likewise.
12319 * process.c (wait_reading_process_input, create_process): Likewise.
12320
dff28924 123211990-10-16 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12322
da1d68b2 12323 * indent.c (position_indentation): Instead of using CharAt, use a
615d0182
DL
12324 pointer to scan the buffer - this is faster.
12325
12326 * emacs.c (Fdump_emacs): The conditional expression which passes
12327 symname to unexec was missing a `: 0'.
12328
12329 * dispnew.c (rotate_vector): Was rotating backwards.
12330
dff28924 123311990-10-15 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
12332
12333 * dired.c (file_name_completion): Use scmp to compare names.
12334
dff28924 123351990-10-15 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12336
12337 * process.c (create_process): Don't turn off handling of SIGCHLD.
12338 Just set a flag if a signal comes in when not wanted.
12339 (create_process_sigchld): New signal handler.
12340
dff28924 123411990-10-14 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12342
12343 * bytecode.c: De-implement Bmark, Bset_mark, Bscan_buffer.
12344 Mark Bsymbol_function, Bfset, Bread_char as obsolete.
12345 Implement codes Bmult, Bforward_char...Bwiden,
12346 and Bstringeqlsign...Bintegerp.
12347
dff28924 123481990-10-12 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
12349
12350 * buffer.c (list_buffers_1): Select the buffer given in
12351 Vstandard_output using Fset_buffer instead of set_buffer_internal.
12352
da1d68b2 12353 * buffer.c (set_buffer_internal): Deleted variable swb - it's
615d0182
DL
12354 never used.
12355
da1d68b2 12356 * buffer.c (count_modified_buffers): Function deleted - it's
615d0182
DL
12357 not used anymore.
12358
dff28924 123591990-10-11 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
12360
12361 * buffer.c (reset_buffer_local_variables, buffer_local_variables):
12362 added support for default values for buffer local variables which
12363 do not have a DEFVAR_PER_BUFFER, as described in the comments
12364 above buffer_local_flags.
12365
da1d68b2 12366 * buffer.c (Fget_buffer_create): Move initialization of
615d0182
DL
12367 b->save_length and b->last_window_start to reset_buffer.
12368
dff28924 123691990-10-11 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12370
12371 * m-ibmps2-aix.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Define them.
12372 (C_DEBUG_SWITCH): Delete -fstrength-reduce.
12373
12374 * unexmips.c (unexec): Add conditional for MIPS2.
12375
dff28924 123761990-10-10 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12377
12378 * m-iris4d.h (LIBS_MACHINE): Use -lsun, don't use -lPW.
12379
12380 * unexelf.c: New file.
12381 * s-usg5-4.h: New file.
12382 * unexec.c [USG_SHARED_LIBARARIES]: Numerous changes under this cond.
12383 (copy_text_and_data): New second argument.
12384
dff28924 123851990-10-10 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12386
da1d68b2 12387 * alloc.c (gc_sweep): Only unchain markers that are in a buffer.
615d0182 12388
dff28924 123891990-10-10 Mike Rowan (mtr@apple-gunkies)
615d0182
DL
12390
12391 * process.c: Merged in more changes from 18.56: update_status,
12392 FD_SET changes (define all the FD_ macros). Other small changes.
12393
dff28924 123941990-10-09 Jim Blandy (jimb@churchy.ai.mit.edu)
615d0182 12395
da1d68b2 12396 * xdist.c (decode_mode_spec): Reworked code to handle %* - it now
615d0182
DL
12397 goes like `if return else if return else ... return' instead of
12398 using a conditional operator.
12399
da1d68b2 12400 * xdist.c (fmodetrunc): Function deleted - no longer used.
615d0182 12401
dff28924 124021990-10-09 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12403
12404 * xdisp.c (decode_mode_spec): Handle dashes in wide windows.
12405
dff28924 124061990-10-08 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12407
12408 * sysdep.c (sys_open, sys_close, sys_read, sys_write):
12409 Don't handle EAGAIN.
12410
12411 * process.c (wait_reading_process_input): Handle nread==-1
12412 for O_NDELAY like O_NONBLOCK.
12413
12414 * s-vms.h (LINK_CTRL_SHARE): Turn on again.
12415 tranle@intellicorp.com found it needed in VMS 5.3.
12416
12417 * emacs.c (main): Move VMS declaration of environ outside function.
12418
12419 * vmsfns.c (Fdefault_subproc_input_handler): InsCstr -> insert.
12420
dff28924 124211990-10-07 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12422
12423 * m-pmax.h (START_FILES): Handle crt0.o in different dir in Ultrix 4.0.
12424
12425 * s-sunos4.h (O_NDELAY): Define only if not defined.
12426
dff28924 124271990-10-06 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12428
da1d68b2 12429 * sysdep.c (tabs_safe_p, get_screen_size): Renamed `sg' to `tty'.
615d0182 12430
da1d68b2 12431 * sysdep.c (init_baud_rate): Rearranged code for calculating
615d0182
DL
12432 baud_rate.
12433
dff28924 124341990-10-05 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12435
da1d68b2 12436 * search.c (Freplace_match): Used Finsert_buffer_substring instead
615d0182
DL
12437 of place and deleted place.
12438
da1d68b2 12439 * search.c (place): Function removed.
615d0182
DL
12440
12441 * process.c (count_active_processes): Deleted; not used.
12442
da1d68b2 12443 * minibuf.c (read_minibuf): Renamed `prefix' argument to `initial'.
615d0182 12444
dff28924 124451990-10-01 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12446
da1d68b2 12447 * lread.c (Fload): Renamed `MISSING-OK' to `NOERROR'.
615d0182 12448
da1d68b2 12449 * keyboard.c (describe_map): Renamed `keys' to `string'.
615d0182
DL
12450
12451 * keyboard.c `Vauto_save_interval' unrenamed back to
dff28924 12452 `auto-save-interval'.
615d0182 12453
da1d68b2 12454 * keymap.c (Fdefine_key, Flookup_key): Renamed arguments called
615d0182
DL
12455 `keys' to `key'.
12456
dff28924 124571990-10-01 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12458
12459 * sysdep.c (sys_open, sys_close, sys_read, sys_write):
12460 Handle EAGAIN like EINTR.
12461
dff28924 124621990-09-30 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12463
12464 * insdel.c (gap_left, gap_right): Use bcopy if requested.
12465 New config parameters GAP_USE_BCOPY, BCOPY_SAFE_UPWARD,
12466 and BCOPY_SAFE_DOWNWARD.
12467
12468 * eval.c (find_handler_clause): Bind debug-on-error to nil.
12469 (Qdebug_on_error): New variable.
12470 (syms_of_eval): Initialize that.
12471
12472 * sysdep.c: Include various headers for ptys, for hpux, aix, and sysv.
12473
12474 * dispnew.c (preserve_other_columns): Fix args to second bcopy.
12475
dff28924 124761990-09-30 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182
DL
12477
12478 * keyboard.c: `auto_save_interval' renamed to
12479 `Vauto_save_interval', since it *is* a lisp-accessible variable.
12480
da1d68b2 12481 * fileio.c (Fdo_auto_save): Call record_auto_save so that
615d0182
DL
12482 read_char knows when we've auto-saved.
12483
da1d68b2 12484 * keyboard.c (record_auto_save): Added function to support the new
615d0182
DL
12485 auto-save conditions.
12486
da1d68b2 12487 * keyboard.c (read_char): Use num_input_chars and last_auto_save
615d0182
DL
12488 instead of keystrokes to decide when to autosave.
12489
da1d68b2 12490 * keyboard.c (keystrokes): Variable deleted.
615d0182 12491
dff28924 124921990-09-30 Mike Rowan (mtr@spike.ai.mit.edu)
615d0182 12493
da1d68b2 12494 * keyboard.c, alloc.c: Added malloc warning code from
615d0182
DL
12495 18.56.
12496
12497 * dispnew.c, xdisp.c: (un)hold_window_change no longer exists;
12498 added do_pending_window_change from 18.56.
12499
88c71720 12500 * process.c, process.h: Add the raw_status_low and raw_status_high
615d0182
DL
12501 code from 18.56.
12502
dff28924 125031990-09-29 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12504
12505 * alloca.s: Handle ns32000 like ns16000.
12506
12507 * m-ns32000.h: New file.
12508
12509 * lread.c (Fload): Warn if elc file older than source file.
12510
da1d68b2 12511 * ymakefile (LIB_X11_LIB): New parameter, default -lX11.
615d0182
DL
12512 (LIBX): Use that.
12513
12514 * Makefile (xmakefile): Delete junk.c at the beginning.
12515
12516 * hftctl.c: Include termios.h before termio.h.
12517 Define TCGETS and TCSETS if nec.
12518 Give some forward declarations for the static functions.
12519 Reformat in usual GNU style.
12520
12521 * m-orion105.h (LOAD_AVE_TYPE, FSCALE): Changed from double and 1.0.
12522
12523 * m-delta.h: New file.
12524
dff28924 125251990-09-28 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12526
12527 * fns.c (Frequire): Undo certain things on failure, like autoload.
12528
dff28924 125291990-09-28 Jim Blandy (jimb@pogo.ai.mit.edu)
615d0182 12530
da1d68b2 12531 * fileio.c (Fwrite_region): Renamed variable `fd' to `desc' and
615d0182
DL
12532 changed argument to open from `1' to `O_WRONLY'.
12533
da1d68b2 12534 * fileio.c (O_WRONLY): Added clause to define this if not already
615d0182
DL
12535 defined.
12536
da1d68b2 12537 * emacs.c (Fdump_emacs): Removed a_name variable.
615d0182 12538
da1d68b2 12539 * emacs.c (Fkill_emacs): Removed code which asked about modified
615d0182
DL
12540 buffers and running subprocesses.
12541
da1d68b2 12542 * editfns.c (Fcurrent_time_string): Renamed variable `now' to
615d0182
DL
12543 `current_time'.
12544
da1d68b2 12545 * dispnew.c (update_line): Renamed variables `m1' and `m2' to
615d0182
DL
12546 `begmatch' and `endmatch'.
12547
da1d68b2 12548 * dispnew.c (update_screen): Use preempt_count as a limit instead
615d0182
DL
12549 of a counter; count with i instead.
12550
da1d68b2
JB
12551 * dispnew.c (visible_bell, inverse_video, baud_rate)
12552 (Vwindow_system): Rearranged comments.
615d0182 12553
dff28924 125541990-09-27 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12555
12556 * emacs.c (main) : Set the DISPLAY environment value when both of
12557 MAINTAIN_ENVIRONMENT and HAVE_X_WINDOW are defined.
12558
da1d68b2 12559 * m-convex.h (LIB_STANDARD, LIBS_MACHINE): Remove these, they
615d0182
DL
12560 cause an unnecessary C1/C2 dependency.
12561
da1d68b2 12562 * m-convex.h (LD_SWITCH_MACHINE): Use -e__start to specify
615d0182
DL
12563 where crt0.c begins.
12564
da1d68b2 12565 * m-convex.h (HAVE_SETSID): Define; must call setsid
615d0182 12566 when creating an inferior with a different controlling tty.
da1d68b2 12567 * process.c (create_process): Rearrange so that HAVE_SETSID
615d0182
DL
12568 will be seen when not under USG.
12569
da1d68b2 12570 * m-convex.h (S_IFMT etc): Define in case of posix compilation.
615d0182 12571
da1d68b2
JB
12572 * m-convex.h (FIRST_PTY_LETTER): Do it at runtime.
12573 * unexconvex.c (first_pty_letter): Routine to locate lowest pty.
615d0182
DL
12574
12575 * unexconvex.c: Rewrite so it can cope with thread-local sections.
12576
12577 * sysdep.c (select): Use process_tick and update_tick,
12578 not child_changed.
12579
dff28924 125801990-09-23 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12581
12582 * keyboard.c (Fsuspend_emacs): Check screen size after resume.
12583
dff28924 125841990-09-19 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12585
12586 * editfns.c: Doc fix.
12587
dff28924 125881990-09-18 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12589
12590 * window.c (Fsplit_window): Minor cleanup.
12591
dff28924 125921990-09-17 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12593
12594 * emacs.c (main) [USG_SHARED_LIBRARIES]: Call brk.
12595
dff28924 125961990-09-13 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12597
12598 * floatfns.c (float_error_arg): New variable.
12599 (IN_FLOAT): New arg; sets float_error_arg. All uses changed.
12600 (float_error): Use that value when signaling error.
12601
dff28924 126021990-09-11 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12603
12604 * unexaix.c, m-ibmr2.h, s-aix3-1.h: New files.
12605
12606 * ymakefile (allocaobj): New variable. Used in otherobjs.
12607 Eliminates assignment of mallocobj using itself.
12608 (mallocobj): Handle SYSTEM_MALLOC without HAVE_ALLOCA.
12609 (xemacs): Use -nl option if HAVE_SHM.
12610
12611 * sysdep.c: Change IBMRTAIX conditionals to AIX.
12612 Move hft.h to the top.
12613 [IBMR2AIX]: Use termios.h and change macros accordingly.
12614 (child_setup_tty): Change IBMRTAIX to AIX.
12615 (setpgrp_of_tty): Handle IBMR2AIX.
12616 (init_sys_modes): Handle IBMR2AIX. Output special things for AIX.
12617 (reset_sys_modes): Output special things for AIX.
12618 (hft_init, hft_reset): Conditionals for IBMR2AIX.
12619
12620 * process.c: Change IBMRTAIX to AIX controlling time.h.
12621 [AIX]: Include sys/pty.h and unistd.h.
12622 (wait_reading_process_input): If AIX, handle EBADF differently.
12623 (create_process): Handle HAVE_SETSID. Change conditional to AIX.
12624
12625 * lisp.h (XPNTR): New definition if HAVE_SHM.
12626 (NULL): Undef before defining.
12627
12628 * emacs.c (main): If HAVE_SHM, call map_in_data.
12629 Use AIX, not IBMRTAIX, for signal conditional.
12630 (Fdump_emacs_data): New function if HAVE_SHM.
12631 (Fdump_emacs): Don't define if HAVE_SHM.
12632
12633 * alloc.c (pure, PUREBEG): If HAVE_SHM, define place for a segment.
12634
dff28924 126351990-09-03 Mike Rowan (mtr@apple-gunkies)
615d0182 12636
da1d68b2 12637 * sysdep.c: Added setup_pty from 18.56
615d0182 12638
da1d68b2 12639 * process.c: Merged in 18.55->6 changes. Same for process.h
615d0182 12640
41a98391 12641 globally replaced:
615d0182 12642 redisplay_preserving_echo_area -> redisplay_preserve_echo_area
dff28924
SS
12643 SetBfp -> set_buffer_internal
12644 buffer_flush_undo -> buffer_disable_undo
615d0182
DL
12645 redo_mode_line -> update_mode_line (window.h)
12646
dff28924 126471990-08-31 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12648
12649 * data.c (Fmake_local_variable): If var is local when set, make it
12650 local now in this buffer.
12651
12652 * data.c (Fstring_to_int): Finish eliminating second arg.
12653
12654 * data.c (Faset): Require integer as third arg for string.
12655
dff28924 126561990-08-28 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12657
12658 * search.c: Doc fix.
12659
12660 * screen.h (SCREEN_SCROLL_BOTTOM_VPOS): New macro.
12661 * xdisp.c (screen_bottom_vpos): Variable used if just one screen.
12662 (redisplay, try_window_id): Set that field in screen.
12663 * dispnew.c (scrolling, update_screen): New arg scroll_bottom_vpos.
12664
12665 * dispnew.c (scroll_screen_lines): Mark newly empty lines as empty.
12666 (scrolling): Give up if any line in current_screen not enabled.
12667
dff28924 126681990-08-27 Roland McGrath (roland@churchy.ai.mit.edu)
615d0182
DL
12669
12670 * dired.c (Ffile_attributes): Return the device number too (elt 11
12671 of the returned list).
12672
dff28924 126731990-08-27 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12674
12675 * sysdep.c (wait_for_kbd_input): Frob waiting_for_input here.
12676 * keyboard.c (kbd_buffer_read_command_char): Not here.
12677
12678 * sysdep.c (wait_for_kbd_input): Clear process_ef before snarfing
12679 process input.
12680
12681 * fileio.c (Fdirectory_file_name): On VMS, leave space for log name.
12682
12683 * sysdep.c (init_sys_modes): Clear process_ef only the first time.
12684
12685 * vmsfns.c (process_exit): Logic of deletion was wrong.
12686 (Fspawn_subprocess): Correctly reuse existing struct process_list.
12687
dff28924 126881990-08-22 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12689
12690 * m-plexus.h (LD_SWITCH_MACHINE): New macro.
12691
dff28924 126921990-08-22 Joseph Arceneaux (jla@geech)
615d0182
DL
12693
12694 * xterm.c (XTread_socket): Cleaned up #ifdefs prior to event
12695 reading loop. Also handle FIOSNBIO.
12696
dff28924 126971990-08-19 Joseph Arceneaux (jla@geech)
615d0182
DL
12698
12699 * xterm.c (dumplyphs): Last vestige of MScreenWidth removed.
12700 * config.h: MScreenWidth, MScreenHeight definitions removed.
12701
dff28924 127021990-08-18 Joseph Arceneaux (jla@geech)
615d0182
DL
12703
12704 * scroll.c (do_scrolling): Pass the correct sizes to bcopy.
12705 * dispnew.c (make_screen_glyphs): Likewise.
12706
dff28924 127071990-08-16 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12708
12709 * dispnew.c (scroll_screen_lines, free_screen_glyphs): Only deal
12710 with the X components of screen_glyphs if SCREEN_IS_X.
12711 free_screen_glyphs now takes screen argument.
12712
12713 * window.c (Fnext_window, Fprevious_window): Fixed typo. New
da1d68b2 12714 behaviour: mini non-nil implies all_screens if global mini screen
615d0182
DL
12715 exists, implies current screen only if not.
12716 (Fdisplay_buffer): Simplification of multi-screen code.
12717
dff28924 127181990-08-15 Richard Stallman (rms@mole.ai.mit.edu)
615d0182
DL
12719
12720 * buffer.c: Doc fix.
12721
dff28924 127221990-08-15 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12723
12724 * dispnew.c (update_line): Simplification of pixel size code, only
12725 done if screen is X.
12726 (update_screen): Only set pixel stuff if screen is X.
12727
dff28924 127281990-08-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12729
12730 * m-targon31.h (NO_REMAP): Definition removed.
12731 (SEGMENT_MASK): New macro.
12732
dff28924 127331990-08-14 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12734
12735 * lread.c (eval-region): Don't set opoint to point, etc.
12736 Fnarrow_to_region from BEGV, not b.
12737 (eval-buffer): New subr, generalization of eval-current-buffer.
12738 (eval-current-buffer): Moved to elisp, in simple.el.
12739
12740 * xfns.c (x_y_pos): Nuked. Replaced by pixel_to_char_translation
12741 and notice_mouse_movment (dispnew.c, xterm.c).
12742 (Fx_point_coordinates): Also nuked.
da1d68b2 12743 (mouse_buffer_offset): New lisp variable.
615d0182
DL
12744
12745 * xterm.c (notice_mouse_movement): Use it in call to
12746 pixel_to_char_translation.
12747
12748 * screen.h: For non-multiscreen, XSCREEN returns selected_screen,
12749 as does WINDOW_SCREEN.
12750
12751 * xdisp.c (display_mode_line): Set desired_glyphs->bufp to 0 for
12752 mode line.
12753 All occurences of struct screen * replaced with SCREEN_PTR.
12754
dff28924 127551990-08-13 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12756
12757 * xmenu.c (list_of_items, list_of_panes): Fixed wrong params to
12758 wrong_type_argument.
12759
dff28924 127601990-08-12 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 12761
da1d68b2 12762 * dispnew.c (pixel_to_char_translation): New algorithm for
615d0182
DL
12763 finding y.
12764
12765 * xfns.c (install_*_scrollbar): No more height, width parameters.
12766 Don't block input here.
12767 (x_set_*_scrollbar): Block input here.
12768
12769 * xterm.c (notice_mouse_motion): Check if the mouse is still in
12770 the window.
12771 (encode_mouse_button): Don't bother about motion types.
12772
dff28924 127731990-08-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12774
12775 * m-convex.h (C_SWITCH_MACHINE, LIB_STANDARD, LIBS_MACHINE):
12776 (LD_SWITCH_MACHINE): Add definitions for Convex V 4.0.
12777
dff28924 127781990-08-11 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12779
12780 * xfns.c (Fx_grab_pointer): Call XCreateFontCursor on shape,
12781 setting new variable grabbed_cursor. Return Qt if successful,
12782 Qnil otherwise.
da1d68b2 12783 (Fx_ungrab_pointer): Free grabbed_cursor if non zero. Return Qnil.
615d0182 12784
dff28924 127851990-08-10 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12786
12787 * xfns.c (x_figure_window_size): Don't set pixel sizes until
12788 height and width are determined.
12789
dff28924 127901990-08-08 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12791
12792 * xfns.c (Fx_grab_pointer): New parameter to explicitly ignore
12793 keyboard events.
12794
12795 * xterm.c (notice_mouse_movement): Use pixel_to_char_translation
12796 to get char position and buffer offset.
12797
dff28924 127981990-08-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12799
12800 * sysdep.c [NEED_PTEM_H]: New flag macro says include ptem.h.
12801
dff28924 128021990-08-07 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 12803
da1d68b2 12804 * dispextern.h: Element bufp of screen_glyphs no longer dependent
615d0182
DL
12805 on X windows.
12806 * xdisp.c (display_text_line): Likewise.
12807
12808 * xfns.c (Fx_grab_pointer, Fx_ungrab_pointer): New subrs.
12809 (x_figure_window_size): Set pixel_width and pixel_height of
12810 screen, using font height and width.
12811
12812 * xfns.c: Vmouse_grabbed renamed Vmouse_depressed.
12813 * xterm.c: Likewise.
12814 (construct_mouse_event): Don't check mouse coordinates; this is
12815 done by the notice_mouse_motion. Don't grab the mouse here.
12816
12817 * dispnew.c (update_line): Set the pix_width and pix_height of the
12818 line. This fashion of doing so is temporary.
12819
dff28924 128201990-08-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12821
12822 * dispextern.h: screen_glyphs struct elements bottom_right_x,
12823 bottom_right_y changed to pix_width and pix_height.
12824 * scroll.c: Likewise.
12825 * dispnew.c: Likewise.
12826 (update_screen): Set top_left_x, top_left_y for X windows.
12827
12828 * xterm.h: Macros PIXEL_{WIDTH,HEIGHT} now use the display
12829 structure elements.
12830
dff28924 128311990-08-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12832
12833 * xfns.c (x_window_to_scrollbar): Return Lisp symbol in parameter
12834 PART_PTR, rather than string.
12835 Declare these symbols.
12836 New variable Vscreen_part, indicates which part of the screen the
12837 mouse is in.
12838
12839 * xterm.c (notice_mouse_motion): Do XQueryPointer first thing.
12840 Set Vmouse_event to Qnil.
12841 (construct_mouse_event): Don't check if mouse has moved or not.
12842 When returning cons, part is now already lisp symbol.
12843 (XTread_socket): Set Vmouse_window = Vscreen_part = Qnil when
12844 leaving screen, as well as setting x_mouse_x = x_mouse_y = -1.
12845
12846 * keyboard.c: Vmouse_window, Vmouse_event declared extern and no
da1d68b2 12847 longer DEFVARed: they are already delclared in window.c.
615d0182
DL
12848
12849 * screen.c (window_from_coordinates): Use Fnext_window, even if
12850 MULTI_SCREEN, to obtain the next window. This is an test.
12851 Also, new paramater part returns text or modeline symbol.
12852 (Flocate_window_from_coordinates): Pass &part to
12853 window_from_coordinates.
12854 (coordinates_in_window): Don't say modeline if window_height is 1,
12855 as this is likely to be the minibuffer.
12856
dff28924 128571990-08-04 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12858
12859 * screen.c (Fcoordinates_in_window_p): Doc fix. Simplified.
da1d68b2
JB
12860 (window_from_coordinates): New function.
12861 (Flocate_window_from_coordinates): Use it.
615d0182 12862
da1d68b2 12863 * keyboard.c (classify_object): New function for dealing with the
615d0182
DL
12864 input object. New symbol, mouse-motion, called here.
12865 Call to mouse-motion-handler now takes no parameters.
da1d68b2 12866 (read_key_sequence): Use the new function. Don't set keybuf[0]
615d0182
DL
12867 to 0.
12868
da1d68b2 12869 * xterm.c (init_input_symbols): Create all the Lisp symbols
615d0182 12870 returned in the input stream.
da1d68b2 12871 (func_key_syms): New array to hold all symbols for function keys.
615d0182
DL
12872 (x_func_key_to_sym): Use this array.
12873 (notice_mouse_movement): New function for dealing with motion
12874 events.
12875 (XTread_socket): Use it here.
12876
dff28924 128771990-08-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12878
12879 * callproc.c (child_setup): Report error in chdir.
12880
dff28924 128811990-08-01 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12882
12883 * lisp.h: New macro XFLOATINT. extract_float declared.
12884 * floatfns.c (Ffloor): Call floor, not ceil.
12885 (extract_float): No longer static.
12886 * bytecode.c (Fbyte_code): Correctly handle floats in case Beqlsign.
12887
dff28924 128881990-07-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12889
12890 * keyboard.c (read_key_sequence): When downcasing letters,
12891 don't change the value returned in keybuf.
12892 (This is an experiment; it might be unpleasant in
12893 things such as C-h c, but it is an improvement
12894 for M-x global-set-key.)
12895
dff28924 128961990-07-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12897
12898 * eval.c: Doc fix.
12899
dff28924 129001990-07-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12901
12902 * s-iris*.h (SYSTEM_TYPE): Change silicon-graphics-unix to irix.
12903
dff28924 129041990-07-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12905
12906 * indent.c (Fmove_to_column): End-test was off by 1.
12907
12908 * abbrev.c (Fexpand_abbrev): Return nil if alloca arg would be neg.
12909
dff28924 129101990-07-26 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 12911
da1d68b2 12912 * xdisp.c (display_text_line): String to rope copy for inserting
615d0182
DL
12913 arrow text.
12914
dff28924 129151990-07-25 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12916
12917 * xdisp.c (display_mode_line): Check that the name has actually
12918 changed before calling x_set_name.
12919
da1d68b2 12920 * ralloc.c (check_memory_limits): New function.
615d0182
DL
12921 Also check if new memory will be larger than elisp pointer.
12922 (r_alloc_sbrk): Call this function.
12923 (relocate_blocs_upward, relocate_blocs_downward): Eliminated.
12924 (r_alloc_sbrk): Use relocate_some_blocs instead of the eliminated
12925 functions.
12926
12927 * vm-limit.c (morecore_with_warning): Check if new memory larger
12928 than elisp pointer size.
12929
dff28924 129301990-07-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12931
12932 * keyboard.c (save_getcjmp, restore_getcjmp): New functions.
12933 (read_char): Use them around Fdo_auto_save.
12934 * process.c (read_process_output, exec_sentinel): Use them.
12935 * fileio.c (Fdo_auto_save): Run auto-save-hook.
12936
dff28924 129371990-07-24 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12938
12939 * dispnew.c (safe_bcopy): No longer static.
12940
da1d68b2
JB
12941 * ralloc.c (relocate_blocs_upward, relocate_blocs_downward):
12942 Use safe_bcopy.
615d0182 12943
da1d68b2 12944 * mem_limits.c: typedef SIZE.
615d0182 12945
dff28924 129461990-07-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
12947
12948 * fileio.c (Finsert_file_contents): Initialize how_much when exiting
12949 main loop.
12950
12951 * m/m-mips.h: Added stuff from the 18.56 version.
12952
dff28924 129531990-07-18 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 12954
da1d68b2 12955 * indent.c (Fmove_to_column): Set end to ZV.
615d0182 12956
dff28924 129571990-07-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12958
12959 * editfns.c (init_editfns): Let envvar NAME override full name.
12960
12961 * buffer.c (list_buffers_1): Avoid error with list-buffers-directory.
12962
dff28924 129631990-07-17 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 12964
da1d68b2 12965 * buffer.c (list_buffers_1): Don't check list-buffers-directory.
615d0182 12966
dff28924 129671990-07-16 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 12968
da1d68b2 12969 * xdisp.c (display_text_line): Don't print ellipsis if they're
615d0182
DL
12970 off the left edge.
12971
dff28924 129721990-07-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12973
12974 * s-386-ix.h: Define BROKEN_TIOCGETC.
12975
dff28924 129761990-07-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12977
12978 * m-pmax.h: Undef LD_SWITCH_MACHINE, change DATA_START
12979 and DATA_SEG_BITS.
12980
dff28924 129811990-07-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12982
12983 * s-iris3-6.h (HAVE_GETWD): Define this.
12984 (KERNEL_FILE): Change to /unix.
12985 (sigsetmask, sigblock, NEED_ERRNO, C_SWITCH_MACHINE): Turn off.
12986 (SIGIO): Don't undefine it.
12987 (LIBS_MACHINE): Remove -lbsd.
12988
12989 * minibuf.c (Fall_completions, do_completion): Treat nil as alist.
12990 (Ftry_completion): Likewise.
12991
dff28924 129921990-07-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12993
12994 * sysdep.c: Undefine TIOCGETC if BROKEN_TIOCGETC defined.
12995 * s-usg5-3.h, s-xenix.h: Define BROKEN_TIOCGETC.
12996
dff28924 129971990-06-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
12998
12999 * process.c (Fopen_network_connection): Minor cleanup.
13000
dff28924 130011990-06-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13002
13003 * m-sun3.h: Add comments for dealing with 68881.
13004
dff28924 130051990-06-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13006
13007 * m-ibmps2-aix.h [__GNUC__]: Define LIB_STANDARD and C_DEBUG_SWITCH,
13008 and don't define LIBS_MACHINE.
13009 (HAVE_WAIT_HEADER): Define this.
13010 Also reordered definitions so recently added ones are together.
13011
dff28924 130121990-06-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13013
13014 * insdel.c (insert): Error if buffer would get too long.
13015 * fileio.c (Finsert_file_contents): Likewise.
13016
dff28924 130171990-06-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13018
13019 * syntax.c (scan_sexps_forward): Allow Squote inside symbols.
13020
dff28924 130211990-06-16 Joseph Arceneaux (jla@geech)
615d0182
DL
13022
13023 * window.c (Fscroll_other_window): Don't unbind_to. Keep track of
13024 current_buffer and point explicitly.
13025
dff28924 130261990-06-15 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13027
da1d68b2 13028 * term.c (cursor_to): Only add chars_wasted if not calling hook.
615d0182
DL
13029 (clear_end_of_line_raw): Likewise.
13030 (clear_end_of_line): Check that screen is termcap before using
13031 chars_wasted.
13032 (ins_del_lines): Eliminated local copybuf[].
13033 (calculate_ins_del_char_costs): Now has screen parameter.
13034 DCICcost: Change to char_ins_del_costs and defined with
13035 SCREEN_WIDTH (screen).
13036 DC_ICcost: Changed to char_ins_del_vector.
13037 * term.h: DCICcost no longer defined here. DC_ICcost no longer
13038 declared here.
13039 * dispnew.c: char_ins_del_cost defined here. char_ins_del_vector
13040 declared extern here.
13041
dff28924 130421990-06-14 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13043
88c71720 13044 Globally replaced screen_width with macro
615d0182
DL
13045 SCREEN_WIDTH (selected_screen).
13046 * dispnew.c (init_display): Don't set SCREEN_WIDTH, etc. from
13047 screen_width.
da1d68b2 13048 (change_window_size): No longer check output_type and set
615d0182
DL
13049 ScreenRows.
13050
dff28924 130511990-06-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13052
13053 * indent.c (Findent_to): Don't fail to return value.
13054 (Fmove_to_column, Fcurrent_column): Doc fixes.
13055
dff28924 130561990-06-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13057
da1d68b2
JB
13058 * keyboard.c (echo_prompt): Now uses glyphs.
13059 echobuf, echobuf_ptr: These variables now glyphs.
615d0182 13060
dff28924 130611990-06-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13062
13063 * fileio.c (Fdo_auto_save): Use glyphs_to_str_copy to set
13064 omessage.
13065 * alloc.c (Fgarbage_collect): Ditto.
13066
da1d68b2 13067 * xdisp.c (message): message_buf set here, realloced if smaller
615d0182
DL
13068 than screen width.
13069 message_buf now type GLYF *. New variable message_buf_size holds
13070 its size.
13071 Use temp_buf for call to doprnt, then use str_to_glyph_cpy to set
13072 echo_area_glyphs.
13073
da1d68b2 13074 * print.c (printchar, strout): Use message_buf_size. Convert to
615d0182 13075 glyfs before assigning chars.
da1d68b2
JB
13076 (str_to_glyph_cpy, str_to_glyph_ncpy)
13077 (glyph_to_str_cpy, glyph_to_str_ncpy): New functions.
615d0182 13078
dff28924 130791990-06-03 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13080
13081 * keyboard.c (command_loop_1): Clear this_command_key_count here.
13082 (Fread_key_sequence): And here.
13083 (read_key_sequence): Not here.
13084
13085 * dispnew.c (update_screen):
13086 Add missing else in handling cursor_in_echo_area.
dff28924 13087 * xdisp.c (redisplay_window): Eliminate lpoint. Alter opoint
615d0182
DL
13088 if point should be changed permanently in the selected window.
13089
13090 * window.c (unshow_buffer): Don't set pt in selected window's buffer.
13091
13092 * xdisp.c (decode_mode_spec): Don't truncate buffer or file name.
13093
13094 * editfns.c (Finsert_buffer_substring): Don't fail to set beg, end.
13095
13096 * keyboard.c (command_loop_level): New variable.
13097 Used in place of RecurseDepth, but different meaning.
13098 (recursive_edit_1): New function.
13099 (Frecursive_edit): Call it.
13100 * minibuf.c (read_minibuf): Call recursive_edit_1.
13101 * xdisp.c (RecurseDepth): Variable deleted.
13102 display_minibuffer_message renamed echo_area_display.
13103
13104 * print.c: Include dispextern.h.
13105 (printchar, strout): Use message_buf.
13106
13107 * scroll.c (CalcIDCosts): Dynamically allocate ILcost, etc.
13108 (ILcost, DLcost, ILncost, DLncost): Now pointers.
13109 (do_scrolling): Use alloca for queue.
13110
da1d68b2 13111 * term.c (term_init): selected_screen as arg to calculate_costs.
615d0182
DL
13112 (calculate_costs):
13113 Dynamically allocate chars_wasted, copybuf, DC_ICcost.
13114 Set RPov based on actual width.
13115 (chars_wasted, copybuf, DC_ICcost): Now pointers.
13116
13117 * xterm.c (x_term_init): Don't set dont_calculate_costs anymore.
13118
dff28924 131191990-06-02 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13120
da1d68b2 13121 * term.c (calculate_ins_del_char_costs, string_cost_one_line):
615d0182
DL
13122 Made static.
13123
13124 * dispnew.c: Declare scrolling_1;
13125
da1d68b2 13126 * scroll.c (CalcIDCosts, CalcIDCosts1, CalcLID): Renamed
615d0182
DL
13127 calculate_ins_del_char_costs, ins_del_costs, and line_ins_del.
13128 CalcIDCosts1 and CalcLID also renamed.
da1d68b2 13129 (calculate_scrolling): Now void.
615d0182 13130
da1d68b2 13131 * Global renaming: bf_modified -> MODIFF. CharAt -> CHAR_AT_POSITION.
615d0182
DL
13132 BufferSafe{Floor,Ceiling} -> BUFFER_{FLOOR,CEILING}_OF.
13133 SetPoint -> SET_PT.
13134
13135 * xterm.c (x_term_init): Don't CalcIDCosts here anymore.
13136
dff28924 131371990-06-01 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13138
13139 * print.c: Include dispextern.h.
13140 (printchar, strout): Use message_buf.
13141
da1d68b2
JB
13142 * sysdep.c (get_screen_size): Don't use MscreenWidth, MscreenLenght.
13143 * term.c: Likewise.
615d0182 13144
da1d68b2 13145 * scroll.c (CalcIDCosts, CalcIDCosts1, CalcLID): These now take a
615d0182
DL
13146 screen argument.
13147 (CalcIDCosts): Dynamically allocate ILcost, etc.
13148 (ILcost, DLcost, ILncost, DLncost): Now pointers.
13149 (do_scrolling): Use alloca for queue.
13150
13151 * dispnew.c (remake_screen_structures): Allocate message_buf.
13152 Don't use MscreenWidth, MscreenLenght.
13153
13154 * xdisp.c: bf_cur replaced with current_buffer.
13155 Calls to SetBfx deleted.
13156 message_buf is now char *.
13157 (message): Use SCREEN_WIDTH macro as limit for doprnt.
13158
13159 * indent.c (current_column): Detect special case when point == BEGV.
13160
13161 * buffer.h (struct buffer_text): Component modified renamed to
13162 modiff. All refs changed to macros below.
13163 (MODIFF, BUF_MODIFF): New macros.
13164 Macro SetBfx removed.
13165 Macro SetPoint renamed SET_PT.
13166
da1d68b2 13167 * fileio.c (Fexpand_file_name): Simplified.
615d0182 13168
dff28924 131691990-06-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13170
13171 * dired.c: Doc fix.
13172
dff28924 131731990-05-31 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13174
13175 * search.c (Fsearch_forward): Docstring fix.
13176
dff28924 131771990-05-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13178
13179 * dired.c: Comment added.
13180
dff28924 131811990-05-31 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13182
da1d68b2 13183 * process.c (Fprocess_connection): Return the type of a process
dff28924 13184 object.
da1d68b2 13185 (syms_of_process): Initialize pty_process and stream_process.
615d0182
DL
13186 Declare Fprocess_type.
13187 * process.h New element type to struct Lisp_Process.
13188
13189 * syntax.c (scan_sexps_forward): Initialize curlevel->last to -1.
13190
dff28924 131911990-05-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13192
da1d68b2 13193 * fileio.c (Finsert_file_contents): Use new variable how_much to
615d0182
DL
13194 hold read result.
13195
dff28924 131961990-05-24 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13197
da1d68b2 13198 * lread.c (read_char_exclusive): New subr.
615d0182 13199
dff28924 132001990-05-24 David Lawrence (tale@pogo.ai.mit.edu)
615d0182 13201
da1d68b2 13202 * fileio.c (file_executable_p): New function.
615d0182 13203
dff28924 132041990-05-23 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13205
13206 * insdel.c (make_gap): Only set BEG_ADDR if BUFFER_REALLOC was
13207 successful.
13208
da1d68b2 13209 * editfns.c (syms_of_editfns): DEFVAR the new variables.
615d0182
DL
13210
13211 * eval.c (Finteractive_p): Don't skip the first frame if the
13212 function was compiled.
13213
13214 * print.c (print): Use ... only for conses, and instead of normal
13215 print.
13216
dff28924 132171990-05-22 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13218
13219 * Renamed meta_flag meta_key.
13220
da1d68b2 13221 * termopts.h: Comment changes.
615d0182 13222
dff28924 132231990-05-20 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13224
13225 * buffer.h: upcase_table and downcase_table are now Lisp_Objects.
da1d68b2 13226 * alloc.c (mark_object, gc_sweep): Related changes.
615d0182
DL
13227 * casetab.c: Ditto.
13228
dff28924 132291990-05-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13230
13231 * minibuf.c (Fall_completions): Protect STRING from gc.
13232 Copy ALIST to TAIL to protect it.
13233
13234 * paths.h-dist: Doc fix.
13235
dff28924 132361990-05-17 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13237
13238 * search.c (Flooking_at, search_buffer): Use new accessors.
13239 * indent.c (Fcurrent_column): Likewise.
13240 * minibuf.c (read_minibuf): Likewise.
13241 * regex.c (re_match_2): Use PTR_CHAR_POS.
13242 * editfns.c (Fbuffer_size, Fnarrow_to_region, Fbuffer_substring):
13243 (Fbuffer_string, Finsert_buffer_substring): Likewise.
13244 (save_restriction_restore): Likewise.
13245 * dispnew.c (direct_output_for_insert): Likewise.
13246 * fileio.c (Fwrite_region, Finsert_file_contents): Likewise.
13247 (Fdo_auto_save): Likewise.
13248 * insdel.c (move_gap, gap_left, gap_right, make_gap): Likewise.
13249 (InsCStr, del_range, modify_region): Likewise.
13250 * process.c (Fprocess_send_region): Likewise.
13251 * xdisp.c (try_window, try_window_id, display_text_line): Likewise.
13252 (redisplay): Likewise.
13253 * buffer.c (list_buffers_1): Likewise.
dff28924 13254 * marker.c (marker_position, Fset_marker, set_marker_restricted):
615d0182
DL
13255 (Fmarker_position): Likewise.
13256 * window.c (unshow_buffer, Fset_window_configuration): Likewise.
13257 (Fset_window_buffer): Likewise.
13258
13259 * editfns.c (save_restriction_restore): Use a macro to alter point.
13260
13261 * lread.c (readchar): Use new accessors, and avoid knowing about
13262 the text field of a buffer.
13263 * window.c (Fpos_visible_in_window_p): Likewise.
13264
13265 * buffer.h (struct buffer): Make the syntax table a Lisp object.
13266 * alloc.c (mark_buffer): No need to treat it specially.
13267 * syntax.c (Fsyntax_table, Fset_syntax_table, Fdescribe_syntax):
13268 (Fmodify_syntax_entry): Adjust for this change.
13269 * buffer.c (reset_buffer_local_variables): Need not be special.
13270 (init_buffer_once): Make this slot a defaulted local variable.
13271 * syntax.h: Adjust macros for this change.
13272 (Vstandard_syntax_table): Define as macro, in buffer_defaults.
13273 * syntax.c (syms_of_syntax): Don't staticpro it here.
13274 (Fset_syntax_table): Set the flag in local_var_flags.
13275
13276 * buffer.h (struct text): Represent the buffer dimensions
13277 with new slots, memory, begv, pt, gpt, zv, z and gap_size.
13278 (BEGV, etc.): Use new slots.
13279 (CharAt): Likewise.
13280 (BufferSafeCeiling, BufferSafeFloor): Use new slots; fix old bugs.
13281 (bf_p1, bf_s1, etc.): Old macros deleted.
13282
13283 * buffer.c (Fget_buffer_create): Set up memory and new slots.
13284 (Fkill_buffer): Likewise.
13285
13286 * insdel.c (move_gap, gap_left, gap_right, make_gap): Update new slots.
13287 (del_range, InsCStr): Likewise.
13288 * fileio.c (Finsert_file_contents): Likewise.
13289 * window.c (temp_output_buffer_show): Likewise.
13290 * xdisp.c (decode_mode_spec, try_window_id): Likewise.
13291
13292 * insdel.c (make_gap): Complete rewrite. Arg is amount of new gap
13293 to create. All calls changed.
13294 (gap_left): New argument NEWGAP.
13295
13296 * buffer.c (Fset_buffer): Check for deleted buffer.
13297 (SetBfp): Don't check.
13298 (SetBfp, Frename_buffer): Local cleanups.
13299 * print.c (PRINTPREPARE): Use Fset_buffer.
13300
13301 * buffer.c (SetBfp): Don't bother with selected window or its point.
dff28924 13302 * window.c (Fselect_window): Always set pointm of old window.
615d0182
DL
13303
13304 * editfns.c: Eliminate all use of DEFSIMPLE and DEFPRED.
13305 * indent.c, keyboard.c: Ditto.
13306
13307 * search.c (skip_chars): Eliminate PointLeft and PointRight.
13308 * cmds.c (SelfInsert): Likewise.
13309
dff28924 133101990-05-16 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13311
da1d68b2 13312 * xdisp.c (try_window): No return value.
615d0182
DL
13313 Fix calls to try_window.
13314 * Global variable RedoModes is now redraw_mode_line.
13315
dff28924 133161990-05-13 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13317
13318 * keymap.c (Fdefine_key, Flookup_key): Local cleanups.
13319
dff28924 13320 * sysdep.c (sys_suspend): Use save_signal_handlers and
615d0182
DL
13321 restore_signal_handlers to save and restore signal state.
13322
13323 * indent.c (Findent_to): Merge guts of indentation into here.
13324 (position_indentation): Scan with a pointer, for speed.
13325
13326 * casefiddle.c (operate_on_word): Just return the other end.
13327 (Fupcase_word, Fdowncase_word, Fcapitalize_word):
13328 Pass that value to casify_region.
13329
13330 * editfns.c (init_editfns): Store system and user names as
13331 strings to avoid arbitrary limits.
13332
13333 * keymap.c (describe_vector, describe_alist): Make elt_prefix
13334 and elt_describer responsible for indentation and newlines.
13335 Local cleanups.
13336 (describe_command): Do indentation and newline.
13337 (describe_map): Add space to end of prefix.
13338 * syntax.c (describe_syntax): Do indentation and newline.
13339
dff28924 133401990-05-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13341
13342 * process.c (create_process) [not USG]: Put subproc in pgrp 0.
13343
dff28924 133441990-05-10 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13345
da1d68b2 13346 * dispextern.h: New struct screen_glyfs replaces struct
615d0182 13347 display_line.
da1d68b2 13348 * screen.c: New screen elements current_glyfs, desired_glyfs, and
615d0182 13349 temp_glyfs.
da1d68b2
JB
13350 * dispnew.c (make_screen_glyfs, free_screen_glyfs):
13351 (remake_screen_glyfs): New functions.
615d0182
DL
13352 (make_display_lines, new_display_line, return_display_line):
13353 Functions deleted.
13354 (change_screen_size, init_display): Use the new functions.
13355 (cancel_line, clear_screen_records, get_display_line):
13356 Rewritten for new data structures. get_display_line no longer
13357 returns anything.
13358 (preserve_other_columns, preserve_my_columns): Likewise.
13359 (cancel_my_columns, direct_output*): Likewise.
13360 (update_screen, update_line, quit_error_check, scrolling): Likewise.
13361 (scroll_screen_lines): Likewise.
13362 (rotate_vector, safe_bcopy): New subroutines.
13363 (line_hash_code, line_draw_cost): Cleaned up.
13364 Args are different, and hash computation too.
13365 (update_screen): Rearrange buffer-emptying code.
da1d68b2 13366 * xdisp.c (display_minibuf_message, redisplay): Rewritten for new
dff28924 13367 structures.
615d0182
DL
13368 (display_text_line, display_mode_line): Likewise.
13369 (display_mode_element, display_string): Likewise.
13370 (decode_mode_spec): Local cleanups.
13371 * scroll.c (do_scrolling): Rewritten for new data structures.
13372 * xterm.c (XTflash): Use this new structure.
13373
13374 * editfns.c (in_accessible_range): New function.
13375 (Fgoto_char, save_restriction_restore): Use it.
13376 (save_excursion_save, Fcurrent_time_string): Local cleanups.
13377
13378 * process.c (Fprocess_kill_without_query): New arg; new return value.
13379 (count_active_processes): Function deleted.
13380
13381 * fileio.c (Finsert_file, Fwrite_region): Local cleanups.
13382
13383 * fns.c (Fsubstring): Local cleanup.
13384
13385 * keyboard.c (echo_prompt, echo_char, echo_dash, echo): New functions.
13386 (cancel_echoing): Likewise.
13387 (immediate_echo, echoptr): New variables.
dff28924 13388 (command_loop_1, request_echo, get_char, read_key_sequence):
615d0182
DL
13389 (set_waiting_for_input, interrupt_signal): Related changes.
13390 (get_char): No more declaration of request_echo. Local cleanups.
13391
13392 (this_command_key...): New variables.
13393 (Fexecute_extended_command, Fthis_command_keys): Related changes.
13394 (init_keyboard, get_char): Likewise.
13395
13396 * macros.c (Fstart_kbd_macro): Local cleanup.
13397
13398 * minibuf.c (read_minibuf): No more delcaration of
13399 Frestore_screen_configuration.
13400
13401 * search.c (Fregexp_quote): Simplified.
13402
dff28924 134031990-05-08 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13404
da1d68b2 13405 * process.c (Fopen_network_stream): Also handle numeric inet addresses.
615d0182 13406
dff28924 134071990-05-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13408
13409 * alloca.c: #ifdef __STDC__ rather than X3J11/
13410
dff28924 134111990-05-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13412
13413 * fileio.c (Fmake_symbolic_link): Delete old file if permitted.
13414
dff28924 134151990-05-02 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13416
13417 * data.c (Fstring_to_int): Delete disabled feature
13418 of accepting `yes' and `no'.
13419
13420 * xdisp.c (redisplay, redisplay_preserving_echo_area):
13421 Two functions replace DoDsp. All callers changed.
13422 (redisplay, redisplay_window): Eliminate `inhibit_hairy_id'.
13423 (redisplay_window): No return value. Local cleanups.
13424
13425 * alloc.c (Fmake_marker): Delete `modified' field.
13426 * insdel.c (adjust_markers): Likewise.
13427
13428 * abbrev.c (Fdefine_mode_abbrev): Clean up error message.
13429
dff28924 134301990-05-01 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13431
13432 * xfns.c (Fx_draw_rectangle, Fx_erase_rectangle): Simplified.
13433
13434 * xterm.c (x_display_cursor): Don't check s->phys_x when drawing
13435 cursor.
13436
da1d68b2
JB
13437 * undo.c: New version.
13438 * undo.h: No longer exists.
615d0182
DL
13439 * alloc.c (Fgarbage_collect): Call truncate_undo_list.
13440 (syms_of_alloc): Define vars undo-threshold and undo-high-threshold.
13441 * buffer.c (Fget_buffer_create): Set undo_list to t or nil.
13442 (Fbuffer_disable_undo, Fbuffer_enable_undo): Likewise.
13443 (Fkill_buffer): Likewise.
13444 (init_buffer_once): Set up local variable buffer-undo-list.
13445 (syms_of_buffer): Likewise.
13446 * buffer.h: New element undo_list in struct buffer.
13447 * fileio.c (Finsert_file_contents): Store nil in undo_list.
13448
da1d68b2 13449 * buffer.c: Variable bf_text deleted.
615d0182 13450 (Fkill_buffer, SetBfp): Delete code that worked with it.
da1d68b2 13451 (SetBfx): Now a macro in buffer.h
615d0182
DL
13452 * editfns.c (Fwiden, Fnarrow_to_region): Related changes.
13453 (save_restriction_save, save_restriction_restore): Likewise.
13454 (Finsert_buffer_substring): Likewise.
13455 * fileio.c (Fdo_auto_save): Likewise.
13456 * insdel.c (make_gap): Likewise.
13457 * lread.c (readchar): Likewise.
13458 * marker.c (Fmarker_position, marker_position): Likewise.
13459 (Fset_marker): Likewise.
13460 * xdisp.c (DoDsp): Likewise.
13461
dff28924 134621990-04-30 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13463
da1d68b2 13464 * buffer.h: New macro R_ALLOC_SET_BUFFER for declaring all the
615d0182
DL
13465 text pointers of a buffer to the relocating allocator.
13466 * buffer.c (Fbury_buffer, SetBfx, SetBfp): Use the macro.
da1d68b2
JB
13467 * editfns.c (Finsert_buffer_substring): Ditto.
13468 * fileio.c (Fdo_auto_save): Ditto.
13469 * insdel.c (make_gap): Ditto.
615d0182
DL
13470 * xfns.c (adjust_scrollbars): Don't set bf_cur->text.
13471
dff28924 134721990-04-26 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13473
13474 * minibuf.c: Declare active_screen struct screen *, not
13475 Lisp_Screen *.
13476
dff28924 134771990-04-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13478
13479 * xterm.c (XTupdate_end): Only x_display_cursor if s is x_input_screen.
13480
dff28924 134811990-04-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13482
13483 * fns.c (Fy_or_n_p): If a C-g comes in and does not quit, quit by hand.
13484
13485 * buffer.c (Frename_buffer): Allow renaming to same name it has.
13486
dff28924 134871990-04-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13488
da1d68b2 13489 * xfns.c (Fx_open_connection): Attach xrdb to x_current_display.
615d0182 13490
dff28924 134911990-04-17 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13492
da1d68b2
JB
13493 * xterm.c (dumpborder): Now only used for X10.
13494 (highlight, unhighlight): New functions for X11.
615d0182 13495
dff28924 134961990-04-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13497
13498 * cm.c (Wcm_init): Return -2 if screen size not specified.
13499 * term.c (term_init): Special error message for that case.
13500
dff28924 135011990-04-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13502
13503 * s-sunos4.h, s-sunos4shr.h (SYSTEM_MALLOC): Define it.
13504
dff28924 135051990-04-15 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13506
da1d68b2 13507 * xfns.c (Fx_get_resource): Concatenate invocation_name before
615d0182 13508 the resource tag.
da1d68b2 13509 (Fx_create_screen): Use the latest resource id's.
615d0182 13510
dff28924 135111990-04-13 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13512
da1d68b2
JB
13513 * xfns.c (Fx_get_resource): New subr.
13514 (Fx_open_connection): Call x_load_resources. New parameter
615d0182 13515 xrm_string.
da1d68b2 13516 * xrdb.c: New file for doing resource manager stuff.
615d0182 13517
da1d68b2 13518 * xscrollbar.h: New file for scrollbar bitmaps.
615d0182 13519
da1d68b2 13520 * xselect.h: New file for the X selection stuff.
615d0182
DL
13521
13522 * ymakefile: Take note of these new files.
13523
dff28924 135241990-04-10 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13525
da1d68b2 13526 * xterm.c (x_term_init): Use MAXPATHLEN.
615d0182 13527
dff28924 135281990-04-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13529
13530 * buffer.c (list_buffers_1): Get filename from list-buffers-directory.
13531
dff28924 135321990-04-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13533
da1d68b2
JB
13534 * screen.c (coordinates_in_window): Return -1 if in modeline of window.
13535 (Fcoordinates_in_window_p): Return Qt if in modeline of window.
13536 (Flocate_window_from_coordinates): Use next_screen_window if
615d0182
DL
13537 MULTI_WINDOW is defined.
13538
dff28924 135391990-04-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13540
da1d68b2 13541 * xterm.c (construct_mouse_event): Deal with the motion events
615d0182
DL
13542 first. Only grab the mouse when in the scrollbar.
13543
dff28924 135441990-04-04 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13545
13546 * screen.c (coordinates_in_window): Include mode line as part of
13547 window.
13548
da1d68b2
JB
13549 * xterm.c (XTread_socket): Initialize nbytes to 0.
13550 (x_display_cursor): Don't draw if screen not selected.
615d0182 13551
da1d68b2 13552 * xdisp.c (DoDsp): Additional checks for screen being visible.
615d0182 13553
dff28924 135541990-04-03 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13555
da1d68b2 13556 * editfns.c (Fmessage): If there is a global minibuffer screen,
615d0182
DL
13557 raise it before displaying the message.
13558
da1d68b2 13559 * window.c (window_loop): Parameter SCREENS now affects which
615d0182
DL
13560 screen is scanned for windows. All subrs calling window_loop must
13561 pass a Lisp_Object here now.
13562
dff28924 135631990-04-01 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13564
da1d68b2 13565 * window.c (window_loop): Additional parameter mini to control
615d0182
DL
13566 minibuffer selection or not.
13567 (Fget_lru_window):
13568 (Fget_largest_window):
13569 (Fget_buffer_window):
13570 (Fdelete_other_windows):
13571 (Fdelete_windows_on):
da1d68b2 13572 (Freplace_buffer_in_windows): Use that parameter.
615d0182 13573
dff28924 135741990-03-29 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13575
da1d68b2 13576 * screen.c (Fselect_screen): Raise the selected screen.
615d0182
DL
13577
13578 * window.c (Fget_buffer_window):
13579 (Fget_largest_window):
da1d68b2
JB
13580 (Fget_lru_window): New parameter all_screens.
13581 (Fdisplay_buffer): Use the new param in Fget_lru_window,
615d0182 13582 Fget_buffer_window, and Fget_largest_window.
da1d68b2
JB
13583 (Fscroll_other_window): Use new param in Fget_buffer_window.
13584 * buffer.c (Fother_buffer): Ditto.
615d0182 13585
da1d68b2 13586 * xterm.c (x_display_cursor): Always draw the cursor if ON is
615d0182
DL
13587 true. Don't check if the screen S is selected or equal to
13588 mouse-screen.
13589
da1d68b2 13590 * xfns.c (Fx_track_pointer): Don't turn off cursor, just call
615d0182
DL
13591 x_display_cursor.
13592
dff28924 135931990-03-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13594
da1d68b2 13595 * data.c (Fmake_local_variable): Give the variable value nil if
615d0182
DL
13596 unbound.
13597
da1d68b2 13598 * window.c (Fnext_window, Fprevious_window): For MULTI_SCREEN,
615d0182
DL
13599 check if Vglobal_minibuffer_screen is non-nil and maybe call
13600 next_screen.
13601
13602 * screen.c (Fscreen_selected_window):
da1d68b2 13603 (Fscreen_root_window): If screen is nil, use selected-screen.
615d0182 13604
dff28924 136051990-03-27 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13606
da1d68b2 13607 * xterm.c (XTread_socket): SET_SCREEN_GARBAGED which returning
615d0182 13608 symbol which causes DoDsp to be invoked.
da1d68b2 13609 * keyboard.c (read_key_sequence): Don't SET_SCREEN_GARBAGED here.
615d0182 13610
da1d68b2 13611 * screen.h: New macro SET_SCREEN_GARBAGED.
615d0182
DL
13612
13613 * xfns.c:
13614 * window.c:
13615 * sysdep.c:
13616 * keyboard.c:
da1d68b2 13617 * dispnew.c: Use the new macro.
615d0182 13618
dff28924 136191990-03-25 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13620
da1d68b2 13621 * xfns.c (Fx_own_selection): Only take one argument, string.
615d0182 13622
dff28924 136231990-03-24 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13624
da1d68b2 13625 * xfns.c (select_visual): Catch bullshit machines whose hardware
615d0182 13626 doesn't support the X server pixel depth by looking at colormap_size.
da1d68b2 13627 (x_decode_color): Use x_screen_planes to check for color.
615d0182 13628
dff28924 136291990-03-23 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13630
da1d68b2
JB
13631 * xterm.c (x_display_cursor): Try using vertical bar cursor.
13632 (clear_cursor): Call x_display_cursor for X11.
615d0182
DL
13633
13634 * xfns.c: Zotzed Vx_pointer_mask.
da1d68b2 13635 (Fx_track_pointer): Call x_display_cursor if we just
615d0182
DL
13636 wasted the cursor. Break out of loop if no display line.
13637 Use mode line cursor if we're there.
da1d68b2
JB
13638 (x_y_pos): New function.
13639 (x_set_font): Dont' set x_font_{width,height}, they are gone.
615d0182 13640
dff28924 136411990-03-22 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13642
da1d68b2 13643 * xfns.c (Fx_track_pointer): Check that s == selected_screen each
615d0182
DL
13644 time through loop. If event is nil, read mouse position.
13645
da1d68b2 13646 * keyboard.c (get_char): DoDsp only if selected_screen visible.
615d0182 13647
da1d68b2 13648 * xterm.c (XTread_socket): Mark screen as visible only on expose
615d0182
DL
13649 event.
13650
da1d68b2
JB
13651 * emacs.c (main): Check here for "-d" option and set display_arg.
13652 * dispnew.c (init_display): Set Vwindow_system, etc. if display_arg.
615d0182 13653
dff28924 136541990-03-21 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13655
da1d68b2 13656 * keyboard.c (read_key_sequence): Don't DoDsp if the screen was
615d0182 13657 just unmapped.
da1d68b2 13658 (command_loop_1): Call the mouse motion handler before calling
615d0182 13659 read_key_sequence.
da1d68b2 13660 (interrupt_signal): Fixed typo checking screen type.
615d0182 13661
da1d68b2 13662 * xfns.c (Fx_track_mouse): Don't crash because of null display
615d0182
DL
13663 line. Don't set obj til call to get_char.
13664
da1d68b2 13665 * xterm.c (x_term_init): Disable SIGWINCH here.
615d0182 13666
da1d68b2 13667 * fns.c (Fmember): New subr.
615d0182 13668
da1d68b2 13669 * dispnew.c (init_display): Don't check env variable DISPLAY to
615d0182
DL
13670 set Vwindow_system. Now done in startup.el.
13671
da1d68b2 13672 * emacs.c: Removed variables xargc, xargv.
615d0182 13673
dff28924 136741990-03-20 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13675
da1d68b2 13676 * xfns.c (Fx_track_pointer): Go faster.
615d0182 13677
da1d68b2 13678 * screen.h: New macro SCREENP.
615d0182 13679
da1d68b2 13680 * window.c (Fminibuffer_window): Rewritten.
615d0182 13681
dff28924 136821990-03-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13683
13684 * sysdep.c (perror): Control with HAVE_PERROR as well as HPUX.
13685 * s-hpux.h (HAVE_PERROR): Define it.
13686
dff28924 136871990-03-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13688
da1d68b2 13689 * keyboard.c (command_loop_1): Restructured handling of X event
615d0182 13690 things.
da1d68b2 13691 (read_key_sequence): Handle new `unmapped-screen' symbol with new
615d0182
DL
13692 Vunmap_screen_hook.
13693
da1d68b2 13694 * xterm.c (XTread_socket): Return unmapped-screen symbol if the
615d0182
DL
13695 window for UnmapNotify events.
13696
da1d68b2 13697 * lread.c (Feval_region): GCPRO opoint.
615d0182 13698
dff28924 136991990-03-16 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13700
da1d68b2 13701 * keyboard.c (command_loop_1): Call mouse-motion handler with
615d0182
DL
13702 argument. Also, don't call undo-boundary.
13703
da1d68b2 13704 * process.c (create_process): Set the process group for BSD at
615d0182
DL
13705 the same time as for USG.
13706
dff28924 137071990-03-14 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13708
da1d68b2 13709 * xterm.c (x_new_selected_screen): Set x_input_screen here.
615d0182 13710
dff28924 137111990-03-11 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13712
da1d68b2
JB
13713 * xterm.c: Vx_mouse_grabbed now Vmouse_grabbed.
13714 (XTread_socket): Generate exited-window symbols on LeaveNotify
615d0182
DL
13715 even if screen is focused.
13716
da1d68b2
JB
13717 * xfns.c: Vx_mouse_grabbed now Vmouse_grabbed.
13718 (outline_region): Now static.
13719 (Fx_track_pointer): Check x_mouse_screen == s in loop.
615d0182 13720
dff28924 137211990-03-10 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13722
13723 * xterm.c (encode_mouse_button): Correctly get the button from
13724 Motion events.
13725
da1d68b2 13726 * xfns.c (x11_encode_mouse_button): Nuked.
615d0182
DL
13727 (encode_mouse_button, Fx_mouse_events, Fx_get_mouse_event): #if 0'd.
13728
da1d68b2 13729 * keyboard.c (get_char): Re-set obj if we've keyboard-translated c.
615d0182 13730
dff28924 137311990-03-08 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13732
da1d68b2
JB
13733 * xterm.c (x_focus_screen): No longer static.
13734 (x_error_handler): Use XDefaultIOError.
615d0182 13735
da1d68b2
JB
13736 * screen.c (Ffocus_screen): New subr, removed Fscreen_has_focus.
13737 (Fselect_screen): New, optional parameter no_enter.
615d0182 13738 (Frestore_screen_configuration):
da1d68b2 13739 (Fdelete_screen): Pass second parm Qnil to Fselect_screen.
615d0182 13740
da1d68b2 13741 * window.c (Fdisplay_buffer, Fset_window_configuration): Pass
615d0182
DL
13742 second parm Qnil to Fselect_screen.
13743
dff28924 137441990-03-07 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13745
da1d68b2
JB
13746 * screen.c (Fscreen_has_focus): New subr.
13747 (Fselect_screen): Use x_focus_on_screen to physically select the
615d0182
DL
13748 screen.
13749
dff28924 137501990-03-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13751
da1d68b2 13752 * xfns.c (x_set_mouse_position): Moved to xterm.c.
615d0182 13753
da1d68b2 13754 * fileio.c (Fremove_directory): New subr.
615d0182 13755
da1d68b2 13756 * screen.c (Frelease_focused_screen): Just call x_unfocus_screen.
615d0182 13757
da1d68b2 13758 * xterm.c (XTread_socket): On FocusOut, if s isn't mouse screen,
615d0182
DL
13759 return exited-window. On LeaveNotify, simplify if expression for
13760 dumpborder. Reworked FocusIn/FocusOut events.
da1d68b2
JB
13761 (x_unfocus_screen): Check that screen is x_focus_screen.
13762 (x_set_mouse_position): Moved from xfns.c. Use new macro
615d0182 13763 XWarpPointer.
da1d68b2 13764 * xterm.h: New macro XWarpPointer.
615d0182 13765
da1d68b2 13766 * buffer.c: Replaced Fbuffer_flush_undo with
615d0182 13767 Fbuffer_disable_undo.
da1d68b2 13768 * process.c: Ditto.
615d0182 13769
dff28924 137701990-03-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13771
da1d68b2 13772 * xterm.c (XTupdate_end): Use parameter s rather than
615d0182 13773 updating_screen.
da1d68b2 13774 (XTread_socket): On EnterNotify, don't check s != focus_screen
615d0182
DL
13775 before selecting. On Focus In/Out don't set/reset mouse_screen.
13776
dff28924 137771990-03-04 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13778
88c71720 13779 * eval.c: If using X windows, include xterm.h.
da1d68b2 13780 (error): TOTALLY_UNBLOCK_INPUT if using X.
615d0182 13781
da1d68b2 13782 * xterm.h (BLOCK_INPUT, UNBLOCK_INPUT): No signal stuff, just inc
615d0182
DL
13783 and decrement x_input_blocked.
13784
da1d68b2
JB
13785 * xfns.c (adjust_scrollbars): Don't BLOCK_INPUT.
13786 (x_set_font): Check result of x_new_font. Call error if nonzero.
615d0182
DL
13787 (x_set_icon_type): Check result of x_*_icon, maybe call error.
13788
13789 * screen.c (Fdeiconify_screen): Use x_make_screen_visible rather
13790 than x_deiconify_screen. Return screen.
da1d68b2 13791 (Fmake_screen_visible): Don't raise it here. Return screen.
615d0182 13792
da1d68b2 13793 * xterm.c (XTwrite_glyfs): Don't show cursor if screen is
615d0182
DL
13794 global-minibuffer-screen.
13795 (x_new_selected_screen): Do dumpborder and check auto-raise here,
13796 rather than XEvent switch.
13797 (x_deiconify_screen): No longer exists.
13798 (x_do_pending_expose, x_clear_cursor):
13799 (x_invert_screen, scraplines, stufflines, x_bitmap_icon):
da1d68b2
JB
13800 (x_text_icon, x_new_font): Don't BLOCK_INPUT.
13801 (XTins_del_lines): BLOCK_INPUT here.
13802 (XTupdate_end): Don't turn on cursor if minibuffer-screen.
615d0182
DL
13803 (XTread_socket): On MotionNotify, just that screen is selected before
13804 processing.
da1d68b2 13805 (XTtopos): If updating_screen, just set x and y, don't flush.
615d0182
DL
13806 (x_bitmap_icon):
13807 (x_text_icon):
da1d68b2
JB
13808 (x_new_font): Return 1 if failed, don't call error.
13809 (x_make_screen_visible): Raise the screen as well.
615d0182 13810
dff28924 138111990-03-02 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13812
da1d68b2 13813 * screen.c (Frelease_focused_screen): Just check that screen is
615d0182
DL
13814 selected.
13815
dff28924 138161990-02-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13817
da1d68b2 13818 * screen.c (Fselect_screen_focused, Frelease_focused_screen): New
615d0182 13819 subrs.
da1d68b2 13820 * xterm.c (x_focus_on_screen, x_unfocus_screen): New procedures
615d0182
DL
13821 to implement focusing.
13822
dff28924 138231990-02-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13824
13825 * casefiddle.c: Doc fix.
13826
dff28924 138271990-02-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13828
da1d68b2 13829 * xterm.h: Redefined BLOCK_INPUT and UNBLOCK_INPUT to use sigblock
615d0182 13830 and sigsetmask if available.
da1d68b2 13831 * xterm.c: Declare BLOCK_INPUT_mask if have SIGIO and FIONREAD.
615d0182 13832
dff28924 138331990-02-27 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13834
13835 * minibuf.c (Fread_from_minibuffer): Initialize pos to 0.
13836
dff28924 138371990-02-25 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13838
13839 * keyboard.c (read_key_sequence): Handle mapped-screen event
13840 symbol by calling new hook Vmap_screen_hook.
13841
da1d68b2 13842 * xterm.c (x_make_screen_invisible): Use the new Xlib function
615d0182 13843 XWidthdrawWindow.
da1d68b2 13844 (x_iconify_screen): Use the new Xlib function XIconifyWindow.
615d0182
DL
13845 (XTread_socket): Return mapped-screen symbol to signal
13846 mapped-screen events.
13847
dff28924 138481990-02-23 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13849
da1d68b2 13850 * keyboard.c (command_loop_1): Check the character for width 1
615d0182
DL
13851 before doing direct_output_forward, as well as the cursor position
13852 on the screen.
13853
da1d68b2 13854 * xdisp.c (DoDsp): Use redisplay_windows rather than
615d0182
DL
13855 redisplay_all_windows, which was removed.
13856
dff28924 138571990-02-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13858
13859 * unexencap.c: New file, waiting for papers.
13860
dff28924 138611990-02-22 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13862
13863 * keyboard.c: Removed much debugging stuff.
13864 * xterm.c: Removed much debugging stuff.
13865 (x_error_handler): For X11, if caught BadAlloc error while
13866 converting selection (note new variable x_converting_selection),
13867 just set new variable x_selection_alloc_error.
13868
da1d68b2
JB
13869 * xfns.c: Massive changes for crufty selection processing details.
13870 New X atoms: Xatom_clipboard, Xatom_delete, Xatom_insert_selection,
615d0182
DL
13871 Xatom_insert_property, Xatom_pair.
13872
dff28924 138731990-02-21 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13874
13875 * keyboard.c (kbd_buffer_store_char): Check NULL objects.
13876
13877 * xterm.c (XTread_socket): Correctly advance bufp for all KeyPress
13878 events.
13879
dff28924 138801990-02-20 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13881
da1d68b2 13882 * keyboard.c (kbd_buffer_get_char): Use KBD_BUFFER_SIZE rather
615d0182
DL
13883 than sizeof kbd_buffer.
13884 (read_key_sequence): Upon redraw-display symbol, set
13885 screen_garbaged.
13886
13887 * xterm.c (XTread_socket): On EnterNotify events, make sure to
13888 return mouse event for both scrollbars and windows.
13889
dff28924 138901990-02-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13891
13892 * casefiddle.c (casify_region): Move the new statement.
13893
dff28924 138941990-02-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13895
13896 * casefiddle.c (casify_region): Return if beginning and end same.
13897
dff28924 138981990-02-18 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13899
13900 * keyboard.c (kbd_buffer_store_char): Use KBD_BUFFER_SIZE rather
13901 than sizeof kbd_buffer.
13902
13903 * fns.c (Fy_or_n_p): Only accept ints from get_char.
13904
dff28924 139051990-02-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13906
13907 * minibuf.c (Fread_from_minibuffer): New arg POSITION.
13908
13909 * unexsunos4.c: New file. Waiting for papers.
13910 * s-sunos4shr.h: New file.
13911
13912 * emacs.c (main) [RUN_TIME_REMAP]: Call run_time_remap.
13913
13914 * ymakefile (LD): Let config file override with LD_CMD.
13915
dff28924 139161990-02-14 Joseph Arceneaux (jla@albert.ai.mit.edu)
615d0182 13917
da1d68b2 13918 * keyboard.c (read_avail_input): Pass read_socket_hook
615d0182
DL
13919 KBD_BUFFER_SIZE rather than doing sizeof (buf).
13920
13921 * xterm.c (XTread_socket): Set event.type = MotionNotify when
13922 entering screen or scrollbar to fake motion event.
13923
dff28924 139241990-02-13 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 13925
da1d68b2 13926 * window.c (next_screen, prev_screen): Moved to screen.c.
615d0182
DL
13927 (Fnext_window): If mini non-nil, count the separate minibuffer
13928 screen.
da1d68b2 13929 * screen.c (Fnext_screen): New subr.
615d0182 13930
dff28924 139311990-02-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13932
13933 * xdisp.c (display_text_line, try_window, try_window_id, DoDsp):
13934 Don't display overlay arrow on more than one line in a window.
13935
dff28924 139361990-02-12 Joseph Arceneaux (jla@albert.ai.mit.edu)
615d0182
DL
13937
13938 * doprnt.c (doprnt): Expand size of tembuf to 512.
13939
dff28924 139401990-02-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
13941
13942 * minibuf.c (Fread_no_blanks_input): Make second arg optional.
13943
dff28924 139441990-02-09 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13945
13946 * keyboard.c (get_char): Remember to set obj when executing macro.
13947 (read_key_sequence): Handle the exited-scrollbar symbol.
13948 Compare obj, not read_key_sequence_cmd.
13949
13950 * xterm.c (x_make_screen_visible, x_deiconify_screen): Check
13951 window-manager variable.
13952 (x_make_screen_invisible, x_iconify_screen): Don't use new R4
13953 calls (they crash), do it ourselves.
13954 (XTread_socket): Return exited-scrollbar symbol when doing so.
13955
dff28924 139561990-02-08 Joseph Arceneaux (jla@albert.ai.mit.edu)
615d0182
DL
13957
13958 * xterm.c (construct_mouse_event): Rewritten to do mouse-motion
13959 compression. All mouse processing now done here.
13960 Also, just use nil and t for x-mouse-grabbed. Record buttons
13961 pressed in new variable x_mouse_grabbed. XGrabPointer on button
dff28924 13962 depression.
da1d68b2 13963 * xfns.c (Fx_horizontal_line): Use x_mouse_grabbed.
615d0182 13964
dff28924 139651990-02-07 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13966
13967 * xdisp.c (DoDsp): If only updating selected screen, but there is
13968 a minibuffer screen, update it as well.
13969
dff28924 139701990-02-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13971
13972 * xfns.c (Fx_pixel_width, Fx_pixel_height): New subrs.
88c71720 13973 * xterm.h: New components pixel_width, pixel_height, to x_display.
615d0182
DL
13974 * xterm.c (XTread_socket): On configure notify, set these components.
13975
13976 * window.c (Fset_window_configuration): Select the screen of the
13977 root window if it's not the selected_screen.
13978 * minibuf.c (read_minibuf): Remove all the screen selection stuff,
13979 now that this is integrated in Fset_window_configuration.
13980
dff28924 139811990-02-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
13982
13983 * screen.h: Declare Vglobal_minibuffer_screen.
13984 * xdisp.c (DoDsp): Set all_windows if using global-minibuffer-screen.
13985
dff28924 139861990-02-03 Joseph Arceneaux (jla@geech)
615d0182
DL
13987
13988 * window.c (Fset_window_configuration): Make sure to set
13989 window->next to nil for a minibuffer-only screen.
13990
13991 * screen.c (make_minibuffer_screen): Set mini_window->next nil.
13992
dff28924 139931990-02-01 Joseph Arceneaux (jla@albert.ai.mit.edu)
615d0182
DL
13994
13995 * screen.c (make_screen): Set wants_modeline elt to 1.
13996
13997 * window.c (Fset_window_configuration): Use screen->root_window
13998 as arg to delete_all_subwindows rather than minibuf_window->prev.
13999
14000 * minibuf.c (read_minibuf): Don't unwind with
14001 Frestore_screen_configuration. Save selected_screen if different
14002 than minibuf screen, and re-select it after reading minibuf.
14003 * screen.c: #if 0 Fscreen_configuration,
14004 Frestore_screen_configuration.
14005
dff28924 140061990-02-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14007
14008 * m-ibmps2-aix.h: Undef NEED_SIOCTL.
14009 (SIGN_EXTEND_CHAR): Cast to `signed char'.
14010
dff28924 140111990-01-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182 14012
da1d68b2 14013 * xfns.c (Fx_track_pointer): Rewrote this to loop while there are
615d0182
DL
14014 mouse events.
14015
14016 * xterm.c (XTread_socket): Return left-window-event symbol upon
14017 LeaveNotify.
14018 * keyboard.c (read_key_sequence): Handle this symbol.
14019
dff28924 140201990-01-27 Joseph Arceneaux (jla@churchy.ai.mit.edu)
615d0182
DL
14021
14022 * xterm.c (x_display_cursor): Use dumpglyfs with SPACEGLYF for
14023 cursor, as `XFillRectaogle's kill HP-BSD server.
14024
14025 * xterm.h: Added nontext_cursor, modeline_cursor to x_display
14026 structure.
14027 * xfns.c (x_set_mouse_color, Fx_track_pointer): Changes to use
14028 nontext_cursor.
14029
dff28924 140301990-01-25 Joseph Arceneaux (jla@albert.ai.mit.edu)
615d0182
DL
14031
14032 * xterm.h: Changed the face structure for X11 to handle GCs and
14033 pixmaps.
14034
14035 * xterm.c (XTread_socket): Return a motion event when mouse enters
14036 scrollbar or window.
14037 (x_make_screen_invisible): Use the new X11R4 function XWithdrawWindow.
14038 (x_iconify_screen): Use the X11R4 function XIconfifyWindow.
14039 (dumpglyfs): Use the new face structure.
14040
14041 * xfns.c (install_vertical_scrollbar, install_horizontal_scrollbar):
14042 Accept EnterNotify events. Use XMapSubwindows rather than mapping
14043 each one.
14044 (Fx_set_face_font): New subr for X11 to set face GC.
14045
dff28924 140461990-01-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14047
14048 * dispnew.c (direct_output_for_insert): Give up if buf in 2 windows.
14049
14050 * keyboard.c (command_loop_1):
14051 Dumb bugs disabled special fast display for character motion.
14052
14053 * xdisp.c (DoDsp): For cursor motion within line,
14054 hpos result from compute_motion is relative to window.
14055
dff28924 140561990-01-24 Richard Stallman (rms@albert.ai.mit.edu)
615d0182
DL
14057
14058 * eval.c (Fmacroexpand): Handle explicit macros ((macro ...) ...).
14059
dff28924 140601990-01-18 Joseph Arceneaux (jla@spiff)
615d0182
DL
14061
14062 * undo.c (Fundo_more): Fixed typo.
14063
dff28924 140641990-01-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14065
14066 * xdisp.c (display_text_line): When checking HPOS for continuation
14067 line, compensate for w->left.
14068
dff28924 140691990-01-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14070
14071 * dispnew.c [no FIONREAD]: Undefine SIGIO.
14072
14073 * buffer.c (SetBfp): Use XTYPE to test for no selected window yet.
14074
14075 * editfns.c, dispnew.c, fileio.c, process.c, sysdep.c, xterm.c:
14076 Uniformly let NEED_TIME_H control use of time.h instead of sys/time.h.
14077
14078 * xterm.h (TOTALLY_UNBLOCK_INPUT, UNBLOCK_INPUT): Don't use
14079 SIGIO if no FIONREAD.
14080
dff28924 140811990-01-15 Joseph Arceneaux (jla@spiff)
615d0182
DL
14082
14083 * xfns.c (x_set_mouse_color): Set non-text pointer shape with new
14084 variable Vx_nontext_pointer_shape.
14085
14086 * keyboard.c: More checks for evil bug which trashes kbd_*_ptr.
14087
14088 * m/hp300bsd.h: Try using BSD load average stuff.
14089
dff28924 140901990-01-11 Joseph Arceneaux (jla@spiff)
615d0182
DL
14091
14092 * xfns.c (x_draw_pixmap): New routine.
14093
dff28924 140941990-01-10 Jim Kingdon (kingdon@pogo)
615d0182
DL
14095
14096 * m/hp300bsd.h: New file
14097
dff28924 140981990-01-08 Joseph Arceneaux (jla@spiff)
615d0182
DL
14099
14100 * xfns.c (Fx_window_id): New subr.
14101
14102 * screen.c (make_screen): Set wants_modeline elt to mini_p.
14103 If mini_p 0, then set root_window->next to nil.
14104
dff28924 141051990-01-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14106
14107 * editfns.c (Fchar_after): Set N after coercing marker.
14108
dff28924 141091990-01-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14110
14111 * buffer.c (Fkill_all_local_variables): Force mode line update.
14112
dff28924 141131990-01-05 Joseph Arceneaux (jla@spiff)
615d0182
DL
14114
14115 * insdel.c: Declare Vfirst_change_function.
14116
14117 * keyboard.c (read_key_sequence): Function keys are now lisp symbols.
14118 (kbd_buffer_store_char): Abort if store pointer past
14119 buffer. Temproarry; This shouldn't be able to happen.
da1d68b2 14120 (read_key_sequence): #ifdef HAVE_X_WINDOWS code
615d0182 14121 which handles complex objects.
dff28924 14122 (command_loop_1): Check not termcap screen before
615d0182
DL
14123 processing non-char input.
14124 (kbd_{store,fetch}_char): More debugging checks.
14125
14126 * screen.c (make_screen): Set root_window height to 9 if mini_p.
14127 (make_minibuffer_screen): Set the mini window's next,
14128 prev, and screen elements.
14129
14130 * xterm.c (x_func_key_to_sym): New function, uses new variable
14131 func_key_syms.
14132 (XTread_socket): Use this in KeyPress event for function keys.
14133 (XTflash): Draw solid rectangle in middle of screen.
14134 (x_set_offset): Set the size hints as well when doing
14135 this.
14136 (XTflash): Just dumpglyfs instead of redrawing the
14137 screen after flashing the rectangle.
14138
da1d68b2 14139 * lread.c (syms_of_lread): defsubr Fread_event.
615d0182 14140
dff28924 141411990-01-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 14142
dff28924 14143 * buffer.h, buffer.c (Vfirst_change_function): New Lisp variable.
615d0182
DL
14144 * insdel.c (signal_before_change): Call that function.
14145
14146 * keyboard.c (cmd_error): Don't crash if TAIL is nil.
14147
dff28924 141481989-12-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14149
14150 * minibuf.c: Doc fixes.
14151
dff28924 141521989-12-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14153
14154 * process.c (create_process): Unhold SIGCHLD in the child.
14155
dff28924 141561989-12-27 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14157
14158 * process.c (create_process): Treat HPUX like BSD for sigsetmask.
14159
dff28924 141601989-12-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14161
14162 * fns.c (Fmapconcat): Gcpro SEP around mapcar1.
14163
dff28924 141641989-12-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14165
14166 * dispnew.c (get_display_line): Don't touch X data if not using X.
14167
14168 * syntax.c (Fscan_sexps): Fix fatal documentation typo.
14169
14170 * lread.c: Include commands.h.
14171
14172 * xterm.c (construct_mouse_event): Delete unreached return at end.
14173 (x_wm_set_size_hint): #if 0 some broken code.
14174
14175 * cmds.c (SelfInsert): Set HAIRY if have before or after change hooks.
14176 * editfns.c (Fsubst_char_in_region, Ftranslate_region):
14177 Call signal_after_change for chars changed.
14178 * undo.c (Fundo_more): When undoing Uchange, do signal_after_change.
14179 * casefiddle.c (casify_region): Do modify_region before the change,
14180 signal_after_change afterward.
14181
14182 * insdel.c (prepare_to_modify_buffer): Call signal_before_change.
14183 (del_range, InsCStr): Call signal_after_change.
14184 (signal_after_change, signal_before_change): New functions.
14185
dff28924 141861989-12-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14187
14188 * dispnew.c (init_display) [VMS]: Downcase terminal type.
14189
dff28924 141901989-12-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14191
14192 * sysdep.c: Use NEED_SIOCTL to control use of sioctl.h.
14193 * m/m-mips.h, m/m-iris4d.h: Define that.
14194
14195 * m/m-ibmps2-aix.h (NEED_SIOCTL, HAVE_UNION_WAIT, HAVE_PTYS): Define.
14196 (HAVE_SYSVIPC, HAVE_SOCKETS, X_DEFAULT_FONT): Define.
14197 (sigsetmask): #undef this.
14198
5691a3f8 141991989-12-15 Joseph Arceneaux (jla@spiff)
615d0182
DL
14200
14201 * lread.c (Fread_char): Catch error if read non-char.
14202 (Fread_event): New subr. Return any input object.
14203
dff28924 142041989-12-14 Joseph Arceneaux (jla@spiff)
615d0182
DL
14205
14206 * xfns.c: New variable Vx_no_window_manager.
da1d68b2 14207 (Fx_track_pointer): If bufp < 0, abort.
615d0182 14208
da1d68b2 14209 * xterm.c (XTread_socket): When leaving window, set x_mouse_x and
615d0182
DL
14210 x_mouse_y to -1.
14211
dff28924 142121989-12-13 Joseph Arceneaux (jla@spiff)
615d0182
DL
14213
14214 * xterm.c (XTread_socket): On ConfigureNotify events, return
14215 "redraw-screen" symbol.
14216 (dumpborder): Only do border stuff if x-no-window-manager non nil.
14217 Also check if there is a tracking rectangle.
14218 (XTupdate_begin): If there is a mouse tracking rectangle, erase
14219 it.
14220 * keyboard.c (read_key_sequence): Return -2 for symbols.
14221 (command_loop_1): DoDsp when 'redraw-screen arrives as input.
14222 For mouse events, call Fexecute_mouse_event with
14223 read_key_sequence_cmd instead of Vmouse_event.
14224
dff28924 142251989-12-08 Joseph Arceneaux (jla@spiff)
615d0182 14226
da1d68b2 14227 * process.c (create_process): For not USG, properly set the
615d0182
DL
14228 process group.
14229
dff28924 142301989-12-07 Joseph Arceneaux (jla@spiff)
615d0182 14231
da1d68b2 14232 * term.c (topos): Under X Windows, abort if topos_hook not
615d0182
DL
14233 correct. Temporary.
14234
14235 * xfns.c (Fx_horizontal_line): New subr.
14236
dff28924 142371989-12-05 Joseph Arceneaux (jla@spiff)
615d0182
DL
14238
14239 * keyboard.c (Fexecute_mouse_event): Don't set Vmouse_window here
14240 for X11.
14241
14242 * xterm.c (construct_mouse_event): Vx_mouse_grabbed now indicates
14243 which keys are depressed.
14244 (construct_mouse_event): Set Vmouse_window here.
14245
dff28924 142461989-12-04 Joseph Arceneaux (jla@spiff)
615d0182
DL
14247
14248 * screen.c (coordinates_in_window): New function.
da1d68b2 14249 (Fcoordinates_in_window_p): Rewritten to use above.
615d0182
DL
14250
14251 * dispextern.h: New element bufp for display_line structure when
14252 using X windows.
14253 * xdisp.c (redisplay_window): Set this to the position in the
14254 buffer of the first char in this display line.
14255 * dispnew.c (get_display_line): Set this to -1 here.
14256
dff28924 142571989-12-03 Joseph Arceneaux (jla@spiff)
615d0182 14258
88c71720 14259 * alloc.c: Upped NSTATICS from 200 to 256.
615d0182 14260
da1d68b2 14261 * xterm.c (XTread_socket): Report MotionNotify events only if
615d0182
DL
14262 mouse has changed character position. Call x_read_mouse_position.
14263 Set Vmouse_event here.
14264 * xfns.c (x_read_mouse_position): Set new global variables
14265 x_mouse_x and x_mouse_y.
14266
da1d68b2 14267 * keyboard.c: Vignore_mouse_events: New variable.
615d0182
DL
14268
14269 * syntax.c (Fscan_sexps): Doc change.
14270
14271 * lread.c (Fread_char): Return only chars. If new variable
14272 Vignore_mouse_events non nil, execute any mouse events which
14273 appear.
14274
dff28924 142751989-12-01 Joseph Arceneaux (jla@spiff)
615d0182
DL
14276
14277 * xfns.c (Fx_track_pointer): Draw half-sized rectangles for '\n'.
14278 (x_rectangle): Draw half-size if negative argument.
14279
da1d68b2 14280 * xterm.c (XTread_socket): Abort if garbage collecting when doing
615d0182
DL
14281 mouse events.
14282
14283 * ymakefile: #define FLOATSUP if LISP_FLOAT_TYPE defined.
14284
14285 * emacs.c (main): If BSD, set pgrp to pid.
14286
dff28924 142871989-11-30 Joseph Arceneaux (jla@spiff)
615d0182
DL
14288
14289 * callint.c (Fcall_interactively): For case 'e', set varies[i] to
14290 avoid entering in the command history.
14291
14292 * xterm.c: Removed the function x_indicate_pointer_char.
14293 (XTread_socket): When leaving window, erase mouse tracking box if
14294 it exists.
14295 * xfns.c (Fx_track_pointer): New function, does what
14296 x_indicate_pointer_char used to.
14297 (x_read_mouse_position): Subtract internal_border_width.
14298
14299 * screen.c: No rubber-banding function for X11.
14300
14301 * window.c (Fmove_to_window_line): Document string fix.
14302
dff28924 143031989-11-29 Joseph Arceneaux (jla@spiff)
615d0182 14304
da1d68b2 14305 * lread.c (Fread_char): Return a Lisp_Object (directly from
615d0182
DL
14306 get_char).
14307
14308 * keyboard.c:
14309 * xterm.c: Function keys now arrive as cons cells.
14310
dff28924 143111989-11-27 Joseph Arceneaux (jla@spiff)
615d0182
DL
14312
14313 * keyboard.c (read_key_sequence): Handle Lisp_Symbols on input
14314 (function keys). Also, handle these and mouse events with
14315 prefixes (by ignoring the prefixes for now).
14316
88c71720 14317 * xfns.c: New variable Vx_mouse_grabbed.
615d0182
DL
14318 * xterm.c (construct_mouse_event): Use it.
14319 (XTread_socket): Return Lisp_Symbol for function key.
14320
14321 * buffer.c (reset_buffer_local_variables): Set function_key_map to
14322 Qnil.
14323
dff28924 143241989-11-24 Joseph Arceneaux (jla@spiff)
615d0182
DL
14325
14326 * buffer.h: Per-buffer function key maps.
14327
14328 * keyboard.c (read_avail_input): Convert chars to Lisp_Objects in
14329 case of stdin.
14330
dff28924 143311989-11-22 Joseph Arceneaux (jla@spiff)
615d0182
DL
14332
14333 * keyboard.c (read_key_sequence): Check type of object returned
14334 from get_char. Handle mouse events (set Vmouse_event) and
14335 function keys.
14336 (get_char_menu_prompt): Return a Lisp_Object.
14337 (Fexecute_mouse_event): No longer set Vmouse_event.
14338 Vmouse_window set here.
14339
14340 * xterm.c (XTread_socket): KeyPress events now return
14341 Lisp_Objects, as do ButtonPress events.
14342 (construct_mouse_event): New function.
14343 (encode_mouse_button): New function.
14344
dff28924 143451989-11-21 Joseph Arceneaux (jla@spiff)
615d0182
DL
14346
14347 * keyboard.c (kbd_buffer_store_char, kbd_buffer_get_char):
14348 Store and get Lisp_Objects.
14349 (get_char): Use those Lisp_Objects.
14350
14351 * fileio.c (Fread_filename_internal): If exactly complete, but
14352 string was modified, return string.
14353
14354 * minibuf.c (temp_minibuf_message): Pass correct arguments to Fsit_for.
14355
dff28924 143561989-11-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14357
14358 * s-386-ix.h: New file.
14359
dff28924 143601989-11-17 Joseph Arceneaux (jla@spiff)
615d0182
DL
14361
14362 * xterm.c (dump_rectangle): Flush the X queue.
14363
dff28924 143641989-11-16 Joseph Arceneaux (jla@spiff)
615d0182
DL
14365
14366 * xmenu.c (xmenu_show): Use ButtonReleaseMask instead of
14367 ButtonRelease.
14368
14369 * fileio.c (Fmake_directory): New subr.
14370
dff28924 143711989-11-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14372
14373 * config.h-dist (C_SWITCH_SITE, LD_SWITCH_SITE): Mention these.
14374 (HAVE_X11): Renamed from X11 and defined by default.
14375 It shoukld have no effect when not using X.
14376
dff28924 143771989-11-14 Joseph Arceneaux (jla@spiff)
615d0182 14378
da1d68b2 14379 * xfns.c (Fx_get_selection, x_selection_arrival): Use &event
615d0182
DL
14380 instead of event.
14381 (x_selection_arrival): For incremental selections, loop on
14382 XGetWindowProperty if one is not enough.
14383
dff28924 143841989-11-13 Joseph Arceneaux (jla@spiff)
615d0182
DL
14385
14386 * ymakefile: Just link if ../oldXMenu/libXMenu11.a already exists.
14387
dff28924 143881989-11-09 Joseph Arceneaux (jla@spiff)
615d0182
DL
14389
14390 * m/m-sparc.h: If __GNUC__ use "-O", else "-O2"
14391
dff28924 143921989-11-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14393
14394 * search.c (Fstore_match_data): A marker pointing nowhere, treat as 0.
14395
dff28924 143961989-11-08 Joseph Arceneaux (jla@spiff)
615d0182 14397
da1d68b2 14398 * search.c (Fmatch_data): Fixed typo.
615d0182
DL
14399
14400 * insdel.c (make_gap): Use BUFFER_REALLOC instead of realloc.
14401 * buffer.c (Fget_buffer_create): Use new define BUFFER_ALLOC in
14402 place of malloc, and set b->data.
14403 (Fkill_buffer): Use BUFFER_FREE on b->data, rather than malloc on
14404 b->p1 + 1.
14405 * buffer.h: New element data in buffer_text structure.
14406 New define for it, bf_data.
14407
dff28924 144081989-11-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14409
14410 * marker.c (Fset_marker): Don't force POS into visible range.
14411 * window.c (set_marker_restricted): New function does what
14412 Fset_marker did. All calls in this file now use the new function.
14413
dff28924 144141989-11-07 Joseph Arceneaux (jla@spiff)
615d0182
DL
14415
14416 * buffer.h: Defines for allocating buffer variables.
14417
14418 * ralloc.c: Completely rewritten.
14419
14420 * alloc.c (xmalloc, xrealloc): Return 0 immediately for requests
14421 of 0 size.
14422
dff28924 144231989-11-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14424
14425 * search.c (Flooking_at, Fstring_match, search_buffer):
14426 Record in search_regs_from_string whether matching against a string.
14427 (Fmatch_data): Save data as integers if from a string.
14428
14429 * s-umips.h: Now include either s-usg5-2-2.h or s-bsd4-3.h
14430 and then override as needed.
14431 * m-mips.h: System dependence deleted.
14432 LD_SWITCH_MACHINE remains w/ options needed on all systems.
14433 * m-pmax.h: A little of that (LIBS_DEBUG) moved here.
14434 No need to undef LIBS_MACHINE.
14435
14436 * fns.c (Fload_average): FIXUP_KERNEL_SYMBOL_ADDR is now general hook.
14437 * s-umips.h: Define it.
14438
14439 * sysdep.c: Handle BROKEN_FIONREAD.
14440
dff28924 144411989-11-03 Joseph Arceneaux (jla@spiff)
615d0182
DL
14442
14443 * config.h-dist: Mention LISP_FLOAT_TYPE, GNU_MALLOC, and REL_ALLOC.
14444
14445 * s/s-umips.h: New file.
14446
dff28924 144471989-11-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14448
14449 * process.c (Fopen_network_stream): Handle EINTR in connect.
14450 Describe errno in err msg if connect fails.
14451
dff28924 144521989-11-02 Joseph Arceneaux (jla@spiff)
615d0182
DL
14453
14454 * vm-limit.c: New file.
14455 * ralloc.c: New file.
14456 * ymakefile: Take vm-limit.o into account.
14457
dff28924 144581989-11-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14459
14460 * alloc.c (staticvec): Make this a simple vector of pointers
14461 rather than an alias for a vector of chars.
14462
dff28924 144631989-11-01 Joseph Arceneaux (jla@spiff)
615d0182
DL
14464
14465 * window.c: Moved some functions (save_window_save,
14466 replace_window, unshow_buffer) around.
14467 * search.c: Moved function place.
14468 * lread.c: Moved function read_escape.
14469 * unexec.c: Declarations for make_hdr, copy_text_and_data,
14470 copy_sym. Declare mark_x as static void.
da1d68b2 14471 * dispextern.h: Removed declaration of new_display_line.
615d0182
DL
14472
14473 * emacs.c: Do malloc_init if GNU_MALLOC.
da1d68b2 14474 * gmalloc.c (malloc_init): New function.
615d0182 14475
da1d68b2
JB
14476 * xfns.c (x_rectangle, Fx_draw_rectangle, Fx_erase_rectangle)
14477 (outline_region, Fx_countour_region, Fx_uncontour_region): New
615d0182
DL
14478 subroutines for drawing rectangles and things.
14479 (Fx_point_coordinates): New subr.
14480
dff28924 144811989-10-31 Joseph Arceneaux (jla@spiff)
615d0182 14482
da1d68b2 14483 * All .c and .h files: New copyright header.
615d0182 14484
dff28924 144851989-10-30 Joseph Arceneaux (jla@spiff)
615d0182
DL
14486
14487 * gmalloc.c: New GNU malloc.
14488
14489 * emacs.c (main, Fdump_emacs): No malloc init if GNU_MALLOC.
14490
14491 * ymakefile: Check if GNU_MALLOC defined.
14492
dff28924 144931989-10-27 Joseph Arceneaux (jla@spiff)
615d0182
DL
14494
14495 * xfns.c (Fx_pointer_char): New subr.
14496 * xterm.c (x_indicate_pointer): New procedure.
14497
14498 * alloc.c (Fmake_vector_from_list, make_vector_from_list): New subrs.
14499
dff28924 145001989-10-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14501
14502 * xterm.c (x_term_init):
14503 Negate arg to fcntl F_SETOWN if F_SETOWN_SOCK_NEG.
14504 * keyboard.c (Fset_input_mode) [NO_SOCK_SIGIO]:
14505 No interrupt input if using a socket.
14506 * m-sequent.h: Define NO_SOCK_SIGIO, F_SETOWN_SOCK_NEG, MAIL_USE_FLOCK.
14507
dff28924 145081989-10-26 Joseph Arceneaux (jla@spiff)
615d0182
DL
14509
14510 * xterm.c (x_handle_error_gracefully): Make sure to completely
14511 release input before returning, using:
14512 * xterm.h New macro TOTALLY_UNBLOCK_INPUT.
14513
14514 * xmenu.c (xmenu_quit): No longer use this error_handler; use
14515 default one.
14516
dff28924 145171989-10-25 Joseph Arceneaux (jla@spiff)
615d0182
DL
14518
14519 * config.h-dist: Comment fix.
14520
dff28924 145211989-10-24 Joseph Arceneaux (jla@spiff)
615d0182
DL
14522
14523 * xfns.c (Fx_draw_lines, translate_vectors): New functions.
14524
dff28924 145251989-10-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14526
14527 * search.c (search_buffer): Always find null string.
14528
14529 * window.c (window_loop): For UNSHOW_BUFFER, don't Fset_buffer
14530 unless window is the selected one.
14531
dff28924 145321989-10-20 Joseph Arceneaux (jla@spiff)
615d0182
DL
14533
14534 * xdisp.c (display_minibuf_message): Choose minibuf screen first
14535 of all. Return if not visible.
14536
dff28924 145371989-10-19 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
14538
14539 * xterm.c (x_handle_error_gracefully): New procedure to handle
14540 non-fatal X errors.
14541 (x_error_handler): Use it.
14542 (acceptable_x_error_p): New macro.
14543
14544 * xfns.c (Fx_own_selection): Use second parameter SCREEN.
14545
da1d68b2 14546 * xdisp.c (message, message1): No longer displays messages
dff28924 14547 when using X but not yet mapped.
615d0182 14548
dff28924 145491989-10-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14550
14551 * m-pyramid.h (NO_ARG_ARRAY): Define if using GCC.
14552
dff28924 145531989-10-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14554
14555 * vmsfns.c (process_command_input): Call clear_waiting_for_input.
14556
dff28924 145571989-10-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14558
14559 * syntax.c (scan_words): If words_include_escapes not 0,
14560 treat Sescape and Scharquote like Sword.
14561 (syms_of_syntax): Define Lisp variable.
14562
14563 * process.c (wait_reading_process_input): Get rid of kbd_count.
14564 Use detect_input_pending.
14565 * sysdep.c (select, read_input_waiting): Likewise.
14566 (read_input_waiting): Don't read directly into kbd_buffer;
14567 use kbd_buffer_store_char.
14568 * keyboard.c: Don't define kbd_count.
14569
14570 * keyboard.c (read_key_sequence): Reject the prefix char generated
14571 for a Meta char, if it finds a non-prefix definition.
14572
dff28924 145731989-10-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14574
14575 * process.c (wait_reading_process_input): READ_KBD==2 means
14576 wait until have mouse input.
14577 * xfns.c (Fx_get_mouse_event): Use that.
14578 * xterm.c (mouse_event_pending_p): New subroutine.
14579
dff28924 145801989-10-13 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
14581
14582 * xfns.c (x_selection_arrival):
14583 (x_send_incremental):
14584 (x_answer_selection_request): New procedures for incremental
14585 selection transfer.
14586
dff28924 145871989-10-12 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
14588
14589 * lread.c (complete_filename_p): New function which replaces
14590 absolute_filename_p. This one doesn't consider "~" valid.
14591
dff28924 145921989-10-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14593
14594 * buffer.c: Comment fix.
14595
dff28924 145961989-10-11 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 14597
da1d68b2 14598 * xfns.c (Fx_open_connection) New X atoms Xatom_incremental and
615d0182
DL
14599 Xatom_multiple.
14600
14601 * xterm.h: New macros MAX_SELECTION and SELECTION_LENGTH.
14602
da1d68b2 14603 * process.c (child_sig): Check pid <= 0 in case WNOHANG not defined.
615d0182 14604
dff28924 146051989-10-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14606
14607 * termcap.c (tgetent, gobble_line): Always store null at end of bfr.
14608 Allocate one extra byte at end to ensure space.
14609 Clean up order of arithmetic when updating ptrs into buffer
14610 after xrealloc.
14611
dff28924 146121989-10-10 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
14613
14614 * xfns.c (Fx_open_connection): Make all X Atoms here.
14615
da1d68b2 14616 * xterm.c (x_iconify_screen): Cleaned up this code.
615d0182
DL
14617 (x_term_init): Removed warpmouseondeiconify stuff.
14618
dff28924 146191989-10-09 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
14620
14621 * xdisp.c (DoDsp): Make sure to call unhold_window_change after
dff28924 14622 before all returns.
615d0182
DL
14623
14624 * minibuf.c (read_minibuf): Changed set_mouse_position to
14625 Fset_mouse_position.
14626
14627 * xterm.c (XTread_socket): dumprectangle (whole screen) instead of
14628 DoDsp in ConfigureNotify event.
14629 (x_wm_set_size_hint): New calculations for size_hints.
14630
14631 * screen.c (Fset_mouse_position): No more function
14632 set_mouse_position; use x_set_mouse_position directly.
14633
14634 * xfns.c (x_set_cursor_color): Really decode Vx_cusor_fore_pixel
14635 if set. Define new cursor before freeing old. This may eliminate
14636 a server bug on the Sony.
14637 Also check for invisible cursors.
14638 (x_set_mouse_color): Check for invisible pointers.
14639 (x_resize_scrollbars): BLOCK_INPUT whilst doing operations.
14640 (adjust_scrollbars): Likewise.
14641
dff28924 146421989-10-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14643
14644 * m/m-hp9000s800.h (XUNMARK): Delete definition.
14645 (S_IFLNK): Do not undef it.
14646
dff28924 146471989-10-03 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
14648
14649 * dispnew.c (get_display_line): If screen not visible, abort.
14650
dff28924 146511989-10-02 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
14652
14653 * xterm.c (x_make_screen_visible): Set s->visible, unset
14654 s->iconified for HAVE_X11.
14655
dff28924 146561989-09-29 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
14657
14658 * xterm.c (XTread_socket): Check screen s before proceeding for
14659 MapNotify event.
14660
14661 * xterm.c: No longer sets the variable mouse_down_timestamp.
da1d68b2
JB
14662 * xfns.c (Fx_get_mouse_event): mouse_timestamp (formerly
14663 mouse_down_timestamp) set here. Also, mask out upper 9
14664 bits before doing XSET.
615d0182 14665
dff28924 146661989-09-28 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
14667
14668 * xfns.c (Fx_geometry): Kludge for the case of position `-0'.
14669 (Fx_get_mouse_event): Also return the time stamp as last list elt.
14670 (Fx_color_display_p):
14671 (Fx_defined_color):
14672 (x_decode_color):
14673 (defined_color): Eliminate screen argument.
14674 (Fx_create_screen): No more ColorMap component to display.x.
14675 * xterm.h: Likewise.
14676
dff28924 146771989-09-27 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 14678
da1d68b2
JB
14679 * xfns.c (Fx_own_selection, Fx_get_selection, x_disown_selection):
14680 New funcs, which use new variables Vx_selection_value,
14681 x_begin_selection_own, mouse_down_timestamp, requestor_time,
14682 requestor_window, property_name, and x_begin_selection_own.
615d0182
DL
14683
14684 * xterm.c (XTread_socket): Only do stuff if s for FocusOut under X11.
14685 SelectionClear:
14686 SelectionRequest:
da1d68b2 14687 SelectionNotify: New events to handle the selection inter-client
615d0182
DL
14688 communication mechanism.
14689 ButtonPress: Set mouse_down_timestamp.
14690
dff28924 146911989-09-26 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
14692
14693 * xfns.c: New variable Vx_cursor_fore_pixel.
14694
dff28924 146951989-09-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14696
14697 * lread.c (openp): Don't ! the result of `access'.
14698
dff28924 146991989-09-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14700
14701 * fileio.c (Fread_file_name_internal): Try to work properly
14702 if dirs are specified using environment vars. Preserve use of vars.
14703
dff28924 147041989-09-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14705
14706 * fileio.c: Comment fix.
14707
dff28924 147081989-09-18 Joseph Arceneaux (jla@spiff)
615d0182
DL
14709
14710 * xfns.c (Fx_get_cut_buffer): XFree the data returned by
14711 XFetchBytes.
14712
dff28924 147131989-09-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14714
14715 * fileio.c (Fwrite_region): Reinstall #if 0 around fstat.
14716
dff28924 147171989-09-12 Joseph Arceneaux (jla@spiff)
615d0182
DL
14718
14719 * xfns.c (defined_color): New function to test if a color is
14720 currently defined.
14721 (x_decode_color): Use defined_color.
14722 (Fx_defined_color): New subr.
14723 (select_visual): Select the appropriate X11 Visual.
14724 (Fx_open_connection): Use select_visual. screen_visual now
14725 global and used when making emacs windows.
14726 (Fx_color_display_p): New subr.
14727
dff28924 147281989-09-11 Joseph Arceneaux (jla@spiff)
615d0182 14729
da1d68b2 14730 * fileio.c (Fwrite_region): Fixed typo.
615d0182 14731
da1d68b2 14732 * keyboard.c (Fdiscard_input): Fixed typo.
615d0182 14733
da1d68b2 14734 * window.c (Fnext_window): Fixed typos.
615d0182
DL
14735
14736 * alloc.c (xmalloc, xrealloc): hold_window_changes whilst doing
14737 the associated operations.
14738
dff28924
SS
14739 * dispnew.c (init_display):
14740 (Fsleep_for, Fsit_for):
14741 * process.c (Faccept_process_output):
615d0182 14742 * keyboard.c ({clear,set}_waiting_for_input):
dff28924 14743 (quit_throw_to_get_char, get_char):
615d0182
DL
14744 * xdisp.c (DoDsp, message, message1): Undid changes of Aug. 23
14745 (see below); accept window changes most of the time.
14746
dff28924 147471989-09-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14748
14749 * keyboard.c: Eliminate kbd_count, and use two pointers,
14750 kbd_fetch_ptr and kbd_store_ptr. Assume buffer is empty when
14751 they are equal. This should eliminate timing error.
14752 (kbd_buffer_store_char): Update kbd_store_ptr when storing.
14753 Don't ever fill the entire buffer.
14754 (kbd_buffer_get_char): Update kbd_fetch_ptr when fetching.
14755 (stuff_buffered_input): Likewise.
14756 (get_input_pending): Compare the two pointers.
14757
14758 * fileio.c (Fwrite_region): Reenable using fstat rather than stat
14759 to get the modtime of the file just written, except on VMS and APOLLO.
14760
dff28924 147611989-09-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14762
14763 * emacs.c, doc.c, filelock.c: Move Emacs header includes after
14764 system header includes, and #undef NULL in between.
14765
dff28924 147661989-08-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14767
14768 * process.c [SYSV_PTYS]: If `titan', include some other files.
14769
dff28924 147701989-08-29 Joseph Arceneaux (jla@spiff)
615d0182
DL
14771
14772 * fileio.c: read-file-name replaced with new version, formerly
14773 called new-read-file-name.
14774
dff28924 147751989-08-26 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
615d0182
DL
14776
14777 * window.c (Fscroll_other_window): Use save-excursion (in effect)
14778 to save and restore current buffer and point.
14779 (window_scroll): If selected window's buffer isn't current,
14780 make it current, using save-excursion to go back.
14781
dff28924 147821989-08-24 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
615d0182 14783
88c71720 14784 Use two variables to convey reason for synch process death,
615d0182
DL
14785 to avoid consing in signal handler.
14786 They are synch_process_death and synch_process_retcode.
14787 * callproc.c (Fcall_process): Use both variables.
14788 * process.c (child_sig): Set both variables.
14789
dff28924 147901989-08-24 Joseph Arceneaux (jla@spiff)
615d0182
DL
14791
14792 * xterm.c (x_wm_set_size_hint): Use new ICCCM values for size_hints.
14793
dff28924 147941989-08-24 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
615d0182
DL
14795
14796 * buffer.c: Doc fix.
14797
dff28924 147981989-08-24 Joseph Arceneaux (jla@spiff)
615d0182
DL
14799
14800 * xfns.c (Fx_create_screen): X11 part. Set height and width to 0
14801 before calling change_screen_size.
14802
14803 * buffer.c (kill-all-local-variables): Changed doc string.
14804
dff28924 148051989-08-23 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
615d0182
DL
14806
14807 * dispnew.c (init_display): Call hold_window_change.
14808 (Fsleep_for, Fsit_for): Temporarily unhold, while waiting.
14809 * process.c (Faccept_process_output): Likewise.
14810 * keyboard.c ({clear,set}_waiting_for_input): Temporarily unhold.
14811 (quit_throw_to_get_char, get_char): Rehold.
14812 * xdisp.c (DoDsp, message, message1):
14813 Unhold and rehold momentarily before any real work.
14814
14815 * Makefile (CPP): Use $(CC).
14816
dff28924 148171989-08-22 Joseph Arceneaux (jla@spiff)
615d0182
DL
14818
14819 * xfns.c (x_set_mouse_color): Use new variables Vx_pointer_mask,
14820 Vx_pointer_shape.
14821
dff28924 148221989-08-21 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
615d0182
DL
14823
14824 * alloc.c (malloc_warning): Do nothing if ignore_warnings.
14825 (init_alloc_once): Set ignore_warnings while initializing allocation.
14826
14827 * buffer.c: Doc fix.
14828
dff28924 148291989-08-21 Joseph Arceneaux (jla@spiff)
615d0182
DL
14830
14831 * xterm.c (x_calc_absolute_position): New function to calculate
14832 positive screen position.
14833 (x_set_position): Use it.
14834 (x_reset_cursor): No longer exists.
14835
14836 * xfns.c (x_set_mouse_color): Reset the cursor even if there's no
14837 X window.
14838 (x_figure_window_size): Use x_calc_absolute_position.
14839 (x_set_mouse_color): Rewrote this function. Always set cursor and
14840 its color. If the window exists, then attach the cursor to it.
14841 No longer uses x_reset_cursor.
14842 (x_create_window):
14843 (x_set_background):
14844 (x_set_foreground): Use x_set_mouse_color instead of x_reset_cursor.
14845
dff28924 148461989-08-18 Richard Stallman (rms@hobbes.ai.mit.edu)
615d0182
DL
14847
14848 * vmsfns.c: Define PRV$V_... syms if prvdef.h does not.
14849
dff28924 148501989-08-18 Joseph Arceneaux (jla@spiff)
615d0182
DL
14851
14852 * xfns.c (Fx_geometry): New subr.
14853 (x_figure_window_size): Don't worry about "geometry" here anymore;
14854 now done in x-win.el.
14855 (x_icon): Look in parms for iconic-startup rather than in variable.
14856
dff28924 148571989-08-16 Joseph Arceneaux (jla@spiff)
615d0182
DL
14858
14859 * xfns.c (x_set_*_scrollbar): Don't destroy a scrollbar if it
14860 doesn't exist. Also set scrollbar size only if actually creating
14861 one.
14862 (x_set_name): Don't do anything if the X window doesn't exist.
14863 Set the icon name as well.
14864 (x_window): Set the class hints for the window.
14865
dff28924 148661989-08-16 Richard Stallman (rms@hobbes.ai.mit.edu)
615d0182
DL
14867
14868 * lread.c (Fload): Fix unterminated comment.
14869
14870 * scroll.c (scrolling_max_lines_saved): Replace fixed threshold of 20
14871 with 1/4 of average length of lines.
14872
dff28924 148731989-08-13 Joseph Arceneaux (jla@spiff)
615d0182
DL
14874
14875 * ymakefile: Do ${make} for oldXMenu.
14876
dff28924 148771989-08-13 Richard Stallman (rms@hobbes.ai.mit.edu)
615d0182
DL
14878
14879 * eval.c: Doc fix.
14880
dff28924 148811989-08-12 Richard Stallman (rms@hobbes.ai.mit.edu)
615d0182
DL
14882
14883 * emacs.c (main): Check for failure opening -t device.
14884 Fatal error if terminal isn't a real terminal.
14885
14886 * window.c (Fscroll_other_window): Let Vother_window_scroll_buffer
14887 specify a buffer to scroll.
14888
dff28924 148891989-08-11 Richard Stallman (rms@hobbes.ai.mit.edu)
615d0182
DL
14890
14891 * dispnew.c: Handle BROKEN_FIONREAD as in other files.
14892
dff28924 148931989-08-09 Joseph Arceneaux (jla@spiff)
615d0182
DL
14894
14895 * ../oldXMenu/Makefile: Removed all the unneccessary X stuff.
14896
dff28924 148971989-08-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14898
14899 * fileio.c (barf_or_query_if_file_exists): When signalling,
14900 provide the expected args for a file-error.
14901
dff28924 149021989-08-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14903
14904 * process.c: Let NEED_BSDTTY control include of bsdtty.h.
14905
14906 * process.c [BSD or STRIDE]: If ioctl.h fails to define O_NDELAY,
14907 and we need it, try fcntl.h.
14908
14909 * s-bsd*.h, s-rtu.h, s-umax.h, s-unipl*.h: Define HAVE_UNION_WAIT.
14910 * m-stride.h: Likewise.
14911 * process.c: Decide which type to use with `wait'
14912 according to HAVE_UNION_WAIT. If WAITTYPE already defined,
14913 assume everything all set up for this.
14914
14915 * m-hp9000s300.h: Unless NOT_C_CODE or NO_SHORTNAMES,
14916 define WAITTYPE and WRETCODE, and include sys/wait.h.
14917
dff28924 149181989-08-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14919
14920 * callproc.c (child_setup): Get rid of junk in #if 0.
14921
dff28924 149221989-08-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14923
14924 * abbrev.c (Fdefine_abbrev): Allow nil spec'd as expansion.
14925 (Fexpand_abbrev): Eliminate abbrev length limit; use alloca.
14926 Eliminate redundant tests, always true.
14927 Record positions of both start and end of abbrev.
14928 Handle whitespace following the abbrev, before point.
14929
14930 * callproc.c (Fcall_process_region): Use unwind-protect to delete
14931 temp file.
14932
14933 * lread.c (load_unwind): Free the pointer-word malloc'd in Fload.
14934
dff28924 149351989-08-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
14936
14937 * emacs.c (Fdump_emacs): Doc fix.
14938
dff28924 149391989-08-02 Joseph Arceneaux (jla@spiff)
615d0182
DL
14940
14941 * xfns.c: Reorganized several functions to be in same order as the
14942 enum list.
14943 (x_set_border_color): For X11, don't set pix to -1 for
14944 gray values.
14945 (Fx_create_screen): Simplified this function even more.
14946
dff28924 149471989-07-31 Joseph Arceneaux (jla@spiff)
615d0182
DL
14948
14949 * keymap.c: New subrs Fuse_local_mouse_map, Fcurrent_local_mouse_map.
14950
14951 * xfns.c (x_set_mouse_color):
14952 (x_set_cur): No need to redraw display after doing these.
14953
14954 (Fx_get_mouse_event): Accept motion events.
14955 (x11_encode_mouse_button): Encoding a la X11, except for one
14956 kludge. This is used only for motion events.
14957
14958 * xterm.c (XTread_socket): Handle motion eveots.
dff28924
SS
14959
149601989-07-26 Joseph Arceneaux (jla@spiff)
615d0182
DL
14961
14962 * xfns.c (Fx_create_screen): I couldn't take it any more, the
14963 ugliness of this routine offended me too deeply. It is now
14964 completely rewritten for X11 and uses subroutines:
14965 (x_figure_window_size)
14966 (x_create_window)
14967 (x_icon)
14968 (x_make_gc)
14969
14970 (Fx_draw_rectangle):
14971 (Fx_erase_rectangle): New subrs.
14972
14973 * m/m-intel386.h: Changes in LOAD_AVE_TYPE, LOAD_AVE_CVT, and
14974 FSCALE to make loadst work correctly.
14975
dff28924 149761989-07-24 Joseph Arceneaux (jla@spiff)
615d0182
DL
14977
14978 * xfns.c (Fmodify_screen_parameters): Check s->output_method
14979 before looping through alist.
14980
14981 (Fx_create_screen): Call x_default_parameter for font.
da1d68b2 14982 Don't add the scrollbar widths when making the main window: this
615d0182
DL
14983 is done when the scrollbar is actually made.
14984
14985 (x_set_vertical_scrollbar): Set v_scrollbar_width here instead of
14986 in install_vertical_scrollbar. Also, pass that function macros
14987 PIXEL_WIDTH, PIXEL_HEIGHT as args.
14988
14989 (x_set_horizontal_scrollbar): Likewise.
14990
da1d68b2 14991 * xterm.c (x_set_window_size): Don't call the things called
615d0182
DL
14992 anyway upon the ConfigureNotify event.
14993 (x_set_offset): Use the screen-size lisp variables for these
14994 calculations.
14995
14996 * xterm.h: Added the screen parameter declarations from xfns.c for
14997 X11.
14998
dff28924 149991989-07-21 Joseph Arceneaux (jla@spiff)
615d0182
DL
15000
15001 * sysdep.c: Don't include sioctl.h on mips.
15002
da1d68b2 15003 * buffer.c (Flist_buffers): Pass prefix as arg.
615d0182
DL
15004
15005 * editfns.c (Finsert_char): Insert at most 256 chars at a whack.
15006
15007 * xterm.c (x_draw_box): Moved cursor box right by one pixel.
15008
dff28924 150091989-07-20 Joseph Arceneaux (jla@spiff)
615d0182
DL
15010
15011 * xfns.c: New variable x_screen_visuals, set if Fx_open_display,
15012 to be used in screen-color-p.
15013
15014 * process.c (create_process): Don't call setpgrp_of_tty here.
15015 Also, do setpgrp for USG regardless of HAVE_PTYS.
15016
15017 * callproc.c (child_setup): Ignore argument set_pgrp and always do
15018 setpgrp_of_tty.
15019 (Fcall_process): Don't call setpgrp_of_tty here.
15020
15021 * keyboard.c (command_loop_1): Make sure Vprefix_arg is NULL
15022 before finalizing_kbd_macro_chars;
15023
dff28924 150241989-07-19 Joseph Arceneaux (jla@spiff)
615d0182
DL
15025
15026 * xfns.c (Fx_rebind_key): Completely rewrote this function for
15027 X11.
15028
dff28924 150291989-07-13 Joseph Arceneaux (jla@spiff)
615d0182
DL
15030
15031 * emacs.c:
15032 * process.c:
15033 * unexec.c:
15034 * m/m-ibmrt-aix.h: Changed IBMRTAIX to IBMAIX.
15035 * sysdep.c: Likewise. Also, don't define our closedir if IBMAIX.
15036 * m/m-ibmps2-aix.h: New file.
15037
dff28924 150381989-07-12 Joseph Arceneaux (jla@spiff)
615d0182
DL
15039
15040 * xdisp.c (message, message1): If using x, but haven't mapped the
15041 window yet, use noninteractive output.
15042
15043 * dispnew.c (Fredraw_display): Don't redraw a screen which is not
15044 visible.
15045
15046 * xterm.c (x_set_window_size): Don't DoDsp if screen isn't visible.
15047
15048 * xfns.c (x_set_mouse_color)
15049 (x_set_border_color)
15050 (x_set_cursor_color)
15051 (x_set_background_color)
15052 (x_set_foreground_color): Don't redraw when screen isn't visible.
15053
dff28924 150541989-07-11 Joseph Arceneaux (jla@gluteus)
615d0182 15055
da1d68b2 15056 * xterm.c (x_term_init, XTread_socket): Use ConnectionNumber for
615d0182
DL
15057 both X10 and X11. This is #defined for X10.
15058
15059 * screen.c (Fset_screen_width, Fset_screen_height): These now take
15060 a SCREEN argument.
15061
dff28924 150621989-07-10 Joseph Arceneaux (jla@gluteus)
615d0182
DL
15063
15064 * xterm.c (x_set_window_size): Call x_wm_set_size_hint.
15065 (x_new_font): Don't call x_wm_set_size_hint.
15066
15067 * xfns.c (x_set_internal_border_width): Don't call
15068 x_set_resize_hint, and call x_set_window_size after BLOCK_INPUT.
15069
15070 * screen.c, dispnew.c (Fset_screen_width, Fset_screen_height):
15071 These functions have moved to screen.c.
15072
dff28924 150731989-07-07 Joseph Arceneaux (jla@sugar-bombs.ai.mit.edu)
615d0182
DL
15074
15075 * eval.c (Ffuncall): Handle 6 arguments. Also, print a nice error
15076 message if there are more than 6 args.
15077
da1d68b2
JB
15078 * fns.c (Fyes-or-no-p):
15079 * minibuf.c (read_minibuf_unwind):
615d0182
DL
15080 (Fread_minibuffer):
15081 (Fread_no_blanks_input):
15082 (Fcompleting_read): Extra arg to read_minibuf.
15083
15084 * callint.c (Fcall_interactively):
15085 * keyboard.c (Fexecute_extended_command):
da1d68b2 15086 * minibuf.c (Fread_command):
615d0182
DL
15087 (Fread_function):
15088 (Fread_variable):
15089 (Fread_buffer): Extra arg to Fcompleting_read.
15090
dff28924 150911989-07-05 Joseph Arceneaux (jla@spiff)
615d0182
DL
15092
15093 * minibuf.c (read_minibuf): New argument back_n is number of
15094 characters to back-up point by.
15095 (Fcompleting_read): Same.
da1d68b2 15096 * fileio.c (Fnew_read_file_name): New version of Fread_file_name
615d0182
DL
15097 using the above features.
15098 (Finsert_file_contents): Check for negative file length.
15099
dff28924 151001989-07-03 Joseph Arceneaux (jla@spiff)
615d0182 15101
da1d68b2
JB
15102 * xfns.c (x_pixel_width, x_pixel_height) New functions.
15103 * screen.c (Fscreen_pixel_size): New subr.
615d0182 15104
dff28924 151051989-06-30 Joseph Arceneaux (jla@spiff)
615d0182
DL
15106
15107 * xterm.c: Use invocation_name as argument to XGetDefaults.
15108
dff28924 151091989-06-29 Joseph Arceneaux (jla@spiff)
615d0182
DL
15110
15111 * xterm.c (x_error_handler) #ifdef sony_news use XDefaultError
15112 instead of XPrintDefaultError due to weirdness in Sony library.
15113 * xterm.c: Avoid infinite raise/lower, enter/leave cycle when both
15114 auto_raise and auto_lower are set by checking times between
15115 consecutive Enter events.
15116
dff28924 151171989-06-27 Joseph Arceneaux (jla@sugar-bombs.ai.mit.edu)
615d0182 15118
da1d68b2
JB
15119 * screen.c (Fselect_screen):
15120 * window.c (Fselect_window): The previous strategy was bugging the
615d0182
DL
15121 lisp stuff, so these are now rewritten.
15122
dff28924 151231989-06-26 Joseph Arceneaux (jla@galapas.ai.mit.edu)
615d0182
DL
15124
15125 * cm.c (Wcm_init): Don't check for Wcm.cm_ds, since this has been
15126 removed.
da1d68b2 15127 (losecursor): This function now a #define in cm.h.
615d0182
DL
15128
15129 * xterm.c (x_iconify_screen): Send message to root window to do
15130 this, as per latest Inter-Client Communications Conventions. This
15131 is commented out until it's implemented by X. For now, do it with
15132 the iconic_state hint.
15133 (x_deiconify_screen): For X11, just Map the window, as per the new
15134 ICCC.
15135 (x_make_screen_visible): Only handle visible and iconified screen
15136 elements for X10; these variables are handled in event processing
15137 for X11.
15138 (x_make_screen_invisible): Send an UnmapNotify event to the root
15139 window to aprise the window manager of the change.
15140 (XTread_socket): Catch VisibilityNotify events.
15141
dff28924 151421989-06-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15143
15144 * window.c (Fsplit_window): If horizontal, round left window size up.
15145
dff28924 151461989-06-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15147
15148 * cm.h (cmplus): Improve formatting.
15149 Use losecursor when reach end of line, if losewrap.
15150
15151 * cm.h: New fields to handle multi-line and multi-char motion,
15152 and both max and min cost for certain operations.
15153 * term.c (term_init): Init those fields.
15154
15155 * term.c (clear_end_of_line_raw): Don't clear last char of last line
15156 if autowrap.
15157
15158 * abbrev.c (Finsert_abbrev_table_description): Make 2nd arg optional.
15159
dff28924 151601989-06-23 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
15161
15162 * xfns.c, lisp/term/x-win.el: C routine Fscreen_color_p now lisp
15163 function x-color-screen-p in x-win.el.
da1d68b2 15164 (x_set_cursor_color): New method: first disallow same cursor as
615d0182
DL
15165 background, then if cursor not foreground, use it as cursor
15166 foreground.
15167
dff28924 151681989-06-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15169
15170 * lisp.h (XPNTR): Don't define if already defined.
15171
dff28924 151721989-06-22 Joseph Arceneaux (jla@cream-of-wheat.ai.mit.edu)
615d0182
DL
15173
15174 * screen.c: New subrs Ficonify_screen, Fdeiconify_screen,
15175 Fread_mouse_position, Fset_mouse_position.
15176
15177 * xterm.c: New functions x_deiconify_screen, x_iconify_screen.
15178
dff28924 151791989-06-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15180
15181 * window.c (Fsplit_window, change_window_height):
15182 Enforce minimum of 2 for window_min_width and window_min_height.
15183
dff28924 151841989-06-22 Joseph Arceneaux (jla@galapas.ai.mit.edu)
615d0182
DL
15185
15186 * dispnew.c (unhold_window_change): Don't set and unset in_display
15187 before and after calling change_screen_size.
15188
dff28924 151891989-06-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15190
15191 * buffer.c (Fkill_buffer): Ignore errors deleting auto-save file.
15192 Delete only if delete-auto-save-files.
15193
15194 * data.c (Fmake_local_variable): Don't change value if unbound.
15195
dff28924 151961989-06-20 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
15197
15198 * screen.c (Fselect_screen): Use x_set_mouse_position instead of
15199 x_enter_screen.
15200
15201 * xterm.c (x_enter_screen): Deleted, now merged with
15202 * xfns.c (x_set_mouse_position): If the position is negative, use
15203 the center screen position.
15204
15205 * data.c (swap_in_symval_forwarding): Declared tem1.
15206 (Fset): Changed variable name void to voide. Also, set it to a C
15207 true/false, rather than Qt or Qnil.
15208
dff28924 152091989-06-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15210
15211 * eval.c (Fdefvar): Operate on default value if sym is buffer-local.
15212 (Fdefconst): Likewise.
15213
88c71720 15214 Allow buffer-local variables to be void in one buffer
615d0182
DL
15215 or in the default value.
15216 * data.c (swap_in_symval_forwarding): New function.
15217 (Fboundp, Fsymbol_value): Use that.
15218 (default_value): New function.
15219 (Fdefault_value): Use that.
15220 (Fdefault_boundp): New function, uses that.
15221
dff28924 152221989-06-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15223
15224 * ymakefile: New variable OLDXMENU has filename of libXMenu.a
15225 as a target. Make temacs depend on it.
15226
dff28924 152271989-06-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15228
15229 * ymakefile [HAVE_X11, HAVE_X_MENU]: Build oldXMenu.
15230 * xmenu.c: Get XMenu.h from sibling dir.
15231
15232 * buffer.c (Fkill_buffer): Return t if buffer is killed.
15233 Delete auto-save file if any.
15234
dff28924 152351989-06-09 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 15236
da1d68b2 15237 * window.c: Initialize auto_new_screen to 0 (nil).
615d0182 15238
da1d68b2 15239 * screen.c (make_screen): Added auto_lower to the list of screen
615d0182 15240 elements initialized.
da1d68b2 15241 (make_minibuffer_screen): Likewise.
615d0182 15242
dff28924 152431989-06-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15244
15245 * window.c (Fset_window_point): Don't lose if window's buffer is
15246 not current.
15247
dff28924 152481989-06-08 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
15249
15250 * xfns.c (Fx_open_connection): Added 9 Lisp variables
15251 defined by the screen and server.
15252
dff28924 152531989-06-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15254
15255 * m-pmax.h: New file.
15256
dff28924 152571989-06-08 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 15258
da1d68b2 15259 * xfns.c: Removed superfluous definition of gray_bits.
615d0182 15260
dff28924 152611989-06-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15262
15263 * m-hp9000s300.h: Define NEED_BSDTTY unless NOMULTIPLEJOBS.
15264
dff28924 152651989-06-07 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
15266
15267 * emacs.c (Fkill_emacs): If under X, call
15268 Fx_close_current_connection. This has fixed the "bad file" bug.
15269 * xfns.c (Fx_close_current_connection): Added this subr which for
15270 the moment serves only to close the X-connection when killing emacs.
15271
dff28924 152721989-06-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15273
15274 * m-hp9000s800.h: Define NEED_BSDTTY here.
15275 * s-hpux.h: Not here.
15276
dff28924 152771989-06-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15278
15279 * s/s-hpux.h: Define NEED_BSDTTY.
15280
dff28924 152811989-06-06 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
15282
15283 * xterm.c (x_new_selected_screen): Make the new selected_screen
15284 and it's selected_window's screen be the same.
15285 (x_enter_screen): Calculate the middle of the screen, and warp the
15286 mouse there. Also, raise the screen before doing so.
15287
dff28924 152881989-06-05 Joseph Arceneaux (jla@cream-of-wheat.ai.mit.edu)
615d0182 15289
da1d68b2 15290 * xterm.c (x_set_window_size): If not already in DoDsp (checked
615d0182
DL
15291 with variable in_display) then DoDsp here. Handles redisplay
15292 after screen configuration.
15293 (x_error_handler): Print out stuff about the error if we're in
15294 debug mode.
15295
da1d68b2 15296 * dispnew.c (change_screen_size): No longer call DoDsp here.
615d0182 15297
dff28924 152981989-06-05 Chris Hanson (cph@kleph)
615d0182
DL
15299
15300 * syntax.c (Fmodify_syntax_entry): Change documentation string to
15301 reflect earlier change to action of `p' syntax bit.
15302
dff28924 153031989-06-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15304
15305 * lread.c (read1): Don't accept "" in middle of string.
15306
dff28924 153071989-05-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15308
15309 * search.c (Freplace_match): If \N has nothing to insert,
15310 insert nothing.
15311
dff28924 153121989-05-29 Joseph Arceneaux (jla@gracilis.ai.mit.edu)
615d0182 15313
da1d68b2 15314 * xfns.c (Fx_create_screen): If parms is nil and
615d0182
DL
15315 Vx_screen_defaults isn't, then use them.
15316 (Fdisplay_buffer): Call Fx_create_screen with Qnil.
15317
dff28924 153181989-05-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15319
15320 * syntax.c (scan_lists): Once within a word, treat Squote like Sword.
15321
dff28924 153221989-05-24 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
15323
15324 * dispnew.c (change_screen_size): DoDsp if not pretend.
15325
dff28924 153261989-05-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15327
15328 * search.c (skip_chars): Dumb error checking for \.
15329
dff28924 153301989-05-22 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
15331
15332 * screen.c (Fselect_screen): Under X, basically just warp the
15333 cursor into the desired screen. The event handler will then do
15334 the right thing.
15335 (Frestore_screen_configuration): Don't set the mouse position.
15336
da1d68b2 15337 * window.c (Fselect_window): If window's screen is not selected,
615d0182
DL
15338 call Fselecte_screen.
15339 (Fdisplay_buffer): Call Fx_create_screen with x-screen-parameters
15340 as argument instead of nil.
15341
15342 * keyboard.c (clear_waiting_for_input): Don't call
15343 x_new_selected_screen here.
15344
15345 * xterm.c (XTread_socket): Add case slots for CirculateNotify and
15346 CirculateRequest events.
15347
dff28924 153481989-05-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 15349
dff28924 15350 * doc.c (Fsubstitute_command_keys): Evaluate \\<...> keymap
615d0182
DL
15351 in proper buffer.
15352
15353 * keymap.c (Fapropos_internal): New Lisp function, old apropos
15354 but only returns a list.
15355
dff28924 153561989-05-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15357
15358 * process.c (Fopen_network_stream): Don't set kill-without-query.
15359
dff28924 153601989-05-19 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 15361
da1d68b2
JB
15362 * xterm.c (x_new_selected_screen): This now takes a struct screen
15363 pointer as parameter.
15364 (XTread_socket): Call x_new_selected_screen *before* dumpborder.
615d0182 15365
dff28924 153661989-05-16 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 15367
da1d68b2 15368 * xfns.c (x_window_to_scrollbar): If the caller's not interested
615d0182
DL
15369 in the names--passing 0 for last two parameters--just return the
15370 screen pointer.
15371
da1d68b2 15372 * xterm.c (x_enter_screen): Added this function for warping the
615d0182
DL
15373 pointer into a screen.
15374
dff28924 153751989-05-16 Chris Hanson (cph@kleph)
615d0182
DL
15376
15377 * syntax.c (scan_lists, scan_sexps_forward): Treat characters
15378 whose "prefix" bit is on as whitespace when they are encountered
15379 between expressions. When they occur within expressions they are
15380 treated according to their syntax code.
15381
dff28924 153821989-05-16 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 15383
da1d68b2 15384 * xterm.c (x_new_selected_screen): Don't call Fselect_screen.
615d0182
DL
15385 Just do everything here.
15386
15387 * window.c (Fselect_window): If the screen associated with the
15388 window is not selected, warp the mouse, cause an EnterNotify event
15389 which then causes the proper screen to become selected. This does
15390 *not* call Fselect_screen.
15391
da1d68b2 15392 * screen.c (Fselect_screen): Now this is *only* a lisp subr. It
615d0182
DL
15393 just calls Fselect_window on the selected window of the screen.
15394
dff28924 153951989-05-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15396
15397 * editfns.c (Fsubst_char_in_region): If NOUNDO, do increment tick,
15398 but maybe also increment save-tick.
15399
dff28924 154001989-05-15 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
15401
15402 * xterm.c (x_set_window_size): Only one #ifdef HAVE_X11 due to new
15403 macro in:
15404 * xterm.h: New macro XChangeWindowSize for both X10 and X11.
15405
da1d68b2 15406 * xfns.c (Fx_create_screen): Use XCreateWindow instead of
615d0182
DL
15407 XCreateSimpleWindow to directly set some extra attributes.
15408
dff28924 154091989-05-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15410
15411 * syntax.h (SYNTAX_PREFIX): New macro.
15412 * syntax.c (Fmodify_syntax_table): Handle `p'; set new flag.
15413 (describe_syntax): Describe new flag.
15414 (Fbackward_prefix_chars): Move back over such chars.
15415
15416 * lread.c (read1): Dumb errors in last change.
15417
dff28924 154181989-05-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15419
15420 * lread.c (read1): Error if EOF after `?' or in string.
15421
15422 * sysdep.c (init_sys_modes) [IBMRTAIX]: Typo; had s for sg.
15423
dff28924 154241989-05-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15425
15426 * s/s-usg5-3.h: Define HAVE_SYSVIPC?
15427
15428 * alloc.c (Fmake_byte_code): If purifying, purecopy all elements.
15429
15430 * ymakefile (LIBXMENU): Use -loldX.
15431 Find libXMenu11.a in special place.
15432
dff28924 154331989-05-12 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 15434
da1d68b2 15435 * xfns.c (Fx_create_screen): If user has specified
615d0182
DL
15436 `x-iconic-startup' then start emacs in iconic form.
15437 Look for icon position in `icon-left' and `icon-top', or use
15438 window postion.
15439
da1d68b2 15440 * xterm.c (x_term_init): If server doesn't respond, use fatal
615d0182
DL
15441 instead of error. Also tell user about -d option.
15442
dff28924 154431989-05-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15444
15445 * sysdep.c (init_sys_modes, reset_sys_modes):
15446 Handle TIOCGLTC even if HAVE_TERMIO.
15447
15448 * print.c (Qprint_escape_newlines): New variable.
15449 * minibuf.c (read_minibuf): Make it t locally in minibuffers.
15450
15451 * fileio.c (Fcopy_file): Check for error on close.
15452
dff28924 154531989-05-10 Joseph Arceneaux (jla@corn-chex.ai.mit.edu)
615d0182 15454
da1d68b2 15455 * xfns.c (adjust_scrollbars): Don't subtract 2 from
615d0182
DL
15456 h_scrollbar_height when calculating `length'.
15457
dff28924 154581989-05-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15459
15460 * eval.c (call_debugger): Set entering_debugger.
15461 (find_handler_cause): Don't enter debugger if that's set.
15462 (Fbacktrace): Clear it; we are presumably in the debugger.
15463
15464 * m/m-sps7.h: New file.
15465
dff28924 154661989-05-08 Joseph Arceneaux (jla@rice-chex.ai.mit.edu)
615d0182
DL
15467
15468 * xterm.c (XTread_socket_hook): For X11, on map and unmap events
15469 check the window manager hints for iconification status.
15470
da1d68b2 15471 * xterm.c (x_make_widow_icon): For X11, just request
615d0182
DL
15472 iconification of the window manager.
15473
dff28924 154741989-05-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15475
15476 * m/m-clipper.h: New file.
15477
dff28924 154781989-05-07 Joseph Arceneaux (jla@corn-chex.ai.mit.edu)
615d0182 15479
da1d68b2 15480 * xfns.c (adjust_scrollbars): Don't subtract 2 from
615d0182
DL
15481 v_scrollbar_width when calculating `height'.
15482
da1d68b2 15483 * xfns.c (x_set_foreground, x_set_border_pixel): Finished color
615d0182
DL
15484 coordination. Scrollbar border, thump-arrows, and slider pixmap
15485 linked with foreground color; slider border with window border.
15486
dff28924 154871989-05-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15488
15489 * lread.c (read1): Handle octal integers.
15490
15491 * macros.c: Doc fix.
15492
15493 * search.c (Fstore_match_data): Allow ints instead of markers.
15494
15495 * keyboard.c (get_char_menu_prompt): New function; does menu prompting
15496 based on current keymaps.
15497
dff28924 154981989-05-05 Joseph Arceneaux (jla@gracilis.ai.mit.edu)
615d0182 15499
da1d68b2 15500 * xfns.c (Fx_set_face): Rewrote the doc-string and renamed the
615d0182
DL
15501 parameters.
15502
dff28924 155031989-05-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15504
15505 * unexec.c: New control parameters COFF_BSD_SYMBOLS, KEEP_OLD_PADDR,
15506 KEEP_OLD_TEXT_SCNPTR, ADJUST_TEXT_SCNHDR_SIZE, ADJUST_TEXTBASE,
15507 HEADER_INCL_IN_TEXT.
15508
15509 * unexec.c: Define IN_UNEXEC as flag for config.h.
15510
15511 * keymap.c: Fapropos, etc., deleted. (Now in Lisp code.)
15512
15513 * eval.c (Fcommandp): Byte code object is command if interactive slot
15514 exists at all.
15515
dff28924 155161989-05-05 Chris Hanson (cph@kleph)
615d0182
DL
15517
15518 * process.c [HPUX && !NOMULTIPLEJOBS]: Include <bsdtty.h>, which
15519 defines TIOCGPGRP.
15520
dff28924 155211989-05-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15522
15523 * data.c (Faref, Farray_length): Handle byte-code objects.
15524 * fns.c (Flength, concat): Likewise.
15525
15526 * data.c (Faref, Faset, Farray_length): Rename arg VECTOR to ARRAY.
15527
15528 * m/m-hp9000s300.h: Undefine NOMULTIPLEJOBS.
15529
15530 * keyboard.c (Fcommand_execute): Treat bytecode object as function.
15531
15532 * callint.c (Fcall_interactively): Separate decoding of fcn
15533 from handling of it.
15534
15535 * alloc.c (Fmake_byte_code): Renamed from Fmake_compiled_code.
15536 Make it pure if Vpurify_flag is non-nil.
15537 (Fpurecopy): Handle byte-code objects.
15538
15539 * keyboard.c (get_char): Use Fsit_for for echoing timeout, not alarm.
15540 Do this before timeout for auto-save since the latter is longer.
15541 (request_echo): Function deleted.
15542 ({set,clear}_waiting_for_input): No need for echo_now, echo_flag.
15543
dff28924 155441989-05-04 Joseph Arceneaux (jla@gracilis.ai.mit.edu)
615d0182
DL
15545
15546 * xterm.c (x_lower_window, x_raise_window): Don't do anything if
15547 the window isn't visible.
15548
15549 * xfns.c (x_set_foreground_color): Recolor the scrollbar windows
15550 appropriately, compatible with xterm.
15551
15552 * xterm.c (x_reset_cursor): Do cursor recoloring.
15553
dff28924 155541989-05-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15555
15556 * fns.c (Frandom): With number as arg, return value < that number.
15557
15558 * sysdep.c [USG, BSD4_1] (random): Call `rand' twice, to get
15559 30 bits of significance.
15560
dff28924 155611989-05-03 Joe Arceneaux (jla@gracilis.ai.mit.edu)
615d0182 15562
da1d68b2
JB
15563 * xterm.c (x_draw_box): Use the cursor_gc.
15564 * xfns.c (x_set_cursor_color, x_create_screen): Do a better job
615d0182
DL
15565 with cursor colors, and use 0 line width for the cursor_gc.
15566
dff28924 155671989-05-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 15568
88c71720 15569 Begin changing representation of compiled functions.
615d0182
DL
15570 * lisp.h (enum Lisp_Type): New type code Lisp_Compiled, like a vector.
15571 (COMPILED_*): Names for slots in those vectors.
15572 * alloc.c (Fmake_compiled_code): New function.
15573 * eval.c (Fcommandp, Feval, Ffuncall, funcall_lambda):
15574 Handle fcns of type Lisp_Compiled.
15575 (Fcommandp, Fapply): Avoid directly nested ifs.
15576 * print.c (print): Handle Lisp_Compiled objects.
da1d68b2
JB
15577 * callint.c (Fcall_interactively): Likewise.
15578 * doc.c (Fdocumentation): Likewise.
615d0182
DL
15579
15580 * keyboard.c (Fopen_dribble_file): nil as arg means close it.
15581
15582 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c:
15583 * casefiddle.c, cmds.c, data.c, dired.c, dispnew.c, doc.c, editfns.c:
15584 * eval.c, fileio.c, filelock.c, floatfns.c, fns.c, keyboard.c:
15585 * keymap.c, lread.c, minibuf.c, mocklisp.c, print.c, process.c:
15586 * screen.c, search.c, syntax.c, undo.c, vmsfns.c:
15587 Many doc fixes.
15588
dff28924 155891989-04-30 Joseph Arceneaux (jla@hobbes)
615d0182
DL
15590
15591 * xterm.c (XTring_bell): Wasn't passing selected_screen to XTflash.
15592 Fixed this.
15593
15594 * xterm.c (XTread_socket): Don't check if server died under
15595 X11. Temporary.
15596
dff28924 155971989-04-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15598
15599 * window.c (Fdelete_other_windows): Bug getting top edge.
15600
dff28924 156011989-04-29 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15602
15603 * keyboard.c (get_char): Auto save if enough time elapses.
15604 (auto_save_timeout): New Lisp variable.
15605
15606 * xdisp.c (try_window, try_window_id): Set w->redo_mode_line
15607 if should show percentage instead of `Bot'.
15608
dff28924 156091989-04-29 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
15610
15611 * xterm.c (x_term_init): Don't set visible bell, as it pre-empts
15612 .emacs control.
15613
dff28924 156141989-04-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15615
15616 * doc.c (syms_of_doc): Make Vdoc_file_name a Lisp variable
15617 named internal-doc-file-name.
15618
dff28924 156191989-04-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15620
15621 * m-news.h: m-news800.h renamed.
15622 Removed EXPLICIT_SIGN_EXTEND and COMPILER_REGISTER_BUG.
15623 Removed SEGMENT_MASK and sigmask.
15624 LOAD_AVE_TYPE is now `double'; LOAD_AVE_CVT changed too.
15625 Define m68000 if not defined.
15626
dff28924 156271989-04-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15628
15629 * ymakefile: If COFF_ENCAPSULATE, define LD as gcc -nostdlib.
15630
15631 * sysdep.c: Unconditionally include sys/ioctl.h.
15632
15633 * m/m-mips.h [USG]: Define LIBS_TERMCAP.
15634 If HAVE_X11, define HAVE_VFORK.
15635
dff28924 156361989-04-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15637
15638 * m/m-altos.h: Use termcap, not terminfo.
15639 Define COFF_ENCAPSULATE if using gcc.
15640 Use built-in alloca if using gcc.
15641 Define PURESIZE.
15642
15643 * lread.c (absolute_filename_p): On ALTOS, @ means absolute.
15644
15645 * process.c: Missing #endif.
15646 * fileio.c (Finsert_file_contents): Define `p' for last change.
15647 * buffer.c, floatfns.c: Typos in DEFUN doc strings.
15648 * keyboard.c: Typo in DEFVAR_LISP doc string.
15649
15650 * window.c (Fdelete_other_windows): Fix confusion about type of W.
15651
dff28924 156521989-04-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15653
15654 * ymakefile (LDFLAGS): Forgot to use LD_SWITCH_SITE.
15655
15656 * xterm.c (XTflash): Draw the bars here.
15657 (x_invert_screen): Change to invert entire window.
15658 (stufflines): Changed args to XClearArea.
15659 (XTread_socket): Clean up handling of KeyPress events.
15660 For LeaveWindow, ignore uninteresting ones and handle autolower.
15661 For FocusIn, ignore if unknown window, and handle autoraise.
15662 For MotionNotify, add real handling for X11.
15663 For ConfigureNotify, count width of scroll bars.
15664 Don't call change_screen_size redundantly; ignore linked expose events.
15665 Update left and top pos if nec.
15666 For button events, ignore if not in known window or scrollbar.
15667 (x_new_selected_screen): Takes screen as arg.
15668 (x_error_handler): Arg type different for X11.
15669 (x_set_window_size) [HAVE_X11]: Call change_screen_size
15670 before x_wm_set_size_hint.
15671 (x_make_window_visible): Make scroll bars visible too, if any.
15672 (x_lower_window): New fn.
15673 (x_wm_set_size_hint): Take account of width of scroll bars.
15674 Ior specified hint flags with those already set.
15675
15676 * xterm.h (HSCROLL_HEIGHT): HSCROLL_WIDTH is renamed.
15677 (MAXWIDTH): Increased to 300.
15678 (MAXHEIGHT): Increased to 100.
15679 (DISPLAY_SCREEN_ARG): Remove parentheses.
15680 (ButtonReleased, WhichMouseButton): Delete definitions.
15681
15682 * xmenu.c: Adapted to new X interface. X11ONLY replaced with xDISPLAY.
15683 Many X11 conditionals removed.
15684
15685 * xfns.c (x_set_cursor_color): Special case if matches foreground.
15686 (Fx_create_screen): Typo for HSCROLL_HEIGHT.
15687 Use BLACK_PIX_DEFAULT, WHITE_PIX_DEFAULT.
15688 Set PRETEND arg to change_screen_size.
15689 Delete gray_bits; this value made global.
15690 Don't call install_*_scrollbar here.
15691 (x_set_horizontal_scrollbar): Define this for real.
15692 (x_set_vertical_scrollbar): Corrent args to install_vertical_scrollbar.
15693 (install_vertical_scrollbar): New local slider_pixmap, and set it.
15694 Delete locals GC_values, temp_gc.
15695 Change arrow_width, arrow_height (appears to be undefined) to 16.
15696 Un-if-0 this code.
15697 Use border_pixel, not foreground_pixel, for scrollbar.
15698 (install_horizontal_scrollbar): Define this for real.
15699 (adjust_scrollbars): Handle horizontal scrollbar.
15700 Define XMoveResizeWindow as XConfigureWindow if X10 to simplify.
15701 (x_resize_scrollbars): Remove #if 0 from quick-exit case.
15702 Really handle horizontal scrollbar.
15703 Simplify using new macro.
15704 (Fx_get_mouse_event): Mostly ignore events other than buttons.
15705 Use many new macros to handle X10 and X11.
15706 (encode_mouse_button): New fn: encoding of which button, broken out.
15707
15708 * xfns.c (left_arror_cursor, etc.): New vars.
15709 (x_screen_parm, init_x_parm_symbols, x_set_screen_param):
15710 Define X_PARM_AUTOLOWER.
15711
15712 * xdisp.c (display_string, redisplay-window, DoDsp):
15713 Use SCREEN_WIDTH, SCREEN_HEIGHT.
15714
dff28924 157151989-04-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15716
15717 * indent.c (compute_motion): Use SCREEN_WIDTH.
15718 * dispnew.c (update_line): Use SCREEN_WIDTH.
15719 (update_screen): Use SCREEN_HEIGHT.
15720
dff28924 157211989-04-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 15722
da1d68b2 15723 * window.c: Rename Vauto_new_screen_hook, Vdisplay_buffer_hook, and
615d0182
DL
15724 Vtemp_buffer_show_hook to ..._function.
15725
da1d68b2 15726 * keyboard.c: Rename mouse_hook to mouse_event_function.
615d0182
DL
15727
15728 * buffer.c, buffer.h, cmds.c: blink-paren-hook and auto-fill-hook
15729 renamed to -function.
15730
15731 * fileio.c (Finsert_file_contents): Allow quit in read.
15732 (Fwrite_region): Allow quit in write.
15733
dff28924 157341989-04-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15735
15736 * doprnt.c (doprnt): Comment out %b since sprintf can't do it.
15737
15738 * Change X11 to HAVE_X11 everywhere.
15739
15740 * m-sun3.h: Define C_SWITCH_MACHINE as -fsoft.
15741
dff28924 157421989-04-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15743
15744 * process.c: Don't define wstopsig, wtersig if already defined.
15745
15746 * sysdep.c [VMS] (sys_getenv): Copy the string before returning it.
15747
15748 * m-alliant.h: Define `vector'.
15749
dff28924 157501989-04-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15751
15752 * process.c (wait_reading_process_input) [sun]: If SIGIO failed
15753 to be sent, send it by hand.
15754
dff28924 157551989-04-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 15756
da1d68b2 15757 * window.c (Fdelete_other_windows): Recenter window to avoid scrolling.
615d0182 15758
dff28924 157591989-04-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15760
15761 * indent.c: Include screen.h.
15762
15763 * indent.c (pos_tab_offset, Fvertical_motion): Compute internal width
15764 correctly and uniformly.
15765
15766 * xdisp.c (try_window, try_window_id): Use exact internal width
15767 to update tab_offset.
15768 (try_window_id): pos_tab_offset value needs adjustment only if
15769 starting a line in middle of a character.
15770
dff28924 157711989-04-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15772
15773 * sysdep.c [USG]: If TIOCGWINSZ defined, include sioctl.h.
15774
dff28924 157751989-04-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15776
15777 * eval.c (Fbacktrace): Set Vprint_level to 3 throughout.
15778
15779 * fns.c (Fload_average): nlist data structure is funny on convex.
15780
da1d68b2 15781 * window.c (scroll_command): Scroll at least 1 line in specd direction.
615d0182
DL
15782
15783 * cm.c (calccost): NTABS was off by 1 sometimes; take account of
15784 the starting position modulo 8.
15785
15786 * fileio.c (Fexpand_file_name): Don't simplify /../ at start of name.
15787
da1d68b2 15788 * callint.c: Doc fixes.
615d0182
DL
15789
15790 * process.c (create_process):
15791 On all USG systems, not just IRIS and AIX, don't pre-open pty's tty.
15792 Move the setpgrp done for USG (no real change).
15793 Tell child_setup to do a setpgrp.
15794 * callproc.c (child_setup): New arg says whether to setpgrp.
15795 Never setpgrp on USG.
15796 (Fcall_process): Tell child_setup not to setpgrp.
15797
15798 * sysdep.c (init_sys_modes, reset_sys_modes): Don't try to hack
15799 TIOCGLTC, TIOCGETC, etc. if HAVE_TERMIO.
15800 Don't bother to undef these for XENIX.
15801
dff28924 158021989-04-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15803
15804 * ymakefile (LIBES): Put LIBX first; it may depend on LIBS_MACHINE.
15805
15806 * m-sequent.h: Define HAVE_ALLOCA.
15807
dff28924 158081989-04-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15809
15810 * term.c (term_init): Can't use scroll region if no abs positioning.
15811
dff28924 158121989-04-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 15813
da1d68b2 15814 * process.c (Fopen_network_stream): Close desc. if connect fails.
615d0182 15815
dff28924 158161989-03-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15817
15818 * minibuf.c (Fall_completions): gcprotect ALLMATCHES and TAIL,
15819 not STRING.
15820
15821 * keyboard.c (read_avail_input): Handle EBADSLT like EAGAIN.
15822
dff28924 158231989-03-29 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15824
15825 * term.c (term_init): Either ic or ip or im or IC => can insert chars.
15826
15827 * minibuf.c (read_minibuf_unwind): Ensure minibuf writable for erasure.
15828
dff28924 158291989-02-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15830
15831 * m-convex.h: Undefine NO_ARG_ARRAY.
15832 Changed defns of DATA_SEG_BITS and XINT.
15833 Define alloca for GCC compilation.
15834
dff28924 158351989-02-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15836
15837 * m-ibmrt-aix.h: Define BROKEN_FIONREAD.
15838
dff28924 158391989-02-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15840
15841 * keymap.c (Fdefine_prefix_command): Set both value and fn defn,
15842 with separate syms specified for each purpose.
15843
dff28924 158441989-02-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15845
15846 * callproc.c (Fcall_process): Open /dev/null with O_WRONLY.
15847
dff28924 158481989-02-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15849
15850 * window.c (window_scroll): Allow scrolling to very end (empty screen)
15851 if that's exactly where we wanted to scroll to.
15852
dff28924 158531989-02-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15854
15855 * data.c (Fkill_local_variable): New local to simplify big stmt.
15856
dff28924 158571989-02-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15858
15859 * xdisp.c (display_text_line): cvt chars to glyfs for overlay arrow.
15860
15861 * sysdep.c (init_sys_modes, child_setup_tty) [IBMRTAIX]:
15862 Don't ignore BRK, and don't signal it.
15863
15864 * process.c (pty): An IBMRTAIX conditional.
15865 (create_process): Another here.
15866
dff28924 158671989-02-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15868
15869 * keymap.c (Fdefine_prefix_command): Use Ffset, not Fset.
15870
dff28924 158711989-02-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15872
15873 * fileio.c (Fset_visited_file_modtime): New fn.
15874
15875 * xfns.c (Fx_create_screen) [X10]: XCreateWindow wants pixmaps as args.
15876
dff28924 158771989-02-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15878
15879 * dispnew.c (Fsit_for): It accepts 3 args.
15880
dff28924 158811989-02-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15882
15883 * xterm.c (XTread_socket): For X10, make EVENT an XKeyPressedEvent.
15884 (x_set_resize_hint): Call XSetResizeHint.
15885
15886 * process.c: Declare interrupt_input.
15887
15888 * sysdep.c (init_sys_modes): TIOCSTART, not TCSTART.
15889
dff28924 158901989-01-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15891
15892 * xterm.h (struct x_display): `GC' renamed `gc' in all field names.
15893 Field `ColorMap' renamed to `color_map'.
15894 (face_gc_values): face_GC_values renamed.
15895
dff28924 158961989-01-28 Joe Arceneaux (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15897
15898 * xterm.h (face_GC): Var deleted.
15899 (struct x_display): New field face_GC.
15900 (VSCROLL_WIDTH, HSCROLL_WIDTH): Moved here.
15901 (MINWIDTH, MINHEIGHT, MAXWIDTH, MAXHEIGHT): New vars. Eliminate them!
15902 (BLACK_PIX_DEFAULT): Typo in definition.
15903 (WHITE_PIX_DEFAULT): Typos in definitions; was the black default.
15904
15905 * xterm.c: Include ioctl.h only if BSD.
15906 Include termio.h otherwise.
15907 (XMapWindow) [X11]: Typo in definition.
15908 (METABIT): New definition; maybe not needed.
15909 (hostname, id_name, invocation_name, Vcommand_line_args): New vars
15910 declared for main icon title.
15911 (x_debug): Init to 1 if XDEBUG defined.
15912 (dumpglyfs) [X11]: Changed args to XDrawImageString.
15913 If debugging, do XFlushQueue.
15914 Use screen's face_gc rather than old global one.
da1d68b2 15915 (XTflash) [not BSD]: Avoid `struct itimerval'; use `alarm'.
615d0182
DL
15916 (events): New table of event type names.
15917 (XTread_socket): EVENT is now an XEvent even on x10.
15918 Translate modifier key 1 into meta-bit.
15919 For EnterNotify event, don't dumpborder or x_new_selected_screen
15920 if there is an x_focus_screen.
15921 For LeaveNotify event, don't ignore due to nonzero subwindow.
15922 For ConfigureNotify, change screen size.
15923 Do `select' check for SIGHUP only if HAVE_SELECT.
15924 (x_new_selected_screen): An arg, SCREEN.
15925 (x_display_cursor): dumpglyfs args changed.
15926 (x_draw_box): Add GC arg to XDrawRectangle; change other args.
15927 (clear_cursor): Change args to XClearArea.
da1d68b2 15928 (dumpborder): Check x_input_screen, not selected_screen.
615d0182
DL
15929 (x_text_icon): For X11, new arg to XGetDefault.
15930 Cast values stored in icon_label.
15931 (x_term_init): Hair to calculate name for icon.
15932 Don't init_sigio unless SIGIO defined.
15933 Call Fset_input_mode.
15934 For X11, new arg to XGetDefault.
15935 Set _Xdebug if debugging.
15936 (x_new_font) Use XGetFont.
15937 Get GC values from the screen structure.
15938 (x_reset_cursor): Don't call XRecolorCursor.
15939 (x_set_window_size): Call x_wm_set_size_hint, not x_set_size_hint.
15940 (x_set_resize_hint): For X11, call x_wm_set_size_hint.
15941 (x_wm_set_size_hint, x_wm_set_window_state, x_wm_set_icon_pixmap):
15942 (x_wm_set_icon_position): New fns for X11.
15943
15944 * xfns.c: For X11, include Xutil.h
15945 (VSCROLL_WIDTH): Moved to xterm.h.
15946 (face_GC): Don't declare it.
15947 (id_name): Declare this.
15948 (x_decode_color): Check `white' and `black' first of all.
15949 (x_set_foreground_color) [X11]: Reset foreground and background.
15950 (x_set_background_color) [X11]: Missing arg to XSetWindowBackground.
15951 (x_set_cursor_color) [X11]: Reset foreground and background.
15952 (x_read_mouse_position) [X11]: Changed call to XQueryPointer.
15953 (x_set_mouse_position) [X11]: Add args to XWarpPointer.
15954 (Fx_create_screen): Set some temporary geometry parms at the beginning.
15955 For X11, changed setup of iconidentity, and implement rubber-banding.
15956 For X11, implement merging individual geometry parms.
15957 For X11, changed args to XCreateSimpleWindow.
15958 For X11, call x_wm_set_size_hint.
15959 Specify name when creating icon.
15960 Don't call XSetForeground, XSetBackground before making border tile.
15961 New var `cursor_bits'. Init the screen's GC's.
15962
15963 * screen.c (Frubber_band_rectangle): For X11, just return nil.
15964
dff28924 159651989-01-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15966
15967 * buffer.c (Fbuffer_modified_tick): New fn.
15968
15969 * window.c (Fnext_window): Accept 3 args from Lisp.
15970
dff28924 159711989-01-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15972
15973 * sysdep.c (sys_suspend): Handle case of SIGTSTP but not BSD.
15974
dff28924 159751989-01-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15976
15977 * sysdep.c (init_sys_modes): Do TIOCSTART if def, like TCXONC.
15978
dff28924 159791989-01-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15980
15981 * process.c (wait_reading_process_input): New 2nd arg is extra usecs.
15982 All callers changed.
15983 * dispnew.c (Fsit_for, Fsleep_for): New 2nd arg says 1st arg
15984 counts in milliseconds.
15985
15986 * buffer.c (Fkill_all_local_variables): Implement permanent locals.
15987
dff28924 159881989-01-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15989
15990 * keymap.c (get_keyelt): Allow indirection within (STRING . DEFN).
15991
dff28924 159921989-01-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
15993
15994 * process.c (wait_reading_process_input): If select returns there
15995 is kbd input, but detect_input_pending can't find it, signal SIGIO.
15996 This may avoid the X loop-on-logout bug.
15997
15998 * process.c (wait_reading_process_input): Flush fix_screen_hook.
da1d68b2 15999 * termhooks.h, term.c: Likewise.
615d0182
DL
16000
16001 * xdisp.c (Fredraw_display): Don't do set_terminal_modes.
da1d68b2 16002 * dispnew.c (Fredraw_screen): Likewise.
615d0182
DL
16003
16004 * eval.c (Fcond): If no args, return nil.
16005
dff28924 160061989-01-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16007
16008 * eval.c (Fbacktrace_frame): Require one arg. Return nil if too high.
16009
dff28924 160101989-01-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16011
16012 * minibuf.c (read_minibuf): Set Vminibuf_scroll_window before
16013 switching windows.
16014
16015 * xterm.c (XTread_socket): If no HAVE_SELECT, wait for input
16016 if new arg WAITP is non0. Do this by not bothering to test for
16017 presence of input before reading some.
16018 Check for dead connection only if new arg EXPECTED is nonzero.
16019 All callers changed (keyboard and sysdep).
16020
88c71720
KS
16021 * keyboard.c: Simplify keyboard input.
16022 (read_avail_input): Don't assume buffer is empty.
615d0182
DL
16023 Don't call get_input_pending; do FIONREAD here.
16024 Don't do FIONREAD if read_socket_hook, just tell it don't wait.
16025 Arg EXPECTED is passed to read_socket_hook.
16026 (input_available_signal): Use read_avail_input.
16027 (gobble_input): Use read_avail_input; arg EXPECTED passed along.
da1d68b2 16028 (get_input_pending): Let gobble_input do the work.
615d0182 16029
88c71720 16030 VMS keyboard input should have interrupt_input nonzero.
615d0182
DL
16031 * keyboard.c (Fset_input_mode, init_keyboard): [VMS] Always set
16032 interrupt_input to 1.
16033 (get_input_pending): Special case deleted.
16034
dff28924 160351989-01-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16036
16037 * fileio.c (auto_save_1): Always make auto-save file owner-writable.
16038
16039 * eval.c (Fbacktrace_frame): New fn.
16040
16041 * buffer.h: Define `fieldlist' field in a buffer.
16042 * buffer.c (Fregion_fields): Return list of fields overlapping
16043 specified region.
16044 (syms_of_buffer): New variable buffer-field-list.
16045 (reset_buffer): Clear the fieldlist.
16046 (init_buffer_once): Set up default and flag for buffer-field-list.
16047 * insdel.c (prepare_to_modify_buffer): If check_protected_fields,
16048 call Fregion_fields to detect error.
16049 Delete buffer_modify_hook.
16050
16051 * callint.c (Fcall_interactively): Bind `command-debug-status'
16052 for each interactive command.
16053
16054 * keyboard.c (command_loop_1): Count # commands read.
16055 (num_input_keys): New Lisp variable.
16056
16057 * m/m-gould.h, m/m-ibmrt-aix.h, m/m-sequent.h, m/m-sparc.h,
da1d68b2 16058 * m/m-sun3.h, m/m-symmetry.h: Define A_TEXT_SEEK.
615d0182
DL
16059 * unexec.c (copy_text_and_data): Don't check A_TEXT_OFFSET,
16060 just A_TEXT_SEEK.
16061 * unexconvex.c: Likewise.
16062
16063 * unexconvex.c: machine/*.h unconditionally.
16064
16065 * process.c (pty): Delete RTU, HPUX, IRIS alternatives to
16066 PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF.
16067 * s/s-hpux.h: Define PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF.
16068 * s/s-rtu.h: Likewise.
16069 * s/s-iris*.h: Define PTY_TTY_NAME_SPRINTF.
16070
16071 * sunfns.c (Fsun_change_cursor_icon): Avoid ambiguity in eval order.
16072
dff28924 160731989-01-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16074
16075 * data.c (Fdefault_value): If var set up with default value as current,
16076 take the current value slot, more up to date than the default slot.
16077
dff28924 160781989-01-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 16079
da1d68b2 16080 * dispnew.c (init_display): Don't handle SIGWINCH if using X.
615d0182
DL
16081
16082 * fileio.c (Fdo_auto_save): If file has shrunk, turn off auto-save.
16083 This avoids duplicate messages and allows M-x auto-save to turn it on.
16084
16085 * lread.c (Fload): Look in Vafter_load_alist.
16086 (syms_of_load): Define after-load-alist.
16087
dff28924 160881989-01-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16089
16090 * dired.c (Fdirectory_files): 4th arg NOSORT non-nil means don't sort.
16091
16092 * syntax.c (scan_lists): Change Sendcomment case so that
16093 ignoring comments works even for newline-terminated comments.
16094
16095 * minibuf.c (read_minibuf): Default Vminibuf_scroll_window
16096 to the window that was selected.
16097
dff28924 160981989-01-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16099
16100 * fns.c (do_yes_or_no_p): Typo, call2 => call1.
16101
16102 * eval.c (Fbacktrace): Each frame item should have a newline.
16103
16104 * emacs.c (Fkill_emacs): Don't run hook if noninteractive.
16105
16106 * eval.c: Define Vrun_hooks.
16107 (syms_of_eval): Initialize Vrun_hooks.
16108
16109 * indent.c (Fmove_to_column): Use del_range; Fdelete_backward non ex.
16110
16111 * ymakefile (objs, floatfns.o): Re-add this file.
16112 (LIBX): Install X11 case.
16113
16114 * ymakefile (LIB_GCC): Now a cpp macro, like all other LIB_...
16115 Define null if not using GCC.
16116
16117 * lread.c (unreadchar): New function to unread a char
16118 by stuffing it back into its stream. Now unread chars
16119 work properly between multiple reads.
16120 (UNREAD): Now calls that function.
16121 (readchar): Don't us `unrch'; variable deleted.
16122 (various): Don't initialize `unrch'.
16123 (readevalloop): No need to save and restore `unrch'.
16124 (read1): Don't unread a -1.
16125
16126 * keymap.c (get_keyelt): If keymap defn is (STRING . FOO),
16127 remove just FOO. Will help HierarKey.
16128
dff28924 161291989-01-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16130
16131 * unexmips.c [IRIS_4D]: Don't include fcntl.h.
16132 (unexec): Look for LIT8, LIT4 sections iff they are defined.
16133
16134 * buffer.c (Fkill_all_local_variables): Force redisplay of mode lines.
16135
dff28924 161361989-01-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16137
16138 * emacs.c (main): Do the setpgrp before handling -t.
16139
16140 * keyboard.c (Fsuspend_emacs): Use run-hooks to run suspend-hook
16141 and suspend-resume-hook.
16142
16143 * buffer.c (Fkill_buffer): Execute kill-buffer-hooks
16144 with buffer to be killed as current buffer.
16145
16146 * buffer.c (count_modified_buffers): ModExist renamed.
16147
16148 * emacs.c (Fkill-emacs): Execute kill-emacs-hook.
16149
16150 * fileio.c (auto_save_1): Set auto_save_mode_bits from visited file.
16151 (Fwrite_region) [not VMS]: If auto-saving, write file with that mode.
16152
16153 * fileio.c (Fwrite_region): If START is a string, write that string.
16154
dff28924 161551989-01-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16156
16157 * lisp.h (XMARKBIT, XSETMARKBIT): If mark bit is sign bit,
16158 use sign-test for XMARKBIT; value is then 1 or 0.
16159 Make XSETMARKBIT test 2nd arg for nonzeroness only.
16160
16161 * m/m-mips.h: Last batch of changes are only for USG.
16162 (XMARKBIT, XSETMARKBIT): Deleted; the new default ones are good.
16163
16164 * editfns.c (Fformat): Use princ for %s.
16165 New format %S converts everything (even strings) with prin1.
16166 * doprnt.c (doprnt): Treat %s like %S.
16167
16168 * print.c (Fprin1_to_string): Opt 3nd arg non-nil does princ.
16169
dff28924 161701988-12-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16171
16172 * data.c (Fstring_to_int): Correct max # args.
16173
dff28924 161741988-12-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16175
16176 * ymakefile (LIBES, LIB_GCC): If using GCC, link with gnulib.
16177
dff28924 161781988-12-29 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16179
16180 * editfns.c: Many doc improvements.
16181
dff28924 161821988-12-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16183
16184 * lisp.h (CHECK_NATNUM): New macro.
16185
16186 * indent.c (Fmove_to_column): 2nd arg t means indent till spec'd column
16187 or change tab to spaces if necessary.
16188
da1d68b2 16189 * m/m-iris4d.h: (Conditionally) delete DEFAULT_ENTRY_ADDRESS
615d0182
DL
16190 and change START_FILES and LIB_STANDARD.
16191
16192 * s/s-iris3-6.h: Define sigblock as no-op.
16193
16194 * m/m-mips.h: Cancel defn of VIRT_ADDR_VARIES, `static'.
16195 Undef SIGIO. Define BROKEN_FIONREAD.
16196 Define various HAVE_... flags a la BSD.
16197 Add options, libraries for linking and compilation.
16198
16199 * unexmips.c (unexec): Handle additional optional sections now likely.
16200 New scheme for recording what sections there are.
16201 Make handling of the LIT8,LIT4 sections conditional (not on IRIS).
16202
16203 * fns.c (do_yes_or_no_p): New interface to Lisp function yes-or-no-p.
16204 Allows the user to redefine that function.
16205 All callers of Fyes_or_no_p changed.
16206
16207 * data.c (Fmakunbound): Don't allow nil or t as arg.
16208
16209 * m/m-orion105.h (LOAD_AVE_TYPE): Now `long'.
16210
dff28924 162111988-12-27 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16212
16213 * dispnew.c (unhold_window_change):
16214 Don't signal SIGWINCH. Instead, do pending size-changes here,
16215 while holding any new size-changes that arrive, so they become
16216 pending. Loop around to get the new pending ones.
16217 (change_screen_size): Clear any previous pending size-change.
16218
16219 * search.c (place): Was clipping to (1- (point-max)) by mistake.
16220
dff28924 162211988-12-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16222
16223 * window.c (Fdelete_window): Give all this window's space
16224 to one adjacent sibling.
16225
dff28924 162261988-12-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16227
16228 * keymap.c (describe_alist): Don't lose on non-cons-cell alist elts.
16229 (Fwhere_is_internal): Don't fail to step down the alist.
16230 (Faccessible_keymaps): Considerable confusion in alist case.
16231
16232 * lread.c (Feval_current_buffer, Feval_region):
16233 Save and restore point as a marker, not a number.
16234 Don't restore it at all if printflag is t.
16235
16236 * print.c (float_to_string): Mostly rewritten; output format
16237 is now a printf %-spec.
16238 (Qfloat_output_format): Doc changed to match.
16239
dff28924 162401988-12-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16241
16242 * ymakefile (obj): Include floatfns.o.
16243 * data.c (syms_of_data): Fix typo Snumberp_or_marker_p.
16244
88c71720 16245 Allow keymaps to have other keymaps as tails.
615d0182
DL
16246 Thus, one keymap can inherit from another.
16247 * keymap.c (Fwhere_is_internal): Ignore non-cons elements of alist.
16248 (Faccessible_keymaps): Support symbols as alist indices.
16249 Ignore alist elements that aren't conses.
16250
16251 * m/m-sun386.h (LDAV_SYMBOL): Define as "avenrun" with no underscore.
16252
16253 * lread.c (read_escape): Support ANSI C `\x...' hex escapes.
16254
da1d68b2 16255 * bytecode.c (Fbyte_code): Fix jump operators for change in `pc'.
615d0182 16256
dff28924 162571988-12-21 Joe Arceneaux (jla@gracilis.ai.mit.edu)
615d0182
DL
16258
16259 * ymakefile: Commented #endif LISP_FLOAT_TYPE. Also changed
16260 the code pertaining to X11 to use the same files as X10.
16261
16262 * bytecode.c (Fbyte_code): Declared unsigned char *pc.
16263
dff28924 162641988-12-19 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
16265
16266 * xterm.c: Finished a first cut of the X11 version.
16267
dff28924 162681988-12-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16269
16270 * sysdep.c (select): `buf' is now unsigned char.
16271
dff28924 162721988-12-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16273
16274 * m/m-elxsi.h: Don't define WORD_MACHINE or CANNOT_DUMP.
16275 Do define symbols for load average.
16276 Define COFF and ADJUST_EXEC_HEADER.
16277
dff28924 162781988-12-16 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182 16279
da1d68b2
JB
16280 * sink.h, sinkmask.h: Same file now works for both X10 and X11.
16281 * xterm.c, xfns.c (x_text_icon) Can now take new name as parameter.
615d0182 16282
dff28924 162831988-12-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16284
16285 * m/m-is386.h: No need to undef HAVE_PTYS, HAVE_SOCKETS, SYSV_PTYS
16286 since s-usg5-3.h no longer defines them.
16287
dff28924 162881988-12-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16289
16290 * bytecode.el (Fbyte_code): Cache the pointer in the string
16291 to avoid recalculating it at each fetch.
16292 Also turn off the error check for stack overflow/underflow.
16293
dff28924 162941988-12-14 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu)
615d0182
DL
16295
16296 * xfns.c: Made the first cut for X11 version.
da1d68b2 16297 * xterm.c (x_reset_cursor): Did the X11 version.
615d0182 16298
dff28924 162991988-12-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16300
16301 * keyboard.c (Fexecute_mouse_event): Set Vmouse_event. Doc fix.
16302 Run Vmouse_hook at the end.
16303 (syms_of_keyboard): Define var `mouse-hook'.
16304
dff28924 163051988-12-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16306
16307 * term.c (insert_glyfs): Typo, was fetching G twice.
16308
dff28924 163091988-12-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16310
16311 * keymap.c (describe_buffer_bindings): Print mouse bindings too.
16312 (describe_map): If have a chartab, use mouse-describe-key for prefixes.
16313 * keymap.c (describe_{map,map_tree,alist}, describe_vector):
16314 Extra arg mapping chars to their names. Calls changed.
16315 * syntax.c (describe_syntax_1): Call changed.
16316
16317 * keymap.c (Vglobal_mouse_map): Make it exist unconditionally.
16318
16319 * keymap.c (apropos1): Clean up.
16320 Do where-is-internal only if there is a function definition.
16321 Use mouse-describe-key to turn mouse key sequences into strings.
16322 (Fwhere_is): Check the mouse map too;
16323 (Fwhere_is_internal): New arg is global map to use.
16324 All callers changed in keypad.c and doc.c.
16325 (where_is_string): New fn cvts result of Fwhere_is_internal to string.
16326
dff28924 163271988-12-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16328
16329 * emacs.c (stack_bottom): New variable, set in main.
16330 * alloc.c (Fgarbage_collect): Save a copy of the entire stack contents.
16331
dff28924 163321988-12-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16333
16334 * editfns.c (Funix_umask, Funix_sync): New functions.
16335
16336 * process.c (Fsignal_process): New function.
16337
dff28924 163381988-12-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16339
16340 * editfns.c (Fsubst_char_in_region): Fix typo in when to un-modify buf.
16341
dff28924 163421988-12-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16343
16344 * process.c (create_process): Take the usg's setpgrp and the close-and
16345 -open of the tty outside the TIOCNOTTY conditional, since TIOCNOTTY
16346 is always missing outside BSD. Now the TIOCNOTTY conditional controls
16347 only the TIOCNOTTY.
16348
dff28924 163491988-12-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16350
16351 * lread.c (Feval_current_buffer, Feval_region):
16352 If there is an error, don't restore original point.
16353
16354 * s-hpux.h (SHORT_CAST_BUG): Define this, for HPUX version 6.2.
16355
16356 * ymakefile (THIS_IS_YMAKEFILE): Define macro to tell m- files
16357 to do special things.
16358
da1d68b2 16359 * m/m-ns16000.h (LOAD_AVE_TYPE, etc.): Don't define them if USG.
615d0182
DL
16360 * m/m-ns16000.h [USG]: Define various macros differently.
16361 (munnari!sibyl.eleceng.ua.oz.au!ian@uunet.uu.net).
16362
16363 * sysdep.c (reset_sys_modes): Don't output a CR here.
16364 * term.c (reset_terminal_modes): Do it here, but first
16365 do a newline if it's a magic cookie terminal.
16366
16367 * sysdep.c (sys_suspend) [USG]: Use `nice' to set subshell pri. to 0.
16368
16369 * sysdep.c (TIOCSETN) [USG]: Use TCSETAW, not TCSETA.
16370
16371 * sysdep.c (setpriority) [USG]: No longer a no-op; use `nice'.
16372
16373 * keymap.c (Fwhere_is_internal): New 4th arg inhibits looking thru
dff28924 16374 indirect definitions--so you can search for one.
615d0182
DL
16375
16376 * alloc.c, fns.c, search.c: Doc fix.
16377
dff28924 163781988-12-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16379
16380 * process.c (read_process_output): Insert with insert_before_markers.
16381
16382 * filelock.c (lock_file_1, lock_superlock):
16383 If USG, use chmod instead of fchmod.
16384
16385 * environ.c (Fsetenv): Doc fix.
16386
dff28924 163871988-11-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16388
16389 * eval.c (do_autoload): Verify FUNNAME is a symbol.
16390
dff28924 163911988-11-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16392
16393 * fileio.c (Fread_file_name): New arg specifies initial minibuf cntnts.
16394 * callint.c (Fcall_interactively): Calls changed.
16395
dff28924 163961988-10-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16397
16398 * insdel.c (make_gap): Error if buffer size exceeds range of Lisp int.
16399
dff28924 164001988-10-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16401
16402 * window.c (Fsplit_window): Prevent error in Fset_window_buffer.
16403
16404 * sysdep.c (gettimeofday): Store -1 thru tzp so caller knows invalid.
16405
16406 * xdisp.c (message): Pass 0 as new arg to doprnt.
16407 * callint.c (Fcall_interactively): Likewise.
16408 * editfns.c (format1):
16409 * doprnt.c (doprnt): Allow 0 as FORMAT_END arg meaning null-terminated.
16410
dff28924 164111988-10-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16412
16413 * keyboard.c: If UNIPLUS, include ioctl.h.
16414
16415 * sysdep.c (utime): Use new flag IRIS_UTIME, not IRIS.
16416 * s-iris*.h: Define that flag.
16417
dff28924 164181988-10-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16419
16420 * term.c (term_init): If have `im' capability, permit ins/del char
16421 even without `ic'.
16422
dff28924 164231988-10-03 Richard Stallman (rms@corn-chex.ai.mit.edu)
615d0182
DL
16424
16425 * m/m-hp9000s300.h: Conditionals for BSD vs HPUX.
16426
16427 * ymakefile: Look for C_SWITCH_SITE, LD_SWITCH_SITE.
16428
dff28924 164291988-09-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16430
16431 * editfns.c (Fformat): Allow nulls in the format.
da1d68b2 16432 * doprnt.c (doprnt): Likewise. End of format string is new arg.
615d0182 16433
dff28924 164341988-09-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16435
16436 * m/m-7300.h: Undefine SHORTNAMES. Supposedly newer Unix now.
16437
16438 * print.c (print): Support new var print_length.
16439 (syms_of_print): Define Lisp var print-length.
16440 * eval.c (Fbacktrace): Print unevalled form with print_length = 3.
16441
16442 * Makefile (tags): Add TAGS as alternate target.
16443 Process the files in ../lisp/term.
16444
dff28924 164451988-09-27 Richard Stallman (rms@corn-chex.ai.mit.edu)
615d0182
DL
16446
16447 * doprnt.c (doprnt): Handle %-20s.
16448 * editfns.c (Fformat): Likewise (make enough space for it).
16449
16450 * minibuf.c (do_completion): If get "Complete but not unique" twice
16451 in a row, display all completions. New var last_exact_completion.
16452
dff28924 164531988-09-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 16454
2a34a036 16455 * dispnew.c (baud_rate): Now a Lisp variable, not a function.
615d0182
DL
16456 * termcap.c (tputs) [emacs]: Use baud_rate as the speed.
16457
dff28924 164581988-09-19 Richard Stallman (rms@gluteus.ai.mit.edu)
615d0182
DL
16459
16460 * window.c (Fset_window_configuration): Set deleted windows' buffer
16461 to nil, via new function delete_all_subwindows.
16462 * window.c (Fset_window_buffer): Reject deleted windows.
16463 * window.c (init_window_once): Init the ->buffer fields
16464 to satisfy error check in Fset_window_buffer.
16465
2a34a036 16466 * xmenu.c (Fx_popup_menu): 1st arg is now ((X Y) WINDOW).
615d0182
DL
16467
16468 * process.c (child_sig): If synch process terminates, clear
16469 synch_process_pid and record synch_process_death.
da1d68b2 16470 * callproc.c (Fcall_process): Return synch_process_death.
615d0182
DL
16471 Always set synch_process_pid and do it with SIGCHLD masked off.
16472 * sysdep.c (wait_for_termination) [subprocesses and not VMS]:
16473 Use alarms to check every second whether synch_process_pid is 0.
16474
dff28924 164751988-09-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16476
16477 * xdisp.c (redisplay_window): If window-point is outside restriction
16478 then correct it in the window.
16479 * window.c (Fdelete_buffer): Don't change buffer's point to a value
16480 outside its restriction.
16481
16482 * sysdep.c (init_sys_modes) [MULTI_SCREEN]: Set Vterminal_screen's
16483 garbaged bit.
16484
dff28924 164851988-09-16 Richard Stallman (rms@corn-chex.ai.mit.edu)
615d0182
DL
16486
16487 * keyboard.c (kbd_buffer_get_char): VMS now uses same code as Unix.
16488
16489 * vmsproc.c: New file for VMS only.
16490 * callproc.c [VMS]: Omit Fcall_process and child_setup_tty.
16491 * emacs.c (main) [VMS]: Call init_vmsproc and syms_of_vmsproc.
16492
16493 * lread.c (OBARRAY_SIZE): Change slightly to 509 (prime).
16494
2a34a036 16495 * keyboard.c, dispnew.c, term.c, xterm.c (meta_flag): MetaFlag renamed.
615d0182
DL
16496 * keyboard.c (Fset_input_mode): 3rd arg sets meta_flag.
16497 (syms_of_keyboard): Variable meta-flag deleted.
16498 * sysdep.c (init_sys_modes): Don't override parity settings
16499 if meta_flag is 0.
16500
dff28924 165011988-09-15 Richard Stallman (rms@corn-chex.ai.mit.edu)
615d0182 16502
2a34a036 16503 * search.c (Fsearch_forward, etc.): All buffer-search functions
615d0182
DL
16504 return new the value of point if they succeed.
16505
dff28924 165061988-09-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16507
16508 * cmds.c (Fnewline): Correct test of ARG1 to inhibit auto-fill.
16509
dff28924 165101988-09-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182
DL
16511
16512 * window.c (Fdelete_window): Put nil as buffer of the deleted window.
16513 This makes select-window get an error earlier.
16514
dff28924 165151988-09-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
615d0182 16516
dff28924 16517 * search.c (search_buffer, string_match, looking_at):
615d0182
DL
16518 Report matcher stack overflow as error, not just failure to match.
16519
16520 * data.c (Fmake_local_variable): Add local variable to simplify
16521 too-complex expression.
16522
16523 * fileio.c (Fdo_auto_save): No "file has shrunk" msg if < 5000 chars.
16524
16525See ChangeLog.2 for earlier changes.
2a34a036 16526
429ab54e
GM
16527 Copyright (C) 1993, 2001, 2002, 2003, 2004, 2005, 2006, 2007
16528 Free Software Foundation, Inc.
7f6d64f8
GM
16529
16530 This file is part of GNU Emacs.
16531
16532 GNU Emacs is free software; you can redistribute it and/or modify
16533 it under the terms of the GNU General Public License as published by
16534 the Free Software Foundation; either version 2, or (at your option)
16535 any later version.
16536
16537 GNU Emacs is distributed in the hope that it will be useful,
16538 but WITHOUT ANY WARRANTY; without even the implied warranty of
16539 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16540 GNU General Public License for more details.
16541
16542 You should have received a copy of the GNU General Public License
16543 along with GNU Emacs; see the file COPYING. If not, write to the
16544 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16545 Boston, MA 02110-1301, USA.
ab5796a9
MB
16546
16547;;; arch-tag: 136a8e5c-4f83-403b-9132-874f1c47f8a9