ChangeLog 392 KB
Newer Older
Gerd Moellmann's avatar
Gerd Moellmann committed
1 2 3 4 5
2001-05-02  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (x_draw_stretch_glyph_string): Don't draw background
	again if it has already been drawn.

Stefan Monnier's avatar
Stefan Monnier committed
6 7 8 9 10
2001-05-01  Stefan Monnier  <monnier@cs.yale.edu>

	* syntax.c (update_syntax_table): Check that oldi has the same
	properties as old_prop before deciding not to invalidate.

11 12
2001-04-30  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
13 14 15
	* undo.c (Fprimitive_undo): In a writable buffer, enable undoing
	read-only text that is so because of text properties.

16
	* xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
Stefan Monnier's avatar
Stefan Monnier committed
17
	(XTread_socket) <Expose> [USE_LUCID]: Handle events for
18 19
	windows that are components of a Lucid menu bar.

Gerd Moellmann's avatar
Gerd Moellmann committed
20 21 22 23 24
2001-04-27  Gerd Moellmann  <gerd@gnu.org>

	* term.c (turn_on_face): Fix reverse video handling on terminals
	that don't support colors.

25 26 27 28 29
2001-04-26  Gerd Moellmann  <gerd@gnu.org>

	* editfns.c (save_excursion_restore): Don't use XBUFFER on
	a non-buffer.

30 31
2001-04-25  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
32 33 34
	* term.c (toggle_highlight): New function.
	(turn_on_face): Change handling of reverse video.

Stefan Monnier's avatar
Stefan Monnier committed
35 36
	* process.c (wait_reading_process_input):
	Call record_asynch_buffer_change only if a timer really changed buffers.
37

38 39 40
	* buffer.c (mouse_face_overlay_overlaps): Fix the computation
	of the number of overlays to check.

41 42
	* keyboard.c (command_loop_1): Redo change of 2001-03-12.

43 44 45
	* xdisp.c (try_window_id): Fix a case where window_end_pos
	and window_end_bytepos were not adjusted.

46 47 48 49 50
2001-04-23  Gerd Moellmann  <gerd@gnu.org>

	* xfaces.c (compute_char_face): If buffer is unibyte, set CH to
	zero instead of -1.

51 52
2001-04-21  Eli Zaretskii  <eliz@is.elta.co.il>

Stefan Monnier's avatar
Stefan Monnier committed
53 54 55
	* process.c (wait_reading_process_input) [!subprocesses]:
	Don't reference waiting_for_user_input_p, it's not defined in the
	branch without async subprocesses support.
56

57 58
2001-04-19  Gerd Moellmann  <gerd@gnu.org>

59 60 61
	* keyboard.c (delete_kboard): Prevent a dangling reference
	from current_kboard to KB, which is freed.

Stefan Monnier's avatar
Stefan Monnier committed
62 63
	* process.c (wait_reading_process_input):
	Call record_asynch_buffer_change after running timers, to make
64 65
	read_key_sequence aware of buffer changes from under it.

Gerd Moellmann's avatar
Gerd Moellmann committed
66 67
2001-04-18  Gerd Moellmann  <gerd@gnu.org>

68 69
	* xfaces.c (Qscalable_fonts_allowed): New variable.
	(realizing_basic_faces_p): Removed.
Stefan Monnier's avatar
Stefan Monnier committed
70
	(x_face_list_fonts): Special handling for realizing_basic_faces_p removed.
71
	(realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
Stefan Monnier's avatar
Stefan Monnier committed
72 73
	(syms_of_xfaces): Initialize Qscalable_fonts_allowed.  Change default
	for scalable-fonts-allowed to t.
74

Gerd Moellmann's avatar
Gerd Moellmann committed
75 76
	* fileio.c (Finsert_file_contents): If the file size returned from
	stat is zero, set END to READ_BUF_SIZE.  This makes sure we can
Stefan Monnier's avatar
Stefan Monnier committed
77
	read from files on a procfs whose contents are generated dynamically.
Gerd Moellmann's avatar
Gerd Moellmann committed
78

79 80 81 82 83 84
2001-04-18  Eli Zaretskii  <eliz@is.elta.co.il>

	* gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
	defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
	(__memalign_hook): Make the two prototypes consistent.

Gerd Moellmann's avatar
Gerd Moellmann committed
85 86 87 88 89
2001-04-17  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (redisplay_window): Make sure to clear the desired glyph
	matrix of mini-windows.

90 91 92 93
2001-04-12  Stefan Monnier  <monnier@cs.yale.edu>

	* intervals.c (find_interval): Don't rebalance during signal handling.

94 95
2001-04-11  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
96
	* fns.c: Include blockinput.h.
97

98 99
	* fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.

Gerd Moellmann's avatar
Gerd Moellmann committed
100 101
2001-04-10  Gerd Moellmann  <gerd@gnu.org>

102 103
	* fns.c (Fcompare_strings): Fix return values.

Gerd Moellmann's avatar
Gerd Moellmann committed
104 105 106 107 108
	* window.c (window_scroll): Change the meaning of N to mean
	N screen-fulls or N lines.
	(window_scroll_pixel_based, window_scroll_line_based)
	(scroll_command, Fscroll_other_window): Change accordingly.

109 110
	* window.c (window_scroll_pixel_based, Frecenter):
	Call window_box_height instead of using it.last_visible_y for the
Gerd Moellmann's avatar
Gerd Moellmann committed
111 112 113 114
	height of the window.

	* xdisp.c (redisplay_window) <recenter>: Call window_box_height
	instead of using it.last_visible_y for the height of the window.
115

Gerd Moellmann's avatar
Gerd Moellmann committed
116 117 118 119 120 121 122 123
	* w32proc.c (sys_spawnve): Quote more chars for Cygwin.

	* w32.c (sys_open): Try to open file without _O_CREAT first, to be
	able to write to hidden and system files.  Make file handles
	non-inheritable.

	* fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile.

124 125
2001-04-09  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
126 127
	* fns.c (Fplist_get, Fplist_put): Add QUITs.

128 129 130 131 132 133
	* window.c (window_internal_height): Return 1 less if the
	window has a header line.

	* xdisp.c (try_window_id): When scrolling on a terminal, take
	the change of window_internal_height into account.

134 135 136 137 138
2001-04-09  Eli Zaretskii  <eliz@is.elta.co.il>

	* gmalloc.c (align): If the argument SIZE would overflow
	__malloc_ptrdiff_t, fail right away.

139 140 141 142 143 144 145 146 147 148
2001-04-06  Gerd Moellmann  <gerd@gnu.org>

	* xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
	Make sure the tooltip is completely visible.
	(x_make_gc): Use FRAME_X_SCREEN_NUMBER.

	* xterm.h (FRAME_X_SCREEN_NUMBER): New macro.

	* xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.

Dave Love's avatar
Dave Love committed
149 150
2001-04-06  Dave Love  <fx@gnu.org>

151 152
	* composite.c (update_compositions) <check_mask & CHECK_HEAD>:
	Fix test of `from'.
Dave Love's avatar
Dave Love committed
153

154 155
2001-04-06  Gerd Moellmann  <gerd@gnu.org>

156
	* composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
Gerd Moellmann's avatar
Gerd Moellmann committed
157

158 159
	* xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.

160 161
2001-04-05  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
162 163
	* sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.

164
	* editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
Gerd Moellmann's avatar
Gerd Moellmann committed
165

166 167 168 169 170 171
	* xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
	(syms_of_xfns): DEFVAR_LISP it.  Initialize from XmVERSION_STRING.

	* xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
	shell widget's position only if it is non-null.

172 173
	* xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
	Set f->output_data.x->widget to null after destroying it.
174

175 176 177
	* fns.c (Frequire): Doc fix.  Rename parameter FILE_NAME to
	FILENAME to bring it in synch with the documentation.

178 179 180 181 182
	* xfaces.c (realizing_basic_faces_p): Renamed from
	realize_default_face_p.
	(realize_basic_faces): Set/clear realizing_basic_faces_p.
	(realize_default_face): Don't set the flag.

183 184
2001-04-04  Gerd Moellmann  <gerd@gnu.org>

185 186
	* lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.

187 188
	* keyboard.c (echoing, echo_message_buffer): Make externally visible.

189 190 191
	* xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
	the buffer that was used for echoing.

192 193 194 195 196 197 198 199 200 201 202 203 204
	* xfaces.c (best_matching_font): Remove unused parameter PATTERN.
	(first_font_matching): Removed unused function.
	(x_face_list_fonts): Remove unused parameter SCALABLE_P.
	(may_use_scalable_font_p): Remove parameter FONT; rename
	parameter NAME to FONT.
	(x_face_list_fonts): Fix missing bounds check.
	(realizing_default_face_p): New variable.
	(realize_default_face): Set and clear that flag.
	(x_face_list_fonts): When called during the realization of the
	default face, and no matching fonts are found when ignoring
	scalable fonts and fonts matching a regexp from
	face-ignored-fonts, try without ignoring fonts.

Gerd Moellmann's avatar
Gerd Moellmann committed
205 206
2001-04-03  Gerd Moellmann  <gerd@gnu.org>

207 208 209 210
	* xfns.c (postprocess_image): New function.
	(lookup_image): Call it for all image types except PostScript.
	(x_kill_gs_process): Call postprocess_image.

Gerd Moellmann's avatar
Gerd Moellmann committed
211 212 213 214
	* xterm.c (x_use_underline_position_properties): New variable.
	(x_draw_glyph_string): Use it.
	(syms_of_xterm): DEFVAR_BOOL it.

215 216 217 218 219 220 221 222 223 224
2001-04-02  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (x_alloc_nearest_color_1): New function.
	(x_alloc_nearest_color): Use it.
	(x_color_cells): Take a Display as argument, instead of a frame.
	(cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
	(cvt_string_to_pixel, cvt_pixel_dtor): New functions.
	(x_initialize): Register cvt_string_to_pixel as resource converter
	string -> Pixel and cvt_pixel_dtor as pixel resource destructor.

225 226
2001-03-30  Gerd Moellmann  <gerd@gnu.org>

227 228 229 230 231
	* xdisp.c (get_overlay_strings): Set iterator's end_charpos.
	(set_iterator_to_next): If a string from a display property ends,
	consider the case that this might also be the end of an
	overlay string having the display property.

232
	* xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
233

Gerd Moellmann's avatar
Gerd Moellmann committed
234 235
	* xdisp.c (reseat_to_string): Undo last change.

236 237 238 239
	* dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
	matrix of a window when the header line changes, when
	new rows are allocated, or when the width changes.

Eli Zaretskii's avatar
Eli Zaretskii committed
240 241
2001-03-30  Eli Zaretskii  <eliz@is.elta.co.il>

242
	* print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
Eli Zaretskii's avatar
Eli Zaretskii committed
243

Eli Zaretskii's avatar
Eli Zaretskii committed
244 245 246 247 248
2001-03-29  Eli Zaretskii  <eliz@is.elta.co.il>

	* fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
	deprecated.

249 250
2001-03-29  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
251 252 253
	* data.c (Fsubr_interactive_form): New function.
	(syms_of_data): Defsubr it.

254 255 256 257
	* alloc.c (live_string_p, live_cons_p, live_symbol_p)
	(live_float_p, live_misc_p): Return 1 only if the offset of the
	pointer in its block is >= 0.

Gerd Moellmann's avatar
Gerd Moellmann committed
258 259 260 261 262 263
2001-03-28  Paul Eggert <eggert@twinsun.com>

	* editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
	microseconds calcuation.  Avoid double-rounding problem.
	In doc string, warn that the result is approximate.

Gerd Moellmann's avatar
Gerd Moellmann committed
264 265
2001-03-28  Gerd Moellmann  <gerd@gnu.org>

266 267 268 269 270 271 272 273 274 275 276 277
	* eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
	bind `inhibit-eval-during-redisplay' to t.

	* lisp.h (Qinhibit_eval_during_redisplay): Declare extern.

	* xdisp.c (inhibit_eval_during_redisplay)
	(Qinhibit_eval_during_redisplay): New variables.
	(safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
	don't eval, return nil instead.
	(syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
	Initialize Qinhibit_eval_during_redisplay.

278 279 280
	* xdisp.c (reseat_to_string): If STRING is multibyte, set
	the iterator's multibyte_p flag.

Gerd Moellmann's avatar
Gerd Moellmann committed
281 282 283 284
	* xfaces.c (realize_basic_faces): Decrement menu_face_change_count
	instead of setting it to zero; it's incremented for each frame
	where the menu face is changed.

285 286 287 288
	* xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
	change bottom shadow accordingly.

	* xterm.c (expose_window_tree, expose_frame): Don't compute
289 290
	intersections here.
	(expose_window): Do it here instead.
291
	(x_draw_glyph_string): Fix a computation of the underline position.
292

Gerd Moellmann's avatar
Gerd Moellmann committed
293 294 295
	* bytecode.c (BYTE_CODE_QUIT): New macro.
	(Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.

296 297
2001-03-27  Gerd Moellmann  <gerd@gnu.org>

298 299 300 301 302
	* xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
	Give up if matrix starts in an ellipsis.
	(init_from_display_pos): Do nothing if POS doesn't specify
	a dpvec_index but the iterator has such a position.

303 304
	* xdisp.c (init_from_display_pos): Remove unwarranted assertion.

305 306 307 308
	* xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
	x/y position is (0, 0) after destroying the menu bar, restore
	its original position.

309 310 311 312
	* xdisp.c (in_ellipses_for_invisible_text_p): New function.
	(init_from_display_pos): Use it.
	(try_window_reusing_current_matrix): Don't use cursor_row_p.

313 314 315 316
2001-03-26  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (try_window_id): Undo last change.

Eli Zaretskii's avatar
Eli Zaretskii committed
317 318 319 320 321 322
2001-03-26  Eli Zaretskii  <eliz@is.elta.co.il>

	* print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.

	* buffer.c (syms_of_buffer): Doc fix.

323 324 325 326 327
2001-03-26  Gerd Moellmann  <gerd@gnu.org>

	* xfaces.c (x_update_menu_appearance): Use local variable
	popup_path for setting font resources.

328 329
2001-03-25  Eli Zaretskii  <eliz@is.elta.co.il>

330 331 332
	* frame.c (Fframe_list): Don't reference tip_frame if
	HAVE_WINDOW_SYSTEM is not defined.

333 334 335
	* emacs.c (main): Update the copyright year.  From Werner LEMBERG
	<wl@gnu.org>.

336 337
2001-03-25  Gerd Moellmann  <gerd@gnu.org>

338 339
	* xdisp.c (init_from_display_pos): Test invisible property
	with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
340

341 342 343
	* xdisp.c (redisplay_internal) <update one window>: Make sure
	last_arrow_position and last_arrow_string are set.

344 345
	* frame.c (Fframe_list): Don't return a tooltip frame.

346 347
2001-03-23  Gerd Moellmann  <gerd@gnu.org>

348 349 350
	* xdisp.c (mark_window_display_accurate_1): New function,
	extracted from mark_window_display_accurate.
	Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
351 352 353 354 355 356
	BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
	(mark_window_display_accurate): Use it.
	(redisplay_internal): Use it for the selected window.
	(redisplay_internal): Avoid duplicate mark_window_display_accurate
	for the selected frame.

357 358 359 360 361 362 363
	* xdisp.c  Use make_number, for readability.
	(try_window_id): Disable rows below the window end.
	(try_window_reusing_current_matrix): Use cursor_row_p.
	(try_window_reusing_current_matrix) <scrolling up>: Fix disabling
	of rows.
	(init_from_display_pos): If POS specifies a position in a display
	vector, maybe get the iterator set up for that ellipsis.
364

365 366
	* xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.

367 368 369 370
2001-03-23  Eli Zaretskii  <eliz@is.elta.co.il>

	* xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.

Gerd Moellmann's avatar
Gerd Moellmann committed
371 372 373 374 375
2001-03-23  Gerd Moellmann  <gerd@gnu.org>

	* xfaces.c (x_update_menu_appearance): Use a different path
	for Lucid popup menus.

376 377 378 379 380 381 382
2001-03-22  Stefan Monnier  <monnier@cs.yale.edu>

	* xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.

	* xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
	(string_buffer_position): Use `make_number'.

Gerd Moellmann's avatar
Gerd Moellmann committed
383 384
2001-03-22  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
385 386 387 388 389 390
	* xfaces.c (x_update_menu_appearance): Renamed from
	x_set_menu_face_resources.  Use different resources for popups.

	* lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
	(GC_CHECK_STRING_BYTES): Don't define.

391 392 393
	* xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
	Removed, together with subroutines.
	(x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
394
	(realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
395

396 397
	* dispextern.h (x_set_menu_resources_from_menu_face):
	Remove prototype.
398

399
	* xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
400 401
	Remove calls to x_set_menu_resources_from_menu_face.

402 403
	* xfaces.c (xm_set_menu_resources_from_menu_face):
	Remove #ifndef LESSTIF_VERSION.
Gerd Moellmann's avatar
Gerd Moellmann committed
404 405 406 407 408

	* xmenu.c: Include widget.h.
	(single_submenu): Return int.  Some cleanup.
	(set_frame_menubar): Call x_set_menu_resources_from_menu_face.

409 410 411 412 413 414 415
2001-03-21  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (x_update_window_end): Handle overwritten mouse face
	also for tool bar windows.
	(show_mouse_face): Set the glyph row's mouse_face_p flag also when
	DRAW is DRAW_IMAGE_RAISED.

Gerd Moellmann's avatar
Gerd Moellmann committed
416 417
2001-03-20  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
418 419
	* print.c (syms_of_print): Doc fixes.

Gerd Moellmann's avatar
Gerd Moellmann committed
420 421
	* fns.c (Fmd5): Doc fix.

422 423
2001-03-19  Gerd Moellmann  <gerd@gnu.org>

424 425 426
	* xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
	Clear area of the frame not occupied by the scroll bar.

Gerd Moellmann's avatar
Gerd Moellmann committed
427 428 429 430
	* xfns.c (x_create_tip_frame): Add parameter TEXT.  Set the
	tip frame's root window buffer to *tip* right after creating
	the frame.

431 432 433
	* xdisp.c (highlight_trailing_whitespace): Glyphs whose object
	is an integer don't have to be for space characters.

434 435
2001-03-16  Gerd Moellmann  <gerd@gnu.org>

436 437
	* indent.c (current_column, current_column_1, Fmove_to_column)
	(compute_motion): Handle characters from display vectors differently.
438

Kenichi Handa's avatar
Kenichi Handa committed
439 440 441 442 443
2001-03-15  Kenichi Handa  <handa@etl.go.jp>

	* xterm.c (x_draw_glyph_string): Draw relief (if any) before
	drawing glyph string.

Gerd Moellmann's avatar
Gerd Moellmann committed
444 445
2001-03-15  Gerd Moellmann  <gerd@gnu.org>

446 447 448
	* keyboard.c (timer_check): Preserve the value of deactivate-mark.
	(command_loop_1): Undo last change.

449 450
	* xterm.c (fast_find_position): Return the correct vpos.

Gerd Moellmann's avatar
Gerd Moellmann committed
451
	* data.c (store_symval_forwarding): Add parameter BUF.  If BUF is
452
	non-null, set a per-buffer value in BUF instead of the current buffer.
Gerd Moellmann's avatar
Gerd Moellmann committed
453 454 455 456 457 458 459 460
	(swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
	Call store_symval_forwarding with BUF null.
	(set_internal): Call store_symval_forwarding with the BUF
	parameter passed to set_internal.  Formerly, the value was always
	set in the current buffer; the buffer recorded in specbind for
	this case wasn't used.
	(arith_driver): Reindent.

461 462
	* buffer.c (swap_out_buffer_local_variables):
	Call store_symval_forwarding with BUF null.
Gerd Moellmann's avatar
Gerd Moellmann committed
463 464 465 466 467

	* lisp.h (store_symval_forwarding): Change prototype.

	* eval.c (specbind): Call store_symval_forwarding with BUF null.

468 469
2001-03-14  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
470 471 472 473 474 475 476 477 478 479 480 481 482 483 484
	* frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
	FOR_DELETION.  Avoid resizing the mini-window of the selected
	frame if FOR_DELETION is set.
	(Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
	(Fmake_frame_invisible): Change calls to do_switch_frame for new
	signature.

	* window.c (Fset_window_configuration): Change call to
	do_switch_frame to new format.

	* keyboard.c (quit_throw_to_read_char): Change call to
	do_switch_frame to new format.

	* lisp.h (do_switch_frame): Change prototype.

Gerd Moellmann's avatar
Gerd Moellmann committed
485 486 487 488
	* frame.c (Fframe_parameters): In the `buffer-list' frame
	parameter, store the buffer list of FRAME, not the list of the
	selected frame.

489 490 491
	* xterm.c (x_draw_glyph_string_box): Don't draw a full-width
	box just because the glyph row's full_width_p flag is set.

492 493 494 495 496 497
2001-03-14  Eli Zaretskii  <eliz@is.elta.co.il>

	* xdisp.c (highlight_trailing_whitespace): On character terminals,
	skip the padding blanks inserted in extend_face_to_end_of_line,
	before checking for trailing whitespace.

498 499
2001-03-13  Gerd Moellmann  <gerd@gnu.org>

500
	* xmenu.c (popup_activate_callback, popup_deactivate_callback):
Gerd Moellmann's avatar
Gerd Moellmann committed
501 502 503
	Remove special handling for LessTif/Motif.
	(toplevel): Don't include Xm/Xm.h.

504 505 506
	* xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
	Remove workaround code for LessTif; it doesn't work anymore.

507
	* xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
508
	Xm/ScrollBarP.h.
Gerd Moellmann's avatar
Gerd Moellmann committed
509

510 511
	* xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
	Don't access private scroll bar data; it's no longer necessary with
512 513
	contemporary LessTif.

514 515
	* xfaces.c (xm_set_menu_resources_from_menu_face):
	Change #if 0 to #ifndef LESSTIF_VERSION.
Gerd Moellmann's avatar
Gerd Moellmann committed
516

517 518 519
	* xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
	removing button grabs.

Kenichi Handa's avatar
Kenichi Handa committed
520 521
2001-03-13  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
522 523 524
	* fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
	and clip-large-size-font as obsolete.

Kenichi Handa's avatar
Kenichi Handa committed
525 526 527
	* lread.c (read_multibyte): Check the validity of multibyte
	sequence.  If invalid, return the first byte.

Gerd Moellmann's avatar
Gerd Moellmann committed
528 529 530 531 532 533
2001-03-12  Gerd Moellmann  <gerd@gnu.org>

	* keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
	before running the command; timer functions or process
	filters may have set it.

534 535 536 537 538
2001-03-12  Eli Zaretskii  <eliz@is.elta.co.il>

	* keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
	Doc fix.

539 540 541 542 543
2001-03-12  Gerd Moellmann  <gerd@gnu.org>

	* xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
	to sprintf.

544 545
2001-03-09  Gerd Moellmann  <gerd@gnu.org>

546 547
	* dispextern.h (string_buffer_position): Add prototype.

548
	* xdisp.c (string_buffer_position, display_prop_string_p)
549 550 551 552 553 554 555 556 557 558
	(single_display_prop_string_p): New functions.

	* xterm.c (note_mouse_highlight): If there's no help-echo on
	a string, look at the buffer text ``under'' it.

	* keyboard.c (make_lispy_event): Add string info to the event,
	analogous to what's done on mode lines.
	(read_key_sequence): For a click on a string, consider `local-map'
	and `keymap' of that string.

559 560
	* keyboard.c (make_lispy_event, make_lispy_movement):
	Adjust calls to buffer_posn_from_coords to new format.
Gerd Moellmann's avatar
Gerd Moellmann committed
561 562 563 564 565 566

	* dispextern.h (buffer_posn_from_coords): Adjust prototype.

	* dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
	POS; return void.

567 568 569
	* fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
	flags argument to emacs_open; it seems to conflict with O_EXCL.

Kenichi Handa's avatar
Kenichi Handa committed
570 571
2001-03-09  Kenichi Handa  <handa@etl.go.jp>

572 573
	* composite.h (struct composition): Change types of members;
	glyph_len to unsigned, width to unsigned short.
Kenichi Handa's avatar
Kenichi Handa committed
574

575 576 577 578 579
2001-03-08  Andrew Innes  <andrewi@gnu.org>

	* w32menu.c (add_menu_item): Fix problems with using ownerdraw for
	menu titles.

580 581
2001-03-08  Gerd Moellmann  <gerd@gnu.org>

582 583 584
	* xdisp.c (handle_display_prop): Use it->w->buffer as object,
	instead of nil.

585
	* xterm.c (note_mouse_highlight): Handle mouse-face and
586 587 588 589
	help-echo in strings.
	(x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
	(fast_find_string_pos): New function.

590 591
	* xdisp.c (handle_face_prop, face_before_or_after_it_pos)
	(display_string): Call face_at_string_position with new parameter.
592 593 594 595 596 597

	* xfaces.c (face_at_string_position): Add parameter MOUSE_P.
	Handle `mouse-face'.

	* dispextern.h (face_at_string_position): Change prototype.

598
	* dired.c (directory_files_internal): Handle EAGAIN more efficiently.
Gerd Moellmann's avatar
Gerd Moellmann committed
599

600 601
	* keyboard.c (make_lispy_event): Avoid generating drag events
	if the mouse hasn't actually moved to another buffer position.
602

603 604
2001-03-08  Dave Love  <fx@gnu.org>

605
	* eval.c (syms_of_eval) <debug-on-error>: Doc fix.
606

607 608 609 610
2001-03-08  Gerd Moellmann  <gerd@gnu.org>

	* process.c (Fset_process_window_size): Fix a typo.

Kenichi Handa's avatar
Kenichi Handa committed
611 612 613 614 615 616 617
2001-03-08  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (detect_coding_sjis): Do more rigid check.
	(detect_coding_big5): Likewise.
	(decode_coding_sjis_big5): Likewise.
	(Fdetect_coding_region): Call detect_coding_system with tailing
	anchor byte `\0' for more rigid detection.
618
	(detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
Kenichi Handa's avatar
Kenichi Handa committed
619 620
	(Fdetect_coding_string): Likewise.

Stefan Monnier's avatar
Stefan Monnier committed
621 622 623 624 625
2001-03-07  Stefan Monnier  <monnier@cs.yale.edu>

	* bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
	a string before extracting its data.

Gerd Moellmann's avatar
Gerd Moellmann committed
626 627 628 629 630 631 632 633 634 635 636
2001-03-07  Gerd Moellmann  <gerd@gnu.org>

	* window.c (Frecenter): Rewrite code handling negative values
	of ARG on graphical frames.

2001-03-07  Eli Zaretskii  <a34785@is.elta.co.il>

	* window.c (displayed_window_lines): If W->start is outside the
	accessible portion of the buffer, call start_display with BEGV or
	ZV instead of W->start.

637 638
2001-03-07  Gerd Moellmann  <gerd@gnu.org>

639 640
	* buffer.c (syms_of_buffer) <header-line-format>: Doc fix.

641 642 643 644
	* process.c (Fset_process_filter): Don't crash if the input
	file descriptor of PROCESS is closed.
	(Fset_process_window_size): Likewise.

645 646 647 648 649
2001-03-06  Kenichi Handa  <handa@etl.go.jp>

	* xterm.c (XTflash): Make the timeout of select shorter, and call
	select repeatedly until the desired time expires.

650 651 652 653 654 655 656 657
2001-03-06  Gerd Moellmann  <gerd@gnu.org>

	* w32fns.c (Fx_create_frame): Clear Vwindow_list.

	* xfns.c (Fx_create_frame): Clear Vwindow_list.

	* lisp.h (Vwindow_list): Declare extern.

658 659 660 661
2001-03-06  Eli Zaretskii  <eliz@is.elta.co.il>

	* dispnew.c (syms_of_display) <glyph-table>: Doc fix.

Gerd Moellmann's avatar
Gerd Moellmann committed
662 663
2001-03-06  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
664 665 666 667
	* xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
	to detect a case where we have to highlight a different region
	despite not having left the currently highlighted region.
	Set mouse_face_overlay in the x_display_info.
668
	(x_term_init): Initialize the x_display_info's mouse_face_overlay.
Gerd Moellmann's avatar
Gerd Moellmann committed
669 670 671 672 673 674 675 676

	* xterm.h (struct x_display_info): Add mouse_face_overlay.

	* buffer.c (mouse_face_overlay_overlaps): New function.

	* lisp.h (mouse_face_overlay_overlaps): Add prototype.
	(Qmouse_face): Declare extern.

Gerd Moellmann's avatar
Gerd Moellmann committed
677 678 679
	* xdisp.c (redisplay_internal): Set windows_or_buffers_changed
	if face_change_count is non-zero.

Kenichi Handa's avatar
Kenichi Handa committed
680 681 682 683 684
2001-03-06  Kenichi Handa  <handa@etl.go.jp>

	* ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
	that the source is unibyte.

Dave Love's avatar
Dave Love committed
685 686
2001-03-05  Dave Love  <fx@gnu.org>

Kenichi Handa's avatar
Kenichi Handa committed
687
	* xterm.c (XTmouse_position): Fix typo.
Dave Love's avatar
Dave Love committed
688

689 690 691 692 693
2001-03-05  Gerd Moellmann  <gerd@gnu.org>

	* minibuf.c (read_minibuf): Clean up the binding stack if
	called noninteractively.

Kenichi Handa's avatar
Kenichi Handa committed
694 695 696 697
2001-03-05  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (syms_of_coding): Docstring modified.

Kenichi Handa's avatar
Kenichi Handa committed
698
2001-03-05  Kenichi Handa  <handa@etl.go.jp>
Kenichi Handa's avatar
Kenichi Handa committed
699 700 701

	* charset.c (char_to_string): If a single byte char has modifier
	bits that can't be reflected to the character code, ignore them
702
	instead of signaling an error.
Kenichi Handa's avatar
Kenichi Handa committed
703

Eli Zaretskii's avatar
Eli Zaretskii committed
704 705 706 707 708 709 710 711 712 713
2001-03-04  Eli Zaretskii  <eliz@is.elta.co.il>

	* s/msdos.h: Update copyright notice.

	* dosfns.h: Update copyright notice.

	* dosfns.c: Update copyright notice.

	* msdos.c: Update copyright notice.

Gerd Moellmann's avatar
Gerd Moellmann committed
714 715 716 717 718 719
2001-03-02  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (glyph_rect): New function.
	(XTmouse_position): Use it to raise the threshold for mouse
	movement event generation.

Eli Zaretskii's avatar
Eli Zaretskii committed
720 721 722 723 724
2001-03-02  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
	specifies (reverse . t), reverse the initial screen colors.
	(IT_set_frame_parameters): If the property is foreground-color,
725 726 727
	but we are reversing the colors, set bg_set, not fg_set.
	Likewise for setting background-color and reversing: set fg_set.
	Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
Eli Zaretskii's avatar
Eli Zaretskii committed
728 729 730 731 732 733
	in effect.

	* xfaces.c (Finternal_set_lisp_face_attribute)
	[!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
	parameters alist.

734 735
2001-03-02  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
736 737 738
	* fileio.c (Fexpand_file_name): Collapse sequences of slashes
	to a single slash in the middle of file names.

739
	* editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
740 741
	Accept only alphanumeric time zone names.

742 743 744 745
	* xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
	or width area.
	(XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
	a widget to zero height.
746

747 748 749 750 751
2001-03-01  Gerd Moellmann  <gerd@gnu.org>

	* window.c (Fwindow_end): Call move_it_past_eol only if
	ending up on a partially visible line.

Dave Love's avatar
Dave Love committed
752 753 754 755
2001-03-01  Dave Love  <fx@gnu.org>

	* ccl.c (Fccl_execute): Doc fix.

756 757
2001-03-01  Gerd Moellmann  <gerd@gnu.org>

758 759 760
	* xfns.c (Fx_create_frame): Adjust the frame's height for presence
	of the tool bar before calling x_figure_window_size.

Gerd Moellmann's avatar
Gerd Moellmann committed
761 762 763 764
	* xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
	NULL after destroying it, otherwise XTread_socket can access a
	destroyed widget when input is unblocked.

Stefan Monnier's avatar
Stefan Monnier committed
765
	* xfns.c (x_set_foreground_color): Set the background of the cursor GC.
766

767 768 769
	* xfns.c (x_set_font): Handle case of x_new_fontset returning the
	same name as before, although there was a change in fontsets.

770 771
2001-02-28  Ken Raeburn  <raeburn@gnu.org>

772 773
	* lisp.h (Fframe_parameter): Declare.

774
	* window.c (set_window_buffer): Field vscroll is an int, not a
775
	Lisp_Object.
776

777 778
2001-02-28  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
779 780 781 782 783 784
	* xterm.c (x_set_window_size): Don't use `None' with widgets; use
	NULL instead.

	* xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
	NULL instead.

785 786 787 788
	* alloc.c (toplevel): Include process.h.
	(enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
	MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
	(allocate_vectorlike): Make it a static function.  Add parameter TYPE.
789 790 791
	(allocate_vector, allocate_hash_table, allocate_window)
	(allocate_frame, allocate_process, allocate_other_vector):
	New functions.
792 793
	(Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
	(mark_maybe_pointer): New function.
794
	(mark_memory): Also mark Lisp data to which only pointers
795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815
	remain and not Lisp_Objects.
	(min_heap_address, max_heap_address): New variables.
	(mem_find): Return MEM_NIL if START is below min_heap_address or
	above max_heap_address.
	(mem_insert): Compute min_heap_address and max_heap_address.

	* process.c (make_process): Use allocate_process.

	* frame.c (make_frame): Use allocate_frame.

	* window.c (make_window, make_dummy_parent): Use allocate_window.
	(Fcurrent_window_configuration): Use allocate_other_vector.

	* lisp.h (allocate_vectorlike): Remove prototype.
	(allocate_vector, allocate_other_vector, allocate_frame)
	(allocate_window, allocate_process, allocate_hash_table):
	Add prototypes.

	* fns.c (Fdelete, larger_vector): Use allocate_vector.
	(make_hash_table, copy_hash_table): Use allocate_hash_table.

Kenichi Handa's avatar
Kenichi Handa committed
816 817 818 819 820 821
2001-02-27  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
	treat the produced bytes as a valid multibyte sequence.

	* ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
822 823
	(ccl_driver) <CCL_WriteMultibyteChar2>:
	Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
Kenichi Handa's avatar
Kenichi Handa committed
824 825 826 827
	<ccl_finish>: Set ccl->eight_bit_control properly.

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

Stefan Monnier's avatar
Stefan Monnier committed
828 829 830 831 832 833 834 835
2001-02-26  Stefan Monnier  <monnier@cs.yale.edu>

	* keymap.c (Faccessible_keymaps): Pass `is_metized' to
	accessible_keymaps_char_table.
	(accessible_keymaps_char_table): Obey `is_metized'.
	(where_is_internal, Fwhere_is_internal): Don't confuse int and
	Lisp_Object.

Gerd Moellmann's avatar
Gerd Moellmann committed
836 837 838 839
2001-02-26  Gerd Moellmann  <gerd@gnu.org>

	* dispnew.c: Check HAVE_TERM_H before including term.h.

Andrew Innes's avatar
Andrew Innes committed
840 841 842 843
2001-02-24  Andrew Innes  <andrewi@gnu.org>

	* makefile.w32-in: Update copyright notice.

844 845 846 847
2001-02-24  Stefan Monnier  <monnier@cs.yale.edu>

	* keymap.c (where_is_internal): Accept non-ascii integer prefixes.

Kenichi Handa's avatar
Kenichi Handa committed
848 849
2001-02-24  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
850 851
	* Makefile.in (lisp): Add international/utf-8.elc.

Kenichi Handa's avatar
Kenichi Handa committed
852 853 854
	* fontset.c (Fnew_fontset): Fix handling of the case that an
	element of FONTLIST is a cons of family and registry.

Jason Rumney's avatar
Jason Rumney committed
855 856 857 858 859 860
2001-02-23  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
	to height unconditionally.

	* w32term.c (x_set_glyph_string_background_width): Extend the
861
	background face to the end of the drawing area in the text area, only.
Jason Rumney's avatar
Jason Rumney committed
862 863 864 865 866 867
	(x_insert_glyphs): Call window_box_left to obtain the left
	x-coordinate of the area to shift.

	* w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
	safe_run_hooks.

Andrew Innes's avatar
Andrew Innes committed
868 869
2001-02-22  Andrew Innes  <andrewi@gnu.org>

870
	* makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
Andrew Innes's avatar
Andrew Innes committed
871 872 873 874 875 876 877 878 879 880 881
	($(BLD)\dispnew.obj):
	($(BLD)\editfns.obj):
	($(BLD)\fileio.obj):
	($(BLD)\filelock.obj):
	($(BLD)\keyboard.obj):
	($(BLD)\w32proc.obj):
	($(BLD)\process.obj):
	($(BLD)\sysdep.obj): Ditto.

	* makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
	header files.
882 883 884 885 886 887 888
	($(BLD)/dispnew.$(O)):
	($(BLD)/editfns.$(O)):
	($(BLD)/fileio.$(O)):
	($(BLD)/filelock.$(O)):
	($(BLD)/keyboard.$(O)):
	($(BLD)/w32proc.$(O)):
	($(BLD)/process.$(O)):
Andrew Innes's avatar
Andrew Innes committed
889 890
	($(BLD)/sysdep.$(O)): Ditto.

891 892
2001-02-22  Gerd Moellmann  <gerd@gnu.org>

893 894 895
	* xdisp.c (forward_to_next_line_start): When taking the shortcut
	at the start of the function, check that the \n in it->c is
	from the iterator's current position.
896

897 898 899 900 901 902
	* xdisp.c (handle_single_display_prop): Add parameter
	DISPLAY_REPLACED_BEFORE_P.  If it is non-zero ignore display
	properties which replace the display of text with something else.
	(handle_display_prop): Call handle_single_display_prop with
	additional argument saying if we already replaced text display
	with something else.  Use AREF.
903
	(with_echo_area_buffer_unwind_data, display_menu_bar)
904 905
	(decode_mode_spec_coding): Use AREF and ASIZE.

Gerd Moellmann's avatar
Gerd Moellmann committed
906 907 908
	* vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
	* vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
	* vmstime.h: Files removed.
909

Gerd Moellmann's avatar
Gerd Moellmann committed
910 911
	* unexencap.c, unexfx2800.c: Files removed.

912 913 914 915
	* dispnew.c (direct_output_for_insert): Give up if we are showing
	a message or just cleared the message because we might need to
	resize the echo area window or display an empty echo area.

Gerd Moellmann's avatar
Gerd Moellmann committed
916 917
2001-02-21  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
918 919 920 921 922
	* xdisp.c (redisplay_internal): Do the
	mark_window_display_accurate after all windows have been
	redisplayed because this call resets flags in buffers which are
	needed for proper redisplay.

923 924
	* keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
	Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
Gerd Moellmann's avatar
Gerd Moellmann committed
925 926
	the old names.

927 928
	* w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
	busy_window to hourglass_window, busy_p to hourglass_p.
Gerd Moellmann's avatar
Gerd Moellmann committed
929 930 931 932

	* msdos.h (struct x_output): Rename busy_window to
	hourglass_window, busy_p to hourglass_p.

933 934
	* xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
	busy_window to hourglass_window, busy_p to hourglass_p.
Gerd Moellmann's avatar
Gerd Moellmann committed
935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953

	* xfns.c: Rename everything containing *busy_cursor* and similar
	to *hourglass*.
	(syms_of_w32fns): Rename x-busy-pointer-shape to
	x-hourglass-pointer-shape, display-busy-cursor to
	display-hourglass, busy-cursor-delay to hourglass-delay.

	* w32fns.c: Rename everything containing *busy_cursor* and similar
	to *hourglass*.
	(syms_of_w32fns): Rename x-busy-pointer-shape to
	x-hourglass-pointer-shape, display-busy-cursor to
	display-hourglass, busy-cursor-delay to hourglass-delay.

	* xterm.c (XTread_socket): Test x_output's hourglass_p instead
	of its busy_p flag.

	* dispextern.h (start_hourglass, cancel_hourglass)
	(display_hourglass_p): Renamed from *busy_cursor*.

954 955
2001-02-20  Gerd Moellmann  <gerd@gnu.org>

956 957 958
	* keyboard.c (read_char): When an event from unread-command-events
	is from the tool or menu bar, set *USE_MOUSE_MENU to 1.

Gerd Moellmann's avatar
Gerd Moellmann committed
959 960 961
	* window.c (Fwindow_end): Handle case that WINDOW's buffer is not
	equal to the current buffer.

962 963 964 965
	* xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
	nil, otherwise we're left with truncate_lines t when a message
	is printed with message-truncate-lines bound to t.

966 967
2001-02-19  Gerd Moellmann  <gerd@gnu.org>

968 969 970 971 972 973
	* window.c (Fmove_to_window_line): Undo last change.
	(displayed_window_lines): Call line_bottom_y to determine
	the line's bottom position.

	* dispextern.h (line_bottom_y): Add prototype.

974
	* xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
975 976
	(pos_visible_p): Use it.

977 978 979 980 981
	* keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
	set redisplaying_p to 0 here instead of in Frecursive_edit.
	(Frecursive_edit): Don't bind `inhibit-redisplay' and don't
	set redisplaying_p.

982
	* xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
Gerd Moellmann's avatar
Gerd Moellmann committed
983 984 985 986 987
	New variables.
	(syms_of_xdisp): Initialize new variables.
	(update_menu_bar): Do nothing if inhibit_menubar_update is set.
	Specbind `inhibit-menubar-update' when updating the menu bar.

988 989 990 991 992 993
	* xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
	safe_run_hooks.

	* xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
	safe_run_hooks.

994 995 996
	* emacs.c (malloc_initialize_hook): Handle case thet `environ'
	is null.

997 998 999
	* ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
	to the start of the file.

1000 1001
2001-02-16  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1002
	* window.c (set_window_buffer): Fix last change.
1003

Gerd Moellmann's avatar
Gerd Moellmann committed
1004 1005
	* window.c (set_window_buffer): Set window's vscroll to 0.

1006 1007 1008
	* window.c (coordinates_in_window): Increase width of area
	where the vertical line can be dragged.

Gerd Moellmann's avatar
Gerd Moellmann committed
1009 1010 1011 1012
	* xterm.c (x_set_glyph_string_background_width): Extend the
	background face to the end of the drawing area in the text
	area, only.

Gerd Moellmann's avatar
Gerd Moellmann committed
1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023
	* xdisp.c (handle_single_display_prop): Set iterator's position
	to where the `display' property starts, like for images.
	(dump_glyph): New function.
	(dump_glyph_row): Use it.  Dump info about marginal areas.

	* dispnew.c (direct_output_for_insert): Recognize more cases where
	glyphs can be written instead of being inserted.

	* xterm.c (x_insert_glyphs): Call window_box_left to obtain
	the left x-coordinate of the area to shift.

1024 1025 1026
	* dired.c (directory_files_internal): Set result list to nil
	before retrying.

1027 1028 1029 1030 1031 1032
2001-02-15  Kenichi Handa  <handa@etl.go.jp>

	* ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
	invalid multibyte sequence, treat *SRC as a character of
	eight-bit-graphic.

1033 1034 1035 1036
2001-02-15  Eli Zaretskii  <eliz@is.elta.co.il>

	* textprop.c (Fset_text_properties): Doc fix.

1037 1038 1039 1040
2001-02-15  Gerd Moellmann  <gerd@gnu.org>

	* dispnew.c (update_text_area): Undo change of 2001-01-12.

Dave Love's avatar
Dave Love committed
1041 1042 1043 1044
2001-02-14  Dave Love  <fx@gnu.org>

	* coding.c: Doc and message fixes.

1045 1046 1047 1048 1049
2001-02-14  Andrew Innes  <andrewi@gnu.org>

	* w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
	Emacs frame above the screen size.

1050 1051 1052 1053
2001-02-14  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (reseat_1): Set iterator's end_charpos to ZV.

1054 1055
2001-02-13  Gerd Moellmann  <gerd@gnu.org>

1056 1057 1058
	* insdel.c (del_range_1, del_range_byte, del_range_both): Handle
	case that TO ends up beyond ZV after running before-change-functions.

1059 1060 1061
	* window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
	the selected window if it is showing the buffer in question.

1062 1063 1064
	* dired.c (directory_files_internal): Initialize errno.
	(toplevel): Include errno.h.

1065 1066 1067 1068 1069 1070 1071
2001-02-13  Kenichi Handa  <handa@etl.go.jp>

	* xfaces.c (best_matching_font): New parameter width_ratio.
	Multiply avgwidth by width_ratio.
	(choose_face_font): Call best_matching_font with width_ratio
	calculated from the column width of C.

1072 1073 1074 1075
2001-02-12  Andrew Innes  <andrewi@gnu.org>

	The following changes are to draw box lines inside characters area
	if line-width is negative.
1076

1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090
	* w32term.c (x_produce_image_glyph): Pay attention to the case that
	face->box_line_width is negative.
	(x_produce_stretch_glyph): Likewise.
	(x_produce_glyphs): Likewise.
	(x_estimate_mode_line_height): Likewise.
	(x_draw_glyph_string_background): Likewise.
	(x_draw_glyph_string_foreground): Likewise.
	(x_draw_composite_glyph_string_foreground): Likewise.
	(x_draw_glyph_string_box): Likewise.
	(x_draw_image_foreground): Likewise.
	(x_draw_image_relief): Likewise.
	(x_draw_image_foreground_1): Likewise.
	(x_draw_image_glyph_string): Likewise.

Kenichi Handa's avatar
Kenichi Handa committed
1091 1092 1093 1094
2001-02-09  Kenichi Handa  <handa@etl.go.jp>

	The following changes are to draw box lines inside characters area
	if line-width is negative.
1095

Kenichi Handa's avatar
Kenichi Handa committed
1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111
	* xterm.c (x_produce_image_glyph): Pay attention to the case that
	face->box_line_width is negative.
	(x_produce_stretch_glyph): Likewise.
	(x_produce_glyphs): Likewise.
	(x_estimate_mode_line_height): Likewise.
	(x_draw_glyph_string_background): Likewise.
	(x_draw_glyph_string_foreground): Likewise.
	(x_draw_composite_glyph_string_foreground): Likewise.
	(x_draw_glyph_string_box): Likewise.
	(x_draw_image_foreground): Likewise.
	(x_draw_image_relief): Likewise.
	(x_draw_image_foreground_1): Likewise.
	(x_draw_image_glyph_string): Likewise.

	* xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
	and :line-width can be negative.
1112
	(realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
Kenichi Handa's avatar
Kenichi Handa committed
1113

1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127
2001-02-09  Jason Rumney  <jasonr@gnu.org>

	* w32term.c (w32_encode_char): Treat eight bit graphic and control
	characters the same as ASCII and latin-1.
	(x_display_and_set_cursor): Check for the focus	frame's selected
	window instead of selected_window.
	(x_after_update_window_line): Don't clear if frame's internal
	border width is zero.
	(x_new_font): Don't change a tooltip's size.
	(w32_initialize): Set char_ins_del_ok to 1.

	* w32fns.c (Fx_show_tip): Fix calls to make_number.
	(x_set_font): If font hasn't changed, avoid recomputing
	faces and other things.
1128 1129
	(x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
	(Fx_create_frame): Add the tool bar height to the frame height.
1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141
	(x_create_tip_frame): Prevent changing the tooltip's
	background color by specifying a color for the default font
	in .Xdefaults.
	(Qcancel_timer): New variable.
	(syms_of_w32fns): 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_w32fns removed.

	* w32.c (init_environment): Duplicate local string before putenv.

1142 1143 1144 1145
2001-02-09  ShengHuo ZHU  <zsh@cs.rochester.edu>

	* charset.c (Fstring): A typo.

Kenichi Handa's avatar
Kenichi Handa committed
1146 1147
2001-02-09  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
1148 1149 1150 1151 1152 1153
	* charset.c (Fstring): If all arguments are less than 256, return
	a unibyte string.

	* editfns.c (Fchar_to_string): If CHARACTER is less than 256,
	return a unibyte string.

Kenichi Handa's avatar
Kenichi Handa committed
1154 1155 1156 1157
	* coding.c (code_convert_region): After detecting a coding, if
	nothing found, set coding->composing to COMPOSITION_NO.
	(decode_coding_string): Likewise.

1158 1159 1160 1161 1162
2001-02-08  Stefan Monnier  <monnier@cs.yale.edu>

	* w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
	to avoid overflow.

Kenichi Handa's avatar
Kenichi Handa committed
1163 1164 1165 1166 1167 1168 1169 1170 1171 1172
2001-02-07  Kenichi Handa  <handa@etl.go.jp>

	* charset.c (parse_str_to_multibyte): New function.

	* charset.h (parse_str_to_multibyte): Extern it.

	* print.c (print_string): If we are going to print a unibyte
	string into a multibyte buffer, convert the string to multibyte by
	str_to_multibyte.

1173 1174 1175 1176 1177 1178
2001-02-06  Andrew Innes  <andrewi@gnu.org>

	* w32xfns.c (select_palette): Do nothing if palette hasn't yet
	been created.  It seems we can get sent window messages such as
	WM_ERASEBKGND before we properly update a frame.

1179 1180 1181 1182 1183
2001-02-06  Gerd Moellmann  <gerd@gnu.org>

	* dispnew.c (update_frame_line): Rename parameter FRAME to F.
	Avoid some unnecessary cursor positioning.

1184 1185
2001-02-05  Gerd Moellmann  <gerd@gnu.org>

1186
	* xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201
	(LFACE_AVGWIDTH): New macro.
	(LFACEP): Use AREF.
	(check_lface_attrs): Check LFACE_AVGWIDTH.
	(lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
	(set_lface_from_font_name): Set LFACE_AVGWIDTH.
	(merge_face_vectors): Check LFACE_AVGWIDTH.
	(Finternal_make_lisp_face): Use AREF.
	(xm_set_menu_resources_from_menu_face)
	(xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
	(Finternal_lisp_face_empty_p): Use AREF.
	(lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
	(better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
	Compare average widths..
	(best_matching_font): Arrange for comparing average widths.

1202 1203 1204
	* dispextern.h (enum lface_attribute_index):
	Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).

Dave Love's avatar
Dave Love committed
1205 1206 1207 1208
2001-02-05  Dave Love  <fx@gnu.org>

	* puresize.h: Revert last change following loadup.el change.

Andrew Innes's avatar
Andrew Innes committed
1209 1210 1211 1212 1213 1214
2001-02-05  Andrew Innes  <andrewi@gnu.org>

	* makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
	invocation of temacs, to work with Windows 2000.
	(bootstrap-emacs): Ditto.

Gerd Moellmann's avatar
Gerd Moellmann committed
1215 1216
2001-02-05  Gerd Moellmann  <gerd@gnu.org>

1217 1218 1219
	* xterm.c (x_display_and_set_cursor): Check for the focus
	frame's selected window instead of selected_window.

1220