ChangeLog 264 KB
Newer Older
Stefan Monnier's avatar
Stefan Monnier committed
1 2 3 4 5 6
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.

7 8 9 10 11 12
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
13 14 15 16 17 18 19 20
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
21 22 23 24 25
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.

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

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

37 38
	* frame.c (Fdelete_frame): Run delete-frame-hook.

Kenichi Handa's avatar
Kenichi Handa committed
39 40 41 42 43
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
44 45
2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>

Stefan Monnier's avatar
Stefan Monnier committed
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
	* 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
69 70 71 72 73 74 75 76
	* 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).

77 78 79 80
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
81 82 83 84 85 86 87 88 89 90
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
91 92 93 94 95 96 97
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
98 99
2000-10-25  Miles Bader  <miles@lsi.nec.co.jp>

Miles Bader's avatar
Miles Bader committed
100 101 102
	* 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
103 104 105
	* 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
106
	Only check text properties, not overlays.
Miles Bader's avatar
Miles Bader committed
107 108 109 110
	* textprop.c (get_char_property_and_overlay): New function.
	(Fget_char_property): Use it.
	* intervals.h (get_char_property_and_overlay): Add declaration.

111 112 113 114 115 116 117 118 119 120 121 122 123
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
124 125 126 127 128 129
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.

130 131 132 133 134 135 136 137
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.

138 139 140 141 142 143 144 145 146 147 148 149
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
150 151
2000-10-24  Gerd Moellmann  <gerd@gnu.org>

152 153 154
	* window.c (size_window): Prevent setting window's width or
	height to a negative value (esp. with XSETFASTINT).

155 156 157 158 159 160 161 162 163
	* 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
164 165
	* keymap.c: Update copyright.

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

169 170 171 172 173
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
174 175 176 177 178
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
179 180 181 182
2000-10-24  Kenichi Handa  <handa@etl.go.jp>

	* window.c (Fdisplay_buffer): Fix doc.

183 184 185 186 187 188 189 190 191 192
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.

193 194 195 196 197 198 199
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.

200 201 202 203 204 205 206
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
207 208 209 210 211 212
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
213
2000-10-23  ShengHuo ZHU  <zsh@cs.rochester.edu>
214 215 216 217

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

218 219 220 221 222
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.
223
	(init_display) [macintosh]: Initialization for window system.
224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287

	* 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
288 289 290 291 292 293 294 295
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.

296 297
2000-10-21  Eli Zaretskii  <eliz@is.elta.co.il>

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

Jason Rumney's avatar
Jason Rumney committed
300 301 302 303 304
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
305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374
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

375 376 377 378 379
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.

380 381 382 383 384 385 386 387 388
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

389 390 391 392 393
2000-10-20  Gerd Moellmann  <gerd@gnu.org>

	* alloc.c (toplevel): Conditionalize compilation of mem_*
	functions differently.
	
Jason Rumney's avatar
Jason Rumney committed
394 395 396 397 398
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.

399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421
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.

422 423 424 425 426 427 428 429
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
430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447
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.

448 449 450 451 452 453
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
454 455 456 457
2000-10-19  Kenichi Handa  <handa@etl.go.jp>

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

458 459
2000-10-18  Gerd Moellmann  <gerd@gnu.org>

460 461 462 463
	* 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
464 465 466 467 468
	* 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.

469 470 471 472 473 474 475 476 477 478 479 480 481 482 483
	* 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.

484 485 486 487 488
2000-10-18  Miles Bader  <miles@lsi.nec.co.jp>

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

489 490
2000-10-17  Gerd Moellmann  <gerd@gnu.org>

491 492 493 494 495 496 497
	* 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.

498 499 500
	* xdisp.c (try_cursor_movement): Use cursor_row_p also when
	PT has moved backward.
	
501 502
	* xdisp.c (cursor_row_p): Take continued lines into account.

503 504 505 506 507 508 509
	* 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.

510 511 512
	* 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
513 514 515 516
2000-10-17  Kenichi Handa  <handa@etl.go.jp>

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

517 518 519 520
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
521 522
2000-10-16  Gerd Moellmann  <gerd@gnu.org>

523 524 525 526 527
	* 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
528 529
	* xfns.c (pbm_format): Add :foreground and :background keywords.
	(PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
530
	(xbm_load): Recognize foreground and background color
Gerd Moellmann's avatar
Gerd Moellmann committed
531 532
	specifications.

Eli Zaretskii's avatar
Eli Zaretskii committed
533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555
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
556 557
2000-10-16  Gerd Moellmann  <gerd@gnu.org>
	
Gerd Moellmann's avatar
Gerd Moellmann committed
558 559 560 561 562 563 564 565
	* 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
566 567 568
	* 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
569

Gerd Moellmann's avatar
Gerd Moellmann committed
570
2000-10-16  Miles Bader  <miles@gnu.org>
571 572 573 574 575

	* 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
576 577 578 579 580
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
581 582 583 584 585 586 587 588 589
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.

590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609
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
610 611
2000-10-13  Gerd Moellmann  <gerd@gnu.org>

612 613 614
	* dispnew.c (direct_output_for_insert): Call set_iterator_to_next
	with additional argument.

Gerd Moellmann's avatar
Gerd Moellmann committed
615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633
	* 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
634 635 636 637
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
638 639 640 641
	(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
642

643 644 645 646 647
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.

648 649 650 651 652
2000-10-12  Eli Zaretskii  <eliz@is.elta.co.il>

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

653 654 655 656 657 658 659 660
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
661 662
2000-10-12  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
663 664 665
	* xterm.c (x_produce_glyphs): Handle
	unibyte_display_via_language_environment correctly.

Kenichi Handa's avatar
Kenichi Handa committed
666 667 668 669 670 671
	* 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
672 673
	* process.c (read_process_output): Cancel previous change.

674 675
2000-10-11  Eli Zaretskii  <eliz@is.elta.co.il>

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

678 679 680
	* charset.c (Ffind_charset_string): Doc fix.
	(Ffind_charset_region): Doc fix.

Kenichi Handa's avatar
Kenichi Handa committed
681 682 683 684
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
685
	string_make_unibyte/multibyte instead of
Kenichi Handa's avatar
Kenichi Handa committed
686 687
	Fstring_as_unibyte/multibyte.

Andreas Schwab's avatar
.  
Andreas Schwab committed
688 689 690 691 692
2000-10-10  Andreas Schwab  <schwab@suse.de>

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

693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708
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
709 710 711 712 713
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.

714 715 716
2000-10-09  Eli Zaretskii  <eliz@is.elta.co.il>

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

Eli Zaretskii's avatar
Eli Zaretskii committed
721 722 723 724 725 726 727
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
728 729 730 731 732 733 734
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
735 736 737 738 739 740 741 742 743 744 745 746 747
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.

748 749 750 751 752
2000-10-05  Dave Love  <fx@gnu.org>

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

753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775
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
776 777 778 779 780
2000-10-05  Miles Bader  <miles@lsi.nec.co.jp>

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

781 782 783 784 785
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
786 787 788 789 790 791 792
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'.

793 794 795 796 797
2000-10-03  Eli Zaretskii  <eliz@is.elta.co.il>

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

798 799 800 801 802 803 804 805 806
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
807 808 809 810 811 812 813 814
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
815 816 817 818 819 820 821 822 823 824 825
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.

826 827 828 829 830 831 832 833
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
834 835 836
2000-09-30  Gerd Moellmann  <gerd@gnu.org>

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

Jason Rumney's avatar
Jason Rumney committed
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
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.

876 877 878 879 880 881 882
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
883 884 885 886
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
887 888
2000-09-29  Gerd Moellmann  <gerd@gnu.org>

889 890 891 892
	* 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
893 894
	* lisp.h (fatal): Declare NO_RETURN.
	
Kenichi Handa's avatar
Kenichi Handa committed
895 896 897 898
2000-09-29  Kenichi Handa  <handa@etl.go.jp>

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

Gerd Moellmann's avatar
Gerd Moellmann committed
899 900 901 902 903
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
904 905
2000-09-28  Dave Love  <fx@gnu.org>

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

Dave Love's avatar
Dave Love committed
908 909 910 911
	* s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.

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

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

Kenichi Handa's avatar
Kenichi Handa committed
915 916 917 918
2000-09-28  Kenichi Handa  <handa@etl.go.jp>

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

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

Gerd Moellmann's avatar
Gerd Moellmann committed
921 922 923
	* xfaces.c (realize_default_face): Call set_lface_from_font_name
	with non-zero FORCE_P argument.

Gerd Moellmann's avatar
Gerd Moellmann committed
924 925 926 927 928 929 930 931 932
	* 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
933 934
2000-09-27  Dave Love  <fx@gnu.org>

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

937 938
2000-09-26  Gerd Moellmann  <gerd@gnu.org>

939 940 941 942 943 944 945 946 947 948
	* 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
949 950 951 952 953 954 955 956 957 958 959 960
	* window.c (freeze_window_starts): Construct last argument for
	foreach_window differently.

	* xfns.c (x_decode_color): Don't return a Lisp_Object.

	* lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
	EMACS_UINT instead of `int' and `unsigned int'.
	(XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.

	* frame.h (struct frame): Make the `nothing' member of union
	output_data an EMACS_INT.

961 962 963 964 965 966 967 968 969 970 971 972 973
	* alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug
	hunting.
	(struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
	size in the sdata structure.
	(SDATA_NBYTES, SDATA_DATA): New macros.
	(SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
	differently for the different layout of the sdata structure.
	(allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
	in sdata.
	(sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
	Check that size recorded in the string size and size recorded in
	the sdata structure agree.

974 975 976 977 978 979 980 981 982 983 984 985 986
2000-09-25  Dave Love  <fx@gnu.org>

	* buffer.c: Include stdio.h.

	Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
	
	* ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.

	* alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
	(__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as
	size_t.
	(__malloc_extra_blocks): Declare as __malloc_size_t.

Gerd Moellmann's avatar
Gerd Moellmann committed
987 988
2000-09-25  Gerd Moellmann  <gerd@gnu.org>

989 990
	* alloc.c (mark_image): Use GC_NILP instead of NILP.

Gerd Moellmann's avatar
Gerd Moellmann committed
991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004
	* keyboard.c (show_help_echo): Set help_echo_showing_p.
	(read_char): If help-echo is showing, preserve the echo area
	when redisplaying.

	* xdisp.c (help_echo_showing_p): New variable.
	(set_message): Reset it to 0.
	(init_xdisp): Initialize help_echo_showing_p.

	* dispextern.h (help_echo_showing_p): Declare extern.

	* config.in: Fix typo in __GNUC_MINOR__.

	* keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.

Gerd Moellmann's avatar
Gerd Moellmann committed
1005 1006
	* s/freebsd.h (POSIX_SIGNALS): Define.

Gerd Moellmann's avatar
Gerd Moellmann committed
1007 1008
	* xterm.c (x_clear_mouse_face): Block/unblock input.

1009 1010 1011 1012
2000-09-24  Dave Love  <fx@gnu.org>

	* fns.c (base64_encode_1): Fix last change.

1013 1014 1015 1016 1017 1018 1019
2000-09-22  Gerd Moellmann  <gerd@gnu.org>

	* dispnew.c (enable_glyph_matrix_rows): Remove xasserts.

	* xdisp.c (try_window_reusing_current_matrix): More fixes
	for the case window has a header-line.

1020 1021
2000-09-22  Dave Love  <fx@gnu.org>

Dave Love's avatar
Dave Love committed
1022 1023 1024 1025 1026
	* xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
	a doc string.

	* xterm.c [SOLARIS2]: Remove redundant include of string.h.

1027 1028
	* fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.

1029 1030
2000-09-21  Gerd Moellmann  <gerd@gnu.org>

Dave Love's avatar
Dave Love committed
1031
	* config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
1032 1033 1034 1035 1036
	for GCC >= 2.5.

	* lisp.h (wrong_type_argument, Fthrow, Fsignal, error): Declare
	NO_RETURN.

1037 1038 1039 1040 1041 1042 1043
	* window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
	* keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
	* indent.c, search.c, alloc.c, data.c: Avoid some more compiler
	warnings.
	
	* marker.c (byte_char_debug_check): Return void.

Gerd Moellmann's avatar
Gerd Moellmann committed
1044 1045 1046 1047 1048 1049 1050 1051 1052 1053
	* xfns.c (Fx_create_frame): Set default frame parameter value
	for tool-bar-lines to 1.

	* dispnew.c (scrolling_window): Compare y-positions of rows
	equal at the start.  Some simplification.

	* xdisp.c (try_window_reusing_current_matrix): Fix computation of
	reused rows' y-position in the case window has a header-line, and
	new window start is greater than old window start.

Gerd Moellmann's avatar
Gerd Moellmann committed
1054 1055 1056 1057 1058
	* process.c (process_sent_to): New variable.
	(send_process): Workaround for a crash on sparc-sun-solaris-2.6
	with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
	Declare more parameters volatile.

1059 1060 1061 1062 1063
	* lread.c (Vrecursive_load_depth_limit): New variable.
	(Fload): Check recursive loads whose recursion depth exceeds
	Vrecursive_load_depth_limit.
	(syms_of_lread): DERFAR_LISP recursive-load-depth-limit.

Gerd Moellmann's avatar
Gerd Moellmann committed
1064 1065
2000-09-20  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1066 1067 1068 1069 1070 1071
	* fileio.c (Fread_file_name): Doc fix.

	* editfns.c (Fmessage_or_box): Doc fix.

	* fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.

Gerd Moellmann's avatar
Gerd Moellmann committed
1072 1073
	* xfns.c (xbm_scan): Allow C-style comments.
	
Gerd Moellmann's avatar
Gerd Moellmann committed
1074 1075 1076 1077 1078 1079 1080 1081 1082
	* xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
	symbols are specified, add color translations to the cache.
	(xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New
	functions.
	(xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
	xpm_cache_color.
	(xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
	structures to xpm_init_color_cache.

Gerd Moellmann's avatar
Gerd Moellmann committed
1083 1084 1085 1086 1087
2000-09-19  Gerd Moellmann  <gerd@gnu.org>

	* dispnew.c (update_window_line): Make sure to always draw
	mode-lines.

1088 1089 1090 1091
2000-09-19  Andrew Innes  <andrewi@gnu.org>

	* makefile.nt (bootstrap-emacs): Don't change directory.

Kenichi Handa's avatar
Kenichi Handa committed
1092 1093
2000-09-19  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
1094 1095
	* charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.

Kenichi Handa's avatar
Kenichi Handa committed
1096 1097 1098
	* ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
	If output buffer is too small, signal an appropriated error.

Dave Love's avatar
Dave Love committed
1099 1100 1101 1102 1103
2000-09-18  Dave Love  <fx@gnu.org>

	* keyboard.c (menu_bar_items, tool_bar_items) 
	(current_active_maps): Remove redundant get_local_map call.

1104 1105
2000-09-18  Gerd Moellmann  <gerd@gnu.org>

1106 1107 1108
	* xterm.c (x_display_and_set_cursor): Don't show a hollow box
	cursor for buffers whose cursor_type is nil.
	
Gerd Moellmann's avatar
Gerd Moellmann committed
1109 1110 1111 1112 1113 1114 1115 1116 1117 1118
	* xterm.c (x_draw_image_glyph_string): Remove a comment describing
	a feature to implement that is already implemented.
	(note_mouse_highlight, x_find_ccl_program): Avoid some compiler
	warnings.

	* xfns.c (x_clear_image_1): New function.
	(x_clear_image): Use it.
	(x_from_xcolors): Use x_clear_image_1; don't free the image's
	mask.

Gerd Moellmann's avatar
Gerd Moellmann committed
1119 1120 1121 1122
	* dispnew.c (update_window): Move test for invisible lines
	at the top to update_window_line.
	(update_window_line): Handle invisible lines here.

1123 1124 1125 1126 1127
	* xfns.c (clear_image_cache): Clear current matrices of all
	frames sharing an image cache.  Block input while freeing
	images.  Fix timestamp comparison.
	(x_clear_image): Also free the mask.

1128 1129 1130 1131 1132 1133 1134 1135 1136
	* xfns.c (lookup_image): Block input while loading the image so
	that we won't get interrupted in a state where the image isn't yet
	set up completely.
	(xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
	(lookup_pixel_color, x_to_xcolors, x_from_xcolors)
	(x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
	(jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock
	input.

1137 1138 1139 1140 1141 1142
2000-09-16  Gerd Moellmann  <gerd@gnu.org>

	* dispnew.c (update_window): Make sure to make desired rows
	current even if they are completely invisible at the top
	of a window.

Gerd Moellmann's avatar
Gerd Moellmann committed
1143 1144
2000-09-15  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155
	* xfns.c (lookup_image): Build mask before applying an algorithm.
	Recognize algorithm `disabled'.
	(cross_disabled_images): New variable.
	(COLOR_INTENSITY): New macro.
	(x_detect_edges): Use COLOR_INTENSITY.
	(x_disable_image): New function.
	(syms_of_xfns): DEFVAR_BOOL cross_disabled_images.

	* xdisp.c (build_desired_tool_bar_string): For a toolbar item in
	disabled state, don't apply an image transformation algorithm if
	the user specified an image for the disabled state.  Use
1156
	`:algorithm disabled' for creating a disabled item's image if the
Gerd Moellmann's avatar
Gerd Moellmann committed
1157 1158
	user hasn't specified an image.

Gerd Moellmann's avatar
Gerd Moellmann committed
1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171
	* xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
	allocation functions with the XPM lib.
	(struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
	(XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
	(xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
	(xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
	(xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New
	functions.
	(xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
	functions, if possible, because these handle color allocation
	failure more gracefully.
	(Fimage_mask_p): New function.

Gerd Moellmann's avatar
Gerd Moellmann committed
1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187
	* xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
	(Qedge_detection, Qheuristic): New symbols.
	(syms_of_xfns): Initialize new symbols.
	(lookup_image): Handle `:mask X', `:algorithm emboss', and
	`algorithm (edge-detection ...)'.
	(xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
	(tiff_format, gif_format, gs_format): Add `:mask'.
	(XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
	(GIF_MASK, GS_MASK): New enumerators.
	(x_laplace_read_row, x_laplace_write_row): Functions removed.
	(emboss_matrix, laplace_matrix): New variables.
	(x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
	(x_edge_detection): New functions.
	(x_laplace): Rewritten in terms of x_detect_edges.
	(x_build_heuristic_mask): If image has a mask, free it.

Andrew Innes's avatar
Andrew Innes committed
1188 1189 1190 1191
2000-09-14  Andrew Innes  <andrewi@gnu.org>

	* makefile.w32-in: Revert to Unix line endings.

Andrew Innes's avatar
Andrew Innes committed
1192 1193 1194 1195 1196 1197 1198 1199
2000-09-14  Andrew Innes  <andrewi@gnu.org>

	* makefile.w32-in: Standardize indentation somewhat.
	(bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
	cater for differences between shells.

	* w32term.c (w32_per_char_metric): Handle non-TrueType fonts.

1200 1201 1202 1203 1204 1205
2000-09-14  Gerd Moellmann  <gerd@gnu.org>

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

Dave Love's avatar
Dave Love committed
1206 1207 1208 1209
2000-09-14  Dave Love  <fx@gnu.org>

	* buffer.c (alloc_buffer_text): Fix xmalloc call.

Gerd Moellmann's avatar
Gerd Moellmann committed
1210 1211
2000-09-14  Gerd Moellmann  <gerd@gnu.org>

1212 1213 1214 1215
	* xdisp.c (handle_fontified_prop): While running fontification
	functions, bind `fontification-functions' and
	`after-change-functions' to nil.

Gerd Moellmann's avatar
Gerd Moellmann committed
1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242
	* s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
	(USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.

	* Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.

	* emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
	USE_MMAP_FOR_BUFFERS.

	* insdel.c (make_gap): Use enlarge_buffer_text.

	* buffer.c: Move allocation with mmap here, from ralloc.c.  Change
	conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
	(mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
	from former r_alloc_* functions in ralloc.c.
	(mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New
	variables.
	(MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
	(mmap_init) [REL_ALLOC_MMAP]: New function.
	(alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
	functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
	BUFFER_FREE.

	* buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
	(enlarge_buffer_text): Add prototype.

	* ralloc.c: Remove everything having to do with the use of mmap.

1243 1244
2000-09-13  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1245 1246
	* sound.c (Fplay_sound): Doc fix.

1247 1248 1249
	* keyboard.c: Avoid some more compiler warnings.
	(parse_tool_bar_item): Ignore cached key bindings.

1250 1251 1252
	* alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
	and allocation of Lisp data.

Gerd Moellmann's avatar
Gerd Moellmann committed
1253 1254
2000-09-12  Gerd Moellmann  <gerd@gnu.org>

1255 1256 1257 1258
	* xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
	(Finternal_set_lisp_face_attribute): If frame is 0, set new frame
	defaults first.

Gerd Moellmann's avatar
Gerd Moellmann committed
1259 1260
	* lread.c (Fload): Put code checking for recursive loads in #if 0.

Kenichi Handa's avatar
Kenichi Handa committed
1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276
2000-09-12  Miyashita Hisashi  <himi@meadowy.org>

	* ccl.c: Comment fixed.
	(MAX_MAP_SET_LEVEL): Increased to 30.
	(PUSH_MAPPING_STACK): Enclose with do-while block.
	(POP_MAPPING_STACK): Likewise.
	(stack_idx_of_map_multiple): New variable.
	(CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
	(ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
	call the corresponding CCL program by
	CCL_CALL_FOR_MAP_INSTRUCTION.
	(ccl_driver) <CCL_MapSingle>: Likewise.
	(ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
	with the case where looking up process reaches to the end of
	map-set, and call CCL programs as the above change.

1277 1278
2000-09-11  Gerd Moellmann  <gerd@gnu.org>

1279 1280 1281 1282 1283 1284 1285
	* xfns.c (png_load, jpeg_load): Declare some variables volatile
	that might be clobbered by longjmp.
	(check_x_display_info, x_decode_color, create_frame_xic)
	(Fx_display_backing_store, Fx_display_visual_class)
	(x_build_heuristic_mask, pbm_scan_number): Avoid compiler
	warnings.

1286 1287 1288 1289
	* lread.c (init_lread): Set Vloads_in_progress to nil.
	(Fload): Show list of recursively loaded files, when signaling an
	error.

1290 1291 1292 1293 1294 1295 1296 1297 1298
	* lread.c (Vloads_in_progress): New variable.
	(record_load_unwind): New function.
	(Fload): Check for recursive loads.
	(syms_of_lread): Initialize Vloads_in_progress.
	(read_integer, read1): Avoid some compiler warnings.

	* fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
	compiler warnings.

Miles Bader's avatar
Miles Bader committed
1299 1300 1301 1302
2000-09-11  Miles Bader  <miles@gnu.org>

	* editfns.c (Fbuffer_string): Doc fix.

1303 1304 1305 1306
2000-09-10  Gerd Moellmann  <gerd@gnu.org>

	* ralloc.c (mmap_enlarge): Don't return 0 if successful.

1307 1308 1309 1310 1311
2000-09-09  Ken Raeburn  <raeburn@gnu.org>

	* s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
	whether to include other header files.

1312 1313 1314
2000-09-09  Gerd Moellmann  <gerd@gnu.org>

	* xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned 
1315
	by Fmemq as a boolean.
1316

Stefan Monnier's avatar
Stefan Monnier committed
1317 1318 1319 1320
2000-09-08  Stefan Monnier  <monnier@cs.yale.edu>

	* xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.

1321 1322
2000-09-08  Gerd Moellmann  <gerd@gnu.org>

1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333
	* ralloc.c (mmap_fd): Remove initializer which can make it
	read-only in a dumped Emacs.
	(mmap_fd_1): New variable.
	(mmap_set_vars): Remove local `fd'.  Save mmap_fd in mmap_fd_1,
	restore it from there.
	(r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
	unconditionally so that mmap_fd can be initialized there.
	(r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
	(r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
	(r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.

Gerd Moellmann's avatar
Gerd Moellmann committed
1334 1335 1336 1337 1338 1339
	* xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.

	* xdisp.c (dump_glyph_row): Fix printf format string.
	(display_line, move_it_in_display_line_to): Avoid compiler
	warnings.

1340 1341
	* s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.

1342 1343 1344
	* keymap.c (Fset_keymap_parent): Check for cycles in keymap
	inheritance.

1345 1346 1347
	* xdisp.c (try_window_id): When trying to locate cursor in
	unchanged rows at the top, handle the case that we can't find it.

1348 1349 1350
	* xterm.c (x_draw_glyphs): Handle case START and END are out
	of bounds more carefully.

1351 1352
2000-09-08  Dave Love  <fx@gnu.org>

1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369
	* s/sol2.h (REL_ALLOC_MMAP): Define.
	* s/irix5-0.h (REL_ALLOC_MMAP): Likewise.

	* ralloc.c: Don't include string.h (redundant).
	(MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
	[!MAP_ANON]: Include fcntl.h.
	(mmap_fd) [REL_ALLOC_MMAP]: New variable.
	(r_alloc, r_re_alloc, r_alloc_free)
	(mmap_enlarge, mmap_set_vars): Use it.
	(r_alloc_init_fd): New function.
	(__morecore) [SYSTEM_MALLOC]: Don't declare.
	(r_alloc_init): Call r_alloc_init_fd.  Conditionalize stuff on
	malloc type.

	* Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
	Remove vm-limit.o.

1370 1371 1372
	* unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
	change to __NetBSD__.

Kenichi Handa's avatar
Kenichi Handa committed
1373 1374 1375 1376 1377
2000-09-08  Kenichi Handa  <handa@etl.go.jp>

	* search.c (compile_pattern): Check the multibyteness of cached
	string and PATTERN.

1378 1379 1380 1381 1382 1383 1384
2000-09-08  Miles Bader  <miles@gnu.org>

	* xfaces.c (default_face_vector): Function removed.
	(Finternal_merge_in_global_face): Restore old global/local
	attribute override order.  Use inline loop instead of calling
	default_face_vector.

1385 1386 1387 1388 1389 1390 1391
2000-09-07  Gerd Moellmann  <gerd@gnu.org>

	* ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
	(get_bloc, relocate_blocs, update_heap_bloc_correspondence)
	(resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
	where necessary, in case POINTER_TYPE is `void'.

Eli Zaretskii's avatar
Eli Zaretskii committed
1392 1393 1394 1395 1396 1397
2000-09-07  Eli Zaretskii  <eliz@is.elta.co.il>

	* frame.c (make_terminal_frame): Initialize frame foreground and
	background colors to unspecified, for the initial instance of an
	MSDOS frame.

Gerd Moellmann's avatar
Gerd Moellmann committed
1398 1399
2000-09-07  Gerd Moellmann  <gerd@gnu.org>

1400 1401 1402 1403
	* ralloc.c (mmap_find): Fix overlap computation.
	(mmap_enlarge): Compute nbytes before trying to find an
	overlapping region.

Gerd Moellmann's avatar
Gerd Moellmann committed
1404 1405 1406 1407 1408 1409 1410 1411 1412 1413
	* xfaces.c (smaller_face): Compare font heights with `<' and `>'
	instead of `!='.

	* lread.c (syms_of_lread): Change value of regexp
	Vbytecomp_version_regexp to not match some XEmacs-compiled files.

	* xmenu.c (xdialog_show): When looking up the selection in
	menu_items, take `quote' boundaries into account; this corresponds
	to a nil ITEM in x-popup-dialog.

Kenichi Handa's avatar
Kenichi Handa committed
1414 1415
2000-09-07  Kenichi Handa  <handa@etl.go.jp>

1416 1417 1418 1419
	* charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
	not 0x81.
	(MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).

Kenichi Handa's avatar
Kenichi Handa committed
1420
	* coding.c (encode_coding_sjis_big5): Use translation table for
Kenichi Handa's avatar
Kenichi Handa committed
1421 1422
	encoding, not decoding.  Fix the handling of latin-jisx0201.
	Check for the charset katakana-jisx0201 too.
Kenichi Handa's avatar
Kenichi Handa committed
1423
	(ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
Gerd Moellmann's avatar
Gerd Moellmann committed
1424
	(detect_coding_sjis): Check the byte sequence more rigidly.
Kenichi Handa's avatar
Kenichi Handa committed
1425

Gerd Moellmann's avatar
Gerd Moellmann committed
1426 1427
2000-09-07  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438
	* xfaces.c (Vparam_value_alist): New variable.
	(syms_of_xfaces): Initialize it.
	(Finternal_set_lisp_face_attribute): Avoid more consing.

	* frame.c (Fframe_parameter): Handle `name' and `background-mode'
	specially.
	(Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
	(Qbackground_mode): New variable.
	(syms_of_frame_1): Initialize Qbackground_mode.

	* lisp.h (Qdisplay): Declare extern.
Gerd Moellmann's avatar
Gerd Moellmann committed
1439

Gerd Moellmann's avatar
Gerd Moellmann committed
1440 1441 1442
	* xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
	change face on all frames, and change the default for new frames.

1443 1444 1445 1446
2000-09-07  Dave Love  <fx@gnu.org>

	* Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.

Kenichi Handa's avatar
Kenichi Handa committed
1447 1448
2000-09-07  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
1449 1450
	* charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.

Kenichi Handa's avatar
Kenichi Handa committed
1451 1452 1453 1454 1455 1456
	* charset.c: Include composite.h
	(lisp_string_width): New function.
	(Fstring_width): Call lisp_string_width instead of strwidth.

	* Makefile.in (charset.o): Depends on composite.h.

Kenichi Handa's avatar
Kenichi Handa committed
1457 1458 1459
	* process.c (read_process_output): Before inserting the decoded
	text in the buffer, adjust the multibyteness.

Gerd Moellmann's avatar
Gerd Moellmann committed
1460 1461
2000-09-06  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1462 1463 1464
	* buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If 
	buffer's text buffer is null, map new memory.

1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484
	* ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
	POINTER_TYPE and size_t.
	(struct mmap_region) [REL_ALLOC_MMAP]: New structure.
	(mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
	(ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
	[REL_ALLOC_MMAP]: New macros.
	(mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
	(mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
	[REL_ALLOC_MMAP]: New functions.

	* emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
	before and after unexec.

	* buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
	text buffers if necessary.

	* buffer.h (R_ALLOC_DECLARE): Removed because unused.
	(r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
	in prototypes.

Gerd Moellmann's avatar
Gerd Moellmann committed
1485 1486
	* config.in (HAVE_MMAP): Add #undef.

Gerd Moellmann's avatar
Gerd Moellmann committed
1487 1488
2000-09-05  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1489 1490 1491 1492 1493
	* frame.c (Qdisplay_type): New variable.
	(syms_of_frame_1): Initialize it.
	(Fframe_parameter): New function that avoids consing.
	(syms_of_frame): Defsubr it.

1494 1495 1496
	* buffer.c (Fother_buffer): Consider buffers as invisible when
	they are displayed in a window on an invisible frame.

Gerd Moellmann's avatar
Gerd Moellmann committed
1497 1498 1499
	* window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
	get-largest-window always return nil.

1500 1501 1502 1503 1504
2000-09-04  Gerd Moellmann  <gerd@gnu.org>

	* lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
	variable; recognize Emacs 19 elc files.

Miles Bader's avatar
Miles Bader committed
1505 1506 1507 1508 1509 1510 1511
2000-09-04  Miles Bader  <miles@gnu.org>

	* xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
	before initially popping up the menu, so the menu doesn't flash
	when the face settings are significantly different from the
	defaults.

1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524
2000-09-04  Stefan Monnier  <monnier@cs.yale.edu>

	* regex.c (WIDE_CHAR_SUPPORT): New macro.
	(btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
	(BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
	(BIT_UNIBYTE): Remove.
	(re_match_2_internal): Delete corresponding code and streamline the
	BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
	(CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
	(re_wctype_t): New type.
	(re_wctype, re_iswctype, re_wctype_to_bit): New functions.
	(regex_compile): Use them and fix handling of overly long char classes.

Andrew Innes's avatar
Andrew Innes committed
1525 1526
2000-09-03  Andrew Innes  <andrewi@gnu.org>

Andrew Innes's avatar
Andrew Innes committed
1527 1528
	* makefile.w32-in: Change to DOS line endings.

Andrew Innes's avatar
Andrew Innes committed
1529 1530 1531 1532 1533 1534 1535 1536
	* s/ms-w32.h (ORDINARY_LINK): New define.

	* w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
	(_ANONYMOUS_STRUCT) [__GNUC__]: New define.

	* makefile.w32-in (clean): Don't delete config.h and epaths.h.
	(distclean): Delete them here instead.

Andrew Innes's avatar
Andrew Innes committed
1537 1538 1539
	* w32proc.c (compare_env): Convert to uppercase for comparison,
	not lowercase, to match how the native Windows shell works.

Jason Rumney's avatar
Jason Rumney committed
1540 1541 1542 1543 1544 1545 1546 1547
2000-09-03  Jason Rumney  <jasonr@gnu.org>

	* ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
	CVS changes the line-ends when checking in/out on DOS/Windows.

	* makefile.nt (emacs): Do not change directory to run temacs, as
	the load-path is set relative to current directory.

Miles Bader's avatar
Miles Bader committed
1548 1549 1550 1551
2000-09-03  Miles Bader  <miles@gnu.org>

	* xterm.c (x_alloc_lighter_color_for_widget): New function.

Gerd Moellmann's avatar
Gerd Moellmann committed
1552 1553
2000-09-02  Gerd Moellmann  <gerd@gnu.org>

1554 1555 1556 1557 1558
	* xdisp.c (redisplay_mode_lines): New function.
	(display_mode_lines): Return number of mode lines displayed.
	(echo_area_display): Use redisplay_mode_lines to draw garbaged
	mode lines.  Don't temporarily bind redisplay-dont-pause to t.

Gerd Moellmann's avatar
Gerd Moellmann committed
1559 1560 1561 1562
	* emacs.c, callint.c, doc.c, editfns.c: Remove includes of
	string.h and strings.h.
	(index) [HAVE_INDEX]: Add prototype.

Gerd Moellmann's avatar
Gerd Moellmann committed
1563 1564 1565 1566 1567 1568
	* unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
	(SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.

	* s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
	(GC_SETJMP_WORKS, GC_MARK_STACK): Define.

1569 1570 1571 1572 1573
2000-09-01  Gerd Moellmann  <gerd@gnu.org>

	* lread.c (read1): Accept `?' as symbol constituent, for
	compatiblity with XEmacs.