ChangeLog 389 KB
Newer Older
Gerd Moellmann's avatar
Gerd Moellmann committed
1 2
2001-04-10  Gerd Moellmann  <gerd@gnu.org>

3 4
	* fns.c (Fcompare_strings): Fix return values.

Gerd Moellmann's avatar
Gerd Moellmann committed
5 6 7 8 9 10 11 12 13 14 15 16
	* 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.

	* window.c (window_scroll_pixel_based, Frecenter): Call
	window_box_height instead of using it.last_visible_y for the
	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.
	
Gerd Moellmann's avatar
Gerd Moellmann committed
17 18 19 20 21 22 23 24
	* 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.

25 26
2001-04-09  Gerd Moellmann  <gerd@gnu.org>

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

29 30 31 32 33 34
	* 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.

35 36 37 38 39
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.

40 41 42 43 44 45 46 47 48 49
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
50 51 52 53 54
2001-04-06  Dave Love  <fx@gnu.org>

	* composite.c (update_compositions) <check_mask & CHECK_HEAD>: Fix
	test of `from'.

55 56
2001-04-06  Gerd Moellmann  <gerd@gnu.org>

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

60 61
	* xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.

62 63
2001-04-05  Gerd Moellmann  <gerd@gnu.org>

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

Gerd Moellmann's avatar
Gerd Moellmann committed
66 67 68
	* editfns.c (Fcurrent_time_zone): Accept spaces in timezone
	names.

69 70 71 72 73 74 75 76 77
	* 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.

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

78 79 80
	* fns.c (Frequire): Doc fix.  Rename parameter FILE_NAME to
	FILENAME to bring it in synch with the documentation.

81 82 83 84 85
	* 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.

86 87
2001-04-04  Gerd Moellmann  <gerd@gnu.org>

88 89 90 91 92 93 94 95
	* lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.

	* keyboard.c (echoing, echo_message_buffer): Make externally
	visible.
	
	* xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
	the buffer that was used for echoing.

96 97 98 99 100 101 102 103 104 105 106 107 108
	* 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
109 110
2001-04-03  Gerd Moellmann  <gerd@gnu.org>

111 112 113 114
	* 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
115 116 117 118
	* xterm.c (x_use_underline_position_properties): New variable.
	(x_draw_glyph_string): Use it.
	(syms_of_xterm): DEFVAR_BOOL it.

119 120 121 122 123 124 125 126 127 128
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.

129 130
2001-03-30  Gerd Moellmann  <gerd@gnu.org>

131 132 133 134 135
	* 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.

136 137
	* xdisp.c (handle_display_prop): Fix recognition of subproperty
	lists.
138

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

141 142 143 144
	* 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
145 146 147 148 149
2001-03-30  Eli Zaretskii  <eliz@is.elta.co.il>

	* print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last
	change.

Eli Zaretskii's avatar
Eli Zaretskii committed
150 151 152 153 154
2001-03-29  Eli Zaretskii  <eliz@is.elta.co.il>

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

155 156
2001-03-29  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
157 158 159
	* data.c (Fsubr_interactive_form): New function.
	(syms_of_data): Defsubr it.

160 161 162 163
	* 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
164 165 166 167 168 169
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
170 171
2001-03-28  Gerd Moellmann  <gerd@gnu.org>

172 173 174 175 176 177 178 179 180 181 182 183
	* 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.

184 185 186
	* xdisp.c (reseat_to_string): If STRING is multibyte, set
	the iterator's multibyte_p flag.

Gerd Moellmann's avatar
Gerd Moellmann committed
187 188 189 190
	* 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.

191 192 193
	* xterm.c (x_draw_relief_rect): Extend left shadow to the 
	bottom; change bottom shadow accordingly.
	
194 195 196 197 198 199
	* xterm.c (expose_window_tree, expose_frame): Don't compute 
	intersections here.
	(expose_window): Do it here instead.
	(x_draw_glyph_string): Fix a computation of the underline
	position.

Gerd Moellmann's avatar
Gerd Moellmann committed
200 201 202
	* bytecode.c (BYTE_CODE_QUIT): New macro.
	(Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.

203 204
2001-03-27  Gerd Moellmann  <gerd@gnu.org>

205 206 207 208 209
	* 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.

210 211
	* xdisp.c (init_from_display_pos): Remove unwarranted assertion.

212 213 214 215
	* 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.

216 217 218 219
	* 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.

220 221 222 223
2001-03-26  Gerd Moellmann  <gerd@gnu.org>

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

Eli Zaretskii's avatar
Eli Zaretskii committed
224 225 226 227 228 229
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.

230 231 232 233 234
2001-03-26  Gerd Moellmann  <gerd@gnu.org>

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

235 236
2001-03-25  Eli Zaretskii  <eliz@is.elta.co.il>

237 238 239
	* frame.c (Fframe_list): Don't reference tip_frame if
	HAVE_WINDOW_SYSTEM is not defined.

240 241 242
	* emacs.c (main): Update the copyright year.  From Werner LEMBERG
	<wl@gnu.org>.

243 244
2001-03-25  Gerd Moellmann  <gerd@gnu.org>

245 246 247
	* xdisp.c (init_from_display_pos): Test invisible property
	with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
	
248 249 250
	* xdisp.c (redisplay_internal) <update one window>: Make sure
	last_arrow_position and last_arrow_string are set.

251 252
	* frame.c (Fframe_list): Don't return a tooltip frame.

253 254
2001-03-23  Gerd Moellmann  <gerd@gnu.org>

255 256 257 258 259 260 261 262 263
	* xdisp.c (mark_window_display_accurate_1): New function, 
	extracted from mark_window_display_accurate.  Compute
	BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
	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.

264 265 266 267 268 269 270
	* 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.
271

272 273
	* xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.

274 275 276 277
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
278 279 280 281 282
2001-03-23  Gerd Moellmann  <gerd@gnu.org>

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

283 284 285 286 287 288 289
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
290 291
2001-03-22  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
292 293 294 295 296 297
	* 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.

298 299 300
	* 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.
301
	(realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
302

303 304
	* dispextern.h (x_set_menu_resources_from_menu_face):
	Remove prototype.
305

306
	* xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
307 308
	Remove calls to x_set_menu_resources_from_menu_face.

309 310
	* xfaces.c (xm_set_menu_resources_from_menu_face):
	Remove #ifndef LESSTIF_VERSION.
Gerd Moellmann's avatar
Gerd Moellmann committed
311 312 313 314 315

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

316 317 318 319 320 321 322
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
323 324
2001-03-20  Gerd Moellmann  <gerd@gnu.org>

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

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

329 330
2001-03-19  Gerd Moellmann  <gerd@gnu.org>

331 332 333
	* 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
334 335 336 337
	* xfns.c (x_create_tip_frame): Add parameter TEXT.  Set the
	tip frame's root window buffer to *tip* right after creating
	the frame.

338 339 340
	* xdisp.c (highlight_trailing_whitespace): Glyphs whose object
	is an integer don't have to be for space characters.

341 342 343 344 345 346
2001-03-16  Gerd Moellmann  <gerd@gnu.org>

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

Kenichi Handa's avatar
Kenichi Handa committed
347 348 349 350 351
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
352 353
2001-03-15  Gerd Moellmann  <gerd@gnu.org>

354 355 356
	* keyboard.c (timer_check): Preserve the value of deactivate-mark.
	(command_loop_1): Undo last change.

357 358
	* xterm.c (fast_find_position): Return the correct vpos.

Gerd Moellmann's avatar
Gerd Moellmann committed
359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376
	* data.c (store_symval_forwarding): Add parameter BUF.  If BUF is
	non-null, set a per-buffer value in BUF instead of the current
	buffer.
	(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.

	* buffer.c (swap_out_buffer_local_variables): Call
	store_symval_forwarding with BUF null.

	* lisp.h (store_symval_forwarding): Change prototype.

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

377 378
2001-03-14  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
379 380 381 382 383 384 385 386 387 388 389 390 391 392 393
	* 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
394 395 396 397
	* frame.c (Fframe_parameters): In the `buffer-list' frame
	parameter, store the buffer list of FRAME, not the list of the
	selected frame.

398 399 400
	* 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.

401 402 403 404 405 406
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.

407 408
2001-03-13  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
409 410 411 412
	* xmenu.c (popup_activate_callback, popup_deactivate_callback): 
	Remove special handling for LessTif/Motif.
	(toplevel): Don't include Xm/Xm.h.

Gerd Moellmann's avatar
Gerd Moellmann committed
413 414 415
	* xterm.c (XTread_socket) <LeaveNotify, EnterNotify>: Remove
	workaround code for LessTif; it doesn't work anymore.
	
416
	* xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
417
	Xm/ScrollBarP.h.
Gerd Moellmann's avatar
Gerd Moellmann committed
418

419 420 421 422
	* xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Don't
	access private scroll bar data; it's no longer necessary with
	contemporary LessTif.

Gerd Moellmann's avatar
Gerd Moellmann committed
423 424 425
	* xfaces.c (xm_set_menu_resources_from_menu_face): Change
	#if 0 to #ifndef LESSTIF_VERSION.

426 427 428
	* xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
	removing button grabs.

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

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

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

Gerd Moellmann's avatar
Gerd Moellmann committed
437 438 439 440 441 442
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.

443 444 445 446 447
2001-03-12  Eli Zaretskii  <eliz@is.elta.co.il>

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

448 449 450 451 452
2001-03-12  Gerd Moellmann  <gerd@gnu.org>

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

453 454
2001-03-09  Gerd Moellmann  <gerd@gnu.org>

455 456 457 458 459 460 461 462 463 464 465 466 467
	* dispextern.h (string_buffer_position): Add prototype.

	* xdisp.c (string_buffer_position, display_prop_string_p) 
	(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.

Gerd Moellmann's avatar
Gerd Moellmann committed
468 469 470 471 472 473 474 475
	* keyboard.c (make_lispy_event, make_lispy_movement): Adjust
	calls to buffer_posn_from_coords to new format.

	* dispextern.h (buffer_posn_from_coords): Adjust prototype.

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

476 477 478
	* 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
479 480
2001-03-09  Kenichi Handa  <handa@etl.go.jp>

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

484 485 486 487 488
2001-03-08  Andrew Innes  <andrewi@gnu.org>

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

489 490
2001-03-08  Gerd Moellmann  <gerd@gnu.org>

491 492 493
	* xdisp.c (handle_display_prop): Use it->w->buffer as object,
	instead of nil.

494 495 496 497 498 499 500 501 502 503 504 505 506 507
	* xterm.c (note_mouse_highlight): Handle mouse-face and 
	help-echo in strings.
	(x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
	(fast_find_string_pos): New function.

	* xdisp.c (handle_face_prop, face_before_or_after_it_pos) 
	(display_string): Call face_at_string_position with new 
	parameter.

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

	* dispextern.h (face_at_string_position): Change prototype.

Gerd Moellmann's avatar
Gerd Moellmann committed
508 509 510
	* dired.c (directory_files_internal): Handle EAGAIN more
	efficiently.

511 512 513
	* keyboard.c (make_lispy_event): Avoid generating drag events
	if the mouse hasn't actually moved to another buffer position.
	
514 515
2001-03-08  Dave Love  <fx@gnu.org>

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

518 519 520 521
2001-03-08  Gerd Moellmann  <gerd@gnu.org>

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

Kenichi Handa's avatar
Kenichi Handa committed
522 523 524 525 526 527 528
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.
Kenichi Handa's avatar
Kenichi Handa committed
529 530
	(detect_coding_mask): Fix the incorrect handling of arg
	MULTIBYTEP.
Kenichi Handa's avatar
Kenichi Handa committed
531 532
	(Fdetect_coding_string): Likewise.

Stefan Monnier's avatar
Stefan Monnier committed
533 534 535 536 537
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
538 539 540 541 542 543 544 545 546 547 548
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.

549 550
2001-03-07  Gerd Moellmann  <gerd@gnu.org>

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

553 554 555 556
	* process.c (Fset_process_filter): Don't crash if the input
	file descriptor of PROCESS is closed.
	(Fset_process_window_size): Likewise.

557 558 559 560 561
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.

562 563 564 565 566 567 568 569
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.

570 571 572 573
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
574 575
2001-03-06  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
576 577 578 579
	* 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.
580
	(x_term_init): Initialize the x_display_info's mouse_face_overlay.
Gerd Moellmann's avatar
Gerd Moellmann committed
581 582 583 584 585 586 587 588

	* 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
589 590 591
	* xdisp.c (redisplay_internal): Set windows_or_buffers_changed
	if face_change_count is non-zero.

Kenichi Handa's avatar
Kenichi Handa committed
592 593 594 595 596
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
597 598
2001-03-05  Dave Love  <fx@gnu.org>

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

601 602 603 604 605
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
606 607 608 609
2001-03-05  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (syms_of_coding): Docstring modified.

Kenichi Handa's avatar
Kenichi Handa committed
610
2001-03-05  Kenichi Handa  <handa@etl.go.jp>
Kenichi Handa's avatar
Kenichi Handa committed
611 612 613

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

Eli Zaretskii's avatar
Eli Zaretskii committed
616 617 618 619 620 621 622 623 624 625
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
626 627 628 629 630 631
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
632 633 634 635 636 637 638 639 640 641 642 643 644 645
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,
	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
	in effect.

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

646 647
2001-03-02  Gerd Moellmann  <gerd@gnu.org>

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

651 652 653
	* editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]: 
	Accept only alphanumeric time zone names.

654 655 656 657 658
	* 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.
	
659 660 661 662 663
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
664 665 666 667
2001-03-01  Dave Love  <fx@gnu.org>

	* ccl.c (Fccl_execute): Doc fix.

668 669
2001-03-01  Gerd Moellmann  <gerd@gnu.org>

670 671 672
	* 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
673 674 675 676
	* 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
677
	* xfns.c (x_set_foreground_color): Set the background of the cursor GC.
678
	
679 680 681
	* xfns.c (x_set_font): Handle case of x_new_fontset returning the
	same name as before, although there was a change in fontsets.

682 683
2001-02-28  Ken Raeburn  <raeburn@gnu.org>

684 685
	* lisp.h (Fframe_parameter): Declare.

686
	* window.c (set_window_buffer): Field vscroll is an int, not a
687
	Lisp_Object.
688

689 690
2001-02-28  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
691 692 693 694 695 696
	* 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.

697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727
	* 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.
	(allocate_vector, allocate_hash_table, allocate_window) 
	(allocate_frame, allocate_process, allocate_other_vector): New
	functions.
	(Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
	(mark_maybe_pointer): New function.
	(mark_memory): Also mark Lisp data to which only pointers 
	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
728 729 730 731 732 733 734 735 736 737 738 739
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.
	(ccl_driver) <CCL_WriteMultibyteChar2>: Use
	CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
	<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
740 741 742 743 744 745 746 747
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
748 749 750 751
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
752 753 754 755
2001-02-24  Andrew Innes  <andrewi@gnu.org>

	* makefile.w32-in: Update copyright notice.

756 757 758 759
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
760 761
2001-02-24  Kenichi Handa  <handa@etl.go.jp>

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

Kenichi Handa's avatar
Kenichi Handa committed
764 765 766
	* 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
767 768 769 770 771 772 773 774 775 776 777 778 779 780
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
	background face to the end of the drawing area in the text area,
	only.
	(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
781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804
2001-02-22  Andrew Innes  <andrewi@gnu.org>

	* makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header
	files.
	($(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.
	($(BLD)/dispnew.$(O)): 
	($(BLD)/editfns.$(O)): 
	($(BLD)/fileio.$(O)): 
	($(BLD)/filelock.$(O)): 
	($(BLD)/keyboard.$(O)): 
	($(BLD)/w32proc.$(O)): 
	($(BLD)/process.$(O)): 
	($(BLD)/sysdep.$(O)): Ditto.

805 806
2001-02-22  Gerd Moellmann  <gerd@gnu.org>

807 808 809 810
	* 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.
	
811 812 813 814 815 816 817 818 819
	* 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.
	(with_echo_area_buffer_unwind_data, display_menu_bar) 
	(decode_mode_spec_coding): Use AREF and ASIZE.

Gerd Moellmann's avatar
Gerd Moellmann committed
820 821 822 823
	* 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.
	
Gerd Moellmann's avatar
Gerd Moellmann committed
824 825
	* unexencap.c, unexfx2800.c: Files removed.

826 827 828 829
	* 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
830 831
2001-02-21  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
832 833 834 835 836
	* 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.

Gerd Moellmann's avatar
Gerd Moellmann committed
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
	* keyboard.c, minibuf.c, lread.c, fns.c, eval.c: Use
	display_hourglass_p, start_hourglass, cancel_hourglass instead of
	the old names.

	* w32term.h (struct x_output): Rename busy_cursor to
	hourglass_cursor, busy_window to hourglass_window, busy_p to
	hourglass_p.

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

	* xterm.h (struct x_output): Rename busy_cursor to
	hourglass_cursor, busy_window to hourglass_window, busy_p to
	hourglass_p.

	* 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*.

870 871
2001-02-20  Gerd Moellmann  <gerd@gnu.org>

872 873 874
	* 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
875 876 877
	* window.c (Fwindow_end): Handle case that WINDOW's buffer is not
	equal to the current buffer.

878 879 880 881
	* 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.

882 883
2001-02-19  Gerd Moellmann  <gerd@gnu.org>

884 885 886 887 888 889 890 891 892 893
	* 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.

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

894 895 896 897 898
	* 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.

Gerd Moellmann's avatar
Gerd Moellmann committed
899 900 901 902 903 904
	* xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update): 
	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.

905 906 907 908 909 910
	* 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.

911 912 913
	* emacs.c (malloc_initialize_hook): Handle case thet `environ'
	is null.

914 915 916
	* ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
	to the start of the file.

917 918
2001-02-16  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
919
	* window.c (set_window_buffer): Fix last change.
Gerd Moellmann's avatar
Gerd Moellmann committed
920
	
Gerd Moellmann's avatar
Gerd Moellmann committed
921 922
	* window.c (set_window_buffer): Set window's vscroll to 0.

923 924 925
	* window.c (coordinates_in_window): Increase width of area
	where the vertical line can be dragged.

Gerd Moellmann's avatar
Gerd Moellmann committed
926 927 928 929
	* 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
930 931 932 933 934 935 936 937 938 939 940
	* 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.

941 942 943
	* dired.c (directory_files_internal): Set result list to nil
	before retrying.

944 945 946 947 948 949
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.

950 951 952 953
2001-02-15  Eli Zaretskii  <eliz@is.elta.co.il>

	* textprop.c (Fset_text_properties): Doc fix.

954 955 956 957
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
958 959 960 961
2001-02-14  Dave Love  <fx@gnu.org>

	* coding.c: Doc and message fixes.

962 963 964 965 966
2001-02-14  Andrew Innes  <andrewi@gnu.org>

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

967 968 969 970
2001-02-14  Gerd Moellmann  <gerd@gnu.org>

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

971 972
2001-02-13  Gerd Moellmann  <gerd@gnu.org>

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

976 977 978
	* window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
	the selected window if it is showing the buffer in question.

979 980 981
	* dired.c (directory_files_internal): Initialize errno.
	(toplevel): Include errno.h.

982 983 984 985 986 987 988
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.

989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007
2001-02-12  Andrew Innes  <andrewi@gnu.org>

	The following changes are to draw box lines inside characters area
	if line-width is negative.
	
	* 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
1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031
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.
	
	* 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.
	(realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be
	negative.

1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061
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.
	(x_set_tool_bar_lines): Do nothing if frame is
	minibuffer-only,
	(Fx_create_frame): Add the tool bar height to the frame
	height.
	(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.

1062 1063 1064 1065
2001-02-09  ShengHuo ZHU  <zsh@cs.rochester.edu>

	* charset.c (Fstring): A typo.

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

Kenichi Handa's avatar
Kenichi Handa committed
1068 1069 1070 1071 1072 1073
	* 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
1074 1075 1076 1077
	* coding.c (code_convert_region): After detecting a coding, if
	nothing found, set coding->composing to COMPOSITION_NO.
	(decode_coding_string): Likewise.

1078 1079 1080 1081 1082
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
1083 1084 1085 1086 1087 1088 1089 1090 1091 1092
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.

1093 1094 1095 1096 1097 1098
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.

1099 1100 1101 1102 1103
2001-02-06  Gerd Moellmann  <gerd@gnu.org>

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

1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125
2001-02-05  Gerd Moellmann  <gerd@gnu.org>

	* xfaces.c (split_font_name): Compute numeric value of
	XLFD_AVGWIDTH.
	(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.

	* dispextern.h (enum lface_attribute_index): Add
	LFACE_AVGWIDTH_INDEX (invisible from Lisp).
	
Dave Love's avatar
Dave Love committed
1126 1127 1128 1129
2001-02-05  Dave Love  <fx@gnu.org>

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

Andrew Innes's avatar
Andrew Innes committed
1130 1131 1132 1133 1134 1135
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
1136 1137
2001-02-05  Gerd Moellmann  <gerd@gnu.org>

1138 1139 1140
	* xterm.c (x_display_and_set_cursor): Check for the focus
	frame's selected window instead of selected_window.

1141 1142 1143 1144
	* xdisp.c (try_scrolling): If point is in the line below the
	window, make sure to move the iterator at least a canonical
	char height down.

Gerd Moellmann's avatar
Gerd Moellmann committed
1145 1146 1147
	* window.c (Fmove_to_window_line): Don't add 1 if window is
	vscrolled.

Kenichi Handa's avatar
Kenichi Handa committed
1148 1149 1150 1151 1152 1153 1154 1155
2001-02-05  Kenichi Handa  <handa@etl.go.jp>

	* ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.  If
	invalid, execute CCL_INVALID_CMD.
	(ccl_driver): If the CCL program is terminated because of
	CCL_STAT_INVALID_CMD, copy the remaining source data to the
	destination instead of throwing them away.

Gerd Moellmann's avatar
Gerd Moellmann committed
1156 1157
2001-02-02  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1158 1159 1160
	* xfns.c (x_set_font): If font hasn't changed, avoid recomputing
	faces and other things.

Gerd Moellmann's avatar
Gerd Moellmann committed
1161 1162 1163
	* xdisp.c (get_next_display_element): Fix case of empty
	display table entry.

1164 1165
2001-02-02  Eli Zaretskii  <eliz@is.elta.co.il>

1166 1167
	* editfns.c (Fconstrain_to_field): Doc fix.

1168 1169 1170
	* xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
	into `thoroughly', to make it consistent with the doc string.

1171 1172
	* window.c (Fenlarge_window, Fshrink_window): Doc fix.

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

1175 1176 1177
	* search.c (search_buffer): Call set_search_regs with a byte
	position, not a character position.

Gerd Moellmann's avatar
Gerd Moellmann committed
1178 1179 1180
	* xfns.c (x_set_tool_bar_lines): Do nothing if frame is
	minibuffer-only,

1181 1182 1183 1184
2001-02-01  Eli Zaretskii  <eliz@is.elta.co.il>

	* frame.c (Fmodify_frame_parameters): Doc fix.

1185 1186
2001-01-31  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1187 1188 1189
	* frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
	identifier which is not reserved by Standard C.
	
1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205
	* 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.

1206 1207 1208 1209
2001-01-31  Eli Zaretskii  <eliz@is.elta.co.il>

	* editfns.c (Fformat_time_string): Doc fix.

Stefan Monnier's avatar
Stefan Monnier committed
1210 1211 1212 1213 1214
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).

1215 1216
2001-01-31  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1217 1218 1219 1220 1221 1222 1223 1224
	* 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.

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

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

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

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

Gerd Moellmann's avatar
Gerd Moellmann committed
1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244
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.

1245 1246 1247 1248 1249
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
1250 1251 1252 1253 1254
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
1255 1256 1257 1258
2001-01-29  Eli Zaretskii  <eliz@is.elta.co.il>

	* textprop.c (Fset_text_properties): Doc fix.

1259 1260 1261 1262
2001-01-29  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (forward_to_next_line_start): Remove xassert.

1263 1264
2001-01-29  Jason Rumney  <jasonr@gnu.org>

1265
	* w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
1266 1267
	returning without releasing it.

Kenichi Handa's avatar
Kenichi Handa committed
1268 1269 1270 1271 1272
2001-01-29  Kenichi Handa  <handa@etl.go.jp>

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

1273 1274
2001-01-28  Andrew Choi  <akochoi@i-cable.com>

1275 1276 1277
	* fontset.c (fontset_pattern_regexp): Allocate three more bytes to
	regex for '^', '$', and '\0'.

1278 1279 1280 1281 1282 1283
	* 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
1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295
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.

1296 1297 1298 1299 1300
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
1301 1302
2001-01-26  Gerd Moellmann  <gerd@gnu.org>

1303 1304 1305 1306
	* 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.

1307 1308 1309
	* frame.c (do_switch_frame): If selected frame has a mini-window,
	resize that to exact size.

1310 1311
	* dispnew.c (adjust_glyph_matrix): Always clear desired matrices.

Gerd Moellmann's avatar
Gerd Moellmann committed
1312 1313 1314
	* xdisp.c (display_line): Simplify check for glyphs fitting
	entirely in the line.

Gerd Moellmann's avatar
Gerd Moellmann committed
1315 1316
	* xfns.c (xic_style): New variable.
	(create_frame_xic): Move static variable to global scope for
1317
	the case that `static' gets defined away.
Gerd Moellmann's avatar
Gerd Moellmann committed
1318

Kenichi Handa's avatar
Kenichi Handa committed
1319 1320 1321 1322 1323 1324 1325 1326 1327
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
1328 1329
2001-01-25  Gerd Moellmann  <gerd@gnu.org>

1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342
	* 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
1343 1344 1345
	* 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
1346 1347
2001-01-25  Dave Love  <fx@gnu.org>

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

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

1352 1353
2001-01-25  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1354 1355 1356 1357
	* 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.

1358 1359
	* lread.c (read_integer): Use type EMACS_INT instead of int.

Eli Zaretskii's avatar
Eli Zaretskii committed
1360 1361 1362 1363
2001-01-25  Eli Zaretskii  <eliz@is.elta.co.il>

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

Kenichi Handa's avatar
Kenichi Handa committed
1364 1365 1366 1367
2001-01-25  Kenichi Handa  <handa@etl.go.jp>

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

1368
	* ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
Kenichi Handa's avatar
Kenichi Handa committed
1369 1370 1371 1372 1373 1374 1375 1376 1377 1378
	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
1379 1380 1381 1382 1383
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'.

1384 1385 1386 1387 1388 1389
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
1390 1391 1392 1393 1394
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.

1395 1396
2001-01-24  Gerd Moellmann  <gerd@gnu.org>

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

1400 1401 1402 1403 1404 1405
	* 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
1406 1407
2001-01-24  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
1408