ChangeLog 284 KB
Newer Older
Gerd Moellmann's avatar
Gerd Moellmann committed
1 2
2000-11-22  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
3 4 5
	* buffer.c (Fmake_indirect_buffer): Don't treat nil as a
	buffer object.

Gerd Moellmann's avatar
Gerd Moellmann committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
	* frame.h (struct frame): Replace desired_tool_bar_items,
	current_tool_bar_items, n_desired_tool_bar_items,
	n_current_tool_bar_items removed with tool_bar_items and
	n_tool_bar_items.

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

	* xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
	Change references to mambers deleted from struct frame to use the
	new ones.

	* xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
	references to mambers deleted from struct frame to use the new
	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)
	(note_tool_bar_highlight): Change references to mambers deleted
	from struct frame to use the new ones.

Miles Bader's avatar
Miles Bader committed
31 32 33 34 35
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.

36 37 38 39 40
2000-11-22  Gerd Moellmann  <gerd@gnu.org>

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

41 42 43 44
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
45 46
2000-11-22  Miles Bader  <miles@gnu.org>

Miles Bader's avatar
Miles Bader committed
47 48 49 50
	* keyboard.c (Vminibuffer_message_timeout): New variable.
	(command_loop_1): Use it to determine message timeout.
	(syms_of_keyboard): Initialize it.

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

Kenichi Handa's avatar
Kenichi Handa committed
53 54 55 56 57
2000-11-22  Kenichi Handa  <handa@etl.go.jp>

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

58 59
2000-11-21  Gerd Moellmann  <gerd@gnu.org>

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

63 64 65 66
	* 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
67 68 69 70 71 72 73 74 75
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
76 77 78 79 80 81 82
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.

83 84
2000-11-21  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
85 86 87
	* bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>: Add
	BEFORE/AFTER_POTENTIAL_GC.

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

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

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

Kenichi Handa's avatar
Kenichi Handa committed
94 95 96 97 98
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
99 100
2000-11-20  Gerd Moellmann  <gerd@gnu.org>

101 102 103
	* xfns.c (x_create_tip_frame): Use CWSaveUnder only if the 
	screen supports it.

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

106 107 108
	* buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
	not defined in mman.h.

Gerd Moellmann's avatar
Gerd Moellmann committed
109 110 111 112 113 114 115 116 117
	* 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.
	
118 119 120 121
2000-11-20  Dave Love  <fx@gnu.org>

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

Gerd Moellmann's avatar
Gerd Moellmann committed
122 123 124 125
2000-11-20  Gerd Moellmann  <gerd@gnu.org>

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

126 127
2000-11-20  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
128 129 130
	* charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
	by WIDTH.

131 132 133
	* alloc.c (make_string): Fix previous change.  Be sure to make
	unibyte string correctly.

134 135
2000-11-19  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
136 137 138 139 140
	* 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
141 142 143 144 145 146 147 148
	* 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.

149 150
	* 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
151
	SCROLL_BAR_X_WIDGET with additional argument DPY.
152 153 154 155 156 157 158 159 160

	* 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.
	
161 162
	* dispnew.c (update_text_area): Fix last change.

163 164
2000-11-18  Gerd Moellmann  <gerd@gnu.org>

165 166 167 168 169
	* xdisp.c: Use BINDING_STACK_SIZE throughout.

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

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

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

176 177 178 179 180
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
181 182
2000-11-18  Gerd Moellmann  <gerd@gnu.org>

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

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

193 194 195 196
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
197 198 199 200
2000-11-17  Dave Love  <fx@gnu.org>

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

201 202 203 204 205
2000-11-17  Gerd Moellmann  <gerd@gnu.org>

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

206 207
2000-11-16  Gerd Moellmann  <gerd@gnu.org>

208 209 210 211
	* 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.

212 213 214
	* xfaces.c (weight_table): Add `demi' with the same meaning as
	`demibold'.

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

217
	* dispnew.c (null_row): New global static variable.
Kenichi Handa's avatar
Kenichi Handa committed
218 219
	(clear_glyph_row): Delete local static variable null_row.

220 221 222 223 224 225 226
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.

227 228
2000-11-15  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
229 230 231 232 233 234 235 236 237
	* 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.

238 239 240 241
	* 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
242 243 244 245 246 247 248 249 250
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.

251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269
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.

270 271 272 273 274 275
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
276 277 278 279 280 281 282
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.

283 284 285 286 287 288
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
289 290 291 292 293 294 295 296 297
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
298 299
2000-11-11  Kenichi Handa  <handa@etl.go.jp>

300 301 302 303 304 305
	* 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
306 307 308 309
	* 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
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330
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
331 332 333 334 335 336 337 338 339 340 341
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
342 343 344 345
2000-11-09  Ken Raeburn  <raeburn@gnu.org>

	* lisp.h (Flooking_at): Declare.

346 347
2000-11-09  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
348 349
	* dired.c (directory_files_internal): Fix a braino.
	
350 351 352
	* dired.c (directory_files_internal): Add missing GCPRO's.
	Some cleanup.

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

Gerd Moellmann's avatar
Gerd Moellmann committed
355 356 357 358 359 360 361 362 363 364
	* 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
365 366 367 368 369
	* 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
370 371 372
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
373
	font is taller than the frame line, we don't have to bias the
Kenichi Handa's avatar
Kenichi Handa committed
374 375 376 377
	division by two.

	* w32term.c (VCENTER_BASELINE_OFFSET): Likewise.

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

380
	* config.in (HAVE_MKSTEMP): Add.
Dave Love's avatar
Dave Love committed
381 382 383

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

384 385
2000-11-07  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
386 387 388 389
	* 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.

390 391 392 393 394
	* 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.

395 396 397 398 399
2000-11-06  Gerd Moellmann  <gerd@gnu.org>

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

400 401 402 403 404
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
405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423
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
424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441
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.

442 443
2000-10-31  Gerd Moellmann  <gerd@gnu.org>

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

447 448 449
	* dispnew.c (update_frame_line): Handle case where spaces in 
	the default face are colored.

450 451 452
	* xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
	window height hasn't changed.

453 454 455 456 457 458
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.

459 460 461 462 463
2000-10-31  Miles Bader  <miles@lsi.nec.co.jp>

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

464 465
2000-10-30  Gerd Moellmann  <gerd@gnu.org>

466 467 468 469 470 471
	* 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.

472 473 474 475
	* 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.
	
476 477
	* xdisp.c (safe_eval_handler): Call add_to_log.

478 479 480
	* xfaces.c (resolve_face_name): Handle case that FACE_NAME
	is not a symbol or string.

481 482 483 484 485
	* 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
486 487
2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>

488 489
	* xrdb.c (x_load_resources): Use the class name in the defaults.

Stefan Monnier's avatar
Stefan Monnier committed
490 491 492
	* regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
	(regex_compile): Catch bogus \(\1\).

493 494
2000-10-30  Gerd Moellmann  <gerd@gnu.org>

495 496 497
	* xterm.c (x_alloc_nearest_color): Fix last change to compare
	RGB values.
	
498 499 500 501
	* 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
502 503 504
	* window.c (displayed_window_lines): Change buffers if necessary.
	Fix computation of displayed lines.

505 506 507
	* keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
	update_menu_bindings to DEFVAR_BOOL.

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

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

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

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

Jason Rumney's avatar
Jason Rumney committed
516 517 518 519 520 521 522 523 524 525 526 527 528 529 530
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
531 532 533 534 535 536 537 538 539
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.

540 541 542 543
2000-10-27  Ken Raeburn  <raeburn@gnu.org>

	* window.h (Fwindow_live_p): Declare.

544 545 546 547 548 549
	* 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.

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 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596
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
597 598 599 600 601 602 603
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.

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

616 617 618 619 620 621
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
622 623 624 625 626 627 628 629
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
630 631 632 633 634
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.

635 636
2000-10-26  Gerd Moellmann  <gerd@gnu.org>

637 638 639
	* 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
640 641 642 643 644 645
	* 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.

646 647
	* frame.c (Fdelete_frame): Run delete-frame-hook.

Kenichi Handa's avatar
Kenichi Handa committed
648 649 650 651 652
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
653 654
2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>

Stefan Monnier's avatar
Stefan Monnier committed
655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677
	* 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
678 679 680 681 682 683 684 685
	* 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).

686 687 688 689
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
690 691 692 693 694 695 696 697 698 699
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
700 701 702 703 704 705 706
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
707 708
2000-10-25  Miles Bader  <miles@lsi.nec.co.jp>

Miles Bader's avatar
Miles Bader committed
709 710 711
	* buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
	assignment of startpos to prev when startpos == pos.

Miles Bader's avatar
Miles Bader committed
712 713 714
	* editfns.c (find_field): Set the field stickiness correctly from
	overlay fields.  Use renamed `text_property_stickiness'.
	(text_property_stickiness): Renamed from `char_property_stickiness'.
Miles Bader's avatar
Miles Bader committed
715
	Only check text properties, not overlays.
Miles Bader's avatar
Miles Bader committed
716 717 718 719
	* textprop.c (get_char_property_and_overlay): New function.
	(Fget_char_property): Use it.
	* intervals.h (get_char_property_and_overlay): Add declaration.

720 721 722 723 724 725 726 727 728 729 730 731 732
2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>

	* keymap.c: Use AREF, ASET and ASIZE macros.
	(Fmake_sparse_keymap): Docstring fix.
	(synkey): Remove.
	(shadow_lookup): Move up.
	Handle the case where lookup-key returns an integer.
	(where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
	(where_is_internal_2): Adapt to fewer args for where_is_internal_1.
	(Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
	Simplify/rewrite the keymap-finding code.
	Add check for command shadowing, using shadow_lookup.

Stefan Monnier's avatar
Stefan Monnier committed
733 734 735 736 737 738
2000-10-24  Stefan Monnier  <monnier@cs.yale.edu>

	* keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
	rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
	a symbol.

739 740 741 742 743 744 745 746
2000-10-24  Andrew Innes  <andrewi@gnu.org>

	* dired.c (directory_files_internal_unwind): New function.
	(directory_files_internal): Use it to ensure closedir is called
	even if expand-file-name or file-attributes throw, eg. because of
	a user interrupt.  Also enable immediate_quit while calling
	re_search, so that matching can be interrupted as well.

747 748 749 750 751 752 753 754 755 756 757 758
2000-10-24  Andrew Innes  <andrewi@gnu.org>

	* regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
	NT-Emacs only.
	(re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
	so that re_search functions only quit when callers expect them to.

2000-10-24  Kenichi Handa  <handa@etl.go.jp>

	* regex.c (regex_compile): Change the way of handling a range from
	a char less than 256 to a char not less than 256.

Gerd Moellmann's avatar
Gerd Moellmann committed
759 760
2000-10-24  Gerd Moellmann  <gerd@gnu.org>

761 762 763
	* window.c (size_window): Prevent setting window's width or
	height to a negative value (esp. with XSETFASTINT).

764 765 766 767 768 769 770 771 772
	* gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
	[GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
	(protect_malloc_state) [GC_MALLOC_CHECK &&
	GC_PROTECT_MALLOC_STATE]: New function.
	(PROTECT_MALLOC_STATE): New macro.
	(__malloc_initialize, morecore, _malloc_internal)
	(_free_internal) _realloc_internal): Use it to make _heapinfo
	read-only outside of gmalloc.

Gerd Moellmann's avatar
Gerd Moellmann committed
773 774
	* keymap.c: Update copyright.

Gerd Moellmann's avatar
Gerd Moellmann committed
775 776 777
	* .gdbinit (xbacktrace): Handle case that $bt->function isn't
	a symbol.

778 779 780 781 782
2000-10-24  Colin Walters  <walters@cis.ohio-state.edu>

	* filelock.c (unlock_all_files): Use unlock_file to expand each
	buffer's file_truename before trying remove its lock file.

Eli Zaretskii's avatar
Eli Zaretskii committed
783 784 785 786 787
2000-10-24  Eli Zaretskii  <eliz@is.elta.co.il>

	* coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
	or CRLF, decode EOLs.

Kenichi Handa's avatar
Kenichi Handa committed
788 789 790 791
2000-10-24  Kenichi Handa  <handa@etl.go.jp>

	* window.c (Fdisplay_buffer): Fix doc.

792 793 794 795 796 797 798 799 800 801
2000-10-23  Jason Rumney  <jasonr@gnu.org>

	* fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
	ASCII font of default fontset on Windows.

	* w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
	xterm.c comment below).

	* w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.

802 803 804 805 806 807 808
2000-10-23  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (x_connection_closed): Reset handling_signal.

	* alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing
	null.

809 810 811 812 813 814 815
2000-10-23  Miles Bader  <miles@gnu.org>

	* window.c (window_scroll_pixel_based, window_scroll_line_based):
	Pass nil for FULLY argument to Fpos_visible_in_window_p to
	maintain old behavior.
	* minibuf.c (Fminibuffer_complete): Likewise.

Miles Bader's avatar
Miles Bader committed
816 817 818 819 820 821
2000-10-23  Miles Bader  <miles@lsi.nec.co.jp>

	* xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
	that when a font can't be exactly centered, it errs up rather than
	down.

Eli Zaretskii's avatar
Eli Zaretskii committed
822
2000-10-23  ShengHuo ZHU  <zsh@cs.rochester.edu>
823 824 825 826

	* fns.c (Fbase64_decode_string): The decoded result should be
	unibyte.

827 828 829 830 831
2000-10-23  Andrew Choi  <akochoi@i-cable.com>

	* dispextern.h [macintosh]: Include macgui.h instead of macterm.h.

	* dispnew.c [macintosh]: Include macterm.h.
832
	(init_display) [macintosh]: Initialization for window system.
833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896

	* emacs.c (main) [macintosh]: Call syms_of_textprop,
	syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
	syms_of_search, x_term_init, and init_keyboard before calling
	init_window_once.  Also, call syms_of_xmenu.

	* fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
	default fontset to Monaco.

	* frame.c [macintosh]: Include macterm.h.  Remove declarations of
	NewMacWindow and DisposeMacWindow.
	(make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
	instead of calling NewMacWindow and setting fields of
	f->output_data.mac directly.  Call init_frame_faces.
	(Fdelete_frame) [macintosh]: Remove unused code.
	(Fmodify_frame_parameters) [macintosh]: Call
	x_set_frame_parameters instead of mac_set_frame_parameters.

	* frame.h [macintosh]: Define menu_bar_lines field in struct
	frame.  Define FRAME_EXTERNAL_MENU_BAR macro.

	* keyboard.c [macintosh]: Include macterm.h.
	(kbd_buffer_get_event) [macintosh]: Generate delete_window_event
	and menu_bar_activate_event type events as for X and NT.
	(make_lispy_event) [macintosh]: Construct lisp events of type
	MENU_BAR_EVENT as for X and NT.

	* sysdep.c [macintosh]: Remove declaration for sys_signal.
	Include stdlib.h.  Remove definition of Vx_bitmap_file_path.
	(sys_subshell) [macintosh]: Remove definition entirely.
	(init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
	Vwindow_system_version here.  Remove initialization of
	Vx_bitmap_file_path.
	(read_input_waiting): Correct the number of parameters passed to
	read_socket_hook.
	Move all Macintosh functions to mac/mac.c.

	* term.c [macintosh]: Include macterm.h.

	* window.c [macintosh]: Include macterm.h.

	* xdisp.c [macintosh]: Include macterm.h.  Declare
	set_frame_menubar and pending_menu_activation.
	(echo_area_display) [macintosh]: Do not return if terminal frame
	is the selected frame.
	(update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
	Allow only the selected frame to set menu bar.
	(redisplay_window) [macintosh]: Obtain menu bar to redisplay by
	calling FRAME_EXTERNAL_MENU_BAR (f).
	(display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).

	* xfaces.c [macintosh]: Include macterm.h.  Define x_display_info
	and check_x.  Declare XCreateGC.  Define x_create_gc and
	x_free_gc.  Initialize font_sort_order.
	(x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
	but call x_list_fonts instead of w32_list_fonts.
	(Finternal_face_x_get_resource) [macintosh]: Do not call
	display_x_get_resource.
	(prepare_face_for_display) [macintosh]: Set xgcv.font.
	(realize_x_face) [macintosh]: Load the font if it is specified in
	ATTRS.
	(syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
	to Qt.

Stefan Monnier's avatar
Stefan Monnier committed
897 898 899 900 901 902 903 904
2000-10-22  Stefan Monnier  <monnier@cs.yale.edu>

	* keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
	is nil: since we go to the end of submap anyway, we'd end up
	setting nil to nil.
	(access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
	doesn't obey autoload.

905 906
2000-10-21  Eli Zaretskii  <eliz@is.elta.co.il>

Stefan Monnier's avatar
Stefan Monnier committed
907
	* msdos.c (dos_set_window_size): Update screen dimension variables.
908

Jason Rumney's avatar
Jason Rumney committed
909 910 911 912 913
2000-10-21  Jason Rumney  <jasonr@gnu.org>

	* w32term.c (w32_cache_char_metrics): Double check that font is
	really fixed pitch before trusting tmPitchAndFamily.

Andrew Innes's avatar
Andrew Innes committed
914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983
2000-10-21  Andrew Innes  <andrewi@gnu.org>

	* w32gui.h (w32_char_font_type): Move enum from w32term.c

	* w32term.h: Extern decl for w32_cache_char_metrics.

	* w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.

	* w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
	(w32_unload_font): Free per_char array if present.

	* w32term.c (w32_per_char_metric): Remove HDC argument.  Use
	cached information in emulated XFontStruct to handle common cases
	quickly.  Do not allocate XCharStruct for return.
	(w32_native_per_char_metric): New function.
	(w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
	allocating one.
	(x_produce_glyphs): Don't get an HDC.  Change calls to
	w32_per_char_metric to match arg change above.  Remove calls to
	free results.
	(w32_get_glyph_overhangs): Ditto.
	(w32_cache_char_metrics): New function.

	* makefile.w32-in: Change .obj to .$(O) in all dependencies.
	($(BLD)/casefiddle.$(O)): Remove compile command.
	($(BLD)/gmalloc.$(O)): Remove compile command.
	($(BLD)/dispnew.obj): 
	($(BLD)/keyboard.obj): 
	($(BLD)/w32inevt.obj): 
	($(BLD)/w32bdf.obj): 
	($(BLD)/alloc.obj): 
	($(BLD)/buffer.obj): 
	($(BLD)/editfns.obj): 
	($(BLD)/emacs.obj): 
	($(BLD)/fileio.obj): 
	($(BLD)/fns.obj): 
	($(BLD)/indent.obj): 
	($(BLD)/insdel.obj): 
	($(BLD)/intervals.obj): 
	($(BLD)/minibuf.obj): 
	($(BLD)/print.obj): 
	($(BLD)/scroll.obj): 
	($(BLD)/sysdep.obj): 
	($(BLD)/textprop.obj): 
	($(BLD)/widget.obj): 
	($(BLD)/xdisp.obj): Add dependency on w32gui.h.
	($(BLD)/term.obj): Add dependency on dispextern.h.

	* makefile.nt ($(BLD)\dispnew.obj): 
	($(BLD)\keyboard.obj): 
	($(BLD)\w32inevt.obj): 
	($(BLD)\w32bdf.obj): 
	($(BLD)\alloc.obj): 
	($(BLD)\buffer.obj): 
	($(BLD)\editfns.obj): 
	($(BLD)\emacs.obj): 
	($(BLD)\fileio.obj): 
	($(BLD)\fns.obj): 
	($(BLD)\indent.obj): 
	($(BLD)\insdel.obj): 
	($(BLD)\intervals.obj): 
	($(BLD)\minibuf.obj): 
	($(BLD)\print.obj): 
	($(BLD)\scroll.obj): 
	($(BLD)\sysdep.obj): 
	($(BLD)\textprop.obj): 
	($(BLD)\widget.obj): 
	($(BLD)\xdisp.obj): Add dependency on w32gui.h.
	($(BLD)\term.obj): Add dependency on dispextern.h

984 985 986 987 988
2000-10-21  Eli Zaretskii  <eliz@is.elta.co.il>

	* minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
	with an additional argument of Qt.

989 990 991 992 993 994 995 996 997
2000-10-21  Miles Bader  <miles@gnu.org>

	* window.c (pos_fully_visible_in_window_p): New function.
	(Fpos_visible_in_window_p): Add FULLY argument.
	Use pos_fully_visible_in_window_p.
	(window_scroll_pixel_based, window_scroll_line_based): Update
	calls to Fpos_visible_in_window_p.
	* lisp.h (Fpos_visible_in_window_p): Update prototype

998 999 1000 1001 1002
2000-10-20  Gerd Moellmann  <gerd@gnu.org>

	* alloc.c (toplevel): Conditionalize compilation of mem_*
	functions differently.
	
Jason Rumney's avatar
Jason Rumney committed
1003 1004 1005 1006 1007
2000-10-20  Jason Rumney  <jasonr@gnu.org>

	* alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
	mem_init where it used to be. mem_z etc not defined otherwise.

1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030
2000-10-20  Gerd Moellmann  <gerd@gnu.org>

	* alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
	GC_MALLOC_CHECK.
	(toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
	structure definition and related variabled to the top of the file.
	Include this code when GC_MALLOC_CHECK is defined.
	(lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
	register/unregister allocated region.
	(emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
	which isn't allocated.
	(emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
	something which is already in use.
	(emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
	(mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
	(mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
	(init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.

	* gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
	_malloc_internal instead of malloc.
	(_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
	of free.

1031 1032 1033 1034 1035 1036 1037 1038
2000-10-20  Andrew Innes  <andrewi@gnu.org>

	* strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
	Windows.
	(my_strftime) <macro>: Don't use macro arg list when redefining as
	_strftime_copytm.
	(my_strftime) <function>: Supply 0 as ut argument.

Jason Rumney's avatar
Jason Rumney committed
1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056
2000-10-19  Jason Rumney  <jasonr@altavista.net>

	* w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
	including dispextern.h, as it stops faces from working.

	* w32fns.c (Fx_create_frame): Don't bother calling
	face-set-after-frame-default since the caller does it for us
	anyway. Clean up calls to x_get_arg to be consistent with X.

	* w32term.c (x_produce_glyphs): Handle
	unibyte_display_via_language_environment correctly.
	(w32_draw_box_rect): Fix the calculation of width and height.

	* w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
	as it has stopped working.
	(Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
	menu-bar.

1057 1058 1059 1060 1061 1062
2000-10-19  Gerd Moellmann  <gerd@gnu.org>

	* eval.c (skip_debugger): Prevent a compiler warning.
	(Fcondition_case): Likewise.
	(Fbacktrace_frame): Use a null interactive spec.

Kenichi Handa's avatar
Kenichi Handa committed
1063 1064 1065 1066
2000-10-19  Kenichi Handa  <handa@etl.go.jp>

	* xterm.c (x_find_ccl_program): Check also fontp->full_name.

1067 1068
2000-10-18  Gerd Moellmann  <gerd@gnu.org>

1069 1070 1071 1072
	* strftime.c: Sync with glibc, file version 1.78.
	(my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
	should no longer be used according to ISO 8601.

Gerd Moellmann's avatar
Gerd Moellmann committed
1073 1074 1075 1076 1077
	* keymap.c (access_keymap): If IDX has a meta prefix, and there's
	no map for meta_prefix_char, don't try to use it as a keymap.
	Instead, if T_OK is non-zero, look up a default binding, if any,
	otherwise, if T_OK is zero, return nil.

1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092
	* xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
	(x_to_xcolors, png_load): Use x_query_color.

	* xterm.c (x_color_cells, x_query_colors, x_query_color): New
	functions.
	(x_alloc_nearest_color): Use it to reduce calls to XQueryColors
	which can be slow.
	(x_copy_color, x_alloc_lighter_color): Likewise.

	* xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
	(x_query_color, x_query_colors): Add prototype.

	* alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
	check_string_bytes only if not noninteractive, increase count to 50.

1093 1094 1095 1096 1097
2000-10-18  Miles Bader  <miles@lsi.nec.co.jp>

	* insdel.c (adjust_markers_for_delete): Handle before-insertion
	markers correctly.

1098 1099
2000-10-17  Gerd Moellmann  <gerd@gnu.org>

1100 1101 1102 1103 1104 1105 1106
	* alloc.c (pure_bytes_used): Renamed from pureptr.
	(ALIGN): New macro.
	(pure_alloc): New function.
	(make_pure_string, pure_cons, make_pure_float, make_pure_vector):
	Use it.
	(Fpurecopy): Use PURE_POINTER_P.

1107 1108 1109
	* xdisp.c (try_cursor_movement): Use cursor_row_p also when
	PT has moved backward.
	
1110 1111
	* xdisp.c (cursor_row_p): Take continued lines into account.

1112 1113 1114 1115 1116 1117 1118
	* alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
	string's size_byte.
	(check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
	(check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
	(allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
	string allocated.

1119 1120 1121
	* xdisp.c (forward_to_next_line_start): Switch iterator's handling
	of selective display off while searching for the next line start.

Kenichi Handa's avatar
Kenichi Handa committed
1122 1123 1124 1125
2000-10-17  Kenichi Handa  <handa@etl.go.jp>

	* Makefile.in (term.o): Depend on dispextern.h.

1126 1127 1128 1129
2000-10-16  Stefan Monnier  <monnier@cs.yale.edu>

	* keymap.c (keymap_memberp): Ensure that nil is not a member.

Gerd Moellmann's avatar
Gerd Moellmann committed
1130 1131
2000-10-16  Gerd Moellmann  <gerd@gnu.org>

1132 1133 1134 1135 1136
	* xdisp.c (set_iterator_to_next): Reset box start and end flags of
	the iterator at the beginning, so that they can be set later on,
	for instance in reseat_at_next_visible_line_start, without being
	overwritten.

Gerd Moellmann's avatar
Gerd Moellmann committed
1137 1138
	* xfns.c (pbm_format): Add :foreground and :background keywords.
	(PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
1139
	(xbm_load): Recognize foreground and background color
Gerd Moellmann's avatar
Gerd Moellmann committed
1140 1141
	specifications.

Eli Zaretskii's avatar
Eli Zaretskii committed
1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164
2000-10-16  Eli Zaretskii  <eliz@is.elta.co.il>

	* dispextern.h (unspecified_fg, unspecified_bg): Declare.

	* dosfns.c (unspecified_fg, unspecified_bg): Remove extern
	declaration.

	* msdos.c (IT_set_face): Compare highlighted face with the default
	face, and invert colors if these faces' colors are identical.
	(Fmsdos_remember_default_colors): Don't swap foreground and
	background colors in initial_colors[].
	(IT_set_frame_parameters): Don't swap frame's foreground and
	background pixels.  If ALIST includes "(reverse . t)", swap
	foreground-color and background-color properties in frame's
	param_alist.  If the original frame's param_alist doesn't specify
	the colors, store unspecified-fg and unspecified-bg, reversed if
	required.

	* frame.c (Fframe_parameters): If a tty's frame's param_alist says
	the colors are unspecified and reversed, reverse fore- and back-
	ground in the returned value.
	(Fframe_parameter): Ditto.

Gerd Moellmann's avatar
Gerd Moellmann committed
1165 1166
2000-10-16  Gerd Moellmann  <gerd@gnu.org>
	
Gerd Moellmann's avatar
Gerd Moellmann committed
1167 1168 1169 1170 1171 1172 1173 1174
	* xdisp.c (find_last_unchanged_at_beg_row): Renamed from
	get_last_unchanged_at_beg_row.
	(find_first_unchanged_at_end_row): Renamed from
	get_first_unchanged_at_end_row.
	(find_first_unchanged_at_end_row): Convert assertions to
	unconditional tests which abort.  When looking for a row in
	unchanged text, don't go further back than first_text_row.

Gerd Moellmann's avatar
Gerd Moellmann committed
1175 1176 1177
	* xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
	Don't add in the last line's height when deciding if the new
	position is below the scroll margin.
Miles Bader's avatar
Miles Bader committed
1178

Gerd Moellmann's avatar
Gerd Moellmann committed
1179
2000-10-16  Miles Bader  <miles@gnu.org>
1180 1181 1182 1183 1184

	* editfns.c (Fconstrain_to_field): Check carefully for field
	boundaries if either OLD_POS or NEW_POS has a non-nil field
	property, even if they're the same.

Kenichi Handa's avatar
Kenichi Handa committed
1185 1186 1187 1188 1189
2000-10-16  Kenichi Handa  <handa@etl.go.jp>

	* xterm.c (x_draw_box_rect): Fix the calculation of width and
	height for XFillRectangle.

Stefan Monnier's avatar
Stefan Monnier committed
1190 1191 1192 1193 1194 1195 1196 1197 1198
2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>

	* syntax.c (Fstring_to_syntax): New function extracted from
	Fmodify_syntax_entry.
	(Fmodify_syntax_entry): Use it and document the ! and | fences.
	(skip_chars, Fforward_comment): Remove unused variables.
	(syms_of_syntax): Add defsubr for string-to-syntax.
	(describe_syntax): Add code for comment and string fences.

1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218
2000-10-14  Stefan Monnier  <monnier@cs.yale.edu>

	* keymap.c (access_keymap): Add AUTOLOAD parameter.
	Do the meta->esc mapping.  Call get_keyelt before returning.
	Start scanning from the second element (the first is always `keymap')
	to make it easier to detect when we reach a parent map.
	Handle the case of inheriting from a symbol whose function is a map.
	(Fkeymap_parent): Also handle the `inherit from symbol' case.
	(fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
	(get_keyelt, Flookup_key): Update call to access_keymap.
	Remove the meta->esc mappings.
	(define_as_prefix): Delete old disabled code.
	(menu_item_p): New function.
	(where_is_internal_1): Skip over the few remaining menu items.
	* lisp.h (access_keymap): Update prototype.
	* keyboard.c (read_char, menu_bar_items, tool_bar_items):
	Update call to access_keymap.
	(follow_key, read_key_sequence): Update calls to access_keymap.
	Remove the meta->esc mappings.

Gerd Moellmann's avatar
Gerd Moellmann committed
1219 1220
2000-10-13  Gerd Moellmann  <gerd@gnu.org>

1221 1222 1223
	* dispnew.c (direct_output_for_insert): Call set_iterator_to_next
	with additional argument.

Gerd Moellmann's avatar
Gerd Moellmann committed
1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242
	* xdisp.c (cursor_row_p): New function.
	(try_cursor_movement, display_line): Use it.
	
	* xdisp.c (append_space): Also save/restore iterator's current
	character and its length.

	* xdisp.c (init_from_display_pos): Add an assertion.
	(handle_stop): Don't set iterator's add_overlay_start.
	(handle_invisible_prop): Likewise.
	(load_overlay_strings): If text under an overlay is invisible,
	take both before- and after-strings into account when the iterator
	is positioned either at the start or at the end of the overlay.
	(forward_to_next_line_start): Rewritten.
	(reseat_at_next_visible_line_start): Rewritten.
	(set_iterator_to_next): Add parameter RESEAT_P.

	* dispextern.h (struct it): Remove member add_overlay_start.
	(set_iterator_to_next): Change prototype.

Kenichi Handa's avatar
Kenichi Handa committed
1243 1244 1245 1246
2000-10-13  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (code_convert_region): Be sure to initialize
	coding->category_idx.
Kenichi Handa's avatar
Kenichi Handa committed
1247 1248 1249 1250
	(decode_coding_string): Set coding->src_multibyte and
	coding->dst_multibyte before using CODING_REQUIRE_DECODING.
	(encode_coding_string): Set coding->src_multibyte and
	coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
Kenichi Handa's avatar
Kenichi Handa committed
1251

1252 1253 1254 1255 1256
2000-10-12  Stefan Monnier  <monnier@cs.yale.edu>

	* xfns.c (Fx_create_frame): Don't bother calling
	face-set-after-frame-default since the caller does it for us anyway.

1257 1258 1259 1260 1261
2000-10-12  Eli Zaretskii  <eliz@is.elta.co.il>

	* window.c (coordinates_in_window): Fix detection of vertical line
	on character terminals.

1262 1263 1264 1265 1266 1267 1268 1269
2000-10-12  Gerd Moellmann  <gerd@gnu.org>

	* editfns.c (save_excursion_save): Additionally record the
	selected window.
	(save_excursion_restore): If buffer was visible in a window, and a
	different window was selected, and the old selected window is
	still live, restore point in that window.

Kenichi Handa's avatar
Kenichi Handa committed
1270 1271
2000-10-12  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
1272 1273 1274
	* xterm.c (x_produce_glyphs): Handle
	unibyte_display_via_language_environment correctly.

Kenichi Handa's avatar
Kenichi Handa committed
1275 1276 1277 1278 1279 1280
	* regex.c (regex_compile): Change the way of handling a range from
	unibyte char to multibyte char.

	* syntax.c (skip_chars): Change the way of handling a range from
	unibyte char to multibyte char.

Kenichi Handa's avatar
Kenichi Handa committed
1281 1282
	* process.c (read_process_output): Cancel previous change.

1283 1284
2000-10-11  Eli Zaretskii  <eliz@is.elta.co.il>

Eli Zaretskii's avatar
Eli Zaretskii committed
1285 1286
	* search.c (Fsearch_backward, Fsearch_forward): Doc fix.

1287 1288 1289
	* charset.c (Ffind_charset_string): Doc fix.
	(Ffind_charset_region): Doc fix.

Kenichi Handa's avatar
Kenichi Handa committed
1290 1291 1292 1293
2000-10-11  Kenichi Handa  <handa@mule.m17n.org>

	* process.c (read_process_output): Fix previous change.  Adjust
	multibyteness of text to insert in a buffer by
1294
	string_make_unibyte/multibyte instead of
Kenichi Handa's avatar
Kenichi Handa committed
1295 1296
	Fstring_as_unibyte/multibyte.

Andreas Schwab's avatar
.  
Andreas Schwab committed
1297 1298 1299 1300 1301
2000-10-10  Andreas Schwab  <schwab@suse.de>

	* alloc.c (mark_object): Remove all workarounds installed on
	1993-08-08.

1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317
2000-10-10  Kenichi Handa  <handa@etl.go.jp>

	* fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before
	returning.
	(base64_encode_1): Make it work for a text of multibyte form.
	(Fbase64_decode_region): Allocate sufficient memory for multibyte
	case.  Don't call str_to_multibyte because base64_decode_1
	produces correct multibyte form for eight-bit codes.
	(Fbase64_decode_string): Adjusted for the change of
	base64_decode_1.
	(base64_decode_1): New args MULTIBYTE and NCHARS_RETURN.  If
	MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
	codes.

	* charset.h (CHAR_STRING): Optimized for single byte characters.

Andreas Schwab's avatar
.  
Andreas Schwab committed
1318 1319 1320 1321 1322
2000-10-09  Andreas Schwab  <schwab@suse.de>

	* process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
	-1 after socket is closed, to fall through to error processing.

1323 1324 1325
2000-10-09  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
1326
	variables.  If ALIST includes foreground-color or
1327 1328 1329
	background-color, change also the colors of the default face for
	this frame.

Eli Zaretskii's avatar
Eli Zaretskii committed
1330 1331 1332 1333 1334 1335 1336
2000-10-08  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
	them extern (they are defined on xfaces.c).
	(syms_of_msdos): Don't intern and don't staticpro
	Qbackground_color and Qforeground_color.

Eli Zaretskii's avatar
Eli Zaretskii committed
1337 1338 1339 1340 1341 1342 1343
2000-10-07  Eli Zaretskii  <eliz@is.elta.co.il>

	* frame.c (Fframe_parameter): For non-windowed frames, if
	f->param_alist says foreground or background color is unspecified,
	call tty_color_name to return the color name computed from the
	frame's current colors.

Dave Love's avatar
Dave Love committed
1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356
2000-10-06  Dave Love  <fx@gnu.org>

	* terminfo.c (ospeed): Don't declare.

	* sysdep.c: Don't include string.h.
	(h_errno): Declare conditional also on TRY_AGAIN.

	* charset.c (Ffind_charset_string): Doc fix.

	* fns.c (Fbase64_encode_region, Fbase64_encode_string) 
	(Fbase64_decode_region, Fbase64_decode_string): More explicit
	error messages.

1357 1358 1359 1360 1361
2000-10-05  Dave Love  <fx@gnu.org>

	* xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
	position like menu-bar.

1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384
2000-10-05  Gerd Moellmann  <gerd@gnu.org>

	* keyboard.c (Frecursive_edit): Make sure redisplay can happen.

	* xdisp.c (handle_single_display_prop): Use safe_call1.
	(safe_call): Renamed from call_function.
	(safe_call1): New function.
	(handle_fontified_prop): Use safe_call1 instead of call1.
	(safe_eval): Renamed from eval_form.
	(safe_eval_handler): Renamed from eval_handler.
	(handle_single_display_prop, display_mode_element): Use safe_eval
	instead of eval_form.

	* xfaces.c (merge_face_heights): Use safe_call instead of
	call_function.

	* keyboard.c (show_help_echo): Use safe_call instead of
	call_function; use safe_eval instead of eval_form.

	* lisp.h (safe_call): Renamed from call_function.
	(safe_eval): Renamed from eval_form.
	(safe_call1): Add prototype.

Miles Bader's avatar
Miles Bader committed
1385 1386 1387 1388 1389
2000-10-05  Miles Bader  <miles@lsi.nec.co.jp>

	* xfns.c (image_ascent): Rearrange ascent calculation for the
	has-a-font case.

1390 1391 1392 1393 1394
2000-10-04  Stefan Monnier  <monnier@cs.yale.edu>

	* keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
	(where_is_internal_1): Don't bother ignoring menu-items any more.

Gerd Moellmann's avatar
Gerd Moellmann committed
1395 1396 1397 1398 1399 1400 1401
2000-10-04  Gerd Moellmann  <gerd@gnu.org>

	* keyboard.c (update_menu_bindings): New variable.
	(parse_menu_item): Use AREF.  If update_menu_bindings
	is 0, don't update menu bindings.
	(syms_of_keyboard): New Lisp variable `update-menu-bindings'.

1402 1403 1404 1405 1406
2000-10-03  Eli Zaretskii  <eliz@is.elta.co.il>

	* alloc.c (Fgarbage_collect): Prevent compiler warning for a call
	to `mark_object'.

1407 1408 1409 1410 1411 1412 1413 1414 1415
2000-10-02  Stefan Monnier  <monnier@cs.yale.edu>

	* syntax.c (forw_comment): Match nestedness of ender/starter.
	(Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
	(prev_char_comstart_first): Remove.
	(back_comment): Check two-char comment markers more carefully
	to better handle overlapping cases like *//* or /* */* */ ...
	Match nestedness of ender/starter.

Dave Love's avatar
Dave Love committed
1416 1417 1418 1419 1420 1421 1422 1423
2000-10-02  Dave Love  <fx@gnu.org>

	* config.in (HAVE_GAI_STRERROR): Add undef.

	* process.c (Fopen_network_stream): Use it.

	* m/alpha.h (NO_REMAP): Don't define.

Gerd Moellmann's avatar
Gerd Moellmann committed
1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434
2000-10-02  Gerd Moellmann  <gerd@gnu.org>

	* lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
	return with a string converted to an integer or vice versa when
	Vmocklisp_arguments is t.
	(Fsignal): Likewise.  The function can return for `quit'.
	(struct gcpro): Declare member `var' to point to a volatile
	Lisp_Object.

	* eval.c (error): Prevent compiler warning.

1435 1436 1437 1438 1439 1440 1441 1442
2000-09-30  Stefan Monnier  <monnier@cs.yale.edu>

	* keymap.c (keymap_memberp): New function.
	(Fset_keymap_parent): Use it.
	(fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
	Use keymap_memberp to avoid creating cycles.
	(access_keymap): Use KEYMAPP.

Gerd Moellmann's avatar
Gerd Moellmann committed
1443 1444 1445
2000-09-30  Gerd Moellmann  <gerd@gnu.org>

	* process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
Gerd Moellmann's avatar
Gerd Moellmann committed
1446 1447
	gai_strerror.  Make sure xerrno is set if connect fails.  Improve
	error recovery.
Gerd Moellmann's avatar
Gerd Moellmann committed
1448

Jason Rumney's avatar
Jason Rumney committed
1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484
2000-09-29  Jason Rumney <jasonr@gnu.org>

	* w32term.c (w32_char_font_type, w32_encode_char)
	(x_produce_glyphs): Distinguish single and multibyte BDF fonts.
	(w32_bdf_per_char_metric): New function.
	(w32_per_char_metric): Use it.
	(x_draw_glyph_string_background): Always draw background for BDF
	glyphs.

	* w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
	GDI object which is a scarce resource.

	* w32bdf.c (search_file_line): Fix skipping of whitespace.
	(get_quoted_string): Fix limit on memchr search.
	(set_bdf_font_info): Use unsigned chars. Negate yoffset.
	(w32_init_bdf_font): Initialize codepoint and bitmap heaps.
	(w32_free_bdf_font): Free bitmaps and codepoints on heaps.
	(get_cached_font_char, cache_char_offset): Use macro
	BDF_CODEPOINT_RANGE_COVER_P.
	(cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
	(clear_cached_bitmap_slots): New function.
	(GET_HEX_VALUE): G-Z, g-z are not hex.
	(w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
	(get_bitmap_with_cache): Use new cache implementation.
	(create_offscreen_bitmap): New function.
	(w32_BDF_TextOut): Use it. Draw glyphs as DIBs.

	* w32term.c (x_produce_glyphs):  If the distance from the current
	position to the next tab stop is less than a canonical character
	width, use the tab stop after that.
	(x_draw_glyphs): Handle case START and END are out of bounds more
	carefully.
	(x_clear_mouse_face): Block/unblock input.
	(x_display_and_set_cursor): Don't show a hollow box cursor for
	buffers whose cursor_type is nil.

1485 1486 1487 1488 1489 1490 1491
2000-09-29  Gerd Moellmann  <gerd@gnu.org>

	* xfns.c (x_set_tool_bar_lines): Clear frame when tool bar
	disappears.

	* dispextern.h (updating_frame): Declare extern.

Andreas Schwab's avatar
.  
Andreas Schwab committed
1492 1493 1494 1495
2000-09-29  Andreas Schwab  <schwab@suse.de>

	* m/ia64.h: Remove hack of not prototyping bcopy, etc.

Gerd Moellmann's avatar
Gerd Moellmann committed
1496 1497
2000-09-29  Gerd Moellmann  <gerd@gnu.org>

1498 1499 1500 1501
	* keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
	use its function definition.
	(tool_bar_items): Likewise.

Gerd Moellmann's avatar
Gerd Moellmann committed
1502 1503
	* lisp.h (fatal): Declare NO_RETURN.
	
Kenichi Handa's avatar
Kenichi Handa committed
1504 1505 1506 1507
2000-09-29  Kenichi Handa  <handa@etl.go.jp>

	* keymap.c: Remove the line "#undef NULL".

Gerd Moellmann's avatar
Gerd Moellmann committed
1508 1509 1510 1511 1512
2000-09-28  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (x_make_frame_visible): Try harder to make the frame
	visible.

Dave Love's avatar
Dave Love committed
1513 1514
2000-09-28  Dave Love  <fx@gnu.org>

Dave Love's avatar
Dave Love committed
1515 1516
	* s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.

Dave Love's avatar
Dave Love committed
1517 1518 1519 1520
	* s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.

	* .gdbinit (xreload): Note its need on GNU/Linux.

Dave Love's avatar
Dave Love committed
1521 1522 1523
	* m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
	r_alloc, r_alloc_free.

Kenichi Handa's avatar
Kenichi Handa committed
1524 1525 1526 1527
2000-09-28  Kenichi Handa  <handa@etl.go.jp>

	* syntax.c (skip_chars): Handle negation correctly.

Gerd Moellmann's avatar
Gerd Moellmann committed
1528 1529
2000-09-27  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1530 1531 1532
	* xfaces.c (realize_default_face): Call set_lface_from_font_name
	with non-zero FORCE_P argument.

Gerd Moellmann's avatar
Gerd Moellmann committed
1533 1534 1535 1536 1537 1538 1539 1540 1541
	* dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows): 
	Add assertions.

	* xdisp.c (window_box_height): Add an assertion.

	* xfns.c (x_set_tool_bar_lines): Don't use more lines for the
	tool-bar than is available.
	(x_change_window_heights): Renamed from x_set_menu_bar_lines_1.

Dave Love's avatar
Dave Love committed
1542 1543
2000-09-27  Dave Love  <fx@gnu.org>

Dave Love's avatar
Dave Love committed
1544
	* s/irix6-5.h: Now works 64-bit.  Tidied.
Dave Love's avatar
Dave Love committed
1545

1546 1547
2000-09-26  Gerd Moellmann  <gerd@gnu.org>

1548 1549 1550 1551 1552 1553 1554 1555 1556 1557
	* lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
	instead of BITS_PER_INT.
	(XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
	EMACS_UINT, respectively.
	(NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.

	* m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.

	* unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.

Gerd Moellmann's avatar
Gerd Moellmann committed
1558 1559 1560 1561 1562 1563 1564 1565 1566 1567