ChangeLog 307 KB
Newer Older
Kenichi Handa's avatar
Kenichi Handa committed
1 2 3 4 5 6
2000-12-16  Kenichi Handa  <handa@etl.go.jp>

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

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

9 10 11 12 13 14 15
	* dispnew.c (update_window): Detect pending input every nth line
	updated, i.e. do it depending on real work done, and not on the
	vpos of the line.

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

Gerd Moellmann's avatar
Gerd Moellmann committed
16 17 18
	* window.c (Fset_window_point): Remove test for
	cursor_in_non_selected_windows.

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

Gerd Moellmann's avatar
Gerd Moellmann committed
21 22 23
	* xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
	not unwind_create_frame.

Gerd Moellmann's avatar
Gerd Moellmann committed
24 25 26 27 28 29 30
2000-12-15  Dave Love  <fx@gnu.org>

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

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

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

Kenichi Handa's avatar
Kenichi Handa committed
33 34
	* coding.c (setup_coding_system): Clear all members of the struct
	coding_system at first.
Kenichi Handa's avatar
Kenichi Handa committed
35 36 37 38
	(detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
	argument.
	(code_convert_region): Don't override coding->src_multibyte and
	coding->dst_multibyte.
Kenichi Handa's avatar
Kenichi Handa committed
39

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

Miles Bader's avatar
Miles Bader committed
42 43 44 45 46 47
2000-12-15  Miles Bader  <miles@gnu.org>

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

Gerd Moellmann's avatar
Gerd Moellmann committed
48 49 50 51 52
2000-12-14  Gerd Moellmann  <gerd@gnu.org>

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

Eli Zaretskii's avatar
Eli Zaretskii committed
53 54 55 56 57
2000-12-14  Eli Zaretskii  <eliz@is.elta.co.il>

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

Andrew Innes's avatar
Andrew Innes committed
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
2000-12-14  Andrew Innes  <andrewi@gnu.org>

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

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

Gerd Moellmann's avatar
Gerd Moellmann committed
76 77 78 79 80 81 82
2000-12-14  Gerd Moellmann  <gerd@gnu.org>

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

	* config.in (HAVE_XKBGETKEYBOARD): Add.

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

Kenichi Handa's avatar
Kenichi Handa committed
85 86 87 88 89 90 91
	* keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
	Always store string in multibyte representation in echobuf.
	(echo_char): Always store string in multibyte representation in
	echobuf.
	(echo_now): Call message2_nolog with the arg MULTIBYTE 1.
	(read_key_sequence): Adjusted for the change of echo_prompt.

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

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

Kenichi Handa's avatar
Kenichi Handa committed
96 97 98 99 100 101 102
	* coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
	(detect_coding_emacs_mule, detect_coding_iso2022,)
	(detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
	(detect_coding_utf_16, detect_coding_ccl): Make them static.  New
	argument MULTIBYTEP.  Callers changed.
	(detect_coding_mask, detect_coding_system): New argument
	MULTIBYTEP.  Callers changed.
Kenichi Handa's avatar
Kenichi Handa committed
103 104 105 106
	(decode_coding_string): Set coding->src_multibyte and
	coding->dst_multibyte before calling detect_coding and detect_eol.
	Update them after some coding system is detected.
	
107 108 109 110 111 112 113
2000-12-13  Stefan Monnier  <monnier@cs.yale.edu>

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

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

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

116 117 118 119 120 121 122 123 124 125 126
	* xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: 
	New variables.
	(unwind_create_frame, unwind_create_tip_frame): New functions.
	(Fx_create_frame, x_create_tip_frame): Handle errors signaled
	while a frame is only partially constructed.

	* xterm.h (x_free_frame_resources): Declare.

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

127 128 129 130 131 132
	* dispnew.c (update_window): If do_mouse_tracking is non-nil,
	don't interrupt the update for pending input initially, i.e.
	update at least some lines.

	* keyboard.c (do_mouse_tracking): Make externally visible.
	
133
	* xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
Gerd Moellmann's avatar
Gerd Moellmann committed
134 135 136

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

137 138 139 140 141
2000-12-12  Gerd Moellmann  <gerd@gnu.org>

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

Dave Love's avatar
Dave Love committed
142 143 144 145 146 147 148 149 150
2000-12-12  Dave Love  <fx@gnu.org>

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

	* buffer.h (mmap_set_vars): Declare.

	* window.h (Fset_window_point): Declare.

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

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

158 159
2000-12-12  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
160 161 162 163 164 165
	* window.c (Fset_window_point): If displaying cursors in windows
	other than the selected window, make sure redisplay updates
	other windows to show the new value of point in the window.

	* dispextern.h (cursor_in_non_selected_windows): Declare extern.

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

Gerd Moellmann's avatar
Gerd Moellmann committed
169 170 171 172
	* xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer): 
	Bind `inhibit-read-only' to t.
	(unwind_with_echo_area_buffer): Use AREF.

Gerd Moellmann's avatar
Gerd Moellmann committed
173 174
	* xfns.c (Fx_hide_tip): Simplified.

Gerd Moellmann's avatar
Gerd Moellmann committed
175 176 177
	* s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use
	GC_MAKE_GCPROS_NOOPS instead of `1'.

178 179
	* s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.

180 181
2000-12-11  Gerd Moellmann  <gerd@gnu.org>

182 183
	* xfns.c (Fx_hide_tip): Fix last change.
	
184 185 186 187 188 189 190 191 192 193 194 195 196 197
	* xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
	nothing to do.  Bind inhibit-quit.
	(tip_frame): Make it a Lisp_Object.
	(x_create_tip_frame): Set tip_frame after it has been added to
	Vframe_list.
	(Fx_show_tip): Don't set tip_frame here.

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

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

	* dispextern.h: Change external declaration of tip_frame.

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

201 202 203 204 205
	* xdisp.c (try_cursor_movement): Check update_mode_lines instead
	of the window's update_mode_line flag, since the former is set by
	force-mode-line-update, not the latter.  This makes
	column-number-mode slightly faster.
	
206 207 208
	* xdisp.c (try_window_id) <all changes above window start>:
	Set the cursor.

Gerd Moellmann's avatar
Gerd Moellmann committed
209 210 211 212 213 214 215 216 217 218
2000-12-11  Paul Eggert  <eggert@twinsun.com>

	* config.in (HAVE_FTELLO): Remove.
	(HAVE_FSEEKO): Add.
	(_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
	* lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
	HAVE_FTELLO.
	* s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
	* s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
	
219 220 221 222
2000-12-11  Miles Bader  <miles@gnu.org>

	* window.c (displayed_window_lines): Don't round up when
	converting empty space at bottom to lines.
Miles Bader's avatar
Miles Bader committed
223 224 225
	Handle non-newline-terminated final lines properly.
	(Fwindow_text_height): New function (used to be in lisp).
	(syms_of_window): Initialize it.
226

227 228 229 230 231 232
2000-12-09  Stefan Monnier  <monnier@cs.yale.edu>

	* syntax.c (scan_lists): Check that the right quote char has the
	right Sstring syntax when jumping over strings.
	(init_syntax_once): Use Smax rather than 13.

233 234 235 236 237 238
2000-12-09  Miles Bader  <miles@gnu.org>

	* window.c (Fpos_visible_in_window_p): Replace FULLY parameter
	with PARTIALLY, inverting the sense.
	(window_scroll_pixel_based): Scroll partially visible lines into
	place if we hit the beginning or end of the buffer.
Miles Bader's avatar
Miles Bader committed
239 240
	(displayed_window_lines): Don't include partially visible lines.
	(Fmove_to_window_line): Skip past any partially visible first line.
241

Gerd Moellmann's avatar
Gerd Moellmann committed
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260
2000-12-08  Gerd Moellmann  <gerd@gnu.org>

	* keymap.c (current_minor_maps): Use malloc.  Prevent a leak.

	* tparam.c (tparam1): Change the way buffers are reallocated to be
	portable and less obfuscated.

	* termcap.c (tgetent): Change the way buffers are reallocated to
	be portable and less obfuscated.

	* macros.c (store_kbd_macro_char): Change the way buffers are
	reallocated to be portable and less obfuscated.

	* lread.c (read1): Change the way buffers are reallocated to be
	portable and less obfuscated.

	* doc.c (Fsubstitute_command_keys): Change the way buffers
	are reallocated so that it is portable.

Eli Zaretskii's avatar
Eli Zaretskii committed
261 262 263 264 265
2000-12-07  Eli Zaretskii  <eliz@is.elta.co.il>

	* dosfns.c (Ffile_system_info): New function.
	(syms_of_dosfns): Defsubr it.

Stefan Monnier's avatar
Stefan Monnier committed
266 267 268 269
2000-12-07  Stefan Monnier  <monnier@cs.yale.edu>

	* alloc.c (gc_sweep): Add comment.

Gerd Moellmann's avatar
Gerd Moellmann committed
270 271
2000-12-07  Gerd Moellmann  <gerd@gnu.org>

272 273 274 275 276
	* sound.c (vox_configure): Change order of ioctls.  Don't
	set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
	Ignore errors when changing volume.
	(vox_close): Don't reset the device.

277 278 279 280
	* process.c (read_process_output): Make sure the process marker's
	position is valid when the process buffer is changed in
	after-change functions.  W3 does that.
	
Gerd Moellmann's avatar
Gerd Moellmann committed
281 282 283 284 285 286 287 288 289 290
	* xfns.c (x_free_gcs): New function.

	* xterm.h (x_free_gcs): Add prototype.

	* widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
	freeing GCs here.

	* xterm.c (x_destroy_window): Call x_free_gcs so that
	resources of non-toolkit X windows will be freed.

291 292 293 294
2000-12-07  Andrew Innes  <andrewi@gnu.org>

	* w32fns.c (xlfd_charset_of_font): Fix last change.

Dave Love's avatar
Dave Love committed
295 296
2000-12-06  Dave Love  <fx@gnu.org>

Dave Love's avatar
Dave Love committed
297 298
	* md5.h (__P): Don't define -- it comes from config.h.

Dave Love's avatar
Dave Love committed
299 300
	* strftime.c: Change some #if foo to #ifdef foo.

Andrew Innes's avatar
Andrew Innes committed
301 302 303 304 305 306 307 308 309 310
2000-12-06  Andrew Innes  <andrewi@gnu.org>

	* w32term.h (CP_INVALID): Rename to CP_UNKNOWN.

	* w32fns.c (xlfd_charset_of_font): Don't overwrite fontname
	argument.
	(w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
	(w32_list_fonts): Don't choke if pattern doesn't specify a
	codepage.

311 312
2000-12-06  Gerd Moellmann  <gerd@gnu.org>

313 314 315
	* alloc.c (gc_sweep): Prevent symbols read during loadup
	from being freed.

Gerd Moellmann's avatar
Gerd Moellmann committed
316 317 318 319 320 321 322
	* xdisp.c (underlying_face_id): New function.
	(handle_face_prop, face_before_or_after_it_pos): Use it
	to determine the face ``under'' a string.  Let strings inherit
	the face of the buffer under them.

	* xfaces.c (face_at_string_position): Update function comment.
	
Gerd Moellmann's avatar
Gerd Moellmann committed
323 324 325 326 327 328
	* dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
	matrix if the window's left position has changed; we need to
	redraw it in this case.

	* dispextern.h (struct glyph_matrix): Add member window_left_x.

329 330 331
	* window.c (coordinates_in_window): Check mouse on mode-line or
	header-line first.

Gerd Moellmann's avatar
Gerd Moellmann committed
332 333 334
	* alloc.c (Fgarbage_collect): Dox fix.  Return a list as
	advertized by the function documentation.

Gerd Moellmann's avatar
Gerd Moellmann committed
335 336
	* window.c (syms_of_window): Doc fix.

337 338 339
	* sound.c (vox_configure): Set volume for left and right channel.
	(sound_cleanup): Return nil.

340 341
	* xdisp.c (move_it_by_lines): Fix paren typo.

342 343 344 345 346
	* xterm.c (x_load_font): Don't use the font's max_bounds for
	computing the height of the font.  If max_bounds' ascent or
	descent are greater than the font's ascent or descent, this means
	glyphs overlap, which should be handled now by redisplay.

347 348 349 350 351
	* window.c (Veven_window_heights): New variable.
	(syms_of_window): DEFVAR_LISP it.
	(Fdisplay_buffer): Check Veven_window_heights before evening the
	window heights.
	
352 353 354 355 356
2000-12-06  Miles Bader  <miles@gnu.org>

	* xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
	update `default-frame-alist' instead of setting no frame parameters.

Kenichi Handa's avatar
Kenichi Handa committed
357 358 359 360 361
2000-12-06  Kenichi Handa  <handa@etl.go.jp>

	* composite.c (update_compositions): Fix typo (use the correct
	variable).

362 363 364 365 366 367 368
2000-12-05  Jason Rumney  <jasonr@gnu.org>

	* md5.h: Remove underscores from function declarations.
	(__attribute__, __alignof__) [!__GNUC__]: Define.

	* md5.c: Delay include of md5.h until after namespace cleaning.

Jason Rumney's avatar
Jason Rumney committed
369 370 371 372 373 374
	* makefile.w32-in (fns.o): Depend on md5.h
	(md5.o): New target.
	(sunfns.o): Remove.

	* makefile.nt: Likewise.

Jason Rumney's avatar
Jason Rumney committed
375 376 377 378
2000-12-05  Jason Rumney  <jasonr@altavista.net>

	* w32term.c (expose_area): Complete last change.

379 380 381 382
2000-12-05  Ken Raeburn  <raeburn@gnu.org>

	* minibuf.c: Include intervals.h.

383 384 385 386 387 388 389 390
2000-12-05  Jason Rumney  <jasonr@gnu.org>

	* w32term.c (x_produce_glyphs): If a font for a component of
	a composition is not found, use 1 pixel dot ascent and 0 dot
	descent value to avoid displaying terribly tall empty boxes.
	(expose_area): Pass x-coordinate relative to the exposed
	area to x_draw_glyphs instead of a window-relative coordinate.

Gerd Moellmann's avatar
Gerd Moellmann committed
391 392
2000-12-05  Gerd Moellmann  <gerd@gnu.org>

393 394 395 396 397 398 399 400 401 402 403
	* xdisp.c (next_element_from_ellipsis): Save face before selective
	display in saved_face_id, and set face_before_selective_p.
	(reseat_1): Reset face_before_selective_p.
	(append_space, extend_face_to_end_of_line): If iterator's
	face_before_selective_p is set, use the face from saved_face_id.
	(extend_face_to_end_of_line): For tty frames, make sure to
	use the right face id when producing spaces at the end of
	the line.

	* dispextern.h (struct it): Add face_before_selective_p.

404 405 406
	* keyboard.c (record_char): Don't record identical help-echo
	events in recent_keys.

Gerd Moellmann's avatar
Gerd Moellmann committed
407 408 409
	* xterm.c [USE_X_TOOLKIT]: Close the display.
	(xim_close_dpy): Handle case that the display has been closed.

Gerd Moellmann's avatar
Gerd Moellmann committed
410 411 412
	* xterm.c (x_destroy_window): Reset the frame's X window after
	destroying it.

Gerd Moellmann's avatar
Gerd Moellmann committed
413 414 415 416 417 418
	* dispnew.c (adjust_glyph_matrix): Make sure to initialize local
	variable window_width.
	(line_draw_cost): Fix code skipping over spaces at the end of the
	line when must_write_spaces is not set.
	(scrolling_window): Fix code inserting runs in list of all runs.

Kenichi Handa's avatar
Kenichi Handa committed
419 420 421 422 423
2000-12-05  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (setup_coding_system): Be sure to initialize
	coding->category_idx.

Gerd Moellmann's avatar
Gerd Moellmann committed
424 425
2000-12-04  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
426 427
	* xterm.c (PER_CHAR_METRIC): Removed because not used.
	
Gerd Moellmann's avatar
Gerd Moellmann committed
428 429 430
	* xterm.c (expose_area): Pass x-coordinate relative to the exposed
	area to x_draw_glyphs instead of a window-relative coordinate.

431 432 433
	* fileio.c (auto_save_error): Add parameter ERROR.  Show the
	error in the message.

434 435 436 437
	* keyboard.c (Fread_key_sequence): Don't start the busy cursor
	timer after having read a key.  It's not good for code reading
	several keys in a loop, like an input method.

Gerd Moellmann's avatar
Gerd Moellmann committed
438 439 440 441 442 443
	* fileio.c (Finsert_file_contents): When VISIT is t, don't
	record undo information for format-decode.

	* undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
	current buffer is read-only, not if it isn't.

Gerd Moellmann's avatar
Gerd Moellmann committed
444 445 446 447
	* keyboard.c (record_char): Record `help-echo' input events
	in recent_keys only if they display some help.  Don't record
	`help-echo' events as macro char.

Gerd Moellmann's avatar
Gerd Moellmann committed
448 449 450 451 452 453
2000-12-04  Richard M. Stallman  <rms@caffeine.ai.mit.edu>

	* editfns.c (save_excursion_restore): Don't move point
	in another window if it is showing the wrong buffer.
	Avoid the call to Fwindow_live_p, for speed.

Kenichi Handa's avatar
Kenichi Handa committed
454 455
2000-12-04  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
456 457 458 459 460 461 462 463
	* xfaces.c (struct font_name): New member registry_priority.
	(split_font_name): Initialize the above member to zero.
	(concat_font_list): New function.
	(font_list): Include fonts of all alternative registries.
	(FONT_POINT_SIZE_QUANTUM): New macro.
	(better_font_p): Ignore point size difference less than
	FONT_POINT_SIZE_QUANTUM.  Use registry_prioprity as a last resort.

Kenichi Handa's avatar
Kenichi Handa committed
464 465 466 467
	* xterm.c (x_produce_glyphs): If a font for a component of
	a composition is not found, use 1 pixel dot ascent and 0 dot
	descent value to avoid displaying terribly tall empty boxes.

Kenichi Handa's avatar
Kenichi Handa committed
468 469
	* ccl.c (stack_idx_of_map_multiple): Don't use C initializier.

470 471 472 473 474 475 476 477 478
2000-12-03  Ken Raeburn  <raeburn@gnu.org>

	* coding.h (code_convert_string1): Declare.

	* fns.c (Fmd5): Pass lisp objects, not integers, to call3.

	* lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name):
	Declare.

Jason Rumney's avatar
Jason Rumney committed
479 480 481 482 483 484
2000-12-02  Jason Rumney  <jasonr@gnu.org>

	* w32term.c (w32_bdf_per_char_metric): Dereference pointer
	correctly for single byte character case.
	(w32_per_char_metric): Do not try to make any assumptions about
	the metrics of BDF fonts.
485 486 487 488 489 490 491 492 493 494 495 496 497 498
	(x_estimate_mode_line_height): If `mode-line' face
	hasn't a font, use that of the frame, as drawing glyphs
	does.
	(note_mouse_highlight): Change the cursor shape	on the vertical
	border between windows [not enabled].

	* w32term.h (struct w32_output): Add member horizontal_drag_cursor.

	* w32fns.c (Fx_create_frame): Reintroduce the call to
	face-set-after-frame-defaults.
	(Vx_window_horizontal_drag_shape): New variable.
	(syms_of_xfns): DEFVAR_LISP it.
	(x_set_mouse_color): Create frame's horizontal_drag_cursor [not
	enabled].
Jason Rumney's avatar
Jason Rumney committed
499

Gerd Moellmann's avatar
Gerd Moellmann committed
500 501 502 503 504 505 506
2000-12-02  Simon Josefsson  <simon@josefsson.org>

	* fns.c (Fmd5): Use a different logic to decide the coding system
	to use.

	* coding.h (Qwrite_region, Qcoding_system_error): Declare extern.

Eli Zaretskii's avatar
Eli Zaretskii committed
507 508 509 510 511
2000-12-02  Eli Zaretskii  <eliz@is.elta.co.il>

	* fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is
	NULL.

512 513
2000-12-01  Gerd Moellmann  <gerd@gnu.org>

514 515 516 517 518
	* xterm.c (x_calc_absolute_position): Don't subtract menubar's
	height for YNegative.
	(x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
	height; also see comment there.

519 520 521 522 523 524 525
	* window.c (coordinates_in_window): Handle computations for
	positions on the vertical bar and fringes differently for
	window-system frames.  Consider some pixels near the vertical bar
	as on the bar if the frame doesn't have vertical scroll bars.
	Associate positions between mode or header lines with the
	right window, the left one.

526 527 528 529 530 531 532
2000-12-01  Jason Rumney  <jasonr@gnu.org>

	* w32term.c (w32_clear_window): Avoid clearing an invalid frame.

	* w32xfns.c (get_frame_dc): Avoid changing the palette on an
	invalid frame.

533 534 535 536 537 538 539 540
2000-12-01  Gerd Moellmann  <gerd@gnu.org>

	* window.c (struct saved_window): Add members orig_top and
	orig_height.
	(SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
	(save_window_save, Fset_window_configuration): Save/restore
	window's orig_top and orig_height.

Jason Rumney's avatar
Jason Rumney committed
541 542
2000-12-01  Jason Rumney  <jasonr@gnu.org>

Jason Rumney's avatar
Jason Rumney committed
543
	* w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
544

Jason Rumney's avatar
Jason Rumney committed
545 546
	* w32fns.c (x_set_cursor_color): Fix last change.

547 548
2000-11-30  Gerd Moellmann  <gerd@gnu.org>

549 550 551 552
	* xdisp.c (echo_area_display): If cursor is in the echo area, make
	sure that the next redisplay displays the minibuffer, so that
	the cursor will be replaced with what the minibuffer wants.

553 554 555 556 557
	* xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
	#ifndef instead of using #if.
	(XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
	USE_TOOLKIT_SCROLL_BARS is defined.

Jason Rumney's avatar
Jason Rumney committed
558 559 560 561 562
2000-11-30  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
	x_display_cursor.

Gerd Moellmann's avatar
Gerd Moellmann committed
563 564 565 566
2000-11-30  Gerd Moellmann  <gerd@gnu.org>

	* fns.c (Fmd5): Doc fix.

Gerd Moellmann's avatar
Gerd Moellmann committed
567
2000-11-30  Simon Josefsson  <simon@josefsson.org>
Gerd Moellmann's avatar
Gerd Moellmann committed
568 569 570 571 572 573

	* fns.c (Fmd5): New function.
	(syms_of_fns): Defsubr md5.

	* Makefile.in (obj): Add md5.o

Gerd Moellmann's avatar
Gerd Moellmann committed
574 575
2000-11-30  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
576 577
	* md5.h, md5.c: New files, taken from glibc.

Gerd Moellmann's avatar
Gerd Moellmann committed
578 579
	* xmenu.c (popup_get_selection): Use xmalloc instead of malloc.

Gerd Moellmann's avatar
Gerd Moellmann committed
580 581 582 583
	* xterm.c (x_estimate_mode_line_height): If `mode-line' face
	hasn't a font, use that of the frame, as drawing glyphs
	does.

Stefan Monnier's avatar
Stefan Monnier committed
584 585 586 587
2000-11-29  Stefan Monnier  <monnier@cs.yale.edu>

	* eval.c (Frun_hooks): Allow 0 arguments.

588 589
2000-11-29  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
590 591 592
	* xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
	is over the menu bar widget, say it's not on the frame.

593 594 595
	* xfns.c (Fx_create_frame): Reintroduce the call to
	face-set-after-frame-defaults.

596 597
	* eval.c (Fsignal): Reset handling_signal.

598 599 600 601 602
2000-11-28  Jason Rumney  <jasonr@gnu.org>

	* w32menu.c (add_menu_item): Reset menu item text when changing
	type to radio button.

Gerd Moellmann's avatar
Gerd Moellmann committed
603 604
2000-11-28  Gerd Moellmann  <gerd@gnu.org>

605
	* xselect.c: Update copyright.
Gerd Moellmann's avatar
Gerd Moellmann committed
606

Gerd Moellmann's avatar
Gerd Moellmann committed
607 608 609 610 611 612 613 614 615 616 617 618 619 620
	* window.c (coordinates_in_window): If on a mode or header line,
	but sufficiently close to its start, return ``on vertical
	border''.  This gives us a way to drag windows horizontally when
	using toolkit scroll bars.

	* xterm.c (note_mouse_highlight): Change the cursor shape
	on the vertical border between windows.

	* xterm.h (struct x_output): Add member horizontal_drag_cursor.

	* xfns.c (Vx_window_horizontal_drag_shape): New variable.
	(syms_of_xfns): DEFVAR_LISP it.
	(x_set_mouse_color): Create frame's horizontal_drag_cursor.

Gerd Moellmann's avatar
Gerd Moellmann committed
621 622 623 624 625
	* textprop.c (text_read_only): New function.
	(verify_interval_modification): Use it instead of signaling
	`text-read-only'.  This makes it easier to catch this error
	with a breakpoint.: 

Gerd Moellmann's avatar
Gerd Moellmann committed
626 627 628
	* xdisp.c (forward_to_next_line_start): Check for newlines, 
	not end of line, which includes CR.

Kenichi Handa's avatar
Kenichi Handa committed
629 630 631 632 633
2000-11-28  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (Ffind_coding_systems_region_internal): Be sure to
	include no-conversion.

Jason Rumney's avatar
Jason Rumney committed
634 635 636 637 638
2000-11-27  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (w32_load_system_font): Always mark font as double byte
	if codepage is unicode.

639 640
2000-11-27  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
641 642 643 644
	* xdisp.c (forward_to_next_line_start): If already on a newline,
	just consume it to avoid unintended skipping over invisible text
	below.

645 646 647 648
	* keyboard.c (lucid_event_type_list_p): Handle `help-echo',
	`vertical-line', `mode-line' and `header-line' events.

	* xdisp.c (try_window_id): Avoid starting to display in the middle
649 650 651 652
	 of a character, a TAB for instance.  This is easier than to set
	 up the iterator exactly, and it's not a frequent case, so the
	 additional effort wouldn't really pay off.

653 654
2000-11-26  Andrew Choi  <akochoi@i-cable.com>

655
	* emacs.c (main) [macintosh]: Call syms_of_frame before calling
656 657
	init_window_once.

Jason Rumney's avatar
Jason Rumney committed
658 659
2000-11-25  Jason Rumney  <jasonr@gnu.org>

Jason Rumney's avatar
Jason Rumney committed
660 661 662
	* keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]: Args
	to window_from_coordinates should be pixel coordinates.

Jason Rumney's avatar
Jason Rumney committed
663 664 665
	* w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
	redisplay handles them properly.

Miles Bader's avatar
Miles Bader committed
666 667 668 669
2000-11-25  Miles Bader  <miles@gnu.org>

	* indent.c (compute_motion): Keep pos_byte in sync with pos.

Jason Rumney's avatar
Jason Rumney committed
670 671 672 673 674 675 676 677 678 679 680
2000-11-24  Jason Rumney  <jasonr@gnu.org>

	* w32.c (init_environment): Set LANG environment variable based on
	locale settings, if not set.

	* w32fns.c (x_set_tool_bar_lines): Clear internal border when
	making tool bar smaller. When clearing the frame, also
	clear current matrices. Clear frame when tool bar disappears.
	Don't use more lines for the tool-bar than is available.
	(x_change_window_heights): New function.

Gerd Moellmann's avatar
Gerd Moellmann committed
681 682
2000-11-24  Gerd Moellmann  <gerd@gnu.org>

683 684 685 686 687
	* xdisp.c (init_from_display_pos): If POS says we're already after
	 an overlay string ending at POS, make sure to pop the iterator
	 because it will be in front of that overlay string.  When POS is
	 ZV, we've thereby also ``processed'' overlay strings at ZV.

Gerd Moellmann's avatar
Gerd Moellmann committed
688 689
	* xfaces.c (lface_from_face_name): Function comment fix.

690 691 692 693 694 695 696
2000-11-24  Miles Bader  <miles@gnu.org>

	* xdisp.c (display_menu_bar, display_mode_line): Change the way we
	apply `mode-line-inverse-video' -- zero means force display using
	the default face, non-zero means display using the specialized face.
	(syms_of_xdisp): `mode-line-inverse-video' defaults to true again.

Kenichi Handa's avatar
Kenichi Handa committed
697 698 699 700 701
2000-11-23  Kenichi Handa  <handa@etl.go.jp>

	* alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
	hard coded `4'.

702 703 704 705 706
2000-11-23  Eli Zaretskii  <eliz@is.elta.co.il>

	* coding.c (decode_coding_emacs_mule): Fix the case of
	CODING_EOL_LF, which used uninitialized value of c.

Stefan Monnier's avatar
Stefan Monnier committed
707 708 709 710
2000-11-23  Stefan Monnier  <monnier@cs.yale.edu>

	* xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.

Gerd Moellmann's avatar
Gerd Moellmann committed
711 712
2000-11-22  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
713 714 715
	* buffer.c (Fmake_indirect_buffer): Don't treat nil as a
	buffer object.

Gerd Moellmann's avatar
Gerd Moellmann committed
716 717
	* frame.h (struct frame): Replace desired_tool_bar_items,
	current_tool_bar_items, n_desired_tool_bar_items,
Eli Zaretskii's avatar
Eli Zaretskii committed
718
	n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
Gerd Moellmann's avatar
Gerd Moellmann committed
719 720 721 722 723

	* frame.c (make_frame): Change initialization of tool bar
	items accordingly.

	* xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
Eli Zaretskii's avatar
Eli Zaretskii committed
724
	Change references to members deleted from struct frame to use the
Gerd Moellmann's avatar
Gerd Moellmann committed
725 726 727
	new ones.

	* xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
Eli Zaretskii's avatar
Eli Zaretskii committed
728
	references to members deleted from struct frame to use the new
Gerd Moellmann's avatar
Gerd Moellmann committed
729 730 731 732 733 734 735 736
	ones.

	* dispnew.c (update_frame): Do nothing with frame's tool bar
	items.

	* alloc.c (mark_object) <frame>: Mark tool bar items differently.

	* w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
Eli Zaretskii's avatar
Eli Zaretskii committed
737
	(note_tool_bar_highlight): Change references to members deleted
Gerd Moellmann's avatar
Gerd Moellmann committed
738 739
	from struct frame to use the new ones.

Miles Bader's avatar
Miles Bader committed
740 741 742 743 744
2000-11-23  Miles Bader  <miles@gnu.org>

	* xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
	the face's inverse-video attribute, rather than overriding it.

745 746 747 748 749
2000-11-22  Gerd Moellmann  <gerd@gnu.org>

	* xfns.c (x_set_tool_bar_lines): Clear internal border when
	making tool bar smaller.

750 751 752 753
2000-11-22  Dave Love  <fx@gnu.org>

	* s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.

Miles Bader's avatar
Miles Bader committed
754 755
2000-11-22  Miles Bader  <miles@gnu.org>

Miles Bader's avatar
Miles Bader committed
756 757 758 759
	* keyboard.c (Vminibuffer_message_timeout): New variable.
	(command_loop_1): Use it to determine message timeout.
	(syms_of_keyboard): Initialize it.

760
	* xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
Miles Bader's avatar
Miles Bader committed
761

Kenichi Handa's avatar
Kenichi Handa committed
762 763 764 765 766
2000-11-22  Kenichi Handa  <handa@etl.go.jp>

	* sysdep.c: Move the code for declaring h_errno after #include
	<netdb.h>.

767 768
2000-11-21  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
769 770 771
	* xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
	the menu bar when the tooltip is unmapped.

772 773 774 775
	* buffer.c (Fkill_buffer): Notice if the buffer to kill is the
	sole visible buffer when we're currently in the mini-buffer, and
	give up if so.
	
Jason Rumney's avatar
Jason Rumney committed
776 777 778 779 780 781 782 783 784
2000-11-21  Jason Rumney  <jasonr@gnu.org>

	* w32select.c (Fw32_set_clipboard_data): Save a copy of what is
	put on the clipboard.
	(Fw32_get_clipboard_data): Compare data on clipboard with saved
	copy of what Emacs last put there. If they are the same, do not
	use the clipboard copy to avoid losing data due to coding
	conversions. 

Miles Bader's avatar
Miles Bader committed
785 786 787 788 789 790 791
2000-11-22  Miles Bader  <miles@gnu.org>

	* minibuf.c (Vminibuffer_prompt_properties): New variable.
	(syms_of_minibuf): Initialize it.
	(read_minibuf): Add properties from Vminibuffer_prompt_properties
	to prompt, don't make read-only.

792 793
2000-11-21  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
794 795 796
	* bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>: Add
	BEFORE/AFTER_POTENTIAL_GC.

Gerd Moellmann's avatar
Gerd Moellmann committed
797 798
	* s/hpux10.h (_FILE_OFFSET_BITS): Undef.

Gerd Moellmann's avatar
Gerd Moellmann committed
799
	* buffer.c (mmap_free_1): Avoid a compiler warning.
800

801 802
	* term.c, cm.c: Don't try to include termcap.h; see comment there.

Kenichi Handa's avatar
Kenichi Handa committed
803 804 805 806 807
2000-11-21  Kenichi Handa  <handa@etl.go.jp>

	* s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
	... #endif scope.

Gerd Moellmann's avatar
Gerd Moellmann committed
808 809
2000-11-20  Gerd Moellmann  <gerd@gnu.org>

810 811 812
	* xfns.c (x_create_tip_frame): Use CWSaveUnder only if the 
	screen supports it.

Gerd Moellmann's avatar
Gerd Moellmann committed
813 814
	* s/gnu-linux.h: Don't use `#cpu'.

815 816 817
	* buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
	not defined in mman.h.

Gerd Moellmann's avatar
Gerd Moellmann committed
818 819 820 821 822 823 824 825 826
	* xterm.c (scroll_bar_windows, scroll_bar_windows_size): New
	variables.
	(x_send_scroll_bar_event): Store the window in scroll_bar_windows
	and store an index in the XClientMessageEvent.  Storing a
	Lisp_Object or pointer can fail on a 64 bit system, since X only
	transfers 32 bits.
	(x_scroll_bar_to_input_event): Get the window from
	scroll_bar_windows.
	
827 828 829 830
2000-11-20  Dave Love  <fx@gnu.org>

	* Makefile.in (LIBX): Reorder for -lX11 after -lXpm.

Gerd Moellmann's avatar
Gerd Moellmann committed
831 832 833 834
2000-11-20  Gerd Moellmann  <gerd@gnu.org>

	* s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.

835 836
2000-11-20  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
837 838 839
	* charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
	by WIDTH.

840 841 842
	* alloc.c (make_string): Fix previous change.  Be sure to make
	unibyte string correctly.

843 844
2000-11-19  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
845 846 847 848 849
	* window.c (Fwindow_list): Change parameter list to be XEmacs
	compatible.
	(window_list_1): New function.
	(window_loop): Use it instead of Fwindow_list.

Gerd Moellmann's avatar
Gerd Moellmann committed
850 851 852 853 854 855 856 857
	* sysdep.c (emacs_ospeed): New variable.
	(toplevel): Don't declare ospeed extern.
	(init_baud_rate): Use emacs_ospeed instead of ospeed.

	* termcap.c (ospeed): Remove.
	(tputs) [!emacs]: Remove unused code.
	(tgetent): Avoid a compiler warning.

858 859
	* xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
	(x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
Gerd Moellmann's avatar
Gerd Moellmann committed
860
	SCROLL_BAR_X_WIDGET with additional argument DPY.
861 862 863 864 865 866 867 868 869

	* xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
	removed.
	(SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
	Take the X display as additional argument.
	(SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
	`Widget' is a pointer type that's not easily stored in Lisp_Object
	form in a portable way.
	
870 871
	* dispnew.c (update_text_area): Fix last change.

872 873
2000-11-18  Gerd Moellmann  <gerd@gnu.org>

874 875 876 877 878
	* xdisp.c: Use BINDING_STACK_SIZE throughout.

	* xfns.c (x_set_tool_bar_lines): When clearing the frame, also
	clear current matrices.

879 880 881
	* buffer.c (mmap_enlarge): Don't print a message on stderr
	if mapping new memory at the end of the existing region fails.

882 883 884
	* dispnew.c (update_text_area): Don't skip over equal glyphs
	when the last current glyph overlaps the glyph to its right.

885 886 887 888 889
2000-11-18  Miles Bader  <miles@gnu.org>

	* xdisp.c (message_log_check_duplicate): Let "..."-detection match
	lines that *end* with "..." too (that's the most common case!).

Gerd Moellmann's avatar
Gerd Moellmann committed
890 891
2000-11-18  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
892 893
	* xdisp.c (resize_mini_window): Temporarily change to the
	mini-window's buffer if necessary.
894

Gerd Moellmann's avatar
Gerd Moellmann committed
895 896 897 898 899 900 901
	* xfns.c (Fx_show_tip): Use default y-offset of -10 so that
	the tooltip obscures less text under it.

2000-11-17  Gerd Moellmann  <gerd@gnu.org>

	* puresize.h (BASE_PURESIZE): Increase to 700000.

902 903 904 905
2000-11-18  Jason Rumney  <jasonr@gnu.org>

	* w32term.c (w32_draw_bitmap): Use face to set colors.

Dave Love's avatar
Dave Love committed
906 907 908 909
2000-11-17  Dave Love  <fx@gnu.org>

	* lread.c (Fload): Fix #ifdef for pcc.

910 911 912 913 914
2000-11-17  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (pos_visible_p): Compute the default character height
	differently.

915 916
2000-11-16  Gerd Moellmann  <gerd@gnu.org>

917 918 919 920
	* xdisp.c (pos_visible_p): Handle case that we reach ZV without
	knowing the line's height; use the default font's height in that
	case.

921 922 923
	* xfaces.c (weight_table): Add `demi' with the same meaning as
	`demibold'.

Kenichi Handa's avatar
Kenichi Handa committed
924 925
2000-11-16  Kenichi Handa  <handa@etl.go.jp>

926
	* dispnew.c (null_row): New global static variable.
Kenichi Handa's avatar
Kenichi Handa committed
927 928
	(clear_glyph_row): Delete local static variable null_row.

929 930 931 932 933 934 935
2000-11-15  Jason Rumney  <jasonr@gnu.org>

	* w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
	(w32_alloc_lighter_color): Use new brightness calculations from
	xterm.c. Scale delta to be in the range expected by W32.
	(w32_draw_relief_rect): Use frame relief colors.

936 937
2000-11-15  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
938 939 940 941 942 943 944 945 946
	* frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
	(Qinhibit_default_face_x_resources): New variable.
	(syms_of_frame): Initialize it.
	(Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.

	* xdisp.c (pos_visible_p): Improve function comment.

	* lisp.h (BINDING_STACK_SIZE): New macro.

947 948 949 950
	* dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
	reading the directory if readdir returns null and errno is EAGAIN
	or EINTR.

Stefan Monnier's avatar
Stefan Monnier committed
951 952 953 954 955 956 957 958 959
2000-11-14  Stefan Monnier  <monnier@cs.yale.edu>

	* xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
	so setting scroll-step to 1 doesn't defeat scroll-conservatively.
	Set amount_to_scroll to max of dx and scroll_step so that
	scroll-conservatively doesn't defeat scroll-step>1.
	(syms_of_xdisp): Add a hint in scroll-step's docstring to use
	scroll-conservatively for line-at-a-time scrolling.

960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978
2000-11-14  Gerd Moellmann  <gerd@gnu.org>

	* window.c (Fpos_visible_in_window_p): Call pos_visible with
	extra argument.

	* xdisp.c (current_mode_line_height, current_header_line_height):
	New variables.
	(init_xdisp): Initialize them.
	(pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P.  Compute
	and use exact mode line heights if it is set.

	* lisp.h (pos_visible_p): Change prototype.

	* dispextern.h (CURRENT_MODE_LINE_HEIGHT)
	(CURRENT_HEADER_LINE_HEIGHT):  Look at current_mode_line_height
	and current_header_line_height first.
	(current_mode_line_height, current_header_line_height): Declare
	extern.

979 980 981 982 983 984
2000-11-14  Miles Bader  <miles@lsi.nec.co.jp>

	* xterm.c (x_alloc_lighter_color): Use real brightness calculation.
	Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
	(HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.

Miles Bader's avatar
Miles Bader committed
985 986 987 988 989 990 991
2000-11-14  Miles Bader  <miles@gnu.org>

	* xterm.c (x_alloc_lighter_color): Include an additive component
	too for dark colors, because FACTOR isn't enough.
	(HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
	New macros.

992 993 994 995 996 997
2000-11-13  Gerd Moellmann  <gerd@gnu.org>

	* keyboard.c (show_help_echo): Call message3_nolog with number of
	bytes in the help string as 2nd parameter, instead of the number
	of characters.

Miles Bader's avatar
Miles Bader committed
998 999 1000 1001 1002 1003 1004 1005 1006
2000-11-13  Miles Bader  <miles@gnu.org>

	* lread.c (openp): Return -2 instead of 0 for the `remote file' case.
	(Fload): Use new openp return protocol.
	Don't try to use Vload_source_file_function to load .elc files.
	* xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
	openp return protocol.
	* w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.

Kenichi Handa's avatar
Kenichi Handa committed
1007 1008
2000-11-11  Kenichi Handa  <handa@etl.go.jp>

1009 1010 1011 1012 1013 1014
	* syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.

	* m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
	Defined these macros.
	(NLIST_STRUCT): Avoid re-defining it.

Kenichi Handa's avatar
Kenichi Handa committed
1015 1016 1017 1018
	* s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
	-I/usr/contrib/X11R6/include.
	(LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.

Jason Rumney's avatar
Jason Rumney committed
1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039
2000-11-10  Jason Rumney  <jasonr@gnu.org>

	* w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.

	* w32term.c (w32_encode_char): Handle CP_UNICODE specially.
	(w32_use_unicode_for_codepage): Use new pseudo-codepages.

	* w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
	(Qw32_charset_vietnamese): New symbol.
	(xlfd_charset_of_font): New function.
	(w32_load_system_font): Use it.
	(x_to_w32_charset): Use Fassoc to find charset info. Special case
	when Vw32_charset_info_alist is nil to ensure default face always
	has font. Use Fcar and Fcdr for safety.
	(w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
	(w32_codepage_for_font): Use xlfd_charset_of_font.  Use new
	pseudo-codepages for special cases.
	(w32_to_x_font): New parameter to allow charset portion to be
	specified where there is many to one mapping.  Callers changed.
	(w32_list_fonts): Avoid listing fonts that won't display.

Gerd Moellmann's avatar
Gerd Moellmann committed
1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050
2000-11-10  Gerd Moellmann  <gerd@gnu.org>

	* xfaces.c (Vface_alternative_font_registry_alist): New variable.
	(font_list_1): Renamed from font_list.
	(font_list): New function, trying alternative registries from
	Vface_alternative_font_registry_alist.
	(Finternal_set_alternative_font_registry_alist): New function.
	(syms_of_xfaces): Initialize and Staticpro
	Vface_alternative_font_registry_alist.  Defsubr
	Finternal_set_alternative_font_registry_alist.

Ken Raeburn's avatar
Ken Raeburn committed
1051 1052 1053 1054
2000-11-09  Ken Raeburn  <raeburn@gnu.org>

	* lisp.h (Flooking_at): Declare.

1055 1056
2000-11-09  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1057 1058
	* dired.c (directory_files_internal): Fix a braino.
	
1059 1060 1061
	* dired.c (directory_files_internal): Add missing GCPRO's.
	Some cleanup.

Gerd Moellmann's avatar
Gerd Moellmann committed
1062 1063
2000-11-08  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1064 1065 1066 1067 1068 1069 1070 1071 1072 1073
	* xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
	(resize_mini_window): Return quickly if Vresize_mini_window is
	nil.  Don't return if Vmax_mini_window_height is nil.

	* xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
	(syms_of_xdisp): Initialize them.
	(resize_mini_window): Act according to the setting of
	Vresize_mini_window.
	(syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.

Gerd Moellmann's avatar
Gerd Moellmann committed
1074 1075 1076 1077 1078
	* xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
	scroll bar widget after configuring it, so that it will appear at
	the right position from the start.
	(XTredeem_scroll_bar): Cleaned up.

Kenichi Handa's avatar
Kenichi Handa committed
1079 1080 1081
2000-11-08  Kenichi Handa  <handa@etl.go.jp>

	* xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change.  If the
Gerd Moellmann's avatar
Gerd Moellmann committed
1082
	font is taller than the frame line, we don't have to bias the
Kenichi Handa's avatar
Kenichi Handa committed
1083 1084 1085 1086
	division by two.

	* w32term.c (VCENTER_BASELINE_OFFSET): Likewise.

Dave Love's avatar
Dave Love committed
1087 1088
2000-11-07  Dave Love  <fx@gnu.org>

1089
	* config.in (HAVE_MKSTEMP): Add.
Dave Love's avatar
Dave Love committed
1090 1091 1092

	* callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.

1093 1094
2000-11-07  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1095 1096 1097 1098
	* window.c (Fset_window_configuration): Don't try to preserve
	point in the current buffer, if that buffer is displayed in more
	than one window.

1099 1100 1101 1102 1103
	* xfaces.c (lookup_named_face): If default face isn't realized,
	try to realize it.  Return -1 if not successful.
	(Fx_list_fonts): Handle case that face cannot be determined.
	(Fface_font): Likewise.

1104 1105 1106 1107 1108
2000-11-06  Gerd Moellmann  <gerd@gnu.org>

	* window.c (displayed_window_lines): Detect partially
	visible lines at the bottom correctly.

1109 1110 1111 1112 1113
2000-11-06  Stefan Monnier  <monnier@cs.yale.edu>

	* fileio.c (Fwrite_region): Use `visiting' rather than `visit'
	when ensuring we don't do visit in indirect buffer.

Kenichi Handa's avatar
Kenichi Handa committed
1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132
2000-11-06  Kenichi Handa  <handa@etl.go.jp>

	* composite.h (compose_chars_in_text): Add prototype.

	* composite.c (Vcomposition_function_table): New variable.
	(Qcomposition_function_table): New variable.
	(run_composition_function): Call
	Vcompose_chars_after_function with three arguments.
	(compose_chars_in_text): New function.
	(syms_of_composite): Modified the doc-string of
	Vcompose_chars_after_function.  Declare composition-function-table
	as a lisp variable, and initialize it.

	* xfns.c (x_encode_text): Suppress producing escape sequences for
	composition.

	* xselect.c: Include composite.h.
	(selection_data_to_lisp_data): Call compose_chars_in_text on STR.

Andrew Innes's avatar
Andrew Innes committed
1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150
2000-11-05  Andrew Innes  <andrewi@gnu.org>

	* w32term.c (x_produce_glyphs): Fix typo in enum name.

	* sysdep.c (read_input_waiting): Remove extraneous argument to
	read_socket_hook.

	* w32fns.c (Fx_server_version): Include w32_build_number in the
	return list.

	* w32heap.c (w32_build_number): New variable.
	(cache_system_info): Set it.

	* w32heap.h (w32_build_number): Add extern.

	* emacs.c (syms_of_emacs): Update docstring for
	system-configuration, to reflect the actual usage on MS-Windows.

1151 1152
2000-10-31  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1153 1154 1155
	* keyboard.c (read_char) <wrong_kboard>: Make sure that we
	process idle timers while waiting for another event.

1156 1157 1158
	* dispnew.c (update_frame_line): Handle case where spaces in 
	the default face are colored.

1159 1160 1161
	* xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
	window height hasn't changed.

1162 1163 1164 1165 1166 1167
2000-10-31  Jason Rumney  <jasonr@gnu.org>

	* w32term.c (x_produce_glyphs): Handle composite characters.
	(x_draw_glyph_string_foreground)
	(x_draw_composite_glyph_string_foreground): Restore old font.

1168 1169 1170 1171 1172
2000-10-31  Miles Bader  <miles@lsi.nec.co.jp>

	* minibuf.c (read_minibuf): Reset the undo history just before
	starting the recursive-edit.

1173 1174
2000-10-30  Gerd Moellmann  <gerd@gnu.org>

1175 1176 1177 1178 1179 1180
	* xfaces.c (menu_face_change_count): New variable.
	(Finternal_set_lisp_face_attribute): Increment it for changes
	of the `menu' face.
	(realize_basic_faces): Reflect changes in the `menu' faces
	in menu bars.

1181 1182 1183 1184
	* xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
	dy obtained from the iterator's y-position after moving from
	scroll_margin_pos to PT; see comment there.
	
1185 1186
	* xdisp.c (safe_eval_handler): Call add_to_log.

1187 1188 1189
	* xfaces.c (resolve_face_name): Handle case that FACE_NAME
	is not a symbol or string.

1190 1191 1192 1193 1194
	* xdisp.c (echo_area_display): Don't perform a display update from
	inside redisplay.  The update will happen anyway at the end of
	redisplay, and it can confuse redisplay (GC messages while
	redisplaying, for instance.)

Stefan Monnier's avatar
Stefan Monnier committed
1195 1196
2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>

1197 1198
	* xrdb.c (x_load_resources): Use the class name in the defaults.

Stefan Monnier's avatar
Stefan Monnier committed
1199 1200 1201
	* regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
	(regex_compile): Catch bogus \(\1\).

1202 1203
2000-10-30  Gerd Moellmann  <gerd@gnu.org>

1204 1205 1206
	* xterm.c (x_alloc_nearest_color): Fix last change to compare
	RGB values.
	
1207 1208 1209 1210
	* xterm.c (x_alloc_nearest_color): If allocation succeeds, and
	we have a color cache, check that the cached color equals the
	allocated color.  If not, clear the color cache.

Gerd Moellmann's avatar
Gerd Moellmann committed
1211 1212 1213
	* window.c (displayed_window_lines): Change buffers if necessary.
	Fix computation of displayed lines.

1214 1215 1216
	* keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
	update_menu_bindings to DEFVAR_BOOL.

Kenichi Handa's avatar
Kenichi Handa committed
1217 1218
2000-10-30  Kenichi Handa  <handa@etl.go.jp>

Stefan Monnier's avatar
Stefan Monnier committed
1219
	* search.c (Fset_match_data): Be sure to make search_regs always sane.
Kenichi Handa's avatar
Kenichi Handa committed
1220

Kenichi Handa's avatar
Kenichi Handa committed
1221 1222
	* puresize.h (BASE_PURESIZE): Increase to 680000.

Kenichi Handa's avatar
Kenichi Handa committed
1223 1224
	* fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.

Jason Rumney's avatar
Jason Rumney committed
1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239
2000-10-29  Jason Rumney  <jasonr@gnu.org>

	* w32term.h (FONT_DESCENT): Negate descent of BDF fonts.

	* w32term.c (w32_bdf_per_char_metric): Negate descent.
	(w32_cache_char_metrics): Handle possibility that 'x' does not
	exist in a BDF font.
	(W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.

	* w32bdf.h (bdffont): Add nchars.

	* w32bdf.c (set_bdf_font_info): Set it.
	(w32_BDF_TextOut): Swap byte order of double byte characters.
	(w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.

Eli Zaretskii's avatar
Eli Zaretskii committed
1240 1241 1242 1243 1244 1245 1246 1247 1248
2000-10-28  Eli Zaretskii  <eliz@is.elta.co.il>

	* frame.c (Fframe_parameters): Fix the change from 2000-10-16:
	don't override the colors in frame's param_alist, unless they are
	unspecified.

	* term.c (reassert_line_highlight): If inverse_video is non-zero,
	reverse the effect of the highlight flag.

1249 1250 1251 1252
2000-10-27  Ken Raeburn  <raeburn@gnu.org>

	* window.h (Fwindow_live_p): Declare.

1253 1254 1255 1256 1257 1258
	* undo.c (record_delete): Check that last_undo_buffer is really a
	buffer before applying XBUFFER to it.

	* keymap.c (where_is_internal): Pass lisp object, not integer, to
	Faref.

1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305
2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>

	* lisp.h (KEYMAPP): New macro.
	(get_keymap): Remove.
	(get_keymap_1): Rename get_keymap.

	* keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.

	* xterm.c (note_mode_line_highlight): Use KEYMAPP.

	* xmenu.c (single_submenu): Use KEYMAPP.
	(Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
	Use KEYMAPP rather than Fkeymapp.

	* w32term.c (note_mode_line_highlight): Use KEYMAPP.

	* w32menu.c (True, False): Remove (use TRUE and FALSE instead).
	(Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
	Use KEYMAPP rather than Fkeymapp.
	(single_submenu): Use KEYMAPP.
	(w32_menu_show, w32_dialog_show): Use TRUE.

	* minibuf.c (Fread_from_minibuffer): Update call to get_keymap.

	* keymap.c (KEYMAPP): Remove (moved to lisp.h).
	(Fkeymapp): Use KEYMAPP.
	(get_keymap): Rename from get_keymap_1.  Remove old def.
	Return t when autoload=0 and error=0 and the keymap needs autoloading.
	(Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
	(Fminor_mode_key_binding): Don't raise an error if the binding
	is not a keymap.
	(Fuse_global_map, Fuse_local_map): Allow autoloading.
	(Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.

	* keyboard.c (read_char): get_keymap_1 -> get_keymap.
	Allow Vspecial_event_map to be autoloaded.
	(menu_bar_items): Fetch the keymap rather than using keymapp.
	(menu_bar_one_keymap): No need to follow func-indirect any more.
	(parse_menu_item): get_keymap_1 -> get_keymap.
	(tool_bar_items): Fetch the keymap rather than using keymapp.
	(read_key_sequence): Use KEYMAPP.

	* intervals.c (get_local_map): Use get_keymap rather than following
	function-indirections explicitly.

	* doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.

Jason Rumney's avatar
Jason Rumney committed
1306 1307 1308 1309 1310 1311 1312
2000-10-27  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (Fx_create_frame): Make default fontsize on w32 10
	point, as Windows has oversized fonts.

	* fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.

1313 1314 1315 1316 1317 1318
2000-10-27  Gerd Moellmann  <gerd@gnu.org>

	* gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
	(freehook, reallochook): Handle null pointer arguments.
	(__malloc_initialize) [GC_MCHECK]: Call mcheck.

Stefan Monnier's avatar
Stefan Monnier committed
1319 1320 1321 1322 1323 1324
2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>

	* regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
	(re_match_2_internal, re_match_2_internal, re_match_2_internal):
	Giving in to popular pressure to shut up the compiler with casts.

1325 1326 1327 1328 1329 1330
2000-10-27  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
	signed value, and use a default value computed from the font's
	maximum descent.

Miles Bader's avatar
Miles Bader committed
1331 1332 1333 1334 1335 1336 1337 1338
2000-10-27  Miles Bader  <miles@lsi.nec.co.jp>

	* xterm.c (x_draw_glyph_string): Add a workaround so that fonts
	that specify a negative underline position can still use underlines.

	* window.c (Fpos_visible_in_window_p): Make POS default to
	WINDOW's point, not the current buffer's point.

Dave Love's avatar
Dave Love committed
1339 1340 1341 1342 1343
2000-10-26  Dave Love  <fx@gnu.org>

	* s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
	when it's necessary.

1344 1345
2000-10-26  Gerd Moellmann  <gerd@gnu.org>

1346 1347 1348
	* window.c (size_window): Compute size difference from sum of old
	child window sizes instead of from parent's size.

Gerd Moellmann's avatar
Gerd Moellmann committed
1349 1350 1351 1352 1353 1354
	* xdisp.c (pos_visible_p): Change current buffer if necessary.
	Handle obscured lines at the top of the window.

	* frame.c (Fdelete_frame): Doc fix.  Move running the hook
	down after the last error condition check.

1355 1356
	* frame.c (Fdelete_frame): Run delete-frame-hook.

Kenichi Handa's avatar
Kenichi Handa committed
1357 1358 1359 1360 1361
2000-10-26  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (decode_coding): Fix previous change (check also
	CODING_MODE_LAST_BLOCK).

Stefan Monnier's avatar
Stefan Monnier committed
1362 1363
2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>

Stefan Monnier's avatar
Stefan Monnier committed
1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386
	* regex.c: More `unsigned char' -> `re_char' changes.
	Also change several `int' into `re_wchar_t'.
	(PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
	(PUSH_FAILURE_POINTER): Don't cast any more.
	(POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
	We want GCC to complain, since this piece of code makes
	re_match non-reentrant, which *should* be fixed.
	(GET_BUFFER_SPACE): Use size_t rather than unsigned long.
	(EXTEND_BUFFER): Use RETALLOC.
	(SET_LIST_BIT): Don't cast.
	(re_wchar_t): New type.
	(re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
	that those two functions will always properly return.
	(IMMEDIATE_QUIT_CHECK): Cast to void.
	(analyse_first): Use recursion rather than an explicit stack.
	(re_compile_fastmap): Can't fail anymore.
	(re_search_2): Don't check re_compile_fastmap for failure.
	(PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
	Now also sets the new value (passed in a new argument).
	(re_match_2_internal): Use it.
	Also, use a new var `reg' of type size_t when looping through regs
	rather than reuse the inappropriate `mcnt'.

Stefan Monnier's avatar
Stefan Monnier committed
1387 1388 1389 1390 1391 1392 1393 1394
	* keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
	(Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
	(where_is_internal): Renamed from Fwhere_is_internal.
	Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
	(Fwhere_is_internal): New function wrapping where_is_internal.
	(where_is_internal_1): Handle the case where we're filling the cache.
	(syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).

1395 1396 1397 1398
2000-10-25  Miles Bader  <miles@gnu.org>

	* xdisp.c (pos_visible_p): Don't add `it.current_y' twice.

Gerd Moellmann's avatar
Gerd Moellmann committed
1399 1400 1401 1402 1403 1404 1405 1406 1407 1408
2000-10-25  Gerd Moellmann  <gerd@gnu.org>

	* window.c (pos_fully_visible_p): Removed.
	(Fpos_visible_in_window_p): Use pos_visible_p to determine
	if position is visible and/or fully visible.

	* lisp.h (pos_visible_p): Add prototype.

	* xdisp.c (pos_visible_p): New function.

Kenichi Handa's avatar
Kenichi Handa committed
1409 1410 1411 1412 1413 1414 1415
2000-10-25  Kenichi Handa  <handa@etl.go.jp>

	* process.c (send_process): If OBJECT is t, it means that the data
	is from C string, but we should encode it.  Before calling
	setup_raw_text_coding_system, be sure to flush out data by the
	previous coding system.

Miles Bader's avatar
Miles Bader committed