ChangeLog 227 KB
Newer Older
1 2
2000-09-18  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
3 4 5 6 7 8 9 10 11 12
	* 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
13 14 15 16
	* dispnew.c (update_window): Move test for invisible lines
	at the top to update_window_line.
	(update_window_line): Handle invisible lines here.

17 18 19 20 21
	* 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.

22 23 24 25 26 27 28 29 30
	* 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.

31 32 33 34 35 36
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
37 38
2000-09-15  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
39 40 41 42 43 44 45 46 47 48 49
	* 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
50
	`:algorithm disabled' for creating a disabled item's image if the
Gerd Moellmann's avatar
Gerd Moellmann committed
51 52
	user hasn't specified an image.

Gerd Moellmann's avatar
Gerd Moellmann committed
53 54 55 56 57 58 59 60 61 62 63 64 65
	* 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
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
	* 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
82 83 84 85
2000-09-14  Andrew Innes  <andrewi@gnu.org>

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

Andrew Innes's avatar
Andrew Innes committed
86 87 88 89 90 91 92 93
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.

94 95 96 97 98 99
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
100 101 102 103
2000-09-14  Dave Love  <fx@gnu.org>

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

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

106 107 108 109
	* 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
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
	* 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.

137 138
2000-09-13  Gerd Moellmann  <gerd@gnu.org>

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

141 142 143
	* keyboard.c: Avoid some more compiler warnings.
	(parse_tool_bar_item): Ignore cached key bindings.

144 145 146
	* 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
147 148
2000-09-12  Gerd Moellmann  <gerd@gnu.org>

149 150 151 152
	* 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
153 154
	* lread.c (Fload): Put code checking for recursive loads in #if 0.

Kenichi Handa's avatar
Kenichi Handa committed
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
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.

171 172
2000-09-11  Gerd Moellmann  <gerd@gnu.org>

173 174 175 176 177 178 179
	* 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.

180 181 182 183
	* lread.c (init_lread): Set Vloads_in_progress to nil.
	(Fload): Show list of recursively loaded files, when signaling an
	error.

184 185 186 187 188 189 190 191 192
	* 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
193 194 195 196
2000-09-11  Miles Bader  <miles@gnu.org>

	* editfns.c (Fbuffer_string): Doc fix.

197 198 199 200
2000-09-10  Gerd Moellmann  <gerd@gnu.org>

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

201 202 203 204 205
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.

206 207 208
2000-09-09  Gerd Moellmann  <gerd@gnu.org>

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

Stefan Monnier's avatar
Stefan Monnier committed
211 212 213 214
2000-09-08  Stefan Monnier  <monnier@cs.yale.edu>

	* xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.

215 216
2000-09-08  Gerd Moellmann  <gerd@gnu.org>

217 218 219 220 221 222 223 224 225 226 227
	* 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
228 229 230 231 232 233
	* 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.

234 235
	* s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.

236 237 238
	* keymap.c (Fset_keymap_parent): Check for cycles in keymap
	inheritance.

239 240 241
	* 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.

242 243 244
	* xterm.c (x_draw_glyphs): Handle case START and END are out
	of bounds more carefully.

245 246
2000-09-08  Dave Love  <fx@gnu.org>

247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263
	* 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.

264 265 266
	* unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
	change to __NetBSD__.

Kenichi Handa's avatar
Kenichi Handa committed
267 268 269 270 271
2000-09-08  Kenichi Handa  <handa@etl.go.jp>

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

272 273 274 275 276 277 278
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.

279 280 281 282 283 284 285
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
286 287 288 289 290 291
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
292 293
2000-09-07  Gerd Moellmann  <gerd@gnu.org>

294 295 296 297
	* 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
298 299 300 301 302 303 304 305 306 307
	* 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
308 309
2000-09-07  Kenichi Handa  <handa@etl.go.jp>

310 311 312 313
	* 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
314
	* coding.c (encode_coding_sjis_big5): Use translation table for
Kenichi Handa's avatar
Kenichi Handa committed
315 316
	encoding, not decoding.  Fix the handling of latin-jisx0201.
	Check for the charset katakana-jisx0201 too.
Kenichi Handa's avatar
Kenichi Handa committed
317
	(ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
Gerd Moellmann's avatar
Gerd Moellmann committed
318
	(detect_coding_sjis): Check the byte sequence more rigidly.
Kenichi Handa's avatar
Kenichi Handa committed
319

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

Gerd Moellmann's avatar
Gerd Moellmann committed
322 323 324 325 326 327 328 329 330 331 332
	* 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
333

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

337 338 339 340
2000-09-07  Dave Love  <fx@gnu.org>

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

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

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

Kenichi Handa's avatar
Kenichi Handa committed
345 346 347 348 349 350
	* 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
351 352 353
	* process.c (read_process_output): Before inserting the decoded
	text in the buffer, adjust the multibyteness.

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

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

359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378
	* 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
379 380
	* config.in (HAVE_MMAP): Add #undef.

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

Gerd Moellmann's avatar
Gerd Moellmann committed
383 384 385 386 387
	* frame.c (Qdisplay_type): New variable.
	(syms_of_frame_1): Initialize it.
	(Fframe_parameter): New function that avoids consing.
	(syms_of_frame): Defsubr it.

388 389 390
	* 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
391 392 393
	* window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
	get-largest-window always return nil.

394 395 396 397 398
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
399 400 401 402 403 404 405
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.

406 407 408 409 410 411 412 413 414 415 416 417 418
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
419 420
2000-09-03  Andrew Innes  <andrewi@gnu.org>

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

Andrew Innes's avatar
Andrew Innes committed
423 424 425 426 427 428 429 430
	* 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
431 432 433
	* 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
434 435 436 437 438 439 440 441
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
442 443 444 445
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
446 447
2000-09-02  Gerd Moellmann  <gerd@gnu.org>

448 449 450 451 452
	* 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
453 454 455 456
	* 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
457 458 459 460 461 462
	* 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.

463 464 465 466 467
2000-09-01  Gerd Moellmann  <gerd@gnu.org>

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

468 469 470 471 472 473 474 475 476 477 478 479 480 481
2000-08-31  Stefan Monnier  <monnier@cs.yale.edu>

	* regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
	(struct re_pattern_buffer): Remove newline_anchor.
	* regex.c: Keep namespace clean for GNU libc by renaming <fun>
	to __<fun> and using `weak_alias (__<fun>, <fun>)'.
	(re_max_failures, fail_stack): Use size_t rather than unsigned.
	(regex_compile): For ^ and $, choose between buffer and line (beg|end)
	depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
	(print_compiled_pattern, re_search_2, mutually_exclusive_p)
	(re_match_2_internal, re_compile_pattern, re_comp, regcomp):
	Get rid of references to newline_anchor.
	(regcomp): Allocate and precompute a fastmap.

482 483 484 485
2000-08-31  Gerd Moellmann  <gerd@gnu.org>

	* lread.c (openp): GCPRO local variable `filename'.

486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507
2000-08-30  Stefan Monnier  <monnier@cs.yale.edu>

	* regex.h (struct re_pattern_buffer): Use size_t for used/allocated.

	* regex.c: Merge some changes from GNU libc.  Add prototypes.
	(bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
	Use memcmp and memcpy instead of bcopy and bcmp.
	(init_syntax_once): Use ISALNUM.
	(PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
	(REG_UNSET_VALUE): Remove.  Use NULL instead.
	(REG_UNSET, re_match_2_internal): Use NULL.
	(SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
	New macros.
	(EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
	(GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
	(regex_compile): In handle_interval, return an error rather than try to
	unfetch the interval if we can't find the closing brace.
	Obey the RE_NO_GNU_OPS syntax bit.
	(TOLOWER): New macro.
	(regcomp): Use it.
	(regexec): Allocate regs.start and regs.end as one block.

508 509
2000-08-30  Gerd Moellmann  <gerd@gnu.org>

510 511 512 513 514 515 516 517
	* xdisp.c (echo_area_display): Check display_completed instead
	of calling detect_input_pending.

	* dispnew.c (update_frame): Only set display_completed here; move
	the update_begin and update_end calls here from update_frame_1.
	(update_frame_1): Don't set display_completed here, don't call
	update_begin/update_end.

518 519 520
	* xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
	instead of store_frame_param.

521 522 523 524 525 526 527
2000-08-29  Gerd Moellmann  <gerd@gnu.org>

	* dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
	desired window matrix hasn't been displayed, use the current row
	instead.  Make sure that only those frame rows are updated for
	which there exists a corresponding enabled desired row.
	
Miles Bader's avatar
Miles Bader committed
528 529 530 531 532
2000-08-29  Miles Bader  <miles@gnu.org>

	* xfaces.c (default_face_vector): New function.
	(Finternal_merge_in_global_face): Use it instead of merge_face_vectors.

Gerd Moellmann's avatar
Gerd Moellmann committed
533 534 535 536 537
2000-08-29  Gerd Moellmann  <gerd@gnu.org>

	* lread.c (openp): Prevent temporary string passed to
	Ffile_readable_p from being garbage collected.

Dave Love's avatar
Dave Love committed
538 539 540 541
2000-08-28  Dave Love  <fx@gnu.org>

	* keymap.c (store_in_keymap): Add `static' to declaration.

Gerd Moellmann's avatar
Gerd Moellmann committed
542 543 544 545 546 547 548 549 550 551 552 553 554 555 556
2000-08-28  Gerd Moellmann  <gerd@gnu.org>

	* emacs.c, callint.c, doc.c, editfns.c
	(toplevel) [HAVE_STRING_H]: Include string.h.
	(toplevel) [HAVE_STRINGS_H]: Include strings.h.
	(index): Remove prototypes which might conflict with non-standard
	definitions of index/strchr.

	* s/usg5-3.h (index): Define only if not HAVE_INDEX.
	(rindex): Define only if !HAVE_RINDEX.

	* s/sco5.h (bcopy, bzero, bcmp): Don't define.

	* config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.

Miles Bader's avatar
Miles Bader committed
557 558 559 560 561 562
2000-08-28  Miles Bader  <miles@gnu.org>

	* xfaces.c (merge_face_vectors): Clear TO's :font attribute if
	made inconsistent by a font-related attribute in FROM.
	(merge_face_inheritance): Add function comment.

Kenichi Handa's avatar
Kenichi Handa committed
563 564 565 566 567
2000-08-28  Kenichi Handa  <handa@etl.go.jp>

	* keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
	the 4th arg (PREV_EVENT) Qt to suppress input method.

568 569
2000-08-27  Stefan Monnier  <monnier@cs.yale.edu>

570 571 572 573 574 575 576 577 578
	* regex.c: Indent cpp directives and remove parens after `defined'.
	(PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
	(ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
	(regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
	(re_compile_pattern): Use size_t for length.
	(init_syntax_once): Move to a better place.
	* regex.h: Merge changes from GNU libc.  Indent cpp directives.
	(RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).

579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594
	* syntax.c (back_comment): Detect cases where a comment-starter is
	actually inside another comment as in:   /* a // b */ c // d \n.
	Make it clear that `comstart_pos' is unused for nested comments.

	* keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
	(KEYMAPP): New macro.
	(Fkeymap_parent, Fset_keymap_parent): Use it.
	(fix_submap_inheritance): Mark it static.
	(define_as_prefix, describe_buffer_bindings, describe_command)
	(describe_translation, describe_map): Complete prototypes.

	* lisp.h (store_in_keymap, fix_submap_inheritance): Remove.

	* keyboard.c (menu_bar_item): Detect duplicate entries for all items
	to better match the key-lookup behavior.

595 596 597 598 599
2000-08-27  Gerd Moellmann  <gerd@gnu.org>

	* xfaces.c (lface_fully_specified_p): Handle :inherit.
	(Finternal_set_lisp_face_attribute): Fix typo in error message.

600 601 602 603 604 605
2000-08-27  Eli Zaretskii  <eliz@is.elta.co.il>

	* Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
	(process.o, scroll.o, sysdep.o): Depend on keyboard.h.
	(xterm.o): Depend on coding.h

Kenichi Handa's avatar
Kenichi Handa committed
606 607 608 609 610
2000-08-26  Kenichi Handa  <handa@etl.go.jp>

	* cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
	the corresponding '#endif'.

Miles Bader's avatar
Miles Bader committed
611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635
2000-08-26  Miles Bader  <miles@gnu.org>

	* dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
	* xfaces.c (QCinherit): New variable.
	(syms_of_xfaces): Initialize it.
	(LFACE_INHERIT): New macro.
	(Finternal_get_lisp_face_attribute)
	(merge_face_vector_with_property) 
	(Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
	(check_lface_attrs): Allow new types of face height.  Check
	inherit attribute.
	(CYCLE_CHECK): New macro.
	(merge_face_inheritance): New function.
	(merge_face_vectors): Merge inherited faces too.  Add F and
	CYCLE_CHECK arguments.
	(merge_face_vector_with_property, Finternal_merge_in_global_face)
	(lookup_named_face, lookup_derived_face, realize_named_face)
	(face_at_string_position, face_at_buffer_position):  Supply
	new F and CYCLE_CHECK arguments to merge_face_vectors.
	(merge_face_heights): New function.
	(merge_face_vectors, merge_face_vector_with_property) 
	(Finternal_set_lisp_face_attribute): Call merge_face_heights to
	handle relative face heights.
	(lface_same_font_attributes_p): Compare heights using EQ.

Kenichi Handa's avatar
Kenichi Handa committed
636 637 638 639 640 641
2000-08-26  Kenichi Handa  <handa@etl.go.jp>

	* charset.c (char_to_string): Check the character validity.
	(char_valid_p): If C is not less than MAX_CHAR, be sure to return
	0.

642 643 644 645 646 647 648 649 650
2000-08-25  Stefan Monnier  <monnier@cs.yale.edu>

	* regex.c (PUSH_FAILURE_COUNT): New macro.
	(POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
	Handle popping of a register's or a counter's data.
	(POP_FAILURE_POINT): Use the new name.
	(re_match_2_internal): Push counter data on the stack for succeed_n,
	jump_n and set_number_at and remove misleading dead code in succeed_n.

651 652 653 654 655 656 657 658
2000-08-25  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (redisplay_internal): If considering all windows on all
	frames, update the display for each frame as soon as possible,
	instead of first building all desired matrices for all frames, and
	then updating them all.
	(try_cursor_movement): Handle case that last_cursor.vpos is -1.

659 660
2000-08-24  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
661 662
	* bytecode.c (mark_byte_stack): Add a comment.

663 664 665 666
	* frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH) 
	(FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is 
	a graphical frame.

Kenichi Handa's avatar
Kenichi Handa committed
667 668
2000-08-24  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
669 670 671 672
	* minibuf.c (do_completion): Always use compare-string, not
	string-equal because the latter doesn't pay attention to
	multibyteness of strings.

Kenichi Handa's avatar
Kenichi Handa committed
673 674 675 676 677 678 679 680 681 682 683
	* process.c (create_process): Don't setup raw-text coding here.
	(Fopen_network_stream): Don't set coding->src_multibyte and
	coding->dst_multibyte here.
	(read_process_output): For process filter, return unibyte string
	if default-enable-multibyte-characters is nil.
	(send_process): If OBJECT is multibyte text, be sure to encoded it
	by the specified coding system for the process.  Otherwise, setup
	raw-text coding.
	(init_process): Don't initialize default-process-coding-system
	here.

684 685 686 687 688
2000-08-23  Eli Zaretskii  <eliz@is.elta.co.il>

	* buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
	<scroll-down-aggressively>: Likewise.

Kenichi Handa's avatar
Kenichi Handa committed
689 690 691 692 693
2000-08-23  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (encode_eol): Fix bug for the case of dst_bytes being
	zero.  Set coding->produced_char correctly.

Andrew Innes's avatar
Andrew Innes committed
694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 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
2000-08-22  Andrew Innes  <andrewi@gnu.org>

	* makefile.w32-in: New file.

	* unexw32.c (unexec): Ignore old_name, and use the actual location
	of the current executable instead.  Base new_name on this.

	* w32proc.c (create_child): Remove reference to security
	descriptor, which isn't needed and doesn't compile with mingw32.

	* w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
	up dllimport attributes.
	(x_update_window_end): Update prototype.

	* unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
	extern, which screws up dllimport attributes.

	* sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
	up dllimport attributes.

	* strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
	screws up dllimport attributes.

	* process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
	up dllimport attributes.
	(create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
	screws up dllimport attributes.

	* lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
	up dllimport attributes.

	* keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
	screws up dllimport attributes.

	* floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
	screws up dllimport attributes.

	* fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
	up dllimport attributes.

	* emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
	unnecessary extern, which screws up dllimport attributes.
	(main): Ditto.

	* editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
	up dllimport attributes.

	* dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
	unnecessary extern, which screws up dllimport attributes.

	* callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
	screws up dllimport attributes.

	* buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
	up dllimport attributes.

	* w32proc.c (IsValidLocale): Extern missing from mingw32 headers.

	* w32bdf.c (search_file_line): 
	(set_bdf_font_info): 
	(seek_char): 
	(w32_get_bdf_glyph): 
	(w32_BDF_to_x_font): Fix compile warnings.

	* w32menu.c: Include keyboard.h before frame.h.  Fix compile
	warnings.

	* w32select.c: Include keyboard.h before frame.h.

	* w32fns.c (max): Define macro.
	(JOHAB_CHARSET): Define if not known.
	(MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
	(Fx_show_tip): Synch with X version.

	* w32xfns.c: Include keyboard.h before frame.h.

	* w32fns.c: Include keyboard.h before frame.h.

	* w32term.c: Include keyboard.h before frame.h.

	* fontset.c: Include keyboard.h before frame.h.

	* w32inevt.c: Include keyboard.h before frame.h.
	(MOUSE_MOVED): Define if not known.

	* minibuf.c: Include keyboard.h before frame.h.

	* keyboard.c: Include keyboard.h before frame.h.

	* indent.c: Include keyboard.h before frame.h.

	* dispnew.c: Include keyboard.h before frame.h.

	* buffer.c: Include keyboard.h before frame.h.

	* alloc.c: Include keyboard.h before frame.h.

	* print.c: Include keyboard.h before frame.h.

	* process.c: Include keyboard.h before frame.h.

	* scroll.c: Include keyboard.h before frame.h.

	* sysdep.c: Include keyboard.h before frame.h.

	* term.c: Include keyboard.h before frame.h.

	* window.c: Include keyboard.h before frame.h.

	* xdisp.c: Include keyboard.h before frame.h.
	Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.

	* frame.c: Include keyboard.h before frame.h.

	* w32heap.h: Undefine min, max.

	* w32gui.h: Undefine min, max.

	* unexw32.c: Change PUCHAR to PCHAR.
	(PTR_TO_OFFSET): Cast ptr to unsigned char *.
	(relocate_offset): 
	(get_section_info): 
	(copy_executable_and_dump_data): Remove unnecessary static defs.
	(copy_executable_and_dump_data): Fix compile warnings.

	* sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.

	* w32console.c (min): Define macro.
	(clear_frame, write_glyphs): Fix compile warning.

	* w32proc.c (compare_env): 
	(find_child_console): Fix compile warning.

	* w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr.  Use
	sys_errlist instead of _sys_errlist.
	(get_emacs_configuration_options): New function.

	* s/ms-w32.h (sys_nerr): Provide default definition.
	(strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
	name with _ prepended.
	(NSIG): Define if not known.
	(get_emacs_configuration): Provide extern declaration.
	(get_emacs_configuration_options): Provide extern declaration.
	(EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.

	* w32.c (gettimeofday): Use struct timeb, not struct _timeb.
	(map_w32_filename): 
	(read_unc_volume): Fix compile warning.

	* s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
	definitions from being used.

	* lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.

	* w32.c (unc_volume_file_attributes): 
	(open_unc_volume): Make arg const.

	* sysdep.c [WINDOWSNT]: Remove extern decl of errno.
	(read_input_waiting): Remove excess parameter.

	* w32.c (init_environment): Call _access.
	(check_windows_init_file): Call _close.
	(init_user_info): Call _putenv.
	(init_environment): Call _putenv and _strdup.
	(init_ntproc): Reset volume info cache on startup.

	* s/ms-w32.h (malloc, free, realloc, calloc): Rename if
	USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
	cannot override the CRT malloc.

	* makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
	(LINK_FLAGS): Append to original value of LINK_FLAGS.

	* w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
	unless we are linking with a static CRT.
	(RVA_TO_PTR): Cast result to unsigned char*.

	* w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
	(add_volume_info): Use xstrdup.

Stefan Monnier's avatar
Stefan Monnier committed
874 875 876 877 878 879 880
2000-08-22  Stefan Monnier  <monnier@cs.yale.edu>

	* minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
	(do_completion, Fminibuffer_complete_word): Use it.
	(syms_of_minibuf): Turn completion-auto-help into a proper Lisp
	var so it can take non-boolean values.

Gerd Moellmann's avatar
Gerd Moellmann committed
881 882
2000-08-21  Gerd Moellmann  <gerd@gnu.org>

883 884 885 886 887 888 889 890
	* editfns.c (find_field): Formatting changes.
	(toplevel): Some old-style function forward declarations 
	changed to prototypes, some new protypes added, some functions
	made static.

	* lisp.h (set_time_zone_rule): Add prototype.
	(use_dialog_box): External declaration.

891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906
	* keyboard.c (gen_help_event): Add parameter SIZE.
	(kbd_buffer_events_waiting): Slightly rewritten.
	(clear_event): New function.
	(kbd_buffer_get_event): Use it, and clear the input_events of
	HELP_EVENTs.
	(init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
	don't fill the newly created array with nils.
	(toplevel): Convert some old-style function forward declarations
	to prototypes.

	* keyboard.h (gen_help_event): Change prototype.

	* xterm.c (XTread_socket): Change calls to gen_help_event.

	* w32term.c (w32_read_socket): Change calls to gen_help_event.

Gerd Moellmann's avatar
Gerd Moellmann committed
907 908
	* eval.c (Fmacroexpand): Doc fix.

909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932
2000-08-20  Jason Rumney  <jasonr@gnu.org>

	* w32term.h (x_display_info_for_display): Remove as this function
	does not exist on W32.

	* w32term.c (help_echo_window): New variable.
	(syms_of_w32term): staticpro it.
	(note_mode_line_highlight): Set it.
	(XTextExtents16): Removed as there is no equivalent on W32.
	(x_compute_glyph_string_overhangs): Incomplete body removed, as
	the X way of doing this will not work for W32.
	(w32_intersect_rectangles): Removed. Use IntersectRect API call.
	(x_draw_image_foreground):  Avoid drawing outside of the clip area
	when image doesn't have a mask.
	(note_mouse_highlight): Process overlays in the right order of
	priority. Set help_echo_window.
	(x_draw_bar_cursor): If cursor is on an image, draw a box cursor
	because that's more visible for large images.

	* w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
	name to single_keymap_panes.
	(w32_menu_show): Set wv->title when dealing with titles.
	(w32_menu_display_help): Call show_help_echo with OBJECT and POS.

933 934 935 936 937 938
2000-08-21  Miles Bader  <miles@gnu.org>

	* minibuf.c (do_completion): Try again if we rewrite the input
	string, but no completion was done, so that any completion message
	will be correct.

Gerd Moellmann's avatar
Gerd Moellmann committed
939 940 941 942 943 944 945 946 947 948 949 950 951 952
2000-08-20  Gerd Moellmann  <gerd@gnu.org>

	* xfaces.c (lface_equal_p): Compare strings differently.
	(Qtty_color_alist, Vtty_defined_color_alist): New variables.
	(realize_tty_face): Use them.
	(syms_of_xfaces): Initialize new variables.
	(map_tty_color): New function, extracted from realize_tty_face.
	(map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
	foreground or background color, store the new color name in the
	realized face; previous code trying to do this had no effect.
	(realize_tty_face): Use map_tty_color.
	(Fclear_face_cache): Set face_change_count and ensure thorough
	redisplay.

Gerd Moellmann's avatar
Gerd Moellmann committed
953 954
2000-08-19  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
955 956
	* undo.c (record_first_change, record_marker_adjustment): Don't
	use XBUFFER on last_undo_buffer which might not be a buffer.
Gerd Moellmann's avatar
Gerd Moellmann committed
957

Kenichi Handa's avatar
Kenichi Handa committed
958 959 960 961 962 963 964
2000-08-18  Kenichi Handa  <handa@etl.go.jp>

	* coding.c (decode_coding_string): Set members consumed,
	consumed_char, produced, produced_char of *coding correctly.  If
	decode_coding doesn't consume any byte, don't try anymore.
	(encode_coding_string): Likewise.

965 966
2000-08-18  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
967 968
	* lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
	conditional have void type, for Standard C compilers.
969 970 971 972 973

	* xdisp.c (redisplay_internal): Compare windows for equality with
	EQ, instead of applying XWINDOW to something that might not
	be a window.
	
Kenichi Handa's avatar
Kenichi Handa committed
974 975 976 977 978
2000-08-18  Kenichi Handa  <handa@etl.go.jp>

	* fontset.c (Finternal_char_font): Search only the selected frame
	for a window of the current buffer.

Gerd Moellmann's avatar
Gerd Moellmann committed
979 980
2000-08-18  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
981
	* minibuf.c (do_completion): Use EQ instead of `!=' to compare
982 983
	Lisp_Objects.

Gerd Moellmann's avatar
Gerd Moellmann committed
984 985 986
	* keyboard.c (kbd_buffer_get_event): Handle the case that the
	second half of a HELP_EVENT is found at the start of kbd_buffer.

987 988
2000-08-18  Miles Bader  <miles@gnu.org>

989 990
	* lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.

991 992 993 994 995
	* editfns.c (save_restriction_save): Rewrite to use markers.
	(save_restriction_restore): Rewrite to understand new form of data
	saved by save_restriction_save.
	(Fsave_restriction): Remove cautionary note in doc-string.

Gerd Moellmann's avatar
Gerd Moellmann committed
996 997 998 999 1000 1001 1002 1003
2000-08-17  Gerd Moellmann  <gerd@gnu.org>

	* fileio.c (build_annotations): Add a comment explaining the
	return value of format-annotate-function.  Replace a spurious call
	to Flength with a CONSP test.  Call format-annotate-function with
	a fifth arg specifying how many times the function is been called
	in a row, to let it choose temporary buffers appropriately.

1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034
2000-08-17  Dave Love  <fx@gnu.org>

	* lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL.  Don't
	declare make_temp_name twice.

	* lread.c: Prototype readevalloop, load_unwind,
	load_descriptor_unwind.
	(unreadpure): Give it an arg.

	* unexalpha.c: Prototype fatal_unexec, mark_x,
	update_dynamic_symbols.  Declare unexec as void.

	* cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
	[!HAVE_TERMCAP_H]: Prototype tputs, tgoto.

	* alloc.c (lisp_malloc): Declare with POINTER_TYPE.
	[SYSTEM_MALLOC]: Make decls in malloc.h conditional on
	DOUG_LEA_MALLOC.

	* alloca.c: Use #error.
	[POINTER_TYPE]: Use it.

	* eval.c (Fdefvar): Doc fix.

	* buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
	INITIALIZE_INTERVAL.

	* buffer.h: Avoid DECLARE_INTERVALS.

	* config.in: Add size_t.

1035 1036 1037 1038 1039 1040 1041 1042 1043
2000-08-17  Eli Zaretskii  <eliz@is.elta.co.il>

	* w16select.c (set_clipboard_data): If there's not enough memory
	to put text into clipboard, return 1, as Fw16_set_clipboard_data
	expects.  In case of other failures, return 3.
	(system_error_msg): New error message.
	(Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
	system_error_msg.

1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054
2000-08-16  Gerd Moellmann  <gerd@gnu.org>

	* term.c (write_glyphs): Also turn off inverse video after turning
	off other appearances in case TS_exit_attribute_mode is not equal
	to TS_end_standout_mode.
	(insert_glyphs): Turn inverse video on/off for each run of glyphs
	with the same face.
	(turn_off_face): Reset standout_mode only if
	TS_exit_attribute_mode has been output and TS_exit_attribute_mode
	is equal to TS_end_standout_mode.

Kenichi Handa's avatar
Kenichi Handa committed
1055 1056
2000-08-16  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
1057 1058 1059
	* coding.c (encode_coding): Fix the bug of not flushing ISO escape
	sequence at the end of the source block.

Kenichi Handa's avatar
Kenichi Handa committed
1060 1061 1062 1063
	* ccl.c (Fccl_program_p): Docstring modified.
	(Fccl_execute): Likewise.
	(Fccl_execute_on_string): Likewise.

1064 1065 1066 1067
2000-08-16  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.

Kenichi Handa's avatar
Kenichi Handa committed
1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113
2000-08-16  Kenichi Handa  <handa@etl.go.jp>

	The following changes are mainly to fix bugs of
	encode/decode-coding-string failing if encoding/decoding return
	CODING_FINISH_INSUFFICIENT_DST.  In addition, delete the global
	variable conversion_buffer.

	* ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
	decrement dst_end to avoid buffer overflow in the later call of
	string_as_multibyte

	* coding.h (conversion_buffer_size, conversion_buffer)
	(get_conversion_buffer): Extern deleted.

	* coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
	(conversion_buffer, conversion_buffer_size): Variables deleted.
	(get_conversion_buffer): Function deleted.
	(struct conversion_buffer): New structure.
	(MAX_ALLOCA): New macro.
	(allocate_conversion_buffer): New macro.
	(extend_conversion_buffer, free_conversion_buffer): New functions.
	(ccl_coding_driver): Set coding->result.
	(decode_coding): Set coding->result to CODING_FINISH_NORMAL if
	this is the last block of source.
	(encode_coding): Likewise.  Handle the source block as the last
	one only when the whole source text is consumed.
	(decode_coding_string): Handle the case that the output buffer is
	too small to decode the whole source text.  Use
	allocate_conversion_buffer, extend_conversion_buffer and
	free_conversion_buffer, not get_conversion_buffer.
	(encode_coding_string): Likewise.
	(init_coding): Function deleted.
	(init_coding_once): Delete code to initialize
	conversion_buffer_size.

	* emacs.c (main): Don't call init_coding.

	* msdos.c (IT_write_glyphs): Use a locally declared
	conversion_buffer.

	* term.c (write_glyphs): Use a locally declared conversion_buffer.
	(insert_glyphs): Likewise.

	* w32console.c (write_glyphs): Use a locally declared
	conversion_buffer.

1114 1115 1116 1117 1118
2000-08-15  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
	member of display_info is NULL.

Gerd Moellmann's avatar
Gerd Moellmann committed
1119 1120
2000-08-15  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1121 1122 1123
	* alloc.c (compact_small_strings): Use safe_bcopy, add an
	assertion.

Gerd Moellmann's avatar
Gerd Moellmann committed
1124
	* term.c (turn_off_face): Reset standout_mode when resetting
Gerd Moellmann's avatar
Gerd Moellmann committed
1125
	appearances with capability `me'.
Gerd Moellmann's avatar
Gerd Moellmann committed
1126 1127
	(write_glyphs): Switch on inverse video before each face change.

Dave Love's avatar
Dave Love committed
1128 1129 1130 1131 1132 1133 1134 1135 1136
2000-08-14  Dave Love  <fx@gnu.org>

	* alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
	[!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
	(lisp_free): Declare and make static.

	* window.c: Fix embedded comment.
	(syms_of_window): Fix doc string.

Gerd Moellmann's avatar
Gerd Moellmann committed
1137 1138 1139 1140 1141
2000-08-14  Gerd Moellmann  <gerd@gnu.org>

	* keymap.c (push_key_description): If C without modifiers is < 32, 
	make sure to print `C-' before `M-', like in the manual.

1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152
2000-08-11  Gerd Moellmann  <gerd@gnu.org>

	* fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
	since they aren't relocated anymore.
	(sxhash_string): Make sure returned hash code fits in a Lisp
	integer.

	* xdisp.c (try_cursor_movement): Fix handling of cursor in
	partially visible line which is smaller than the window's
	height.

Kenichi Handa's avatar
Kenichi Handa committed
1153 1154 1155 1156 1157 1158 1159 1160 1161 1162
2000-08-11  Kenichi Handa  <handa@etl.go.jp>

	* ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
	the multibyte form of eight-bit-control characters. 
	(Fccl_execute_on_string): Initialize ccl->multibyte.

	* ccl.h (struct ccl_program): New member multibyte.

	* coding.c (ccl_coding_driver): Initialize ccl->multibyte.

Kenichi Handa's avatar
Kenichi Handa committed
1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182
2000-08-11  Kenichi Handa  <handa@etl.go.jp>

	* regex.c (regex_compile) <normal_char>: Pay attention to
	multibyteness.
	(analyse_first) <exactn>: Setup fastmap correctly for
	eight-bit-control characters.

2000-08-11  Kenichi Handa  <handa@etl.go.jp>

	* termhooks.h (enum event_kind): New member
	multibyte_char_keystroke.

	* keyboard.c (make_lispy_event): Handle the new event type
	multibyte_char_keystroke.

	* xterm.c: Include coding.h.
	(XTread_socket): Work around a bug of XmbLookupString.  If the
	input is from XIM, decode it according to the current locale.  In
	that case, generate multibyte_char_keystroke events.

Kenichi Handa's avatar
Kenichi Handa committed
1183 1184 1185 1186 1187
2000-08-11  Kenichi Handa  <handa@etl.go.jp>

	* xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
	(TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.

1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210
2000-08-10  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
	(TRACE_MOVE) [GLYPH_DEBUG]: New macro.
	(move_it_in_display_line_to): Record iterator's ascent and descent
	before producing glyphs, and restore them when we know the glyph
	doesn't fit on the line.
	(move_it_to): Restructured so that it's easier to debug.  If
	moving to a vpos, and not moving to an x or character position,
	stop as soon as the specified vpos is reached; don't move further
	into that line because that might change the computed line height.
	(try_cursor_movement): New function, extracted from the cursor
	movement branch of redisplay_window.  If ending on a partially
	visible line, don't try to scroll if the cursor line is taller
	than the window.
	(redisplay_window): Use try_cursor_movement.

	* window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
	because that function doesn't cope with variable-height lines.

	* xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
	box cursor because that's better visible for large images.
	
Miles Bader's avatar
Miles Bader committed
1211 1212 1213 1214
2000-08-10  Miles Bader  <miles@gnu.org>

	* w32term.c (note_mouse_highlight): Update calls to overlays_at.

Gerd Moellmann's avatar
Gerd Moellmann committed
1215 1216 1217 1218 1219 1220
2000-08-10  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (Vmessages_buffer_name): New variable.
	(message_dolog): Use it.
	(syms_of_xdisp): Initialize it.

1221 1222 1223 1224 1225 1226 1227
2000-08-10  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (IT_note_mouse_highlight): Update the calls to
	overlays_at.
	(toplevel) <kbd_buffer_store_event>: Remove prototype, it's
	redundant now that keyboard.h is included.

Eli Zaretskii's avatar
Eli Zaretskii committed
1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242
2000-08-09  Eli Zaretskii  <eliz@is.elta.co.il>

	* keyboard.c (kbd_buffer_events_waiting): New function.

	* keyboard.h (kbd_buffer_events_waiting): Add prototype.

	* msdos.c: Include keyboard.h.
	(XMenuActivate): Empty no_event events from the event buffer.  If
	no events are left after that, call clear_input_pending.
	(mouse_clear_clicks): New function, code moved from mouse_init.
	(mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
	mouse driver to ``forget'' any past clicks.

	* Makefile.in (msdos.o): Depend on keyboard.h.

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

1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257
	* lisp.h (input_pending): External declaration.

	* dispextern.h (Qredisplay_dont_pause): Declare extern.
	
	* xdisp.c (echo_area_display): Display thoroughly if input is
	pending.  Bind redisplay-dont-pause to t during the redisplay.
	in case input is pending.

	* dispnew.c (Qredisplay_dont_pause): New variable.
	(syms_of_display): Initialize and staticpro it.
	(update_frame_1): Don't interrupt the display for pending input if
	redisplay_dont_pause is set.
	
1258 1259
	* dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.

1260 1261
	* xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.

Kenichi Handa's avatar
Kenichi Handa committed
1262 1263 1264 1265 1266
2000-08-09  Miles Bader  <miles@lsi.nec.co.jp>

	* callproc.c (Fcall_process): Terminate the unwind-protect around
	the post-read-conversion of coding system.

Miles Bader's avatar
Miles Bader committed
1267 1268 1269 1270 1271 1272 1273 1274
	* buffer.c (overlays_at): Add CHANGE_REQ parameter.
	(Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
	* buffer.h (overlays_at): Update prototype.
	* xdisp.c (next_overlay_change): Update call to overlays_at.
	* xfaces.c (face_at_buffer_position): Likewise.
	* textprop.c (Fget_char_property): Likewise.
	* xterm.c (note_mouse_highlight): Likewise.

1275 1276 1277
	* minibuf.c (do_completion): Don't consider a simple change of
	case as `completion'.

1278 1279
2000-08-08  Ken Raeburn  <raeburn@gnu.org>

1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291
	* keyboard.c (syms_of_keyboard): Initialize
	last_point_position_buffer.
	* undo.c (record_delete): Make sure last_point_position_buffer is
	a buffer before comparing pointers.

	* coding.h (decode_coding_string): Declare.

	* intervals.h (Fprevious_single_char_property_change): Declare.

	* textprop.c (Fprevious_single_char_property_change): Don't do
	arithmetic directly on lisp objects.

Gerd Moellmann's avatar
Gerd Moellmann committed
1292
	* editfns.c (find_field): Use EQ, not ==, to compare Lisp
1293 1294 1295 1296 1297 1298 1299 1300
	objects.

	* keyboard.h (menu_item_eval_property): Declare.

	* xdisp.c (message_dolog): Save and protect string "*Messages*" to
	reuse as buffer name, instead of recreating (and discarding) every
	time a message is logged.
	(with_echo_area_buffer): Make callback arg A2 a lisp object.
Gerd Moellmann's avatar
Gerd Moellmann committed
1301 1302 1303 1304
	(current_message_1, truncate_message_1, set_message_1)
	(display_echo_area_1, resize_mini_window_1): Signatures changed.
	(current_message, truncate_echo_area, display_echo_area)
	(resize_echo_area_axactly): Changed calls.
1305

1306
	* coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
Gerd Moellmann's avatar
Gerd Moellmann committed
1307
	Lisp object.
1308
	(Ffind_coding_systems_region_internal): First argument to Fappend
Gerd Moellmann's avatar
Gerd Moellmann committed
1309
	must be an integer, not a Lisp object.
1310

Kenichi Handa's avatar
Kenichi Handa committed
1311 1312 1313 1314
2000-08-08  Kenichi Handa  <handa@etl.go.jp>

	* charset.c (Fchar_width): Doc fix.

Gerd Moellmann's avatar
Gerd Moellmann committed
1315 1316 1317 1318
2000-08-08  Gerd Moellmann  <gerd@gnu.org>

	* charset.c (Fstring_width): Doc fix.

1319 1320
2000-08-07  Gerd Moellmann  <gerd@gnu.org>

1321
	* xdisp.c (start_display): When starting display on a continuation
1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335
	line, clear ascent and descent members of the iterator structure;
	the height of the continued line does not affect the height of the
	continuation line.
	(make_cursor_line_fully_visible): Do nothing if cursor is on a
	line taller than the window.
	(redisplay_window) <forced window start>: Handle case that the
	middle of the window is not found in any row.
	(dump_glyph_row): Show more information.
	(compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
	first text line in a glyph matrix.

	* xterm.c (x_draw_image_foreground): Avoid drawing outside
	of the clip area when image doesn't have a mask.

Gerd Moellmann's avatar
Gerd Moellmann committed
1336 1337 1338 1339 1340
	* fns.c (sweep_weak_table): Fix survival conditions for
	key-or-value and key-and-value weakness.

	* .gdbinit (xhashtable): New command.

1341 1342 1343
	* fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
	tables out of the list of all weak hash tables.

1344 1345 1346 1347
	* xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
	a new buffer is created, make sure echo_area_buffer[] references
	the new buffer.

Eli Zaretskii's avatar
Eli Zaretskii committed
1348 1349 1350 1351 1352
2000-08-07  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
	the doc string.

Kenichi Handa's avatar
Kenichi Handa committed
1353 1354 1355 1356 1357
2000-08-07  Kenichi Handa  <handa@etl.go.jp>

	* syntax.c (skip_chars): Fix previous change.  Make the handling
	of unibyte string consistent with that of regex search.

1358 1359
2000-08-05  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375
	* xmenu.c (popup_get_selection): Use xfree instead of free.

	* fileio.c (Finsert_file_contents): Use xfree instead of free.

	* editfns.c (Ftranspose_regions): Use xfree instead of free.

	* callproc.c (child_setup): Use xfree instead of free.

	* sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
	instead of malloc.
	(run_mac_command, closedir): Use `xfree' instead of `free'.

	* keymap.c (current_minor_maps): Use xmalloc instead of malloc.

	* eval.c (error): Use xfree instead of free.

1376 1377 1378
	* xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.

	* fns.c: Replace `illegal' with `invalid'.
Gerd Moellmann's avatar
Gerd Moellmann committed
1379
	(Fmake_hash_table, make_hash_table): Allow table size of 0.
1380

1381 1382 1383 1384 1385
2000-08-05  Kenichi Handa  <handa@etl.go.jp>

	* syntax.c (skip_chars): Fix handling of multibyte<->unibyte
	conversion.

1386 1387 1388 1389 1390
2000-08-04  Noah Friedman  <friedman@splode.com>

	* fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
	docstring.

1391 1392 1393 1394
2000-08-04  Gerd Moellmann  <gerd@gnu.org>

	* syntax.c (skip_chars): Fix typo in error message.

1395 1396 1397 1398
2000-08-04  Andreas Schwab  <schwab@suse.de>

	* m/ia64.h: Moved from s/ia64.h.

Kenichi Handa's avatar
Kenichi Handa committed
1399 1400
2000-08-04  Kenichi Handa  <handa@etl.go.jp>

Kenichi Handa's avatar
Kenichi Handa committed
1401 1402 1403 1404 1405 1406 1407
	* process.c (read_process_output): Big simplification.  Handle
	composition and post-read-conversion of coding system correctly.
	(send_process): Handle composition correctly.

	* callproc.c (Fcall_process): Handle post-read-conversion of
	coding system if any.

Kenichi Handa's avatar
Kenichi Handa committed
1408 1409
	* coding.c (decode_coding_iso2022): More strict check for handling
	single shifting.
Kenichi Handa's avatar
Kenichi Handa committed
1410 1411 1412 1413 1414 1415
	(coding_restore_composition): Pay attention to the case that
	cmp_data is not set properly (because of invalid code in the
	source text).
	(run_pre_post_conversion_on_str): Include text properties in the
	resulting string.
	(decode_coding_string): Set members of coding correctly.
Kenichi Handa's avatar
Kenichi Handa committed
1416

Gerd Moellmann's avatar
Gerd Moellmann committed
1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431
2000-08-03  Gerd Moellmann  <gerd@gnu.org>

	* s/ia64.h: New file.

	* widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
	Use NULL instead of 0 at the end of variable argument list of
	XtVaGetValues and XtVaSetValues, because 0 fails on systems where
	sizeof (int) < sizeof (void *).

	* xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
	of variable argument lists of XtVaGetValues and XtVaSetValues.

	* xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
	variable argument lists of XtVaGetValues and XtVaSetValues.

Gerd Moellmann's avatar
Gerd Moellmann committed
1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453
2000-08-02  Gerd Moellmann  <gerd@gnu.org>

	* alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
	(xrealloc, xmalloc): Use size_t.  Some callers adjusted.

	* lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
	prototype.

	* keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
	in call to Fsingle_key_description.

	* keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
	Callers changed.

2000-08-02  Colin Walters <walters@cis.ohio-state.edu>

	* window.c (display_buffer_reuse_frames): New variable.
	(Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
	frames displaying BUFFER.
	(syms_of_window): Define Lisp variable
	display-buffer-reuse-frames.

1454 1455 1456 1457 1458
2000-08-01  Miles Bader  <miles@gnu.org>

	* editfns.c (Fconstrain_to_field): Fix the conditions for deciding
	when to constrain NEW_POS (they were pretty screwed up before).

1459 1460 1461 1462 1463 1464
2000-07-31  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (run_msdos_command): Save and restore the master
	environment, for the case that child_setup signals an error.
	When mirroring slashes in DOS shell commands, don't fail when
	argv[2] has embedded blanks.
Eli Zaretskii's avatar
Eli Zaretskii committed
1465 1466 1467
	(Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
	(syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
	(dos_ttraw): Call mouse_setup_buttons.
1468 1469 1470 1471

	* callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
	using alloca; free it after run_msdos_command returns.

Dave Love's avatar
Dave Love committed
1472 1473 1474 1475 1476 1477 1478 1479 1480
2000-07-27  Dave Love  <fx@gnu.org>

	* s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
	define.
	[_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
	working.

	* m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.

1481 1482 1483 1484
2000-07-27  Eli Zaretskii  <eliz@is.elta.co.il>

	* editfns.c (lisp_time_argument): Fix last change.

Gerd Moellmann's avatar
Gerd Moellmann committed
1485 1486
2000-07-27  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1487 1488 1489
	* fns.c (Fdelete): Make it work on vectors and strings in addition
	to lists.

Gerd Moellmann's avatar
Gerd Moellmann committed
1490 1491 1492 1493 1494 1495 1496
	* fns.c (Qkey_or_value, Qkey_and_value): New variables.
	(syms_of_fns): Initialize new variables.
	(sweep_weak_table): Handle weakness `key-or-value' and
	`key-and-value'.
	(Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
	weakness, with t meaning the same as `key-and-value'.

Kenichi Handa's avatar
Kenichi Handa committed
1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530
2000-07-27  Kenichi Handa  <handa@etl.go.jp>

	* coding.h (struct coding_system): Member safe_charset deleted.

	* coding.c (Qsafe_charsets): This variable deleted.
	(Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
	variables.
	(coding_safe_chars): New function.
	(CODING_SAFE_CHAR_P): New macro.
	(CHARSET_OK): New arg C.  Call CODING_SAFE_CHAR_P instead of
	checking safe_charsets member of the coding system.  Caller
	changed.
	(detect_coding_iso2022): New local variable safe_chars.
	(DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
	safe_charsets member of the coding system.
	(decode_coding_iso2022): New local variable safe_chars.
	(ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
	(ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
	(ENCODE_ISO_CHARACTER): Arguments changed.  Caller changed.
	(ENCODE_UNSAFE_CHARACTER): New macro.
	(encode_coding_iso2022): New local variable safe_chars.  Check
	unsafe chars.
	(setup_coding_system): Delete the code to initialize
	coding->safe_charses
	(intersection, find_safe_codings): New functions.
	(Ffind_coding_systems_region_internal): New function.
	(syms_of_coding): Defsubr it.  Initialize Qsafe_chars,
	Qsafe_cding_system.  Make Vchar_coding_system_table a Lisp
	variable and initialize it.

	* fns.c (char_table_ref_and_index): New function.

	* lisp.h (char_table_ref_and_index): Add prototype.

Sam Steingold's avatar
Sam Steingold committed
1531 1532 1533
2000-07-26  Sam Steingold  <sds@gnu.org>

	* editfns.c (lisp_time_argument): Added third argument `usec'.
Gerd Moellmann's avatar
Gerd Moellmann committed
1534
	(Ffloat_time): New built-in Lisp function.
Sam Steingold's avatar
Sam Steingold committed
1535

Gerd Moellmann's avatar
Gerd Moellmann committed
1536 1537
2000-07-26  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1538 1539 1540 1541 1542 1543
	* dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
	for the character code.

	* config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
	GNU/Linux.

Gerd Moellmann's avatar
Gerd Moellmann committed
1544 1545 1546 1547
	* xmenu.c (menu_highlight_callback): Call show_help_echo directly
	if called for a popup menu.
	(xmenu_show): Store help string in widget values.

Dave Love's avatar
Dave Love committed
1548 1549 1550 1551 1552 1553 1554 1555
2000-07-26  Dave Love  <fx@gnu.org>

	* syswait.h: Move some definitions.
	(HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
	[!HAVE_SYS_WAIT_H]: Define things unconditionally.   More
	perspicuous definitions.
	(WTERMSIG): Fix bit pattern used.

Kenichi Handa's avatar
Kenichi Handa committed
1556 1557 1558 1559 1560
2000-07-26  Kenichi Handa  <handa@etl.go.jp>

	* print.c (print_object): If vector printing is truncated, print
	"..." to indicate it as well as the case of list printing.

1561 1562
2000-07-25  Gerd Moellmann  <gerd@gnu.org>

1563 1564 1565 1566 1567 1568 1569 1570
	* xdisp.c (next_element_from_display_vector): Improve comments.

	* lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
	for the character code, and the rest for the face id as in 20.x.
	(FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.

	* window.c (window_display_table): Cleaned up.

1571 1572 1573
	* syntax.c (Fforward_word): Add last arg nil in call of
	Fconstrain_to_field.

Eli Zaretskii's avatar
Eli Zaretskii committed
1574 1575
2000-07-25  Eli Zaretskii  <eliz@is.elta.co.il>

1576
	* fileio.c (Frename_file) [DOS_NT]: If the file names are
Eli Zaretskii's avatar
Eli Zaretskii committed
1577 1578 1579
        identical but for the letter-case, don't call
        barf_or_query_if_file_exists.

Miles Bader's avatar
Miles Bader committed
1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590
2000-07-25  Miles Bader  <miles@gnu.org>

	* editfns.c (find_field): Honor special `boundary' fields.
	(Qboundary): New variables.
	(syms_of_editfns): Initialize Qboundary.
	(Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
	Use scan_buffer instead of find_before_next_newline, because it
	allows us to detect the boundary case where there's a newline at
	the search limit.
	* lisp.h (Fconstrain_to_field): Update external declaration.

Gerd Moellmann's avatar
Gerd Moellmann committed
1591 1592 1593 1594
2000-07-24  Gerd Moellmann  <gerd@gnu.org>

	* print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
	if that is nil.
Miles Bader's avatar
Miles Bader committed
1595

Dave Love's avatar
Dave Love committed
1596 1597 1598 1599 1600 1601 1602 1603 1604 1605
2000-07-24  Dave Love  <fx@gnu.org>

	* s/sunos4-0.h, s/sol2.h:
	(LIBS_TERMCAP): Move from m/sparc.h.

	* m/sparc.h (TERMINFO): Moved to system files (probably only
	relevant for sunos4 judging by its vintage).
	(BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
	__arch64__.

Eli Zaretskii's avatar
Eli Zaretskii committed
1606 1607 1608 1609 1610
2000-07-24  Eli Zaretskii  <eliz@is.elta.co.il>

	* xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
	name to single_keymap_panes.

Andreas Schwab's avatar
.  
Andreas Schwab committed
1611 1612 1613 1614
2000-07-24  Andreas Schwab  <schwab@suse.de>

	* fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.

Gerd Moellmann's avatar
Gerd Moellmann committed
1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627
2000-07-24  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
	parameters instead of using int parameters.  Expect FN to accept
	EMACS_INT parameters.
	(display_echo_area, resize_echo_area_axactly, current_message)
	(truncate_echo_area, set_message_1): Call with_echo_area_buffer
	with new argument list.
	(resize_mini_window_1): New callback function.
	(current_message_1, truncate_message_1, set_message_1): Change
	parameter lists to the new format expected by
	with_echo_area_buffer.

Kenichi Handa's avatar
Kenichi Handa committed
1628 1629 1630 1631 1632 1633 1634
2000-07-24  Kenichi Handa  <handa@etl.go.jp>

	* fontset.c (fontset_ref): Remove INLINE declaration.
	(fontset_ref_via_base): Likewise.
	(Fset_fontset_font): Convert FAMILY and REGISTRY specifications
	to downcase.

Eli Zaretskii's avatar
Eli Zaretskii committed
1635 1636 1637 1638 1639 1640
2000-07-23  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (IT_note_mouse_highlight): Process overlays in the
	correct order of priority.  If help echo was found in an overlay,
	use that overlay as the object in which the help echo was found.

Miles Bader's avatar
Miles Bader committed