root/trunk/src/ChangeLog.1

Revision 4220, 102.7 kB (checked in by miyoshi, 8 months ago)

Sync up with Emacs22.2.

  • Property svn:eol-style set to native
Line 
1 1986-05-18  Richard M. Stallman  (rms@prep)
2
3         * alloc.c (malloc_warning_1): Add some advice on
4         the significance of the warning.
5
6 1986-05-09  Richard M. Stallman  (rms@prep)
7
8         * sysdep.c (get_screen_size):
9         Reject values of TIOCGSIZE if they are ridiculous.
10
11 1986-05-05  Richard M. Stallman  (rms@prep)
12
13         * process.c (send_process_1):
14         If pipe buffer is full, wait a second and try again.
15
16 1986-05-02  Richard M. Stallman  (rms@prep)
17
18         * termcap.c (tputs): Round rather than truncating
19         when dividing padcount.
20
21 1986-04-24  Richard M. Stallman  (rms@prep)
22
23         * insdel.c (del_range): Args passed to adjust_markers
24         are now properly adjusted for the gap.
25
26 1986-04-20  Richard M. Stallman  (rms@prep)
27
28         * alloca.c: Declare xmalloc.
29
30 1986-04-17  Richard M. Stallman  (rms@prep)
31
32         * filelock.c (unlock_buffer): New function to unlock
33         a specified buffer.  Use in Fdelete_buffer_internal
34         to avoid lossage if buffer being killed is not current.
35
36 1986-04-14  Richard M. Stallman  (rms@prep)
37
38         * alloc.c (malloc_warning, Fgarbage_collect):
39         If malloc_warning is called during GC, just save warning
40         in malloc_warn_string.  Try again to warn when GC ends.
41
42 1986-04-12  Richard M. Stallman  (rms@prep)
43
44         * m-celerity.h: Remove spurious effectless #define BSTRINGS.
45
46 1986-04-10  Richard M. Stallman  (rms@prep)
47
48         * xfns.c (Fx_get_default):
49         Avoid doing strlen(value) if value is 0.
50
51 1986-04-08  Richard M. Stallman  (rms@prep)
52
53         * indent.c (compute_motion):
54         Change unsigned short back to short.  unsigned short is plain
55         wrong and causes infinite loops when horizontal scrolling is used.
56         Introduced macros HPOS and VPOS for extracting components of cpos.
57         Alternate HPOS definition for Celerity since casting to (short)
58         loses there.
59
60 1986-04-07  Richard M. Stallman  (rms@prep)
61
62         * dispnew.c (update_screen):
63         Don't zero OPhysScreen and DesiredScreen until after
64         final error check.  Omit the error check unless debug_end_pos.
65
66 1986-04-06  Richard M. Stallman  (rms@prep)
67
68         * cm.c (calccost):
69         Was returning garbage if arrived at fail: by goto fail;.
70
71 1986-03-27  Richard Mlynarik  (mly@prep)
72
73         * dispnew.c:
74         Typo: `#ifdef defined...' => `#if defined...'
75
76 1986-03-26  Richard M. Stallman  (rms@prep)
77
78         * doc.c (FSnarf_documentation):
79         Appending the arg to the file name must be done
80         whether or not CANNOT_DUMP.
81
82 1986-03-25  Richard M. Stallman  (rms@prep)
83
84         * fileio.c (Fsubstitute_in_file_name):
85         // at beginning of filename is meaningful on Apollo.
86
87         * keyboard.c (command_loop_1):
88         If C_ALLOCA, cause it to garbage collect each time around this loop.
89
90         * crt0.c: If NEED_ERRNO defined, declare errno.
91         * m-7300.h: New file.
92
93 1986-03-25  Richard Mlynarik  (mly@prep)
94
95         * alloc.c (Fmake_symbol):
96         CHECK_STRING the argument.
97
98 1986-03-24  Richard M. Stallman  (rms@prep)
99
100         * xfns.c (Fx_proc_mouse_event):
101         Use shifts rather than byte addressing to extract from .detail.
102
103 1986-03-24  Richard Mlynarik  (mly@prep)
104
105         * minibuf.c (do_completion):
106         Only funcall predicate if it is non-nil
107         Make completion of "nil" in obarrays work.
108
109 1986-03-21  Richard M. Stallman  (rms@prep)
110
111         * fileio.c (Fsubstitute_in_file_name):
112         #if 0 last change (LOGNAME); it makes vax running 5.0 crash.
113
114 1986-03-20  Richard M. Stallman  (rms@prep)
115
116         * unexec.c (make_hdr): Avoid comparing a_bss field with 0.
117         It is unsigned on some machines.  Save sbrk (0) in tem.
118
119 1986-03-19  Richard M. Stallman  (rms@prep)
120
121         * minibuf.c (do_completion):
122         Don't say string is exact match if it fails the predicate.
123
124         * process.c (create_process):
125         For STRIDE: use FIONBIO to make pipe/pty non-blocking.
126         The fcntl alone failed to do it.
127
128         * fileio.c (Ffile_directory_p, Ffile_modes):
129         Don't remove trailing slash for stat if path is "/".
130
131         * process.c (kill_buffer_processes):
132         Pass nil, not 0, to sig_process for current_group arg.
133
134 1986-03-18  Richard M. Stallman  (rms@prep)
135
136         * process.c (handle_process_output):
137         Avoid error if process's buffer is dead.
138
139         * eval.c (un_autoload,do_autoload):
140         The Vautoload_queue mechanism was all broken.
141
142         * fileio.c (Fsubstitute_in_file_name):
143         On USG, if looking for env var USER and not found, use LOGNAME.
144
145 1986-03-16  Richard M. Stallman  (rms@prep)
146
147         * s-usg*.h, s-unipl*.h:
148         Replace default ADDR_CORRECT with a no-op.
149         Default triggers compiler bug on some systems.
150         Remove same thing from m-stride.h since now redundant there.
151
152         * keyboard.c (init_keyboard, interrupt_signal):
153         For USG, handle SIGQUIT just like SIGINT.
154
155         * sysdep.c (init_sys_modes):
156         For HPUX, use C-g for the SIGQUIT char as well as the SIGINT char
157         as using CDEL causes Meta-DEL to send a SIGQUIT!
158
159         * process.c: On Uniplus, time.h is under sys/, as in bsd.
160
161         * sysdep.c (reset_sys_modes):
162         Don't use FASYNC if it is not defined.
163
164 1986-03-15  Richard M. Stallman  (rms@prep)
165
166         * window.c (save_window_restore):
167         Fix logic for handling dead buffers.
168         Don't try to store nil for the mark into the buffer
169         if the buffer is nil.
170
171         * alloca.s: Put #ifndef HAVE_ALLOCA AFTER including config.
172
173         * ymakefile: Always assemble alloca.s if C_ALLOCA isn't set.
174
175 1986-03-14  Richard M. Stallman  (rms@prep)
176
177         * s-usg5.0.h: Remove LOADER_N_SWITCH.
178
179 1986-03-14  Richard Mlynarik  (mly@prep)
180
181         * editfns.c:
182         Improve doc for bolp, bobp, eolp.
183
184 1986-03-14  Richard M. Stallman  (rms@prep)
185
186         * cm.c (calccost): Refuse to use incremental cursor motion
187         after wrapping on terminals with MagicWrap (xn flag).
188
189 1986-03-13  Richard M. Stallman  (rms@prep)
190
191         * emacs.c (main): For APOLLO: reserve 4meg with set_sbrk_size.
192
193         * alloc.c (Fpurecopy): Fix typo unsignedint.
194
195 1986-03-12  Richard M. Stallman  (rms@prep)
196
197         * dired.c (file_name_completion):
198         Allow exact match against an ignored extension.
199         Can thus delete foo.o even if foo.out exists.
200
201         * s-hpux.h: Turn off HAVE_PTYS since their csh has "sanity
202         checking" and other programs seem to lose with ptys.
203
204 1986-03-11  Richard M. Stallman  (rms@prep)
205
206         * sysdep.c ({un,}request_sigio and callers):
207         Make alternate names init_sigio and reset_sigio;
208         callers in sysdep.c use those names.
209         In 4.1, change {un,}request_sigio to do sighold/sigrelse;
210         don't change init_sigio and reset_sigio.
211
212         * m-vax.h: If USG5_2, use -lPW and HAVE_ALLOCA.
213
214         * alloc.c (Fpurecopy, mark_object): In tests for pureness,
215         always use XUINT and unsigned comparison.
216         * lisp.h (CHECK_IMPURE): Likewise.
217
218         * doc.c (FSnarf_documentation):
219         If CANNOT_DUMP, find DOC in directory PATH_EXEC.
220
221         * ymakefile (APOLLO only): Set LTERMCAP.
222         * m-apollo.h: Alter VALBITS and GCTYPEBITS.
223
224         * term.c (delete_chars): Pass num chars to the hook.
225         * term.c (raw_topos), termhooks.h: Add raw_topos_hook.
226
227         * unexec.c (make_hdr):
228         New compiler switch NO_REMAP means don't change text/data boundary.
229
230 1986-03-10  Richard M. Stallman  (rms@prep)
231
232         * indent.c, window.c, xdisp.c:
233         Make compute_motion, vmotion and display_text_line
234         all return a pointer to a global structure, not a struct itself.
235         Add * to all calls.
236
237         * syntax.c (scan_sexps_forward):
238         Make it return a pointer to a global structure,
239         not a struct itself.  Change caller (Fparse_partial_sexp).
240
241         * s-usg*.h: #define static as nothing.
242         * m-hp200.h: No longer needs to #define static.
243
244         * unexec.c (adjust_lnnoptrs):
245         Replace dummy defn with one that does the job.  Also
246         involves including syms.h and making global vars
247         bias and lnnoptr that are set in make_hdr.
248
249 1986-03-08  Richard M. Stallman  (rms@prep)
250
251         * editfns.c (init_editfns):
252         Make AMPERSAND_FULL_NAME case start with USER_FULL_NAME.
253
254         * crt0.c (BOGUS case):
255         Move "start:" from non-tower32 case to unconditional.
256
257         * unexec.c [COFF]:
258         Put the rounding-to-page-boundaries of section positions
259         within the file into a UMAX conditional.  (See Feb 19).
260
261 1986-03-06  Richard M. Stallman  (rms@prep)
262
263         * ymakefile: Add -k100000 switch to ld, for celerity.
264
265         * eval.c (funcall_lambda):
266         Change a comma-sequence to a compound statement.
267
268 1986-03-03  Richard M. Stallman  (rms@prep)
269
270         * xfns.c, xterm.c:
271         Install much-changed versions already tested at Athena.
272
273         * ymakefile: Replace -lc with $(LIBSTD) and define LIBSTD
274         according to a config macro LIB_STANDARD.
275         m-tower32.h must define LIB_STANDARD.
276
277         * process.c (read_process_output):
278         New subroutine that does the reading and handling of process output.
279         Do so until none is left.
280         (wait_reading_process_input): Call new subroutine.
281         (sig_process): If we get a pgrp number, make it negative.
282         Always send signal to pggrp; use killpg if BSD, kill otherwise.
283         (child_signal): Don't deactivate dead processes here.
284         (change_msgs): Deactivate them here, when notification is done.
285         But first, call read_process_output to get any output that's left.
286
287         * keyboard.c (read_avail_input):
288         (for sysV) Use fcntl, not ioctl, to make read not wait.
289
290         * alloca.s: Put entire file inside #ifndef HAVE_ALLOCA.
291
292         * sysdep.c (child_setup_tty, init_sys_modes):
293         (for sysV) Set VTIME to zero; with VMIN=1 this means
294         no time limit.
295
296 1986-03-02  Richard M. Stallman  (rms@prep)
297
298         * keyboard.c (quit_throw_to_get_char):
299         Before really throwing, clear waiting_for_input
300         so another interrupt won't also try to throw.
301         (get_char): Add error check for getcjmp being zero
302         where it should not be.  Put this under DEBUG switch.
303
304 1986-03-01  Richard M. Stallman  (rms@prep)
305
306         * crt0.c: Defining BOGUS forces use of the vax-tahoe-sequent case.
307         Add a small conditional within it for tower32.
308         Don't allow use of the m68000/m68k code if BOGUS is defined.
309
310         * sysdep.c (init_sys_modes):
311         For sysV: If want flow control, actively set IXON,
312         and also clear IXANY if that is defined.
313
314         * sysdep.c (rename):
315         It was doing completely wrong things to various files.
316
317         * tparam.c (tgoto): Move buf outside the function
318         and rename as tgoto_buf.  In case #define static as nothing.
319
320         * unexec.c (make_hdr):
321         If macro EXEC_MAGIC is defined, let it specify the magic
322         number for the output file.
323
324         * xdisp.c (message): Change name `buf' to `message_buf'
325         to avoid name clash when #define static as nothing.
326
327         * ymakefile: Change DOCSTR to DOC.
328
329 1986-02-28  Richard M. Stallman  (rms@prep)
330
331         * buffer.c (Fdelete_buffer_internal):
332         Unchain all markers from a buffer being killed.
333
334 1986-02-27  Richard M. Stallman  (rms@prep)
335
336         * unexec.c, malloc.c:
337         If NBPG is used for getpagesize, multiply it by CLSIZE
338         and define that as 1 if not otherwise defined.
339
340 1986-02-26  Richard M. Stallman  (rms@prep)
341
342         * lread.c (Fload):
343         Detect when fdopen returns 0 given a valid descriptor.
344
345         * sysdep.c (stuff_char):
346         Declare arg as char, so TIOCSTI does not give wrong address.
347
348 1986-02-25  Richard M. Stallman  (rms@prep)
349
350         * dispnew.c (update_screen):
351         * xdisp.c (DoDsp, Fredraw_display):
352         Insert checks to abort if screen_height is zero,
353         to detect the memory clobbering bug.
354
355         * process.c:
356         For 4.1, include wait.h, not sys/wait.h.
357         Use O_NDELAY only if it is defined.
358
359         * s-bsd4.1.h:
360         Don't HAVE_TIMEVAL.  Define open as sys_open and lstat as stat.
361         Define the O_ symbols for open args.
362         Turn off CLASH_DETECTION, for now.  Turn off HAVE_TIMEVAL.
363
364         * sysdep.c (bcopy, bzero, bcmp):
365         Make them really do the work, not try to use memset, memcopy, etc.
366
367         * sysdep.c (get_system_name):
368         4.1 needs its own definition of this.
369
370         * sysdep.c (for BSD 4.1):
371         Define sys_open, since 4.1 open takes only two args.
372         Redefine LLITOUT as 0; it loses in 4.1.
373         Define LNOFLSH.  Include wait.h, not sys/wait.h.
374
375 1986-02-24  Richard M. Stallman  (rms@prep)
376
377         * malloc.c: Define getpagesize as macro when not avail as syscall.
378
379 1986-02-23  Richard M. Stallman  (rms@prep)
380
381         * terminfo.c: Provide a definition of ospeed.
382
383 1986-02-22  Richard M. Stallman  (rms@prep)
384
385         * alloca.s (hack_sky):
386         Move label hack3; bug was making some floating ops dump core.
387
388         * dispnew.c (update_screen):
389         Don't free a line twice if it is in both DesiredScreen
390         and OPhysScreen.  Can happen if line is copied into
391         DesiredScreen by `scrolling', then lost from PhysScreen
392         by the scrolling that is done.
393         Also remove a debugging check that did not go off
394         when this bug hit.
395
396 1986-02-18  Richard M. Stallman  (rms@prep)
397
398         * indent.c (compute_motion):
399         Change all short to unsigned short.  Needed for celerity.
400
401         * keyboard.c (init_keyboard):
402         Initialize kbd_ptr.  Needed for celerity.
403
404         * unexec.c (make_hdr for celerity):
405         Copy their own header field a_scovfrl from ohdr.
406
407         * unexec.c for COFF:
408         Round positions of text and and data sections in output file
409         to page boundaries.
410
411         * crt0.c: Install version for Encore machines.
412         Also for celerity (same as pyramid and orion).
413
414         * ymakefile:
415         Don't use -X for BSD systems that use COFF.
416         On UMAX, give ld the file align.umax (a new file)
417         via the make-macro ALIGNMENT.
418
419         * align.umax, s-umax.h:
420         Two new files for Encore computers.
421
422         * lread.c (Vload_path): Make it not static.
423         In sysV, static vars go in a place in memory below my_edata.
424
425         * dispnew.c (make_display_lines):
426         Store all the lines in an array for debugging, to help
427         debug the problem where lines get lost.
428
429 1986-02-14  Richard M. Stallman  (rms@prep)
430
431         * alloca.s (ns16000):
432         Change non-sequent defn of REGISTER: add a displacement of zero.
433
434 1986-02-13  Richard M. Stallman  (rms@prep)
435
436         * alloc.c (purecopy, mark_object), lisp.h:
437         Use XUINT, not XINT, in VIRT_ADDR_VARIES checks for pure object.
438
439 1986-02-11  Richard M. Stallman  (rms@prep)
440
441         * fns.c (Fload_average):
442         Don't use struct nlist if no LOAD_AVE_TYPE.
443
444         * crt0.c: Add missing semicolon in vax/tahoe/sequent code.
445
446 1986-02-10  Richard M. Stallman  (rms@prep)
447
448         * crt0.c: Remove duplicate _start for pyramid.
449
450 1986-02-07  Richard M. Stallman  (rms@prep)
451
452         * sysdep.c (gettimeofday): Define this only if HAVE_TIMEVAL.
453
454         * m-vax.h:
455         If USG, don't define LOAD_AVE_... and do define C_ALLOCA.
456
457         * filelock.c: On USG, include fcntl.h.
458         (lock_file): Declare getpwuid external.
459
460         * window.c (Fmove_to_window_line):
461         If window start is out of restriction,
462         choose a new start here.
463
464         * alloca.s:
465         Modify ns16000 assembler syntax for the sequent machine.
466
467         * crt0.c: Sequent uses same code as vax except start1
468         takes one extra first arg that it ignores.
469         A new macro BOGUS is defined to allow machines to use the
470         same code and control how many args to ignore.
471
472         * unexec.c: For sequent machine, handle its incompatible
473         meaning of N_TXTOFF, and use N_ADDRADJ where necessary.
474
475 1986-02-06  Richard M. Stallman  (rms@prep)
476
477         * sysdep.c (init_sys_modes):
478         Set tty flags ISTRIP, CS8 and PARENB right for Meta key.
479
480         * ymakefile:
481         Define CPP macro as name of cpp to use.  Use it for alloca.s.
482         Make LOADER_N_SWITCH control solely the -N.
483
484 1986-02-06  Richard Mlynarik  (mly@prep)
485
486         * fns.c (Frequire):
487         Fix documentation.
488
489 1986-02-06  Richard M. Stallman  (rms@prep)
490
491         * indent.c (compute_motion):
492         For tabs, make sure to take remainder of positive #
493         since % can round upward with negative numbers.
494
495         * bytecode.c (syms_of_bytecode):
496         Fix typo in symbol name "byte-code".
497
498         * xdisp.c (try_window_id):
499         Use adjusted hpos of bp in computation of ep.
500         Adjustde hpos can be negative after a continuation.
501
502         * fileio.c (Finsert_file_contents):
503         Was failing to update n as chars were read.
504         Rearrange order of actions to make it more like InsCStr.
505         Call prepare_to_modify_buffer even if no CLASH_DETECTION.
506         Don't make gap if gap is big enough.
507
508 1986-02-05  Richard M. Stallman  (rms@prep)
509
510         * termcap.c (tgetent):
511         Only use TERMCAP var as termcap entry value
512         if it has a name that matches the specified one.
513         New function name_match to match an entry against a name.
514         Do allow matching the first name in an entry.
515
516         * indent.c (pos_tab_offset):
517         Take remainder by window-width - 1 (# of effective columns)
518         to fix bug where alternating TAB 1 TAB 1... causes a 1
519         to shift sideways in incremental redisplay in DoDsp.
520
521 1986-02-04  Richard M. Stallman  (rms@prep)
522
523         * keyboard.c (command_loop_1):
524         Don't do direct output if input is pending.
525
526         * xterm.h: Find the file Xlib.h in /usr/include/X.
527
528 1986-02-03  Richard M. Stallman  (rms@prep)
529
530         * process.c (pty): HPUX has different dir for pty-tty devices.
531
532         * termcap.c: Don't include types.h or file.h.
533
534 1986-02-02  Richard M. Stallman  (rms@prep)
535
536         * print.c (print):
537         Print a marker's corrected position, not its bufpos.
538
539         * window.c (Fselect_window):
540         If old and new windows show same buffer,
541         make sure new point is inside the clipping region.
542
543 1986-01-31  Richard M. Stallman  (rms@prep)
544
545         * fns.c (Fload_average):
546         In NLIST_STRUCT case, set nl[1] to 0, not "".
547         Fix KERNEL_FILE and LDAV_SYMBOL for HPUX.
548
549 1986-01-30  Richard M. Stallman  (rms@prep)
550
551         * m-pyramid.h: Turn on NO_UNION_TYPE.
552
553         * fns.c: For BSD, include sys/param.h.
554
555 1986-01-29  Richard M. Stallman  (rms@prep)
556
557         * fns.c (Fload_average):
558         Define a few symbols LDAV_SYMBOL and KERNEL_FILE_NAME
559         and NLIST_STRUCT to use later to simplify the code.
560
561         * s-usg5.2.h: Turn on `subprocesses'.
562
563         * sysdep.c:
564         #undef open, read and write at the start.
565         Make sys_read, etc. always available for uses that need
566         a nonaborting read.
567         (select): Several bug fixes for system V.
568         (init_sys_modes, child_setup_tty): Init VTIME to a large #, not 0.
569         Use TCSETA, not TCSETAW (why wait?).
570
571         * process.c:
572         (wait_reading_process_output): If don't HAVE_TIMEVAL
573         and no timeout desired, use 100000 seconds, which
574         the select emulator recognizes.
575         When reading data, if a char is buffered in proc_buffered_char,
576         put it at the front of the data read.
577         (kill_buffer_process): Ignore processes really already dead.
578         (init_process): Initialize proc_buffered_char to -1 (empty).
579
580         * keyboard.c (fake_suspend):
581         Don't mess with the SIGCLD handler.
582         Use wait_for_termination to detect subshell termination.
583         (read_avail_input, for USG):
584         Use TCSETA, not TCSETAW; no waiting.
585
586         * term.c (set_terminal_modes): Don't clear screen here.
587         * xdisp.c (Fredraw_display): Clear screen here instead.
588
589 1986-01-28  Richard M. Stallman  (rms@prep)
590
591         * s-hpux.h: Do #undef SIGIO.
592
593         * callproc.c, data.c, dispnew.c, emacs.c, keyboard.c,
594         * process.c, sysdep.c:
595         Include signal.h before config so can #undef SIGIO in config.
596
597         * lread.c (read_escape):
598         Make ?\^? produce 0177.
599
600         * sysdep.c:
601         Define SIGCHLD as SIGCLD only if SIGCHLD not already defined.
602         (select): Don't give select_alarmed an initialization.
603
604         * unexec.c:
605         For HPUX, copy the peculiar header fields for debugger info.
606
607         * keyboard.c (kbd_buffer_get_char): Don't call read_avail_input
608         if kbd_count is nonzero.  (Don't know how it can be, but
609         it is observed to happen.)
610
611         * process.c:
612         Define SIGCHLD as SIGCLD only if SIGCHLD not already defined.
613         (wait_handling_process_output): Fill in one non-HAVE_TIMEVAL case.
614
615 1986-01-27  Richard M. Stallman  (rms@prep)
616
617         * sysdep.c (reset_sys_modes):
618         Call unrequest_sigio twice.
619         Make sure FASYNC is clear in old_fcntl_flags.
620
621 1986-01-26  Richard M. Stallman  (rms@prep)
622
623         * fns.c (Frandom):
624         Removed case for number as arg, since it has problems
625         in union-type case and it is not documented or used.
626
627         * lisp.h (XSET):
628         Fix bugs in the union-type definition.
629
630 1986-01-24  Richard M. Stallman  (rms@prep)
631
632         * process.c:
633         Define macros for accessing the `union wait' structure.
634
635         * keyboard.c (fake_suspend):
636         Set subshell current dir to current buffer's default dir.
637
638 1986-01-23  Richard M. Stallman  (rms@prep)
639
640         * dispnew.c (Fsit_for):
641         Call gobble_input only if SIGIO exists.
642
643         * keyboard.c (fake_suspend):
644         Save and restore the SIGCLD handler, if that exists.
645
646         * process.c (create_process):
647         SKTPAIR-or-not now controls only what to do if cannot use a pty.
648         For USG other than UNIPLUS, instead of sigsetmask (nonexistent),
649         save away and temporarily turn off the SIGCHLD handler.
650         (child_sig): Various USG changes.
651
652         * sysdep.c (wait_for_termination):
653         Provide case for sysV not UNIPLUS (right for STRIDE at least).
654         * sysdep.c (child_setup_tty):
655         Set the VMIN and VTIME fields.
656
657         * callint.c (Fcall_interactively):
658         Globalize the variable argfuns, for HPUX's sake.
659
660         * keyboard.c (fake_suspend):
661         Use execlp, not execl.
662
663         * sysdep.c (random, srqndom):
664         Add dummy for srandom => srand.  Enable both for 4.1 and USG.
665         * fns.c (Frandom):
666         Remove conditional; let those dummies serve.
667
668         * Makefile:
669         Use sed to remove blank lines and from xmakefile.
670
671         * ymakefile:
672         Pass alloca.s thru more seds to remove #... lines, etc.
673         Move tparam.o into otherobjs; for HPUX, use terminfo.o instead.
674         No need to conditionalize recipes for xfns.o and xterm.o.
675         No longer need to duplicate the xemacs: line.
676         For HPUX, define LIBBSD.  Use that in LIBES.
677
678         * editfns.c (init_editfns):
679         Handle case of pw == 0 (USER is not a known user).
680
681         * cm.c:
682         Include config.  Make cost and evalcost global.
683         (cmcostinit): Don't pass 0 as string to tgoto (new macro CMCOST).
684
685         * terminfo.c (new file):
686         Defines a version of tparam for use with terminfo.
687
688 1986-01-22  Richard M. Stallman  (rms@prep)
689
690         * dispnew.c:
691         If HPUX, insert time.h instead of sys/time.h.
692
693         * sysdep.c:
694         If HPUX, insert time.h instead of sys/time.h.
695         In get_system_name, globalize a static variable `name'.
696         In readdir, globalize `dir' as `dir_static'.
697         Make some system-call imitations "not HPUX".
698
699         * process.c:
700         If HPUX, insert time.h instead of sys/time.h.
701         Do them only if HAVE_TIMEVAL.
702         If HAVE_PTYS and HPUX, insert sys/ptyio.h.
703         In function `pty', globalize static var `name' as `ptyname'.
704
705         * term.c:
706         (term_init): If TERMINFO, where tbuf is not used,
707         allocate combuf with size 2044.
708         (evalcost): Flush it.  Make it extern and use the one in cm.c.
709
710         * dired.c:
711         Include stat.h before config.h so config can override S_IFLNK on
712         HPUX (where that symbol exists but there are no symbolic links).
713         Do not include time.h; not needed.
714
715         * xdisp.c (fmodetrunc, decode_mode_spec):
716         Rename local static buffers buf, tbuf and make them global.
717         Static variables go into initialized data space in HPUX.
718         * fns.c (Fload_average):
719         Similar hack for internal static vars initialized, channel, nl.
720
721         * lread.c:
722         Change condition for defining X_OK to be that X_OK is not defined.
723
724         * alloc.c (init_alloc_once):
725         Fix erroneous names data_bytes_{un,}used
726         inside the VIRT_ADDR_VARIES conditions.
727
728         * emacs.c:
729         Don't include time.h or resource.h; just #define PRIO_PROCESS.
730
731         * xdisp.c (redisplay_window):
732         Don't shift window-start to avoid end of buffer
733         unless window contents have changed too.
734
735         * xdisp.c (DoDsp):
736         If nothing has changed except minibuffer message,
737         no need to call redisplay_window.
738
739         Problem: standard sysV has no file ioctl.h.
740
741         * process.c, keyboard.c, dispnew.c, sysdep.c:
742         Include ioctl.h in BSD, termio.h and/or fcntl.h in sysV.
743
744         * callproc.c: No longer needs ioctl.h; don't include.
745         * xdisp.c: No longer needs ioctl.h or signal.h; don't include.
746
747         * emacs.c:
748         Include sys/ioctl.h only for BSD.  ioctl used only in BSD.
749
750 1986-01-21  Richard Mlynarik  (mly@prep)
751
752         * keyboard.c (EchoThem):
753         Always display an explicit prompt, even if echo_keystrokes == 0.
754
755 1986-01-21  Richard M. Stallman  (rms@prep)
756
757         * keyboard.c (kbd_buffer_store_char, fake_suspend):
758         Take the STRIDE code for subshell out of kbd_buffer_store_char
759         and call it fake_suspend.  Call it from previous place and
760         also from Fsuspend_buffer, on all systems that lack SIGTSTP.
761         Clean the code up a little bit.
762
763         * process.c:
764         Don't include sgtty.h; no longer needed.
765         Make use of wait3 depend on existence of WNOHANG.
766
767         * unexec.c:
768         Allow the m- file to override defn of ADDR_CORRECT (m-stride.h does).
769         Have and use pagemask to round data_start in COFF case too.
770         Always define getpagesize as macro, for 4.1 and USG where
771         it is not provided as a system call.
772         This takes care of the STRIDE changes for unexec.
773
774         * ymakefile:
775         Give ld the arg $(STARTFLAGS), and define that based on cpp macro
776         TEXT_START_ADDR when that is defined.  This is for systems where
777         the -T switch is necessary.
778
779         * unexec.c (make_hdr):
780         Make one sun3 fix machine-independent.
781         (Prevent a_bss from being negative).
782
783         * casefiddle.c (casify_region):
784         New flag value CAPITALIZE_UP which is like CAPITALIZE
785         but changes only the initials.  Function upcase_initials_region
786         is an interface to this mode.
787
788         * abbrev.c (Fexpand_abbrev): Use upcase_initials_region.
789
790         * process.c (create_process):
791         Install Fish's other new UNIPLUS conditionalization
792         on the hackery for xforkin, etc.
793
794 1986-01-20  Richard M. Stallman  (rms@prep)
795
796         * fns.c (Frandom):
797         Optional arg of t means randomize the seed.
798         This change was really made at some previously time;
799         just changed the doc string now.
800
801         * eval.c (do_autoload):
802         Bind autoload-queue to avoid loss on recursive autoloads.
803
804         * xdisp.c (try_window_id):
805         If everything on screen below change is whitespace,
806         don't scroll, and return -2.
807
808         * dispnew.c (update_screen):
809         Rewrite to avoid dependence on distance between
810         the two arrays PhysScreen and DesiredScreen.
811
812 1986-01-19  Richard M. Stallman  (rms@prep)
813
814         * fns.c (mapcar1):
815         Preinitialize contents of vals, so it won't contain junk
816         to be seen by a GC inside this function.
817
818         * eval.c (various):
819         Use error, not Fsignal, to report eval-depth-overflow.
820         Previous calls to Fsignal were buggy.
821
822 1986-01-17  Richard Mlynarik  (mly@prep)
823
824         * lread.c (init_obarray):
825         Kludge around losing pyramid compiler.
826
827 1986-01-14  Richard Mlynarik  (mly@prep)
828
829         * window.c (Fdelete_window):
830         When deleting a dummy parent window, don't try to GC buffer stuff.
831
832         * process.c (list_processes_1):
833         Don't blow out if buffer associated with process is,
834         through some bug I don't understand, killed.
835
836         * keymap.c (get_keyelt), keyboard.c (Fcommand_execute):
837         Allow (lambda ...) to appear as a key's definition.
838
839         * m-sun3.h, unexec.c:
840         Sun3 changes from Barry Shein.
841
842 1986-01-10  Richard Mlynarik  (mly@prep)
843
844         * m-stride.h, s-stride.h, crt0.c, fns.c, keyboard.c, process.c,
845           sysdep.c.
846         Changes for STRIDE micro
847         Changes still pending for etc/loadst.c.
848
849         Fsuspend_emacs in keyboard.c is defined to run a subshell under
850         emacs -- perhaps this is a reasonable thing in all wimpy unix
851         versions.
852
853 1986-01-10  Richard M. Stallman  (rms@prep)
854
855         * dispnew.c (update_line):
856         Don't consider spaces at beginning as special if line is
857         highlighted.
858         Avoids losing the inverse-video on leading spaces in mode lines
859         on terminals where erasing does not turn on highlightig (vt100?).
860
861         * process.c (pty):
862         On UNIPLUS, don't try opening other side.
863
864         * filelock.c (lock_file_1):
865         If lock file is invalid, delete it and continue.
866         If delete fails, ignore the lock.
867
868 1986-01-09  Richard Mlynarik  (mly@prep)
869
870         * syntax.c:
871         New function check_syntax_table.
872
873         Make Fmodify_syntax_entry take third arg SYNTAX-TABLE,
874         which defaults to current buffer's syntax table.
875         -- doc change in auxdoc.c.
876
877         Rename Fmake_syntax_table FCopy_syntax_table
878         after making it take an arg (default Vstandard_syntax_table)
879         -- retain alias in subr.el.
880
881 1986-01-08  Richard M. Stallman  (rms@prep)
882
883         * sysdep.c, term.c (get_screen_size):
884         New function to get screen size from kernel when possible.
885         In sysdep; called from term_init in term.c.
886         Must test this on Sun and on 4.3.
887
888         * dispnew.c (Fding):
889         Make doc say it terminates kbd macros.
890
891 1986-01-07  Richard Mlynarik  (mly@prep)
892
893         * doc.c (Fsubstitute_command_keys):
894         Insert an explanatory message for "\\{unbound-variable}".
895
896 1986-01-06  Richard Mlynarik  (mly@prep)
897
898         * termcap.c (tputs):
899         Punt if passed (char) 0.
900
901 1985-12-31  Richard M. Stallman  (rms@prep)
902
903         * dispnew.c (Ding):
904         Expand error message for keyboard macro case.
905
906         * dired.c (Ffile_attributes):
907         Fix documentation error about meaning of ctime.
908
909 1985-12-28  Richard M. Stallman  (rms@prep)
910
911         * callproc.c (Fcall_process):
912         Fix typo in name synch_process_pid.
913
914 1985-12-27  Richard M. Stallman  (rms@prep)
915
916         * s-unipl5.2.h:
917         Define HAVE_SELECT.
918
919         * ymakefile (xemacs):
920         If the commands are conditional, the target/dependencies line must
921         be conditional also.
922
923 1985-12-20  Richard M. Stallman  (rms@prep)
924
925         * print.c (printchar, strout):
926         If output stream is Qt and noninteractive,
927         don't do the usual interactive output stuff.
928         In strout, avoid changing i so do not truncate the output.
929
930 1985-12-19  Richard M. Stallman  (rms@prep)
931
932         * fns.c (merge):
933         Don't assume args are consecutive; GCPRO each one separately.
934
935         * insdel.c (make_gap):
936         Was adding k bytes of gap; k is supposed to be
937         new desired amount of gap.  Wasted a lot of memory!
938
939         * alloc.c (malloc_warning):
940         Passing Fprinc to internal_with_output_to_temp_buffer
941         loses since Fprinc needs 2 args.  Use intermediate
942         function malloc_warning_1.
943
944 1985-12-18  Richard M. Stallman  (rms@prep)
945
946         * filelock.c (lock_if_free):
947         Kill failing means lock is free only if errno is ESRCH.
948
949         * fns.c (Fy_or_n_p, Fyes_or_no_p):
950         Call Fdiscard_input if user gives invalid answer.
951
952 1985-12-17  Richard M. Stallman  (rms@prep)
953
954         * eval.c (apply_lambda):
955         Do debug-on-exit here, because if we return to Feval
956         the stack vector of evaluated args will be deallocated by then.
957
958         * sysdep.c (wait_for_termination):
959         Add new variable wait_debugging.  Set it nonzero to make
960         this function work in a way that works under dbx.
961
962         * process.c (send_process_1):
963         If not all the data is written, try again to write the rest.
964         Eliminate the alarm stuff, including send_process_alarm.
965         Call report_file_error if write returns negative.
966
967 1985-12-15  Richard M. Stallman  (rms@prep)
968
969         * alloc.c (init_alloc_once):
970         Stop looping if shift produces 1, as well as if produces 0.
971
972 1985-12-14  Richard M. Stallman  (rms@prep)
973
974         * editfns.c (Fregion_{beginning,end}):
975         New Lisp primitives, needed for the things that
976         are put on the command history for "r" arguments.
977
978         * callint.c (Fcall_interactively):
979         If an argument was point or mark, represent it with
980         a suitable expression (point) or (mark) in the
981         command history element.  Also adjust for changed
982         calling conventions of quotify_args.
983
984         * callint.c (quotify_arg):
985         Take one arg; return it if constant, else return
986         a quote-expression for it.
987
988         * callint.c (quotify_args):
989         Don't exempt the first arg.  Use quotify_arg to do the work.
990
991 1985-12-13  Richard M. Stallman  (rms@prep)
992
993         * fileio.c (Fdo_auto_save):
994         Use message1 to output "Auto-saving..."
995         so do not clobber the old message to be restored at end.
996
997 1985-12-12  Richard M. Stallman  (rms@prep)
998
999         * syntax.c:
1000         After turning on immediate_quit, must do QUIT.
1001
1002         * callproc.c (Fcall_process):
1003         Quitting out of running subproc did not happen immediately.
1004         Added QUIT;s after setting immediate_quit on,
1005         removed those after turning it off (not needed there).
1006
1007         * lread.c (init_read):
1008         Don't put ../lisp on Vload_path if CANNOT_DUMP.
1009
1010         * emacs.c (main):
1011         If CANNOT_DUMP, load "loadup.el" as soon as enter editor loop
1012         unless -nl switch is given.
1013
1014         * lread.c (read_list):
1015         Don't use Fsetcdr, since might be changing a cell
1016         in pure space during initial loadup.
1017         Do explicit assign instead.
1018
1019         * lisp.h:
1020         Define CHECK_IMPURE, to get error if object is pure.
1021
1022         * data.c (Fsetcar, Fsetcdr, Faset):
1023         Use CHECK_IMPURE instead of old error checking code.
1024
1025         * data.c (pure_write_error):
1026         New subroutine, called by CHECK_IMPURE.
1027
1028         * m-apollo.h:
1029         Define VIRT_ADDR_VARIES.
1030
1031         * alloc.c:
1032         We now load things into pure space even if cannot dump,
1033         to speed garbage collection.
1034         Turn on Vpurify_flag unconditionally.
1035         Give pure its full size unconditionally.
1036         Change remaining CANNOT_DUMP and APOLLO conditionals
1037         into VIRT_ADDR_VARIES conditionals.
1038
1039 1985-12-10  Richard M. Stallman  (rms@prep)
1040
1041         * fns.c:
1042         Don't include files for load-average if load-average not supported.
1043
1044         * alloc.c:
1045         If CANNOT_DUMP, allocate `pure' very small.
1046         [This has been undone.]
1047
1048         * buffer.c (list_buffers_1):
1049         Use 2 spaces minimum only after buffer name;
1050         go back to 1 space minimum after size and major mode.
1051
1052         * termcap.c:
1053         Avoid use of O_RDONLY and index, so no need for explicit
1054         dependence on system type.
1055
1056         * sysdep.c:
1057         Delete definition of `index'.  Now it's a macro when nec.
1058
1059         * s-usg5.2.h, s-unipl5.2.h:
1060         Define index and rindex as macros.
1061
1062         * dispnew.c (Fsit_for):
1063         Assume select is always available for use.
1064
1065         * buffer.c (Fpop_to_buffer):
1066         Take second arg and pass as second arg to Fdisplay_buffer.
1067
1068         * insdel.c (GapTo):
1069         Dump core if bf_p1, bf_p2 don't differ by gap size.
1070
1071         * keyboard.c (Fsuspend_emacs):
1072         * emacs.c (Fkill_emacs):
1073         Both call new subroutine stuff_buffered_input (in keyboard.c)
1074         which stuffs a string's contents plus any unused input Emacs has
1075         already read.
1076
1077 1985-12-09  Richard M. Stallman  (rms@prep)
1078
1079         * fileio.c (Fdo_auto_save):
1080         Don't auto save a buffer that is not modified
1081         since last real save.
1082
1083         * minibuf.c (minibuffer_completion_help_1):
1084         Use make_number for args to Findent_to.
1085         Omitting make_number always loses on Pyramid, it seems.
1086
1087 1985-12-08  Richard M. Stallman  (rms@prep)
1088
1089         * minibuf.c (Fminibuffer_complete_word):
1090         If next char not unique, try adding an actual space.
1091         If do achieve some completion, replace old buffer text
1092         with the completion (in case of different case).
1093         Also a little cleanup.
1094
1095         * minibuf.c (Ftry_completion):
1096         Fix lossage when second completion found is an initial segment of
1097         the first one.
1098
1099 1985-12-07  Richard M. Stallman  (rms@prep)
1100
1101         * xdisp.c (redisplay_window):
1102         Don't use the clause for only-point-has-changed
1103         for the minibuffer; loses when redisplaying to bring
1104         back minibuffer after an echo area message.
1105
1106         * crt0.c:
1107         Vax code is now used for tahoe machine also.
1108
1109         * alloc.c (init_alloc_once):
1110         For APOLLO, set data_bytes_{free,used} to plausible constant
1111         values.
1112
1113         * eval.c (unautoload):
1114         Declare return type Lisp_Object.
1115
1116         * filelock.c (lock_file):
1117         Check attack with !NULL, not ==.
1118
1119         * keymap.c (describe_command):
1120         Don't apply NULL directly to result of Fkeymapp.
1121
1122         * lisp.h (XSET):
1123         Fix type field assignment in union-type case.
1124
1125         * process.c (Faccept_process_output):
1126         Use XFASTINT around infd field of process.
1127
1128         * search.c (signal_failure):
1129         Returns type Lisp_Object.
1130
1131         * dired.c (Ffile_name_completion):
1132         If arg is null string, return null string immediately.
1133         Idea is don't want to complete "/foo/" into "/foo/bar"
1134         if "bar" is the only file in "/foo/".
1135
1136         * minibuf.c (Ftry_completion):
1137         Handle correctly scmp returning -1.
1138
1139         * alloc.c:
1140         Make malloc_sbrk_used and malloc_sbrk_unused
1141         not be external if APOLLO.
1142
1143 1985-12-06  Richard M. Stallman  (rms@prep)
1144
1145         * emacs.c, keyboard.c, sysdep.c:
1146         Rename InitDsp -> init_sys_modes and RstDsp -> reset_sys_modes.
1147
1148         * emacs.c (main):
1149         Call init_keyboard before init_sys_modes
1150