ChangeLog 619 KB
Newer Older
1 2 3 4 5 6 7 8
2000-06-30  Gerd Moellmann  <gerd@gnu.org>

	* frame.c (next_frame): Don't check frame-focus redirection in
	case MINIBUF is a window.  Doing so excludes frames using MINIBUF
	unless their focus is redirected, which contradicts the
	specification of next-frame, and leads to infinite loops in
	certain situations when cycling through windows with next-window.

Kenichi Handa's avatar
Kenichi Handa committed
9 10 11 12 13 14
2000-06-30  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (code_convert_region): Even if the length of text is
	zero, try to convert it if coding->type is coding_type_ccl.
	(decode_coding_string, encode_coding_string): Likewise.

Gerd Moellmann's avatar
Gerd Moellmann committed
15 16
2000-06-28  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
	* xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
	 the display if windows_or_buffers_changed.

	* dispnew.c (struct row_entry): New structure.
	(row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
	(row_table_size, old_lines, new_lines, old_lines_size)
	(new_lines_size, run_pool, runs_size, runs): New variables.
	(add_row_entry): New function.
	(scrolling_window): Use data structures allocated with xmalloc and
	held in global variables, instead of allocing them with alloca and
	holding them in local variables.  Use a larger hash table whose
	size depends on glyph matrix sizes.  Don't use bzero to clear the
	hash table; instead, clear used slots only.

	* fns.c (next_almost_prime): Make it externally visible.

	* lisp.h (next_almost_prime): Add prototype.

Gerd Moellmann's avatar
Gerd Moellmann committed
35 36 37 38
	* s/isc4-0.h (sigunblock): Define.

	* s/sco5.h (sigunblock): Define.

39 40 41 42 43 44 45 46 47
2000-06-27  Dave Love  <fx@gnu.org>

	* s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
	(moved to osf5-0.h).
	[!NOT_C_CODE]: Protect string.h stuff.

	* s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
	(sys_siglist, NSIG): Definitions moved here from osf1.h.

48 49 50 51 52
2000-06-27  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (resize_mini_window): Subract the extra line spacing
	below the last line from the needed window height.

Stefan Monnier's avatar
Stefan Monnier committed
53 54 55 56 57 58
2000-06-26  Stefan Monnier  <monnier@cs.yale.edu>

	* fns.c (Fplist_member): Renamed from Fwidget_plist_member.
	(Fwidget_get): Use it.
	(syms_of_fns): Defsubr it.

Gerd Moellmann's avatar
Gerd Moellmann committed
59 60
2000-06-26  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
61 62 63 64 65 66 67 68 69
	* xterm.c (xim_initialize) [!USE_XIM]: Don't set up the 
	display info for XIM.
	(xim_open_dpy): Likewise.
	(xim_close_dpy): Don't free the display info's XIM.

	* xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.

	* config.in (USE_XIM): New define.

70 71 72 73 74 75
	* keymap.c (get_keyelt): For menu-items containing a `:filter
	FILTER', apply FILTER to the menu-item's definition to get the
	real definition to use.

	* lisp.h (QCfilter): External declaration.

Gerd Moellmann's avatar
Gerd Moellmann committed
76 77 78
	* xfns.c (Fimage_size): New function.
	(syms_of_xfns): Defsubr it.

Andreas Schwab's avatar
.  
Andreas Schwab committed
79 80 81 82 83
2000-06-26  Andreas Schwab  <schwab@suse.de>

	* coding.c (decode_coding_string): Re-fetch STRING_BYTES after
	Fstring_as_unibyte.

Dave Love's avatar
Dave Love committed
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
2000-06-25  Dave Love  <fx@gnu.org>

	* term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
	tgetnum.

	* Makefile.in (blockinput.h): Depend on atimer.h.
	(atimer.h): Depend on systime.h.

	* blockinput.h: Protect against multiple inclusion.  Include
	atimer.h.

	* atimer.h: Protect against multiple inclusion.  Include
	systime.h.

	* lisp.h (swap_in_global_binding): Declare.

100 101 102 103 104
2000-06-24  Ken Raeburn  <raeburn@gnu.org>

	* process.c (Fopen_network_stream): Turn off atimers for duration
	of call to connect.  (Patch from Gerd.)

Dave Love's avatar
Dave Love committed
105 106
2000-06-23  Dave Love  <fx@gnu.org>

Dave Love's avatar
Dave Love committed
107 108
	* ralloc.c: Maybe include unistd.h

Dave Love's avatar
Dave Love committed
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
	* emacs.c (setgrp): Undefine before defining.
	(malloc_warning, set_time_zone_rule, index): Prototype.

	* systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
	HAVE_STRUCT_TIMEZONE.

	* s/osf1.h: Move string.h hack here from alpha.h and make it
	conditional.
	(C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
	_XOPEN_SOURCE.
	(WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
	(SOCKLEN_TYPE): Don't define.

	* m/alpha.h: Remove string.h hack.

	* s/osf5-0.h: New file.

	* filelock.c: Use feature tests for fcntl.h, string.h.  Don't
	include time.h, done by systime.h.
	[__FreeBSD__]: Remove redundant includes.

130
	* callproc.c (setpgrp): Undefine before defining.
Dave Love's avatar
Dave Love committed
131 132 133 134 135 136 137 138 139 140 141 142 143 144
	(delete_temp_file): Return Qnil to avoid warning.

	* config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.

	* xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
	HAVE_X_WINDOWS.

	* fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.

	* composite.h (compose_text): Declare.

	* xterm.c: Don't include sys/types.h unconditionally.  Don't
	protect its inclusion with !USG (following xmenu.c).

Gerd Moellmann's avatar
Gerd Moellmann committed
145 146 147 148 149
2000-06-23  Gerd Moellmann  <gerd@gnu.org>

	* xfns.c (x_create_tip_frame): Initialize frame's colors like
	in x_create_frame.

150 151 152 153 154
2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>

	* coding.c (decode_eol_post_ccl): Special handling for undecided
	and inconsistent EOL types.

155 156
2000-06-22  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
157 158 159 160 161 162 163 164 165 166
	* xrdb.c (x_load_resources): Add default resource for scroll bar's
	trough color and main window's background color.

	* xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events 
	differently.

	* xterm.h (Xt_app_con): External declaration.

	* widget.c (EmacsFrameRealize): Fix typo.
	
167 168
	* widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.

169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
	* xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
	(handle_invisible_prop): Record the start of invisible text in
	it->add_overlay_start.
	(struct overlay_entry): Add member `overlay'.
	(handle_overlay_change): Simplify.
	(next_overlay_string): After having processed overlay strings at the
	end of the buffer, record that fact in
	it->overlay_strings_at_end_processed_p.
	(compare_overlay_entries): If before- and after-strings come
	from the same overlay, let before-strings come first.
	(RECORD_OVERLAY_STRING): Record the overlay that strings come from.
	(load_overlay_strings): Take it->add_overlay_start into account
	when adding overlay strings.

	* dispextern.h (struct it): Add member add_overlay_start.

185 186 187 188 189 190
2000-06-22  Dave Love  <fx@gnu.org>

	* s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.

	* s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.

Kenichi Handa's avatar
Kenichi Handa committed
191 192 193 194 195
2000-06-22  Kenichi Handa  <handa@etl.go.jp>

	* ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
	is greater than 0.

196 197 198 199
2000-06-21  Dave Love  <fx@gnu.org>

	* Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it. 

200 201 202 203 204 205 206 207
2000-06-21  Stefan Monnier  <monnier@cs.yale.edu>

	* syntax.c (back_comment): Simplify string-parity counting (with
	the added benefit of handling multiple string-styles as long as
	they are not intertwined).
	Jump to the slow code as soon as a comment starter is found in
	a "string_lossage" position.  Fixes the case:  " /* " /* " */.

Dave Love's avatar
Dave Love committed
208 209 210 211 212 213 214
2000-06-21  Dave Love  <fx@gnu.org>

	* Makefile.in: Use GETLOADAVG_LIBS.

	* config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
	_LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.

215 216 217 218 219 220 221
2000-06-20  Stefan Monnier  <monnier@cs.yale.edu>

	* syntax.c (describe_syntax): Recognize the `n'estable bit.
	(Fforward_comment, scan_lists):
	Check the comstyle of single-char comment-starters.
	(scan_sexps_forward): Don't try to recognize `half comment-enders' if
	we're just at the beginning of the comment (f.ex with (*) ... (*)).
Stefan Monnier's avatar
Stefan Monnier committed
222 223
	Check the comstyle of single-char comment-starters.
	Clarify control-flow around the Scomment case.
224

Dave Love's avatar
Dave Love committed
225 226
2000-06-20  Dave Love  <fx@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
227 228
	* fns.c (make_hash_table, maybe_resize_hash_table):
	Cast arg of next_almost_prime.
Dave Love's avatar
Dave Love committed
229 230 231 232 233 234

	* tparam.c [emacs]: Include lisp.h. 

	* termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5.  Include lisp.h
	and unistd.h.

Gerd Moellmann's avatar
Gerd Moellmann committed
235 236
2000-06-20  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
237 238 239 240 241 242 243 244 245 246 247
	* keyboard.c (adjust_point_for_property): Check if display
	property should be treated as intangible by looking at its
	value.

	* xdisp.c (single_display_prop_intangible_p) 
	(display_prop_intangible_p): New functions.

	* dispextern.h (display_prop_intangible_p): Add prototype.

	* xdisp.c (dump_glyph_row): Show type of glyph->object.
	
Gerd Moellmann's avatar
Gerd Moellmann committed
248 249 250 251 252 253 254 255 256 257 258 259 260 261
	* s/isc4-0.h (sigblock): Redefined to pass a pointer as second
	argument to sigprocmask.

	* s/sco5.h (sigblock): Redefined to pass a pointer as second
	argument to sigprocmask.

	* syssignal.h (sigblock, sigunblock) [USG5_4]: Set
	sigprocmask_set, and pass a pointer to it to sigprocmask.

	* sysdep.c (sigprocmask_set): New variable.

	* fileio.c (make_temp_name): Don't use `%s' in string passed to
	report_file_error.

262 263 264 265
2000-06-20  Sam Steingold  <sds@gnu.org>

	* xrdb.c: Don't declare xmalloc, xrealloc.

Stefan Monnier's avatar
Stefan Monnier committed
266 267 268 269 270 271
2000-06-20  Stefan Monnier  <monnier@cs.yale.edu>

	* regex.c (re_match, re_match_2): Protect calls to alloca (0).
	(re_comp): Cast gettext return value to avoid complaints when
	!HAVE_LIBINTL.

Dave Love's avatar
Dave Love committed
272 273
2000-06-20  Dave Love  <fx@gnu.org>

274 275 276
	* m/stride.h, m/mips.h: Don't define HAVE_GETWD,
	HAVE_GETTIMEOFDAY.

Dave Love's avatar
Dave Love committed
277
	* m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
278

Stefan Monnier's avatar
Stefan Monnier committed
279
	* m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
280 281 282

	* m/alpha.h: Don't declare xmalloc, xrealloc.

Dave Love's avatar
Dave Love committed
283 284 285 286 287 288 289 290 291
	* s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.

	* s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.

	* s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.

	* s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
	HAVE_GETWD.

Dave Love's avatar
Dave Love committed
292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309
	* keyboard.h (poll_for_input_1): Declare.

	* getloadavg.c: Don't define NLIST_STRUCT (handled by configure).

	* alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.

	* doprnt.c: Don't declare xmalloc, xrealloc.

	* lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
	(getenv, ctime, getwd): Removed.
	(xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.

	* xterm.h: Remove duplicate prototypes.  Declare free_frame_xic,
	x_set_tool_bar_lines.

	* config.in: Add HAVE_GETWD.  Move some definitions above
	machine/system includes.

Kenichi Handa's avatar
Kenichi Handa committed
310 311
2000-06-20  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
312 313
	* s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.

Kenichi Handa's avatar
Kenichi Handa committed
314 315 316 317 318 319 320 321 322 323 324 325
	* xfaces.c (font_list): Handle the case that REGISTRY doesn't
	contain information about ENCODING.

	* fontset.c (FONTSET_ASCII): Use the first element of char table
	for an ASCII font, not defalt slot.
	(fontset_ref_via_base): If FONTSET doesn't contain information for
	C, try the default fontset.
	(make_fontset): Don't copy the default fontset.
	(fontset_font_pattern): Likewise.
	(accumulate_font_info): If ELT is nil, use the corresponding
	element in the default fontset.

Dave Love's avatar
Dave Love committed
326 327
2000-06-19  Dave Love  <fx@gnu.org>

Dave Love's avatar
Dave Love committed
328 329 330 331
	* syntax.c (Fparse_partial_sexp): Doc fix.

	* regex.h: Test PROTOTYPES as well as __STDC__.

Dave Love's avatar
Dave Love committed
332 333 334 335 336 337 338 339
	* unexalpha.c: Include errno.h, string.h, unistd.h.  Don't declare
	errno, strerror.  Put text after #endif in comment.

	* xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
	pcc).

	* xterm.c (x_frame_of_widget): Likewise.

Gerd Moellmann's avatar
Gerd Moellmann committed
340 341 342 343 344 345 346 347 348 349 350 351 352
2000-06-19  Gerd Moellmann  <gerd@gnu.org>

	* abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
	to Vfundamental_mode_abbrev_table.

	* alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
	bogus objects are marked.  This slows down GC by ~80 percent, but
	it might be worth trying when debugging GC-related problems.
	This feature requires conservative stack marking to be enabled.

	* xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
	returns XLookupChars, reset `modifiers' to zero.

Dave Love's avatar
Dave Love committed
353 354 355 356
2000-06-19  Dave Love  <fx@gnu.org>

	* mktime.c: Unprotoized.

Gerd Moellmann's avatar
Gerd Moellmann committed
357 358 359 360 361
2000-06-19  Richard Stallman  <rms@caffeine.ai.mit.edu>

	* data.c (set_internal): If variable is frame-local,
	store the new value immediately into the frame parameter alist.

362 363
2000-06-19  Ken Raeburn  <raeburn@gnu.org>

Ken Raeburn's avatar
Ken Raeburn committed
364 365 366
	* xfns.c (jpeg_load): Fetch error-handling data first, then fill
	in the custom handler pointer.

367 368 369 370 371
	* keyboard.c (follow_key, read_key_sequence): Use XUINT on key
	value, or checks for CHAR_META can fail when Lisp_Object is a
	union type.
	* keymap.c (get_keyelt): Likewise.

Kenichi Handa's avatar
Kenichi Handa committed
372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390
2000-06-19  Kenichi Handa  <handa@etl.go.jp>

	* ccl.h (struct ccl_program): New member eol_type.
	(struct ccl_spec): New member cr_carryover.

	* ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
	(setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.

	* coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
	(ccl_coding_driver): On encoding, initialize ccl->eol_type.
	(decode_eol_post_ccl): New function.
	(decode_coding): Don't detect EOL format here for CCL based coding
	systems.
	(decode_coding) <coding_type_ccl>: Handle carryovered CR.  Call
	decode_eol_post_ccl after running the CCL program.
	(code_convert_region): Don't detect EOL format here for CCL based
	coding systems.
	(decode_coding_string): Likewise.

391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412
2000-06-18  Ken Raeburn  <raeburn@gnu.org>

	* charset.c (update_charset_table): Use XINT on "iso_final_char"
	when treating it as an integer.

	* coding.h (encode_coding_string): Declare.

	* keyboard.c (read_key_sequence): Use XINT on "pos" when treating
	it as an integer.

	* keymap.c (Fwhere_is_internal): Rename argument "keymap" to
	"xkeymap" to avoid shadowing the "enum map_type" value that needs
	to be passed to get_local_map.

	* sound.c (Fplay_sound): Don't call make_number on
	Frun_hook_with_args count argument.

	* xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
	for lisp objects in X event structure data field, when lisp
	objects are represented with unions.
	(x_scroll_bar_to_input_event): Ditto.

413 414 415
2000-06-16  Ken Raeburn  <raeburn@gnu.org>

	* xdisp.c (decode_mode_spec): In "no_value" case, do NUL
416 417
	termination of string.  Fix sense of test whether
	Vline_number_display_limit is an integer.
418

419 420
2000-06-16  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
421 422 423
	* xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
	only if HAVE_X_WINDOWS.

Gerd Moellmann's avatar
Gerd Moellmann committed
424 425 426
	* keymap.c (describe_buffer_bindings): Add `\f\n' in front
	of titles.

427
	* dispnew.c (update_frame_1): Handle case that cursor vpos is
428 429
	out of bounds.

Eli Zaretskii's avatar
Eli Zaretskii committed
430 431 432 433 434
2000-06-15  Eli Zaretskii  <eliz@is.elta.co.il>

	* unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
	of its headers.

Kenichi Handa's avatar
Kenichi Handa committed
435 436 437 438 439
2000-06-15  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (decode_coding_emacs_mule): Always set src_base at the
	start of the while loop.

440 441
2000-06-15  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
442 443
	* atimer.c (alarm_signal_handler): Add forward declaration.

444 445
	* data.c (set_internal): Remove debug code.

Gerd Moellmann's avatar
Gerd Moellmann committed
446 447
2000-06-14  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
448 449
	* Makefile.in (bootstrap-temacs): Add `-I../src'.

Gerd Moellmann's avatar
Gerd Moellmann committed
450 451 452 453 454 455 456
	* unexec.c (toplevel) [COFF]: Include coff.h.

	* s/lynxos.h: New file.

	* keymap.c (Fsingle_key_description): Enclose function key and
	event symbol names in angle brackets.

457 458 459 460
	* xdisp.c (setup_echo_area_for_printing): Call
	message_log_maybe_newline if message_buf_print is not set.

	* print.c (printchar, strout): Don't check message_buf_print
461
	before calling setup_echo_area_for_printing because that
462 463 464
	function does something useful even when message_buf_print is
	already set.

Gerd Moellmann's avatar
Gerd Moellmann committed
465 466 467 468 469 470
	* xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
	variables.
	(ensure_echo_area_buffers): Initialize echo buffer's
	truncate lines setting to nil.
	(with_echo_area_buffer): Don't set the echo buffer's truncate
	lines setting here.
471
	(set_message_1): Set it here instead, based on the value
Gerd Moellmann's avatar
Gerd Moellmann committed
472 473 474 475 476 477 478 479 480 481
	of message_truncate_lines.
	(resize_mini_window): Handle case that lines are truncated.
	(syms_of_xdisp): Initialize Qmessage_truncate_lines.  DEFVAR_BOOL
	message-truncate-lines.

	* keyboard.c (read_char): Bind message-truncate-lines to t
	while displaying a help-echo.

	* lisp.h (Qmessage_truncate_lines): External declaration.

482 483
2000-06-13  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
484 485 486 487 488 489 490 491
	* xdisp.c (Vline_number_display_limit): Renamed from
	line_number_display_limit.
	(syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
	Extend documentation string.  Initialize
	Vline_number_display_limit to nil meaning no limit.
	(decode_mode_spec): Use Vline_number_display_limit with its new
	meaning.

492 493 494 495 496
	* xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.

2000-06-13  Richard Stallman  <rms@caffeine.ai.mit.edu>

	* frame.c (Fmodify_frame_parameters): Doc fix.
497

498 499 500 501 502 503 504
	* xfns.c (x_set_frame_parameters): Comment fix.

	* frame.c (store_frame_param): Call swap_in_global_binding if the
	variable's current binding was chosen based on this frame.

	* data.c (swap_in_global_binding): New function.

Eli Zaretskii's avatar
Eli Zaretskii committed
505 506 507 508 509
2000-06-13  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
	macro, instead AND with CODING_REQUIRE_ENCODING_MASK.

Eli Zaretskii's avatar
Eli Zaretskii committed
510 511 512 513
2000-06-13  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.

Jason Rumney's avatar
Jason Rumney committed
514 515 516 517 518 519 520 521 522 523
2000-06-12  Jason Rumney  <jasonr@gnu.org>

	* w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__

	* w32.h (EMACS_W32_H): Renamed from _NT_H_

	* w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__

	* w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__

Gerd Moellmann's avatar
Gerd Moellmann committed
524 525 526 527 528 529 530 531 532 533 534 535 536 537
2000-06-12  Gerd Moellmann  <gerd@gnu.org>

	* xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
	(syms_of_xfaces): Defsubr Sdump_colors.
	(x_free_colors): Don't treat b&w specially on default visual.
	(x_free_dpy_colors): New function.
	(free_face_colors): Don't check visual class; it's done
	in x_free_colors.

	* xterm.c (x_frame_of_widget): New function.
	(x_alloc_nearest_color_for_widget): Use it.
	(x_copy_dpy_color): New function.
	(x_destroy_window): Free various colors.

Kenichi Handa's avatar
Kenichi Handa committed
538 539 540 541 542 543 544 545 546 547 548 549
2000-06-12  Kenichi Handa  <handa@etl.go.jp>

	* ccl.h (EMACS_CCL_H): Renamed from _CCL_H.

	* charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.

	* coding.h (EMASC_CODING_H): Renamed from _CODING_H.

	* composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.

	* fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.

550 551 552 553
2000-06-11  Dave Love  <fx@gnu.org>

	* systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.

554 555 556 557
2000-06-11  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.

Gerd Moellmann's avatar
Gerd Moellmann committed
558 559
2000-06-11  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
560
	* xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
Gerd Moellmann's avatar
Gerd Moellmann committed
561 562
	to `XEvent *'.

Kenichi Handa's avatar
Kenichi Handa committed
563 564
2000-06-10  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
565 566 567 568
	* regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
	(regex_compile): Fix the code for handling the case of single byte
	char and multibyte char being mixed in a range within [...].

Kenichi Handa's avatar
Kenichi Handa committed
569 570 571
	* fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
	and dst_multibyte members of coding.

Kenichi Handa's avatar
Kenichi Handa committed
572 573 574 575 576 577 578 579 580
	* charset.c (update_charset_table): Update the table
	bytes_by_char_head.
	(init_charset_once): Initialize elements of bytes_by_char_head to
	1 except for leading codes for private charases.

	* charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
	(UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
	sequence.

581 582 583 584 585
2000-06-09  Ken Raeburn  <raeburn@gnu.org>

	* xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
	access the data it doesn't point to.

Gerd Moellmann's avatar
Gerd Moellmann committed
586 587 588
2000-06-08  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
Gerd Moellmann's avatar
Gerd Moellmann committed
589
	will be translated to a switch-frame event when reading the
Gerd Moellmann's avatar
Gerd Moellmann committed
590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605
	event queue.  This is necessary because Emacs otherwise won't
	perform a switch-frame to a new frame until some other event, for
	example a keystroke event, forces it to do so.  This has various
	effects, one visible being that the cursor of a frame created with
	C-x 5 2 or switched to with a window manager key binding like
	A-TAB stays hollow because selected_window isn't on the newly
	focused frame until the switch-frame is performed.

	* keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
	generating a switch-frame event if necessary.

	* termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.

	* xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
	it's an integer.

606 607 608 609 610
2000-06-08  Kenichi Handa  <handa@etl.go.jp>

	* fontset.c (Fset_fontset_font): The arg CHARACTER may be a
	charset.

611 612
2000-06-07  Gerd Moellmann  <gerd@gnu.org>

613 614
	* window.c (displayed_window_lines): Take empty lines at
	the bottom of a window into account.
615

616 617 618 619 620 621 622 623
	* window.c (displayed_window_lines): New function.
	(Fmove_to_window_line): Use displayed_window_lines to determine
	the number of lines to move, instead of using the window's height.

	* lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
	to stop reading, even if the form read sets point to a different
	value when evaluated.

624
	* xdisp.c (display_line): Fix code deciding in which line to
625 626
	put the cursor.

Kenichi Handa's avatar
Kenichi Handa committed
627 628 629 630 631
2000-06-07  Kenichi Handa  <handa@etl.go.jp>

	* fileio.c (e_write): Free composition data if stored in
	coding->cmp_data.

Gerd Moellmann's avatar
Gerd Moellmann committed
632 633
2000-06-06  Gerd Moellmann  <gerd@gnu.org>

634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649
	* xdisp.c (display_line): Set row's and iterator's
	starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
	Set cursor even if row ends in the middle of a character.
	(dump_glyph_row): Print values of new flags.
	(redisplay_window) <cursor movement in unchanged window>: When
	point has been moved forward, and PT is at the end of the cursor
	row, don't place the cursor in the next row if the cursor row ends
	in the middle of a character or at ZV.

	* dispextern.h (struct it): Add starts_in_middle_of_char_p.
	(struct glyph_row): Add starts_in_middle_of_char_p and
	ends_in_middle_of_char_p.
	(MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
	ends_in_middle_of_char_p flag.
	(MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.

650 651 652 653 654 655
	* term.c (append_glyph): Revert change of 2000-06-06.

	* xdisp.c (display_line): Revert change of 2000-06-06.  Treat
	padding glyph not fitting on line as whole character not
	fitting on line.

Gerd Moellmann's avatar
Gerd Moellmann committed
656 657 658
	* xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
	this isn't true for images with `:ascent 100'.

659 660
2000-06-06  Kenichi Handa  <handa@etl.go.jp>

661 662 663
	* buffer.c (Fset_buffer_multibyte): Don't make the current buffer
	as modified if it is originally unmodified.

664 665 666 667 668 669 670
	* term.c (encode_terminal_code): Change the way to check if
	terminal coding does any conversion.
	(append_glyph): Set glyph->pixel_width correctly.

	* xdisp.c (display_line): While checking line continuation, pay
	attention to a padding glyph.

Gerd Moellmann's avatar
Gerd Moellmann committed
671 672 673 674
2000-06-05  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (redisplay_window): Always use set_buffer_internal_1.

Dave Love's avatar
Dave Love committed
675 676
2000-06-05  Dave Love  <fx@gnu.org>

Dave Love's avatar
Dave Love committed
677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705
	* xdisp.c: Include fontset.h.

	* xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.

	* xterm.c (x_calc_absolute_position): Declare nchildren unsigned.

	* dispnew.c: Conditionally include term.h.

	* coding.h: Declare code_convert_string_norecord.

	* frame.h (struct frame): Use volatile unconditionally.

	* buffer.h: Remove Vbefore_change_function, Vafter_change_function.

	* xmenu.c (menu_item_selection): Declare volatile unconditionally.

	* systime.h: Protect against multiple inclusion.
	(timezone) [USG5_4]: Define as time_t.

	* lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
	(Foptimize_char_table, make_temp_name): Declare.

	* Makefile.in (xdisp.o): Depend on fontset.h.

	* xterm.c (x_calc_absolute_position): Declare nchildren unsigned.

	* lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
	(Foptimize_char_table, make_temp_name): Declare.

706
	* s/irix4-0.h:
Dave Love's avatar
Dave Love committed
707 708 709
	* s/irix5-0.h:
	* s/netbsd.h: Don't define autoconfiscated MATHERR.

Dave Love's avatar
Dave Love committed
710 711 712 713
2000-06-02  Dave Love  <fx@gnu.org>

	* lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.

Gerd Moellmann's avatar
Gerd Moellmann committed
714 715 716
2000-06-02  Gerd Moellmann  <gerd@gnu.org>

	* xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
Gerd Moellmann's avatar
Gerd Moellmann committed
717
	result face, set flags in that face indicating that colors may not
Gerd Moellmann's avatar
Gerd Moellmann committed
718 719 720 721 722
	be freed.

	* xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
	glyph, use the ASCII NUL character to determine the face.

Dave Love's avatar
Dave Love committed
723 724 725 726
2000-06-02  Dave Love  <fx@gnu.org>

	* sysdep.c: Conditionally include stdlib.h, unistd.h.
	(VFORK_RETURN_TYPE): Remove.
727

Dave Love's avatar
Dave Love committed
728 729
	* config.in: Add NO_MATHERR.

730 731
2000-06-01  Dave Love  <fx@gnu.org>

Dave Love's avatar
Dave Love committed
732 733 734 735 736 737 738 739
	* cmds.c (internal_self_insert): Don't check
	Vbefore_change_function, Vafter_change_function.

	* insdel.c (signal_before_change, signal_after_change): Likewise.

	* buffer.c (Vbefore_change_function, Vafter_change_function):
	Variables and their initializations deleted.

Dave Love's avatar
Dave Love committed
740 741
	* callint.c (Fcall_interactively): Doc fix.

742 743
	* terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.

Dave Love's avatar
Dave Love committed
744 745 746 747
2000-05-31  Dave Love  <fx@gnu.org>

	* textprop.c: Revert last change -- duplicated.

748 749 750 751 752 753 754
2000-05-31  Gerd Moellmann  <gerd@gnu.org>

	* dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
	in #if 0.

	* lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.

Jason Rumney's avatar
Jason Rumney committed
755 756
2000-05-31  Jason Rumney  <jasonr@gnu.org>

Jason Rumney's avatar
Jason Rumney committed
757 758 759
	* search.c (Fre_search_forward, Fre_search_backward)
	(Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.

Jason Rumney's avatar
Jason Rumney committed
760 761
	* w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.

Jason Rumney's avatar
Jason Rumney committed
762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841
2000-05-30  Jason Rumney  <jasonr@gnu.org>

	* coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
	[WINDOWSNT]: Add extern for Vw32_system_coding_system.

	* dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
	member.

	* fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
	(Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
	expand a nil default_filename.

	* keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
	pointer to glyph_to_pixel_coords, not a frame.

	* makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
	coding.h to dependencies.

	* w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.

	* w32console.c (glyph_to_pixel_coords): Change first parameter to
	window pointer to be consistent with w32term.c and xterm.c.

	* w32fns.c: Format and doc changes to bring closer to xfns.c.
	(VIETNAMESE_CHARSET): Define if not defined in system headers.
	(Qline_spacing, Qcenter): New variables.
	(Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
	(x_set_line_spacing): New function.
	(x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
	macros.
	(x_specified_cursor_type): New function.
	(x_set_cursor_type): Use it.
	(x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
	and icon strings.
	(validate_x_resource_name, x_get_resource_string): Measure lengths
	of external strings in bytes.
	(w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
	GetTextExtentPoint32 with NULL title.
	(Fx_create_frame): Initialize Qline_spacing.
	(w32_load_system_font): Initialize font->double_byte_p.
	(x_to_w32_charset): Use Vw32_charset_info_alist.
	(Image, busy cursor, tooltip functions): Merged changes from
	xfns.c. Not yet functional on Windows.

	* w32gui.h (W32FontStruct): Add double_byte_p member.

	* w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
	(emacs_button_translation): Use it.
	(do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
	in `mask' to be set.

	* w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
	menu strings.

	* w32term.c: Format and doc changes to bring closer to xterm.c.
	(w32_char_font_type): New enum.
	(Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
	(w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
	(w32_encode_char): New function.
	(x_encode_char): Removed.
	(x_get_glyph_and_face_encoding): Use w32_encode_char in place of
	x_encode_char and w32_font_is_double_byte.
	(x_produce_image_glyph): Use image_ascent.
	(x_produce_glyphs): Use new version of w32_per_char_metric and
	handle NULL return value. Allow extra line spacing.
	(W32_TEXTOUT): Distinguish between Unicode and DBCS text.
	(w32_get_glyph_overhangs): Remove unicode_p param. Use
	w32_font_type member of glyph instead.
	(x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
	(fast_find_position): Make sure not to consider rows not visible
	in the window.
	(w32_read_socket) [WM_MENUSELECT]: Cannot call
	w32_menu_display_help with input blocked, as it can abort.
	(x_display_and_set_cursor): Choose cursor depending
	on buffer-local value of cursor_type.
	(x_draw_bar_cursor): Add parameter WIDTH.

	* w32term.h (CP_DEFAULT): Define.
	(Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.

Gerd Moellmann's avatar
Gerd Moellmann committed
842 843 844 845 846
2000-05-30  Gerd Moellmann  <gerd@gnu.org>

	* search.c (Fre_search_forward, Fre_search_backward)
	(Fposix_search_backward, Fposix_search_forward): Doc fix.

Kenichi Handa's avatar
Kenichi Handa committed
847 848 849 850 851
2000-05-30  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (detect_coding_iso2022): Fix code for checking
	CODING_CATEGORY_MASK_ISO_8_2.

852 853 854 855 856
2000-05-29  Stefan Monnier  <monnier@cs.yale.edu>

	* regex.c (PREFETCH_NOLIMIT): New function.
	(re_match_2_internal): Use it and adjust the end_match_2 logic.

857 858
2000-05-29  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
859 860 861
	* syntax.c (find_defun_start): Move test for
	open_paren_in_column_0_is_defun_start outside of the loop.

Gerd Moellmann's avatar
Gerd Moellmann committed
862 863 864 865
	* xdisp.c (redisplay_window): Really switch buffers when
	displaying mode lines, and temporarily set selected_frame to the
	frame of the window that's redisplayed.

866 867 868
	* xfaces.c (free_realized_faces): Block/unblock input.
	(free_realized_multibyte_face): Ditto.

Dave Love's avatar
Dave Love committed
869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890
2000-05-29  Dave Love  <fx@gnu.org>

	* textprop.c (Qkeymap): New variable.
	(syms_of_textprop): Intern it.

	* keymap.c: Include intervals.h.
	(Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.

	* Makefile.in (keymap.o): Depend on intervals.h.

	* keyboard.c (menu_bar_items, tool_bar_items)
	(Fexecute_extended_command): Deal with `keymap' property.
	(read_key_sequence): Track map from `keymap' property as well as
	`local_map'.

	* intervals.c (get_local_map): Extra arg to allow looking for
	`keymap' too.

	* intervals.h (map_property): New enum.
	(get_local_map): Extra arg using it.
	(Qkeymap): Declare.

891
	* lisp.h (get_local_map): Don't declare here.
Dave Love's avatar
Dave Love committed
892

Kenichi Handa's avatar
Kenichi Handa committed
893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908
2000-05-29  Kenichi Handa  <handa@etl.go.jp>

	* Makefile.in (callproc.o): Depend on composite.h.

	* callproc.c: Include composite.h.
	(Fcall_process): Handle composition correctly.

	* coding.h (coding_allocate_composition_data): Extern it.
	(coding_restore_composition): Likewise.

	* coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
	yet allocated, finish decoding with result
	CODING_FINISH_INSUFFICIENT_CMP.
	(coding_allocate_composition_data): Make it non-static.
	(coding_restore_composition): Likewise.

909 910 911 912
2000-05-29  Eli Zaretskii  <eliz@is.elta.co.il>

	* charset.c (syms_of_charset): Revert last change.

Eli Zaretskii's avatar
Eli Zaretskii committed
913 914 915 916 917 918
2000-05-28  Eli Zaretskii  <eliz@is.elta.co.il>

	* term.c (produce_glyphs): Treat characters from the eight-bit-*
        charsets as unibyte, with 1-column screen width.  Sent by Kenichi
        Handa.

Eli Zaretskii's avatar
Eli Zaretskii committed
919 920 921 922 923
2000-05-28  Eli Zaretskii  <eliz@is.elta.co.il>

	* charset.c (syms_of_charset): Set width of character sets
	eight-bit-control and eight-bit-graphic to 1 column.

Gerd Moellmann's avatar
Gerd Moellmann committed
924 925 926 927 928 929 930
2000-05-26  Gerd Moellmann  <gerd@gnu.org>

	* config.in (HAVE_SPEED_T): New define.

	* sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
	`extern speed_t'.

Dave Love's avatar
Dave Love committed
931 932 933 934 935 936 937 938
2000-05-26  Dave Love  <fx@gnu.org>

	* coding.c (shrink_decoding_region): Initialize eol_conversion.

	* data.c (Qsubrp, Qmany, Qunevalled): New variables.
	(Fsubr_arity): New function.
	(syms_of_data): Install them.

Kenichi Handa's avatar
Kenichi Handa committed
939 940
2000-05-26  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
941 942 943
	* charset.c (init_charset_once): Set the table bytes_by_char_head
	correctly.

944 945
	* fontset.c (syms_of_fontset): Adjust the font name for ascii of
	the default fontset to what Emacs uses by default.
Kenichi Handa's avatar
Kenichi Handa committed
946 947 948
	(check_registry_encoding): This function deleted.
	(Fset_fontset_font): Remove the adhoc condition for the default
	fontset.  Allow cons in FONTNAME.
949

Kenichi Handa's avatar
Kenichi Handa committed
950 951
	* fns.c (map_char_table): Ignore char-table entries for
	charsets eight-bit-control and eight-bit-graphic.
Kenichi Handa's avatar
Kenichi Handa committed
952

953 954 955 956 957
2000-05-25  Ken Raeburn  <raeburn@gnu.org>

	* emacs.c (main): Initialize keyboard syms before initializing
	window code, so face names are available.

958 959 960 961 962
2000-05-25  Stefan Monnier  <monnier@cs.yale.edu>

	* regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
	of an anchor at the beginning of a shy-group.

Gerd Moellmann's avatar
Gerd Moellmann committed
963 964 965 966 967
2000-05-25  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (handle_invisible_prop): Don't try to skip over
	invisible text if end of text is already reached.

968 969
2000-05-25  Dave Love  <fx@gnu.org>

970 971
	* xdisp.c (Fdump_glyph_matrix): Declare the arg.

972 973
	* coding.c (encode_eol): Add null statement after label.

Eli Zaretskii's avatar
Eli Zaretskii committed
974 975 976 977 978
2000-05-25  Eli Zaretskii  <eliz@is.elta.co.il>

	* w16select.c (Fw16_set_clipboard_data): Fix the change from
	2000-05-20.

Kenichi Handa's avatar
Kenichi Handa committed
979 980 981 982
2000-05-25  Kenichi Handa  <handa@etl.go.jp>

	* ccl.c (ccl_driver): Fix previous change.

Kenichi Handa's avatar
Kenichi Handa committed
983 984
2000-05-25  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
985 986 987 988 989 990
	* coding.c (run_pre_post_conversion_on_str): Set point to the
	beginning of buffer before calling coding->post_read_conversion.
	(decode_coding_string): Give correct args to
	run_pre_post_conversion_on_str.
	(encode_coding_string): Likewise.

Kenichi Handa's avatar
Kenichi Handa committed
991 992 993 994
	* ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
	<CCL_WriteMultibyteChar2>:  Handle charsets eight-bit-control and
	eight-bit-graphic correctly.

995 996 997 998 999 1000
2000-05-24  Kenichi HANDA  <handa@etl.go.jp>

	* fileio.c (Finsert_file_contents): Even if a file is not found,
	execute codes for setting up coding system.  Call
	after-insert-file-functions unconditionally.

Gerd Moellmann's avatar
Gerd Moellmann committed
1001 1002 1003 1004 1005
2000-05-24  Gerd Moellmann  <gerd@gnu.org>

	* callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
	BSD_PGRPS are not defined.

Kenichi Handa's avatar
Kenichi Handa committed
1006 1007 1008 1009 1010 1011
2000-05-24  Kenichi Handa  <handa@etl.go.jp>

	* charset.c (update_charset_table): Accept nil in LONG_NAME and
	DESCRIPTION.
	(syms_of_charset): Avoid building same strings.

Gerd Moellmann's avatar
Gerd Moellmann committed
1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023
2000-05-23  Gerd Moellmann  <gerd@gnu.org>

	* lread.c (Fload): Add a comment about the meaning of
	Vuser_init_file being t.

	* puresize.h (BASE_PURESIZE): Increase to 675000.

	* s/gnu-linux.h (setpgrp): Don't define it here because this
	prevents compilation on GNU/Linux systems with glib 2.2.

	* callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
	as setpgid.
1024

1025 1026 1027 1028 1029 1030 1031
2000-05-23  Eli Zaretskii  <eliz@is.elta.co.il>

	* Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
	dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
	version.
	(MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.

Kenichi Handa's avatar
Kenichi Handa committed
1032 1033
2000-05-23  Kenichi Handa  <handa@etl.go.jp>

1034 1035 1036
	* syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
	unconditionally.

Kenichi Handa's avatar
Kenichi Handa committed
1037 1038 1039 1040 1041
	* msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.

	* term.c (encode_terminal_code): Set coding->src_multibyte
	properly.

Kenichi Handa's avatar
Kenichi Handa committed
1042 1043
	* coding.c (encode_eol): Fix a bug of DOS style EOL encoding.

Kenichi Handa's avatar
Kenichi Handa committed
1044 1045
2000-05-22  Kenichi Handa  <handa@etl.go.jp>

1046 1047 1048
	* keyboard.c (read_char): Allow character codes 128..255 to be
	handled by input-method-function.

Kenichi Handa's avatar
Kenichi Handa committed
1049 1050 1051 1052
	* insdel.c (adjust_markers_for_replace): Fix previous change.
	(adjust_after_replace): If PREV_TEXT is nil, call
	adjust_markers_for_insert, not adjust_markers_for_replace.

Gerd Moellmann's avatar
Gerd Moellmann committed
1053
2000-05-20  NIIBE Yutaka  <gniibe@mri.co.jp>
1054

Gerd Moellmann's avatar
Gerd Moellmann committed
1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066
	* s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
	(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
	[HAVE_GRANDPT]: Define.
	(C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.

	* sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
	like SYSV_PTYS.

	* config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.

	* process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.

Kenichi Handa's avatar
Kenichi Handa committed
1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090
2000-05-20  Kenichi Handa  <handa@etl.go.jp>

	The following changes are to handle 8-bit characters in a
	multibyte buffer/string without facing with byte combining
	problem.  Two new charsets eight-bit-control (for 0x80..0x9F) and
	eight-bit-graphic (for 0xA0..0xFF) are introduced.

	* Makefile.in (fns.o): Depend on charset.h.

	* alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
	convert it to unibyte.
	(make_string): Use parse_str_as_multibyte, not chars_in_text.

	* buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
	apparent char boundary.
	(Fset_buffer_multibyte): Convert 8-bit characters in the range
	0x80..0x9F to/from multibyte form.

	* bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
	to unibyte.

	* callproc.c (Fcall_process): Always encode an argument string if
	it is multibyte.  Setup src_multibyte and dst_multibyte members of
	process_coding properly.
Gerd Moellmann's avatar
Gerd Moellmann committed
1091

Kenichi Handa's avatar
Kenichi Handa committed
1092 1093 1094 1095 1096 1097 1098 1099 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 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160
	* category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
	SPLIT_NON_ASCII_CHAR.

	* ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
	as is.
	(CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.

	* charset.c (Qeight_bit_control, Qeight_bit_graphic): New
	variables.
	(SPLIT_CHARACTER_SEQ): This macro deleted.
	(SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
	valid.
	(CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
	and eight-bit-graphic.
	(char_to_string): Likewise.  Signal an error for too large
	character code.
	(char_printable_p): Return 0 for 8-bit characters.
	(update_charset_table): Update iso_charset_table only when a final
	character is non-negative.
	(find_charset_in_text): Renamed from find_charset_in_str.
	Arguments and return value changed.  Callers changed.
	(Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
	be -1 if CHARSET is used only internally.
	(Fmake_char_internal): Handle new charsets; eight-bit-control and
	eight-bit-graphic.
	(Fcharset_after): Simplified.
	(char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
	(char_bytes): Return 2 for chars of the range 0xA0..0xFF.
	(multibyte_chars_in_text): Simplified by assuming there's no
	invalid multibyte sequence.
	(parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
	str_as_unibyte): New functions.
	(Fstring): Simpified by assuming that byte combining never
	happens.
	(init_charset_once): Initialization for
	LEADING_CODE_8_BIT_CONTROL.
	(syms_of_charset): Intern and staticpro Qeight_bit_control and
	Qeight_bit_graphic.  Include them in Vcharset_list.  Make charsets
	eight-bit-control and eight-bit-graphic.

	* charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
	CHARSET_8_BIT_GRAPHIC): New macros.
	(SINGLE_BYTE_CHAR_P): Make it faster by using casting.
	(CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
	(CHARSET_REVERSE_CHARSET): Likewise.
	(CHARSET_VALID_P): Handle new charsets; eight-bit-control and
	eight-bit-graphic.
	(BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
	(CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
	(PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
	encounter an invalid multibyte sequence.
	(PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
	sequence is always valid.
	(MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
	(UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
	macros.
	(CHAR_STRING): For 8-bit characters, call char_to_string.
	(INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version.  Assume
	multibyte sequence is always valid.
	(BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
	(parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
	str_as_unibyte): Extern them.
	(BCOPY_SHORT): Fix a bug.
	(CHAR_LEN): This macro deleted.  Callers changed to use
	CHAR_BYTES.
	(FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
	(FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
	(FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.

Eli Zaretskii's avatar
Eli Zaretskii committed
1161
	* coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
Kenichi Handa's avatar
Kenichi Handa 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 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251
	CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
	(ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
	EMIT_BYTES): New macros.
	(THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
	DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
	macros deleted.
	(CHECK_CODE_RANGE_A0_FF): This macro deleted.
	(detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
	check the validity of multibyte sequence.
	(decode_coding_emacs_mule): New function.
	(encode_coding_emacs_mule): New macro.
	(detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
	the source.
	(DECODE_ISO_CHARACTER): Just return a character code.
	(DECODE_COMPOSITION_START): Set coding->result instead of result.
	(decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
	EMIT_CHAR to produced decoded characters.  Exit the loop only by
	macros ONE_MORE_BYTE or EMIT_CHAR.  Don't handle the case of last
	block here.
	(ENCODE_ISO_CHARACTER): Don't translate character here.  Produce
	only position codes for an invalid character.
	(encode_designation_at_bol): Return new destination pointer.  5th
	arg DSTP is changed to DST.
	(encode_coding_iso2022, decode_coding_sjis_big5): Get a character
	from the source by ONE_MORE_CHAR.  Don't handle the case of last
	block here.
	(DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
	macros deleted.
	(detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
	detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
	TWO_MORE_BYTES to fetch a byte from the source.
	(encode_eol): Pay attention to coding->src_multibyte.
	(detect_coding, detect_eol): Preserve members src_multibyte and
	dst_multibyte.
	(DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
	(encoding_buffer_size): Set magnification to 3 for all coding
	systems that require encoding.
	(ccl_coding_driver): For decoding, be sure that the result is
	valid multibyte sequence.
	(decode_coding): Initialize coding->errors and coding->result.
	For emacs-mule, call decode_coding_emacs_mule.  For no-conversion
	and raw-text, always call decode_eol.  Handle the case of last
	block here.  If not coding->dst_multibyte, convert the resulting
	sequence to unibyte.
	(encode_coding): Initialize coding->errors and coding->result.
	For emacs-mule, call encode_coding_emacs_mule.  For no-conversion
	and raw-text, always call encode_eol.  Handle the case of last
	block here.
	(shrink_decoding_region, shrink_encoding_region): Detect cases
	that we can't skip data more rigidly.
	(code_convert_region): Setup src_multibyte and dst_multibyte
	members of coding.  For decoding, if the buffer is multibyte,
	convert the source sequence to unibyte in advance.  For encoding,
	if the buffer is multibyte, convert the resulting sequence to
	multibyte afterward.
	(run_pre_post_conversion_on_str): New function.
	(code_convert_string): Deleted and divided into the following two.
	(decode_coding_string, encode_coding_string): New functions.
	(code_convert_string1, code_convert_string_norecord): Call one of
	above.
	(Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
	MAKE_NON_ASCII_CHAR.
	(Fset_terminal_coding_system_internal,
	Fset_safe_terminal_coding_system_internal): Setup src_multibyte
	and dst_multibyte members.
	(init_coding_once): Initialize iso_code_class with new enum
	ISO_control_0 and ISO_control_1.

	* coding.h (enum iso_code_class_type): Member ISO_control_code is
	devided into ISO_control_0 and ISO_control_1.
	(struct coding_system): New members src_multibyte, dst_multibyte,
	errors, and result.  Delete member fake_multibyte.
	(CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
	nonzero.
	(CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
	nonzero.

	* data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
	(Faset): Likewise.

	* editfns.c (Fformat): Be sure to convert 8-bit characters to
	multibyte form.
	(Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
	combining occurs.
	(Ftranspose_region): Delete codes for handling byte combining.

	* fileio.c (Finsert_file_contents): Setup src_multibyte and
	dst_multibyte members of coding.  On handling REPLACE on unibyte
	buffer, convert the result of decode_coding to unibyte.  On
	inserting into a mutibyte buffer, always call code_convert_region.
Eli Zaretskii's avatar
Eli Zaretskii committed
1252
	(e_write): Setup coding->src_multibyte according to the
Kenichi Handa's avatar
Kenichi Handa committed
1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294
	multibyteness of the source (buffer or string).

	* fns.c (concat): Handle 8-bit characters correctly.
	(Fstring_as_unibyte): Be sure to make all 8-bit characters in
	unibyte in the result.
	(Fstring_as_multibyte): Be sure to make all 8-bit characters in
	valid multibyte form in the result.
	(map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
	(Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
	return -1, signal an error.
	(base64_encode_1): New arg MULTIBYTE.  Get each character by
	CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero.  If a multibyte
	character is found, return -1.
	(Fbase64_decode_region): Delete codes for handling byte-combining.
	Treat each decoded byte as a unibyte character.
	(Fbase64_decode_string): Return unibyte string.
	(Fcompare_strings, concat, string_byte_to_char): Use
	FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
	FETCH_STRING_CHAR_ADVANCE.
	(Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
	(mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.

	* fontset.c (fontset_ref): Use SPLIT_CHAR instead of
	SPLIT_NON_ASCII_CHAR.
	(fontset_ref_via_base, fontset_set): Likewise

	* insdel.c (adjust_markers_for_record_delete): Deleted.
	(adjust_markers_for_insert): Argument changed.  Caller changed.
	(adjust_markers_for_replace): Likewise.
	(ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
	CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
	(copy_text): Delete unused local varialbe c_save.  For converting
	to multibyte, be sure to make all 8-bit characters in valid
	multibyte form.
	(count_size_as_multibyte): Handle 8-bit characters correctly.
	(insert_1_both, insert_from_string_1, insert_from_buffer_1,
	adjust_after_replace, replace_range, del_range_2)
	[BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
	(insert_1_both, insert_from_string_1, insert_from_buffer_1,
	adjust_after_replace, replace_range, del_range_2) Delete codes for
	handling byte combining.
	(adjust_before_replace): Deleted.
1295

Kenichi Handa's avatar
Kenichi Handa committed
1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355
	* keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
	SPLIT_NON_ASCII_CHAR.
	(describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
	(Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
	unconditionally.
	(Fkey_description): Likewise.

	* lread.c (read1): On reading multibyte string, be sure to make
	all 8-bit chararacters in valid multibyte form.
	(readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.

	* print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
	unconditionally.

	* process.c (Fstart_process): GCPRO current_dir before calling
	Ffind_operation_coding_system.  Encode arguments here.
	(create_process): Don't encode arguments here.  Setup
	src_multibyte and dst_multibyte members of struct coding.
	(read_process_output): Setup src_multibyte and dst_multibyte
	members of struct coding.  If the output is to multibyte buffer,
	always decode the output of the process.  Adjust the
	representation of 8-bit characters to the multibyteness of the
	output.
	(send_process): Setup coding->src_multibyte according to the
	multibyteness of the source.

	* search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
	unconditionally.
	(Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
	FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.

	* term.c (produce_special_glyphs): Use CHAR_BYTES instead of
	CHAR_LEN.

	* w16select.c (Fw16_set_clipboard_data): Setup members
	src_multibyte and dst_multibyte of coding.  Adjusted for the
	change for find_charset_in_str.
	(Fw16_get_clipboard_data): Likewise.

	* w32fns.c (w32_to_x_font): Setup members src_multibyte and
	dst_multibyte of coding.
	(x_to_w32_font): Likewise.

	* w32select.c (Fw32_set_clipboard_data): Setup members
	src_multibyte and dst_multibyte of coding.  Adjusted for the
	change for find_charset_in_str.
	(Fw32_get_clipboard_data): Likewise.

	* xdisp.c (get_next_display_element): Handle 8-bit characters
	correctly.
	(next_element_from_display_vector): Use CHAR_BYTES instead of
	CHAR_LEN.
	(disp_char_vector): Use SPLIT_CHAR instead of
	SPLIT_NON_ASCII_CHAR.

	* xselect.c (selection_data_to_lisp_data): Setup members
	src_multibyte and dst_multibyte of coding.  Adjusted for the
	change for find_charset_in_str.
	(lisp_data_to_selection_data): Likewise.

Gerd Moellmann's avatar
Gerd Moellmann committed
1356 1357
2000-05-19  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1358 1359 1360
	* buffer.c (Fbury_buffer): Avoid trouble from burying a killed
	buffer.

Gerd Moellmann's avatar
Gerd Moellmann committed
1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371
	* dispextern.h (Vimage_types): Add extern declaration.

	* xdisp.c (Vimage_types): Moved here from xfns.c.
	(syms_of_xdisp): Move `image-types' variable here from xfns.c.

	* xfns.c (Vimages_types): Moved to xdisp.c.
	(syms_of_xfns): Move `image-types' to xdisp.c.

	* w32fns.c (Vimage_types): Removed.
	(syms_of_w32fns): Remove `image-types'.

Kenichi Handa's avatar
Kenichi Handa committed
1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389
2000-05-18  Kenichi Handa  <handa@etl.go.jp>

	* fns.c (map_char_table): Pay attention to character number of
	charset.  Check the validity of charset at the first level.   For
	leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
	the default value.

	* fontset.c: Include "buffer.h".
	(fs_load_font): If the face has fontset, record the face ID in
	that fontset.
	(Finternal_char_font): New function.
	(accumulate_font_info): New function.
	(Ffontset_info): Rewritten for the new fontset implementation.
	(syms_of_fontset): Register Vdefault_fontset in the first element
	of Vfontset_table.  Include Vdefault_fontset in
	Vfontset_alias_alist.  Declare `internal-char-font' as a Lisp
	function.

Dave Love's avatar
Dave Love committed
1390 1391 1392 1393
2000-05-16  Dave Love  <fx@gnu.org>

	* m/iris5d.h: Deleted -- unused.

1394 1395
2000-05-16  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1396 1397 1398 1399 1400 1401
	* xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
	`invalid' instead of `illegal'.

	* indent.c (Fmove_to_column): When ending within a tab, insert
	spaces first so that markers at the end of the tab get adjusted.

1402 1403 1404
	* frame.c (frames_bury_buffer): Don't add a buffer to the frame's
	buffer list that wasn't selected in that frame.

1405 1406 1407 1408 1409 1410 1411 1412
	* filelock.c (get_boot_time): To obtain an 8 char file name, which
	is needed on mescaline, use a 2 char prefix, and call
	make_temp_name with second arg non-zero.

	* fileio.c (make_temp_name): New function, extracted from
	Fmake_temp_name.
	(Fmake_temp_name): Use it.

Eli Zaretskii's avatar
Eli Zaretskii committed
1413 1414 1415 1416 1417
2000-05-15  Eli Zaretskii  <eliz@is.elta.co.il>

	* window.c (coordinates_in_window): Subtract 1 when computing
	right_x.

Gerd Moellmann's avatar
Gerd Moellmann committed
1418 1419 1420 1421 1422 1423
2000-05-15  Gerd Moellmann  <gerd@gnu.org>

	* Makefile.in (lisp): Add env.elc.

	* callproc.c (Fgetenv_internal): Renamed from Fgetenv.

Gerd Moellmann's avatar
Gerd Moellmann committed
1424 1425 1426 1427 1428
2000-05-12  Gerd Moellmann  <gerd@gnu.org>

	* search.c (Freplace_match): Handle case of `\N' in the
	replacement when there's no group N.

Gerd Moellmann's avatar
Gerd Moellmann committed
1429 1430
2000-05-11  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1431 1432 1433
	* xdisp.c (add_to_log): Don't pass the terminating NUL byte
	of the message to message_dolog.

1434 1435 1436 1437
	* keyboard.c (read_char): Don't clear current message for help
	events; let the code handling help events handle this.  Change
	code detecting help events that should be ignored.

Gerd Moellmann's avatar
Gerd Moellmann committed
1438 1439 1440
	* xdisp.c (handle_single_display_prop): Don't try to set PT if
	we're interating over a string.

Dave Love's avatar
Dave Love committed
1441 1442 1443 1444 1445 1446
2000-05-09  Dave Love  <fx@gnu.org>

	* fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
	that offset before writing.  Move gcpro region past call of
	Ffile_regular_p.

Dave Love's avatar
Dave Love committed
1447 1448 1449 1450
2000-05-04  Dave Love  <fx@gnu.org>

	* buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.

Gerd Moellmann's avatar
Gerd Moellmann committed
1451 1452 1453 1454 1455 1456
2000-05-04  Gerd Moellmann  <gerd@gnu.org>

	* insdel.c (insert_from_buffer_1): Adjust FROM position by number
	of inserted characters when BUF equals the current buffer, and PT
	is in front of or equal to FROM.

Gerd Moellmann's avatar
Gerd Moellmann committed
1457 1458
2000-05-03  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1459 1460 1461 1462 1463
	* xdisp.c (handle_single_display_prop): If display property value
	is invalid, or something not supported on the frame, restore
	iterator's position to what it was initially.  Make sure to return
	0 for invalid and unsupported property values.

Gerd Moellmann's avatar
Gerd Moellmann committed
1464 1465 1466
	* xterm.c (x_produce_glyphs) <composite chars>: Handle case
	that x_per_char_metric returns null.

Gerd Moellmann's avatar
Gerd Moellmann committed
1467 1468
2000-05-02  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494
	* xterm.h (struct face): Add forward declaration.
	(struct image): Ditto.
	(image_ascent): Add prototype.

	* xterm.c (x_produce_image_glyph, x_draw_image_foreground)
	(x_draw_image_relief, x_draw_image_foreground_1): Call function
	image_ascent instead of using IMAGE_ASCENT.

	* dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
	(IMAGE_ASCENT): Removed.

	* xfns.c (Qcenter): New variable.
	(enum image_value_type): Add IMAGE_ASCENT_VALUE.
	(parse_image_spec): Handle IMAGE_ASCENT_VALUE.
	(image_ascent): New function.
	(lookup_image): Recognize `:ascent center'.
	(xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
	(tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
	(xbm_load): Don't set image's ascent here.
	(xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
	(jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
	check ascent values here.
	(Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
	(syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
	(syms_of_xfns): Initialize Qcenter.

Gerd Moellmann's avatar
Gerd Moellmann committed
1495 1496 1497
	* eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
	to the limits, increase the limits.

Kenichi Handa's avatar
Kenichi Handa committed
1498 1499 1500 1501 1502 1503
2000-05-01  Kenichi Handa  <handa@etl.go.jp>

	* fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
	Check Vfont_encoding_alist against the full name of the opened
	font.

1504 1505 1506 1507 1508
2000-04-28  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (make_cursor_line_fully_visible): Handle case of rows
	taller than the window.

Kenichi Handa's avatar
Kenichi Handa committed
1509 1510 1511 1512 1513
2000-04-28  Kenichi Handa  <handa@etl.go.jp>

	* xfaces.c (realize_x_face): Fix the argument of the second
	xassert.  BASE_FACE may not be a face for ASCII.

Gerd Moellmann's avatar
Gerd Moellmann committed
1514 1515
2000-04-27  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536
	* print.c (print_object): Treat print-length < 0 as nil.

	* Makefile.in (termcapobj): Don't use TERMCAP_OBJ.

	* s/freebsd.h (TERMCAP_OBJ): Removed.
	(LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.

	* lread.c (read1): Don't treat period followed by certain
	characters as symbol start.

	* xfns.c (slurp_file): New function.
	(xbm_image_p): Handle case of in-memory XBM files.
	(xbm_scan): Rewritten to work on memory buffers instead of files.
	(xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
	Work on memory buffers instead of files.  If DATA is null test
	if buffer looks like an in-memory XBM file.
	(xbm_load_image): Renamed from xbm_load_image_file.  Work on
	memory buffers instead of files.
	(xbm_file_p): New function.
	(xbm_load): Accept :data DATA where DATA is an in-memory XBM file.

Gerd Moellmann's avatar
Gerd Moellmann committed
1537 1538 1539
	* lread.c (end_of_file_error): New function.
	(read1): Call it instead of signaling `end-of-file' directly.

1540
	* print.c (print_error_message): Print data of `end-of-file'
Gerd Moellmann's avatar
Gerd Moellmann committed
1541 1542
	with Fprinc instead of Fprin1.

1543 1544 1545 1546 1547 1548 1549 1550 1551
2000-04-26  Ken Raeburn  <raeburn@gnu.org>

	* window.c (freeze_window_start): Check that minibuffer scroll
	window isn't nil before extracting the window structure pointer
	from it.

	* undo.c (record_delete): If we hit the end of the undo list, stop
	picking elements apart.

Gerd Moellmann's avatar
Gerd Moellmann committed
1552 1553 1554 1555 1556 1557
2000-04-26  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (display_line): If lines are continued, restore
	iterator's ascent/descent information to the values before the
	first glyph not fitting on the line.

Gerd Moellmann's avatar
Gerd Moellmann committed
1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571
2000-04-25  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (try_window_id) <all changes above window start>: Adjust
	positions in glyph matrix.  Don't compute new window end
	positions.

	* dispnew.c (increment_matrix_positions): Renamed from
	increment_glyph_matrix_buffer_positions.
	(increment_row_positions): Renamed from
	increment_glyph_row_buffer_positions.

	* dispextern.h: Change names of renamed functions from dispnew.c
	in prototypes.

Gerd Moellmann's avatar
Gerd Moellmann committed
1572 1573
2000-04-24  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1574 1575 1576
	* fileio.c (Fdo_auto_save): Create directories for auto-save
	list file if necessary.

Gerd Moellmann's avatar
Gerd Moellmann committed
1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589
	* xdisp.c (init_iterator): Set iterator's extra_line_spacing
	from buffer or frame.
	(automatic_hscrolling_p): New variable.
	(hscroll_windows): Scroll windows horizontally only if automatic
	hscrolling is allowed.
	(syms_of_xdisp): New variable `automatic-hscrolling'.

	* frame.h (struct frame): Add member extra_line_spacing.

	* xfns.c (x_set_line_spacing): New function.
	(Fx_create_frame): Set line spacing from resources.
	(Qline_spacing): New variable.
	(syms_of_xfns): Initialize Qline_spacing.
1590

Gerd Moellmann's avatar
Gerd Moellmann committed
1591 1592 1593 1594
	* emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.

	* buffer.c (init_buffer_once): Handle extra_line_spacing.
	(syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
Gerd Moellmann's avatar
Gerd Moellmann committed
1595
	(reset_buffer): Don't initialize extra2 and extra3.  Initialize
Gerd Moellmann's avatar
Gerd Moellmann committed
1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610
	extra_line_spacing from default value.
	(init_buffer_once): Initialize default value of extra_line_spacing.

	* buffer.h (struct buffer): Add extra_line_spacing, remove extra2
	and extra3.

	* xterm.c (x_produce_glyphs): Remove reference to struct it's
	prompt_width.  Add extra line spacing.

	* term.c (produce_glyphs): Remove reference to struct it's
	prompt_width.

	* dispextern.h (struct it): Remove member prompt_width, add
	extra_line_spacing.

1611 1612 1613 1614 1615 1616
2000-04-22  Gerd Moellmann  <gerd@gnu.org>

	* dispnew.c (update_frame_line): When writing a whole line, make
	sure cursor is in the right row afterwards, otherwise a use of
	capability `ch' in cmgoto might leave the cursor in the row below.

Gerd Moellmann's avatar
Gerd Moellmann committed
1617 1618 1619 1620 1621 1622
2000-04-21  Gerd Moellmann  <gerd@gnu.org>

	* lisp.h (struct Lisp_Buffer_Cons): Remove.

	* keyboard.c (timer_check): Fix typo in comment.

Kenichi Handa's avatar
Kenichi Handa committed
1623 1624 1625 1626 1627
2000-04-21  Kenichi Handa  <handa@etl.go.jp>

	* fontset.c (Fset_fontset_font): Fix docstring.  Local variable
	name change: ch -> character.

Gerd Moellmann's avatar
Gerd Moellmann committed
1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639
2000-04-20  Gerd Moellmann  <gerd@gnu.org>

	* keyboard.c (echo_message_buffer): New variable.
	(echo_now): Set echo_message_buffer to the echo area buffer used
	to display the echo.
	(cancel_echoing): Reset echo_message_buffer to nil.
	(read_char): Code rewritten that handles canceling an echo or
	echoing a dash, respectively.

	* fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
	directory doesn't exist.

Dave Love's avatar
Dave Love committed
1640 1641 1642
2000-04-19  Dave Love  <fx@gnu.org>

	* fns.c (syms_of_fns): Defsubr mapc.
Dave Love's avatar
Dave Love committed
1643 1644
	(concat): Don't allow numeric args.
	(Fconcat): Doc change.
Dave Love's avatar
Dave Love committed
1645

Stefan Monnier's avatar
Stefan Monnier committed
1646 1647 1648 1649 1650 1651
2000-04-19  Stefan Monnier  <monnier@cs.yale.edu>

	* regex.c (re_match_2_internal): Don't shorten the strings anymore,
	instead define end_match(1|2) more carefully.
	Use GET_CHAR_BEFORE_2 for `begline'.

Gerd Moellmann's avatar
Gerd Moellmann committed
1652 1653
2000-04-19  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1654 1655 1656 1657 1658 1659
	* frame.h (SELECTED_FRAME): Change definition to compile cleanly
	on 64-bit systems where NULL is defined as `0'.

	* xdisp.c (with_echo_area_buffer): Add more `int' parameters for
	the `variable argument list' to make it work on Alpha.

Gerd Moellmann's avatar
Gerd Moellmann committed
1660 1661 1662