ChangeLog 196 KB
Newer Older
Gerd Moellmann's avatar
Gerd Moellmann committed
1 2
2000-08-21  Gerd Moellmann  <gerd@gnu.org>

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
	* keyboard.c (gen_help_event): Add parameter SIZE.
	(kbd_buffer_events_waiting): Slightly rewritten.
	(clear_event): New function.
	(kbd_buffer_get_event): Use it, and clear the input_events of
	HELP_EVENTs.
	(init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
	don't fill the newly created array with nils.
	(toplevel): Convert some old-style function forward declarations
	to prototypes.

	* keyboard.h (gen_help_event): Change prototype.

	* xterm.c (XTread_socket): Change calls to gen_help_event.

	* w32term.c (w32_read_socket): Change calls to gen_help_event.

Gerd Moellmann's avatar
Gerd Moellmann committed
19 20
	* eval.c (Fmacroexpand): Doc fix.

21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
2000-08-20  Jason Rumney  <jasonr@gnu.org>

	* w32term.h (x_display_info_for_display): Remove as this function
	does not exist on W32.

	* w32term.c (help_echo_window): New variable.
	(syms_of_w32term): staticpro it.
	(note_mode_line_highlight): Set it.
	(XTextExtents16): Removed as there is no equivalent on W32.
	(x_compute_glyph_string_overhangs): Incomplete body removed, as
	the X way of doing this will not work for W32.
	(w32_intersect_rectangles): Removed. Use IntersectRect API call.
	(x_draw_image_foreground):  Avoid drawing outside of the clip area
	when image doesn't have a mask.
	(note_mouse_highlight): Process overlays in the right order of
	priority. Set help_echo_window.
	(x_draw_bar_cursor): If cursor is on an image, draw a box cursor
	because that's more visible for large images.

	* w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
	name to single_keymap_panes.
	(w32_menu_show): Set wv->title when dealing with titles.
	(w32_menu_display_help): Call show_help_echo with OBJECT and POS.

45 46 47 48 49 50
2000-08-21  Miles Bader  <miles@gnu.org>

	* minibuf.c (do_completion): Try again if we rewrite the input
	string, but no completion was done, so that any completion message
	will be correct.

Gerd Moellmann's avatar
Gerd Moellmann committed
51 52 53 54 55 56 57 58 59 60 61 62 63 64
2000-08-20  Gerd Moellmann  <gerd@gnu.org>

	* xfaces.c (lface_equal_p): Compare strings differently.
	(Qtty_color_alist, Vtty_defined_color_alist): New variables.
	(realize_tty_face): Use them.
	(syms_of_xfaces): Initialize new variables.
	(map_tty_color): New function, extracted from realize_tty_face.
	(map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
	foreground or background color, store the new color name in the
	realized face; previous code trying to do this had no effect.
	(realize_tty_face): Use map_tty_color.
	(Fclear_face_cache): Set face_change_count and ensure thorough
	redisplay.

Gerd Moellmann's avatar
Gerd Moellmann committed
65 66
2000-08-19  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
67 68
	* undo.c (record_first_change, record_marker_adjustment): Don't
	use XBUFFER on last_undo_buffer which might not be a buffer.
Gerd Moellmann's avatar
Gerd Moellmann committed
69

Kenichi Handa's avatar
Kenichi Handa committed
70 71 72 73 74 75 76
2000-08-18  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (decode_coding_string): Set members consumed,
	consumed_char, produced, produced_char of *coding correctly.  If
	decode_coding doesn't consume any byte, don't try anymore.
	(encode_coding_string): Likewise.

77 78
2000-08-18  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
79 80
	* lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
	conditional have void type, for Standard C compilers.
81 82 83 84 85

	* xdisp.c (redisplay_internal): Compare windows for equality with
	EQ, instead of applying XWINDOW to something that might not
	be a window.
	
Kenichi Handa's avatar
Kenichi Handa committed
86 87 88 89 90
2000-08-18  Kenichi Handa  <handa@etl.go.jp>

	* fontset.c (Finternal_char_font): Search only the selected frame
	for a window of the current buffer.

Gerd Moellmann's avatar
Gerd Moellmann committed
91 92
2000-08-18  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
93
	* minibuf.c (do_completion): Use EQ instead of `!=' to compare
94 95
	Lisp_Objects.

Gerd Moellmann's avatar
Gerd Moellmann committed
96 97 98
	* keyboard.c (kbd_buffer_get_event): Handle the case that the
	second half of a HELP_EVENT is found at the start of kbd_buffer.

99 100
2000-08-18  Miles Bader  <miles@gnu.org>

101 102
	* lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.

103 104 105 106 107
	* editfns.c (save_restriction_save): Rewrite to use markers.
	(save_restriction_restore): Rewrite to understand new form of data
	saved by save_restriction_save.
	(Fsave_restriction): Remove cautionary note in doc-string.

Gerd Moellmann's avatar
Gerd Moellmann committed
108 109 110 111 112 113 114 115
2000-08-17  Gerd Moellmann  <gerd@gnu.org>

	* fileio.c (build_annotations): Add a comment explaining the
	return value of format-annotate-function.  Replace a spurious call
	to Flength with a CONSP test.  Call format-annotate-function with
	a fifth arg specifying how many times the function is been called
	in a row, to let it choose temporary buffers appropriately.

116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
2000-08-17  Dave Love  <fx@gnu.org>

	* lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL.  Don't
	declare make_temp_name twice.

	* lread.c: Prototype readevalloop, load_unwind,
	load_descriptor_unwind.
	(unreadpure): Give it an arg.

	* unexalpha.c: Prototype fatal_unexec, mark_x,
	update_dynamic_symbols.  Declare unexec as void.

	* cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
	[!HAVE_TERMCAP_H]: Prototype tputs, tgoto.

	* alloc.c (lisp_malloc): Declare with POINTER_TYPE.
	[SYSTEM_MALLOC]: Make decls in malloc.h conditional on
	DOUG_LEA_MALLOC.

	* alloca.c: Use #error.
	[POINTER_TYPE]: Use it.

	* eval.c (Fdefvar): Doc fix.

	* buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
	INITIALIZE_INTERVAL.

	* buffer.h: Avoid DECLARE_INTERVALS.

	* config.in: Add size_t.

147 148 149 150 151 152 153 154 155
2000-08-17  Eli Zaretskii  <eliz@is.elta.co.il>

	* w16select.c (set_clipboard_data): If there's not enough memory
	to put text into clipboard, return 1, as Fw16_set_clipboard_data
	expects.  In case of other failures, return 3.
	(system_error_msg): New error message.
	(Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
	system_error_msg.

156 157 158 159 160 161 162 163 164 165 166
2000-08-16  Gerd Moellmann  <gerd@gnu.org>

	* term.c (write_glyphs): Also turn off inverse video after turning
	off other appearances in case TS_exit_attribute_mode is not equal
	to TS_end_standout_mode.
	(insert_glyphs): Turn inverse video on/off for each run of glyphs
	with the same face.
	(turn_off_face): Reset standout_mode only if
	TS_exit_attribute_mode has been output and TS_exit_attribute_mode
	is equal to TS_end_standout_mode.

Kenichi Handa's avatar
Kenichi Handa committed
167 168
2000-08-16  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
169 170 171
	* coding.c (encode_coding): Fix the bug of not flushing ISO escape
	sequence at the end of the source block.

Kenichi Handa's avatar
Kenichi Handa committed
172 173 174 175
	* ccl.c (Fccl_program_p): Docstring modified.
	(Fccl_execute): Likewise.
	(Fccl_execute_on_string): Likewise.

176 177 178 179
2000-08-16  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.

Kenichi Handa's avatar
Kenichi Handa committed
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
2000-08-16  Kenichi Handa  <handa@etl.go.jp>

	The following changes are mainly to fix bugs of
	encode/decode-coding-string failing if encoding/decoding return
	CODING_FINISH_INSUFFICIENT_DST.  In addition, delete the global
	variable conversion_buffer.

	* ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
	decrement dst_end to avoid buffer overflow in the later call of
	string_as_multibyte

	* coding.h (conversion_buffer_size, conversion_buffer)
	(get_conversion_buffer): Extern deleted.

	* coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
	(conversion_buffer, conversion_buffer_size): Variables deleted.
	(get_conversion_buffer): Function deleted.
	(struct conversion_buffer): New structure.
	(MAX_ALLOCA): New macro.
	(allocate_conversion_buffer): New macro.
	(extend_conversion_buffer, free_conversion_buffer): New functions.
	(ccl_coding_driver): Set coding->result.
	(decode_coding): Set coding->result to CODING_FINISH_NORMAL if
	this is the last block of source.
	(encode_coding): Likewise.  Handle the source block as the last
	one only when the whole source text is consumed.
	(decode_coding_string): Handle the case that the output buffer is
	too small to decode the whole source text.  Use
	allocate_conversion_buffer, extend_conversion_buffer and
	free_conversion_buffer, not get_conversion_buffer.
	(encode_coding_string): Likewise.
	(init_coding): Function deleted.
	(init_coding_once): Delete code to initialize
	conversion_buffer_size.

	* emacs.c (main): Don't call init_coding.

	* msdos.c (IT_write_glyphs): Use a locally declared
	conversion_buffer.

	* term.c (write_glyphs): Use a locally declared conversion_buffer.
	(insert_glyphs): Likewise.

	* w32console.c (write_glyphs): Use a locally declared
	conversion_buffer.

226 227 228 229 230
2000-08-15  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
	member of display_info is NULL.

Gerd Moellmann's avatar
Gerd Moellmann committed
231 232
2000-08-15  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
233 234 235
	* alloc.c (compact_small_strings): Use safe_bcopy, add an
	assertion.

Gerd Moellmann's avatar
Gerd Moellmann committed
236
	* term.c (turn_off_face): Reset standout_mode when resetting
Gerd Moellmann's avatar
Gerd Moellmann committed
237
	appearances with capability `me'.
Gerd Moellmann's avatar
Gerd Moellmann committed
238 239
	(write_glyphs): Switch on inverse video before each face change.

Dave Love's avatar
Dave Love committed
240 241 242 243 244 245 246 247 248
2000-08-14  Dave Love  <fx@gnu.org>

	* alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
	[!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
	(lisp_free): Declare and make static.

	* window.c: Fix embedded comment.
	(syms_of_window): Fix doc string.

Gerd Moellmann's avatar
Gerd Moellmann committed
249 250 251 252 253
2000-08-14  Gerd Moellmann  <gerd@gnu.org>

	* keymap.c (push_key_description): If C without modifiers is < 32, 
	make sure to print `C-' before `M-', like in the manual.

254 255 256 257 258 259 260 261 262 263 264
2000-08-11  Gerd Moellmann  <gerd@gnu.org>

	* fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
	since they aren't relocated anymore.
	(sxhash_string): Make sure returned hash code fits in a Lisp
	integer.

	* xdisp.c (try_cursor_movement): Fix handling of cursor in
	partially visible line which is smaller than the window's
	height.

Kenichi Handa's avatar
Kenichi Handa committed
265 266 267 268 269 270 271 272 273 274
2000-08-11  Kenichi Handa  <handa@etl.go.jp>

	* ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
	the multibyte form of eight-bit-control characters. 
	(Fccl_execute_on_string): Initialize ccl->multibyte.

	* ccl.h (struct ccl_program): New member multibyte.

	* coding.c (ccl_coding_driver): Initialize ccl->multibyte.

Kenichi Handa's avatar
Kenichi Handa committed
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294
2000-08-11  Kenichi Handa  <handa@etl.go.jp>

	* regex.c (regex_compile) <normal_char>: Pay attention to
	multibyteness.
	(analyse_first) <exactn>: Setup fastmap correctly for
	eight-bit-control characters.

2000-08-11  Kenichi Handa  <handa@etl.go.jp>

	* termhooks.h (enum event_kind): New member
	multibyte_char_keystroke.

	* keyboard.c (make_lispy_event): Handle the new event type
	multibyte_char_keystroke.

	* xterm.c: Include coding.h.
	(XTread_socket): Work around a bug of XmbLookupString.  If the
	input is from XIM, decode it according to the current locale.  In
	that case, generate multibyte_char_keystroke events.

Kenichi Handa's avatar
Kenichi Handa committed
295 296 297 298 299
2000-08-11  Kenichi Handa  <handa@etl.go.jp>

	* xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
	(TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.

300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322
2000-08-10  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
	(TRACE_MOVE) [GLYPH_DEBUG]: New macro.
	(move_it_in_display_line_to): Record iterator's ascent and descent
	before producing glyphs, and restore them when we know the glyph
	doesn't fit on the line.
	(move_it_to): Restructured so that it's easier to debug.  If
	moving to a vpos, and not moving to an x or character position,
	stop as soon as the specified vpos is reached; don't move further
	into that line because that might change the computed line height.
	(try_cursor_movement): New function, extracted from the cursor
	movement branch of redisplay_window.  If ending on a partially
	visible line, don't try to scroll if the cursor line is taller
	than the window.
	(redisplay_window): Use try_cursor_movement.

	* window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
	because that function doesn't cope with variable-height lines.

	* xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
	box cursor because that's better visible for large images.
	
Miles Bader's avatar
Miles Bader committed
323 324 325 326
2000-08-10  Miles Bader  <miles@gnu.org>

	* w32term.c (note_mouse_highlight): Update calls to overlays_at.

Gerd Moellmann's avatar
Gerd Moellmann committed
327 328 329 330 331 332
2000-08-10  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (Vmessages_buffer_name): New variable.
	(message_dolog): Use it.
	(syms_of_xdisp): Initialize it.

333 334 335 336 337 338 339
2000-08-10  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (IT_note_mouse_highlight): Update the calls to
	overlays_at.
	(toplevel) <kbd_buffer_store_event>: Remove prototype, it's
	redundant now that keyboard.h is included.

Eli Zaretskii's avatar
Eli Zaretskii committed
340 341 342 343 344 345 346 347 348 349 350 351 352 353 354
2000-08-09  Eli Zaretskii  <eliz@is.elta.co.il>

	* keyboard.c (kbd_buffer_events_waiting): New function.

	* keyboard.h (kbd_buffer_events_waiting): Add prototype.

	* msdos.c: Include keyboard.h.
	(XMenuActivate): Empty no_event events from the event buffer.  If
	no events are left after that, call clear_input_pending.
	(mouse_clear_clicks): New function, code moved from mouse_init.
	(mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
	mouse driver to ``forget'' any past clicks.

	* Makefile.in (msdos.o): Depend on keyboard.h.

355 356
2000-08-09  Gerd Moellmann  <gerd@gnu.org>

357 358 359 360 361 362 363 364 365 366 367 368 369
	* lisp.h (input_pending): External declaration.

	* dispextern.h (Qredisplay_dont_pause): Declare extern.
	
	* xdisp.c (echo_area_display): Display thoroughly if input is
	pending.  Bind redisplay-dont-pause to t during the redisplay.
	in case input is pending.

	* dispnew.c (Qredisplay_dont_pause): New variable.
	(syms_of_display): Initialize and staticpro it.
	(update_frame_1): Don't interrupt the display for pending input if
	redisplay_dont_pause is set.
	
370 371
	* dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.

372 373
	* xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.

Kenichi Handa's avatar
Kenichi Handa committed
374 375 376 377 378
2000-08-09  Miles Bader  <miles@lsi.nec.co.jp>

	* callproc.c (Fcall_process): Terminate the unwind-protect around
	the post-read-conversion of coding system.

Miles Bader's avatar
Miles Bader committed
379 380 381 382 383 384 385 386
	* buffer.c (overlays_at): Add CHANGE_REQ parameter.
	(Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
	* buffer.h (overlays_at): Update prototype.
	* xdisp.c (next_overlay_change): Update call to overlays_at.
	* xfaces.c (face_at_buffer_position): Likewise.
	* textprop.c (Fget_char_property): Likewise.
	* xterm.c (note_mouse_highlight): Likewise.

387 388 389
	* minibuf.c (do_completion): Don't consider a simple change of
	case as `completion'.

390 391
2000-08-08  Ken Raeburn  <raeburn@gnu.org>

392 393 394 395 396 397 398 399 400 401 402 403
	* keyboard.c (syms_of_keyboard): Initialize
	last_point_position_buffer.
	* undo.c (record_delete): Make sure last_point_position_buffer is
	a buffer before comparing pointers.

	* coding.h (decode_coding_string): Declare.

	* intervals.h (Fprevious_single_char_property_change): Declare.

	* textprop.c (Fprevious_single_char_property_change): Don't do
	arithmetic directly on lisp objects.

Gerd Moellmann's avatar
Gerd Moellmann committed
404
	* editfns.c (find_field): Use EQ, not ==, to compare Lisp
405 406 407 408 409 410 411 412
	objects.

	* keyboard.h (menu_item_eval_property): Declare.

	* xdisp.c (message_dolog): Save and protect string "*Messages*" to
	reuse as buffer name, instead of recreating (and discarding) every
	time a message is logged.
	(with_echo_area_buffer): Make callback arg A2 a lisp object.
Gerd Moellmann's avatar
Gerd Moellmann committed
413 414 415 416
	(current_message_1, truncate_message_1, set_message_1)
	(display_echo_area_1, resize_mini_window_1): Signatures changed.
	(current_message, truncate_echo_area, display_echo_area)
	(resize_echo_area_axactly): Changed calls.
417

418
	* coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
Gerd Moellmann's avatar
Gerd Moellmann committed
419
	Lisp object.
420
	(Ffind_coding_systems_region_internal): First argument to Fappend
Gerd Moellmann's avatar
Gerd Moellmann committed
421
	must be an integer, not a Lisp object.
422

Kenichi Handa's avatar
Kenichi Handa committed
423 424 425 426
2000-08-08  Kenichi Handa  <handa@etl.go.jp>

	* charset.c (Fchar_width): Doc fix.

Gerd Moellmann's avatar
Gerd Moellmann committed
427 428 429 430
2000-08-08  Gerd Moellmann  <gerd@gnu.org>

	* charset.c (Fstring_width): Doc fix.

431 432
2000-08-07  Gerd Moellmann  <gerd@gnu.org>

433
	* xdisp.c (start_display): When starting display on a continuation
434 435 436 437 438 439 440 441 442 443 444 445 446 447
	line, clear ascent and descent members of the iterator structure;
	the height of the continued line does not affect the height of the
	continuation line.
	(make_cursor_line_fully_visible): Do nothing if cursor is on a
	line taller than the window.
	(redisplay_window) <forced window start>: Handle case that the
	middle of the window is not found in any row.
	(dump_glyph_row): Show more information.
	(compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
	first text line in a glyph matrix.

	* xterm.c (x_draw_image_foreground): Avoid drawing outside
	of the clip area when image doesn't have a mask.

Gerd Moellmann's avatar
Gerd Moellmann committed
448 449 450 451 452
	* fns.c (sweep_weak_table): Fix survival conditions for
	key-or-value and key-and-value weakness.

	* .gdbinit (xhashtable): New command.

453 454 455
	* fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
	tables out of the list of all weak hash tables.

456 457 458 459
	* xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
	a new buffer is created, make sure echo_area_buffer[] references
	the new buffer.

Eli Zaretskii's avatar
Eli Zaretskii committed
460 461 462 463 464
2000-08-07  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
	the doc string.

Kenichi Handa's avatar
Kenichi Handa committed
465 466 467 468 469
2000-08-07  Kenichi Handa  <handa@etl.go.jp>

	* syntax.c (skip_chars): Fix previous change.  Make the handling
	of unibyte string consistent with that of regex search.

470 471
2000-08-05  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487
	* xmenu.c (popup_get_selection): Use xfree instead of free.

	* fileio.c (Finsert_file_contents): Use xfree instead of free.

	* editfns.c (Ftranspose_regions): Use xfree instead of free.

	* callproc.c (child_setup): Use xfree instead of free.

	* sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
	instead of malloc.
	(run_mac_command, closedir): Use `xfree' instead of `free'.

	* keymap.c (current_minor_maps): Use xmalloc instead of malloc.

	* eval.c (error): Use xfree instead of free.

488 489 490
	* xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.

	* fns.c: Replace `illegal' with `invalid'.
Gerd Moellmann's avatar
Gerd Moellmann committed
491
	(Fmake_hash_table, make_hash_table): Allow table size of 0.
492

493 494 495 496 497
2000-08-05  Kenichi Handa  <handa@etl.go.jp>

	* syntax.c (skip_chars): Fix handling of multibyte<->unibyte
	conversion.

498 499 500 501 502
2000-08-04  Noah Friedman  <friedman@splode.com>

	* fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
	docstring.

503 504 505 506
2000-08-04  Gerd Moellmann  <gerd@gnu.org>

	* syntax.c (skip_chars): Fix typo in error message.

507 508 509 510
2000-08-04  Andreas Schwab  <schwab@suse.de>

	* m/ia64.h: Moved from s/ia64.h.

Kenichi Handa's avatar
Kenichi Handa committed
511 512
2000-08-04  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
513 514 515 516 517 518 519
	* process.c (read_process_output): Big simplification.  Handle
	composition and post-read-conversion of coding system correctly.
	(send_process): Handle composition correctly.

	* callproc.c (Fcall_process): Handle post-read-conversion of
	coding system if any.

Kenichi Handa's avatar
Kenichi Handa committed
520 521
	* coding.c (decode_coding_iso2022): More strict check for handling
	single shifting.
Kenichi Handa's avatar
Kenichi Handa committed
522 523 524 525 526 527
	(coding_restore_composition): Pay attention to the case that
	cmp_data is not set properly (because of invalid code in the
	source text).
	(run_pre_post_conversion_on_str): Include text properties in the
	resulting string.
	(decode_coding_string): Set members of coding correctly.
Kenichi Handa's avatar
Kenichi Handa committed
528

Gerd Moellmann's avatar
Gerd Moellmann committed
529 530 531 532 533 534 535 536 537 538 539 540 541 542 543
2000-08-03  Gerd Moellmann  <gerd@gnu.org>

	* s/ia64.h: New file.

	* widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
	Use NULL instead of 0 at the end of variable argument list of
	XtVaGetValues and XtVaSetValues, because 0 fails on systems where
	sizeof (int) < sizeof (void *).

	* xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
	of variable argument lists of XtVaGetValues and XtVaSetValues.

	* xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
	variable argument lists of XtVaGetValues and XtVaSetValues.

Gerd Moellmann's avatar
Gerd Moellmann committed
544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565
2000-08-02  Gerd Moellmann  <gerd@gnu.org>

	* alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
	(xrealloc, xmalloc): Use size_t.  Some callers adjusted.

	* lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
	prototype.

	* keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
	in call to Fsingle_key_description.

	* keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
	Callers changed.

2000-08-02  Colin Walters <walters@cis.ohio-state.edu>

	* window.c (display_buffer_reuse_frames): New variable.
	(Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
	frames displaying BUFFER.
	(syms_of_window): Define Lisp variable
	display-buffer-reuse-frames.

566 567 568 569 570
2000-08-01  Miles Bader  <miles@gnu.org>

	* editfns.c (Fconstrain_to_field): Fix the conditions for deciding
	when to constrain NEW_POS (they were pretty screwed up before).

571 572 573 574 575 576
2000-07-31  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (run_msdos_command): Save and restore the master
	environment, for the case that child_setup signals an error.
	When mirroring slashes in DOS shell commands, don't fail when
	argv[2] has embedded blanks.
Eli Zaretskii's avatar
Eli Zaretskii committed
577 578 579
	(Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
	(syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
	(dos_ttraw): Call mouse_setup_buttons.
580 581 582 583

	* callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
	using alloca; free it after run_msdos_command returns.

Dave Love's avatar
Dave Love committed
584 585 586 587 588 589 590 591 592
2000-07-27  Dave Love  <fx@gnu.org>

	* s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
	define.
	[_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
	working.

	* m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.

593 594 595 596
2000-07-27  Eli Zaretskii  <eliz@is.elta.co.il>

	* editfns.c (lisp_time_argument): Fix last change.

Gerd Moellmann's avatar
Gerd Moellmann committed
597 598
2000-07-27  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
599 600 601
	* fns.c (Fdelete): Make it work on vectors and strings in addition
	to lists.

Gerd Moellmann's avatar
Gerd Moellmann committed
602 603 604 605 606 607 608
	* fns.c (Qkey_or_value, Qkey_and_value): New variables.
	(syms_of_fns): Initialize new variables.
	(sweep_weak_table): Handle weakness `key-or-value' and
	`key-and-value'.
	(Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
	weakness, with t meaning the same as `key-and-value'.

Kenichi Handa's avatar
Kenichi Handa committed
609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642
2000-07-27  Kenichi Handa  <handa@etl.go.jp>

	* coding.h (struct coding_system): Member safe_charset deleted.

	* coding.c (Qsafe_charsets): This variable deleted.
	(Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
	variables.
	(coding_safe_chars): New function.
	(CODING_SAFE_CHAR_P): New macro.
	(CHARSET_OK): New arg C.  Call CODING_SAFE_CHAR_P instead of
	checking safe_charsets member of the coding system.  Caller
	changed.
	(detect_coding_iso2022): New local variable safe_chars.
	(DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
	safe_charsets member of the coding system.
	(decode_coding_iso2022): New local variable safe_chars.
	(ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
	(ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
	(ENCODE_ISO_CHARACTER): Arguments changed.  Caller changed.
	(ENCODE_UNSAFE_CHARACTER): New macro.
	(encode_coding_iso2022): New local variable safe_chars.  Check
	unsafe chars.
	(setup_coding_system): Delete the code to initialize
	coding->safe_charses
	(intersection, find_safe_codings): New functions.
	(Ffind_coding_systems_region_internal): New function.
	(syms_of_coding): Defsubr it.  Initialize Qsafe_chars,
	Qsafe_cding_system.  Make Vchar_coding_system_table a Lisp
	variable and initialize it.

	* fns.c (char_table_ref_and_index): New function.

	* lisp.h (char_table_ref_and_index): Add prototype.

Sam Steingold's avatar
Sam Steingold committed
643 644 645
2000-07-26  Sam Steingold  <sds@gnu.org>

	* editfns.c (lisp_time_argument): Added third argument `usec'.
Gerd Moellmann's avatar
Gerd Moellmann committed
646
	(Ffloat_time): New built-in Lisp function.
Sam Steingold's avatar
Sam Steingold committed
647

Gerd Moellmann's avatar
Gerd Moellmann committed
648 649
2000-07-26  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
650 651 652 653 654 655
	* dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
	for the character code.

	* config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
	GNU/Linux.

Gerd Moellmann's avatar
Gerd Moellmann committed
656 657 658 659
	* xmenu.c (menu_highlight_callback): Call show_help_echo directly
	if called for a popup menu.
	(xmenu_show): Store help string in widget values.

Dave Love's avatar
Dave Love committed
660 661 662 663 664 665 666 667
2000-07-26  Dave Love  <fx@gnu.org>

	* syswait.h: Move some definitions.
	(HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
	[!HAVE_SYS_WAIT_H]: Define things unconditionally.   More
	perspicuous definitions.
	(WTERMSIG): Fix bit pattern used.

Kenichi Handa's avatar
Kenichi Handa committed
668 669 670 671 672
2000-07-26  Kenichi Handa  <handa@etl.go.jp>

	* print.c (print_object): If vector printing is truncated, print
	"..." to indicate it as well as the case of list printing.

673 674
2000-07-25  Gerd Moellmann  <gerd@gnu.org>

675 676 677 678 679 680 681 682
	* xdisp.c (next_element_from_display_vector): Improve comments.

	* lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
	for the character code, and the rest for the face id as in 20.x.
	(FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.

	* window.c (window_display_table): Cleaned up.

683 684 685
	* syntax.c (Fforward_word): Add last arg nil in call of
	Fconstrain_to_field.

Eli Zaretskii's avatar
Eli Zaretskii committed
686 687
2000-07-25  Eli Zaretskii  <eliz@is.elta.co.il>

688
	* fileio.c (Frename_file) [DOS_NT]: If the file names are
Eli Zaretskii's avatar
Eli Zaretskii committed
689 690 691
        identical but for the letter-case, don't call
        barf_or_query_if_file_exists.

Miles Bader's avatar
Miles Bader committed
692 693 694 695 696 697 698 699 700 701 702
2000-07-25  Miles Bader  <miles@gnu.org>

	* editfns.c (find_field): Honor special `boundary' fields.
	(Qboundary): New variables.
	(syms_of_editfns): Initialize Qboundary.
	(Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
	Use scan_buffer instead of find_before_next_newline, because it
	allows us to detect the boundary case where there's a newline at
	the search limit.
	* lisp.h (Fconstrain_to_field): Update external declaration.

Gerd Moellmann's avatar
Gerd Moellmann committed
703 704 705 706
2000-07-24  Gerd Moellmann  <gerd@gnu.org>

	* print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
	if that is nil.
Miles Bader's avatar
Miles Bader committed
707

Dave Love's avatar
Dave Love committed
708 709 710 711 712 713 714 715 716 717
2000-07-24  Dave Love  <fx@gnu.org>

	* s/sunos4-0.h, s/sol2.h:
	(LIBS_TERMCAP): Move from m/sparc.h.

	* m/sparc.h (TERMINFO): Moved to system files (probably only
	relevant for sunos4 judging by its vintage).
	(BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
	__arch64__.

Eli Zaretskii's avatar
Eli Zaretskii committed
718 719 720 721 722
2000-07-24  Eli Zaretskii  <eliz@is.elta.co.il>

	* xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
	name to single_keymap_panes.

Andreas Schwab's avatar
.  
Andreas Schwab committed
723 724 725 726
2000-07-24  Andreas Schwab  <schwab@suse.de>

	* fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.

Gerd Moellmann's avatar
Gerd Moellmann committed
727 728 729 730 731 732 733 734 735 736 737 738 739
2000-07-24  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
	parameters instead of using int parameters.  Expect FN to accept
	EMACS_INT parameters.
	(display_echo_area, resize_echo_area_axactly, current_message)
	(truncate_echo_area, set_message_1): Call with_echo_area_buffer
	with new argument list.
	(resize_mini_window_1): New callback function.
	(current_message_1, truncate_message_1, set_message_1): Change
	parameter lists to the new format expected by
	with_echo_area_buffer.

Kenichi Handa's avatar
Kenichi Handa committed
740 741 742 743 744 745 746
2000-07-24  Kenichi Handa  <handa@etl.go.jp>

	* fontset.c (fontset_ref): Remove INLINE declaration.
	(fontset_ref_via_base): Likewise.
	(Fset_fontset_font): Convert FAMILY and REGISTRY specifications
	to downcase.

Eli Zaretskii's avatar
Eli Zaretskii committed
747 748 749 750 751 752
2000-07-23  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (IT_note_mouse_highlight): Process overlays in the
	correct order of priority.  If help echo was found in an overlay,
	use that overlay as the object in which the help echo was found.

Miles Bader's avatar
Miles Bader committed
753 754 755 756 757 758
2000-07-22  Miles Bader  <miles@gnu.org>

	* textprop.c (Fprevious_single_char_property_change): The initial
	property value should be from the position preceding POSITION, not
	following it.

Eli Zaretskii's avatar
Eli Zaretskii committed
759 760 761 762 763
2000-07-22  Eli Zaretskii  <eliz@is.elta.co.il>

	* coding.c (syms_of_coding): Doc fix for
	inhibit-iso-escape-detection.

764 765
2000-07-21  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
766 767
	* xterm.c (note_mouse_highlight): Process overlays in the right
	order of priority.
Sam Steingold's avatar
Sam Steingold committed
768

769 770 771 772 773 774
	* keyboard.c (show_help_echo, gen_help_event): Extend comments.

	* xterm.c (note_mouse_highlight): If help-echo was found in an
	overlay, use that overlay as the object in which the help was
	found.

Gerd Moellmann's avatar
Gerd Moellmann committed
775
	* window.c (foreach_window_1): Fix typo reversing an if-condition.
Sam Steingold's avatar
Sam Steingold committed
776

777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796
	* window.c (foreach_window): Instead of a fake variable argument
	list, take one USER_DATA argument.
	(foreach_window_1): Likewise, and call callback functions with two
	args, the window and USER_DATA.
	(struct check_window_data): New struct.
	(check_window_containing): Use it.
	(window_from_coordinates): Set up a struct check_window_data for
	foreach_window.
	(add_window_to_list, freeze_window_start): Change parameters
	according to new calling convention.

	* window.h (foreach_window): Change prototype.

	* buffer.c (Fprevious_overlay_change): Avoid memory leak.

2000-07-21  Eli Zaretskii  <eliz@is.elta.co.il>

	* xmenu.c (menu_help_callback): Call show_help_echo with
	additional arguments OBJECT and POS.

Kenichi Handa's avatar
Kenichi Handa committed
797 798
2000-07-21  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
799 800 801
	* data.c (Faset): Allow storing any multibyte character in a
	string.  Convert unibyte string to multibyte if necessary.

Kenichi Handa's avatar
Kenichi Handa committed
802 803 804 805 806 807 808 809
	* xfns.c (x_encode_text): New function.
	(x_set_name): Use x_encode_text.
	(x_set_title): Likewise.

	* xselect.c (lisp_data_to_selection_data): Use x_encode_text.

	* xterm.h (x_encode_text): Add prototype.

Dave Love's avatar
Dave Love committed
810 811 812 813 814
2000-07-20  Dave Love  <fx@gnu.org>

	* ccl.c (Fccl_execute_on_string): Don't check xmalloc return.  Use
	xfree, not free.

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 842 843 844 845
2000-07-20  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (help_echo_window): New variable.
	(syms_of_msdos): Initialize and staticpro it.
	(IT_note_mode_line_highlight): Set help_echo_window.
	(IT_note_mouse_highlight): Ditto.
	(dos_rawgetc): Store help_echo_window in the second event produced
	for HELP_EVENTs.

	* msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
	Record the object that generated the help echo and the position of
	that object in help_echo_object and help_echo_pos.  Record that
	some glyphs in a row are displayed in mouse-face.
	(IT_update_begin): Don't clear mouse highlight unless one of the
	enabled glyph rows is marked as being displayed in mouse-face.
	(dos_rawgetc): Generate 2 events for HELP_EVENT.  Pass the object
	and position recorded in help_echo_object and help_echo_pos to the
	event queue.
	(IT_menu_display): Accept a new argument PN: the pane number of
	the current menu pane.  Record the pane number and the item
	number of the item which has associated help string.
	(XMenuActivate): Update the prototype for help_callback in
	function declaration.  Call IT_menu_display with the current menu
	pane number as an additional argument.  Call help_callback with
	two additional arguments: the pane number and the item number of
	the menu item associated with the help text.
	(help_echo_object, help_echo_pos): New variables.
	(syms_of_msdos): Initialize them and staticpro help_echo_object.

	* msdos.h (XMenuActivate): Update prototype.

Gerd Moellmann's avatar
Gerd Moellmann committed
846 847
2000-07-19  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
848 849 850 851 852 853 854 855 856 857 858
	* xdisp.c (with_echo_area_buffer): Call FN with more arguments.
	Add some more prototypes.

	* xterm.c, xterm.h: Add some more prototypes.

	* lisp.h (Fnext_single_char_property_change): Add prototype.

	* dispnew.c (direct_output_for_insert): Remove confusing
	outer local variable mouse_face_overwritten_p.
	(glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.

Gerd Moellmann's avatar
Gerd Moellmann committed
859 860
	* alloc.c (allocate_string_data): Don't copy old string contents.

Kenichi Handa's avatar
Kenichi Handa committed
861 862 863 864 865
2000-07-19  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (code_convert_region): Delete text properties before
	shrinking the conversion region.

866 867
2000-07-18  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
868 869 870
	* dispnew.c (update_text_area): Write the whole row if it
	has mouse-face in it.

Gerd Moellmann's avatar
Gerd Moellmann committed
871 872 873
	* xfaces.c (face-alternative-font-family-alist): Remove
	DEFVAR_LISP; staticpro instead.

Sam Steingold's avatar
Sam Steingold committed
874
	* xmenu.c (menu_help_callback): Call show_help_echo with
875 876 877 878 879 880 881 882 883 884 885 886 887 888 889
	new arguments.

	* keyboard.c (show_help_echo): Add parameter WINDOW.
	(read_char): Call show_help_echo with window extracted from Lisp
	help event.
	(gen_help_event): Add parameter WINDOW.

	* keyboard.h (show_help_echo, gen_help_event): Change prototypes.

	* xterm.c (help_echo_window): New variable.
	(note_mouse_highlight, note_tool_bar_highlight): Set
	help_echo_window.
	(XTread_socket): Pass help_echo_window to gen_help_event.
	(syms_of_xterm): Initialize and staticpro help_echo_window.

Dave Love's avatar
Dave Love committed
890 891 892 893 894
2000-07-18  Dave Love  <fx@gnu.org>

	* Makefile.in: Fix dependencies of blockinput.h on atimer.h,
	systime.h.

Gerd Moellmann's avatar
Gerd Moellmann committed
895 896
2000-07-18  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
897 898 899 900 901 902
	* alloc.c (allocate_string_data): If string had already data
	assigned, copy old contents to new string data.

	* coding.c (syms_of_coding): Fix typo in spelling of variable
	`inhibit-iso-escape-detection'.

Gerd Moellmann's avatar
Gerd Moellmann committed
903 904 905 906 907 908
	* alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.

	* Makefile.in: Add dependencies on dispextern.h.
	(alloca.o): Don't define malloc and define EMACS_FREE instead of
	`free'; both can conflict with system header files.

Kenichi Handa's avatar
Kenichi Handa committed
909 910 911 912 913
2000-07-18  Kenichi Handa  <handa@etl.go.jp>

	* charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
	undefined.

914 915 916 917
2000-07-18  Dave Love  <fx@gnu.org>

	* window.c (Fwindow_list): Declare arg `window'.

Kenichi Handa's avatar
Kenichi Handa committed
918 919 920 921 922
2000-07-18  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (setup_coding_system): Don't override the explicitly
	specified designations.

Miles Bader's avatar
dummy  
Miles Bader committed
923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940
2000-07-15  Miles Bader  <miles@gnu.org>

	* editfns.c (char_property_eq, char_property_stickiness): Renamed
	from `text_property_eq' and `text_property_stickiness', respectively.
	(find_field, Fconstrain_to_field, char_property_eq)
	(char_property_stickiness): Changed to call char-property functions
	instead of text-property-only ones.

	* textprop.c (Fnext_single_char_property_change): Made a subr (was
	`next_single_char_property_change').  Do more error checking, and
	cleanup limit behavior.
	(Fprevious_single_char_property_change): New function.
	(syms_of_textprop): Initialize new subrs.

	* xdisp.c (display_prop_end, invisible_text_between_p):
	Call Fnext_single_char_property_change instead of
	next_single_char_property_change.

Jason Rumney's avatar
Jason Rumney committed
941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983
2000-07-15  Jason Rumney  <jasonr@gnu.org>

	* w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
	after menu is finished with.
	(add_menu_item): Only consider wv->title as a menu title.
	(w32_menu_display_help): Add OBJECT and POS to show_help_echo.

	* w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
	null title.
	(FONT_REGEXP): Remove unused macro, and its sub-components.
	(syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.

	* w32term.c (help_echo_object, help_echo_pos): New variables.
	(note_mode_line_highlight): Store additional information about the
	help-echo in help_echo_object and help_echo_pos.  Check both
	`local-map' and `keymap' properties for changing the cursor
	(note_mouse_highlight): Store additional information about the
	help-echo in help_echo_object and help_echo_pos.
	(note_tool_bar_highlight): Set help_echo_object to nil and
	help_echo_pos to -1.
	(w32_read_socket): Use gen_help_event instead of filling
	input_events manually.
	(syms_of_w32term): Staticpro help_echo_object.
	(x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
	set, arrange for a mouse-highlight redisplay in
	XTframe_up_to_date.
	(x_clear_mouse_face): New function.
	(w32_redisplay_interface): Add pointer to x_clear_mouse_face.
	(x_update_window_begin): No need to turn off the mouse
	highlight here.
	(show_mouse_face): Set the mouse_face_p flag of glyph rows
	depending on whether they contain glyphs highlighted in
	mouse-face.
	(x_fill_stretch_glyph_string): Consume runs of stretch
	glyphs instead of a single one.
	(BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
	with new argument list.
	(x_set_glyph_string_gc): Make sure the face's GC is valid.
	(x_append_glyph, x_append_composite_glyph)
	(x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
	changes in struct glyph starting 1999-12-27. See comments for
	xterm.c on 2000-07-05.

984 985 986 987 988
2000-07-14  Sam Steingold  <sds@gnu.org>

	* xfaces.c (realize_x_face): Fix the last patch:
	check `default_face' before dereferencing.

Dave Love's avatar
Dave Love committed
989 990
2000-07-14  Dave Love  <fx@gnu.org>

991
	* syntax.c (back_comment): Add null default in switch (for pcc).
Dave Love's avatar
Dave Love committed
992

Kenichi Handa's avatar
Kenichi Handa committed
993 994
2000-07-14  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
995
	* xfaces.c (realize_x_face): Make fontset using the base of the
996
	default_face's fontset, not using the default fontset.
Kenichi Handa's avatar
Kenichi Handa committed
997

Kenichi Handa's avatar
Kenichi Handa committed
998 999 1000 1001 1002
	* coding.c (inhibit_iso_escape_detection): New variable.
	(syms_of_coding): Make it a Lisp variable.
	(detect_coding_iso2022): If inhibit_iso_escape_detection is
	nonzero, ignore ISO2022's escape sequence.

Gerd Moellmann's avatar
Gerd Moellmann committed
1003 1004
2000-07-14  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1005 1006
	* alloca.c (malloc) [emacs]: Define as xmalloc.

Gerd Moellmann's avatar
Gerd Moellmann committed
1007 1008 1009 1010 1011 1012
	* xfns.c (Fx_show_tip): If frame parameters contain a position,
	use that instead of the mouse position.  Add parameters DX and DY.

	* dispextern.h (Fx_show_tip): Adjust number of parameters
	in prototype.

Gerd Moellmann's avatar
Gerd Moellmann committed
1013 1014 1015 1016 1017 1018 1019
	* keyboard.c (show_help_echo): Add parameters OBJECT and POS.
	if HELP is a function, call it with OBJECT and POS as parameters
	to get the help to display.
	(gen_help_event, kbd_buffer_store_help_event): New functions.
	(kbd_buffer_get_event): Construct the Lisp help-event differently.
	(read_char): Call show_help_echo with new parameters.

1020
	* keyboard.h (gen_help_event, kbd_buffer_store_help_event):
Gerd Moellmann's avatar
Gerd Moellmann committed
1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049
	Add prototypes.

	* xterm.c (help_echo_object, help_echo_pos): New variables.
	(note_mode_line_highlight): Store additional information about the
	help-echo in help_echo_object and help_echo_pos.  Check both
	`local-map' and `keymap' properties for changing the cursor
	(note_mouse_highlight): Store additional information about the
	help-echo in help_echo_object and help_echo_pos.
	(note_tool_bar_highlight): Set help_echo_object to nil and
	help_echo_pos to -1.
	(XTread_socket): Use gen_help_event instead of filling
	input_events manually.
	(syms_of_xterm): Staticpro help_echo_object.

	* xmenu.c (menu_highlight_callback): Use
	kbd_buffer_store_help_event instead of setting up and input_event
	structure manually.

	* xdisp.c (eval_form): GCPRO argument sexpr.
	(call_function): New function.
	(handle_single_display_prop): Use call_function and FUNCTIONP
	instead of checking whether if font_height is a symbol and
	using eval_form.

	* eval.c (internal_condition_case_2): New function.

	* lisp.h (FUNCTIONP): New macro.
	(internal_condition_case_2, call_function): Add prototypes.

Gerd Moellmann's avatar
Gerd Moellmann committed
1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066
	* xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
	(x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
	Always set `arg' member of input_events.
	(construct_menu_click): Unused function removed.

	* msdos.c (dos_rawgetc): Always set `arg' member of input_events.

	* w32term.c (construct_mouse_click, construct_mouse_wheel)
	(construct_drag_n_drop, x_scroll_bar_handle_click)
	(w32_read_socket): Always set `arg' member of input_events.

	* keyboard.c (show_help_echo): Use eval_form.  Add comment.

	* lisp.h (eval_form): Add prototype.

	* xdisp.c (eval_form): Make it externally visible.

1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 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
2000-07-13  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (x_handle_tool_bar_click): Store the frame in the
	frame_or_window slot of TOOL_BAR_EVENT input events instead of
	consing.  For prefix events, store the frame in the `arg' slot of
	the event, otherwise store the key there.
	(XTread_socket): Instead of consing, use the frame_or_window slot
	of HELP_EVENTs for the frame, and the `arg' slot for the help
	string.

	* xmenu.c (menu_highlight_callback): Store help string in the
	`arg' member of the input event; don't cons.
	(menubar_selection_callback): Use the `arg' slot of input events
	to queue additional information, instead of consing.

	* msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.

	* w32term.c (w32_handle_tool_bar_click): Adapt to changes in
	TOOL_BAR_EVENTs.
	(w32_read_socket): Adapt to changes in HELP_EVENTs.

	* w32menu.c (menubar_selection_callback): Use the `arg' slot of
	input events to queue additional information, instead of consing.

	* keyboard.c (kbd_buffer_gcpro): Renamed from
	kbd_buffer_frame_or_window.  Now used for all Lisp objects
	referenced from the input queue.
	(kbd_buffer_store_event): Always use structure assignment for
	copying input events.  Record all Lisp objects referenced from
	events in kbd_buffer_gcpro.
	(kbd_buffer_get_event): Construct Lisp `help-echo' events
	differently from input events.  Test for prefix menu_bar_events
	and TOOL_BAR_EVENTs differently.  Reset all slots used by an input
	event in kbd_buffer_gcpro to nil.
	(make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
	frame_or_window is equal to its arg member as prefix events.
	(stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
	used by an input event to nil.
	(init_keyboard): Use two times the size of the input queue
	for kbd_buffer_gcpro.
	(syms_of_keyboard): Likewise.

	* emacs.c (handle_USR2_signal, handle_USR1_signal): Use
	USER_SIGNAL_EVENT.

	* termhooks.h (struct input_event): Add member `arg'.
	(MENU_BAR_EVENT): Renamed from menu_bar_event.
	(USER_SIGNAL_EVENT): Renamed from user_signal.

	* xfaces.c (ASET): Remove definition.

	* lisp.h (AREF, ASET, ASIZE): New macros.

	* fontset.c (AREF, ASIZE): Remove definitions.

	* fns.c (AREF): Remove definition.
1123

1124 1125
	* composite.c (AREF): Remove definition.

1126 1127
2000-07-12  Gerd Moellmann  <gerd@gnu.org>

1128 1129 1130
	* dispnew.c (redraw_overlapped_rows): Add missing local.
	(scrolling_window): Remove debug code.

1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153
	* xdisp.c (try_window_reusing_current_matrix, try_window_id):
	Before scrolling, turn off a mouse-highlight in the window
	being scrolled.

	* xterm.c (x_update_window_end): Add parameter
	MOUSE_FACE_OVERWRITTEN_P.  If set, arrange for a mouse-highlight
	redisplay in XTframe_up_to_date.
	(x_clear_mouse_face): New function.
	(x_redisplay_interface): Add pointer to x_clear_mouse_face.

	* dispnew.c (make_current): Preserve the mouse_face_p flag of the
	current glyph row.
	(update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P.  Set
	it when any row is written to that contains glyphs highlighted in
	mouse-face.
	(update_window): Call the window update end hook with new
	parameter MOUSE_FACE_OVERWRITTEN_P.
	(direct_output_for_insert): Give up if row contains mouse-face.

	* dispextern.h (struct redisplay_interface): Add parameter
	MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
	(clear_mouse_face): New function pointer member.

1154 1155 1156 1157 1158 1159 1160 1161 1162 1163
2000-07-11  Stefan Monnier  <monnier@cs.yale.edu>

	* syntax.c (back_comment): Use one switch rather than a few `if's.
	Obey open_paren_in_column_0_is_defun_start.
	When reverting to the `slow' method, try to nicely handle the case
	of nested comments by checking that the comment-starter we found
	does indeed match the comment-ender.
	(scan_sexps_forward, scan_sexps_forward):
	Ignore excessive opening parenthesis rather than throwing an error.

Gerd Moellmann's avatar
Gerd Moellmann committed
1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182
2000-07-11  Gerd Moellmann  <gerd@gnu.org>

	* doc.c (Fsubstitute_command_keys): Handle case that a GC
	in Fwhere_is_internal or get_keymap_1 relocates string contents.

	* dispnew.c (direct_output_forward_char): Give up if currently
	displaying a message instead of the minibuffer contents.

	* xterm.c (x_update_window_begin): No need to turn off the mouse
	highlight here.
	(show_mouse_face): Set the mouse_face_p flag of glyph rows
	depending on whether they contain glyphs highlighted in
	mouse-face.

	* dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P.  If set,
	compare the mouse_face_p flags of both rows.

	* dispextern.h (struct glyph_row): Add flag mouse_face_p.

Eli Zaretskii's avatar
Eli Zaretskii committed
1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195
2000-07-11  Eli Zaretskii  <eliz@is.elta.co.il>

	* keyboard.c (show_help_echo): Accept additional parameter
	ok_to_overwrite_keystroke_echo.
	(read_char): Call show_help_echo with a zero
	ok_to_overwrite_keystroke_echo argument.
	* keyboard.h (show_help_echo): Update prototype of
	show_help_echo.
	* xmenu.c (menu_help_callback): Call show_help_echo with non-zero
	ok_to_overwrite_keystroke_echo argument.
	* w32menu.c (w32_menu_display_help): Call show_help_echo with
	non-zero ok_to_overwrite_keystroke_echo argument.

1196 1197
2000-07-10  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1198 1199 1200 1201 1202 1203 1204 1205 1206 1207
	* xdisp.c (try_window_id): If changes are all below what is
	displayed in the window, and point is in the window, we still
	might have to find point on the display.

	* xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
	glyphs instead of a single one.
	(BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
	with new argument list.
	(x_set_glyph_string_gc): Make sure the face's GC is valid.

1208 1209 1210 1211 1212
	* keymap.c (get_keymap_1): Add comment that this function can GC.
	(where_is_internal_2, where_is_internal_1): Add GCPROs, add
	comment that functions can GC.
	(Fset_keymap_parent): GCPRO arg KEYMAP.

1213 1214 1215 1216 1217
2000-07-10  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (XMenuActivate): After exiting the menu, restore the
	echo area message and erase it.

Kenichi Handa's avatar
Kenichi Handa committed
1218 1219 1220 1221 1222
2000-07-10  Kenichi Handa  <handa@etl.go.jp>

	* fontset.c (Ffontset_info): Make the return value more compatible
	with that of Emacs 20.

1223 1224 1225 1226
2000-07-07  Gerd Moellmann  <gerd@gnu.org>

	* eval.c (Fsignal): Handle case that backtrace_list is null.

Kenichi Handa's avatar
Kenichi Handa committed
1227 1228 1229 1230
2000-07-07  Kenichi Handa  <handa@etl.go.jp>

	* ccl.c (Fccl_execute): Typo fixed.

Gerd Moellmann's avatar
Gerd Moellmann committed
1231 1232
2000-07-06  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1233
	* window.c (window_loop): Add missing gcpro1 local variable.
1234

Gerd Moellmann's avatar
Gerd Moellmann committed
1235 1236 1237 1238 1239 1240 1241
	* window.c (Fwindow_list): Reverse list at the end.
	(candidate_window_p): Add parameter OWINDOW.  ALL_FRAMES nil
	means allow windows on OWINDOW's frame, only.
	(window_loop): Simplified; use Fwindow_list.

	* Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.

Gerd Moellmann's avatar
Gerd Moellmann committed
1242 1243 1244 1245 1246 1247 1248 1249 1250
2000-07-05  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (XTread_socket): Increment handling_signal at the start,
	decrement it at the end.

	* eval.c (handling_signal): New variable.
	(Fsignal): Abort if handling_signal is non-zero.

	* lisp.h (handling_signal): External declaration.
1251

Gerd Moellmann's avatar
Gerd Moellmann committed
1252 1253
	* s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.

1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267
2000-07-05  Ken Raeburn  <raeburn@gnu.org>

	Sound support for NetBSD through "Linux emulation" support:
	* config.in (HAVE_SOUNDCARD_H): Undef.
	(HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
	* Makefile.in (LIBSOUND): New variable.
	(LIBES): Include it.
	* sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
	<soundcard.h>.
	(DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
	elsewhere.
	(vox_open): Use DEFAULT_SOUND_DEVICE.
	* s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.

Gerd Moellmann's avatar
Gerd Moellmann committed
1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278
2000-07-05  Gerd Moellmann  <gerd@gnu.org>

	* print.c (print_error_message): If Vsignaling_function is set,
	show it in *Messages*.

	* lisp.h (Vsignaling_function): External declaration.

	* eval.c (Vsignaling_function): New variable.
	(Fsignal): Compute it.
	(syms_of_eval): Staticpro it.

Dave Love's avatar
Dave Love committed
1279 1280 1281 1282 1283
2000-07-05  Dave Love  <fx@gnu.org>

	* syswait.h: Use the autoconf recommended approach.  Old code
	#if'd out in case we need to revert.

1284
	* config.in (HAVE_SYS_WAIT_H): Added.
Dave Love's avatar
Dave Love committed
1285

Andrew Innes's avatar
Andrew Innes committed
1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311
2000-07-05  Andrew Innes  <andrewi@gnu.org>

	* vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
	when non-NULL instead of __morecore, to take account of buffer
	memory.  This also solves a problem with spurious memory warnings
	on Windows.

	* ralloc.c: Make real_morecore non-static.

	* eval.c (internal_condition_case): Comment out abort if
	interrupt_input_blocked is not zero.

	* makefile.nt: Add support for `bootstrap' and related targets.
	Include minimal debug info in emacs.exe in release build.
	Remove all dependencies on lisp.h, and fixup some others.

	* w32.c (init_environment): Install code from 20.7 for providing
	default values for environment variables, based on the
	executable's own location.
	(map_w32_filename): Handle filenames that are longer than
	MAX_PATH.
	(sys_socket): Install socket inheritance bug fix from 20.7.

	* alloca.c [emacs]: Include lisp.h (needed by atimer.h included
	here via blockinput.h).

Stefan Monnier's avatar
Stefan Monnier committed
1312 1313
2000-07-05  Stefan Monnier  <monnier@cs.yale.edu>

Stefan Monnier's avatar
Stefan Monnier committed
1314 1315
	* w32menu.c (w32_menu_display_help):
	* xmenu.c (menu_help_callback): Use show_help_echo.
Stefan Monnier's avatar
Stefan Monnier committed
1316 1317 1318 1319 1320 1321

	* keyboard.h (show_help_echo): Declare.

	* keyboard.c (show_help_echo): New function, extracted from read_char.
	Feval its `msg' argument if it's a cons cell.
	(read_char): Use it.
Stefan Monnier's avatar
Stefan Monnier committed
1322
	(follow_key): Pass `autoload' to get_keyelt.
Stefan Monnier's avatar
Stefan Monnier committed
1323

1324
	* xterm.c (note_mode_line_highlight, note_mouse_highlight)
Stefan Monnier's avatar
Stefan Monnier committed
1325
	(note_tool_bar_highlight, XTread_socket):
1326
	* msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
Stefan Monnier's avatar
Stefan Monnier committed
1327 1328 1329 1330 1331
	(dos_rawgetc):
	* w32term.c (note_mode_line_highlight, note_mouse_highlight)
	(note_tool_bar_highlight, w32_read_socket):
	Do not gratuitously ignore non-string `help-echo' properties.

1332 1333
2000-07-05  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1334 1335
	* eval.c (Feval): Put check for interrupt_input_block in #if 0.

Gerd Moellmann's avatar
Gerd Moellmann committed
1336 1337
	* window.c (delete_all_subwindows): Reset Vwindow_list.

1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349
	* xterm.c (x_append_glyph, x_append_composite_glyph)
	(x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
	changes in struct glyph starting 1999-12-27.  Some bit-fields of
	struct glyph were not set, which made glyphs unequal when compared
	with GLYPH_EQUAL_P.  Redisplay outputs such glyphs, and flickering
	effects were the result.  This also depended on the contents of
	memory returned by xmalloc.  If flickering happens again, activate
	the code in clear_glyph_row that's in #if 0.  If the flickering is
	gone with that, chances are that it is caused by something
	similar.

	* dispnew.c (clear_glyph_row): Add debug code in #if 0.
1350

1351 1352 1353 1354 1355 1356 1357 1358
	* dispextern.h: Add some comments.

	* window.c (add_window_to_list): Add parameter LIST.
	(window_list): Order list so that, for each frame, windows are
	in canonical order, and so that frames appear in the list in
	the order given by Vframe_list.
	(next_window): Reverse the handling of NEXT_P.

1359 1360
2000-07-04  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382
	* window.c (Vwindow_list): New variable.
	(make_window, delete_window): Set Vwindow_list to nil.
	(check_window_containing): New function.
	(window_from_coordinates): Rewritten.
	(add_window_to_list, window_list, candidate_window_p)
	(decode_next_window_args, next_window): New functions.
	(Fnext_window, Fprevious_window): Rewritten in terms of
	next_window.
	(Fwindow_list): New function.
	(Fother_window): Cleaned up.
	(foreach_window): Add a longer "variable argument list".  Let
	callback function return 0 to indicate that cycling over windows
	should stop.
	(foreach_window_1): Likewise.
	(freeze_window_start): Return int.
	(init_window): New function.
	(syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.

	* emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
	input_event with bzero.
	(main): Call init_window.

1383 1384 1385
	* keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
	a menu filter.

1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397
2000-07-04  Kenichi Handa  <handa@etl.go.jp>

	* composite.h (make_composition_value_copy): Extern it.

	* composite.c (make_composition_value_copy): New function.

	* editfns.c (Fformat): While copying text properties, make each
	composition property value a copy.

	* fns.c (concat): While copying text properties, make each
	composition property value a copy.

Gerd Moellmann's avatar
Gerd Moellmann committed
1398 1399
2000-07-03  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1400 1401
	* m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.

1402
	* fns.c (sweep_weak_table): Mark only objects that are not
1403 1404
	marked already.

Gerd Moellmann's avatar
Gerd Moellmann committed
1405 1406 1407 1408
	* frame.c (next_frame, prev_frame): If MINIBUF is a window,
	include those frames as candidates which have their focus
	redirected to the minibuffer frame.

1409 1410 1411 1412
2000-07-03  Stefan Monnier  <monnier@cs.yale.edu>

	* fns.c (Fputhash): Return `value' rather than nil.

1413 1414
2000-06-30  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1415 1416
	* frame.c (next_frame): Don't check focus redirection in case
	MINIBUF is a window.  Doing so excludes frames using MINIBUF
1417 1418 1419 1420
	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
1421 1422 1423 1424 1425 1426
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
1427 1428
2000-06-28  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1429
	* xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
Gerd Moellmann's avatar
Gerd Moellmann committed
1430
	the display if windows_or_buffers_changed.
Gerd Moellmann's avatar
Gerd Moellmann committed
1431 1432 1433 1434 1435 1436 1437

	* 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
Gerd Moellmann's avatar
Gerd Moellmann committed
1438
	held in global variables, instead of allocating them with alloca and
Gerd Moellmann's avatar
Gerd Moellmann committed
1439 1440 1441 1442 1443 1444 1445 1446
	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
1447 1448 1449 1450
	* s/isc4-0.h (sigunblock): Define.

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

1451 1452 1453 1454 1455 1456 1457 1458 1459
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.

1460 1461
2000-06-27  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1462
	* xdisp.c (resize_mini_window): Subtract the extra line spacing
1463 1464
	below the last line from the needed window height.

Stefan Monnier's avatar
Stefan Monnier committed
1465 1466 1467 1468 1469 1470
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
1471 1472
2000-06-26  Gerd Moellmann  <gerd@gnu.org>

1473
	* xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
Gerd Moellmann's avatar
Gerd Moellmann committed
1474 1475 1476 1477 1478 1479 1480 1481
	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.

1482 1483 1484 1485 1486 1487
	* 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
1488 1489 1490
	* xfns.c (Fimage_size): New function.
	(syms_of_xfns): Defsubr it.

Andreas Schwab's avatar
.  
Andreas Schwab committed
1491 1492 1493 1494 1495
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
1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511
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.

1512 1513 1514 1515 1516
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
1517 1518
2000-06-23  Dave Love  <fx@gnu.org>

Dave Love's avatar
Dave Love committed
1519 1520
	* ralloc.c: Maybe include unistd.h

Dave Love's avatar
Dave Love committed
1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541
	* 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.

1542
	* callproc.c (setpgrp): Undefine before defining.
Dave Love's avatar
Dave Love committed
1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556
	(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
1557 1558 1559 1560 1561
2000-06-23  Gerd Moellmann  <gerd@gnu.org>

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

1562 1563 1564 1565 1566
2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>

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

1567 1568
2000-06-22  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1569 1570 1571
	* xrdb.c (x_load_resources): Add default resource for scroll bar's
	trough color and main window's background color.

1572
	* xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
Gerd Moellmann's avatar
Gerd Moellmann committed
1573 1574 1575 1576 1577
	differently.

	* xterm.h (Xt_app_con): External declaration.

	* widget.c (EmacsFrameRealize): Fix typo.
1578

1579 1580
	* widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.

1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596
	* 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.

Dave Love's avatar