ChangeLog 350 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
2001-01-31  Gerd Moellmann  <gerd@gnu.org>

	* frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.

	* window.c (enum window_part): New enumeration.
	(Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
	Qright_bitmap_area.
	(coordinates_in_window): Return an enumerator from enum
	window_part.  Fix handling of right scroll bar.
	(Fcoordinates_in_window_p): Doc fix.  Return `left-fringe' and
	`right-fringe' instead of `left-bitmap-area' and
	`right-bitmap-area'.  Use enumerators from enum window_part
	instead of hard-coded integers.
	(check_window_containing, window_from_coordinates): Use
	enumerators from enum window_part instead of hard-coded integers.
	(syms_of_window): Replace Qleft_bitmap_area and
	Qright_bitmap_area.with Qleft_fringe and Qright_fringe.

19 20 21 22
2001-01-31  Eli Zaretskii  <eliz@is.elta.co.il>

	* editfns.c (Fformat_time_string): Doc fix.

Stefan Monnier's avatar
Stefan Monnier committed
23 24 25 26 27
2001-01-31  Stefan Monnier  <monnier@cs.yale.edu>

	* keymap.c (Fwhere_is_internal): Use the first valid binding
	if no ascii binding is found (when firstonly is t).

28 29
2001-01-31  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
30 31 32 33 34 35 36 37
	* window.c (Fscroll_right, Fscroll_left): Use interactive_p
	instead of Finteractive_p.

	* lisp.h (interactive_p): Add prototype.

	* eval.c (interactive_p): New function.
	(Finteractive_p): Use it.

38 39
	* alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.

Dave Love's avatar
Dave Love committed
40 41
2001-01-31  Dave Love  <fx@gnu.org>

Dave Love's avatar
Dave Love committed
42 43
	* .gdbinit (hook-run): Define to run xreload.

Dave Love's avatar
Dave Love committed
44 45
	* textprop.c (Fset_text_properties): Fix newline in doc string.

Gerd Moellmann's avatar
Gerd Moellmann committed
46 47 48 49 50 51 52 53 54 55 56 57
2001-01-30  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (build_desired_tool_bar_string, syms_of_xdisp): Use
	DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.

	* dispextern.h (Vtool_bar_button_margin:): Declare extern.
	(DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF) 
	(DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.

	* xfns.c (Fx_create_frame): Add the tool bar height to the frame
	height.

58 59 60 61 62
2001-01-30  Dave Love  <fx@gnu.org>

	* bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
	AFTER_POTENTIAL_GC.

Gerd Moellmann's avatar
Gerd Moellmann committed
63 64 65 66 67
2001-01-29  Gerd Moellmann  <gerd@gnu.org>

	* bytecode.c (Fbyte_code) <Bcurrent_column>: Add
	BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.

Eli Zaretskii's avatar
Eli Zaretskii committed
68 69 70 71
2001-01-29  Eli Zaretskii  <eliz@is.elta.co.il>

	* textprop.c (Fset_text_properties): Doc fix.

72 73 74 75
2001-01-29  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (forward_to_next_line_start): Remove xassert.

76 77
2001-01-29  Jason Rumney  <jasonr@gnu.org>

78
	* w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
79 80
	returning without releasing it.

Kenichi Handa's avatar
Kenichi Handa committed
81 82 83 84 85
2001-01-29  Kenichi Handa  <handa@etl.go.jp>

	* w32fns.c (w32_font_match): Allocate three more bytes to regex
	for '^', '$', and '\0'.

86 87
2001-01-28  Andrew Choi  <akochoi@i-cable.com>

88 89 90
	* fontset.c (fontset_pattern_regexp): Allocate three more bytes to
	regex for '^', '$', and '\0'.

91 92 93 94 95 96
	* alloc.c (allocate_string) [macintosh]: Call check_string_bytes
	only if current_sblock has been initialized.

	* frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
	terminal frame even if it is the only visible frame.

Kenichi Handa's avatar
Kenichi Handa committed
97 98 99 100 101 102 103 104 105 106 107 108
2001-01-28  Kenichi Handa  <handa@etl.go.jp>

	* fontset.c (font_family_registry): Even if FONTNAME conform to
	XLFD, if it specifies other fields than family and registry,
	return FONTANME.  New argument FORCE if nonzero cancel that
	feature.
	(fontset_font_pattern): Call font_family_registry with FORCE 1 for
	a signle byte character.  Don't set FAMILY part to nil here.  It
	is handled by the caller choose_face_font.
	(Fnew_fontset): Call font_family_registry with FORCE 0.
	(Fset_fontset_font): Likewise.

109 110 111 112 113
2001-01-27  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (display_line): Don't treat a newline as fitting
	on the line.

Gerd Moellmann's avatar
Gerd Moellmann committed
114 115
2001-01-26  Gerd Moellmann  <gerd@gnu.org>

116 117 118 119
	* window.c (size_window): Set the window's orig_top to nil when
	changing heights, so that a future shrink_mini_window won't
	restore a bogus height.

120 121 122
	* frame.c (do_switch_frame): If selected frame has a mini-window,
	resize that to exact size.

123 124
	* dispnew.c (adjust_glyph_matrix): Always clear desired matrices.

Gerd Moellmann's avatar
Gerd Moellmann committed
125 126 127
	* xdisp.c (display_line): Simplify check for glyphs fitting
	entirely in the line.

Gerd Moellmann's avatar
Gerd Moellmann committed
128 129
	* xfns.c (xic_style): New variable.
	(create_frame_xic): Move static variable to global scope for
130
	the case that `static' gets defined away.
Gerd Moellmann's avatar
Gerd Moellmann committed
131

Kenichi Handa's avatar
Kenichi Handa committed
132 133 134 135 136 137 138 139 140
2001-01-26  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (decode_coding): Set a flag for inhibiting
	inconsistent eol.
	(code_convert_region): Always set saved_coding_symbol.
	(decode_coding_string): Likewise.  Update coding->symbol when we
	encounter a inconsistent eol by the same way as
	code_convert_region.

Gerd Moellmann's avatar
Gerd Moellmann committed
141 142
2001-01-25  Gerd Moellmann  <gerd@gnu.org>

143 144 145 146 147 148 149 150 151 152 153 154 155
	* xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
	XClearArea.

	* xterm.c (x_after_update_window_line): Don't clear if frame's
	internal border width is zero.
	(x_clear_area): New function.
	(x_after_update_window_line, x_clear_end_of_line)
	(x_scroll_bar_create, x_scroll_bar_set_handle)
	(XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
	instead of XClearArea.

	* xterm.h (x_clear_area): Add prototype.

Gerd Moellmann's avatar
Gerd Moellmann committed
156 157 158
	* xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
	which doesn't seem necessary anymore with Lesstif 0.92.

Dave Love's avatar
Dave Love committed
159 160
2001-01-25  Dave Love  <fx@gnu.org>

Dave Love's avatar
Dave Love committed
161 162
	* puresize.h (BASE_PURESIZE): Up to 720000.

Dave Love's avatar
Dave Love committed
163 164
	* keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.

165 166
2001-01-25  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
167 168 169 170
	* xdisp.c (echo_area_display): Don't call redisplay_internal
	when Emacs is shutting down.  We can't run hooks etc. that
	would be necessary to do a redisplay.

171 172
	* lread.c (read_integer): Use type EMACS_INT instead of int.

Eli Zaretskii's avatar
Eli Zaretskii committed
173 174 175 176
2001-01-25  Eli Zaretskii  <eliz@is.elta.co.il>

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

Kenichi Handa's avatar
Kenichi Handa committed
177 178 179 180
2001-01-25  Kenichi Handa  <handa@etl.go.jp>

	* ccl.h (sturct ccl_program): New member suppress_error.

181
	* ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
Kenichi Handa's avatar
Kenichi Handa committed
182 183 184 185 186 187 188 189 190 191
	insert error message to the output.
	(setup_ccl_program): Initialize ccl->suppress_error to 0.

	* coding.h (struct coding_system): New member suppress_error.

	* coding.c (ccl_coding_driver): Setup ccl->suppress_error.
	(Fset_terminal_coding_system_internal): Set the member
	suppress_error to 1.
	(Fset_safe_terminal_coding_system_internal): Likewise.

Stefan Monnier's avatar
Stefan Monnier committed
192 193 194 195 196
2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>

	* regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
	as if it was a `charset'.

197 198 199 200 201 202
2001-01-24  Gerd Moellmann  <gerd@gnu.org>

	* keymap.c (Fwhere_is_internal): Don't nreverse the cached
	value in where_is_cache; the next lookup in the cache returns
	something bogus if we do.

Eli Zaretskii's avatar
Eli Zaretskii committed
203 204 205 206 207
2001-01-24  Eli Zaretskii  <eliz@is.elta.co.il>

	* xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
	if HAVE_WINDOW_SYSTEM isn't defined.

208 209
2001-01-24  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
210 211 212
	* fns.c (sweep_weak_table): Fix code taking items out of
	the hash collision chain.  Some cleanup.

213 214 215 216 217 218
	* xterm.c (x_new_font): Don't change a tooltip's size.

	* xfns.c (x_create_tip_frame): Prevent changing the tooltip's
	background color by specifying a color for the default font
	in .Xdefaults.

Kenichi Handa's avatar
Kenichi Handa committed
219 220
2001-01-24  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
221 222 223 224 225 226
	* ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
	a workaround for SunOS 4's cc.
	(CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
	(CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
	(ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
	statement.
Kenichi Handa's avatar
Kenichi Handa committed
227

Gerd Moellmann's avatar
Gerd Moellmann committed
228 229 230 231 232 233 234 235
2001-01-23  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (x_set_window_size_1): New function extracted from
	x_set_window_size.
	(x_set_window_size): Use it.
	(x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
	doesn't have a widget, like tooltips.

Eli Zaretskii's avatar
Eli Zaretskii committed
236 237 238 239 240
2001-01-23  Eli Zaretskii  <eliz@is.elta.co.il>

	* window.c (syms_of_window) <scroll-preserve-screen-position>: Doc
	fix.

Kenichi Handa's avatar
Kenichi Handa committed
241 242 243 244 245
2001-01-23  Kenichi Handa  <handa@etl.go.jp>

	* fns.c (Fset_char_table_default): Fix to make sub char-table
	correctly.

246 247
2001-01-22  Gerd Moellmann  <gerd@gnu.org>

248
	* xdisp.c (build_desired_tool_bar_string): Make sure we have
Gerd Moellmann's avatar
Gerd Moellmann committed
249
	a desired tool bar string, even if there are no tool bar
250 251
	items.
	
252 253 254
	* xdisp.c (Ftool_bar_lines_needed): New function.
	(syms_of_xdisp): Defsubr it.

255 256 257
	* editfns.c (Fformat): Don't extend text properties from arguments
	to padding chars in the result.

258 259 260 261
2001-01-20  Eli Zaretskii  <eliz@is.elta.co.il>

	* s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.

262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289
2001-01-20  Andrew Innes  <andrewi@gnu.org>

	* w32term.c (w32_ring_bell): Only support visible bell on w32
	frames.
	(w32_initialize): Don't set term hooks that aren't actually needed
	in windowed mode.

	* xfaces.c (realize_default_face):
	(realize_face):
	(realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.

	* xdisp.c (handle_single_display_prop): Remove references to
	FRAME_W32_CONSOLE_P.

	* dispnew.c (Fredraw_frame): Remove reference to
	FRAME_W32_CONSOLE_P.

	* frame.h (output_method): Remove output_w32_console method.
	(FRAME_W32_CONSOLE_P): Remove macro.

	* frame.c (Qw32_console): Remove variable.
	(Fframep): Remove references to it.
	(syms_of_frame): Ditto.
	(Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.

	* term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
	redefinition.

Kenichi Handa's avatar
Kenichi Handa committed
290 291 292 293
2001-01-20  Kenichi Handa  <handa@etl.go.jp>

	* editfns.c (Fformat): Use lisp_string_width instead of strwidth.

Andrew Innes's avatar
Andrew Innes committed
294 295 296 297 298
2001-01-19  Andrew Innes  <andrewi@gnu.org>

	* w32.c (init_environment): Add a version-independent site-lisp
	directory to EMACSLOADPATH, after the version dependent one.

Gerd Moellmann's avatar
Gerd Moellmann committed
299 300
2001-01-19  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
301 302
	* editfns.c (Fbuffer_substring): Doc fix.

Gerd Moellmann's avatar
Gerd Moellmann committed
303 304 305
	* xdisp.c (message_dolog, message2, message2_nolog): Rename
	parameter LEN to NBYTES.

Kenichi Handa's avatar
Kenichi Handa committed
306 307
2001-01-19  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
308 309 310 311 312 313 314 315 316
	* charset.c (strwidth): Use c_string_width.
	(c_string_width): New function.
	(lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
	Caller changed.

	* charset.h (c_string_width, lisp_string_width): Extern them.

	* doprnt.c (doprnt1): Get byte length of Lisp string correctly. 

Kenichi Handa's avatar
Kenichi Handa committed
317 318
	* indent.c (check_composition): Check validity of composition.

Kenichi Handa's avatar
Kenichi Handa committed
319 320 321 322 323 324 325
	* xdisp.c (store_frame_title): Pay attention to width of non-ASCII
	characters by calling c_string_width.
	(x_consider_frame_title): Get byte length of frame tile string
	correctly.
	(display_mode_element): Pay attention to width of non-ASCII
	characters by calling strwidth.

326 327
2001-01-18  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
328 329 330 331 332 333 334
	* xfns.c (Qcancel_timer): New variable.
	(syms_of_xfns): Initialize and staticpro it.
	(Fx_hide_tip, Fx_show_tip): Use it.
	(Fx_show_tip): Make sure to set tip_timer to nil when canceling
	the timer.
	(toplevel): Lisp code for generating parts of syms_of_xfns removed.

Gerd Moellmann's avatar
Gerd Moellmann committed
335 336 337 338
	* window.c (Fwindow_live_p): Use WINDOW_LIVE_P.

	* window.h (WINDOW_LIVE_P): New macro.

339 340 341 342
	* window.c (window_size_fixed): New variable.
	(syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
	the doc string.

343 344 345 346 347 348
	* eval.c (specbind): If binding a per-buffer variable which
	doesn't have a buffer-local value in the current buffer, change
	the global value by changing the value of the symbol bound in all
	buffers not having their own value, to make it consistent with
	what happens with other buffer-local variables.

349 350 351 352 353
	* xterm.c (x_initialize): Set char_ins_del_ok to 1.

	* xdisp.c (forward_to_next_line_start): Stop at end of buffer
	when searching for a newline.

Kenichi Handa's avatar
Kenichi Handa committed
354 355 356 357
2001-01-18  Kenichi Handa  <handa@etl.go.jp>

	* xdisp.c (display_string): Fix previous change.

358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380
2001-01-18  Jason Rumney  <jasonr@gnu.org>

	* w32term.c (x_produce_stretch_glyph): Only use Qspace when
	GLYPH_DEBUG is defined.
	(x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
	true for images with `:ascent 100'.
	(x_set_mouse_face_gc): If the last used mouse face has gone in the
	meantime, use face MOUSE_FACE_ID.
	If first glyph isn't a character glyph, use the ASCII NUL
	character to determine the face.
	(expose_area): Do not treat left margin specially.
	(note_mode_line_highlight): If no local_map, check global keymap.
	(note_mouse_highlight): Initialize overlay.
	(clear_mouse_face): Don't return if tip_frame is
	non-nil.
	(show_scroll_bars): Remove unused function.
	(w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
	(x_draw_bar_cursor): Remove extra test for out of bounds cursor.
	Clip to row.
	(x_erase_phys_cursor): Don't apply XWINDOW to variable that may be
	nil.
	(x_free_frame_resources): Unload relief colors.

381 382
2001-01-17  Gerd Moellmann  <gerd@gnu.org>

383 384 385 386 387
	* xdisp.c (forward_to_next_line_start): Avoid calling
	get_next_display_element when the newline is already found.  This
	may change the iterator's position, when its current position is
	equal to the iterator's stop_charpos.

388 389 390
	* dispnew.c (direct_output_for_insert): If char_ins_del_ok is
	zero, use this method only at the end of a line.

391 392 393 394
	* xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the 
	call to x_list_fonts.  Call x_list_fonts with SIZE -1 only
	if SCALABLE_FONTS_P is set.
	
395 396 397
	* xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
	so that scalable fonts are included.

398 399 400 401 402 403 404
	* xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
	In the cache, use a key containing the information if scalable
	fonts are included.
	(x_load_font): Adapt to change of keys in the font cache.

2001-01-17  Kim F. Storm  <storm@filanet.dk>
	
405 406 407
	* xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
	XListFonts to take advantage of font caching.

408 409 410 411
	* xterm.c (x_list_fonts): Ensure caching font information when
	called for a null frame, which is the case frequently when Emacs
	starts.

Gerd Moellmann's avatar
Gerd Moellmann committed
412 413
2001-01-17  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
414 415 416 417 418 419 420
	* xfns.c (QCconversion): Replaces QCalgorithm.

	* w32fns.c (QCconversion): Replaces QCalgorithm.  Update copyright.

	* xdisp.c (build_desired_tool_bar_string): Use :conversion instead
	of :algorithm.
	
Gerd Moellmann's avatar
Gerd Moellmann committed
421 422 423
	* xdisp.c (redisplay_tool_bar): Change tool bar's height when
	not everything could be displayed.

Gerd Moellmann's avatar
Gerd Moellmann committed
424 425
	* line.h, x-list-font.c: Files removed because unused.

426 427 428 429 430 431
2001-01-17  Andrew Innes  <andrewi@gnu.org>

	* dired.c (directory_files_internal): Convert result from readdir
	to a unibyte string initially, to avoid possible misinterpretation
	of some bytes as the internal form of Emacs characters.

Kenichi Handa's avatar
Kenichi Handa committed
432 433 434 435 436
2001-01-17  Kenichi Handa  <handa@etl.go.jp>

	* fns.c (concat): Be sure to avoid putting the same `composition'
	property on the adjacent regions.

Gerd Moellmann's avatar
Gerd Moellmann committed
437 438
2001-01-16  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
439 440 441 442 443
	* window.c (Fset_window_hscroll): Don't set window's min_hscroll
	here.
	(Fscroll_right, Fscroll_left): Set it here instead, if called
	interactively.

444 445 446
	* buffer.c (Fset_buffer_modified_p): Set buffer's
	prevent_redisplay_optimizations_p flag.

Gerd Moellmann's avatar
Gerd Moellmann committed
447 448 449 450 451 452 453 454 455 456
	* dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
	* sysdep.c, vmsproc.c, xselect.c: Call
	redisplay_preserve_echo_area with additional arg.

	* dispextern.h, lisp.h (redisplay_preserve_echo_area): Change
	prototype.
	
	* xdisp.c (redisplay_preserve_echo_area): Add parameter
	FROM_WHERE, for debugging.

Kenichi Handa's avatar
Kenichi Handa committed
457 458 459 460
2001-01-16  Kenichi Handa  <handa@etl.go.jp>

	* ccl.c (Fregister_ccl_program): Handle the return value of
	resolve_symbol_ccl_program correctly.
Kenichi Handa's avatar
Kenichi Handa committed
461 462
	(CCL_Extension): Fix typo (originally CCL_Extention).  Caller
	changed.
Kenichi Handa's avatar
Kenichi Handa committed
463

464 465
2001-01-15  Gerd Moellmann  <gerd@gnu.org>

466 467 468
	* xterm.c (x_set_mouse_face_gc): If the last used mouse face
	has gone in the meantime, use face MOUSE_FACE_ID.
	
469 470 471 472
	* xterm.c (x_connection_closed) [USE_X_TOOLKIT]: If
	x_display_info_for_display returns null, don't try to close
	the display; we didn't open it.

473 474 475 476 477 478 479 480
	* dispnew.c (save_or_restore_current_matrices): Function removed.
	(save_current_matrix, restore_current_matrix): New functions.
	(adjust_frame_glyphs_for_frame_redisplay): Use them to save and
	restore the frame's current matrix.  Due to the glyph pointer
	setup done in adjust_glyph_matrix, there is no easy way to make
	saving the current matrix in the desired matrix generally correct,
	so don't try it.

Kenichi Handa's avatar
Kenichi Handa committed
481 482 483 484 485
2001-01-15  Kenichi Handa  <handa@etl.go.jp>

	* xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
	truncation glyphs.
	(display_line): Optimize for wide characters.
486
	(display_string): Don't try to display a multi-column character
Kenichi Handa's avatar
Kenichi Handa committed
487 488 489
	partially.  On ttys, produce more than one truncation glyph for
	multi-column characters that don't fit on the line.

Kenichi Handa's avatar
Kenichi Handa committed
490 491 492 493 494
2001-01-13  Kenichi Handa  <handa@etl.go.jp>

	* md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]: Define
	it instead of WORDS_BIGENDIAN.  Caller changed.

495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523
2001-01-13  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (Fimage_size, image_ascent, lookup_image)
	(IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
	(xbm_format, xpm_format, pbm_format, png_format, jpeg_format) 
	(tiff_format, gif_format, gs_format): Adapt to change of image
	margins.

	* w32term.c (x_produce_image_glyph, x_draw_image_foreground) 
	(x_draw_image_relief, x_draw_image_foreground_1) 
	(x_draw_image_glyph_string): Adapt to change of image margins.

	* w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
	variables.

	* w32bdf.c (search_file_line, get_cached_font_char)
	(cache_char_offset, create_offscreen_bitmap): Remove unused variables.

	* w32inevt.c (w32_console_toggle_lock_key): Add parentheses.

	* w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
	(w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
	(Fw32_send_sys_command): Remove unused variables.
	(w32_msg_pump): Add parentheses.

	* w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
	(x_new_fontset, x_calc_absolute_position, x_iconify_frame):
	Add parentheses.

524 525
2001-01-12  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549
	* xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
	(build_desired_tool_bar_string): Handle Vtool_bar_button_margin
	being a pair of margins.
	(syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
	to DEFVAR_LISP.  Extend doc.

	* xfns.c (Fimage_size, image_ascent): Adapt to the change of image
	margins.
	(lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
	pair of integers `(X . Y)', use X for the horizontal and Y for the
	vertical margin.
	(IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
	(parse_image_spec): Check it.
	(xbm_format, xpm_format, pbm_format, png_format, jpeg_format) 
	(tiff_format, gif_format, gs_format): Use
	IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.

	* xterm.c (x_produce_image_glyph, x_draw_image_foreground) 
	(x_draw_image_relief, x_draw_image_foreground_1) 
	(x_draw_image_glyph_string): Adapt to the change of image margins.

	* dispextern.h (struct image): Replace member `margin' with
	`hmargin' and `vmargin'.

Gerd Moellmann's avatar
Gerd Moellmann committed
550 551 552 553 554
	* xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
	and GLYPHS.

	* dispnew.c (update_text_area): Put code which decrements the
	stop position when the row's face extends to the end of the
555
	line in #if 0.
Gerd Moellmann's avatar
Gerd Moellmann committed
556

Gerd Moellmann's avatar
Gerd Moellmann committed
557 558
	* xfns.c (x_set_mouse_color): Fix color allocation.

559 560 561 562 563 564 565 566 567 568
	* keyboard.c: Call get_local_map with new argument list.

	* intervals.c (get_local_map): Change TYPE to Lisp_Object.

	* intervals.h (enum map_property): Removed.
	(get_local_map): Change prototype.

	* keymap.c: Call get_local_map with new argument list.
	(Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.

Gerd Moellmann's avatar
Gerd Moellmann committed
569 570
2001-01-11  Gerd Moellmann  <gerd@gnu.org>

571 572 573 574
	* xdisp.c (build_desired_tool_bar_string): Correct the computation
	of the size needed for the tool bar string.  For the last image,
	use a `display' property that reaches to the end of the string.

Gerd Moellmann's avatar
Gerd Moellmann committed
575 576 577 578 579 580
	* xselect.c (selection_request_dpyinfo): New variable.
	(x_handle_selection_request): Set it.
	(x_selection_request_lisp_error): Don't call
	x_decline_selection_request if selection request's display has
	been closed.

Gerd Moellmann's avatar
Gerd Moellmann committed
581 582 583
	* xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]: Do
	the unregister_colors before calling XFreeColors.

Gerd Moellmann's avatar
Gerd Moellmann committed
584 585 586 587 588
2001-01-10  Dave Love  <fx@gnu.org>

	* Makefile.in (${etc}DOC): Depend on ${shortlisp} and
	${SOME_MACHINE_LISP}, not ${lisp}.

589 590
2001-01-10  Gerd Moellmann  <gerd@gnu.org>

591
	* xdisp.c (display_line): On ttys, produce more than one
Gerd Moellmann's avatar
Gerd Moellmann committed
592
	truncation glyph for multi-column characters that don't fit on the
593 594
	line.

Gerd Moellmann's avatar
Gerd Moellmann committed
595 596
	* xselect.c (x_reply_selection_request): Add a comment.

597 598 599
	* xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
	XkbGetNames instead of XkbGetKeyboard.

Dave Love's avatar
Dave Love committed
600 601 602 603
2001-01-10  Dave Love  <fx@gnu.org>

	* sysdep.c (random): Revert the declaration.

604 605
2001-01-09  Gerd Moellmann  <gerd@gnu.org>

606 607 608 609 610 611 612 613 614 615 616 617 618 619
	* lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]: Call
	function string_bytes.
	(GC_CHECK_STRING_BYTES): Moved here from alloc.c.

	* alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
	(check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
	(check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
	(allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
	the current sblock.
	(mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
	(gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
	after sweeping strings, and at the end.
	(GC_CHECK_STRING_BYTES): Moved to lisp.h.

620 621 622 623 624 625 626 627 628 629 630 631 632 633
	* alloc.c (Fgarbage_collect): Use a record_unwind_protect to
	ensure that pop_message is called.

	* keyboard.c (Fexecute_extended_command): Use a
	record_unwind_protect to ensure that pop_message is called.

	* lisp.h (push_message_unwind): Add prototype.

	* xdisp.c (push_message_unwind): New function.

	* fileio.c (do_auto_save_unwind): Do the pop_message here
	instead of in Fdo_auto_save.
	(Fdo_auto_save): Don't call pop_message.

634 635 636 637 638
2001-01-08  Ken Raeburn  <raeburn@gnu.org>

	* xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
	in inner block.

Gerd Moellmann's avatar
Gerd Moellmann committed
639 640
2001-01-08  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
641 642 643
	* window.c (window_scroll_pixel_based): Adjust glyph matrices
	when increasing window's vscroll.

Gerd Moellmann's avatar
Gerd Moellmann committed
644 645 646 647 648 649
	* macros.c (Qkbd_macro_termination_hook): New variable.
	(syms_of_macros): Initialize and staticpro it.
	(pop_kbd_macro): Run kbd-macro-termination-hook.

	* xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.

Dave Love's avatar
Dave Love committed
650
2001-01-07  Dave Love  <fx@gnu.org>
651 652 653 654

	* keyboard.c (Fread_key_sequence_vector):  Avoid newline in
	arglist, for documentation's sake.

Andrew Innes's avatar
Andrew Innes committed
655 656 657 658 659
2001-01-06  Andrew Innes  <andrewi@gnu.org>

	* makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
	of *.pdb.

660 661 662 663 664 665
2001-01-05  Andrew Innes  <andrewi@gnu.org>

	* term.c (update_end): Don't check updating_frame; for some reason
	this can be 0 sometimes, such as after dismissing a popup menu,
	and isn't necessary given the explicit frame argument.

666 667 668 669 670
2001-01-05  Gerd Moellmann  <gerd@gnu.org>

	* sysdep.c: Don't prototype srandom; it takes an unsigned argument
	 on some systems, and an unsigned long on others, like FreeBSD 4.1.

Gerd Moellmann's avatar
Gerd Moellmann committed
671 672 673 674 675 676 677 678 679 680 681 682 683
2001-01-04  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (clear_mouse_face): Don't return if tip_frame is
	non-nil.

	* xfns.c (x_create_tip_frame): Preserve the value of
	face_change_count around the creation of the tip frame.
	
	* xfns.c (last_show_tip_args): New variable.
	(compute_tip_xy): New function.
	(Fx_show_tip): Reuse an existing tip frame, if possible.
	(syms_of_xfns): Initialize and staticpro last_show_tip_args.

Dave Love's avatar
Dave Love committed
684 685
2001-01-04  Dave Love  <fx@gnu.org>

686 687
	* editfns.c (Fformat): Doc fix.

Dave Love's avatar
Dave Love committed
688 689 690 691 692 693 694 695
	* systime.h (set_file_times): Prototype.

	* widget.h (EmacsFrameSetCharSize_): Prototype.

	* sysdep.c (random, srandom): Declare explicitly.

	* dispextern.h (move_it_vertically_backward): Declare.

696 697
2001-01-04  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
698 699 700
	* xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
	like in Fx_create_frame.

701 702 703
	* xfaces.c (set_font_frame_param): Don't do anything for
	non-graphical frames.

704 705 706 707 708 709 710 711
	* window.c (Fdelete_other_windows): Set window's window_end_valid
	to nil when changing the window's start.  Don't change the
	window's start when its top position hasn't changed.  If we do,
	this will set the window's optional_new_start, which act's like a
	force_start during redisplay with C-x 1 M-> under particular
	circumstances (see report from Per Starback to emacs-pretest-bug
	from 2000-12-13.).

Gerd Moellmann's avatar
Gerd Moellmann committed
712 713
2001-01-03  Gerd Moellmann  <gerd@gnu.org>

714 715 716 717
	* xdisp.c (forward_to_next_line_start): Reset it->c if taking the
	short cut at the start of the function.  Add an assertion.
	(reseat_at_next_visible_line_start): Add an assertion.

718 719 720 721 722 723 724 725
	* window.c (Frecenter): When changing the window start, set the
	window's window_end_valid to nil.
	(Fwindow_end): Fix window-end computation when UPDATE is non-nil.

	* dispextern.h (move_it_past_eol): Add prototype.

	* xdisp.c (move_it_past_eol): New function.

Gerd Moellmann's avatar
Gerd Moellmann committed
726 727 728 729 730 731 732
	* window.c (Fwindow_end): Doc fix.

2001-01-03  Dave Love  <fx@gnu.org>

	* dired.c (Ffile_attributes): Fix last change, removing BSD4_3
	kluge.

733 734 735 736 737 738
2001-01-03  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (try_window_reusing_current_matrix): Fix bug setting
	the enabled_p flag of the glyph row at window_end_vpos to 0.
	(handle_single_display_prop): Fix last change.

739 740 741 742
2001-01-02  Richard M. Stallman  <rms@caffeine.ai.mit.edu>

	* window.c (Frecenter): Doc fix.

Andrew Innes's avatar
Andrew Innes committed
743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789
2001-01-02  Andrew Innes  <andrewi@gnu.org>

	* term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.

	* frame.h (output_method): Add output_w32_console method.
	(FRAME_W32_CONSOLE_P): New macro.

	* frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
	use output_w32_console method.
	(Qw32_console): New Lisp_Object.
	(Fframep): Return it.
	(syms_of_frame): Init it.
	(Fframe_parameters): Report w32console as font for w32_console
	frames.

	* xfaces.c (realize_default_face): Set face foreground and
	background to unspecified for w32_console frames.
	(realize_face): Realize face cache for w32_console frames.
	(realize_tty_face): Accept w32_console frames.

	* xdisp.c (handle_single_display_prop): Return if frame is
	w32_console.
	(init_iterator) [WINDOWSNT]: Initialize frame face cache if
	necessary, even if running interactively.

	* dispnew.c (Fredraw_frame): Call set_terminal_modes for
	w32_console frames.

	* w32term.c (x_update_begin): 
	(x_update_end): 
	(x_clear_frame): 
	(x_ins_del_lines): 
	(x_change_line_highlight): 
	(x_delete_glyphs): 
	(w32_ring_bell): 
	(x_update_begin): 
	(x_update_end): 
	(w32_reassert_line_highlight): 
	(w32_frame_rehighlight): 
	(w32_frame_raise_lower): Do nothing if not w32 frame.

	* w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.

	* w32fns.c (Fx_display_color_cells): Determine correct value, when
	system doesn't tell us directly.
	(Fx_display_visual_class): Implement properly.

Gerd Moellmann's avatar
Gerd Moellmann committed
790 791 792 793 794 795
2001-01-02  Gerd Moellmann  <gerd@gnu.org>

	* window.c (Frecenter): Handle centering in graphical frames
	specially.  Centering on the basis of line counts doesn't work
	reliably with variable-height lines.
	
Eli Zaretskii's avatar
Eli Zaretskii committed
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 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920
2001-01-02  Eli Zaretskii  <eliz@is.elta.co.il>

	* widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
	and al[].

	* composite.c (run_composition_function): Remove unused variable
	`val'.
	(update_compositions): Remove unused variable `hook'.

	* intervals.c (get_local_map): Remove unused variable `tem'.

	* doprnt.c (doprnt1): Remove unused variable `size'.

	* fns.c (Flength): Remove unused variable `tail'.
	(Fdelete): Remove unused variable `size'.

	* editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
	and `gcpro2'.

	* doc.c (Fsnarf_documentation): Remove unused variables `fun' and
	`tem'.

	* data.c (find_symbol_value): Remove extra 3rd argument in the
	call to swap_in_symval_forwarding.

	* undo.c (Fprimitive_undo): Remove unused block-scope variable
	`end'.

	* search.c (shrink_regexp_cache): Remove unused variable `cpp'.
	(trivial_regexp_p): Remove unused variable `c'.
	(boyer_moore): Remove unused variable `k'.

	* indent.c (current_column): Remove unused variable `stopchar'.
	(Fcompute_motion): Remove unused variable `contin'.

	* casefiddle.c (casify_object): Remove unused variable `tolen'.

	* dired.c (directory_files_internal): Fix a typo in a comment.
	Remove an unused variable `handler'.
	(file_name_completion): Remove unused function-scope variable
	`dp'.
	(Ffile_attributes) <dirname, sdir>: Make declarations conditioned
	on BSD4_2.

	* fileio.c (e_write): Remove unused variable
	`require_encoding_p'.

	* marker.c (Fmarker_position): Remove unused variables `pos', `i',
	and `buf'.
	(Fmarker_insertion_type): Remove unused variable `buf'.

	* insdel.c (make_gap): Remove unused variable `result'.

	* keyboard.c (record_char): Remove unused function-scope variable
	`help'.
	(kbd_buffer_get_event): Remove unused block-scope variable `idx'.
	(menu_bar_items): Remove unused function-scope variable `tem'.

	* fontset.c (fontset_ref): Remove unused variable `i'.
	(fontset_set): Remove unused variables `j' and `tmp'.
	(make_fontset): Remove unused variables `i', `j', `elt' and
	`base_elt'.
	(make_fontset_for_ascii_face): Remove unused variable `name'.
	(fs_load_font): Remove unused variable `font_idx'.
	(fs_query_fontset): Remove unused function-local variable
	`fontset'.
	(list_fontsets): Remove unused variable `tail'.
	(Fnew_fontset): Remove unused variables `family' and `registry'.
	(accumulate_font_info): Remove unused variable `tmp'.
	(Ffontset_font): Remove unused variable `id'.
	(syms_of_fontset): Remove unused variable `i'.

	* xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
	to x_term_init.
	(lookup_image): Remove unused variable `file'.
	(xbm_load): Remove unused variables `bitmap_data', `height', and
	`width'.  Remove function-local variable `i', leave the
	block-local one.
	(gif_load): Remove unused variable `inc'.

	* xterm.c (XTread_socket): Remove unused variables `p' and
	`pend'.
	(XTread_socket) <LeaveNotify>: Remove unused variable `frame',
	leave only the one in the inner block.

	* xfaces.c (face_fontset, realize_default_face): Remove unused
	variable `fontset'.
	(face_at_buffer_position): Remove unused variable `multibyte_p'.

	* term.c (encode_terminal_code): Remove unused variable `c'.

	* ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
	char *' instead of `char *'.

	* category.c (Fcategory_docstring): Remove unused variable `doc'.
	(Fget_unused_category): Remove unused variable
	`docstring_vector'.
	(Fchar_category_set): Remove unused variables `val', `charset',
	`c1' and `c2'.

	* coding.c (detect_coding_iso2022, setup_coding_system): Remove
	unused variable `i'.
	(detect_coding_mask): Remove unused variable `idx'.
	(detect_coding): Remove unused variable `i'.
	(ccl_coding_driver): Remove unused variable `result'.
	(run_pre_post_conversion_on_str): Remove unused variable `prev'.
	(decode_coding_string): Remove unused variables `to' and
	`gcpro1'.
	(encode_coding_string): Remove unused variables `gcpro1' and
	`saved_coding_symbol'.
	(Ffind_coding_systems_region_internal): Remove function-local
	variable args[], leave only the block-local one.
	(code_convert_region1): Remove unused variable `len'.

	* charset.c (char_printable_p): Remove unused variable `chars'.
	(Fsplit_char, Fchar_bytes): Remove unused variable `val'.
	(str_to_multibyte): Remove unused variable `c'.

	* window.c (size_window): Remove block-local variable `min_size'.

	* xdisp.c (make_cursor_line_fully_visible): Remove unused variable
	`header_line_height'.
	(append_space, extend_face_to_end_of_line): Declare `saved_what'
	enum display_element_type.

Gerd Moellmann's avatar
Gerd Moellmann committed
921 922
2001-01-02  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
923 924 925 926
	* xterm.c (x_connection_closed): Catch X errors around all
	statements that call X.  Save away the error message in a local
	copy.
	
Gerd Moellmann's avatar
Gerd Moellmann committed
927 928 929
	* xterm.c (x_connection_closed): Set handling_signal to 0 at
	the start.

930 931 932
	* xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
	in or at the start of invisible text.

Gerd Moellmann's avatar
Gerd Moellmann committed
933 934
	* dispnew.c (update_window): Don't check_current_matrix_flags.

Jason Rumney's avatar
Jason Rumney committed
935 936 937 938 939
2001-01-01  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (x_figure_window_size): Do not allow new_height and
	new_width of frame to override specified values.

Kenichi Handa's avatar
Kenichi Handa committed
940 941
2000-12-30  Kenichi Handa  <handa@etl.go.jp>

942 943
	* composite.c (find_composition): Fix a code for searching
	backward.
Kenichi Handa's avatar
Kenichi Handa committed
944

Gerd Moellmann's avatar
Gerd Moellmann committed
945 946
2000-12-29  Gerd Moellmann  <gerd@gnu.org>

947 948 949 950 951 952 953 954 955 956
	* dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New
	function.
	(update_window) [GLYPH_DEBUG]: Call it.
	(scrolling_window): Prevent including current rows which are below
	what's displayed in the window.

	* xdisp.c (try_window_reusing_current_matrix)
	<new start <= old start>:  Disable rows in the current matrix
	which are below the window after scrolling.
	
Gerd Moellmann's avatar
Gerd Moellmann committed
957 958 959 960
	* xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
	is zero.  It's not worth the complexity.
	(invisible_text_between_p): Put in #if 0 because unused.

961 962
2000-12-28  Gerd Moellmann  <gerd@gnu.org>

963 964 965
	* xfns.c (Fx_backspace_delete_keys_p): Check library and server
	XKB versions.  Call XkbFreeKeyboard with 2nd arg 0.

966 967 968 969 970 971 972 973 974 975 976 977
	* keyboard.c (echo_char): If C is an integer, always call
	push_key_description.  Former code could signal an invalid
	character error.

	* keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
	If set, print multibyte text.
	(Fsingle_key_description): Call push_key_description with
	FORCE_MULTIBYTE set.
	(describe_buffer_bindings): Likewise.

	* lisp.h (push_key_description): Add prototype.

978 979 980
	* xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
	around the call to redisplay_internal.

981 982
	* xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.

983 984
	* dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.

Kenichi Handa's avatar
Kenichi Handa committed
985 986 987 988 989 990 991 992 993 994 995
2000-12-28  Kenichi Handa  <handa@etl.go.jp>

	* ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
	(ccl_driver): New local variable `extra_bytes'.

	* ccl.h (struct ccl_spec): New member eight_bit_carryover.

	* coding.c (setup_coding_system): Initialize
	coding->spec.ccl.eight_bit_carryover.
	(ccl_coding_driver): Pay attention to carried over 8-bit bytes.

Kenichi Handa's avatar
Kenichi Handa committed
996 997 998 999 1000 1001 1002 1003 1004 1005
2000-12-28  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (SAFE_ONE_MORE_BYTE): New macro.
	(DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
	(DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
	(decode_composition_emacs_mule): New function.
	(decode_coding_emacs_mule): Decode composition sequence by calling
	decode_composition_emacs_mule.
	(ENCODE_COMPOSITION_EMACS_MULE): New macro.
	(encode_coding_emacs_mule): Changed from macro to function.  If
1006
	a text contains compositions, encode them correctly.
Kenichi Handa's avatar
Kenichi Handa committed
1007 1008 1009
	(setup_coding_system): Set coding->commong_flags for emacs-mule so
	that decoding and encoding are required.

Gerd Moellmann's avatar
Gerd Moellmann committed
1010 1011
2000-12-27  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1012 1013 1014 1015 1016
	* xfaces.c (PT_PER_INCH): New macro.
	(xlfd_point_size): Compute real point size from font's pixel size.
	(pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
	instead of 72.

1017 1018 1019
	* .gdbinit: Comment out the line pointing to the Lesstif source
	directory.

1020 1021 1022
	* window.c (Frecenter): Use displayed_window_lines instead
	of window_internal_height.

Gerd Moellmann's avatar
Gerd Moellmann committed
1023 1024 1025 1026 1027 1028 1029 1030
	* xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
	instead of x-toolkit-scroll-bars-p.
	(Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.

	* w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
	instead of x-toolkit-scroll-bars-p.
	(Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
	
Gerd Moellmann's avatar
Gerd Moellmann committed
1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043
	* dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
	(REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
	(redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]: New
	variables.
	(add_window_display_history, add_frame_display_history) 
	(Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
	(build_frame_matrix_from_leaf_window): Remove unused code.
	(build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
	redisplay history.
	(update_frame) [GLYPH_DEBUG]: Add to redisplay history.
	(update_window) [GLYPH_DEBUG]: Likewise.
	(syms_of_display): Defsubr dump-redisplay-history.

1044 1045
2000-12-23  Gerd Moellmann  <gerd@gnu.org>

1046 1047 1048 1049
	* keyboard.c (echo_prompt): Always set current_kboard->echoptr to
	the end of the prompt.  Set echo_after_prompt to the offset
	of echoptr in echobuf.

1050 1051 1052 1053
	* xdisp.c (init_from_display_pos): Pop until the iterator's
	stack is empty; there may be frames for stretch or images
	on the stack.

1054 1055 1056 1057 1058
	* dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
	(save_or_restore_current_matrix): New function for the same
	purpose, but more efficient.
	(adjust_frame_glyphs_for_frame_redisplay): Use it.

1059 1060 1061 1062
2000-12-23  Eli Zaretskii  <eliz@is.elta.co.il>

	* xdisp.c (syms_of_xdisp): Fix last change.

Gerd Moellmann's avatar
Gerd Moellmann committed
1063 1064 1065 1066 1067 1068 1069 1070 1071
2000-12-23  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (syms_of_xdisp): Doc fix.

	* xdisp.c (redisplay_window): Remove label restore_buffers;
	use finish_scroll_bars instead to make sure that scroll bars
	are redeemed.  If we don't do this, flickering can result from
	scroll bars being destroyed and recreated.

1072 1073 1074 1075 1076 1077 1078
2000-12-22  Jason Rumney  <jasonr@gnu.org>

	* w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
	in the wrong colors when the foreground is not black.
	(expose_window): Don't redraw the window that's currently being
	updated.

1079 1080
2000-12-22  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1081 1082 1083 1084
	* window.c (size_window): When setting the window's too_small_ok
	flag, compare old size with minimum size depending on WIDTH_P,
	don't compare with window_min_width.
	
1085 1086 1087 1088 1089 1090
	* window.c (delete_window): Simplify somewhat.
	(Fset_window_configuration): Don't SET_FRAME_GARBAGED after
	freeing window matrices.  The flag windows_or_buffers_changed is
	set, so the next redisplay will consider all windows; this should
	suffice.

Kenichi Handa's avatar
Kenichi Handa committed
1091 1092 1093 1094 1095 1096 1097 1098 1099 1100
2000-12-22  Kenichi Handa  <handa@etl.go.jp>

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

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

	* ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
	(CCL_READ_CHAR): Handle EOL conversion here.
	(ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.

Gerd Moellmann's avatar
Gerd Moellmann committed
1101 1102
2000-12-21  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114
	* xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg
	GLYPHS.

	* dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
	otherwise tabs of different size compare equal.

	* callint.c (Fcall_interactively): Prevent a compiler warning.

	* print.c (print_unwind): Return nil.
	(PRINTDECLARE): Initialize all local variables.
	(print_preprocess): Add a default case.

Gerd Moellmann's avatar
Gerd Moellmann committed
1115 1116 1117 1118
	* lisp.h (Qinhibit_point_motion_hooks): Declare extern.

	* undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.

Gerd Moellmann's avatar
Gerd Moellmann committed
1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130
	* window.c (delete_window, Fsplit_window) 
	(Fset_window_configuration): Calls to ensure_frame_matrix removed.

	* dispextern.h (ensure_frame_matrix): Function declaration removed.

	* dispnew.c (ensure_frame_matrix): Removed.
	(save_frame_matrix, restore_frame_matrix): New functions.
	(adjust_frame_glyphs_for_frame_redisplay): Use them.

	* xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
	[GLYPH_DEBUG]: Extended to dump glyphs in short form.

1131 1132 1133 1134 1135 1136 1137 1138 1139
2000-12-21  Andrew Innes  <andrewi@gnu.org>

	* w32term.c (x_update_begin): Regenerate the palette here, rather
	than for each window.

	* w32xfns.c (select_palette): Avoid calling SelectPalette if
	palette is NULL, since this corrupts memory!  Also get
	display_info reference from frame.

Jason Rumney's avatar
Jason Rumney committed
1140 1141 1142 1143 1144 1145
2000-12-21  Jason Rumney  <jasonr@gnu.org>

	* w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.

	* w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
	to avoid returning without releasing it.
1146

Kenichi Handa's avatar
Kenichi Handa committed
1147 1148
2000-12-21  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
1149 1150 1151
	* keymap.c (push_key_description): Don't convert eight-bit-control
	and eight-bit-graphic to multibyte character.

Kenichi Handa's avatar
Kenichi Handa committed
1152 1153 1154 1155
	* charset.c (Fmake_char_internal): If CHARSET doesn't have a
	generic character and CODE1 is nil, return the smallest character
	in CHARSET.

Dave Love's avatar
Dave Love committed
1156 1157 1158 1159
2000-12-20  Dave Love  <fx@gnu.org>

	* s/osf5-0.h (NSIG): Don't redefine.

1160 1161 1162 1163 1164 1165 1166 1167
2000-12-20  Stefan Monnier  <monnier@cs.yale.edu>

	* keymap.c (where_is_internal): Check ascii_sequence_p rather than
	excluding menu-bar and tool-bar.
	(Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
	(menu_item_p): Remove.
	(where_is_internal_1): Don't ignore menu-items.

Gerd Moellmann's avatar
Gerd Moellmann committed
1168 1169
2000-12-20  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186
	* xdisp.c (hscroll_window_tree): Take window's min_hscroll
	into account.

	* window.c (make_window): Initialize window's min_hscroll.
	(Fset_window_hscroll): Set window's hscroll and min_hscroll.
	(set_window_buffer, temp_output_buffer_show): Set min_hscroll
	to zero.
	(struct saved_window): New member min_hscroll.
	(SAVED_WINDOW_VECTOR_SIZE): Set to 17.
	(Fset_window_configuration): Set window's min_hscroll.
	(save_window_save): Save window's min_hscroll.
	(compare_window_configurations): Compare min_hscroll values.

	* window.h (struct window): New member min_hscroll.

	* keyboard.c (echo_prompt): Prevent a compiler warning.

1187 1188 1189 1190
	* xdisp.c (try_cursor_movement): Fix last change.  The real
	condition is that PT is at the end of the row, and should
	be displayed at the start of the next row.
	
1191 1192 1193
	* xdisp.c (try_cursor_movement): If we end on a partially
	visible line, end we already decided to scroll, return -1.

Gerd Moellmann's avatar
Gerd Moellmann committed
1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204
	* dispextern.h (ensure_frame_matrix): Add prototype.

	* window.c (delete_window, Fsplit_window)
	(Fset_window_configuration): Call ensure_frame_matrix.

	* dispnew.c (fake_current_matrices, ensure_frame_matrix): New
	functions.
	(adjust_frame_glyphs_for_frame_redisplay): If display has been
	completed, call fake_current_matrices instead of marking frame
	garbaged.

1205 1206 1207 1208
2000-12-20  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.

Eli Zaretskii's avatar
Eli Zaretskii committed
1209 1210 1211 1212
2000-12-19  Eli Zaretskii  <eliz@is.elta.co.il>

	* fns.c (Frequire): Doc fix.

Gerd Moellmann's avatar
Gerd Moellmann committed
1213 1214
2000-12-19  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1215 1216 1217
	* window.c (window_scroll_pixel_based): Don't use
	move_it_vertically.

1218 1219 1220
	* dispnew.c (direct_output_for_insert): Fix check for mini-window
	currently displaying a message.

Gerd Moellmann's avatar
Gerd Moellmann committed
1221 1222 1223 1224
	* bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
	xterm.h.
	(Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.

Andrew Innes's avatar
Andrew Innes committed
1225 1226 1227 1228 1229 1230 1231 1232
2000-12-18  Andrew Innes  <andrewi@gnu.org>

	* w32.c (w32_strerror): New function.

	* w32.h (w32_strerror): New extern.

	* w32fns.c (Fw32_shell_execute): Use it.

Gerd Moellmann's avatar
Gerd Moellmann committed
1233 1234 1235 1236
2000-12-18  Gerd Moellmann  <gerd@gnu.org>

	* s/hpux10.h (_FILE_OFFSET_BITS): Undef again.

Eli Zaretskii's avatar
Eli Zaretskii committed
1237 1238 1239 1240
2000-12-18  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (IT_set_face): Obey inverse_video.

Kenichi Handa's avatar
Kenichi Handa committed
1241 1242 1243 1244
2000-12-18  Kenichi Handa  <handa@etl.go.jp>

	* dired.c (directory_files_internal): Always return decoded filenames.

Gerd Moellmann's avatar
Gerd Moellmann committed
1245 1246
2000-12-18  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1247 1248 1249
	* xterm.c (x_connection_closed): Prevent being called recursively
	because of an error condition in XtCloseDisplay.
	
1250 1251 1252
	* xdisp.c (init_iterator): If noninteractive, and the frame's
	face cache is null, make one.

1253 1254 1255
	* xfns.c (show_busy_cursor): Check for live frames more
	thoroughly.

Gerd Moellmann's avatar
Gerd Moellmann committed
1256 1257 1258
	* process.c (wait_reading_process_input): Check for pending
	input when running timers.

1259 1260 1261 1262 1263
2000-12-18  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (IT_write_glyphs): Compute the glyph face from
	str->face_id.

Kenichi Handa's avatar
Kenichi Handa committed
1264 1265 1266 1267 1268
2000-12-18  Kenichi Handa  <handa@etl.go.jp>

	* process.c (read_process_output): Don't run a filter if the code
	decoder produces nothing but carryover.

Andrew Innes's avatar
Andrew Innes committed
1269 1270 1271 1272 1273 1274 1275 1276 1277 1278
2000-12-17  Andrew Innes  <andrewi@gnu.org>

	* w32.c (sys_rename): Only check errno against EEXIST, and not
	EACCES, when determining whether rename failed because the target
	exists.  This was resulting in indefinite looping on Windows 9x if
	the source file was locked by another process.

	* w32fns.c (Ffile_system_info): New function.
	(syms_of_w32fns): Defsubr it.

Gerd Moellmann's avatar
Gerd Moellmann committed
1279 1280
2000-12-17  Gerd Moellmann  <gerd@gnu.org>

1281 1282 1283
	* window.c (coordinates_in_window): Fix computation for
	position on vertical line between mode lines.

Gerd Moellmann's avatar
Gerd Moellmann committed
1284 1285 1286 1287 1288
	* xfns.c (unwind_create_frame): Return t if frame was deleted.
	Don't alter tip_frame or tip_window.
	(unwind_create_tip_frame): Set tip_frame to nil only if frame
	was deleted.

1289 1290 1291 1292 1293
	* w32fns.c (unwind_create_frame): Return t if frame was deleted.
	Don't alter tip_frame or tip_window.
	(unwind_create_tip_frame): Set tip_frame to nil only if frame
	was deleted.

Eli Zaretskii's avatar
Eli Zaretskii committed
1294 1295 1296 1297 1298 1299
2000-12-16  Eli Zaretskii  <eliz@is.elta.co.il>

	* fileio.c (Fcopy_file): Rename the last argument to keep_time, to
	be consistent with the doc string.  Reported by NAKAJIMA Mikio
	<minakaji@osaka.email.ne.jp>.

Kenichi Handa's avatar
Kenichi Handa committed
1300 1301 1302 1303 1304 1305
2000-12-16  Kenichi Handa  <handa@etl.go.jp>

	* xfaces.c (Vface_ignored_fonts): New variable.
	(x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
	(syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.

Gerd Moellmann's avatar
Gerd Moellmann committed
1306 1307
2000-12-15  Gerd Moellmann  <gerd@gnu.org>

1308 1309 1310 1311 1312 1313 1314
	* dispnew.c (update_window): Detect pending input every nth line
	updated, i.e. do it depending on real work done, and not on the
	vpos of the line.

	* xterm.c (expose_window): Don't redraw the window that's
	currently being updated.

Gerd Moellmann's avatar
Gerd Moellmann committed
1315 1316 1317
	* window.c (Fset_window_point): Remove test for
	cursor_in_non_selected_windows.

Gerd Moellmann's avatar
Gerd Moellmann committed
1318 1319
	* lread.c (read1): Recognize end of file after `\\'.

Gerd Moellmann's avatar
Gerd Moellmann committed
1320 1321 1322
	* xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
	not unwind_create_frame.

Gerd Moellmann's avatar
Gerd Moellmann committed
1323 1324 1325 1326 1327 1328 1329
2000-12-15  Dave Love  <fx@gnu.org>

	* s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
	bcopy & al.

	* s/irix6-5.h: #undef bcopy & al here.  Include strings.h.

Kenichi Handa's avatar
Kenichi Handa committed
1330 1331
2000-12-15  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
1332 1333
	* coding.c (setup_coding_system): Clear all members of the struct
	coding_system at first.
Kenichi Handa's avatar
Kenichi Handa committed
1334 1335 1336 1337
	(detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
	argument.
	(code_convert_region): Don't override coding->src_multibyte and
	coding->dst_multibyte.
Kenichi Handa's avatar
Kenichi Handa committed
1338

Kenichi Handa's avatar
Kenichi Handa committed
1339 1340
	* fns.c (Fmd5): Docstring improved.

Miles Bader's avatar
Miles Bader committed
1341 1342 1343 1344 1345 1346
2000-12-15  Miles Bader  <miles@gnu.org>

	* xdisp.c (window_box_height): Only use mode-line glyph-rows that
	are actually marked as mode-lines; otherwise use
	estimate_mode_line_height.

Gerd Moellmann's avatar
Gerd Moellmann committed
1347 1348 1349 1350 1351
2000-12-14  Gerd Moellmann  <gerd@gnu.org>

	* editfns.c (Fformat): Prevent a buffer overrun when the format
	specifies a precision.

Eli Zaretskii's avatar
Eli Zaretskii committed
1352 1353 1354 1355 1356
2000-12-14  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
	argument is outside the range [2..3].

Andrew Innes's avatar
Andrew Innes committed
1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374
2000-12-14  Andrew Innes  <andrewi@gnu.org>

	* w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
	nothing to do.  Bind inhibit-quit.
	(tip_frame): Make it a Lisp_Object.
	(x_create_tip_frame): Set tip_frame after it has been added to
	Vframe_list.
	(Fx_show_tip): Don't set tip_frame here.
	(image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New
	variables.
	(unwind_create_frame, unwind_create_tip_frame): New functions.
	(Fx_create_frame, x_create_tip_frame): Handle errors signaled
	while a frame is only partially constructed.

	* w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
	(x_free_frame_resources): New function.
	(x_destroy_window): Use it.

Gerd Moellmann's avatar
Gerd Moellmann committed
1375 1376 1377 1378 1379 1380 1381
2000-12-14  Gerd Moellmann  <gerd@gnu.org>

	* xfns.c (Fx_backspace_delete_keys_p): New function.
	(syms_of_xfns): Defsubr it.

	* config.in (HAVE_XKBGETKEYBOARD): Add.

Kenichi Handa's avatar
Kenichi Handa committed
1382 1383
2000-12-14  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
1384 1385 1386 1387 1388 1389 1390
	* keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
	Always store string in multibyte representation in echobuf.
	(echo_char): Always store string in multibyte representation in
	echobuf.
	(echo_now): Call message2_nolog with the arg MULTIBYTE 1.
	(read_key_sequence): Adjusted for the change of echo_prompt.

Kenichi Handa's avatar
Kenichi Handa committed
1391 1392
	* fns.c (Fmd5): Docstring improved.

Kenichi Handa's avatar
Kenichi Handa committed
1393 1394
	* lisp.h (detect_coding_system): Prototype adjusted.

Kenichi Handa's avatar
Kenichi Handa committed
1395 1396 1397 1398 1399 1400 1401
	* coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
	(detect_coding_emacs_mule, detect_coding_iso2022,)
	(detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
	(detect_coding_utf_16, detect_coding_ccl): Make them static.  New
	argument MULTIBYTEP.  Callers changed.
	(detect_coding_mask, detect_coding_system): New argument
	MULTIBYTEP.  Callers changed.
Kenichi Handa's avatar
Kenichi Handa committed
1402 1403 1404 1405
	(decode_coding_string): Set coding->src_multibyte and
	coding->dst_multibyte before calling detect_coding and detect_eol.
	Update them after some coding system is detected.
	
1406 1407 1408 1409 1410 1411 1412
2000-12-13  Stefan Monnier  <monnier@cs.yale.edu>

	* keymap.c (get_keyelt): Only eval the filter if `autoload' is set.

	* keyboard.c (menu_bar_items, tool_bar_items):
	Set `autoload' when looking up `tool-bar' or `menu-bar' submap.

Gerd Moellmann's avatar
Gerd Moellmann committed
1413 1414
2000-12-13  Gerd Moellmann  <gerd@gnu.org>

1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425
	* xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: 
	New variables.
	(unwind_create_frame, unwind_create_tip_frame): New functions.
	(Fx_create_frame, x_create_tip_frame): Handle errors signaled
	while a frame is only partially constructed.

	* xterm.h (x_free_frame_resources): Declare.

	* xterm.c (x_free_frame_resources): New function.
	(x_destroy_window): Use it.

1426 1427 1428 1429 1430 1431
	* dispnew.c (update_window): If do_mouse_tracking is non-nil,
	don't interrupt the update for pending input initially, i.e.
	update at least some lines.

	* keyboard.c (do_mouse_tracking): Make externally visible.
	
1432
	* xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
Gerd Moellmann's avatar
Gerd Moellmann committed
1433 1434 1435

	* xfns.c (gray_bitmap_bits): Declare `char *'.

1436 1437 1438 1439 1440
2000-12-12  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (display_tool_bar_line): Make sure that tool bar
	lines start with a relief line.

Dave Love's avatar
Dave Love committed
1441 1442 1443 1444 1445 1446 1447 1448 1449
2000-12-12  Dave Love  <fx@gnu.org>

	* window.c (Fdisplay_buffer): Doc fix.
	(Fwindow_list): Remove unused var.

	* buffer.h (mmap_set_vars): Declare.

	* window.h (Fset_window_point): Declare.

Eli Zaretskii's avatar
Eli Zaretskii committed
1450 1451
2000-12-12  Eli Zaretskii  <eliz@is.elta.co.il>

Stefan Monnier's avatar
Stefan Monnier committed
1452
	* msdos.c (fast_find_position): Don't overstep the last window row.
Eli Zaretskii's avatar
Eli Zaretskii committed
1453 1454 1455 1456
	(IT_note_mouse_highlight): Initialize portion to -1.  Remove
	unused variable `area'.  When looking for a row under (X,Y), give
	up if some of the previous rows is not enabled.

1457 1458
2000-12-12  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1459 1460 1461 1462 1463 1464
	* window.c (Fset_window_point): If displaying cursors in windows
	other than the selected window, make sure redisplay updates
	other windows to show the new value of point in the window.

	* dispextern.h (cursor_in_non_selected_windows): Declare extern.

Gerd Moellmann's avatar
Gerd Moellmann committed
1465 1466 1467
	* buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
	the buffer is the sole visible buffer when in the mini-buffer.

Gerd Moellmann's avatar
Gerd Moellmann committed
1468 1469 1470 1471
	* xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer): 
	Bind `inhibit-read-only' to t.
	(unwind_with_echo_area_buffer): Use AREF.

Gerd Moellmann's avatar
Gerd Moellmann committed
1472 1473
	* xfns.c (Fx_hide_tip): Simplified.

Gerd Moellmann's avatar
Gerd Moellmann committed
1474 1475 1476
	* s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use
	GC_MAKE_GCPROS_NOOPS instead of `1'.

1477 1478
	* s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.

1479 1480
2000-12-11  Gerd Moellmann  <gerd@gnu.org>

1481 1482
	* xfns.c (Fx_hide_tip): Fix last change.
	
1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496
	* xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
	nothing to do.  Bind inhibit-quit.
	(tip_frame): Make it a Lisp_Object.
	(x_create_tip_frame): Set tip_frame after it has been added to
	Vframe_list.
	(Fx_show_tip): Don't set tip_frame here.

	* xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.

	* xdisp.c (prepare_menu_bars): Changes for tip_frame being a
	Lisp_Object.

	* dispextern.h: Change external declaration of tip_frame.

Gerd Moellmann's avatar
Gerd Moellmann committed
1497 1498 1499
	* keymap.c (Fkey_description): If KEYS is an empty key sequence,
	return an empty string.

1500 1501 1502 1503 1504
	* xdisp.c (try_cursor_movement): Check update_mode_lines instead
	of the window's update_mode_line flag, since the former is set by
	force-mode-line-update, not the latter.  This makes
	column-number-mode slightly faster.
	
1505 1506 1507
	* xdisp.c (try_window_id) <all changes above window start>:
	Set the cursor.

Gerd Moellmann's avatar
Gerd Moellmann committed
1508 1509 1510 1511 1512 1513 1514