ChangeLog.1 102 KB
Newer Older
Sam Steingold's avatar
Sam Steingold committed
1
1986-05-18  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
2 3 4 5

	* alloc.c (malloc_warning_1): Add some advice on
	the significance of the warning.

Sam Steingold's avatar
Sam Steingold committed
6
1986-05-09  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
7 8 9 10

	* sysdep.c (get_screen_size):
	Reject values of TIOCGSIZE if they are ridiculous.

Sam Steingold's avatar
Sam Steingold committed
11
1986-05-05  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
12 13 14 15

	* process.c (send_process_1):
	If pipe buffer is full, wait a second and try again.

Sam Steingold's avatar
Sam Steingold committed
16
1986-05-02  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
17

Juanma Barranquero's avatar
Juanma Barranquero committed
18
	* termcap.c (tputs): Round rather than truncating
Dave Love's avatar
#  
Dave Love committed
19 20
	when dividing padcount.

Sam Steingold's avatar
Sam Steingold committed
21
1986-04-24  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
22

Juanma Barranquero's avatar
Juanma Barranquero committed
23
	* insdel.c (del_range): Args passed to adjust_markers
Dave Love's avatar
#  
Dave Love committed
24 25
	are now properly adjusted for the gap.

Sam Steingold's avatar
Sam Steingold committed
26
1986-04-20  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
27 28 29

	* alloca.c: Declare xmalloc.

Sam Steingold's avatar
Sam Steingold committed
30
1986-04-17  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
31 32 33 34 35

	* filelock.c (unlock_buffer): New function to unlock
	a specified buffer.  Use in Fdelete_buffer_internal
	to avoid lossage if buffer being killed is not current.

Sam Steingold's avatar
Sam Steingold committed
36
1986-04-14  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
37 38 39 40 41

	* alloc.c (malloc_warning, Fgarbage_collect):
	If malloc_warning is called during GC, just save warning
	in malloc_warn_string.  Try again to warn when GC ends.

Sam Steingold's avatar
Sam Steingold committed
42
1986-04-12  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
43

Juanma Barranquero's avatar
Juanma Barranquero committed
44
	* m-celerity.h: Remove spurious effectless #define BSTRINGS.
Dave Love's avatar
#  
Dave Love committed
45

Sam Steingold's avatar
Sam Steingold committed
46
1986-04-10  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
47 48 49 50

	* xfns.c (Fx_get_default):
	Avoid doing strlen(value) if value is 0.

Sam Steingold's avatar
Sam Steingold committed
51
1986-04-08  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
52 53 54 55 56 57 58 59

	* indent.c (compute_motion):
	Change unsigned short back to short.  unsigned short is plain
	wrong and causes infinite loops when horizontal scrolling is used.
	Introduced macros HPOS and VPOS for extracting components of cpos.
	Alternate HPOS definition for Celerity since casting to (short)
	loses there.

Sam Steingold's avatar
Sam Steingold committed
60
1986-04-07  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
61 62 63 64 65

	* dispnew.c (update_screen):
	Don't zero OPhysScreen and DesiredScreen until after
	final error check.  Omit the error check unless debug_end_pos.

Sam Steingold's avatar
Sam Steingold committed
66
1986-04-06  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
67 68 69 70

	* cm.c (calccost):
	Was returning garbage if arrived at fail: by goto fail;.

Sam Steingold's avatar
Sam Steingold committed
71
1986-03-27  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
72 73 74 75

	* dispnew.c:
	Typo: `#ifdef defined...' => `#if defined...'

Sam Steingold's avatar
Sam Steingold committed
76
1986-03-26  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
77 78 79 80 81

	* doc.c (FSnarf_documentation):
	Appending the arg to the file name must be done
	whether or not CANNOT_DUMP.

Sam Steingold's avatar
Sam Steingold committed
82
1986-03-25  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
83 84 85 86 87 88 89 90 91 92

	* fileio.c (Fsubstitute_in_file_name):
	// at beginning of filename is meaningful on Apollo.

	* keyboard.c (command_loop_1):
	If C_ALLOCA, cause it to garbage collect each time around this loop.

	* crt0.c: If NEED_ERRNO defined, declare errno.
	* m-7300.h: New file.

Sam Steingold's avatar
Sam Steingold committed
93
1986-03-25  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
94 95

	* alloc.c (Fmake_symbol):
Sam Steingold's avatar
Sam Steingold committed
96
	CHECK_STRING the argument.
Dave Love's avatar
#  
Dave Love committed
97

Sam Steingold's avatar
Sam Steingold committed
98
1986-03-24  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
99 100 101 102

	* xfns.c (Fx_proc_mouse_event):
	Use shifts rather than byte addressing to extract from .detail.

Sam Steingold's avatar
Sam Steingold committed
103
1986-03-24  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
104 105 106 107 108

	* minibuf.c (do_completion):
	Only funcall predicate if it is non-nil
	Make completion of "nil" in obarrays work.

Sam Steingold's avatar
Sam Steingold committed
109
1986-03-21  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
110 111 112 113

	* fileio.c (Fsubstitute_in_file_name):
	#if 0 last change (LOGNAME); it makes vax running 5.0 crash.

Sam Steingold's avatar
Sam Steingold committed
114
1986-03-20  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
115

Juanma Barranquero's avatar
Juanma Barranquero committed
116
	* unexec.c (make_hdr): Avoid comparing a_bss field with 0.
Dave Love's avatar
#  
Dave Love committed
117 118
	It is unsigned on some machines.  Save sbrk (0) in tem.

Sam Steingold's avatar
Sam Steingold committed
119
1986-03-19  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
120 121 122 123 124 125 126 127 128 129 130 131 132 133

	* minibuf.c (do_completion):
	Don't say string is exact match if it fails the predicate.

	* process.c (create_process):
	For STRIDE: use FIONBIO to make pipe/pty non-blocking.
	The fcntl alone failed to do it.

	* fileio.c (Ffile_directory_p, Ffile_modes):
	Don't remove trailing slash for stat if path is "/".

	* process.c (kill_buffer_processes):
	Pass nil, not 0, to sig_process for current_group arg.

Sam Steingold's avatar
Sam Steingold committed
134
1986-03-18  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
135 136 137 138 139 140 141 142 143 144

	* process.c (handle_process_output):
	Avoid error if process's buffer is dead.

	* eval.c (un_autoload,do_autoload):
	The Vautoload_queue mechanism was all broken.

	* fileio.c (Fsubstitute_in_file_name):
	On USG, if looking for env var USER and not found, use LOGNAME.

Sam Steingold's avatar
Sam Steingold committed
145
1986-03-16  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163

	* s-usg*.h, s-unipl*.h:
	Replace default ADDR_CORRECT with a no-op.
	Default triggers compiler bug on some systems.
	Remove same thing from m-stride.h since now redundant there.

	* keyboard.c (init_keyboard, interrupt_signal):
	For USG, handle SIGQUIT just like SIGINT.

	* sysdep.c (init_sys_modes):
	For HPUX, use C-g for the SIGQUIT char as well as the SIGINT char
	as using CDEL causes Meta-DEL to send a SIGQUIT!

	* process.c: On Uniplus, time.h is under sys/, as in bsd.

	* sysdep.c (reset_sys_modes):
	Don't use FASYNC if it is not defined.

Sam Steingold's avatar
Sam Steingold committed
164
1986-03-15  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
165 166 167 168 169 170

	* window.c (save_window_restore):
	Fix logic for handling dead buffers.
	Don't try to store nil for the mark into the buffer
	if the buffer is nil.

Juanma Barranquero's avatar
Juanma Barranquero committed
171
	* alloca.s: Put #ifndef HAVE_ALLOCA AFTER including config.
Dave Love's avatar
#  
Dave Love committed
172

Juanma Barranquero's avatar
Juanma Barranquero committed
173
	* ymakefile: Always assemble alloca.s if C_ALLOCA isn't set.
Dave Love's avatar
#  
Dave Love committed
174

Sam Steingold's avatar
Sam Steingold committed
175
1986-03-14  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
176 177 178

	* s-usg5.0.h: Remove LOADER_N_SWITCH.

Sam Steingold's avatar
Sam Steingold committed
179
1986-03-14  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
180

Juanma Barranquero's avatar
Juanma Barranquero committed
181 182
	* editfns.c:
	Improve doc for bolp, bobp, eolp.
Dave Love's avatar
#  
Dave Love committed
183

Sam Steingold's avatar
Sam Steingold committed
184
1986-03-14  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
185 186 187 188

	* cm.c (calccost): Refuse to use incremental cursor motion
	after wrapping on terminals with MagicWrap (xn flag).

Sam Steingold's avatar
Sam Steingold committed
189
1986-03-13  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
190 191 192

	* emacs.c (main): For APOLLO: reserve 4meg with set_sbrk_size.

Juanma Barranquero's avatar
Juanma Barranquero committed
193
	* alloc.c (Fpurecopy): Fix typo unsignedint.
Dave Love's avatar
#  
Dave Love committed
194

Sam Steingold's avatar
Sam Steingold committed
195
1986-03-12  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
196 197 198 199 200 201 202 203

	* dired.c (file_name_completion):
	Allow exact match against an ignored extension.
	Can thus delete foo.o even if foo.out exists.

	* s-hpux.h: Turn off HAVE_PTYS since their csh has "sanity
	checking" and other programs seem to lose with ptys.

Sam Steingold's avatar
Sam Steingold committed
204
1986-03-11  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220

	* sysdep.c ({un,}request_sigio and callers):
	Make alternate names init_sigio and reset_sigio;
	callers in sysdep.c use those names.
	In 4.1, change {un,}request_sigio to do sighold/sigrelse;
	don't change init_sigio and reset_sigio.

	* m-vax.h: If USG5_2, use -lPW and HAVE_ALLOCA.

	* alloc.c (Fpurecopy, mark_object): In tests for pureness,
	always use XUINT and unsigned comparison.
	* lisp.h (CHECK_IMPURE): Likewise.

	* doc.c (FSnarf_documentation):
	If CANNOT_DUMP, find DOC in directory PATH_EXEC.

Juanma Barranquero's avatar
Juanma Barranquero committed
221
	* ymakefile (APOLLO only): Set LTERMCAP.
Dave Love's avatar
#  
Dave Love committed
222 223 224 225 226 227 228 229
	* m-apollo.h: Alter VALBITS and GCTYPEBITS.

	* term.c (delete_chars): Pass num chars to the hook.
	* term.c (raw_topos), termhooks.h: Add raw_topos_hook.

	* unexec.c (make_hdr):
	New compiler switch NO_REMAP means don't change text/data boundary.

Sam Steingold's avatar
Sam Steingold committed
230
1986-03-10  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
231 232 233 234 235 236 237 238 239 240

	* indent.c, window.c, xdisp.c:
	Make compute_motion, vmotion and display_text_line
	all return a pointer to a global structure, not a struct itself.
	Add * to all calls.

	* syntax.c (scan_sexps_forward):
	Make it return a pointer to a global structure,
	not a struct itself.  Change caller (Fparse_partial_sexp).

241
	* s-usg*.h: #define static as nothing.
Dave Love's avatar
#  
Dave Love committed
242 243 244 245 246 247 248
	* m-hp200.h: No longer needs to #define static.

	* unexec.c (adjust_lnnoptrs):
	Replace dummy defn with one that does the job.  Also
	involves including syms.h and making global vars
	bias and lnnoptr that are set in make_hdr.

Sam Steingold's avatar
Sam Steingold committed
249
1986-03-08  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
250 251 252 253 254 255 256

	* editfns.c (init_editfns):
	Make AMPERSAND_FULL_NAME case start with USER_FULL_NAME.

	* crt0.c (BOGUS case):
	Move "start:" from non-tower32 case to unconditional.

257
	* unexec.c [COFF]:
Dave Love's avatar
#  
Dave Love committed
258 259 260
	Put the rounding-to-page-boundaries of section positions
	within the file into a UMAX conditional.  (See Feb 19).

Sam Steingold's avatar
Sam Steingold committed
261
1986-03-06  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
262 263 264 265 266 267

	* ymakefile: Add -k100000 switch to ld, for celerity.

	* eval.c (funcall_lambda):
	Change a comma-sequence to a compound statement.

Sam Steingold's avatar
Sam Steingold committed
268
1986-03-03  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
269 270 271 272 273 274 275 276 277 278 279

	* xfns.c, xterm.c:
	Install much-changed versions already tested at Athena.

	* ymakefile: Replace -lc with $(LIBSTD) and define LIBSTD
	according to a config macro LIB_STANDARD.
	m-tower32.h must define LIB_STANDARD.

	* process.c (read_process_output):
	New subroutine that does the reading and handling of process output.
	Do so until none is left.
Juanma Barranquero's avatar
Juanma Barranquero committed
280
	(wait_reading_process_input): Call new subroutine.
Dave Love's avatar
#  
Dave Love committed
281 282 283 284 285 286 287 288 289
	(sig_process): If we get a pgrp number, make it negative.
	Always send signal to pggrp; use killpg if BSD, kill otherwise.
	(child_signal): Don't deactivate dead processes here.
	(change_msgs): Deactivate them here, when notification is done.
	But first, call read_process_output to get any output that's left.

	* keyboard.c (read_avail_input):
	(for sysV) Use fcntl, not ioctl, to make read not wait.

Juanma Barranquero's avatar
Juanma Barranquero committed
290
	* alloca.s: Put entire file inside #ifndef HAVE_ALLOCA.
Dave Love's avatar
#  
Dave Love committed
291 292 293 294 295

	* sysdep.c (child_setup_tty, init_sys_modes):
	(for sysV) Set VTIME to zero; with VMIN=1 this means
	no time limit.

Sam Steingold's avatar
Sam Steingold committed
296
1986-03-02  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
297 298 299 300 301 302 303

	* keyboard.c (quit_throw_to_get_char):
	Before really throwing, clear waiting_for_input
	so another interrupt won't also try to throw.
	(get_char): Add error check for getcjmp being zero
	where it should not be.  Put this under DEBUG switch.

Sam Steingold's avatar
Sam Steingold committed
304
1986-03-01  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328

	* crt0.c: Defining BOGUS forces use of the vax-tahoe-sequent case.
	Add a small conditional within it for tower32.
	Don't allow use of the m68000/m68k code if BOGUS is defined.

	* sysdep.c (init_sys_modes):
	For sysV: If want flow control, actively set IXON,
	and also clear IXANY if that is defined.

	* sysdep.c (rename):
	It was doing completely wrong things to various files.

	* tparam.c (tgoto): Move buf outside the function
	and rename as tgoto_buf.  In case #define static as nothing.

	* unexec.c (make_hdr):
	If macro EXEC_MAGIC is defined, let it specify the magic
	number for the output file.

	* xdisp.c (message): Change name `buf' to `message_buf'
	to avoid name clash when #define static as nothing.

	* ymakefile: Change DOCSTR to DOC.

Sam Steingold's avatar
Sam Steingold committed
329
1986-02-28  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
330 331 332 333

	* buffer.c (Fdelete_buffer_internal):
	Unchain all markers from a buffer being killed.

Sam Steingold's avatar
Sam Steingold committed
334
1986-02-27  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
335 336 337 338 339

	* unexec.c, malloc.c:
	If NBPG is used for getpagesize, multiply it by CLSIZE
	and define that as 1 if not otherwise defined.

Sam Steingold's avatar
Sam Steingold committed
340
1986-02-26  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
341 342 343 344 345 346 347

	* lread.c (Fload):
	Detect when fdopen returns 0 given a valid descriptor.

	* sysdep.c (stuff_char):
	Declare arg as char, so TIOCSTI does not give wrong address.

Sam Steingold's avatar
Sam Steingold committed
348
1986-02-25  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
349 350 351 352 353 354 355

	* dispnew.c (update_screen):
	* xdisp.c (DoDsp, Fredraw_display):
	Insert checks to abort if screen_height is zero,
	to detect the memory clobbering bug.

	* process.c:
Juanma Barranquero's avatar
Juanma Barranquero committed
356
	For 4.1, include wait.h, not sys/wait.h.
Dave Love's avatar
#  
Dave Love committed
357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374
	Use O_NDELAY only if it is defined.

	* s-bsd4.1.h:
	Don't HAVE_TIMEVAL.  Define open as sys_open and lstat as stat.
	Define the O_ symbols for open args.
	Turn off CLASH_DETECTION, for now.  Turn off HAVE_TIMEVAL.

	* sysdep.c (bcopy, bzero, bcmp):
	Make them really do the work, not try to use memset, memcopy, etc.

	* sysdep.c (get_system_name):
	4.1 needs its own definition of this.

	* sysdep.c (for BSD 4.1):
	Define sys_open, since 4.1 open takes only two args.
	Redefine LLITOUT as 0; it loses in 4.1.
	Define LNOFLSH.  Include wait.h, not sys/wait.h.

Sam Steingold's avatar
Sam Steingold committed
375
1986-02-24  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
376 377 378

	* malloc.c: Define getpagesize as macro when not avail as syscall.

Sam Steingold's avatar
Sam Steingold committed
379
1986-02-23  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
380 381 382

	* terminfo.c: Provide a definition of ospeed.

Sam Steingold's avatar
Sam Steingold committed
383
1986-02-22  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
384 385 386 387 388 389 390 391 392 393 394 395

	* alloca.s (hack_sky):
	Move label hack3; bug was making some floating ops dump core.

	* dispnew.c (update_screen):
	Don't free a line twice if it is in both DesiredScreen
	and OPhysScreen.  Can happen if line is copied into
	DesiredScreen by `scrolling', then lost from PhysScreen
	by the scrolling that is done.
	Also remove a debugging check that did not go off
	when this bug hit.

Sam Steingold's avatar
Sam Steingold committed
396
1986-02-18  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
397 398 399 400 401 402 403 404 405 406

	* indent.c (compute_motion):
	Change all short to unsigned short.  Needed for celerity.

	* keyboard.c (init_keyboard):
	Initialize kbd_ptr.  Needed for celerity.

	* unexec.c (make_hdr for celerity):
	Copy their own header field a_scovfrl from ohdr.

Glenn Morris's avatar
Glenn Morris committed
407
	* unexec.c [COFF]:
Juanma Barranquero's avatar
Juanma Barranquero committed
408
	Round positions of text and data sections in output file
Dave Love's avatar
#  
Dave Love committed
409 410 411 412 413 414 415 416 417 418 419 420 421 422
	to page boundaries.

	* crt0.c: Install version for Encore machines.
	Also for celerity (same as pyramid and orion).

	* ymakefile:
	Don't use -X for BSD systems that use COFF.
	On UMAX, give ld the file align.umax (a new file)
	via the make-macro ALIGNMENT.

	* align.umax, s-umax.h:
	Two new files for Encore computers.

	* lread.c (Vload_path): Make it not static.
Juanma Barranquero's avatar
Juanma Barranquero committed
423
	In sysV, static vars go in a place in memory below my_edata.
Dave Love's avatar
#  
Dave Love committed
424 425 426 427 428

	* dispnew.c (make_display_lines):
	Store all the lines in an array for debugging, to help
	debug the problem where lines get lost.

Sam Steingold's avatar
Sam Steingold committed
429
1986-02-14  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
430 431 432 433

	* alloca.s (ns16000):
	Change non-sequent defn of REGISTER: add a displacement of zero.

Sam Steingold's avatar
Sam Steingold committed
434
1986-02-13  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
435 436 437 438

	* alloc.c (purecopy, mark_object), lisp.h:
	Use XUINT, not XINT, in VIRT_ADDR_VARIES checks for pure object.

Sam Steingold's avatar
Sam Steingold committed
439
1986-02-11  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
440 441 442 443 444 445

	* fns.c (Fload_average):
	Don't use struct nlist if no LOAD_AVE_TYPE.

	* crt0.c: Add missing semicolon in vax/tahoe/sequent code.

Sam Steingold's avatar
Sam Steingold committed
446
1986-02-10  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
447 448 449

	* crt0.c: Remove duplicate _start for pyramid.

Sam Steingold's avatar
Sam Steingold committed
450
1986-02-07  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
451 452 453 454 455 456 457

	* sysdep.c (gettimeofday): Define this only if HAVE_TIMEVAL.

	* m-vax.h:
	If USG, don't define LOAD_AVE_... and do define C_ALLOCA.

	* filelock.c: On USG, include fcntl.h.
Juanma Barranquero's avatar
Juanma Barranquero committed
458
	(lock_file): Declare getpwuid external.
Dave Love's avatar
#  
Dave Love committed
459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474

	* window.c (Fmove_to_window_line):
	If window start is out of restriction,
	choose a new start here.

	* alloca.s:
	Modify ns16000 assembler syntax for the sequent machine.

	* crt0.c: Sequent uses same code as vax except start1
	takes one extra first arg that it ignores.
	A new macro BOGUS is defined to allow machines to use the
	same code and control how many args to ignore.

	* unexec.c: For sequent machine, handle its incompatible
	meaning of N_TXTOFF, and use N_ADDRADJ where necessary.

Sam Steingold's avatar
Sam Steingold committed
475
1986-02-06  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
476 477 478 479 480 481 482 483

	* sysdep.c (init_sys_modes):
	Set tty flags ISTRIP, CS8 and PARENB right for Meta key.

	* ymakefile:
	Define CPP macro as name of cpp to use.  Use it for alloca.s.
	Make LOADER_N_SWITCH control solely the -N.

Sam Steingold's avatar
Sam Steingold committed
484
1986-02-06  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
485 486

	* fns.c (Frequire):
Juanma Barranquero's avatar
Juanma Barranquero committed
487
	Fix documentation.
Dave Love's avatar
#  
Dave Love committed
488

Sam Steingold's avatar
Sam Steingold committed
489
1986-02-06  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
490 491 492 493 494 495 496 497 498 499

	* indent.c (compute_motion):
	For tabs, make sure to take remainder of positive #
	since % can round upward with negative numbers.

	* bytecode.c (syms_of_bytecode):
	Fix typo in symbol name "byte-code".

	* xdisp.c (try_window_id):
	Use adjusted hpos of bp in computation of ep.
Juanma Barranquero's avatar
Juanma Barranquero committed
500
	Adjusted hpos can be negative after a continuation.
Dave Love's avatar
#  
Dave Love committed
501 502 503 504 505 506 507

	* fileio.c (Finsert_file_contents):
	Was failing to update n as chars were read.
	Rearrange order of actions to make it more like InsCStr.
	Call prepare_to_modify_buffer even if no CLASH_DETECTION.
	Don't make gap if gap is big enough.

Sam Steingold's avatar
Sam Steingold committed
508
1986-02-05  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
509 510 511 512 513 514 515 516 517 518 519 520

	* termcap.c (tgetent):
	Only use TERMCAP var as termcap entry value
	if it has a name that matches the specified one.
	New function name_match to match an entry against a name.
	Do allow matching the first name in an entry.

	* indent.c (pos_tab_offset):
	Take remainder by window-width - 1 (# of effective columns)
	to fix bug where alternating TAB 1 TAB 1... causes a 1
	to shift sideways in incremental redisplay in DoDsp.

Sam Steingold's avatar
Sam Steingold committed
521
1986-02-04  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
522 523 524 525 526 527

	* keyboard.c (command_loop_1):
	Don't do direct output if input is pending.

	* xterm.h: Find the file Xlib.h in /usr/include/X.

Sam Steingold's avatar
Sam Steingold committed
528
1986-02-03  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
529 530 531 532 533

	* process.c (pty): HPUX has different dir for pty-tty devices.

	* termcap.c: Don't include types.h or file.h.

Sam Steingold's avatar
Sam Steingold committed
534
1986-02-02  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
535 536 537 538 539 540 541 542

	* print.c (print):
	Print a marker's corrected position, not its bufpos.

	* window.c (Fselect_window):
	If old and new windows show same buffer,
	make sure new point is inside the clipping region.

Sam Steingold's avatar
Sam Steingold committed
543
1986-01-31  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
544 545 546 547 548

	* fns.c (Fload_average):
	In NLIST_STRUCT case, set nl[1] to 0, not "".
	Fix KERNEL_FILE and LDAV_SYMBOL for HPUX.

Sam Steingold's avatar
Sam Steingold committed
549
1986-01-30  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
550 551 552

	* m-pyramid.h: Turn on NO_UNION_TYPE.

Juanma Barranquero's avatar
Juanma Barranquero committed
553
	* fns.c: For BSD, include sys/param.h.
Dave Love's avatar
#  
Dave Love committed
554

Sam Steingold's avatar
Sam Steingold committed
555
1986-01-29  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
556 557 558 559 560 561 562 563 564 565 566

	* fns.c (Fload_average):
	Define a few symbols LDAV_SYMBOL and KERNEL_FILE_NAME
	and NLIST_STRUCT to use later to simplify the code.

	* s-usg5.2.h: Turn on `subprocesses'.

	* sysdep.c:
	#undef open, read and write at the start.
	Make sys_read, etc. always available for uses that need
	a nonaborting read.
Juanma Barranquero's avatar
Juanma Barranquero committed
567
	(select): Several bug fixes for system V.
Dave Love's avatar
#  
Dave Love committed
568 569 570 571
	(init_sys_modes, child_setup_tty): Init VTIME to a large #, not 0.
	Use TCSETA, not TCSETAW (why wait?).

	* process.c:
Juanma Barranquero's avatar
Juanma Barranquero committed
572
	(wait_reading_process_output): If don't HAVE_TIMEVAL
Dave Love's avatar
#  
Dave Love committed
573 574 575 576
	and no timeout desired, use 100000 seconds, which
	the select emulator recognizes.
	When reading data, if a char is buffered in proc_buffered_char,
	put it at the front of the data read.
Juanma Barranquero's avatar
Juanma Barranquero committed
577 578
	(kill_buffer_process): Ignore processes really already dead.
	(init_process): Initialize proc_buffered_char to -1 (empty).
Dave Love's avatar
#  
Dave Love committed
579 580 581 582 583 584 585 586 587 588

	* keyboard.c (fake_suspend):
	Don't mess with the SIGCLD handler.
	Use wait_for_termination to detect subshell termination.
	(read_avail_input, for USG):
	Use TCSETA, not TCSETAW; no waiting.

	* term.c (set_terminal_modes): Don't clear screen here.
	* xdisp.c (Fredraw_display): Clear screen here instead.

Sam Steingold's avatar
Sam Steingold committed
589
1986-01-28  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
590

Juanma Barranquero's avatar
Juanma Barranquero committed
591
	* s-hpux.h: Do #undef SIGIO.
Dave Love's avatar
#  
Dave Love committed
592 593

	* callproc.c, data.c, dispnew.c, emacs.c, keyboard.c,
Juanma Barranquero's avatar
Juanma Barranquero committed
594
	* process.c, sysdep.c:
Dave Love's avatar
#  
Dave Love committed
595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612
	Include signal.h before config so can #undef SIGIO in config.

	* lread.c (read_escape):
	Make ?\^? produce 0177.

	* sysdep.c:
	Define SIGCHLD as SIGCLD only if SIGCHLD not already defined.
	(select): Don't give select_alarmed an initialization.

	* unexec.c:
	For HPUX, copy the peculiar header fields for debugger info.

	* keyboard.c (kbd_buffer_get_char): Don't call read_avail_input
	if kbd_count is nonzero.  (Don't know how it can be, but
	it is observed to happen.)

	* process.c:
	Define SIGCHLD as SIGCLD only if SIGCHLD not already defined.
Juanma Barranquero's avatar
Juanma Barranquero committed
613
	(wait_handling_process_output): Fill in one non-HAVE_TIMEVAL case.
Dave Love's avatar
#  
Dave Love committed
614

Sam Steingold's avatar
Sam Steingold committed
615
1986-01-27  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
616 617 618 619 620

	* sysdep.c (reset_sys_modes):
	Call unrequest_sigio twice.
	Make sure FASYNC is clear in old_fcntl_flags.

Sam Steingold's avatar
Sam Steingold committed
621
1986-01-26  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
622 623 624 625 626 627 628 629

	* fns.c (Frandom):
	Removed case for number as arg, since it has problems
	in union-type case and it is not documented or used.

	* lisp.h (XSET):
	Fix bugs in the union-type definition.

Sam Steingold's avatar
Sam Steingold committed
630
1986-01-24  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
631 632 633 634 635 636 637

	* process.c:
	Define macros for accessing the `union wait' structure.

	* keyboard.c (fake_suspend):
	Set subshell current dir to current buffer's default dir.

Sam Steingold's avatar
Sam Steingold committed
638
1986-01-23  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662

	* dispnew.c (Fsit_for):
	Call gobble_input only if SIGIO exists.

	* keyboard.c (fake_suspend):
	Save and restore the SIGCLD handler, if that exists.

	* process.c (create_process):
	SKTPAIR-or-not now controls only what to do if cannot use a pty.
	For USG other than UNIPLUS, instead of sigsetmask (nonexistent),
	save away and temporarily turn off the SIGCHLD handler.
	(child_sig): Various USG changes.

	* sysdep.c (wait_for_termination):
	Provide case for sysV not UNIPLUS (right for STRIDE at least).
	* sysdep.c (child_setup_tty):
	Set the VMIN and VTIME fields.

	* callint.c (Fcall_interactively):
	Globalize the variable argfuns, for HPUX's sake.

	* keyboard.c (fake_suspend):
	Use execlp, not execl.

Juanma Barranquero's avatar
Juanma Barranquero committed
663
	* sysdep.c (random, srandom):
Dave Love's avatar
#  
Dave Love committed
664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687
	Add dummy for srandom => srand.  Enable both for 4.1 and USG.
	* fns.c (Frandom):
	Remove conditional; let those dummies serve.

	* Makefile:
	Use sed to remove blank lines and from xmakefile.

	* ymakefile:
	Pass alloca.s thru more seds to remove #... lines, etc.
	Move tparam.o into otherobjs; for HPUX, use terminfo.o instead.
	No need to conditionalize recipes for xfns.o and xterm.o.
	No longer need to duplicate the xemacs: line.
	For HPUX, define LIBBSD.  Use that in LIBES.

	* editfns.c (init_editfns):
	Handle case of pw == 0 (USER is not a known user).

	* cm.c:
	Include config.  Make cost and evalcost global.
	(cmcostinit): Don't pass 0 as string to tgoto (new macro CMCOST).

	* terminfo.c (new file):
	Defines a version of tparam for use with terminfo.

Sam Steingold's avatar
Sam Steingold committed
688
1986-01-22  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738

	* dispnew.c:
	If HPUX, insert time.h instead of sys/time.h.

	* sysdep.c:
	If HPUX, insert time.h instead of sys/time.h.
	In get_system_name, globalize a static variable `name'.
	In readdir, globalize `dir' as `dir_static'.
	Make some system-call imitations "not HPUX".

	* process.c:
	If HPUX, insert time.h instead of sys/time.h.
	Do them only if HAVE_TIMEVAL.
	If HAVE_PTYS and HPUX, insert sys/ptyio.h.
	In function `pty', globalize static var `name' as `ptyname'.

	* term.c:
	(term_init): If TERMINFO, where tbuf is not used,
	allocate combuf with size 2044.
	(evalcost): Flush it.  Make it extern and use the one in cm.c.

	* dired.c:
	Include stat.h before config.h so config can override S_IFLNK on
	HPUX (where that symbol exists but there are no symbolic links).
	Do not include time.h; not needed.

	* xdisp.c (fmodetrunc, decode_mode_spec):
	Rename local static buffers buf, tbuf and make them global.
	Static variables go into initialized data space in HPUX.
	* fns.c (Fload_average):
	Similar hack for internal static vars initialized, channel, nl.

	* lread.c:
	Change condition for defining X_OK to be that X_OK is not defined.

	* alloc.c (init_alloc_once):
	Fix erroneous names data_bytes_{un,}used
	inside the VIRT_ADDR_VARIES conditions.

	* emacs.c:
	Don't include time.h or resource.h; just #define PRIO_PROCESS.

	* xdisp.c (redisplay_window):
	Don't shift window-start to avoid end of buffer
	unless window contents have changed too.

	* xdisp.c (DoDsp):
	If nothing has changed except minibuffer message,
	no need to call redisplay_window.

739
	Problem: standard sysV has no file ioctl.h.
Dave Love's avatar
#  
Dave Love committed
740 741 742 743 744 745 746 747 748 749

	* process.c, keyboard.c, dispnew.c, sysdep.c:
	Include ioctl.h in BSD, termio.h and/or fcntl.h in sysV.

	* callproc.c: No longer needs ioctl.h; don't include.
	* xdisp.c: No longer needs ioctl.h or signal.h; don't include.

	* emacs.c:
	Include sys/ioctl.h only for BSD.  ioctl used only in BSD.

Sam Steingold's avatar
Sam Steingold committed
750
1986-01-21  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
751 752

	* keyboard.c (EchoThem):
Juanma Barranquero's avatar
Juanma Barranquero committed
753
	Always display an explicit prompt, even if echo_keystrokes == 0.
Dave Love's avatar
#  
Dave Love committed
754

Sam Steingold's avatar
Sam Steingold committed
755
1986-01-21  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782

	* keyboard.c (kbd_buffer_store_char, fake_suspend):
	Take the STRIDE code for subshell out of kbd_buffer_store_char
	and call it fake_suspend.  Call it from previous place and
	also from Fsuspend_buffer, on all systems that lack SIGTSTP.
	Clean the code up a little bit.

	* process.c:
	Don't include sgtty.h; no longer needed.
	Make use of wait3 depend on existence of WNOHANG.

	* unexec.c:
	Allow the m- file to override defn of ADDR_CORRECT (m-stride.h does).
	Have and use pagemask to round data_start in COFF case too.
	Always define getpagesize as macro, for 4.1 and USG where
	it is not provided as a system call.
	This takes care of the STRIDE changes for unexec.

	* ymakefile:
	Give ld the arg $(STARTFLAGS), and define that based on cpp macro
	TEXT_START_ADDR when that is defined.  This is for systems where
	the -T switch is necessary.

	* unexec.c (make_hdr):
	Make one sun3 fix machine-independent.
	(Prevent a_bss from being negative).

783
	* casefiddle.c (casify_region):
Dave Love's avatar
#  
Dave Love committed
784 785 786 787
	New flag value CAPITALIZE_UP which is like CAPITALIZE
	but changes only the initials.  Function upcase_initials_region
	is an interface to this mode.

Juanma Barranquero's avatar
Juanma Barranquero committed
788
	* abbrev.c (Fexpand_abbrev): Use upcase_initials_region.
Dave Love's avatar
#  
Dave Love committed
789 790 791 792 793

	* process.c (create_process):
	Install Fish's other new UNIPLUS conditionalization
	on the hackery for xforkin, etc.

Sam Steingold's avatar
Sam Steingold committed
794
1986-01-20  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811

	* fns.c (Frandom):
	Optional arg of t means randomize the seed.
	This change was really made at some previously time;
	just changed the doc string now.

	* eval.c (do_autoload):
	Bind autoload-queue to avoid loss on recursive autoloads.

	* xdisp.c (try_window_id):
	If everything on screen below change is whitespace,
	don't scroll, and return -2.

	* dispnew.c (update_screen):
	Rewrite to avoid dependence on distance between
	the two arrays PhysScreen and DesiredScreen.

Sam Steingold's avatar
Sam Steingold committed
812
1986-01-19  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
813 814 815 816 817 818 819 820 821

	* fns.c (mapcar1):
	Preinitialize contents of vals, so it won't contain junk
	to be seen by a GC inside this function.

	* eval.c (various):
	Use error, not Fsignal, to report eval-depth-overflow.
	Previous calls to Fsignal were buggy.

Sam Steingold's avatar
Sam Steingold committed
822
1986-01-17  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
823 824 825 826

	* lread.c (init_obarray):
	Kludge around losing pyramid compiler.

Sam Steingold's avatar
Sam Steingold committed
827
1986-01-14  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
828 829 830 831 832 833

	* window.c (Fdelete_window):
	When deleting a dummy parent window, don't try to GC buffer stuff.

	* process.c (list_processes_1):
	Don't blow out if buffer associated with process is,
Sam Steingold's avatar
Sam Steingold committed
834
	through some bug I don't understand, killed.
Dave Love's avatar
#  
Dave Love committed
835 836

	* keymap.c (get_keyelt), keyboard.c (Fcommand_execute):
Sam Steingold's avatar
Sam Steingold committed
837
	Allow (lambda ...) to appear as a key's definition.
Dave Love's avatar
#  
Dave Love committed
838 839 840 841

	* m-sun3.h, unexec.c:
	Sun3 changes from Barry Shein.

Sam Steingold's avatar
Sam Steingold committed
842
1986-01-10  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
843 844 845 846

	* m-stride.h, s-stride.h, crt0.c, fns.c, keyboard.c, process.c,
	  sysdep.c.
	Changes for STRIDE micro
Juanma Barranquero's avatar
Juanma Barranquero committed
847
	Changes still pending for etc/loadst.c.
Dave Love's avatar
#  
Dave Love committed
848 849 850 851 852

	Fsuspend_emacs in keyboard.c is defined to run a subshell under
	emacs -- perhaps this is a reasonable thing in all wimpy unix
	versions.

Sam Steingold's avatar
Sam Steingold committed
853
1986-01-10  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
854 855 856 857 858

	* dispnew.c (update_line):
	Don't consider spaces at beginning as special if line is
	highlighted.
	Avoids losing the inverse-video on leading spaces in mode lines
Juanma Barranquero's avatar
Juanma Barranquero committed
859
	on terminals where erasing does not turn on highlighting (vt100?).
Dave Love's avatar
#  
Dave Love committed
860 861 862 863

	* process.c (pty):
	On UNIPLUS, don't try opening other side.

864
	* filelock.c (lock_file_1):
Dave Love's avatar
#  
Dave Love committed
865 866 867
	If lock file is invalid, delete it and continue.
	If delete fails, ignore the lock.

Sam Steingold's avatar
Sam Steingold committed
868
1986-01-09  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
869 870

	* syntax.c:
Juanma Barranquero's avatar
Juanma Barranquero committed
871
	New function check_syntax_table.
Dave Love's avatar
#  
Dave Love committed
872 873 874

	Make Fmodify_syntax_entry take third arg SYNTAX-TABLE,
	which defaults to current buffer's syntax table.
Juanma Barranquero's avatar
Juanma Barranquero committed
875
	-- doc change in auxdoc.c.
Dave Love's avatar
#  
Dave Love committed
876 877 878

	Rename Fmake_syntax_table FCopy_syntax_table
	after making it take an arg (default Vstandard_syntax_table)
Juanma Barranquero's avatar
Juanma Barranquero committed
879
	-- retain alias in subr.el.
Sam Steingold's avatar
Sam Steingold committed
880 881

1986-01-08  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
882 883 884 885 886 887 888 889 890

	* sysdep.c, term.c (get_screen_size):
	New function to get screen size from kernel when possible.
	In sysdep; called from term_init in term.c.
	Must test this on Sun and on 4.3.

	* dispnew.c (Fding):
	Make doc say it terminates kbd macros.

Sam Steingold's avatar
Sam Steingold committed
891
1986-01-07  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
892 893

	* doc.c (Fsubstitute_command_keys):
Juanma Barranquero's avatar
Juanma Barranquero committed
894
	Insert an explanatory message for "\\{unbound-variable}".
Dave Love's avatar
#  
Dave Love committed
895

Sam Steingold's avatar
Sam Steingold committed
896
1986-01-06  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
897 898 899 900

	* termcap.c (tputs):
	Punt if passed (char) 0.

Sam Steingold's avatar
Sam Steingold committed
901
1985-12-31  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
902 903 904 905 906 907 908

	* dispnew.c (Ding):
	Expand error message for keyboard macro case.

	* dired.c (Ffile_attributes):
	Fix documentation error about meaning of ctime.

Sam Steingold's avatar
Sam Steingold committed
909
1985-12-28  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
910 911 912 913

	* callproc.c (Fcall_process):
	Fix typo in name synch_process_pid.

Sam Steingold's avatar
Sam Steingold committed
914
1985-12-27  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
915 916 917 918 919 920 921 922

	* s-unipl5.2.h:
	Define HAVE_SELECT.

	* ymakefile (xemacs):
	If the commands are conditional, the target/dependencies line must
	be conditional also.

Sam Steingold's avatar
Sam Steingold committed
923
1985-12-20  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
924 925 926 927 928 929

	* print.c (printchar, strout):
	If output stream is Qt and noninteractive,
	don't do the usual interactive output stuff.
	In strout, avoid changing i so do not truncate the output.

Sam Steingold's avatar
Sam Steingold committed
930
1985-12-19  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
931 932 933 934 935 936 937 938 939 940 941 942 943

	* fns.c (merge):
	Don't assume args are consecutive; GCPRO each one separately.

	* insdel.c (make_gap):
	Was adding k bytes of gap; k is supposed to be
	new desired amount of gap.  Wasted a lot of memory!

	* alloc.c (malloc_warning):
	Passing Fprinc to internal_with_output_to_temp_buffer
	loses since Fprinc needs 2 args.  Use intermediate
	function malloc_warning_1.

Sam Steingold's avatar
Sam Steingold committed
944
1985-12-18  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
945 946

	* filelock.c (lock_if_free):
Juanma Barranquero's avatar
Juanma Barranquero committed
947
	Kill failing means lock is free only if errno is ESRCH.
Dave Love's avatar
#  
Dave Love committed
948 949 950 951

	* fns.c (Fy_or_n_p, Fyes_or_no_p):
	Call Fdiscard_input if user gives invalid answer.

Sam Steingold's avatar
Sam Steingold committed
952
1985-12-17  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
953 954 955 956 957 958 959 960 961 962 963 964 965 966

	* eval.c (apply_lambda):
	Do debug-on-exit here, because if we return to Feval
	the stack vector of evaluated args will be deallocated by then.

	* sysdep.c (wait_for_termination):
	Add new variable wait_debugging.  Set it nonzero to make
	this function work in a way that works under dbx.

	* process.c (send_process_1):
	If not all the data is written, try again to write the rest.
	Eliminate the alarm stuff, including send_process_alarm.
	Call report_file_error if write returns negative.

Sam Steingold's avatar
Sam Steingold committed
967
1985-12-15  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
968 969 970 971

	* alloc.c (init_alloc_once):
	Stop looping if shift produces 1, as well as if produces 0.

Sam Steingold's avatar
Sam Steingold committed
972
1985-12-14  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990

	* editfns.c (Fregion_{beginning,end}):
	New Lisp primitives, needed for the things that
	are put on the command history for "r" arguments.

	* callint.c (Fcall_interactively):
	If an argument was point or mark, represent it with
	a suitable expression (point) or (mark) in the
	command history element.  Also adjust for changed
	calling conventions of quotify_args.

	* callint.c (quotify_arg):
	Take one arg; return it if constant, else return
	a quote-expression for it.

	* callint.c (quotify_args):
	Don't exempt the first arg.  Use quotify_arg to do the work.

Sam Steingold's avatar
Sam Steingold committed
991
1985-12-13  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
992 993 994 995 996

	* fileio.c (Fdo_auto_save):
	Use message1 to output "Auto-saving..."
	so do not clobber the old message to be restored at end.

Sam Steingold's avatar
Sam Steingold committed
997
1985-12-12  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
998 999

	* syntax.c:
Juanma Barranquero's avatar
Juanma Barranquero committed
1000
	After turning on immediate_quit, must do QUIT.
Dave Love's avatar
#  
Dave Love committed
1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038

	* callproc.c (Fcall_process):
	Quitting out of running subproc did not happen immediately.
	Added QUIT;s after setting immediate_quit on,
	removed those after turning it off (not needed there).

	* lread.c (init_read):
	Don't put ../lisp on Vload_path if CANNOT_DUMP.

	* emacs.c (main):
	If CANNOT_DUMP, load "loadup.el" as soon as enter editor loop
	unless -nl switch is given.

	* lread.c (read_list):
	Don't use Fsetcdr, since might be changing a cell
	in pure space during initial loadup.
	Do explicit assign instead.

	* lisp.h:
	Define CHECK_IMPURE, to get error if object is pure.

	* data.c (Fsetcar, Fsetcdr, Faset):
	Use CHECK_IMPURE instead of old error checking code.

	* data.c (pure_write_error):
	New subroutine, called by CHECK_IMPURE.

	* m-apollo.h:
	Define VIRT_ADDR_VARIES.

	* alloc.c:
	We now load things into pure space even if cannot dump,
	to speed garbage collection.
	Turn on Vpurify_flag unconditionally.
	Give pure its full size unconditionally.
	Change remaining CANNOT_DUMP and APOLLO conditionals
	into VIRT_ADDR_VARIES conditionals.

Sam Steingold's avatar
Sam Steingold committed
1039
1985-12-10  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076

	* fns.c:
	Don't include files for load-average if load-average not supported.

	* alloc.c:
	If CANNOT_DUMP, allocate `pure' very small.
	[This has been undone.]

	* buffer.c (list_buffers_1):
	Use 2 spaces minimum only after buffer name;
	go back to 1 space minimum after size and major mode.

	* termcap.c:
	Avoid use of O_RDONLY and index, so no need for explicit
	dependence on system type.

	* sysdep.c:
	Delete definition of `index'.  Now it's a macro when nec.

	* s-usg5.2.h, s-unipl5.2.h:
	Define index and rindex as macros.

	* dispnew.c (Fsit_for):
	Assume select is always available for use.

	* buffer.c (Fpop_to_buffer):
	Take second arg and pass as second arg to Fdisplay_buffer.

	* insdel.c (GapTo):
	Dump core if bf_p1, bf_p2 don't differ by gap size.

	* keyboard.c (Fsuspend_emacs):
	* emacs.c (Fkill_emacs):
	Both call new subroutine stuff_buffered_input (in keyboard.c)
	which stuffs a string's contents plus any unused input Emacs has
	already read.

Sam Steingold's avatar
Sam Steingold committed
1077
1985-12-09  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1078 1079 1080 1081 1082 1083 1084 1085 1086

	* fileio.c (Fdo_auto_save):
	Don't auto save a buffer that is not modified
	since last real save.

	* minibuf.c (minibuffer_completion_help_1):
	Use make_number for args to Findent_to.
	Omitting make_number always loses on Pyramid, it seems.

Sam Steingold's avatar
Sam Steingold committed
1087
1985-12-08  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098

	* minibuf.c (Fminibuffer_complete_word):
	If next char not unique, try adding an actual space.
	If do achieve some completion, replace old buffer text
	with the completion (in case of different case).
	Also a little cleanup.

	* minibuf.c (Ftry_completion):
	Fix lossage when second completion found is an initial segment of
	the first one.

Sam Steingold's avatar
Sam Steingold committed
1099
1985-12-07  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142

	* xdisp.c (redisplay_window):
	Don't use the clause for only-point-has-changed
	for the minibuffer; loses when redisplaying to bring
	back minibuffer after an echo area message.

	* crt0.c:
	Vax code is now used for tahoe machine also.

	* alloc.c (init_alloc_once):
	For APOLLO, set data_bytes_{free,used} to plausible constant
	values.

	* eval.c (unautoload):
	Declare return type Lisp_Object.

	* filelock.c (lock_file):
	Check attack with !NULL, not ==.

	* keymap.c (describe_command):
	Don't apply NULL directly to result of Fkeymapp.

	* lisp.h (XSET):
	Fix type field assignment in union-type case.

	* process.c (Faccept_process_output):
	Use XFASTINT around infd field of process.

	* search.c (signal_failure):
	Returns type Lisp_Object.

	* dired.c (Ffile_name_completion):
	If arg is null string, return null string immediately.
	Idea is don't want to complete "/foo/" into "/foo/bar"
	if "bar" is the only file in "/foo/".

	* minibuf.c (Ftry_completion):
	Handle correctly scmp returning -1.

	* alloc.c:
	Make malloc_sbrk_used and malloc_sbrk_unused
	not be external if APOLLO.

Sam Steingold's avatar
Sam Steingold committed
1143
1985-12-06  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160

	* emacs.c, keyboard.c, sysdep.c:
	Rename InitDsp -> init_sys_modes and RstDsp -> reset_sys_modes.

	* emacs.c (main):
	Call init_keyboard before init_sys_modes
	so correct value of interrupt_input is set up.
	Fixes the mysterious first C-z bug.

	* minibuf.c:
	New Lisp variable completion-ignore-case.
	Affects Ftry_completion and Fall_completions.

	* emacs.c (main):
	Don't change C variable `noninteractive' if user
	sets the Lisp variable `noninteractive'.

Sam Steingold's avatar
Sam Steingold committed
1161
1985-12-05  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185

	* callproc.c (Fcall_process):
	Close filefd if about to get error.

	* fileio.c (Finsert_file_contents, Fwrite_region):
	Set up unwind protect to close file if error happens.

	* fileio.c (Fcopy_file):
	Close input file if fail to open output file.

	* dispnew.c (change_screen_size):
	Change name from ChangeScreenSize.
	Do set_terminal_window (0); after changing height.

	* indent.c (vmotion & callers):
	Take window as fifth arg.  All callers pass window
	being displayed or selected window.
	If window is minibuffer, knows that first line starts at
	hps = minibuf_prompt_width.

	* minibuf.c (read_minibuf{,_string_unwind}):
	Save and restore minibuf_prompt_width.

	* xdisp.c:
Juanma Barranquero's avatar
Juanma Barranquero committed
1186
	(display_text_line): Set minibuf_prompt_width if display the
Dave Love's avatar
#  
Dave Love committed
1187 1188 1189
	prompt.
	(various): Pass window being displayed as arg to vmotion.
	(various): Compute starting-hpos arg to compute_motion
1190
	using minibuf_prompt_width if in minibuf starting at top.
Dave Love's avatar
#  
Dave Love committed
1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201

	* window.c (Fdisplay_buffer & callers):
	Take second arg, non-nil means do not use selected window
	even if that already contains specified buffer.

	* buffer.c (Fpop_to_buffer):
	Pass t as second arg to Fdisplay_buffer.

	* buffer.c (list_buffers_1):
	Make at least two spaces between all fields on a line.

Sam Steingold's avatar
Sam Steingold committed
1202
1985-12-04  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219

	* xfns.c:
	Define Fx_pop_up_window.
	Use make_string, not Fmake_string, in x-get-cut-buffer.
	Mysterious change from Martillo in Fx_change_display.
	Rename variable mouse-pos to x-mouse-pos.

	* xterm.c:
	Changes from Martillo.
	Change mouse command to C-c C-m.

	* term.c (calculate_costs):
	Return immediately if dont_calculate_costs is set.

	* lread.c (Fintern, Fintern_soft):
	Don't allow a symbol as argument to intern or intern-soft.

Sam Steingold's avatar
Sam Steingold committed
1220
1985-12-04  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
1221 1222 1223 1224

	* editfns.c (Fsubst_char_in_region):
	Typo.

Sam Steingold's avatar
Sam Steingold committed
1225
1985-12-03  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1226 1227 1228 1229 1230 1231 1232 1233 1234

	* fileio.c (Fdo_auto_save):
	Always restore old minibuf message if any.

	* alloc.c (Fgarbage_collect):
	Always restore old minibuf message if any.
	Truncate command-history to 30 elements.
	Add some register decls.

Sam Steingold's avatar
Sam Steingold committed
1235
1985-12-03  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
1236 1237

	* lread.c (Fload):
Juanma Barranquero's avatar
Juanma Barranquero committed
1238
	Suppress "Loading %s... done" if noninteractive.
Dave Love's avatar
#  
Dave Love committed
1239 1240

	* alloc.c (Fgarbage_collect):
Juanma Barranquero's avatar
Juanma Barranquero committed
1241
	Suppress "garbage collecting..." message if noninteractive.
Dave Love's avatar
#  
Dave Love committed
1242 1243

	* regex.c (re_compile_pattern):
Juanma Barranquero's avatar
Juanma Barranquero committed
1244
	Fix error message (double "\"'s for c compiler).
Dave Love's avatar
#  
Dave Love committed
1245

Sam Steingold's avatar
Sam Steingold committed
1246
1985-12-03  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1247 1248 1249 1250

	* editfns.c (Fsubst_char_in_region):
	If 5th arg is non-nil, don't record for undo.

Sam Steingold's avatar
Sam Steingold committed
1251
1985-12-02  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262

	* unexec.c (copy_sym, make_hdr):
	Pass file names to these functions.
	Use PERROR properly, with filename as arg.

	* window.c (Fdelete_window):
	Don't let stretching the siblings delete them.

	* window.c (set_window_{height,width}):
	Make `nodelete' apply to children as well.

Sam Steingold's avatar
Sam Steingold committed
1263
1985-11-28  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1264 1265 1266 1267 1268 1269 1270

	* indent.c (compute_motion):
	Omit one register decl if TAHOE_REGISTER_BUG.

	* m-tahoe.h:
	New file.

Sam Steingold's avatar
Sam Steingold committed
1271
1985-11-27  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297

	* sysdep.c (RstDsp):
	Do TIOCSETC before doing fcntl F_SETOWN.

	Note: bizarre bug exists: Fsuspend_emacs
	in impure temacs under vax 4.2 gets stopped
	in that TIOCSETC; but in dumped Emacs, that
	does not happen.  No idea why.  This change
	did not fix it.

	* keymap.c (describe_buffer_bindings):
	Avoid passing a null pointer to InsStr.

	* xterm.c:
	Many random bug fixes from Martillo.

	* xfns.c:
	Bug fixes in Fx_change_display.
	New function Fx_set_icon.
	Fx_set_bell must take 1 arg, not 0.
	Fx_set_window_edges: don't set window size if new size same as old.

	* term.c, termchar.h:
	Define variable `dont_calculate_cost's:
	If set nonzero, `calculate_costs' is not called.

Sam Steingold's avatar
Sam Steingold committed
1298
1985-11-25  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321

	* sysdep.c, keyboard.c:
	Clean up USG simulation of FIONREAD.
	In keyboard.c, new function read_avail_input reads all
	input now in system buffer into kbd_buffer.
	get_pending_input is moved to keyboard.c, and works
	using read_avail_input when FIONREAD is not defined.
	select emulator in sysdep also uses read_avail_input.

	* unexec.c:
	Make PERROR do a return, in non-emacs version.
	Remove explicit returns following PERRORs.
	Replace ERROR with ERROR0, ERROR1 and ERROR2
	which pass along message and args to report_error_1.
	Make those macros do a return, in non-emacs version.

	* process.c (wait_reading_process_output):
	If read_kbd is 10 + I, don't read kbd, but don't
	return until input has arrived from channel I.

	* process.c (Faccept_process_input):
	New Lisp function.

Sam Steingold's avatar
Sam Steingold committed
1322
1985-11-24  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1323 1324 1325 1326

	* unexec.c:
	Close output descriptor if get an error.

Sam Steingold's avatar
Sam Steingold committed
1327
1985-11-23  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1328 1329 1330 1331

	* termcap.c (tgetstr):
	Supply second arg in call to tgetstr1.

Sam Steingold's avatar
Sam Steingold committed
1332
1985-11-22  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346

	* s-bsd4.3.h:
	Undefine INTERUPT_INPUT.  Noninterrupt input should work
	properly given LPASS8 and LNOFLUSH.

	* dispnew.c, keyboard.c (Fset_input_mode):
	Move it from dispnew.c to keyboard.c.

	* sysdep.c (InitDsp):
	Use LNOFLUSH in BSD.

	* term.c (topos):
	Call hook before checking curY and curX.

Sam Steingold's avatar
Sam Steingold committed
1347
1985-11-22  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
1348 1349

	* fileio.c (Frename_file):
Juanma Barranquero's avatar
Juanma Barranquero committed
1350
	Supply third arg to Fcopy_file.
Dave Love's avatar
#  
Dave Love committed
1351

Sam Steingold's avatar
Sam Steingold committed
1352
1985-11-22  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1353 1354 1355 1356

	* keymap.c (push_text_char_description):
	Represent ESC by ^[, not $.

Sam Steingold's avatar
Sam Steingold committed
1357
1985-11-20  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1358 1359 1360 1361 1362

	* minibuf.c (read_minibuf):
	Make Vminibuffer_help_form do its intended job.
	Use alloca to get the space for the prompt.

Sam Steingold's avatar
Sam Steingold committed
1363
1985-11-20  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
1364 1365

	* callproc.c (Fcall_process_region):
Juanma Barranquero's avatar
Juanma Barranquero committed
1366
	Documentation fix (why isn't this function written in lisp?).
Dave Love's avatar
#  
Dave Love committed
1367 1368

	* minibuf.c (read_minibuf)
Juanma Barranquero's avatar
Juanma Barranquero committed
1369
	Use MScreenWidth.
Dave Love's avatar
#  
Dave Love committed
1370

Sam Steingold's avatar
Sam Steingold committed
1371
1985-11-20  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1372 1373 1374 1375 1376 1377 1378 1379

	* tparam.c (tparam):
	Don't pass `left' or `up' to strcat if it is null.

	* cmds.c (SelfInsert):
	Split register arg c into arg c1 and register local c.
	Using & on a register argument happens to work on vax.

Sam Steingold's avatar
Sam Steingold committed
1380
1985-11-19  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1381 1382 1383 1384 1385 1386 1387

	* xdisp.c (try_window_id):
	If change is on top line and display is not starting
	at a real line-beginning, give up so real scrolling is done.
	Return -1, which now tells redisplay_window not to try
	slow redisplay with the same window start.

Sam Steingold's avatar
Sam Steingold committed
1388
1985-11-18  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423

	* m-apollo.h:
	New file.  Use with s-bsd4.2.h?

	* data.c (Fsetcar, Fsetcdr, Faset):
	Conditionalize checks for existing objects being pure
	on CANNOT_DUMP.

	* alloc.c (mark_object, Fpurecopy):
	Conditionalize checks for existing objects being pure
	on not CANNOT_DUMP.  Don't turn on Vpurify_flag if CANNOT_DUMP.

	* emacs.c (Fdump_emacs):
	Conditionalize existence of function on not CANNOT_DUMP.

	* lread.c (read_list, intern):
	Avoid using a conditional expression to compute function to call.
	Conditionalize the entire call (pure_cons vs Fcons or
	make_pure_string vs make_string).

	* syntax.c (scan_sexps_forward (case Sopen)):
	Changed around curlevel++->last since Apollo C compiler loses.

	* lisp.h:
	Define VALBITS and GCTYPEBITS inside #ifndefs
	so config.h can override them.

	* fileio.c (Fexpand_file_name, Fsubstitute_in_file_name):
	APOLLO conditionals to consider // at start of file name
	legitimate.

	* ymakefile:
	Make mention of alloca.o be conditional on not APOLLO.
	Make -lg conditional likewise.

Sam Steingold's avatar
Sam Steingold committed
1424
1985-11-15  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1425 1426 1427 1428 1429

	* ymakefile, read.c:
	Rename read.* to lread.* to avoid trouble with
	#define read sys_read.

Sam Steingold's avatar
Sam Steingold committed
1430
1985-11-14  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457

	* New files xfns.c, xterm.c for X window system.
	xfns contains Lisp subrs for interacting with X.
	TrmTERM.c is eliminated.

	* ymakefile:
	Make compilation and loading of xterm.o and xfns.o
	conditional on HAVE_X_WINDOWS.

	* term.c, termhooks.h:
	Define fix_screen_hook.

	* process.c (wait_handing_process_output):
	Call the terminal's fix_screen_hook, if one is set up.

	* keymap.c:
	Define and initialize MouseMap, a keymap for mouse commands.

	* emacs.c (main):
	Call syms_of_xfns.

	* dispnew.c (init_display):
	For X window system terminals, call x_term_init.

	* buffer.c:
	Flush Lisp variable buffer-number.

Sam Steingold's avatar
Sam Steingold committed
1458
1985-11-13  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489

	* term.c (term_init):
	For c100, do not set TS_set_window if termcap entry gives one
	or if the :ti string fails to fix the screen at the top
	of the display memory.

	* nearly every file changed.

	* New macro XSET to set both fields of a Lisp_Object.
	Most places where XSETTYPE was used, followed by setting
	the pointer field, now use XSET.

	* Many uses of wrong_type_argument replaced with use
	of CHECK_*, including new CHECK_MARKER.

	* Other uses of wrong_type_argument fixed so value
	returned gets used in place of the invalid object.
	Also, the third argument was deleted.

	* New functions xmalloc and xrealloc signal an error
	if memory is not available.  Many calls to malloc and
	realloc are replaced with them.

	* Some unused variables' declarations have been flushed.
	* Some register declarations have been added.

	* alloc.c:
	New functions xmalloc and xrealloc.

	* process.c:
	(pty): Flush unused variable.  Return 0 at end.
Juanma Barranquero's avatar
Juanma Barranquero committed
1490
	(list_processes): New buffer tembuf for sprintf to use.
Dave Love's avatar
#  
Dave Love committed
1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530
	(send_process_trap): Flush unused arg.
	(sig_process): Rename arg `signal' to `signo'.

	* read.c:
	Avoid `file' as variable name for lint's sake.

	* sysdep.c:
	Compile stuff_char only if SIGTSTP exists.
	Changed conditionals within stuff_char.
	Compile wait_without_blocking only if no subprocesses.
	Pass one arg (zero) to `wait'.
	Include old_fcntl_flags in #ifdef FASYNC condition.
	Put old_fcntl_owner inside #ifdef F_SETOWN condition.
	Don't compile end_of_text and end_of_data.
	Delete definitions of readlink and symlink;
	their callers should not exist when system doesn't have symlinks.

	* term.c:
	Don't give the impression that hooks' values are supposed
	to be returned.

	* userid.c:
	Entire file commented out; supposedly not used.

	* dispnew.c:
	Comment out preserve_my_columns, not used.
	Clean up conditionals in Fsleep_for and Fsit_for.

	* doc.c:
	Fix incorrect args to describe_map_tree.

	* eval.c:
	Flush Ffunction_type.
	Make Fautoload override an existing autoload definition.
	wrong_type_argument: check the user's new value
	and get error again unless it fits the predicate.

	* minibuf.c:
	Comment out Fread_function, not used.

Sam Steingold's avatar
Sam Steingold committed
1531
1985-11-12  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548

	* keymap.c:
	Comment out synkey, which nobody calls.

	* lisp.h:
	Define XSET (var, type, ptr) to set both fields of a var.
	Use it in DEFSIMPLE.
	Remove extern decls of non-ex functions; fix dot -> point.
	Remove incorrect decl of staticprolist.

	* fns.c (Flength):
	(concat2, nconc2): Add /* ARGSUSED */ for lint.

	* fileio.c:
	A few declarations for lint's sake.
	Make alias file-readable-p for file-exists-p.

Sam Steingold's avatar
Sam Steingold committed
1549
1985-11-11  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560

	* emacs.c (Fkill_emacs):
	Return arg as exit code if arg is numeric even if interactive.
	Rearrange code to make it smaller.

	* callint.c (Fcall_interactively, case 'v'):
	Use Fread_variable.

	* tparam.c (tparam):
	Rename %s as %f.

Sam Steingold's avatar
Sam Steingold committed
1561
1985-11-10  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573

	* read.c (Fload):
	Rename closefile to load_unwind.
	New boolvar load-in-progress, set to t while loading, nil otherwise.

	* term.c (clear_end_of_line):
	Correct first_unused_hpos by chars_wasted, since curX is corrected.
	Set chars_wasted to zero if about to erase a standout marker.

	* term.c (write_standout_marker):
	Do write the end-standout marker even when sg#0.

Sam Steingold's avatar
Sam Steingold committed
1574
1985-11-09  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1575 1576 1577 1578 1579 1580 1581 1582 1583

	* term.c (set_scroll_region):
	Change parameters given to the `cs' string
	to adjust for changed effect of %i.

	* tparam.c (tparam):
	%i now increments two args, not just one.
	Redefine %a somewhat, as will be described in termcap.texinfo.

Sam Steingold's avatar
Sam Steingold committed
1584
1985-11-08  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
1585 1586

	* emacs.c (Fkill_emacs):
Juanma Barranquero's avatar
Juanma Barranquero committed
1587
	Arg default is 0 if noninteractive, nil if interactive.
Dave Love's avatar
#  
Dave Love committed
1588 1589 1590 1591

	* minibuf.c (Fread_variable):
	Only recognize symbols that are user-variable-p.

Sam Steingold's avatar
Sam Steingold committed
1592
1985-11-08  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1593 1594 1595 1596 1597

	* sysdep.c (init_display):
	Turn on LPASS8 if it is defined.
	Gives 8-bit input in CBREAK mode.

Sam Steingold's avatar
Sam Steingold committed
1598
1985-11-06  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610

	* sysdep.c (get_input_pending, select):
	Provide alternate code for USG without FIONREAD.
	I suspect it does not really work, though.

	* fns.c (Fload_average):
	If LOAD_AVE_TYPE is not defined, just get an error,
	and allow LOAD_AVE_CVT to be undefined as well.

	* m-dual.h:
	Don't define LOAD_AVE_TYPE or LOAD_AVE_CVT.

Sam Steingold's avatar
Sam Steingold committed
1611
1985-11-05  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
1612 1613 1614 1615

	* print.c (print):
	Hack deleted buffers.

Sam Steingold's avatar
Sam Steingold committed
1616
1985-11-04  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1617 1618 1619 1620

	* syntax.c (describe_syntax_1):
	Return type Lisp_Object and value Qnil.

Sam Steingold's avatar
Sam Steingold committed
1621
1985-11-04  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
1622 1623

	* minibuf.c (Fread_variable):
Juanma Barranquero's avatar
Juanma Barranquero committed
1624
	Choose amongst user-variable-p frobs rather than boundp ones.
Dave Love's avatar
#  
Dave Love committed
1625

Sam Steingold's avatar
Sam Steingold committed
1626
1985-11-02  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1627 1628 1629 1630 1631 1632 1633

	* window.c (window_scroll):
	Get error if try to scroll back when at top.

	* window.c (Fscroll_down, Fscroll_up):
	Share new subroutine scroll_command to compute amount to scroll by.

Sam Steingold's avatar
Sam Steingold committed
1634
1985-11-01  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1635 1636 1637 1638 1639 1640 1641

	* dispnew.c (Fset_input_mode):
	Always set interrupt_input to 0 when SIGIO is undefined.

	* keyboard.c (gobble_input, input_available_signal, kbd_buffer_store_char):
	Make these functions exist only if SIGIO is defined.

Sam Steingold's avatar
Sam Steingold committed
1642
1985-10-30  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1643 1644 1645 1646 1647

	* sysdep.c (select):
	Use signal, not sigset, since we simulate signal on
	all system versions when nec.

1648 1649
	* buffer.c (syms_of_buffer, init_buffer_once)
	(reset_buffer_local_variables):
Dave Love's avatar
#  
Dave Love committed
1650 1651 1652 1653 1654 1655 1656 1657 1658
	Define default-abbrev-mode, and init new buffers' abbrev-mode
	from it.  Move definition of abbrev-mode here from abbrev.c.

	* print.c (Fmessage):
	Simplify it by using `message' to do the output.

	* alloca.s:
	Provide alloca for 3b5.

Sam Steingold's avatar
Sam Steingold committed
1659
1985-10-30  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
1660 1661 1662 1663

	* editfns.c, print.c (Fmessage):
	Move Fmessage from editfns to print
	If noninteractive, do not truncate message at all.
Juanma Barranquero's avatar
Juanma Barranquero committed
1664
	If interactive truncate at MScreenWidth (not at 100).
Dave Love's avatar
#  
Dave Love committed
1665 1666

	* alloc.c (mark_buffer):
Juanma Barranquero's avatar
Juanma Barranquero committed
1667
	Catch a few places which should have been marked but weren't.
Dave Love's avatar
#  
Dave Love committed
1668 1669

	* buffer.h, abbrev.c, cmds.c, xdisp.c
Juanma Barranquero's avatar
Juanma Barranquero committed
1670
	abbrev_mode is buffer-local (like all other minor modes).
Dave Love's avatar
#  
Dave Love committed
1671

Sam Steingold's avatar
Sam Steingold committed
1672
1985-10-29  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685

	* sysdep.c (wait_for_termination):
	Install case for 4.1 with subprocesses.
	Realize that what was thought to be that
	was really for no subprocesses; fix it up
	to avoid using synch_process_pid since child_sig won't maintain that.

	* read.c (Fload):
	If arg is empty string, just get error;
	don't try to open any file.

	* eval.c (internal_condition_case):
	Before unwinding after throw, remove any backtrace frames,
Juanma Barranquero's avatar
Juanma Barranquero committed
1686
	catches or handlers that are in stack frames that have been exited.
Dave Love's avatar
#  
Dave Love committed
1687 1688 1689 1690 1691 1692 1693 1694 1695

	* window.c (save_window_restore):
	If saved state uses a dead buffer, don't use Fother_buffer
	to find a buffer to use instead, since that can call Fnext_window
	and the window hierarchy might be malformed at that time.

	* fns.c (Fequal):
	Markers are equal if they point at the same place.

Sam Steingold's avatar
Sam Steingold committed
1696
1985-10-29  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
1697 1698 1699 1700

	* fns.c (Frequire):
	Don't print message whilst loading required file.

Sam Steingold's avatar
Sam Steingold committed
1701
1985-10-29  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1702 1703 1704 1705

	* syntax.c (scan_lists):
	Initialize mathexit.

Sam Steingold's avatar
Sam Steingold committed
1706
1985-10-28  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727

	* process.c (child_sig):
	Rename `dead_pid' to `synch_process_pid'.
	Remove conditionals around calls to deactivate_process.

	* callproc.c (Fcall_process):
	In 4.1, store the pid in synch_process_pid.

	* sysdep.c (wait_for_termination):
	Add case for 4.1 (only with subprocesses)
	waiting for synch_process_pid to be zeroed by child_sig.

	* crt0.c:
	Add version for the orion machine.

	* data.c (arith_error):
	In 4.1, do sigrelse to reallow arith error signals.

	* read.c (read_escape):
	After C-, don't clear meta bit of what follows.

Sam Steingold's avatar
Sam Steingold committed
1728
1985-10-27  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1729 1730 1731 1732

	* m-*.h:
	Define SIGN_EXTEND_CHAR for all machines.

Sam Steingold's avatar
Sam Steingold committed
1733
1985-10-26  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750

	* xdisp.c (display_mode_line):
	If window is not full width but its parent is,
	display the mode line in inverse video.

	* cmds.c (SelfInsert):
	Call the blink paren hook for syntax class $ also.

	* eval.c (Fautoload):
	Accept fifth arg, non-nil meaning function will be a macro
	once it is loaded.

	* eval.c (Fmacroexpand):
	Autoload anything that will be a macro once loaded.
	If a symbol's definition is a symbol that is a macro,
	expand either one seen.

Sam Steingold's avatar
Sam Steingold committed
1751
1985-10-23  Richard M. Stallman  (rms@prep)
Dave Love's avatar
#  
Dave Love committed
1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785

	* eval.c (Fthrow):
	If TAG is nil, always say it is not found, to avoid
	interference with condition-case, which uses nil as catch tag.

	* print.c (PRINTPREPARE & uses):
	Don't change print_depth in PRINTPREPARE;
	those callers for which it matters now do it themselves.

	*print.c (print):
	Do QUIT; at the beginning.  Also in string and symbol loops.

	* window.c (set_window_{height,width}):
	In args to recursive calls, use XINT, not XFASTINT.
	Perhaps a "too small" window could have negative size.

	* window.c (change_window_height):
	Fix calls to sizefun and setsizefun to dereference first.

	* window.c (save_window_restore):
	Make it return a Lisp_Object.

	* fns.c (concat & callers):
	New arg last_special which if non-0 says don't copy last arg.
	Only Fappend supplies it as nonzero.

	* keyboard.c (Fsuspend_emacs):
	Take already-read input and stuff it.

	* fileio.c (Ffile_directory_p, Ffile_modes):
	Remove final slash from file name before doing stat.
	In 4.2, final slash can cause wrong result
	if file is read-protected.

Sam Steingold's avatar
Sam Steingold committed
1786
1985-10-22  Richard Mlynarik  (mly@prep)
Dave Love's avatar
#  
Dave Love committed
1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800

	* eval.c (Fcondition_case):
	Add some error-checks to condition-case;
	prevent core-dump when handler list is illegal.

	* keyboard.c (cmd_error):
	Do the file-error hack for conditions including file-error,
	not just file-error itself.

	* callint.c (Fcall_interactively):
	Quotify car of command-history in (interactive <list>) case
	New function quotify_args to do the work.

	* fns.c (Fnconc):
Juanma Barranquero's avatar
Juanma Barranquero committed
1801
	Typo: wrong_type_arg called with Flistp, not Qlistp.
Dave Love's avatar
#  
Dave Love committed
1802

Sam Steingold's avatar
Sam Steingold committed
1803
1985-10-22  Richard M. Stallman  (rms@mit-prep)
Dave Love's avatar
#  
Dave Love committed
1804 1805 1806 1807

	* process.c (Fset_process_buffer, Fstart_process):
	Allow a process's buffer to be nil.

Sam Steingold's avatar
Sam Steingold committed
1808
1985-10-21  Richard M. Stallman  (rms@mit-prep)
Dave Love's avatar
#  
Dave Love committed
1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833

	* window.c (Fscroll_{left,right}):
	Default arg is now window width minus 2.

	* search.c (Freplace_match):
	If not literal, make \ always an escape.
	Thus two \'s are needed for one literal one.

	* data.c (wrong_type_argument):
	Eliminate third arg from function and its explicit callers.

	* window.c (Fpos_visible_in_window_p):
	Provide missing tab_offset arg to compute_motion.

	* xdisp.c (init_xdisp):
	Provide missing 3rd arg to set_window_height.

	* fileio.c (e_write):
	Make it really return -1 if write doesn't write everything.

	* data.c (Fsymbol_{function,value}):
	Replace Qvoid_symbol condition with two conditions
	Qvoid_{variable,function}.  No longer pass boundp or fboundp
	as part of the extra info, since would be redundant.

Sam Steingold's avatar
Sam Steingold committed
1834
1985-10-18  Richard M. Stallman  (rms@mit-prep)
Dave Love's avatar
#  
Dave Love committed
1835 1836 1837 1838 1839 1840 1841

	* editfns.c (Fformat):
	Remove limit on length of output.

	* doprnt.c (doprnt):
	Rearrange so can handle %2s, etc.

Sam Steingold's avatar
Sam Steingold committed
1842
1985-10-17  Richard M. Stallman  (rms@mit-prep)
Dave Love's avatar
#  
Dave Love committed
1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914

	* process.c:
	Define sys_siglist for 4.1, which doesn't provide one.
	Use new flag HAVE_PTYS to enable compilation of `pty'
	and of some code in `create_process'.
	Flist_processes: omit unused third arg to Findent_to.
	create_process: Omit some code for ptys unless HAVE_PTYS.
	 Provide 4.1 alternatives for sigsetmask.
	wait_reading_process_input:
	 If not HAVE_TIMEVAL, provide alternative code using ints.
	 Handle failure of FIONREAD.
	send_process_trap:
	 In 4.1, release SIGPIPE and SIGALRM.
	sig_process: check current_group for nil or not,
	 rather than 0 or not.
	count_active_processes: get rid of arg `buffer' which was unused.
	child_sig: strange hacks with dead_pid for 4.1.
	 Hold and release SIGCHLD in 4.1.
	 Do not call deactivate_process in 4.1 (puzzles me).

	* sysdep.c:
	Omit fcntl.h under 4.1.
	get_input_pending: return 0 if input not a tty.
	discard_terminal_input: do nothing if batch mode.
	stuff_char: err instead of aborting on system V.
	init_baud_rate: always set ospeed = 0 if batch mode.
	InitDsp: turn ANYP on rather than off.  Make lmode global.
	 In 4.1, turn on LINTRUP if interrupt_input.
	child_setup_tty: in 4.1, clear LINTRUP in the child.
	tabs_safe_p: always say tabs are safe if batch mode.
	RstDsp: In 4.1, turn off LINTRUP if interrupt_input.
	setpriority: define as noop for 4.1.
	request_sigio: for 4.1, turn on LINTRUP.
	unrequest_sigio: for 4.1, turn off LINTRUP.

	* read.c (readevalloop, read_list, read_vector, intern):
	Dereference expressions of type pointer-to-function before calling.

	* read.c (hash_string):
	Use unsigned char, not char, for strings.

	* read.c (map_obarray):
	Expect function to be mapped to return int, not Lisp_Object.

	* undo.c:
	Include lisp.h before undo.h.

	* unexec.c:
	Introduce ADDR_CORRECT.  Apply it to supplied values
	for bss_start and data_start, and to values returned by sbrk.
	Use NBPG instead of getpagesize () in BSD4.1.
	Use char *'s for ptr and end in copy_text_and_data.

	* print.c (print):
	Remove unused fourth arg from recursive calls.

	* minibuf.c (Fminibuffer_complete{,_and_exit}):
	Copy function value into variable before switching on it.
	(Direct way loses on orion).

	* s-*.h:
	Define HAVE_SELECT and NONSYSTEM_DIR_LIBRARY where appropriate.
	Reorder the flags, and make all the s- files look parallel.

	* keyboard.c:
	Define new constructs sigfree, sigholdx, sigblockx,
	sigunblockx, sigpausex which do one thing in 4.1 and another in
	4.2.  In 4.1, use SIGTINT as if it were SIGIO.

	* keyboard.c (getchar, interrupt_signal):
	Don't omit the arg DoDsp or Fdo_auto_save wants.

Juanma Barranquero's avatar
Juanma Barranquero committed
1915
	* keyboard.c (echo_them, input_available_signal):
Dave Love's avatar
#  
Dave Love committed
1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934
	Put in hair for 4.1 for interfacing with select emulation.

	* keyboard.c (top_level_1):
	* macro.c (pop_kbd_macro):
	Must have type Lisp_Object, and return a valid one.

	* keymap.c (describe_{vector,alist}):
	Expect elt_describer to return int, not Lisp_Object.
	Dereference that variable before calling it.

	* keymap.c (apropos1):
	Must have type Lisp_Object, and return a valid one.

	* syntax.c (describe_syntax):
	Make it return type int, and don't bother about what int.

	* search.c (search_buffer):
	If fwd, require match to end not beyond search limit.

Sam Steingold's avatar
Sam Steingold committed
1935
1985-10-16  Richard M. Stallman  (rms@mit-prep)
Dave Love's avatar
#  
Dave Love committed
1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023

	* alloc.c:
	New vars data-bytes-{used,free} that ref malloc_sbrk{,un}used.

	* editfns.c (save_{excursion,restriction}_restore):
	Must have type Lisp_Object, and return a valid one.

	* editfns.c (format1):
	Handle NO_ARG_ARRAY case.

	* eval.c (internal_catch, internal_condition_case, unbind_to):
	Dereference variables of type pointer-to-function before calling.

	* eval.c (Fautoload, call1, call2, call3):
	If NO_ARG_ARRAY, don't assume that consecutive args can be
	treated as an array.  Copy them into another array.

	* fileio.c (barf_or_query_if_file_exists):
	Fix paren error.

	* fileio.c (Fcopy_file):