ChangeLog 379 KB
Newer Older
Gerd Moellmann's avatar
Gerd Moellmann committed
1 2
2001-03-22  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
3 4 5 6 7 8
	* 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.

9 10 11 12 13 14 15 16 17 18 19 20
	* 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.
	(realize_basic_faces) [USE_X_TOOLKIT]: Call
	x_set_menu_face_resources.

	* dispextern.h (x_set_menu_resources_from_menu_face): Remove
	prototype.

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

Gerd Moellmann's avatar
Gerd Moellmann committed
21 22 23 24 25 26 27
	* xfaces.c (xm_set_menu_resources_from_menu_face): Remove
	#ifndef LESSTIF_VERSION.

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

28 29 30 31 32 33 34
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
35 36
2001-03-20  Gerd Moellmann  <gerd@gnu.org>

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

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

41 42
2001-03-19  Gerd Moellmann  <gerd@gnu.org>

43 44 45
	* 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
46 47 48 49
	* xfns.c (x_create_tip_frame): Add parameter TEXT.  Set the
	tip frame's root window buffer to *tip* right after creating
	the frame.

50 51 52
	* xdisp.c (highlight_trailing_whitespace): Glyphs whose object
	is an integer don't have to be for space characters.

53 54 55 56 57 58
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
59 60 61 62 63
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
64 65
2001-03-15  Gerd Moellmann  <gerd@gnu.org>

66 67 68
	* keyboard.c (timer_check): Preserve the value of deactivate-mark.
	(command_loop_1): Undo last change.

69 70
	* xterm.c (fast_find_position): Return the correct vpos.

Gerd Moellmann's avatar
Gerd Moellmann committed
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
	* 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.

89 90
2001-03-14  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
	* 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
106 107 108 109
	* frame.c (Fframe_parameters): In the `buffer-list' frame
	parameter, store the buffer list of FRAME, not the list of the
	selected frame.

110 111 112
	* 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.

113 114 115 116 117 118
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.

119 120
2001-03-13  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
121 122 123 124
	* 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
125 126 127
	* xterm.c (XTread_socket) <LeaveNotify, EnterNotify>: Remove
	workaround code for LessTif; it doesn't work anymore.
	
128
	* xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
129
	Xm/ScrollBarP.h.
Gerd Moellmann's avatar
Gerd Moellmann committed
130

131 132 133 134
	* 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
135 136 137
	* xfaces.c (xm_set_menu_resources_from_menu_face): Change
	#if 0 to #ifndef LESSTIF_VERSION.

138 139 140
	* xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
	removing button grabs.

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

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

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

Gerd Moellmann's avatar
Gerd Moellmann committed
149 150 151 152 153 154
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.

155 156 157 158 159
2001-03-12  Eli Zaretskii  <eliz@is.elta.co.il>

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

160 161 162 163 164
2001-03-12  Gerd Moellmann  <gerd@gnu.org>

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

165 166
2001-03-09  Gerd Moellmann  <gerd@gnu.org>

167 168 169 170 171 172 173 174 175 176 177 178 179
	* 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
180 181 182 183 184 185 186 187
	* 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.

188 189 190
	* 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
191 192
2001-03-09  Kenichi Handa  <handa@etl.go.jp>

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

196 197 198 199 200
2001-03-08  Andrew Innes  <andrewi@gnu.org>

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

201 202
2001-03-08  Gerd Moellmann  <gerd@gnu.org>

203 204 205
	* xdisp.c (handle_display_prop): Use it->w->buffer as object,
	instead of nil.

206 207 208 209 210 211 212 213 214 215 216 217 218 219
	* 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
220 221 222
	* dired.c (directory_files_internal): Handle EAGAIN more
	efficiently.

223 224 225
	* keyboard.c (make_lispy_event): Avoid generating drag events
	if the mouse hasn't actually moved to another buffer position.
	
226 227
2001-03-08  Dave Love  <fx@gnu.org>

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

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

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

Kenichi Handa's avatar
Kenichi Handa committed
234 235 236 237 238 239 240
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
241 242
	(detect_coding_mask): Fix the incorrect handling of arg
	MULTIBYTEP.
Kenichi Handa's avatar
Kenichi Handa committed
243 244
	(Fdetect_coding_string): Likewise.

Stefan Monnier's avatar
Stefan Monnier committed
245 246 247 248 249
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
250 251 252 253 254 255 256 257 258 259 260
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.

261 262
2001-03-07  Gerd Moellmann  <gerd@gnu.org>

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

265 266 267 268
	* process.c (Fset_process_filter): Don't crash if the input
	file descriptor of PROCESS is closed.
	(Fset_process_window_size): Likewise.

269 270 271 272 273
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.

274 275 276 277 278 279 280 281
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.

282 283 284 285
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
286 287
2001-03-06  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
288 289 290 291
	* 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.
292
	(x_term_init): Initialize the x_display_info's mouse_face_overlay.
Gerd Moellmann's avatar
Gerd Moellmann committed
293 294 295 296 297 298 299 300

	* 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
301 302 303
	* xdisp.c (redisplay_internal): Set windows_or_buffers_changed
	if face_change_count is non-zero.

Kenichi Handa's avatar
Kenichi Handa committed
304 305 306 307 308
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
309 310
2001-03-05  Dave Love  <fx@gnu.org>

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

313 314 315 316 317
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
318 319 320 321
2001-03-05  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (syms_of_coding): Docstring modified.

Kenichi Handa's avatar
Kenichi Handa committed
322
2001-03-05  Kenichi Handa  <handa@etl.go.jp>
Kenichi Handa's avatar
Kenichi Handa committed
323 324 325

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

Eli Zaretskii's avatar
Eli Zaretskii committed
328 329 330 331 332 333 334 335 336 337
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
338 339 340 341 342 343
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
344 345 346 347 348 349 350 351 352 353 354 355 356 357
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.

358 359
2001-03-02  Gerd Moellmann  <gerd@gnu.org>

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

363 364 365
	* editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]: 
	Accept only alphanumeric time zone names.

366 367 368 369 370
	* 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.
	
371 372 373 374 375
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
376 377 378 379
2001-03-01  Dave Love  <fx@gnu.org>

	* ccl.c (Fccl_execute): Doc fix.

380 381
2001-03-01  Gerd Moellmann  <gerd@gnu.org>

382 383 384
	* 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
385 386 387 388
	* 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
389
	* xfns.c (x_set_foreground_color): Set the background of the cursor GC.
390
	
391 392 393
	* xfns.c (x_set_font): Handle case of x_new_fontset returning the
	same name as before, although there was a change in fontsets.

394 395
2001-02-28  Ken Raeburn  <raeburn@gnu.org>

396 397
	* lisp.h (Fframe_parameter): Declare.

398
	* window.c (set_window_buffer): Field vscroll is an int, not a
399
	Lisp_Object.
400

401 402
2001-02-28  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
403 404 405 406 407 408
	* 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.

409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439
	* 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
440 441 442 443 444 445 446 447 448 449 450 451
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
452 453 454 455 456 457 458 459
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
460 461 462 463
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
464 465 466 467
2001-02-24  Andrew Innes  <andrewi@gnu.org>

	* makefile.w32-in: Update copyright notice.

468 469 470 471
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
472 473
2001-02-24  Kenichi Handa  <handa@etl.go.jp>

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

Kenichi Handa's avatar
Kenichi Handa committed
476 477 478
	* 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
479 480 481 482 483 484 485 486 487 488 489 490 491 492
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
493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516
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.

517 518
2001-02-22  Gerd Moellmann  <gerd@gnu.org>

519 520 521 522
	* 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.
	
523 524 525 526 527 528 529 530 531
	* 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
532 533 534 535
	* 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
536 537
	* unexencap.c, unexfx2800.c: Files removed.

538 539 540 541
	* 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
542 543
2001-02-21  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
544 545 546 547 548
	* 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
549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581
	* 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*.

582 583
2001-02-20  Gerd Moellmann  <gerd@gnu.org>

584 585 586
	* 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
587 588 589
	* window.c (Fwindow_end): Handle case that WINDOW's buffer is not
	equal to the current buffer.

590 591 592 593
	* 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.

594 595
2001-02-19  Gerd Moellmann  <gerd@gnu.org>

596 597 598 599 600 601 602 603 604 605
	* 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.

606 607 608 609 610
	* 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
611 612 613 614 615 616
	* 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.

617 618 619 620 621 622
	* 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.

623 624 625
	* emacs.c (malloc_initialize_hook): Handle case thet `environ'
	is null.

626 627 628
	* ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
	to the start of the file.

629 630
2001-02-16  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
631
	* window.c (set_window_buffer): Fix last change.
Gerd Moellmann's avatar
Gerd Moellmann committed
632
	
Gerd Moellmann's avatar
Gerd Moellmann committed
633 634
	* window.c (set_window_buffer): Set window's vscroll to 0.

635 636 637
	* window.c (coordinates_in_window): Increase width of area
	where the vertical line can be dragged.

Gerd Moellmann's avatar
Gerd Moellmann committed
638 639 640 641
	* 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
642 643 644 645 646 647 648 649 650 651 652
	* 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.

653 654 655
	* dired.c (directory_files_internal): Set result list to nil
	before retrying.

656 657 658 659 660 661
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.

662 663 664 665
2001-02-15  Eli Zaretskii  <eliz@is.elta.co.il>

	* textprop.c (Fset_text_properties): Doc fix.

666 667 668 669
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
670 671 672 673
2001-02-14  Dave Love  <fx@gnu.org>

	* coding.c: Doc and message fixes.

674 675 676 677 678
2001-02-14  Andrew Innes  <andrewi@gnu.org>

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

679 680 681 682
2001-02-14  Gerd Moellmann  <gerd@gnu.org>

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

683 684
2001-02-13  Gerd Moellmann  <gerd@gnu.org>

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

688 689 690
	* window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
	the selected window if it is showing the buffer in question.

691 692 693
	* dired.c (directory_files_internal): Initialize errno.
	(toplevel): Include errno.h.

694 695 696 697 698 699 700
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.

701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719
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
720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743
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.

744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773
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.

774 775 776 777
2001-02-09  ShengHuo ZHU  <zsh@cs.rochester.edu>

	* charset.c (Fstring): A typo.

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

Kenichi Handa's avatar
Kenichi Handa committed
780 781 782 783 784 785
	* 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
786 787 788 789
	* coding.c (code_convert_region): After detecting a coding, if
	nothing found, set coding->composing to COMPOSITION_NO.
	(decode_coding_string): Likewise.

790 791 792 793 794
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
795 796 797 798 799 800 801 802 803 804
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.

805 806 807 808 809 810
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.

811 812 813 814 815
2001-02-06  Gerd Moellmann  <gerd@gnu.org>

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

816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837
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
838 839 840 841
2001-02-05  Dave Love  <fx@gnu.org>

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

Andrew Innes's avatar
Andrew Innes committed
842 843 844 845 846 847
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
848 849
2001-02-05  Gerd Moellmann  <gerd@gnu.org>

850 851 852
	* xterm.c (x_display_and_set_cursor): Check for the focus
	frame's selected window instead of selected_window.

853 854 855 856
	* 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
857 858 859
	* window.c (Fmove_to_window_line): Don't add 1 if window is
	vscrolled.

Kenichi Handa's avatar
Kenichi Handa committed
860 861 862 863 864 865 866 867
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
868 869
2001-02-02  Gerd Moellmann  <gerd@gnu.org>

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

Gerd Moellmann's avatar
Gerd Moellmann committed
873 874 875
	* xdisp.c (get_next_display_element): Fix case of empty
	display table entry.

876 877
2001-02-02  Eli Zaretskii  <eliz@is.elta.co.il>

878 879
	* editfns.c (Fconstrain_to_field): Doc fix.

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

883 884
	* window.c (Fenlarge_window, Fshrink_window): Doc fix.

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

887 888 889
	* search.c (search_buffer): Call set_search_regs with a byte
	position, not a character position.

Gerd Moellmann's avatar
Gerd Moellmann committed
890 891 892
	* xfns.c (x_set_tool_bar_lines): Do nothing if frame is
	minibuffer-only,

893 894 895 896
2001-02-01  Eli Zaretskii  <eliz@is.elta.co.il>

	* frame.c (Fmodify_frame_parameters): Doc fix.

897 898
2001-01-31  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
899 900 901
	* frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
	identifier which is not reserved by Standard C.
	
902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917
	* 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.

918 919 920 921
2001-01-31  Eli Zaretskii  <eliz@is.elta.co.il>

	* editfns.c (Fformat_time_string): Doc fix.

Stefan Monnier's avatar
Stefan Monnier committed
922 923 924 925 926
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).

927 928
2001-01-31  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
929 930 931 932 933 934 935 936
	* 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.

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

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

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

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

Gerd Moellmann's avatar
Gerd Moellmann committed
945 946 947 948 949 950 951 952 953 954 955 956
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.

957 958 959 960 961
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
962 963 964 965 966
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
967 968 969 970
2001-01-29  Eli Zaretskii  <eliz@is.elta.co.il>

	* textprop.c (Fset_text_properties): Doc fix.

971 972 973 974
2001-01-29  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (forward_to_next_line_start): Remove xassert.

975 976
2001-01-29  Jason Rumney  <jasonr@gnu.org>

977
	* w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
978 979
	returning without releasing it.

Kenichi Handa's avatar
Kenichi Handa committed
980 981 982 983 984
2001-01-29  Kenichi Handa  <handa@etl.go.jp>

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

985 986
2001-01-28  Andrew Choi  <akochoi@i-cable.com>

987 988 989
	* fontset.c (fontset_pattern_regexp): Allocate three more bytes to
	regex for '^', '$', and '\0'.

990 991 992 993 994 995
	* 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
996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007
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.

1008 1009 1010 1011 1012
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
1013 1014
2001-01-26  Gerd Moellmann  <gerd@gnu.org>

1015 1016 1017 1018
	* 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.

1019 1020 1021
	* frame.c (do_switch_frame): If selected frame has a mini-window,
	resize that to exact size.

1022 1023
	* dispnew.c (adjust_glyph_matrix): Always clear desired matrices.

Gerd Moellmann's avatar
Gerd Moellmann committed
1024 1025 1026
	* xdisp.c (display_line): Simplify check for glyphs fitting
	entirely in the line.

Gerd Moellmann's avatar
Gerd Moellmann committed
1027 1028
	* xfns.c (xic_style): New variable.
	(create_frame_xic): Move static variable to global scope for
1029
	the case that `static' gets defined away.
Gerd Moellmann's avatar
Gerd Moellmann committed
1030

Kenichi Handa's avatar
Kenichi Handa committed
1031 1032 1033 1034 1035 1036 1037 1038 1039
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
1040 1041
2001-01-25  Gerd Moellmann  <gerd@gnu.org>

1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054
	* 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
1055 1056 1057
	* 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
1058 1059
2001-01-25  Dave Love  <fx@gnu.org>

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

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

1064 1065
2001-01-25  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1066 1067 1068 1069
	* 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.

1070 1071
	* lread.c (read_integer): Use type EMACS_INT instead of int.

Eli Zaretskii's avatar
Eli Zaretskii committed
1072 1073 1074 1075
2001-01-25  Eli Zaretskii  <eliz@is.elta.co.il>

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

Kenichi Handa's avatar
Kenichi Handa committed
1076 1077 1078 1079
2001-01-25  Kenichi Handa  <handa@etl.go.jp>

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

1080
	* ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
Kenichi Handa's avatar
Kenichi Handa committed
1081 1082 1083 1084 1085 1086 1087 1088 1089 1090
	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
1091 1092 1093 1094 1095
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'.

1096 1097 1098 1099 1100 1101
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
1102 1103 1104 1105 1106
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.

1107 1108
2001-01-24  Gerd Moellmann  <gerd@gnu.org>

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

1112 1113 1114 1115 1116 1117
	* 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
1118 1119
2001-01-24  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
1120 1121 1122 1123 1124 1125
	* ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
	a workaround for SunOS 4's cc.
	(CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
	(CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
	(ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
	statement.
Kenichi Handa's avatar
Kenichi Handa committed
1126

Gerd Moellmann's avatar
Gerd Moellmann committed
1127 1128 1129 1130 1131 1132 1133 1134
2001-01-23  Gerd Moellmann  <gerd@gnu.org>

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

Eli Zaretskii's avatar
Eli Zaretskii committed
1135 1136 1137 1138 1139
2001-01-23  Eli Zaretskii  <eliz@is.elta.co.il>

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

Kenichi Handa's avatar
Kenichi Handa committed
1140 1141 1142 1143 1144
2001-01-23  Kenichi Handa  <handa@etl.go.jp>

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

1145 1146
2001-01-22  Gerd Moellmann  <gerd@gnu.org>

1147
	* xdisp.c (build_desired_tool_bar_string): Make sure we have
Gerd Moellmann's avatar
Gerd Moellmann committed
1148
	a desired tool bar string, even if there are no tool bar
1149 1150
	items.
	
1151 1152 1153
	* xdisp.c (Ftool_bar_lines_needed): New function.
	(syms_of_xdisp): Defsubr it.

1154 1155 1156
	* editfns.c (Fformat): Don't extend text properties from arguments
	to padding chars in the result.

1157 1158 1159 1160
2001-01-20  Eli Zaretskii  <eliz@is.elta.co.il>

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

1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188
2001-01-20  Andrew Innes  <andrewi@gnu.org>

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

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

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

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

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

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

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

Kenichi Handa's avatar
Kenichi Handa committed
1189 1190 1191 1192
2001-01-20  Kenichi Handa  <handa@etl.go.jp>

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

Andrew Innes's avatar
Andrew Innes committed
1193 1194 1195 1196 1197
2001-01-19  Andrew Innes  <andrewi@gnu.org>

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

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

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

Gerd Moellmann's avatar
Gerd Moellmann committed
1202 1203 1204
	* xdisp.c (message_dolog, message2, message2_nolog): Rename
	parameter LEN to NBYTES.

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

Kenichi Handa's avatar
Kenichi Handa committed
1207 1208 1209 1210 1211 1212 1213 1214 1215
	* charset.c (strwidth): Use c_string_width.
	(c_string_width): New function.
	(lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
	Caller changed.

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

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

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

Kenichi Handa's avatar
Kenichi Handa committed
1218 1219 1220 1221 1222 1223 1224
	* xdisp.c (store_frame_title): Pay attention to width of non-ASCII
	characters by calling c_string_width.
	(x_consider_frame_title): Get byte length of frame tile string
	correctly.
	(display_mode_element): Pay attention to width of non-ASCII
	characters by calling strwidth.

1225 1226
2001-01-18  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1227 1228 1229 1230 1231 1232 1233
	* xfns.c (Qcancel_timer): New variable.
	(syms_of_xfns): Initialize and staticpro it.
	(Fx_hide_tip, Fx_show_tip): Use it.
	(Fx_show_tip): Make sure to set tip_timer to nil when canceling
	the timer.
	(toplevel): Lisp code for generating parts of syms_of_xfns removed.

Gerd Moellmann's avatar
Gerd Moellmann committed
1234 1235 1236 1237
	* window.c (Fwindow_live_p): Use WINDOW_LIVE_P.

	* window.h (WINDOW_LIVE_P): New macro.

1238 1239 1240 1241
	* window.c (window_size_fixed): New variable.
	(syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
	the doc string.

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

1248 1249 1250 1251 1252
	* xterm.c (x_initialize): Set char_ins_del_ok to 1.

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

Kenichi Handa's avatar
Kenichi Handa committed
1253 1254 1255 1256
2001-01-18  Kenichi Handa  <handa@etl.go.jp>

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

1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279
2001-01-18  Jason Rumney  <jasonr@gnu.org>

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

1280 1281
2001-01-17  Gerd Moellmann  <gerd@gnu.org>

1282 1283 1284 1285 1286
	* xdisp.c (forward_to_next_line_start): Avoid calling
	get_next_display_element when the newline is already found.  This
	may change the iterator's position, when its current position is
	equal to the iterator's stop_charpos.

1287 1288 1289
	* dispnew.c (direct_output_for_insert): If char_ins_del_ok is
	zero, use this method only at the end of a line.

1290 1291 1292 1293
	* xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the 
	call to x_list_fonts.  Call x_list_fonts with SIZE -1 only
	if SCALABLE_FONTS_P is set.
	
1294 1295 1296
	* xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
	so that scalable fonts are included.

1297 1298 1299 1300 1301 1302 1303
	* xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
	In the cache, use a key containing the information if scalable
	fonts are included.
	(x_load_font): Adapt to change of keys in the font cache.

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

1307 1308 1309 1310
	* xterm.c (x_list_fonts): Ensure caching font information when
	called for a null frame, which is the case frequently when Emacs
	starts.

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

Gerd Moellmann's avatar
Gerd Moellmann committed
1313 1314 1315 1316 1317 1318 1319
	* xfns.c (QCconversion): Replaces QCalgorithm.

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

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

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

1325 1326 1327 1328 1329 1330
2001-01-17  Andrew Innes  <andrewi@gnu.org>

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

Kenichi Handa's avatar
Kenichi Handa committed
1331 1332 1333 1334 1335
2001-01-17  Kenichi Handa  <handa@etl.go.jp>

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

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

Gerd Moellmann's avatar
Gerd Moellmann committed
1338 1339 1340 1341 1342
	* window.c (Fset_window_hscroll): Don't set window's min_hscroll
	here.
	(Fscroll_right, Fscroll_left): Set it here instead, if called
	interactively.

1343 1344 1345
	* buffer.c (Fset_buffer_modified_p): Set buffer's
	prevent_redisplay_optimizations_p flag.

Gerd Moellmann's avatar
Gerd Moellmann committed
1346 1347 1348 1349 1350 1351 1352 1353 1354 1355
	* dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
	* sysdep.c, vmsproc.c, xselect.c: Call
	redisplay_preserve_echo_area with additional arg.

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

Kenichi Handa's avatar
Kenichi Handa committed
1356 1357 1358 1359
2001-01-16  Kenichi Handa  <handa@etl.go.jp>

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

1363 1364
2001-01-15  Gerd Moellmann  <gerd@gnu.org>

1365 1366 1367
	* xterm.c (x_set_mouse_face_gc): If the last used mouse face
	has gone in the meantime, use face MOUSE_FACE_ID.
	
1368 1369 1370 1371
	* xterm.c (x_connection_closed) [USE_X_TOOLKIT]: If
	x_display_info_for_display returns null, don't try to close
	the display; we didn't open it.

1372 1373 1374 1375 1376 1377 1378 1379
	* dispnew.c (save_or_restore_current_matrices): Function removed.
	(save_current_matrix, restore_current_matrix): New functions.
	(adjust_frame_glyphs_for_frame_redisplay): Use them to save and
	restore the frame's current matrix.  Due to the glyph pointer
	setup done in adjust_glyph_matrix, there is no easy way to make
	saving the current matrix in the desired matrix generally correct,
	so don't try it.

Kenichi Handa's avatar
Kenichi Handa committed
1380 1381 1382 1383 1384
2001-01-15  Kenichi Handa  <handa@etl.go.jp>

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

Kenichi Handa's avatar
Kenichi Handa committed
1389 1390 1391 1392 1393
2001-01-13  Kenichi Handa  <handa@etl.go.jp>

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

1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422
2001-01-13  Jason Rumney  <jasonr@gnu.org>

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

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

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

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

	* w32inevt.c (w32_console_toggle_lock_key): Add parentheses.

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

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

1423 1424
2001-01-12  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448
	* xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
	(build_desired_tool_bar_string): Handle Vtool_bar_button_margin
	being a pair of margins.
	(syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
	to DEFVAR_LISP.  Extend doc.

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

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

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

Gerd Moellmann's avatar
Gerd Moellmann committed
1449 1450 1451 1452 1453
	* xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
	and GLYPHS.

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