(Fx_create_frame): Don't bother calling
[bpt/emacs.git] / src / ChangeLog
1 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
2
3 * xfns.c (Fx_create_frame): Don't bother calling
4 face-set-after-frame-default since the caller does it for us anyway.
5
6 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
7
8 * window.c (coordinates_in_window): Fix detection of vertical line
9 on character terminals.
10
11 2000-10-12 Gerd Moellmann <gerd@gnu.org>
12
13 * editfns.c (save_excursion_save): Additionally record the
14 selected window.
15 (save_excursion_restore): If buffer was visible in a window, and a
16 different window was selected, and the old selected window is
17 still live, restore point in that window.
18
19 2000-10-12 Kenichi Handa <handa@etl.go.jp>
20
21 * xterm.c (x_produce_glyphs): Handle
22 unibyte_display_via_language_environment correctly.
23
24 * regex.c (regex_compile): Change the way of handling a range from
25 unibyte char to multibyte char.
26
27 * syntax.c (skip_chars): Change the way of handling a range from
28 unibyte char to multibyte char.
29
30 * process.c (read_process_output): Cancel previous change.
31
32 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
33
34 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
35
36 * charset.c (Ffind_charset_string): Doc fix.
37 (Ffind_charset_region): Doc fix.
38
39 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
40
41 * process.c (read_process_output): Fix previous change. Adjust
42 multibyteness of text to insert in a buffer by
43 string_make_unibyte/multibyte instead of
44 Fstring_as_unibyte/multibyte.
45
46 2000-10-10 Andreas Schwab <schwab@suse.de>
47
48 * alloc.c (mark_object): Remove all workarounds installed on
49 1993-08-08.
50
51 2000-10-10 Kenichi Handa <handa@etl.go.jp>
52
53 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before
54 returning.
55 (base64_encode_1): Make it work for a text of multibyte form.
56 (Fbase64_decode_region): Allocate sufficient memory for multibyte
57 case. Don't call str_to_multibyte because base64_decode_1
58 produces correct multibyte form for eight-bit codes.
59 (Fbase64_decode_string): Adjusted for the change of
60 base64_decode_1.
61 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
62 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
63 codes.
64
65 * charset.h (CHAR_STRING): Optimized for single byte characters.
66
67 2000-10-09 Andreas Schwab <schwab@suse.de>
68
69 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
70 -1 after socket is closed, to fall through to error processing.
71
72 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
73
74 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
75 variables. If ALIST includes foreground-color or
76 background-color, change also the colors of the default face for
77 this frame.
78
79 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
80
81 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
82 them extern (they are defined on xfaces.c).
83 (syms_of_msdos): Don't intern and don't staticpro
84 Qbackground_color and Qforeground_color.
85
86 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
87
88 * frame.c (Fframe_parameter): For non-windowed frames, if
89 f->param_alist says foreground or background color is unspecified,
90 call tty_color_name to return the color name computed from the
91 frame's current colors.
92
93 2000-10-06 Dave Love <fx@gnu.org>
94
95 * terminfo.c (ospeed): Don't declare.
96
97 * sysdep.c: Don't include string.h.
98 (h_errno): Declare conditional also on TRY_AGAIN.
99
100 * charset.c (Ffind_charset_string): Doc fix.
101
102 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
103 (Fbase64_decode_region, Fbase64_decode_string): More explicit
104 error messages.
105
106 2000-10-05 Dave Love <fx@gnu.org>
107
108 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
109 position like menu-bar.
110
111 2000-10-05 Gerd Moellmann <gerd@gnu.org>
112
113 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
114
115 * xdisp.c (handle_single_display_prop): Use safe_call1.
116 (safe_call): Renamed from call_function.
117 (safe_call1): New function.
118 (handle_fontified_prop): Use safe_call1 instead of call1.
119 (safe_eval): Renamed from eval_form.
120 (safe_eval_handler): Renamed from eval_handler.
121 (handle_single_display_prop, display_mode_element): Use safe_eval
122 instead of eval_form.
123
124 * xfaces.c (merge_face_heights): Use safe_call instead of
125 call_function.
126
127 * keyboard.c (show_help_echo): Use safe_call instead of
128 call_function; use safe_eval instead of eval_form.
129
130 * lisp.h (safe_call): Renamed from call_function.
131 (safe_eval): Renamed from eval_form.
132 (safe_call1): Add prototype.
133
134 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
135
136 * xfns.c (image_ascent): Rearrange ascent calculation for the
137 has-a-font case.
138
139 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
140
141 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
142 (where_is_internal_1): Don't bother ignoring menu-items any more.
143
144 2000-10-04 Gerd Moellmann <gerd@gnu.org>
145
146 * keyboard.c (update_menu_bindings): New variable.
147 (parse_menu_item): Use AREF. If update_menu_bindings
148 is 0, don't update menu bindings.
149 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
150
151 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
152
153 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
154 to `mark_object'.
155
156 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
157
158 * syntax.c (forw_comment): Match nestedness of ender/starter.
159 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
160 (prev_char_comstart_first): Remove.
161 (back_comment): Check two-char comment markers more carefully
162 to better handle overlapping cases like *//* or /* */* */ ...
163 Match nestedness of ender/starter.
164
165 2000-10-02 Dave Love <fx@gnu.org>
166
167 * config.in (HAVE_GAI_STRERROR): Add undef.
168
169 * process.c (Fopen_network_stream): Use it.
170
171 * m/alpha.h (NO_REMAP): Don't define.
172
173 2000-10-02 Gerd Moellmann <gerd@gnu.org>
174
175 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
176 return with a string converted to an integer or vice versa when
177 Vmocklisp_arguments is t.
178 (Fsignal): Likewise. The function can return for `quit'.
179 (struct gcpro): Declare member `var' to point to a volatile
180 Lisp_Object.
181
182 * eval.c (error): Prevent compiler warning.
183
184 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
185
186 * keymap.c (keymap_memberp): New function.
187 (Fset_keymap_parent): Use it.
188 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
189 Use keymap_memberp to avoid creating cycles.
190 (access_keymap): Use KEYMAPP.
191
192 2000-09-30 Gerd Moellmann <gerd@gnu.org>
193
194 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
195 gai_strerror. Make sure xerrno is set if connect fails. Improve
196 error recovery.
197
198 2000-09-29 Jason Rumney <jasonr@gnu.org>
199
200 * w32term.c (w32_char_font_type, w32_encode_char)
201 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
202 (w32_bdf_per_char_metric): New function.
203 (w32_per_char_metric): Use it.
204 (x_draw_glyph_string_background): Always draw background for BDF
205 glyphs.
206
207 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
208 GDI object which is a scarce resource.
209
210 * w32bdf.c (search_file_line): Fix skipping of whitespace.
211 (get_quoted_string): Fix limit on memchr search.
212 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
213 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
214 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
215 (get_cached_font_char, cache_char_offset): Use macro
216 BDF_CODEPOINT_RANGE_COVER_P.
217 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
218 (clear_cached_bitmap_slots): New function.
219 (GET_HEX_VALUE): G-Z, g-z are not hex.
220 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
221 (get_bitmap_with_cache): Use new cache implementation.
222 (create_offscreen_bitmap): New function.
223 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
224
225 * w32term.c (x_produce_glyphs): If the distance from the current
226 position to the next tab stop is less than a canonical character
227 width, use the tab stop after that.
228 (x_draw_glyphs): Handle case START and END are out of bounds more
229 carefully.
230 (x_clear_mouse_face): Block/unblock input.
231 (x_display_and_set_cursor): Don't show a hollow box cursor for
232 buffers whose cursor_type is nil.
233
234 2000-09-29 Gerd Moellmann <gerd@gnu.org>
235
236 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar
237 disappears.
238
239 * dispextern.h (updating_frame): Declare extern.
240
241 2000-09-29 Andreas Schwab <schwab@suse.de>
242
243 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
244
245 2000-09-29 Gerd Moellmann <gerd@gnu.org>
246
247 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
248 use its function definition.
249 (tool_bar_items): Likewise.
250
251 * lisp.h (fatal): Declare NO_RETURN.
252
253 2000-09-29 Kenichi Handa <handa@etl.go.jp>
254
255 * keymap.c: Remove the line "#undef NULL".
256
257 2000-09-28 Gerd Moellmann <gerd@gnu.org>
258
259 * xterm.c (x_make_frame_visible): Try harder to make the frame
260 visible.
261
262 2000-09-28 Dave Love <fx@gnu.org>
263
264 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
265
266 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
267
268 * .gdbinit (xreload): Note its need on GNU/Linux.
269
270 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
271 r_alloc, r_alloc_free.
272
273 2000-09-28 Kenichi Handa <handa@etl.go.jp>
274
275 * syntax.c (skip_chars): Handle negation correctly.
276
277 2000-09-27 Gerd Moellmann <gerd@gnu.org>
278
279 * xfaces.c (realize_default_face): Call set_lface_from_font_name
280 with non-zero FORCE_P argument.
281
282 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
283 Add assertions.
284
285 * xdisp.c (window_box_height): Add an assertion.
286
287 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
288 tool-bar than is available.
289 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
290
291 2000-09-27 Dave Love <fx@gnu.org>
292
293 * s/irix6-5.h: Now works 64-bit. Tidied.
294
295 2000-09-26 Gerd Moellmann <gerd@gnu.org>
296
297 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
298 instead of BITS_PER_INT.
299 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
300 EMACS_UINT, respectively.
301 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
302
303 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
304
305 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
306
307 * window.c (freeze_window_starts): Construct last argument for
308 foreach_window differently.
309
310 * xfns.c (x_decode_color): Don't return a Lisp_Object.
311
312 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
313 EMACS_UINT instead of `int' and `unsigned int'.
314 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
315
316 * frame.h (struct frame): Make the `nothing' member of union
317 output_data an EMACS_INT.
318
319 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug
320 hunting.
321 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
322 size in the sdata structure.
323 (SDATA_NBYTES, SDATA_DATA): New macros.
324 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
325 differently for the different layout of the sdata structure.
326 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
327 in sdata.
328 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
329 Check that size recorded in the string size and size recorded in
330 the sdata structure agree.
331
332 2000-09-25 Dave Love <fx@gnu.org>
333
334 * buffer.c: Include stdio.h.
335
336 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
337
338 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
339
340 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
341 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as
342 size_t.
343 (__malloc_extra_blocks): Declare as __malloc_size_t.
344
345 2000-09-25 Gerd Moellmann <gerd@gnu.org>
346
347 * alloc.c (mark_image): Use GC_NILP instead of NILP.
348
349 * keyboard.c (show_help_echo): Set help_echo_showing_p.
350 (read_char): If help-echo is showing, preserve the echo area
351 when redisplaying.
352
353 * xdisp.c (help_echo_showing_p): New variable.
354 (set_message): Reset it to 0.
355 (init_xdisp): Initialize help_echo_showing_p.
356
357 * dispextern.h (help_echo_showing_p): Declare extern.
358
359 * config.in: Fix typo in __GNUC_MINOR__.
360
361 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
362
363 * s/freebsd.h (POSIX_SIGNALS): Define.
364
365 * xterm.c (x_clear_mouse_face): Block/unblock input.
366
367 2000-09-24 Dave Love <fx@gnu.org>
368
369 * fns.c (base64_encode_1): Fix last change.
370
371 2000-09-22 Gerd Moellmann <gerd@gnu.org>
372
373 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
374
375 * xdisp.c (try_window_reusing_current_matrix): More fixes
376 for the case window has a header-line.
377
378 2000-09-22 Dave Love <fx@gnu.org>
379
380 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
381 a doc string.
382
383 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
384
385 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
386
387 2000-09-21 Gerd Moellmann <gerd@gnu.org>
388
389 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
390 for GCC >= 2.5.
391
392 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error): Declare
393 NO_RETURN.
394
395 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
396 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
397 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
398 warnings.
399
400 * marker.c (byte_char_debug_check): Return void.
401
402 * xfns.c (Fx_create_frame): Set default frame parameter value
403 for tool-bar-lines to 1.
404
405 * dispnew.c (scrolling_window): Compare y-positions of rows
406 equal at the start. Some simplification.
407
408 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
409 reused rows' y-position in the case window has a header-line, and
410 new window start is greater than old window start.
411
412 * process.c (process_sent_to): New variable.
413 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
414 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
415 Declare more parameters volatile.
416
417 * lread.c (Vrecursive_load_depth_limit): New variable.
418 (Fload): Check recursive loads whose recursion depth exceeds
419 Vrecursive_load_depth_limit.
420 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
421
422 2000-09-20 Gerd Moellmann <gerd@gnu.org>
423
424 * fileio.c (Fread_file_name): Doc fix.
425
426 * editfns.c (Fmessage_or_box): Doc fix.
427
428 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
429
430 * xfns.c (xbm_scan): Allow C-style comments.
431
432 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
433 symbols are specified, add color translations to the cache.
434 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New
435 functions.
436 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
437 xpm_cache_color.
438 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
439 structures to xpm_init_color_cache.
440
441 2000-09-19 Gerd Moellmann <gerd@gnu.org>
442
443 * dispnew.c (update_window_line): Make sure to always draw
444 mode-lines.
445
446 2000-09-19 Andrew Innes <andrewi@gnu.org>
447
448 * makefile.nt (bootstrap-emacs): Don't change directory.
449
450 2000-09-19 Kenichi Handa <handa@etl.go.jp>
451
452 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
453
454 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
455 If output buffer is too small, signal an appropriated error.
456
457 2000-09-18 Dave Love <fx@gnu.org>
458
459 * keyboard.c (menu_bar_items, tool_bar_items)
460 (current_active_maps): Remove redundant get_local_map call.
461
462 2000-09-18 Gerd Moellmann <gerd@gnu.org>
463
464 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
465 cursor for buffers whose cursor_type is nil.
466
467 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
468 a feature to implement that is already implemented.
469 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
470 warnings.
471
472 * xfns.c (x_clear_image_1): New function.
473 (x_clear_image): Use it.
474 (x_from_xcolors): Use x_clear_image_1; don't free the image's
475 mask.
476
477 * dispnew.c (update_window): Move test for invisible lines
478 at the top to update_window_line.
479 (update_window_line): Handle invisible lines here.
480
481 * xfns.c (clear_image_cache): Clear current matrices of all
482 frames sharing an image cache. Block input while freeing
483 images. Fix timestamp comparison.
484 (x_clear_image): Also free the mask.
485
486 * xfns.c (lookup_image): Block input while loading the image so
487 that we won't get interrupted in a state where the image isn't yet
488 set up completely.
489 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
490 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
491 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
492 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock
493 input.
494
495 2000-09-16 Gerd Moellmann <gerd@gnu.org>
496
497 * dispnew.c (update_window): Make sure to make desired rows
498 current even if they are completely invisible at the top
499 of a window.
500
501 2000-09-15 Gerd Moellmann <gerd@gnu.org>
502
503 * xfns.c (lookup_image): Build mask before applying an algorithm.
504 Recognize algorithm `disabled'.
505 (cross_disabled_images): New variable.
506 (COLOR_INTENSITY): New macro.
507 (x_detect_edges): Use COLOR_INTENSITY.
508 (x_disable_image): New function.
509 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
510
511 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
512 disabled state, don't apply an image transformation algorithm if
513 the user specified an image for the disabled state. Use
514 `:algorithm disabled' for creating a disabled item's image if the
515 user hasn't specified an image.
516
517 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
518 allocation functions with the XPM lib.
519 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
520 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
521 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
522 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
523 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New
524 functions.
525 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
526 functions, if possible, because these handle color allocation
527 failure more gracefully.
528 (Fimage_mask_p): New function.
529
530 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
531 (Qedge_detection, Qheuristic): New symbols.
532 (syms_of_xfns): Initialize new symbols.
533 (lookup_image): Handle `:mask X', `:algorithm emboss', and
534 `algorithm (edge-detection ...)'.
535 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
536 (tiff_format, gif_format, gs_format): Add `:mask'.
537 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
538 (GIF_MASK, GS_MASK): New enumerators.
539 (x_laplace_read_row, x_laplace_write_row): Functions removed.
540 (emboss_matrix, laplace_matrix): New variables.
541 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
542 (x_edge_detection): New functions.
543 (x_laplace): Rewritten in terms of x_detect_edges.
544 (x_build_heuristic_mask): If image has a mask, free it.
545
546 2000-09-14 Andrew Innes <andrewi@gnu.org>
547
548 * makefile.w32-in: Revert to Unix line endings.
549
550 2000-09-14 Andrew Innes <andrewi@gnu.org>
551
552 * makefile.w32-in: Standardize indentation somewhat.
553 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
554 cater for differences between shells.
555
556 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
557
558 2000-09-14 Gerd Moellmann <gerd@gnu.org>
559
560 * xterm.c (x_produce_glyphs): If the distance from the current
561 position to the next tab stop is less than a canonical character
562 width, use the tab stop after that.
563
564 2000-09-14 Dave Love <fx@gnu.org>
565
566 * buffer.c (alloc_buffer_text): Fix xmalloc call.
567
568 2000-09-14 Gerd Moellmann <gerd@gnu.org>
569
570 * xdisp.c (handle_fontified_prop): While running fontification
571 functions, bind `fontification-functions' and
572 `after-change-functions' to nil.
573
574 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
575 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
576
577 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
578
579 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
580 USE_MMAP_FOR_BUFFERS.
581
582 * insdel.c (make_gap): Use enlarge_buffer_text.
583
584 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
585 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
586 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
587 from former r_alloc_* functions in ralloc.c.
588 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New
589 variables.
590 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
591 (mmap_init) [REL_ALLOC_MMAP]: New function.
592 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
593 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
594 BUFFER_FREE.
595
596 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
597 (enlarge_buffer_text): Add prototype.
598
599 * ralloc.c: Remove everything having to do with the use of mmap.
600
601 2000-09-13 Gerd Moellmann <gerd@gnu.org>
602
603 * sound.c (Fplay_sound): Doc fix.
604
605 * keyboard.c: Avoid some more compiler warnings.
606 (parse_tool_bar_item): Ignore cached key bindings.
607
608 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
609 and allocation of Lisp data.
610
611 2000-09-12 Gerd Moellmann <gerd@gnu.org>
612
613 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
614 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
615 defaults first.
616
617 * lread.c (Fload): Put code checking for recursive loads in #if 0.
618
619 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
620
621 * ccl.c: Comment fixed.
622 (MAX_MAP_SET_LEVEL): Increased to 30.
623 (PUSH_MAPPING_STACK): Enclose with do-while block.
624 (POP_MAPPING_STACK): Likewise.
625 (stack_idx_of_map_multiple): New variable.
626 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
627 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
628 call the corresponding CCL program by
629 CCL_CALL_FOR_MAP_INSTRUCTION.
630 (ccl_driver) <CCL_MapSingle>: Likewise.
631 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
632 with the case where looking up process reaches to the end of
633 map-set, and call CCL programs as the above change.
634
635 2000-09-11 Gerd Moellmann <gerd@gnu.org>
636
637 * xfns.c (png_load, jpeg_load): Declare some variables volatile
638 that might be clobbered by longjmp.
639 (check_x_display_info, x_decode_color, create_frame_xic)
640 (Fx_display_backing_store, Fx_display_visual_class)
641 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler
642 warnings.
643
644 * lread.c (init_lread): Set Vloads_in_progress to nil.
645 (Fload): Show list of recursively loaded files, when signaling an
646 error.
647
648 * lread.c (Vloads_in_progress): New variable.
649 (record_load_unwind): New function.
650 (Fload): Check for recursive loads.
651 (syms_of_lread): Initialize Vloads_in_progress.
652 (read_integer, read1): Avoid some compiler warnings.
653
654 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
655 compiler warnings.
656
657 2000-09-11 Miles Bader <miles@gnu.org>
658
659 * editfns.c (Fbuffer_string): Doc fix.
660
661 2000-09-10 Gerd Moellmann <gerd@gnu.org>
662
663 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
664
665 2000-09-09 Ken Raeburn <raeburn@gnu.org>
666
667 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
668 whether to include other header files.
669
670 2000-09-09 Gerd Moellmann <gerd@gnu.org>
671
672 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
673 by Fmemq as a boolean.
674
675 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
676
677 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
678
679 2000-09-08 Gerd Moellmann <gerd@gnu.org>
680
681 * ralloc.c (mmap_fd): Remove initializer which can make it
682 read-only in a dumped Emacs.
683 (mmap_fd_1): New variable.
684 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
685 restore it from there.
686 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
687 unconditionally so that mmap_fd can be initialized there.
688 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
689 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
690 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
691
692 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
693
694 * xdisp.c (dump_glyph_row): Fix printf format string.
695 (display_line, move_it_in_display_line_to): Avoid compiler
696 warnings.
697
698 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
699
700 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
701 inheritance.
702
703 * xdisp.c (try_window_id): When trying to locate cursor in
704 unchanged rows at the top, handle the case that we can't find it.
705
706 * xterm.c (x_draw_glyphs): Handle case START and END are out
707 of bounds more carefully.
708
709 2000-09-08 Dave Love <fx@gnu.org>
710
711 * s/sol2.h (REL_ALLOC_MMAP): Define.
712 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
713
714 * ralloc.c: Don't include string.h (redundant).
715 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
716 [!MAP_ANON]: Include fcntl.h.
717 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
718 (r_alloc, r_re_alloc, r_alloc_free)
719 (mmap_enlarge, mmap_set_vars): Use it.
720 (r_alloc_init_fd): New function.
721 (__morecore) [SYSTEM_MALLOC]: Don't declare.
722 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
723 malloc type.
724
725 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
726 Remove vm-limit.o.
727
728 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
729 change to __NetBSD__.
730
731 2000-09-08 Kenichi Handa <handa@etl.go.jp>
732
733 * search.c (compile_pattern): Check the multibyteness of cached
734 string and PATTERN.
735
736 2000-09-08 Miles Bader <miles@gnu.org>
737
738 * xfaces.c (default_face_vector): Function removed.
739 (Finternal_merge_in_global_face): Restore old global/local
740 attribute override order. Use inline loop instead of calling
741 default_face_vector.
742
743 2000-09-07 Gerd Moellmann <gerd@gnu.org>
744
745 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
746 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
747 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
748 where necessary, in case POINTER_TYPE is `void'.
749
750 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
751
752 * frame.c (make_terminal_frame): Initialize frame foreground and
753 background colors to unspecified, for the initial instance of an
754 MSDOS frame.
755
756 2000-09-07 Gerd Moellmann <gerd@gnu.org>
757
758 * ralloc.c (mmap_find): Fix overlap computation.
759 (mmap_enlarge): Compute nbytes before trying to find an
760 overlapping region.
761
762 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
763 instead of `!='.
764
765 * lread.c (syms_of_lread): Change value of regexp
766 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
767
768 * xmenu.c (xdialog_show): When looking up the selection in
769 menu_items, take `quote' boundaries into account; this corresponds
770 to a nil ITEM in x-popup-dialog.
771
772 2000-09-07 Kenichi Handa <handa@etl.go.jp>
773
774 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
775 not 0x81.
776 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
777
778 * coding.c (encode_coding_sjis_big5): Use translation table for
779 encoding, not decoding. Fix the handling of latin-jisx0201.
780 Check for the charset katakana-jisx0201 too.
781 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
782 (detect_coding_sjis): Check the byte sequence more rigidly.
783
784 2000-09-07 Gerd Moellmann <gerd@gnu.org>
785
786 * xfaces.c (Vparam_value_alist): New variable.
787 (syms_of_xfaces): Initialize it.
788 (Finternal_set_lisp_face_attribute): Avoid more consing.
789
790 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
791 specially.
792 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
793 (Qbackground_mode): New variable.
794 (syms_of_frame_1): Initialize Qbackground_mode.
795
796 * lisp.h (Qdisplay): Declare extern.
797
798 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
799 change face on all frames, and change the default for new frames.
800
801 2000-09-07 Dave Love <fx@gnu.org>
802
803 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
804
805 2000-09-07 Kenichi Handa <handa@etl.go.jp>
806
807 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
808
809 * charset.c: Include composite.h
810 (lisp_string_width): New function.
811 (Fstring_width): Call lisp_string_width instead of strwidth.
812
813 * Makefile.in (charset.o): Depends on composite.h.
814
815 * process.c (read_process_output): Before inserting the decoded
816 text in the buffer, adjust the multibyteness.
817
818 2000-09-06 Gerd Moellmann <gerd@gnu.org>
819
820 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
821 buffer's text buffer is null, map new memory.
822
823 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
824 POINTER_TYPE and size_t.
825 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
826 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
827 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
828 [REL_ALLOC_MMAP]: New macros.
829 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
830 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
831 [REL_ALLOC_MMAP]: New functions.
832
833 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
834 before and after unexec.
835
836 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
837 text buffers if necessary.
838
839 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
840 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
841 in prototypes.
842
843 * config.in (HAVE_MMAP): Add #undef.
844
845 2000-09-05 Gerd Moellmann <gerd@gnu.org>
846
847 * frame.c (Qdisplay_type): New variable.
848 (syms_of_frame_1): Initialize it.
849 (Fframe_parameter): New function that avoids consing.
850 (syms_of_frame): Defsubr it.
851
852 * buffer.c (Fother_buffer): Consider buffers as invisible when
853 they are displayed in a window on an invisible frame.
854
855 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
856 get-largest-window always return nil.
857
858 2000-09-04 Gerd Moellmann <gerd@gnu.org>
859
860 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
861 variable; recognize Emacs 19 elc files.
862
863 2000-09-04 Miles Bader <miles@gnu.org>
864
865 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
866 before initially popping up the menu, so the menu doesn't flash
867 when the face settings are significantly different from the
868 defaults.
869
870 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
871
872 * regex.c (WIDE_CHAR_SUPPORT): New macro.
873 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
874 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
875 (BIT_UNIBYTE): Remove.
876 (re_match_2_internal): Delete corresponding code and streamline the
877 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
878 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
879 (re_wctype_t): New type.
880 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
881 (regex_compile): Use them and fix handling of overly long char classes.
882
883 2000-09-03 Andrew Innes <andrewi@gnu.org>
884
885 * makefile.w32-in: Change to DOS line endings.
886
887 * s/ms-w32.h (ORDINARY_LINK): New define.
888
889 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
890 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
891
892 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
893 (distclean): Delete them here instead.
894
895 * w32proc.c (compare_env): Convert to uppercase for comparison,
896 not lowercase, to match how the native Windows shell works.
897
898 2000-09-03 Jason Rumney <jasonr@gnu.org>
899
900 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
901 CVS changes the line-ends when checking in/out on DOS/Windows.
902
903 * makefile.nt (emacs): Do not change directory to run temacs, as
904 the load-path is set relative to current directory.
905
906 2000-09-03 Miles Bader <miles@gnu.org>
907
908 * xterm.c (x_alloc_lighter_color_for_widget): New function.
909
910 2000-09-02 Gerd Moellmann <gerd@gnu.org>
911
912 * xdisp.c (redisplay_mode_lines): New function.
913 (display_mode_lines): Return number of mode lines displayed.
914 (echo_area_display): Use redisplay_mode_lines to draw garbaged
915 mode lines. Don't temporarily bind redisplay-dont-pause to t.
916
917 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
918 string.h and strings.h.
919 (index) [HAVE_INDEX]: Add prototype.
920
921 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
922 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
923
924 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
925 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
926
927 2000-09-01 Gerd Moellmann <gerd@gnu.org>
928
929 * lread.c (read1): Accept `?' as symbol constituent, for
930 compatiblity with XEmacs.
931
932 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
933
934 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
935 (struct re_pattern_buffer): Remove newline_anchor.
936 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
937 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
938 (re_max_failures, fail_stack): Use size_t rather than unsigned.
939 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
940 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
941 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
942 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
943 Get rid of references to newline_anchor.
944 (regcomp): Allocate and precompute a fastmap.
945
946 2000-08-31 Gerd Moellmann <gerd@gnu.org>
947
948 * lread.c (openp): GCPRO local variable `filename'.
949
950 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
951
952 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
953
954 * regex.c: Merge some changes from GNU libc. Add prototypes.
955 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
956 Use memcmp and memcpy instead of bcopy and bcmp.
957 (init_syntax_once): Use ISALNUM.
958 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
959 (REG_UNSET_VALUE): Remove. Use NULL instead.
960 (REG_UNSET, re_match_2_internal): Use NULL.
961 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
962 New macros.
963 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
964 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
965 (regex_compile): In handle_interval, return an error rather than try to
966 unfetch the interval if we can't find the closing brace.
967 Obey the RE_NO_GNU_OPS syntax bit.
968 (TOLOWER): New macro.
969 (regcomp): Use it.
970 (regexec): Allocate regs.start and regs.end as one block.
971
972 2000-08-30 Gerd Moellmann <gerd@gnu.org>
973
974 * xdisp.c (echo_area_display): Check display_completed instead
975 of calling detect_input_pending.
976
977 * dispnew.c (update_frame): Only set display_completed here; move
978 the update_begin and update_end calls here from update_frame_1.
979 (update_frame_1): Don't set display_completed here, don't call
980 update_begin/update_end.
981
982 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
983 instead of store_frame_param.
984
985 2000-08-29 Gerd Moellmann <gerd@gnu.org>
986
987 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
988 desired window matrix hasn't been displayed, use the current row
989 instead. Make sure that only those frame rows are updated for
990 which there exists a corresponding enabled desired row.
991
992 2000-08-29 Miles Bader <miles@gnu.org>
993
994 * xfaces.c (default_face_vector): New function.
995 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
996
997 2000-08-29 Gerd Moellmann <gerd@gnu.org>
998
999 * lread.c (openp): Prevent temporary string passed to
1000 Ffile_readable_p from being garbage collected.
1001
1002 2000-08-28 Dave Love <fx@gnu.org>
1003
1004 * keymap.c (store_in_keymap): Add `static' to declaration.
1005
1006 2000-08-28 Gerd Moellmann <gerd@gnu.org>
1007
1008 * emacs.c, callint.c, doc.c, editfns.c
1009 (toplevel) [HAVE_STRING_H]: Include string.h.
1010 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
1011 (index): Remove prototypes which might conflict with non-standard
1012 definitions of index/strchr.
1013
1014 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
1015 (rindex): Define only if !HAVE_RINDEX.
1016
1017 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
1018
1019 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
1020
1021 2000-08-28 Miles Bader <miles@gnu.org>
1022
1023 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
1024 made inconsistent by a font-related attribute in FROM.
1025 (merge_face_inheritance): Add function comment.
1026
1027 2000-08-28 Kenichi Handa <handa@etl.go.jp>
1028
1029 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
1030 the 4th arg (PREV_EVENT) Qt to suppress input method.
1031
1032 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
1033
1034 * regex.c: Indent cpp directives and remove parens after `defined'.
1035 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
1036 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
1037 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
1038 (re_compile_pattern): Use size_t for length.
1039 (init_syntax_once): Move to a better place.
1040 * regex.h: Merge changes from GNU libc. Indent cpp directives.
1041 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
1042
1043 * syntax.c (back_comment): Detect cases where a comment-starter is
1044 actually inside another comment as in: /* a // b */ c // d \n.
1045 Make it clear that `comstart_pos' is unused for nested comments.
1046
1047 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
1048 (KEYMAPP): New macro.
1049 (Fkeymap_parent, Fset_keymap_parent): Use it.
1050 (fix_submap_inheritance): Mark it static.
1051 (define_as_prefix, describe_buffer_bindings, describe_command)
1052 (describe_translation, describe_map): Complete prototypes.
1053
1054 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
1055
1056 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
1057 to better match the key-lookup behavior.
1058
1059 2000-08-27 Gerd Moellmann <gerd@gnu.org>
1060
1061 * xfaces.c (lface_fully_specified_p): Handle :inherit.
1062 (Finternal_set_lisp_face_attribute): Fix typo in error message.
1063
1064 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
1065
1066 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
1067 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
1068 (xterm.o): Depend on coding.h
1069
1070 2000-08-26 Kenichi Handa <handa@etl.go.jp>
1071
1072 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
1073 the corresponding '#endif'.
1074
1075 2000-08-26 Miles Bader <miles@gnu.org>
1076
1077 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
1078 * xfaces.c (QCinherit): New variable.
1079 (syms_of_xfaces): Initialize it.
1080 (LFACE_INHERIT): New macro.
1081 (Finternal_get_lisp_face_attribute)
1082 (merge_face_vector_with_property)
1083 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
1084 (check_lface_attrs): Allow new types of face height. Check
1085 inherit attribute.
1086 (CYCLE_CHECK): New macro.
1087 (merge_face_inheritance): New function.
1088 (merge_face_vectors): Merge inherited faces too. Add F and
1089 CYCLE_CHECK arguments.
1090 (merge_face_vector_with_property, Finternal_merge_in_global_face)
1091 (lookup_named_face, lookup_derived_face, realize_named_face)
1092 (face_at_string_position, face_at_buffer_position): Supply
1093 new F and CYCLE_CHECK arguments to merge_face_vectors.
1094 (merge_face_heights): New function.
1095 (merge_face_vectors, merge_face_vector_with_property)
1096 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
1097 handle relative face heights.
1098 (lface_same_font_attributes_p): Compare heights using EQ.
1099
1100 2000-08-26 Kenichi Handa <handa@etl.go.jp>
1101
1102 * charset.c (char_to_string): Check the character validity.
1103 (char_valid_p): If C is not less than MAX_CHAR, be sure to return
1104 0.
1105
1106 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
1107
1108 * regex.c (PUSH_FAILURE_COUNT): New macro.
1109 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
1110 Handle popping of a register's or a counter's data.
1111 (POP_FAILURE_POINT): Use the new name.
1112 (re_match_2_internal): Push counter data on the stack for succeed_n,
1113 jump_n and set_number_at and remove misleading dead code in succeed_n.
1114
1115 2000-08-25 Gerd Moellmann <gerd@gnu.org>
1116
1117 * xdisp.c (redisplay_internal): If considering all windows on all
1118 frames, update the display for each frame as soon as possible,
1119 instead of first building all desired matrices for all frames, and
1120 then updating them all.
1121 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
1122
1123 2000-08-24 Gerd Moellmann <gerd@gnu.org>
1124
1125 * bytecode.c (mark_byte_stack): Add a comment.
1126
1127 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
1128 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
1129 a graphical frame.
1130
1131 2000-08-24 Kenichi Handa <handa@etl.go.jp>
1132
1133 * minibuf.c (do_completion): Always use compare-string, not
1134 string-equal because the latter doesn't pay attention to
1135 multibyteness of strings.
1136
1137 * process.c (create_process): Don't setup raw-text coding here.
1138 (Fopen_network_stream): Don't set coding->src_multibyte and
1139 coding->dst_multibyte here.
1140 (read_process_output): For process filter, return unibyte string
1141 if default-enable-multibyte-characters is nil.
1142 (send_process): If OBJECT is multibyte text, be sure to encoded it
1143 by the specified coding system for the process. Otherwise, setup
1144 raw-text coding.
1145 (init_process): Don't initialize default-process-coding-system
1146 here.
1147
1148 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
1149
1150 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
1151 <scroll-down-aggressively>: Likewise.
1152
1153 2000-08-23 Kenichi Handa <handa@etl.go.jp>
1154
1155 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
1156 zero. Set coding->produced_char correctly.
1157
1158 2000-08-22 Andrew Innes <andrewi@gnu.org>
1159
1160 * makefile.w32-in: New file.
1161
1162 * unexw32.c (unexec): Ignore old_name, and use the actual location
1163 of the current executable instead. Base new_name on this.
1164
1165 * w32proc.c (create_child): Remove reference to security
1166 descriptor, which isn't needed and doesn't compile with mingw32.
1167
1168 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
1169 up dllimport attributes.
1170 (x_update_window_end): Update prototype.
1171
1172 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
1173 extern, which screws up dllimport attributes.
1174
1175 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
1176 up dllimport attributes.
1177
1178 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
1179 screws up dllimport attributes.
1180
1181 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
1182 up dllimport attributes.
1183 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
1184 screws up dllimport attributes.
1185
1186 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
1187 up dllimport attributes.
1188
1189 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
1190 screws up dllimport attributes.
1191
1192 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
1193 screws up dllimport attributes.
1194
1195 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
1196 up dllimport attributes.
1197
1198 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
1199 unnecessary extern, which screws up dllimport attributes.
1200 (main): Ditto.
1201
1202 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
1203 up dllimport attributes.
1204
1205 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
1206 unnecessary extern, which screws up dllimport attributes.
1207
1208 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
1209 screws up dllimport attributes.
1210
1211 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
1212 up dllimport attributes.
1213
1214 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
1215
1216 * w32bdf.c (search_file_line):
1217 (set_bdf_font_info):
1218 (seek_char):
1219 (w32_get_bdf_glyph):
1220 (w32_BDF_to_x_font): Fix compile warnings.
1221
1222 * w32menu.c: Include keyboard.h before frame.h. Fix compile
1223 warnings.
1224
1225 * w32select.c: Include keyboard.h before frame.h.
1226
1227 * w32fns.c (max): Define macro.
1228 (JOHAB_CHARSET): Define if not known.
1229 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
1230 (Fx_show_tip): Synch with X version.
1231
1232 * w32xfns.c: Include keyboard.h before frame.h.
1233
1234 * w32fns.c: Include keyboard.h before frame.h.
1235
1236 * w32term.c: Include keyboard.h before frame.h.
1237
1238 * fontset.c: Include keyboard.h before frame.h.
1239
1240 * w32inevt.c: Include keyboard.h before frame.h.
1241 (MOUSE_MOVED): Define if not known.
1242
1243 * minibuf.c: Include keyboard.h before frame.h.
1244
1245 * keyboard.c: Include keyboard.h before frame.h.
1246
1247 * indent.c: Include keyboard.h before frame.h.
1248
1249 * dispnew.c: Include keyboard.h before frame.h.
1250
1251 * buffer.c: Include keyboard.h before frame.h.
1252
1253 * alloc.c: Include keyboard.h before frame.h.
1254
1255 * print.c: Include keyboard.h before frame.h.
1256
1257 * process.c: Include keyboard.h before frame.h.
1258
1259 * scroll.c: Include keyboard.h before frame.h.
1260
1261 * sysdep.c: Include keyboard.h before frame.h.
1262
1263 * term.c: Include keyboard.h before frame.h.
1264
1265 * window.c: Include keyboard.h before frame.h.
1266
1267 * xdisp.c: Include keyboard.h before frame.h.
1268 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
1269
1270 * frame.c: Include keyboard.h before frame.h.
1271
1272 * w32heap.h: Undefine min, max.
1273
1274 * w32gui.h: Undefine min, max.
1275
1276 * unexw32.c: Change PUCHAR to PCHAR.
1277 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
1278 (relocate_offset):
1279 (get_section_info):
1280 (copy_executable_and_dump_data): Remove unnecessary static defs.
1281 (copy_executable_and_dump_data): Fix compile warnings.
1282
1283 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
1284
1285 * w32console.c (min): Define macro.
1286 (clear_frame, write_glyphs): Fix compile warning.
1287
1288 * w32proc.c (compare_env):
1289 (find_child_console): Fix compile warning.
1290
1291 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
1292 sys_errlist instead of _sys_errlist.
1293 (get_emacs_configuration_options): New function.
1294
1295 * s/ms-w32.h (sys_nerr): Provide default definition.
1296 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
1297 name with _ prepended.
1298 (NSIG): Define if not known.
1299 (get_emacs_configuration): Provide extern declaration.
1300 (get_emacs_configuration_options): Provide extern declaration.
1301 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
1302
1303 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
1304 (map_w32_filename):
1305 (read_unc_volume): Fix compile warning.
1306
1307 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
1308 definitions from being used.
1309
1310 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
1311
1312 * w32.c (unc_volume_file_attributes):
1313 (open_unc_volume): Make arg const.
1314
1315 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
1316 (read_input_waiting): Remove excess parameter.
1317
1318 * w32.c (init_environment): Call _access.
1319 (check_windows_init_file): Call _close.
1320 (init_user_info): Call _putenv.
1321 (init_environment): Call _putenv and _strdup.
1322 (init_ntproc): Reset volume info cache on startup.
1323
1324 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
1325 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
1326 cannot override the CRT malloc.
1327
1328 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
1329 (LINK_FLAGS): Append to original value of LINK_FLAGS.
1330
1331 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
1332 unless we are linking with a static CRT.
1333 (RVA_TO_PTR): Cast result to unsigned char*.
1334
1335 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
1336 (add_volume_info): Use xstrdup.
1337
1338 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
1339
1340 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
1341 (do_completion, Fminibuffer_complete_word): Use it.
1342 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
1343 var so it can take non-boolean values.
1344
1345 2000-08-21 Gerd Moellmann <gerd@gnu.org>
1346
1347 * editfns.c (find_field): Formatting changes.
1348 (toplevel): Some old-style function forward declarations
1349 changed to prototypes, some new protypes added, some functions
1350 made static.
1351
1352 * lisp.h (set_time_zone_rule): Add prototype.
1353 (use_dialog_box): External declaration.
1354
1355 * keyboard.c (gen_help_event): Add parameter SIZE.
1356 (kbd_buffer_events_waiting): Slightly rewritten.
1357 (clear_event): New function.
1358 (kbd_buffer_get_event): Use it, and clear the input_events of
1359 HELP_EVENTs.
1360 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
1361 don't fill the newly created array with nils.
1362 (toplevel): Convert some old-style function forward declarations
1363 to prototypes.
1364
1365 * keyboard.h (gen_help_event): Change prototype.
1366
1367 * xterm.c (XTread_socket): Change calls to gen_help_event.
1368
1369 * w32term.c (w32_read_socket): Change calls to gen_help_event.
1370
1371 * eval.c (Fmacroexpand): Doc fix.
1372
1373 2000-08-20 Jason Rumney <jasonr@gnu.org>
1374
1375 * w32term.h (x_display_info_for_display): Remove as this function
1376 does not exist on W32.
1377
1378 * w32term.c (help_echo_window): New variable.
1379 (syms_of_w32term): staticpro it.
1380 (note_mode_line_highlight): Set it.
1381 (XTextExtents16): Removed as there is no equivalent on W32.
1382 (x_compute_glyph_string_overhangs): Incomplete body removed, as
1383 the X way of doing this will not work for W32.
1384 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
1385 (x_draw_image_foreground): Avoid drawing outside of the clip area
1386 when image doesn't have a mask.
1387 (note_mouse_highlight): Process overlays in the right order of
1388 priority. Set help_echo_window.
1389 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
1390 because that's more visible for large images.
1391
1392 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
1393 name to single_keymap_panes.
1394 (w32_menu_show): Set wv->title when dealing with titles.
1395 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
1396
1397 2000-08-21 Miles Bader <miles@gnu.org>
1398
1399 * minibuf.c (do_completion): Try again if we rewrite the input
1400 string, but no completion was done, so that any completion message
1401 will be correct.
1402
1403 2000-08-20 Gerd Moellmann <gerd@gnu.org>
1404
1405 * xfaces.c (lface_equal_p): Compare strings differently.
1406 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
1407 (realize_tty_face): Use them.
1408 (syms_of_xfaces): Initialize new variables.
1409 (map_tty_color): New function, extracted from realize_tty_face.
1410 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
1411 foreground or background color, store the new color name in the
1412 realized face; previous code trying to do this had no effect.
1413 (realize_tty_face): Use map_tty_color.
1414 (Fclear_face_cache): Set face_change_count and ensure thorough
1415 redisplay.
1416
1417 2000-08-19 Gerd Moellmann <gerd@gnu.org>
1418
1419 * undo.c (record_first_change, record_marker_adjustment): Don't
1420 use XBUFFER on last_undo_buffer which might not be a buffer.
1421
1422 2000-08-18 Kenichi Handa <handa@etl.go.jp>
1423
1424 * coding.c (decode_coding_string): Set members consumed,
1425 consumed_char, produced, produced_char of *coding correctly. If
1426 decode_coding doesn't consume any byte, don't try anymore.
1427 (encode_coding_string): Likewise.
1428
1429 2000-08-18 Gerd Moellmann <gerd@gnu.org>
1430
1431 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
1432 conditional have void type, for Standard C compilers.
1433
1434 * xdisp.c (redisplay_internal): Compare windows for equality with
1435 EQ, instead of applying XWINDOW to something that might not
1436 be a window.
1437
1438 2000-08-18 Kenichi Handa <handa@etl.go.jp>
1439
1440 * fontset.c (Finternal_char_font): Search only the selected frame
1441 for a window of the current buffer.
1442
1443 2000-08-18 Gerd Moellmann <gerd@gnu.org>
1444
1445 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
1446 Lisp_Objects.
1447
1448 * keyboard.c (kbd_buffer_get_event): Handle the case that the
1449 second half of a HELP_EVENT is found at the start of kbd_buffer.
1450
1451 2000-08-18 Miles Bader <miles@gnu.org>
1452
1453 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
1454
1455 * editfns.c (save_restriction_save): Rewrite to use markers.
1456 (save_restriction_restore): Rewrite to understand new form of data
1457 saved by save_restriction_save.
1458 (Fsave_restriction): Remove cautionary note in doc-string.
1459
1460 2000-08-17 Gerd Moellmann <gerd@gnu.org>
1461
1462 * fileio.c (build_annotations): Add a comment explaining the
1463 return value of format-annotate-function. Replace a spurious call
1464 to Flength with a CONSP test. Call format-annotate-function with
1465 a fifth arg specifying how many times the function is been called
1466 in a row, to let it choose temporary buffers appropriately.
1467
1468 2000-08-17 Dave Love <fx@gnu.org>
1469
1470 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
1471 declare make_temp_name twice.
1472
1473 * lread.c: Prototype readevalloop, load_unwind,
1474 load_descriptor_unwind.
1475 (unreadpure): Give it an arg.
1476
1477 * unexalpha.c: Prototype fatal_unexec, mark_x,
1478 update_dynamic_symbols. Declare unexec as void.
1479
1480 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
1481 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
1482
1483 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
1484 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on
1485 DOUG_LEA_MALLOC.
1486
1487 * alloca.c: Use #error.
1488 [POINTER_TYPE]: Use it.
1489
1490 * eval.c (Fdefvar): Doc fix.
1491
1492 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
1493 INITIALIZE_INTERVAL.
1494
1495 * buffer.h: Avoid DECLARE_INTERVALS.
1496
1497 * config.in: Add size_t.
1498
1499 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
1500
1501 * w16select.c (set_clipboard_data): If there's not enough memory
1502 to put text into clipboard, return 1, as Fw16_set_clipboard_data
1503 expects. In case of other failures, return 3.
1504 (system_error_msg): New error message.
1505 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
1506 system_error_msg.
1507
1508 2000-08-16 Gerd Moellmann <gerd@gnu.org>
1509
1510 * term.c (write_glyphs): Also turn off inverse video after turning
1511 off other appearances in case TS_exit_attribute_mode is not equal
1512 to TS_end_standout_mode.
1513 (insert_glyphs): Turn inverse video on/off for each run of glyphs
1514 with the same face.
1515 (turn_off_face): Reset standout_mode only if
1516 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
1517 is equal to TS_end_standout_mode.
1518
1519 2000-08-16 Kenichi Handa <handa@etl.go.jp>
1520
1521 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
1522 sequence at the end of the source block.
1523
1524 * ccl.c (Fccl_program_p): Docstring modified.
1525 (Fccl_execute): Likewise.
1526 (Fccl_execute_on_string): Likewise.
1527
1528 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
1529
1530 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
1531
1532 2000-08-16 Kenichi Handa <handa@etl.go.jp>
1533
1534 The following changes are mainly to fix bugs of
1535 encode/decode-coding-string failing if encoding/decoding return
1536 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
1537 variable conversion_buffer.
1538
1539 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
1540 decrement dst_end to avoid buffer overflow in the later call of
1541 string_as_multibyte
1542
1543 * coding.h (conversion_buffer_size, conversion_buffer)
1544 (get_conversion_buffer): Extern deleted.
1545
1546 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
1547 (conversion_buffer, conversion_buffer_size): Variables deleted.
1548 (get_conversion_buffer): Function deleted.
1549 (struct conversion_buffer): New structure.
1550 (MAX_ALLOCA): New macro.
1551 (allocate_conversion_buffer): New macro.
1552 (extend_conversion_buffer, free_conversion_buffer): New functions.
1553 (ccl_coding_driver): Set coding->result.
1554 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
1555 this is the last block of source.
1556 (encode_coding): Likewise. Handle the source block as the last
1557 one only when the whole source text is consumed.
1558 (decode_coding_string): Handle the case that the output buffer is
1559 too small to decode the whole source text. Use
1560 allocate_conversion_buffer, extend_conversion_buffer and
1561 free_conversion_buffer, not get_conversion_buffer.
1562 (encode_coding_string): Likewise.
1563 (init_coding): Function deleted.
1564 (init_coding_once): Delete code to initialize
1565 conversion_buffer_size.
1566
1567 * emacs.c (main): Don't call init_coding.
1568
1569 * msdos.c (IT_write_glyphs): Use a locally declared
1570 conversion_buffer.
1571
1572 * term.c (write_glyphs): Use a locally declared conversion_buffer.
1573 (insert_glyphs): Likewise.
1574
1575 * w32console.c (write_glyphs): Use a locally declared
1576 conversion_buffer.
1577
1578 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
1579
1580 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
1581 member of display_info is NULL.
1582
1583 2000-08-15 Gerd Moellmann <gerd@gnu.org>
1584
1585 * alloc.c (compact_small_strings): Use safe_bcopy, add an
1586 assertion.
1587
1588 * term.c (turn_off_face): Reset standout_mode when resetting
1589 appearances with capability `me'.
1590 (write_glyphs): Switch on inverse video before each face change.
1591
1592 2000-08-14 Dave Love <fx@gnu.org>
1593
1594 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
1595 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
1596 (lisp_free): Declare and make static.
1597
1598 * window.c: Fix embedded comment.
1599 (syms_of_window): Fix doc string.
1600
1601 2000-08-14 Gerd Moellmann <gerd@gnu.org>
1602
1603 * keymap.c (push_key_description): If C without modifiers is < 32,
1604 make sure to print `C-' before `M-', like in the manual.
1605
1606 2000-08-11 Gerd Moellmann <gerd@gnu.org>
1607
1608 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
1609 since they aren't relocated anymore.
1610 (sxhash_string): Make sure returned hash code fits in a Lisp
1611 integer.
1612
1613 * xdisp.c (try_cursor_movement): Fix handling of cursor in
1614 partially visible line which is smaller than the window's
1615 height.
1616
1617 2000-08-11 Kenichi Handa <handa@etl.go.jp>
1618
1619 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
1620 the multibyte form of eight-bit-control characters.
1621 (Fccl_execute_on_string): Initialize ccl->multibyte.
1622
1623 * ccl.h (struct ccl_program): New member multibyte.
1624
1625 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
1626
1627 2000-08-11 Kenichi Handa <handa@etl.go.jp>
1628
1629 * regex.c (regex_compile) <normal_char>: Pay attention to
1630 multibyteness.
1631 (analyse_first) <exactn>: Setup fastmap correctly for
1632 eight-bit-control characters.
1633
1634 2000-08-11 Kenichi Handa <handa@etl.go.jp>
1635
1636 * termhooks.h (enum event_kind): New member
1637 multibyte_char_keystroke.
1638
1639 * keyboard.c (make_lispy_event): Handle the new event type
1640 multibyte_char_keystroke.
1641
1642 * xterm.c: Include coding.h.
1643 (XTread_socket): Work around a bug of XmbLookupString. If the
1644 input is from XIM, decode it according to the current locale. In
1645 that case, generate multibyte_char_keystroke events.
1646
1647 2000-08-11 Kenichi Handa <handa@etl.go.jp>
1648
1649 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
1650 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
1651
1652 2000-08-10 Gerd Moellmann <gerd@gnu.org>
1653
1654 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
1655 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
1656 (move_it_in_display_line_to): Record iterator's ascent and descent
1657 before producing glyphs, and restore them when we know the glyph
1658 doesn't fit on the line.
1659 (move_it_to): Restructured so that it's easier to debug. If
1660 moving to a vpos, and not moving to an x or character position,
1661 stop as soon as the specified vpos is reached; don't move further
1662 into that line because that might change the computed line height.
1663 (try_cursor_movement): New function, extracted from the cursor
1664 movement branch of redisplay_window. If ending on a partially
1665 visible line, don't try to scroll if the cursor line is taller
1666 than the window.
1667 (redisplay_window): Use try_cursor_movement.
1668
1669 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
1670 because that function doesn't cope with variable-height lines.
1671
1672 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
1673 box cursor because that's better visible for large images.
1674
1675 2000-08-10 Miles Bader <miles@gnu.org>
1676
1677 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
1678
1679 2000-08-10 Gerd Moellmann <gerd@gnu.org>
1680
1681 * xdisp.c (Vmessages_buffer_name): New variable.
1682 (message_dolog): Use it.
1683 (syms_of_xdisp): Initialize it.
1684
1685 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
1686
1687 * msdos.c (IT_note_mouse_highlight): Update the calls to
1688 overlays_at.
1689 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
1690 redundant now that keyboard.h is included.
1691
1692 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
1693
1694 * keyboard.c (kbd_buffer_events_waiting): New function.
1695
1696 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
1697
1698 * msdos.c: Include keyboard.h.
1699 (XMenuActivate): Empty no_event events from the event buffer. If
1700 no events are left after that, call clear_input_pending.
1701 (mouse_clear_clicks): New function, code moved from mouse_init.
1702 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
1703 mouse driver to ``forget'' any past clicks.
1704
1705 * Makefile.in (msdos.o): Depend on keyboard.h.
1706
1707 2000-08-09 Gerd Moellmann <gerd@gnu.org>
1708
1709 * lisp.h (input_pending): External declaration.
1710
1711 * dispextern.h (Qredisplay_dont_pause): Declare extern.
1712
1713 * xdisp.c (echo_area_display): Display thoroughly if input is
1714 pending. Bind redisplay-dont-pause to t during the redisplay.
1715 in case input is pending.
1716
1717 * dispnew.c (Qredisplay_dont_pause): New variable.
1718 (syms_of_display): Initialize and staticpro it.
1719 (update_frame_1): Don't interrupt the display for pending input if
1720 redisplay_dont_pause is set.
1721
1722 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
1723
1724 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
1725
1726 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
1727
1728 * callproc.c (Fcall_process): Terminate the unwind-protect around
1729 the post-read-conversion of coding system.
1730
1731 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
1732 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
1733 * buffer.h (overlays_at): Update prototype.
1734 * xdisp.c (next_overlay_change): Update call to overlays_at.
1735 * xfaces.c (face_at_buffer_position): Likewise.
1736 * textprop.c (Fget_char_property): Likewise.
1737 * xterm.c (note_mouse_highlight): Likewise.
1738
1739 * minibuf.c (do_completion): Don't consider a simple change of
1740 case as `completion'.
1741
1742 2000-08-08 Ken Raeburn <raeburn@gnu.org>
1743
1744 * keyboard.c (syms_of_keyboard): Initialize
1745 last_point_position_buffer.
1746 * undo.c (record_delete): Make sure last_point_position_buffer is
1747 a buffer before comparing pointers.
1748
1749 * coding.h (decode_coding_string): Declare.
1750
1751 * intervals.h (Fprevious_single_char_property_change): Declare.
1752
1753 * textprop.c (Fprevious_single_char_property_change): Don't do
1754 arithmetic directly on lisp objects.
1755
1756 * editfns.c (find_field): Use EQ, not ==, to compare Lisp
1757 objects.
1758
1759 * keyboard.h (menu_item_eval_property): Declare.
1760
1761 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
1762 reuse as buffer name, instead of recreating (and discarding) every
1763 time a message is logged.
1764 (with_echo_area_buffer): Make callback arg A2 a lisp object.
1765 (current_message_1, truncate_message_1, set_message_1)
1766 (display_echo_area_1, resize_mini_window_1): Signatures changed.
1767 (current_message, truncate_echo_area, display_echo_area)
1768 (resize_echo_area_axactly): Changed calls.
1769
1770 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
1771 Lisp object.
1772 (Ffind_coding_systems_region_internal): First argument to Fappend
1773 must be an integer, not a Lisp object.
1774
1775 2000-08-08 Kenichi Handa <handa@etl.go.jp>
1776
1777 * charset.c (Fchar_width): Doc fix.
1778
1779 2000-08-08 Gerd Moellmann <gerd@gnu.org>
1780
1781 * charset.c (Fstring_width): Doc fix.
1782
1783 2000-08-07 Gerd Moellmann <gerd@gnu.org>
1784
1785 * xdisp.c (start_display): When starting display on a continuation
1786 line, clear ascent and descent members of the iterator structure;
1787 the height of the continued line does not affect the height of the
1788 continuation line.
1789 (make_cursor_line_fully_visible): Do nothing if cursor is on a
1790 line taller than the window.
1791 (redisplay_window) <forced window start>: Handle case that the
1792 middle of the window is not found in any row.
1793 (dump_glyph_row): Show more information.
1794 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
1795 first text line in a glyph matrix.
1796
1797 * xterm.c (x_draw_image_foreground): Avoid drawing outside
1798 of the clip area when image doesn't have a mask.
1799
1800 * fns.c (sweep_weak_table): Fix survival conditions for
1801 key-or-value and key-and-value weakness.
1802
1803 * .gdbinit (xhashtable): New command.
1804
1805 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
1806 tables out of the list of all weak hash tables.
1807
1808 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
1809 a new buffer is created, make sure echo_area_buffer[] references
1810 the new buffer.
1811
1812 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
1813
1814 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
1815 the doc string.
1816
1817 2000-08-07 Kenichi Handa <handa@etl.go.jp>
1818
1819 * syntax.c (skip_chars): Fix previous change. Make the handling
1820 of unibyte string consistent with that of regex search.
1821
1822 2000-08-05 Gerd Moellmann <gerd@gnu.org>
1823
1824 * xmenu.c (popup_get_selection): Use xfree instead of free.
1825
1826 * fileio.c (Finsert_file_contents): Use xfree instead of free.
1827
1828 * editfns.c (Ftranspose_regions): Use xfree instead of free.
1829
1830 * callproc.c (child_setup): Use xfree instead of free.
1831
1832 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
1833 instead of malloc.
1834 (run_mac_command, closedir): Use `xfree' instead of `free'.
1835
1836 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
1837
1838 * eval.c (error): Use xfree instead of free.
1839
1840 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
1841
1842 * fns.c: Replace `illegal' with `invalid'.
1843 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1844
1845 2000-08-05 Kenichi Handa <handa@etl.go.jp>
1846
1847 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
1848 conversion.
1849
1850 2000-08-04 Noah Friedman <friedman@splode.com>
1851
1852 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
1853 docstring.
1854
1855 2000-08-04 Gerd Moellmann <gerd@gnu.org>
1856
1857 * syntax.c (skip_chars): Fix typo in error message.
1858
1859 2000-08-04 Andreas Schwab <schwab@suse.de>
1860
1861 * m/ia64.h: Moved from s/ia64.h.
1862
1863 2000-08-04 Kenichi Handa <handa@etl.go.jp>
1864
1865 * process.c (read_process_output): Big simplification. Handle
1866 composition and post-read-conversion of coding system correctly.
1867 (send_process): Handle composition correctly.
1868
1869 * callproc.c (Fcall_process): Handle post-read-conversion of
1870 coding system if any.
1871
1872 * coding.c (decode_coding_iso2022): More strict check for handling
1873 single shifting.
1874 (coding_restore_composition): Pay attention to the case that
1875 cmp_data is not set properly (because of invalid code in the
1876 source text).
1877 (run_pre_post_conversion_on_str): Include text properties in the
1878 resulting string.
1879 (decode_coding_string): Set members of coding correctly.
1880
1881 2000-08-03 Gerd Moellmann <gerd@gnu.org>
1882
1883 * s/ia64.h: New file.
1884
1885 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
1886 Use NULL instead of 0 at the end of variable argument list of
1887 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
1888 sizeof (int) < sizeof (void *).
1889
1890 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
1891 of variable argument lists of XtVaGetValues and XtVaSetValues.
1892
1893 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
1894 variable argument lists of XtVaGetValues and XtVaSetValues.
1895
1896 2000-08-02 Gerd Moellmann <gerd@gnu.org>
1897
1898 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
1899 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
1900
1901 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
1902 prototype.
1903
1904 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
1905 in call to Fsingle_key_description.
1906
1907 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
1908 Callers changed.
1909
1910 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
1911
1912 * window.c (display_buffer_reuse_frames): New variable.
1913 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
1914 frames displaying BUFFER.
1915 (syms_of_window): Define Lisp variable
1916 display-buffer-reuse-frames.
1917
1918 2000-08-01 Miles Bader <miles@gnu.org>
1919
1920 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
1921 when to constrain NEW_POS (they were pretty screwed up before).
1922
1923 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
1924
1925 * msdos.c (run_msdos_command): Save and restore the master
1926 environment, for the case that child_setup signals an error.
1927 When mirroring slashes in DOS shell commands, don't fail when
1928 argv[2] has embedded blanks.
1929 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
1930 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
1931 (dos_ttraw): Call mouse_setup_buttons.
1932
1933 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
1934 using alloca; free it after run_msdos_command returns.
1935
1936 2000-07-27 Dave Love <fx@gnu.org>
1937
1938 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
1939 define.
1940 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
1941 working.
1942
1943 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
1944
1945 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
1946
1947 * editfns.c (lisp_time_argument): Fix last change.
1948
1949 2000-07-27 Gerd Moellmann <gerd@gnu.org>
1950
1951 * fns.c (Fdelete): Make it work on vectors and strings in addition
1952 to lists.
1953
1954 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
1955 (syms_of_fns): Initialize new variables.
1956 (sweep_weak_table): Handle weakness `key-or-value' and
1957 `key-and-value'.
1958 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
1959 weakness, with t meaning the same as `key-and-value'.
1960
1961 2000-07-27 Kenichi Handa <handa@etl.go.jp>
1962
1963 * coding.h (struct coding_system): Member safe_charset deleted.
1964
1965 * coding.c (Qsafe_charsets): This variable deleted.
1966 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
1967 variables.
1968 (coding_safe_chars): New function.
1969 (CODING_SAFE_CHAR_P): New macro.
1970 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
1971 checking safe_charsets member of the coding system. Caller
1972 changed.
1973 (detect_coding_iso2022): New local variable safe_chars.
1974 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
1975 safe_charsets member of the coding system.
1976 (decode_coding_iso2022): New local variable safe_chars.
1977 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
1978 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
1979 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
1980 (ENCODE_UNSAFE_CHARACTER): New macro.
1981 (encode_coding_iso2022): New local variable safe_chars. Check
1982 unsafe chars.
1983 (setup_coding_system): Delete the code to initialize
1984 coding->safe_charses
1985 (intersection, find_safe_codings): New functions.
1986 (Ffind_coding_systems_region_internal): New function.
1987 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
1988 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
1989 variable and initialize it.
1990
1991 * fns.c (char_table_ref_and_index): New function.
1992
1993 * lisp.h (char_table_ref_and_index): Add prototype.
1994
1995 2000-07-26 Sam Steingold <sds@gnu.org>
1996
1997 * editfns.c (lisp_time_argument): Added third argument `usec'.
1998 (Ffloat_time): New built-in Lisp function.
1999
2000 2000-07-26 Gerd Moellmann <gerd@gnu.org>
2001
2002 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
2003 for the character code.
2004
2005 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
2006 GNU/Linux.
2007
2008 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
2009 if called for a popup menu.
2010 (xmenu_show): Store help string in widget values.
2011
2012 2000-07-26 Dave Love <fx@gnu.org>
2013
2014 * syswait.h: Move some definitions.
2015 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
2016 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
2017 perspicuous definitions.
2018 (WTERMSIG): Fix bit pattern used.
2019
2020 2000-07-26 Kenichi Handa <handa@etl.go.jp>
2021
2022 * print.c (print_object): If vector printing is truncated, print
2023 "..." to indicate it as well as the case of list printing.
2024
2025 2000-07-25 Gerd Moellmann <gerd@gnu.org>
2026
2027 * xdisp.c (next_element_from_display_vector): Improve comments.
2028
2029 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
2030 for the character code, and the rest for the face id as in 20.x.
2031 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
2032
2033 * window.c (window_display_table): Cleaned up.
2034
2035 * syntax.c (Fforward_word): Add last arg nil in call of
2036 Fconstrain_to_field.
2037
2038 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
2039
2040 * fileio.c (Frename_file) [DOS_NT]: If the file names are
2041 identical but for the letter-case, don't call
2042 barf_or_query_if_file_exists.
2043
2044 2000-07-25 Miles Bader <miles@gnu.org>
2045
2046 * editfns.c (find_field): Honor special `boundary' fields.
2047 (Qboundary): New variables.
2048 (syms_of_editfns): Initialize Qboundary.
2049 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
2050 Use scan_buffer instead of find_before_next_newline, because it
2051 allows us to detect the boundary case where there's a newline at
2052 the search limit.
2053 * lisp.h (Fconstrain_to_field): Update external declaration.
2054
2055 2000-07-24 Gerd Moellmann <gerd@gnu.org>
2056
2057 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
2058 if that is nil.
2059
2060 2000-07-24 Dave Love <fx@gnu.org>
2061
2062 * s/sunos4-0.h, s/sol2.h:
2063 (LIBS_TERMCAP): Move from m/sparc.h.
2064
2065 * m/sparc.h (TERMINFO): Moved to system files (probably only
2066 relevant for sunos4 judging by its vintage).
2067 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
2068 __arch64__.
2069
2070 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
2071
2072 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
2073 name to single_keymap_panes.
2074
2075 2000-07-24 Andreas Schwab <schwab@suse.de>
2076
2077 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
2078
2079 2000-07-24 Gerd Moellmann <gerd@gnu.org>
2080
2081 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
2082 parameters instead of using int parameters. Expect FN to accept
2083 EMACS_INT parameters.
2084 (display_echo_area, resize_echo_area_axactly, current_message)
2085 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
2086 with new argument list.
2087 (resize_mini_window_1): New callback function.
2088 (current_message_1, truncate_message_1, set_message_1): Change
2089 parameter lists to the new format expected by
2090 with_echo_area_buffer.
2091
2092 2000-07-24 Kenichi Handa <handa@etl.go.jp>
2093
2094 * fontset.c (fontset_ref): Remove INLINE declaration.
2095 (fontset_ref_via_base): Likewise.
2096 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
2097 to downcase.
2098
2099 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
2100
2101 * msdos.c (IT_note_mouse_highlight): Process overlays in the
2102 correct order of priority. If help echo was found in an overlay,
2103 use that overlay as the object in which the help echo was found.
2104
2105 2000-07-22 Miles Bader <miles@gnu.org>
2106
2107 * textprop.c (Fprevious_single_char_property_change): The initial
2108 property value should be from the position preceding POSITION, not
2109 following it.
2110
2111 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
2112
2113 * coding.c (syms_of_coding): Doc fix for
2114 inhibit-iso-escape-detection.
2115
2116 2000-07-21 Gerd Moellmann <gerd@gnu.org>
2117
2118 * xterm.c (note_mouse_highlight): Process overlays in the right
2119 order of priority.
2120
2121 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
2122
2123 * xterm.c (note_mouse_highlight): If help-echo was found in an
2124 overlay, use that overlay as the object in which the help was
2125 found.
2126
2127 * window.c (foreach_window_1): Fix typo reversing an if-condition.
2128
2129 * window.c (foreach_window): Instead of a fake variable argument
2130 list, take one USER_DATA argument.
2131 (foreach_window_1): Likewise, and call callback functions with two
2132 args, the window and USER_DATA.
2133 (struct check_window_data): New struct.
2134 (check_window_containing): Use it.
2135 (window_from_coordinates): Set up a struct check_window_data for
2136 foreach_window.
2137 (add_window_to_list, freeze_window_start): Change parameters
2138 according to new calling convention.
2139
2140 * window.h (foreach_window): Change prototype.
2141
2142 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
2143
2144 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
2145
2146 * xmenu.c (menu_help_callback): Call show_help_echo with
2147 additional arguments OBJECT and POS.
2148
2149 2000-07-21 Kenichi Handa <handa@etl.go.jp>
2150
2151 * data.c (Faset): Allow storing any multibyte character in a
2152 string. Convert unibyte string to multibyte if necessary.
2153
2154 * xfns.c (x_encode_text): New function.
2155 (x_set_name): Use x_encode_text.
2156 (x_set_title): Likewise.
2157
2158 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
2159
2160 * xterm.h (x_encode_text): Add prototype.
2161
2162 2000-07-20 Dave Love <fx@gnu.org>
2163
2164 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
2165 xfree, not free.
2166
2167 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
2168
2169 * msdos.c (help_echo_window): New variable.
2170 (syms_of_msdos): Initialize and staticpro it.
2171 (IT_note_mode_line_highlight): Set help_echo_window.
2172 (IT_note_mouse_highlight): Ditto.
2173 (dos_rawgetc): Store help_echo_window in the second event produced
2174 for HELP_EVENTs.
2175
2176 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
2177 Record the object that generated the help echo and the position of
2178 that object in help_echo_object and help_echo_pos. Record that
2179 some glyphs in a row are displayed in mouse-face.
2180 (IT_update_begin): Don't clear mouse highlight unless one of the
2181 enabled glyph rows is marked as being displayed in mouse-face.
2182 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
2183 and position recorded in help_echo_object and help_echo_pos to the
2184 event queue.
2185 (IT_menu_display): Accept a new argument PN: the pane number of
2186 the current menu pane. Record the pane number and the item
2187 number of the item which has associated help string.
2188 (XMenuActivate): Update the prototype for help_callback in
2189 function declaration. Call IT_menu_display with the current menu
2190 pane number as an additional argument. Call help_callback with
2191 two additional arguments: the pane number and the item number of
2192 the menu item associated with the help text.
2193 (help_echo_object, help_echo_pos): New variables.
2194 (syms_of_msdos): Initialize them and staticpro help_echo_object.
2195
2196 * msdos.h (XMenuActivate): Update prototype.
2197
2198 2000-07-19 Gerd Moellmann <gerd@gnu.org>
2199
2200 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
2201 Add some more prototypes.
2202
2203 * xterm.c, xterm.h: Add some more prototypes.
2204
2205 * lisp.h (Fnext_single_char_property_change): Add prototype.
2206
2207 * dispnew.c (direct_output_for_insert): Remove confusing
2208 outer local variable mouse_face_overwritten_p.
2209 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
2210
2211 * alloc.c (allocate_string_data): Don't copy old string contents.
2212
2213 2000-07-19 Kenichi Handa <handa@etl.go.jp>
2214
2215 * coding.c (code_convert_region): Delete text properties before
2216 shrinking the conversion region.
2217
2218 2000-07-18 Gerd Moellmann <gerd@gnu.org>
2219
2220 * dispnew.c (update_text_area): Write the whole row if it
2221 has mouse-face in it.
2222
2223 * xfaces.c (face-alternative-font-family-alist): Remove
2224 DEFVAR_LISP; staticpro instead.
2225
2226 * xmenu.c (menu_help_callback): Call show_help_echo with
2227 new arguments.
2228
2229 * keyboard.c (show_help_echo): Add parameter WINDOW.
2230 (read_char): Call show_help_echo with window extracted from Lisp
2231 help event.
2232 (gen_help_event): Add parameter WINDOW.
2233
2234 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
2235
2236 * xterm.c (help_echo_window): New variable.
2237 (note_mouse_highlight, note_tool_bar_highlight): Set
2238 help_echo_window.
2239 (XTread_socket): Pass help_echo_window to gen_help_event.
2240 (syms_of_xterm): Initialize and staticpro help_echo_window.
2241
2242 2000-07-18 Dave Love <fx@gnu.org>
2243
2244 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
2245 systime.h.
2246
2247 2000-07-18 Gerd Moellmann <gerd@gnu.org>
2248
2249 * alloc.c (allocate_string_data): If string had already data
2250 assigned, copy old contents to new string data.
2251
2252 * coding.c (syms_of_coding): Fix typo in spelling of variable
2253 `inhibit-iso-escape-detection'.
2254
2255 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
2256
2257 * Makefile.in: Add dependencies on dispextern.h.
2258 (alloca.o): Don't define malloc and define EMACS_FREE instead of
2259 `free'; both can conflict with system header files.
2260
2261 2000-07-18 Kenichi Handa <handa@etl.go.jp>
2262
2263 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
2264 undefined.
2265
2266 2000-07-18 Dave Love <fx@gnu.org>
2267
2268 * window.c (Fwindow_list): Declare arg `window'.
2269
2270 2000-07-18 Kenichi Handa <handa@etl.go.jp>
2271
2272 * coding.c (setup_coding_system): Don't override the explicitly
2273 specified designations.
2274
2275 2000-07-15 Miles Bader <miles@gnu.org>
2276
2277 * editfns.c (char_property_eq, char_property_stickiness): Renamed
2278 from `text_property_eq' and `text_property_stickiness', respectively.
2279 (find_field, Fconstrain_to_field, char_property_eq)
2280 (char_property_stickiness): Changed to call char-property functions
2281 instead of text-property-only ones.
2282
2283 * textprop.c (Fnext_single_char_property_change): Made a subr (was
2284 `next_single_char_property_change'). Do more error checking, and
2285 cleanup limit behavior.
2286 (Fprevious_single_char_property_change): New function.
2287 (syms_of_textprop): Initialize new subrs.
2288
2289 * xdisp.c (display_prop_end, invisible_text_between_p):
2290 Call Fnext_single_char_property_change instead of
2291 next_single_char_property_change.
2292
2293 2000-07-15 Jason Rumney <jasonr@gnu.org>
2294
2295 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
2296 after menu is finished with.
2297 (add_menu_item): Only consider wv->title as a menu title.
2298 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
2299
2300 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
2301 null title.
2302 (FONT_REGEXP): Remove unused macro, and its sub-components.
2303 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
2304
2305 * w32term.c (help_echo_object, help_echo_pos): New variables.
2306 (note_mode_line_highlight): Store additional information about the
2307 help-echo in help_echo_object and help_echo_pos. Check both
2308 `local-map' and `keymap' properties for changing the cursor
2309 (note_mouse_highlight): Store additional information about the
2310 help-echo in help_echo_object and help_echo_pos.
2311 (note_tool_bar_highlight): Set help_echo_object to nil and
2312 help_echo_pos to -1.
2313 (w32_read_socket): Use gen_help_event instead of filling
2314 input_events manually.
2315 (syms_of_w32term): Staticpro help_echo_object.
2316 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
2317 set, arrange for a mouse-highlight redisplay in
2318 XTframe_up_to_date.
2319 (x_clear_mouse_face): New function.
2320 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
2321 (x_update_window_begin): No need to turn off the mouse
2322 highlight here.
2323 (show_mouse_face): Set the mouse_face_p flag of glyph rows
2324 depending on whether they contain glyphs highlighted in
2325 mouse-face.
2326 (x_fill_stretch_glyph_string): Consume runs of stretch
2327 glyphs instead of a single one.
2328 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
2329 with new argument list.
2330 (x_set_glyph_string_gc): Make sure the face's GC is valid.
2331 (x_append_glyph, x_append_composite_glyph)
2332 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
2333 changes in struct glyph starting 1999-12-27. See comments for
2334 xterm.c on 2000-07-05.
2335
2336 2000-07-14 Sam Steingold <sds@gnu.org>
2337
2338 * xfaces.c (realize_x_face): Fix the last patch:
2339 check `default_face' before dereferencing.
2340
2341 2000-07-14 Dave Love <fx@gnu.org>
2342
2343 * syntax.c (back_comment): Add null default in switch (for pcc).
2344
2345 2000-07-14 Kenichi Handa <handa@etl.go.jp>
2346
2347 * xfaces.c (realize_x_face): Make fontset using the base of the
2348 default_face's fontset, not using the default fontset.
2349
2350 * coding.c (inhibit_iso_escape_detection): New variable.
2351 (syms_of_coding): Make it a Lisp variable.
2352 (detect_coding_iso2022): If inhibit_iso_escape_detection is
2353 nonzero, ignore ISO2022's escape sequence.
2354
2355 2000-07-14 Gerd Moellmann <gerd@gnu.org>
2356
2357 * alloca.c (malloc) [emacs]: Define as xmalloc.
2358
2359 * xfns.c (Fx_show_tip): If frame parameters contain a position,
2360 use that instead of the mouse position. Add parameters DX and DY.
2361
2362 * dispextern.h (Fx_show_tip): Adjust number of parameters
2363 in prototype.
2364
2365 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
2366 if HELP is a function, call it with OBJECT and POS as parameters
2367 to get the help to display.
2368 (gen_help_event, kbd_buffer_store_help_event): New functions.
2369 (kbd_buffer_get_event): Construct the Lisp help-event differently.
2370 (read_char): Call show_help_echo with new parameters.
2371
2372 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
2373 Add prototypes.
2374
2375 * xterm.c (help_echo_object, help_echo_pos): New variables.
2376 (note_mode_line_highlight): Store additional information about the
2377 help-echo in help_echo_object and help_echo_pos. Check both
2378 `local-map' and `keymap' properties for changing the cursor
2379 (note_mouse_highlight): Store additional information about the
2380 help-echo in help_echo_object and help_echo_pos.
2381 (note_tool_bar_highlight): Set help_echo_object to nil and
2382 help_echo_pos to -1.
2383 (XTread_socket): Use gen_help_event instead of filling
2384 input_events manually.
2385 (syms_of_xterm): Staticpro help_echo_object.
2386
2387 * xmenu.c (menu_highlight_callback): Use
2388 kbd_buffer_store_help_event instead of setting up and input_event
2389 structure manually.
2390
2391 * xdisp.c (eval_form): GCPRO argument sexpr.
2392 (call_function): New function.
2393 (handle_single_display_prop): Use call_function and FUNCTIONP
2394 instead of checking whether if font_height is a symbol and
2395 using eval_form.
2396
2397 * eval.c (internal_condition_case_2): New function.
2398
2399 * lisp.h (FUNCTIONP): New macro.
2400 (internal_condition_case_2, call_function): Add prototypes.
2401
2402 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
2403 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
2404 Always set `arg' member of input_events.
2405 (construct_menu_click): Unused function removed.
2406
2407 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
2408
2409 * w32term.c (construct_mouse_click, construct_mouse_wheel)
2410 (construct_drag_n_drop, x_scroll_bar_handle_click)
2411 (w32_read_socket): Always set `arg' member of input_events.
2412
2413 * keyboard.c (show_help_echo): Use eval_form. Add comment.
2414
2415 * lisp.h (eval_form): Add prototype.
2416
2417 * xdisp.c (eval_form): Make it externally visible.
2418
2419 2000-07-13 Gerd Moellmann <gerd@gnu.org>
2420
2421 * xterm.c (x_handle_tool_bar_click): Store the frame in the
2422 frame_or_window slot of TOOL_BAR_EVENT input events instead of
2423 consing. For prefix events, store the frame in the `arg' slot of
2424 the event, otherwise store the key there.
2425 (XTread_socket): Instead of consing, use the frame_or_window slot
2426 of HELP_EVENTs for the frame, and the `arg' slot for the help
2427 string.
2428
2429 * xmenu.c (menu_highlight_callback): Store help string in the
2430 `arg' member of the input event; don't cons.
2431 (menubar_selection_callback): Use the `arg' slot of input events
2432 to queue additional information, instead of consing.
2433
2434 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
2435
2436 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
2437 TOOL_BAR_EVENTs.
2438 (w32_read_socket): Adapt to changes in HELP_EVENTs.
2439
2440 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
2441 input events to queue additional information, instead of consing.
2442
2443 * keyboard.c (kbd_buffer_gcpro): Renamed from
2444 kbd_buffer_frame_or_window. Now used for all Lisp objects
2445 referenced from the input queue.
2446 (kbd_buffer_store_event): Always use structure assignment for
2447 copying input events. Record all Lisp objects referenced from
2448 events in kbd_buffer_gcpro.
2449 (kbd_buffer_get_event): Construct Lisp `help-echo' events
2450 differently from input events. Test for prefix menu_bar_events
2451 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
2452 event in kbd_buffer_gcpro to nil.
2453 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
2454 frame_or_window is equal to its arg member as prefix events.
2455 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
2456 used by an input event to nil.
2457 (init_keyboard): Use two times the size of the input queue
2458 for kbd_buffer_gcpro.
2459 (syms_of_keyboard): Likewise.
2460
2461 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
2462 USER_SIGNAL_EVENT.
2463
2464 * termhooks.h (struct input_event): Add member `arg'.
2465 (MENU_BAR_EVENT): Renamed from menu_bar_event.
2466 (USER_SIGNAL_EVENT): Renamed from user_signal.
2467
2468 * xfaces.c (ASET): Remove definition.
2469
2470 * lisp.h (AREF, ASET, ASIZE): New macros.
2471
2472 * fontset.c (AREF, ASIZE): Remove definitions.
2473
2474 * fns.c (AREF): Remove definition.
2475
2476 * composite.c (AREF): Remove definition.
2477
2478 2000-07-12 Gerd Moellmann <gerd@gnu.org>
2479
2480 * dispnew.c (redraw_overlapped_rows): Add missing local.
2481 (scrolling_window): Remove debug code.
2482
2483 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
2484 Before scrolling, turn off a mouse-highlight in the window
2485 being scrolled.
2486
2487 * xterm.c (x_update_window_end): Add parameter
2488 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
2489 redisplay in XTframe_up_to_date.
2490 (x_clear_mouse_face): New function.
2491 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
2492
2493 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
2494 current glyph row.
2495 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
2496 it when any row is written to that contains glyphs highlighted in
2497 mouse-face.
2498 (update_window): Call the window update end hook with new
2499 parameter MOUSE_FACE_OVERWRITTEN_P.
2500 (direct_output_for_insert): Give up if row contains mouse-face.
2501
2502 * dispextern.h (struct redisplay_interface): Add parameter
2503 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
2504 (clear_mouse_face): New function pointer member.
2505
2506 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
2507
2508 * syntax.c (back_comment): Use one switch rather than a few `if's.
2509 Obey open_paren_in_column_0_is_defun_start.
2510 When reverting to the `slow' method, try to nicely handle the case
2511 of nested comments by checking that the comment-starter we found
2512 does indeed match the comment-ender.
2513 (scan_sexps_forward, scan_sexps_forward):
2514 Ignore excessive opening parenthesis rather than throwing an error.
2515
2516 2000-07-11 Gerd Moellmann <gerd@gnu.org>
2517
2518 * doc.c (Fsubstitute_command_keys): Handle case that a GC
2519 in Fwhere_is_internal or get_keymap_1 relocates string contents.
2520
2521 * dispnew.c (direct_output_forward_char): Give up if currently
2522 displaying a message instead of the minibuffer contents.
2523
2524 * xterm.c (x_update_window_begin): No need to turn off the mouse
2525 highlight here.
2526 (show_mouse_face): Set the mouse_face_p flag of glyph rows
2527 depending on whether they contain glyphs highlighted in
2528 mouse-face.
2529
2530 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
2531 compare the mouse_face_p flags of both rows.
2532
2533 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
2534
2535 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
2536
2537 * keyboard.c (show_help_echo): Accept additional parameter
2538 ok_to_overwrite_keystroke_echo.
2539 (read_char): Call show_help_echo with a zero
2540 ok_to_overwrite_keystroke_echo argument.
2541 * keyboard.h (show_help_echo): Update prototype of
2542 show_help_echo.
2543 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
2544 ok_to_overwrite_keystroke_echo argument.
2545 * w32menu.c (w32_menu_display_help): Call show_help_echo with
2546 non-zero ok_to_overwrite_keystroke_echo argument.
2547
2548 2000-07-10 Gerd Moellmann <gerd@gnu.org>
2549
2550 * xdisp.c (try_window_id): If changes are all below what is
2551 displayed in the window, and point is in the window, we still
2552 might have to find point on the display.
2553
2554 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
2555 glyphs instead of a single one.
2556 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
2557 with new argument list.
2558 (x_set_glyph_string_gc): Make sure the face's GC is valid.
2559
2560 * keymap.c (get_keymap_1): Add comment that this function can GC.
2561 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
2562 comment that functions can GC.
2563 (Fset_keymap_parent): GCPRO arg KEYMAP.
2564
2565 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
2566
2567 * msdos.c (XMenuActivate): After exiting the menu, restore the
2568 echo area message and erase it.
2569
2570 2000-07-10 Kenichi Handa <handa@etl.go.jp>
2571
2572 * fontset.c (Ffontset_info): Make the return value more compatible
2573 with that of Emacs 20.
2574
2575 2000-07-07 Gerd Moellmann <gerd@gnu.org>
2576
2577 * eval.c (Fsignal): Handle case that backtrace_list is null.
2578
2579 2000-07-07 Kenichi Handa <handa@etl.go.jp>
2580
2581 * ccl.c (Fccl_execute): Typo fixed.
2582
2583 2000-07-06 Gerd Moellmann <gerd@gnu.org>
2584
2585 * window.c (window_loop): Add missing gcpro1 local variable.
2586
2587 * window.c (Fwindow_list): Reverse list at the end.
2588 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
2589 means allow windows on OWINDOW's frame, only.
2590 (window_loop): Simplified; use Fwindow_list.
2591
2592 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
2593
2594 2000-07-05 Gerd Moellmann <gerd@gnu.org>
2595
2596 * xterm.c (XTread_socket): Increment handling_signal at the start,
2597 decrement it at the end.
2598
2599 * eval.c (handling_signal): New variable.
2600 (Fsignal): Abort if handling_signal is non-zero.
2601
2602 * lisp.h (handling_signal): External declaration.
2603
2604 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
2605
2606 2000-07-05 Ken Raeburn <raeburn@gnu.org>
2607
2608 Sound support for NetBSD through "Linux emulation" support:
2609 * config.in (HAVE_SOUNDCARD_H): Undef.
2610 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
2611 * Makefile.in (LIBSOUND): New variable.
2612 (LIBES): Include it.
2613 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
2614 <soundcard.h>.
2615 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
2616 elsewhere.
2617 (vox_open): Use DEFAULT_SOUND_DEVICE.
2618 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
2619
2620 2000-07-05 Gerd Moellmann <gerd@gnu.org>
2621
2622 * print.c (print_error_message): If Vsignaling_function is set,
2623 show it in *Messages*.
2624
2625 * lisp.h (Vsignaling_function): External declaration.
2626
2627 * eval.c (Vsignaling_function): New variable.
2628 (Fsignal): Compute it.
2629 (syms_of_eval): Staticpro it.
2630
2631 2000-07-05 Dave Love <fx@gnu.org>
2632
2633 * syswait.h: Use the autoconf recommended approach. Old code
2634 #if'd out in case we need to revert.
2635
2636 * config.in (HAVE_SYS_WAIT_H): Added.
2637
2638 2000-07-05 Andrew Innes <andrewi@gnu.org>
2639
2640 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
2641 when non-NULL instead of __morecore, to take account of buffer
2642 memory. This also solves a problem with spurious memory warnings
2643 on Windows.
2644
2645 * ralloc.c: Make real_morecore non-static.
2646
2647 * eval.c (internal_condition_case): Comment out abort if
2648 interrupt_input_blocked is not zero.
2649
2650 * makefile.nt: Add support for `bootstrap' and related targets.
2651 Include minimal debug info in emacs.exe in release build.
2652 Remove all dependencies on lisp.h, and fixup some others.
2653
2654 * w32.c (init_environment): Install code from 20.7 for providing
2655 default values for environment variables, based on the
2656 executable's own location.
2657 (map_w32_filename): Handle filenames that are longer than
2658 MAX_PATH.
2659 (sys_socket): Install socket inheritance bug fix from 20.7.
2660
2661 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
2662 here via blockinput.h).
2663
2664 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
2665
2666 * w32menu.c (w32_menu_display_help):
2667 * xmenu.c (menu_help_callback): Use show_help_echo.
2668
2669 * keyboard.h (show_help_echo): Declare.
2670
2671 * keyboard.c (show_help_echo): New function, extracted from read_char.
2672 Feval its `msg' argument if it's a cons cell.
2673 (read_char): Use it.
2674 (follow_key): Pass `autoload' to get_keyelt.
2675
2676 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
2677 (note_tool_bar_highlight, XTread_socket):
2678 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
2679 (dos_rawgetc):
2680 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
2681 (note_tool_bar_highlight, w32_read_socket):
2682 Do not gratuitously ignore non-string `help-echo' properties.
2683
2684 2000-07-05 Gerd Moellmann <gerd@gnu.org>
2685
2686 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
2687
2688 * window.c (delete_all_subwindows): Reset Vwindow_list.
2689
2690 * xterm.c (x_append_glyph, x_append_composite_glyph)
2691 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
2692 changes in struct glyph starting 1999-12-27. Some bit-fields of
2693 struct glyph were not set, which made glyphs unequal when compared
2694 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
2695 effects were the result. This also depended on the contents of
2696 memory returned by xmalloc. If flickering happens again, activate
2697 the code in clear_glyph_row that's in #if 0. If the flickering is
2698 gone with that, chances are that it is caused by something
2699 similar.
2700
2701 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
2702
2703 * dispextern.h: Add some comments.
2704
2705 * window.c (add_window_to_list): Add parameter LIST.
2706 (window_list): Order list so that, for each frame, windows are
2707 in canonical order, and so that frames appear in the list in
2708 the order given by Vframe_list.
2709 (next_window): Reverse the handling of NEXT_P.
2710
2711 2000-07-04 Gerd Moellmann <gerd@gnu.org>
2712
2713 * window.c (Vwindow_list): New variable.
2714 (make_window, delete_window): Set Vwindow_list to nil.
2715 (check_window_containing): New function.
2716 (window_from_coordinates): Rewritten.
2717 (add_window_to_list, window_list, candidate_window_p)
2718 (decode_next_window_args, next_window): New functions.
2719 (Fnext_window, Fprevious_window): Rewritten in terms of
2720 next_window.
2721 (Fwindow_list): New function.
2722 (Fother_window): Cleaned up.
2723 (foreach_window): Add a longer "variable argument list". Let
2724 callback function return 0 to indicate that cycling over windows
2725 should stop.
2726 (foreach_window_1): Likewise.
2727 (freeze_window_start): Return int.
2728 (init_window): New function.
2729 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
2730
2731 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
2732 input_event with bzero.
2733 (main): Call init_window.
2734
2735 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
2736 a menu filter.
2737
2738 2000-07-04 Kenichi Handa <handa@etl.go.jp>
2739
2740 * composite.h (make_composition_value_copy): Extern it.
2741
2742 * composite.c (make_composition_value_copy): New function.
2743
2744 * editfns.c (Fformat): While copying text properties, make each
2745 composition property value a copy.
2746
2747 * fns.c (concat): While copying text properties, make each
2748 composition property value a copy.
2749
2750 2000-07-03 Gerd Moellmann <gerd@gnu.org>
2751
2752 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
2753
2754 * fns.c (sweep_weak_table): Mark only objects that are not
2755 marked already.
2756
2757 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
2758 include those frames as candidates which have their focus
2759 redirected to the minibuffer frame.
2760
2761 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
2762
2763 * fns.c (Fputhash): Return `value' rather than nil.
2764
2765 2000-06-30 Gerd Moellmann <gerd@gnu.org>
2766
2767 * frame.c (next_frame): Don't check focus redirection in case
2768 MINIBUF is a window. Doing so excludes frames using MINIBUF
2769 unless their focus is redirected, which contradicts the
2770 specification of next-frame, and leads to infinite loops in
2771 certain situations when cycling through windows with next-window.
2772
2773 2000-06-30 Kenichi Handa <handa@etl.go.jp>
2774
2775 * coding.c (code_convert_region): Even if the length of text is
2776 zero, try to convert it if coding->type is coding_type_ccl.
2777 (decode_coding_string, encode_coding_string): Likewise.
2778
2779 2000-06-28 Gerd Moellmann <gerd@gnu.org>
2780
2781 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
2782 the display if windows_or_buffers_changed.
2783
2784 * dispnew.c (struct row_entry): New structure.
2785 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
2786 (row_table_size, old_lines, new_lines, old_lines_size)
2787 (new_lines_size, run_pool, runs_size, runs): New variables.
2788 (add_row_entry): New function.
2789 (scrolling_window): Use data structures allocated with xmalloc and
2790 held in global variables, instead of allocating them with alloca and
2791 holding them in local variables. Use a larger hash table whose
2792 size depends on glyph matrix sizes. Don't use bzero to clear the
2793 hash table; instead, clear used slots only.
2794
2795 * fns.c (next_almost_prime): Make it externally visible.
2796
2797 * lisp.h (next_almost_prime): Add prototype.
2798
2799 * s/isc4-0.h (sigunblock): Define.
2800
2801 * s/sco5.h (sigunblock): Define.
2802
2803 2000-06-27 Dave Love <fx@gnu.org>
2804
2805 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
2806 (moved to osf5-0.h).
2807 [!NOT_C_CODE]: Protect string.h stuff.
2808
2809 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
2810 (sys_siglist, NSIG): Definitions moved here from osf1.h.
2811
2812 2000-06-27 Gerd Moellmann <gerd@gnu.org>
2813
2814 * xdisp.c (resize_mini_window): Subtract the extra line spacing
2815 below the last line from the needed window height.
2816
2817 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
2818
2819 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
2820 (Fwidget_get): Use it.
2821 (syms_of_fns): Defsubr it.
2822
2823 2000-06-26 Gerd Moellmann <gerd@gnu.org>
2824
2825 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
2826 display info for XIM.
2827 (xim_open_dpy): Likewise.
2828 (xim_close_dpy): Don't free the display info's XIM.
2829
2830 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
2831
2832 * config.in (USE_XIM): New define.
2833
2834 * keymap.c (get_keyelt): For menu-items containing a `:filter
2835 FILTER', apply FILTER to the menu-item's definition to get the
2836 real definition to use.
2837
2838 * lisp.h (QCfilter): External declaration.
2839
2840 * xfns.c (Fimage_size): New function.
2841 (syms_of_xfns): Defsubr it.
2842
2843 2000-06-26 Andreas Schwab <schwab@suse.de>
2844
2845 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
2846 Fstring_as_unibyte.
2847
2848 2000-06-25 Dave Love <fx@gnu.org>
2849
2850 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
2851 tgetnum.
2852
2853 * Makefile.in (blockinput.h): Depend on atimer.h.
2854 (atimer.h): Depend on systime.h.
2855
2856 * blockinput.h: Protect against multiple inclusion. Include
2857 atimer.h.
2858
2859 * atimer.h: Protect against multiple inclusion. Include
2860 systime.h.
2861
2862 * lisp.h (swap_in_global_binding): Declare.
2863
2864 2000-06-24 Ken Raeburn <raeburn@gnu.org>
2865
2866 * process.c (Fopen_network_stream): Turn off atimers for duration
2867 of call to connect. (Patch from Gerd.)
2868
2869 2000-06-23 Dave Love <fx@gnu.org>
2870
2871 * ralloc.c: Maybe include unistd.h
2872
2873 * emacs.c (setgrp): Undefine before defining.
2874 (malloc_warning, set_time_zone_rule, index): Prototype.
2875
2876 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
2877 HAVE_STRUCT_TIMEZONE.
2878
2879 * s/osf1.h: Move string.h hack here from alpha.h and make it
2880 conditional.
2881 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
2882 _XOPEN_SOURCE.
2883 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
2884 (SOCKLEN_TYPE): Don't define.
2885
2886 * m/alpha.h: Remove string.h hack.
2887
2888 * s/osf5-0.h: New file.
2889
2890 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
2891 include time.h, done by systime.h.
2892 [__FreeBSD__]: Remove redundant includes.
2893
2894 * callproc.c (setpgrp): Undefine before defining.
2895 (delete_temp_file): Return Qnil to avoid warning.
2896
2897 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
2898
2899 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
2900 HAVE_X_WINDOWS.
2901
2902 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
2903
2904 * composite.h (compose_text): Declare.
2905
2906 * xterm.c: Don't include sys/types.h unconditionally. Don't
2907 protect its inclusion with !USG (following xmenu.c).
2908
2909 2000-06-23 Gerd Moellmann <gerd@gnu.org>
2910
2911 * xfns.c (x_create_tip_frame): Initialize frame's colors like
2912 in x_create_frame.
2913
2914 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
2915
2916 * coding.c (decode_eol_post_ccl): Special handling for undecided
2917 and inconsistent EOL types.
2918
2919 2000-06-22 Gerd Moellmann <gerd@gnu.org>
2920
2921 * xrdb.c (x_load_resources): Add default resource for scroll bar's
2922 trough color and main window's background color.
2923
2924 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
2925 differently.
2926
2927 * xterm.h (Xt_app_con): External declaration.
2928
2929 * widget.c (EmacsFrameRealize): Fix typo.
2930
2931 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
2932
2933 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
2934 (handle_invisible_prop): Record the start of invisible text in
2935 it->add_overlay_start.
2936 (struct overlay_entry): Add member `overlay'.
2937 (handle_overlay_change): Simplify.
2938 (next_overlay_string): After having processed overlay strings at the
2939 end of the buffer, record that fact in
2940 it->overlay_strings_at_end_processed_p.
2941 (compare_overlay_entries): If before- and after-strings come
2942 from the same overlay, let before-strings come first.
2943 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
2944 (load_overlay_strings): Take it->add_overlay_start into account
2945 when adding overlay strings.
2946
2947 * dispextern.h (struct it): Add member add_overlay_start.
2948
2949 2000-06-22 Dave Love <fx@gnu.org>
2950
2951 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
2952
2953 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
2954
2955 2000-06-22 Kenichi Handa <handa@etl.go.jp>
2956
2957 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
2958 is greater than 0.
2959
2960 2000-06-21 Dave Love <fx@gnu.org>
2961
2962 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
2963
2964 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
2965
2966 * syntax.c (back_comment): Simplify string-parity counting (with
2967 the added benefit of handling multiple string-styles as long as
2968 they are not intertwined).
2969 Jump to the slow code as soon as a comment starter is found in
2970 a "string_lossage" position. Fixes the case: " /* " /* " */.
2971
2972 2000-06-21 Dave Love <fx@gnu.org>
2973
2974 * Makefile.in: Use GETLOADAVG_LIBS.
2975
2976 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
2977 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
2978
2979 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
2980
2981 * syntax.c (describe_syntax): Recognize the `n'estable bit.
2982 (Fforward_comment, scan_lists):
2983 Check the comstyle of single-char comment-starters.
2984 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
2985 we're just at the beginning of the comment (f.ex with (*) ... (*)).
2986 Check the comstyle of single-char comment-starters.
2987 Clarify control-flow around the Scomment case.
2988
2989 2000-06-20 Dave Love <fx@gnu.org>
2990
2991 * fns.c (make_hash_table, maybe_resize_hash_table):
2992 Cast arg of next_almost_prime.
2993
2994 * tparam.c [emacs]: Include lisp.h.
2995
2996 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
2997 and unistd.h.
2998
2999 2000-06-20 Gerd Moellmann <gerd@gnu.org>
3000
3001 * keyboard.c (adjust_point_for_property): Check if display
3002 property should be treated as intangible by looking at its
3003 value.
3004
3005 * xdisp.c (single_display_prop_intangible_p)
3006 (display_prop_intangible_p): New functions.
3007
3008 * dispextern.h (display_prop_intangible_p): Add prototype.
3009
3010 * xdisp.c (dump_glyph_row): Show type of glyph->object.
3011
3012 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
3013 argument to sigprocmask.
3014
3015 * s/sco5.h (sigblock): Redefined to pass a pointer as second
3016 argument to sigprocmask.
3017
3018 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
3019 sigprocmask_set, and pass a pointer to it to sigprocmask.
3020
3021 * sysdep.c (sigprocmask_set): New variable.
3022
3023 * fileio.c (make_temp_name): Don't use `%s' in string passed to
3024 report_file_error.
3025
3026 2000-06-20 Sam Steingold <sds@gnu.org>
3027
3028 * xrdb.c: Don't declare xmalloc, xrealloc.
3029
3030 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
3031
3032 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
3033 (re_comp): Cast gettext return value to avoid complaints when
3034 !HAVE_LIBINTL.
3035
3036 2000-06-20 Dave Love <fx@gnu.org>
3037
3038 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
3039 HAVE_GETTIMEOFDAY.
3040
3041 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
3042
3043 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
3044
3045 * m/alpha.h: Don't declare xmalloc, xrealloc.
3046
3047 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
3048
3049 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
3050
3051 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
3052
3053 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
3054 HAVE_GETWD.
3055
3056 * keyboard.h (poll_for_input_1): Declare.
3057
3058 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
3059
3060 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
3061
3062 * doprnt.c: Don't declare xmalloc, xrealloc.
3063
3064 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
3065 (getenv, ctime, getwd): Removed.
3066 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
3067
3068 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
3069 x_set_tool_bar_lines.
3070
3071 * config.in: Add HAVE_GETWD. Move some definitions above
3072 machine/system includes.
3073
3074 2000-06-20 Kenichi Handa <handa@etl.go.jp>
3075
3076 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
3077
3078 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
3079 contain information about ENCODING.
3080
3081 * fontset.c (FONTSET_ASCII): Use the first element of char table
3082 for an ASCII font, not defalt slot.
3083 (fontset_ref_via_base): If FONTSET doesn't contain information for
3084 C, try the default fontset.
3085 (make_fontset): Don't copy the default fontset.
3086 (fontset_font_pattern): Likewise.
3087 (accumulate_font_info): If ELT is nil, use the corresponding
3088 element in the default fontset.
3089
3090 2000-06-19 Dave Love <fx@gnu.org>
3091
3092 * syntax.c (Fparse_partial_sexp): Doc fix.
3093
3094 * regex.h: Test PROTOTYPES as well as __STDC__.
3095
3096 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
3097 errno, strerror. Put text after #endif in comment.
3098
3099 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
3100 pcc).
3101
3102 * xterm.c (x_frame_of_widget): Likewise.
3103
3104 2000-06-19 Gerd Moellmann <gerd@gnu.org>
3105
3106 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
3107 to Vfundamental_mode_abbrev_table.
3108
3109 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
3110 bogus objects are marked. This slows down GC by ~80 percent, but
3111 it might be worth trying when debugging GC-related problems.
3112 This feature requires conservative stack marking to be enabled.
3113
3114 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
3115 returns XLookupChars, reset `modifiers' to zero.
3116
3117 2000-06-19 Dave Love <fx@gnu.org>
3118
3119 * mktime.c: Unprotoized.
3120
3121 2000-06-19 Richard Stallman <rms@gnu.org>
3122
3123 * data.c (set_internal): If variable is frame-local,
3124 store the new value immediately into the frame parameter alist.
3125
3126 2000-06-19 Ken Raeburn <raeburn@gnu.org>
3127
3128 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
3129 in the custom handler pointer.
3130
3131 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
3132 value, or checks for CHAR_META can fail when Lisp_Object is a
3133 union type.
3134 * keymap.c (get_keyelt): Likewise.
3135
3136 2000-06-19 Kenichi Handa <handa@etl.go.jp>
3137
3138 * ccl.h (struct ccl_program): New member eol_type.
3139 (struct ccl_spec): New member cr_carryover.
3140
3141 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
3142 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
3143
3144 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
3145 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
3146 (decode_eol_post_ccl): New function.
3147 (decode_coding): Don't detect EOL format here for CCL based coding
3148 systems.
3149 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
3150 decode_eol_post_ccl after running the CCL program.
3151 (code_convert_region): Don't detect EOL format here for CCL based
3152 coding systems.
3153 (decode_coding_string): Likewise.
3154
3155 2000-06-18 Ken Raeburn <raeburn@gnu.org>
3156
3157 * charset.c (update_charset_table): Use XINT on "iso_final_char"
3158 when treating it as an integer.
3159
3160 * coding.h (encode_coding_string): Declare.
3161
3162 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
3163 it as an integer.
3164
3165 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
3166 "xkeymap" to avoid shadowing the "enum map_type" value that needs
3167 to be passed to get_local_map.
3168
3169 * sound.c (Fplay_sound): Don't call make_number on
3170 Frun_hook_with_args count argument.
3171
3172 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
3173 for lisp objects in X event structure data field, when lisp
3174 objects are represented with unions.
3175 (x_scroll_bar_to_input_event): Ditto.
3176
3177 2000-06-16 Ken Raeburn <raeburn@gnu.org>
3178
3179 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
3180 termination of string. Fix sense of test whether
3181 Vline_number_display_limit is an integer.
3182
3183 2000-06-16 Gerd Moellmann <gerd@gnu.org>
3184
3185 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
3186 only if HAVE_X_WINDOWS.
3187
3188 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
3189 of titles.
3190
3191 * dispnew.c (update_frame_1): Handle case that cursor vpos is
3192 out of bounds.
3193
3194 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
3195
3196 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
3197 of its headers.
3198
3199 2000-06-15 Kenichi Handa <handa@etl.go.jp>
3200
3201 * coding.c (decode_coding_emacs_mule): Always set src_base at the
3202 start of the while loop.
3203
3204 2000-06-15 Gerd Moellmann <gerd@gnu.org>
3205
3206 * atimer.c (alarm_signal_handler): Add forward declaration.
3207
3208 * data.c (set_internal): Remove debug code.
3209
3210 2000-06-14 Gerd Moellmann <gerd@gnu.org>
3211
3212 * Makefile.in (bootstrap-temacs): Add `-I../src'.
3213
3214 * unexec.c (toplevel) [COFF]: Include coff.h.
3215
3216 * s/lynxos.h: New file.
3217
3218 * keymap.c (Fsingle_key_description): Enclose function key and
3219 event symbol names in angle brackets.
3220
3221 * xdisp.c (setup_echo_area_for_printing): Call
3222 message_log_maybe_newline if message_buf_print is not set.
3223
3224 * print.c (printchar, strout): Don't check message_buf_print
3225 before calling setup_echo_area_for_printing because that
3226 function does something useful even when message_buf_print is
3227 already set.
3228
3229 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
3230 variables.
3231 (ensure_echo_area_buffers): Initialize echo buffer's
3232 truncate lines setting to nil.
3233 (with_echo_area_buffer): Don't set the echo buffer's truncate
3234 lines setting here.
3235 (set_message_1): Set it here instead, based on the value
3236 of message_truncate_lines.
3237 (resize_mini_window): Handle case that lines are truncated.
3238 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
3239 message-truncate-lines.
3240
3241 * keyboard.c (read_char): Bind message-truncate-lines to t
3242 while displaying a help-echo.
3243
3244 * lisp.h (Qmessage_truncate_lines): External declaration.
3245
3246 2000-06-13 Gerd Moellmann <gerd@gnu.org>
3247
3248 * xdisp.c (Vline_number_display_limit): Renamed from
3249 line_number_display_limit.
3250 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
3251 Extend documentation string. Initialize
3252 Vline_number_display_limit to nil meaning no limit.
3253 (decode_mode_spec): Use Vline_number_display_limit with its new
3254 meaning.
3255
3256 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
3257
3258 2000-06-13 Richard Stallman <rms@gnu.org>
3259
3260 * frame.c (Fmodify_frame_parameters): Doc fix.
3261
3262 * xfns.c (x_set_frame_parameters): Comment fix.
3263
3264 * frame.c (store_frame_param): Call swap_in_global_binding if the
3265 variable's current binding was chosen based on this frame.
3266
3267 * data.c (swap_in_global_binding): New function.
3268
3269 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
3270
3271 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
3272 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
3273
3274 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
3275
3276 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
3277
3278 2000-06-12 Jason Rumney <jasonr@gnu.org>
3279
3280 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
3281
3282 * w32.h (EMACS_W32_H): Renamed from _NT_H_
3283
3284 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
3285
3286 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
3287
3288 2000-06-12 Gerd Moellmann <gerd@gnu.org>
3289
3290 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
3291 (syms_of_xfaces): Defsubr Sdump_colors.
3292 (x_free_colors): Don't treat b&w specially on default visual.
3293 (x_free_dpy_colors): New function.
3294 (free_face_colors): Don't check visual class; it's done
3295 in x_free_colors.
3296
3297 * xterm.c (x_frame_of_widget): New function.
3298 (x_alloc_nearest_color_for_widget): Use it.
3299 (x_copy_dpy_color): New function.
3300 (x_destroy_window): Free various colors.
3301
3302 2000-06-12 Kenichi Handa <handa@etl.go.jp>
3303
3304 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
3305
3306 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
3307
3308 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
3309
3310 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
3311
3312 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
3313
3314 2000-06-11 Dave Love <fx@gnu.org>
3315
3316 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
3317
3318 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
3319
3320 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
3321
3322 2000-06-11 Gerd Moellmann <gerd@gnu.org>
3323
3324 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
3325 to `XEvent *'.
3326
3327 2000-06-10 Kenichi Handa <handa@etl.go.jp>
3328
3329 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
3330 (regex_compile): Fix the code for handling the case of single byte
3331 char and multibyte char being mixed in a range within [...].
3332
3333 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
3334 and dst_multibyte members of coding.
3335
3336 * charset.c (update_charset_table): Update the table
3337 bytes_by_char_head.
3338 (init_charset_once): Initialize elements of bytes_by_char_head to
3339 1 except for leading codes for private charases.
3340
3341 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
3342 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
3343 sequence.
3344
3345 2000-06-09 Ken Raeburn <raeburn@gnu.org>
3346
3347 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
3348 access the data it doesn't point to.
3349
3350 2000-06-08 Gerd Moellmann <gerd@gnu.org>
3351
3352 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
3353 will be translated to a switch-frame event when reading the
3354 event queue. This is necessary because Emacs otherwise won't
3355 perform a switch-frame to a new frame until some other event, for
3356 example a keystroke event, forces it to do so. This has various
3357 effects, one visible being that the cursor of a frame created with
3358 C-x 5 2 or switched to with a window manager key binding like
3359 A-TAB stays hollow because selected_window isn't on the newly
3360 focused frame until the switch-frame is performed.
3361
3362 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
3363 generating a switch-frame event if necessary.
3364
3365 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
3366
3367 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
3368 it's an integer.
3369
3370 2000-06-08 Kenichi Handa <handa@etl.go.jp>
3371
3372 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
3373 charset.
3374
3375 2000-06-07 Gerd Moellmann <gerd@gnu.org>
3376
3377 * window.c (displayed_window_lines): Take empty lines at
3378 the bottom of a window into account.
3379
3380 * window.c (displayed_window_lines): New function.
3381 (Fmove_to_window_line): Use displayed_window_lines to determine
3382 the number of lines to move, instead of using the window's height.
3383
3384 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
3385 to stop reading, even if the form read sets point to a different
3386 value when evaluated.
3387
3388 * xdisp.c (display_line): Fix code deciding in which line to
3389 put the cursor.
3390
3391 2000-06-07 Kenichi Handa <handa@etl.go.jp>
3392
3393 * fileio.c (e_write): Free composition data if stored in
3394 coding->cmp_data.
3395
3396 2000-06-06 Gerd Moellmann <gerd@gnu.org>
3397
3398 * xdisp.c (display_line): Set row's and iterator's
3399 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
3400 Set cursor even if row ends in the middle of a character.
3401 (dump_glyph_row): Print values of new flags.
3402 (redisplay_window) <cursor movement in unchanged window>: When
3403 point has been moved forward, and PT is at the end of the cursor
3404 row, don't place the cursor in the next row if the cursor row ends
3405 in the middle of a character or at ZV.
3406
3407 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
3408 (struct glyph_row): Add starts_in_middle_of_char_p and
3409 ends_in_middle_of_char_p.
3410 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
3411 ends_in_middle_of_char_p flag.
3412 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
3413
3414 * term.c (append_glyph): Revert change of 2000-06-06.
3415
3416 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
3417 padding glyph not fitting on line as whole character not
3418 fitting on line.
3419
3420 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
3421 this isn't true for images with `:ascent 100'.
3422
3423 2000-06-06 Kenichi Handa <handa@etl.go.jp>
3424
3425 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
3426 as modified if it is originally unmodified.
3427
3428 * term.c (encode_terminal_code): Change the way to check if
3429 terminal coding does any conversion.
3430 (append_glyph): Set glyph->pixel_width correctly.
3431
3432 * xdisp.c (display_line): While checking line continuation, pay
3433 attention to a padding glyph.
3434
3435 2000-06-05 Gerd Moellmann <gerd@gnu.org>
3436
3437 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
3438
3439 2000-06-05 Dave Love <fx@gnu.org>
3440
3441 * xdisp.c: Include fontset.h.
3442
3443 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
3444
3445 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
3446
3447 * dispnew.c: Conditionally include term.h.
3448
3449 * coding.h: Declare code_convert_string_norecord.
3450
3451 * frame.h (struct frame): Use volatile unconditionally.
3452
3453 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
3454
3455 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
3456
3457 * systime.h: Protect against multiple inclusion.
3458 (timezone) [USG5_4]: Define as time_t.
3459
3460 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
3461 (Foptimize_char_table, make_temp_name): Declare.
3462
3463 * Makefile.in (xdisp.o): Depend on fontset.h.
3464
3465 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
3466
3467 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
3468 (Foptimize_char_table, make_temp_name): Declare.
3469
3470 * s/irix4-0.h:
3471 * s/irix5-0.h:
3472 * s/netbsd.h: Don't define autoconfiscated MATHERR.
3473
3474 2000-06-02 Dave Love <fx@gnu.org>
3475
3476 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
3477
3478 2000-06-02 Gerd Moellmann <gerd@gnu.org>
3479
3480 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
3481 result face, set flags in that face indicating that colors may not
3482 be freed.
3483
3484 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
3485 glyph, use the ASCII NUL character to determine the face.
3486
3487 2000-06-02 Dave Love <fx@gnu.org>
3488
3489 * sysdep.c: Conditionally include stdlib.h, unistd.h.
3490 (VFORK_RETURN_TYPE): Remove.
3491
3492 * config.in: Add NO_MATHERR.
3493
3494 2000-06-01 Dave Love <fx@gnu.org>
3495
3496 * cmds.c (internal_self_insert): Don't check
3497 Vbefore_change_function, Vafter_change_function.
3498
3499 * insdel.c (signal_before_change, signal_after_change): Likewise.
3500
3501 * buffer.c (Vbefore_change_function, Vafter_change_function):
3502 Variables and their initializations deleted.
3503
3504 * callint.c (Fcall_interactively): Doc fix.
3505
3506 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
3507
3508 2000-05-31 Dave Love <fx@gnu.org>
3509
3510 * textprop.c: Revert last change -- duplicated.
3511
3512 2000-05-31 Gerd Moellmann <gerd@gnu.org>
3513
3514 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
3515 in #if 0.
3516
3517 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
3518
3519 2000-05-31 Jason Rumney <jasonr@gnu.org>
3520
3521 * search.c (Fre_search_forward, Fre_search_backward)
3522 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
3523
3524 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
3525
3526 2000-05-30 Jason Rumney <jasonr@gnu.org>
3527
3528 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
3529 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
3530
3531 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
3532 member.
3533
3534 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
3535 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
3536 expand a nil default_filename.
3537
3538 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
3539 pointer to glyph_to_pixel_coords, not a frame.
3540
3541 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
3542 coding.h to dependencies.
3543
3544 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
3545
3546 * w32console.c (glyph_to_pixel_coords): Change first parameter to
3547 window pointer to be consistent with w32term.c and xterm.c.
3548
3549 * w32fns.c: Format and doc changes to bring closer to xfns.c.
3550 (VIETNAMESE_CHARSET): Define if not defined in system headers.
3551 (Qline_spacing, Qcenter): New variables.
3552 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
3553 (x_set_line_spacing): New function.
3554 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
3555 macros.
3556 (x_specified_cursor_type): New function.
3557 (x_set_cursor_type): Use it.
3558 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
3559 and icon strings.
3560 (validate_x_resource_name, x_get_resource_string): Measure lengths
3561 of external strings in bytes.
3562 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
3563 GetTextExtentPoint32 with NULL title.
3564 (Fx_create_frame): Initialize Qline_spacing.
3565 (w32_load_system_font): Initialize font->double_byte_p.
3566 (x_to_w32_charset): Use Vw32_charset_info_alist.
3567 (Image, busy cursor, tooltip functions): Merged changes from
3568 xfns.c. Not yet functional on Windows.
3569
3570 * w32gui.h (W32FontStruct): Add double_byte_p member.
3571
3572 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
3573 (emacs_button_translation): Use it.
3574 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
3575 in `mask' to be set.
3576
3577 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
3578 menu strings.
3579
3580 * w32term.c: Format and doc changes to bring closer to xterm.c.
3581 (w32_char_font_type): New enum.
3582 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
3583 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
3584 (w32_encode_char): New function.
3585 (x_encode_char): Removed.
3586 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
3587 x_encode_char and w32_font_is_double_byte.
3588 (x_produce_image_glyph): Use image_ascent.
3589 (x_produce_glyphs): Use new version of w32_per_char_metric and
3590 handle NULL return value. Allow extra line spacing.
3591 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
3592 (w32_get_glyph_overhangs): Remove unicode_p param. Use
3593 w32_font_type member of glyph instead.
3594 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
3595 (fast_find_position): Make sure not to consider rows not visible
3596 in the window.
3597 (w32_read_socket) [WM_MENUSELECT]: Cannot call
3598 w32_menu_display_help with input blocked, as it can abort.
3599 (x_display_and_set_cursor): Choose cursor depending
3600 on buffer-local value of cursor_type.
3601 (x_draw_bar_cursor): Add parameter WIDTH.
3602
3603 * w32term.h (CP_DEFAULT): Define.
3604 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
3605
3606 2000-05-30 Gerd Moellmann <gerd@gnu.org>
3607
3608 * search.c (Fre_search_forward, Fre_search_backward)
3609 (Fposix_search_backward, Fposix_search_forward): Doc fix.
3610
3611 2000-05-30 Kenichi Handa <handa@etl.go.jp>
3612
3613 * coding.c (detect_coding_iso2022): Fix code for checking
3614 CODING_CATEGORY_MASK_ISO_8_2.
3615
3616 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
3617
3618 * regex.c (PREFETCH_NOLIMIT): New function.
3619 (re_match_2_internal): Use it and adjust the end_match_2 logic.
3620
3621 2000-05-29 Gerd Moellmann <gerd@gnu.org>
3622
3623 * syntax.c (find_defun_start): Move test for
3624 open_paren_in_column_0_is_defun_start outside of the loop.
3625
3626 * xdisp.c (redisplay_window): Really switch buffers when
3627 displaying mode lines, and temporarily set selected_frame to the
3628 frame of the window that's redisplayed.
3629
3630 * xfaces.c (free_realized_faces): Block/unblock input.
3631 (free_realized_multibyte_face): Ditto.
3632
3633 2000-05-29 Dave Love <fx@gnu.org>
3634
3635 * textprop.c (Qkeymap): New variable.
3636 (syms_of_textprop): Intern it.
3637
3638 * keymap.c: Include intervals.h.
3639 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
3640
3641 * Makefile.in (keymap.o): Depend on intervals.h.
3642
3643 * keyboard.c (menu_bar_items, tool_bar_items)
3644 (Fexecute_extended_command): Deal with `keymap' property.
3645 (read_key_sequence): Track map from `keymap' property as well as
3646 `local_map'.
3647
3648 * intervals.c (get_local_map): Extra arg to allow looking for
3649 `keymap' too.
3650
3651 * intervals.h (map_property): New enum.
3652 (get_local_map): Extra arg using it.
3653 (Qkeymap): Declare.
3654
3655 * lisp.h (get_local_map): Don't declare here.
3656
3657 2000-05-29 Kenichi Handa <handa@etl.go.jp>
3658
3659 * Makefile.in (callproc.o): Depend on composite.h.
3660
3661 * callproc.c: Include composite.h.
3662 (Fcall_process): Handle composition correctly.
3663
3664 * coding.h (coding_allocate_composition_data): Extern it.
3665 (coding_restore_composition): Likewise.
3666
3667 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
3668 yet allocated, finish decoding with result
3669 CODING_FINISH_INSUFFICIENT_CMP.
3670 (coding_allocate_composition_data): Make it non-static.
3671 (coding_restore_composition): Likewise.
3672
3673 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
3674
3675 * charset.c (syms_of_charset): Revert last change.
3676
3677 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
3678
3679 * term.c (produce_glyphs): Treat characters from the eight-bit-*
3680 charsets as unibyte, with 1-column screen width. Sent by Kenichi
3681 Handa.
3682
3683 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
3684
3685 * charset.c (syms_of_charset): Set width of character sets
3686 eight-bit-control and eight-bit-graphic to 1 column.
3687
3688 2000-05-26 Gerd Moellmann <gerd@gnu.org>
3689
3690 * config.in (HAVE_SPEED_T): New define.
3691
3692 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
3693 `extern speed_t'.
3694
3695 2000-05-26 Dave Love <fx@gnu.org>
3696
3697 * coding.c (shrink_decoding_region): Initialize eol_conversion.
3698
3699 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
3700 (Fsubr_arity): New function.
3701 (syms_of_data): Install them.
3702
3703 2000-05-26 Kenichi Handa <handa@etl.go.jp>
3704
3705 * charset.c (init_charset_once): Set the table bytes_by_char_head
3706 correctly.
3707
3708 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
3709 the default fontset to what Emacs uses by default.
3710 (check_registry_encoding): This function deleted.
3711 (Fset_fontset_font): Remove the adhoc condition for the default
3712 fontset. Allow cons in FONTNAME.
3713
3714 * fns.c (map_char_table): Ignore char-table entries for
3715 charsets eight-bit-control and eight-bit-graphic.
3716
3717 2000-05-25 Ken Raeburn <raeburn@gnu.org>
3718
3719 * emacs.c (main): Initialize keyboard syms before initializing
3720 window code, so face names are available.
3721
3722 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
3723
3724 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
3725 of an anchor at the beginning of a shy-group.
3726
3727 2000-05-25 Gerd Moellmann <gerd@gnu.org>
3728
3729 * xdisp.c (handle_invisible_prop): Don't try to skip over
3730 invisible text if end of text is already reached.
3731
3732 2000-05-25 Dave Love <fx@gnu.org>
3733
3734 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
3735
3736 * coding.c (encode_eol): Add null statement after label.
3737
3738 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
3739
3740 * w16select.c (Fw16_set_clipboard_data): Fix the change from
3741 2000-05-20.
3742
3743 2000-05-25 Kenichi Handa <handa@etl.go.jp>
3744
3745 * ccl.c (ccl_driver): Fix previous change.
3746
3747 2000-05-25 Kenichi Handa <handa@etl.go.jp>
3748
3749 * coding.c (run_pre_post_conversion_on_str): Set point to the
3750 beginning of buffer before calling coding->post_read_conversion.
3751 (decode_coding_string): Give correct args to
3752 run_pre_post_conversion_on_str.
3753 (encode_coding_string): Likewise.
3754
3755 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
3756 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
3757 eight-bit-graphic correctly.
3758
3759 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
3760
3761 * fileio.c (Finsert_file_contents): Even if a file is not found,
3762 execute codes for setting up coding system. Call
3763 after-insert-file-functions unconditionally.
3764
3765 2000-05-24 Gerd Moellmann <gerd@gnu.org>
3766
3767 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
3768 BSD_PGRPS are not defined.
3769
3770 2000-05-24 Kenichi Handa <handa@etl.go.jp>
3771
3772 * charset.c (update_charset_table): Accept nil in LONG_NAME and
3773 DESCRIPTION.
3774 (syms_of_charset): Avoid building same strings.
3775
3776 2000-05-23 Gerd Moellmann <gerd@gnu.org>
3777
3778 * lread.c (Fload): Add a comment about the meaning of
3779 Vuser_init_file being t.
3780
3781 * puresize.h (BASE_PURESIZE): Increase to 675000.
3782
3783 * s/gnu-linux.h (setpgrp): Don't define it here because this
3784 prevents compilation on GNU/Linux systems with glib 2.2.
3785
3786 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
3787 as setpgid.
3788
3789 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
3790
3791 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
3792 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
3793 version.
3794 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
3795
3796 2000-05-23 Kenichi Handa <handa@etl.go.jp>
3797
3798 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
3799 unconditionally.
3800
3801 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
3802
3803 * term.c (encode_terminal_code): Set coding->src_multibyte
3804 properly.
3805
3806 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
3807
3808 2000-05-22 Kenichi Handa <handa@etl.go.jp>
3809
3810 * keyboard.c (read_char): Allow character codes 128..255 to be
3811 handled by input-method-function.
3812
3813 * insdel.c (adjust_markers_for_replace): Fix previous change.
3814 (adjust_after_replace): If PREV_TEXT is nil, call
3815 adjust_markers_for_insert, not adjust_markers_for_replace.
3816
3817 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
3818
3819 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
3820 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
3821 [HAVE_GRANDPT]: Define.
3822 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
3823
3824 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
3825 like SYSV_PTYS.
3826
3827 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
3828
3829 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
3830
3831 2000-05-20 Kenichi Handa <handa@etl.go.jp>
3832
3833 The following changes are to handle 8-bit characters in a
3834 multibyte buffer/string without facing with byte combining
3835 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
3836 eight-bit-graphic (for 0xA0..0xFF) are introduced.
3837
3838 * Makefile.in (fns.o): Depend on charset.h.
3839
3840 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
3841 convert it to unibyte.
3842 (make_string): Use parse_str_as_multibyte, not chars_in_text.
3843
3844 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
3845 apparent char boundary.
3846 (Fset_buffer_multibyte): Convert 8-bit characters in the range
3847 0x80..0x9F to/from multibyte form.
3848
3849 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
3850 to unibyte.
3851
3852 * callproc.c (Fcall_process): Always encode an argument string if
3853 it is multibyte. Setup src_multibyte and dst_multibyte members of
3854 process_coding properly.
3855
3856 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
3857 SPLIT_NON_ASCII_CHAR.
3858
3859 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
3860 as is.
3861 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
3862
3863 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
3864 variables.
3865 (SPLIT_CHARACTER_SEQ): This macro deleted.
3866 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
3867 valid.
3868 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
3869 and eight-bit-graphic.
3870 (char_to_string): Likewise. Signal an error for too large
3871 character code.
3872 (char_printable_p): Return 0 for 8-bit characters.
3873 (update_charset_table): Update iso_charset_table only when a final
3874 character is non-negative.
3875 (find_charset_in_text): Renamed from find_charset_in_str.
3876 Arguments and return value changed. Callers changed.
3877 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
3878 be -1 if CHARSET is used only internally.
3879 (Fmake_char_internal): Handle new charsets; eight-bit-control and
3880 eight-bit-graphic.
3881 (Fcharset_after): Simplified.
3882 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
3883 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
3884 (multibyte_chars_in_text): Simplified by assuming there's no
3885 invalid multibyte sequence.
3886 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
3887 str_as_unibyte): New functions.
3888 (Fstring): Simpified by assuming that byte combining never
3889 happens.
3890 (init_charset_once): Initialization for
3891 LEADING_CODE_8_BIT_CONTROL.
3892 (syms_of_charset): Intern and staticpro Qeight_bit_control and
3893 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
3894 eight-bit-control and eight-bit-graphic.
3895
3896 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
3897 CHARSET_8_BIT_GRAPHIC): New macros.
3898 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
3899 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
3900 (CHARSET_REVERSE_CHARSET): Likewise.
3901 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
3902 eight-bit-graphic.
3903 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
3904 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
3905 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
3906 encounter an invalid multibyte sequence.
3907 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
3908 sequence is always valid.
3909 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
3910 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
3911 macros.
3912 (CHAR_STRING): For 8-bit characters, call char_to_string.
3913 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
3914 multibyte sequence is always valid.
3915 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
3916 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
3917 str_as_unibyte): Extern them.
3918 (BCOPY_SHORT): Fix a bug.
3919 (CHAR_LEN): This macro deleted. Callers changed to use
3920 CHAR_BYTES.
3921 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
3922 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
3923 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
3924
3925 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
3926 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
3927 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
3928 EMIT_BYTES): New macros.
3929 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
3930 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
3931 macros deleted.
3932 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
3933 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
3934 check the validity of multibyte sequence.
3935 (decode_coding_emacs_mule): New function.
3936 (encode_coding_emacs_mule): New macro.
3937 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
3938 the source.
3939 (DECODE_ISO_CHARACTER): Just return a character code.
3940 (DECODE_COMPOSITION_START): Set coding->result instead of result.
3941 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
3942 EMIT_CHAR to produced decoded characters. Exit the loop only by
3943 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
3944 block here.
3945 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
3946 only position codes for an invalid character.
3947 (encode_designation_at_bol): Return new destination pointer. 5th
3948 arg DSTP is changed to DST.
3949 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
3950 from the source by ONE_MORE_CHAR. Don't handle the case of last
3951 block here.
3952 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
3953 macros deleted.
3954 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
3955 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
3956 TWO_MORE_BYTES to fetch a byte from the source.
3957 (encode_eol): Pay attention to coding->src_multibyte.
3958 (detect_coding, detect_eol): Preserve members src_multibyte and
3959 dst_multibyte.
3960 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
3961 (encoding_buffer_size): Set magnification to 3 for all coding
3962 systems that require encoding.
3963 (ccl_coding_driver): For decoding, be sure that the result is
3964 valid multibyte sequence.
3965 (decode_coding): Initialize coding->errors and coding->result.
3966 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
3967 and raw-text, always call decode_eol. Handle the case of last
3968 block here. If not coding->dst_multibyte, convert the resulting
3969 sequence to unibyte.
3970 (encode_coding): Initialize coding->errors and coding->result.
3971 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
3972 and raw-text, always call encode_eol. Handle the case of last
3973 block here.
3974 (shrink_decoding_region, shrink_encoding_region): Detect cases
3975 that we can't skip data more rigidly.
3976 (code_convert_region): Setup src_multibyte and dst_multibyte
3977 members of coding. For decoding, if the buffer is multibyte,
3978 convert the source sequence to unibyte in advance. For encoding,
3979 if the buffer is multibyte, convert the resulting sequence to
3980 multibyte afterward.
3981 (run_pre_post_conversion_on_str): New function.
3982 (code_convert_string): Deleted and divided into the following two.
3983 (decode_coding_string, encode_coding_string): New functions.
3984 (code_convert_string1, code_convert_string_norecord): Call one of
3985 above.
3986 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
3987 MAKE_NON_ASCII_CHAR.
3988 (Fset_terminal_coding_system_internal,
3989 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
3990 and dst_multibyte members.
3991 (init_coding_once): Initialize iso_code_class with new enum
3992 ISO_control_0 and ISO_control_1.
3993
3994 * coding.h (enum iso_code_class_type): Member ISO_control_code is
3995 devided into ISO_control_0 and ISO_control_1.
3996 (struct coding_system): New members src_multibyte, dst_multibyte,
3997 errors, and result. Delete member fake_multibyte.
3998 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
3999 nonzero.
4000 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
4001 nonzero.
4002
4003 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
4004 (Faset): Likewise.
4005
4006 * editfns.c (Fformat): Be sure to convert 8-bit characters to
4007 multibyte form.
4008 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
4009 combining occurs.
4010 (Ftranspose_region): Delete codes for handling byte combining.
4011
4012 * fileio.c (Finsert_file_contents): Setup src_multibyte and
4013 dst_multibyte members of coding. On handling REPLACE on unibyte
4014 buffer, convert the result of decode_coding to unibyte. On
4015 inserting into a mutibyte buffer, always call code_convert_region.
4016 (e_write): Setup coding->src_multibyte according to the
4017 multibyteness of the source (buffer or string).
4018
4019 * fns.c (concat): Handle 8-bit characters correctly.
4020 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
4021 unibyte in the result.
4022 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
4023 valid multibyte form in the result.
4024 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
4025 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
4026 return -1, signal an error.
4027 (base64_encode_1): New arg MULTIBYTE. Get each character by
4028 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
4029 character is found, return -1.
4030 (Fbase64_decode_region): Delete codes for handling byte-combining.
4031 Treat each decoded byte as a unibyte character.
4032 (Fbase64_decode_string): Return unibyte string.
4033 (Fcompare_strings, concat, string_byte_to_char): Use
4034 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
4035 FETCH_STRING_CHAR_ADVANCE.
4036 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
4037 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
4038
4039 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
4040 SPLIT_NON_ASCII_CHAR.
4041 (fontset_ref_via_base, fontset_set): Likewise
4042
4043 * insdel.c (adjust_markers_for_record_delete): Deleted.
4044 (adjust_markers_for_insert): Argument changed. Caller changed.
4045 (adjust_markers_for_replace): Likewise.
4046 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
4047 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
4048 (copy_text): Delete unused local varialbe c_save. For converting
4049 to multibyte, be sure to make all 8-bit characters in valid
4050 multibyte form.
4051 (count_size_as_multibyte): Handle 8-bit characters correctly.
4052 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
4053 adjust_after_replace, replace_range, del_range_2)
4054 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
4055 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
4056 adjust_after_replace, replace_range, del_range_2) Delete codes for
4057 handling byte combining.
4058 (adjust_before_replace): Deleted.
4059
4060 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
4061 SPLIT_NON_ASCII_CHAR.
4062 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
4063 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
4064 unconditionally.
4065 (Fkey_description): Likewise.
4066
4067 * lread.c (read1): On reading multibyte string, be sure to make
4068 all 8-bit chararacters in valid multibyte form.
4069 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
4070
4071 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
4072 unconditionally.
4073
4074 * process.c (Fstart_process): GCPRO current_dir before calling
4075 Ffind_operation_coding_system. Encode arguments here.
4076 (create_process): Don't encode arguments here. Setup
4077 src_multibyte and dst_multibyte members of struct coding.
4078 (read_process_output): Setup src_multibyte and dst_multibyte
4079 members of struct coding. If the output is to multibyte buffer,
4080 always decode the output of the process. Adjust the
4081 representation of 8-bit characters to the multibyteness of the
4082 output.
4083 (send_process): Setup coding->src_multibyte according to the
4084 multibyteness of the source.
4085
4086 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
4087 unconditionally.
4088 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
4089 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
4090
4091 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
4092 CHAR_LEN.
4093
4094 * w16select.c (Fw16_set_clipboard_data): Setup members
4095 src_multibyte and dst_multibyte of coding. Adjusted for the
4096 change for find_charset_in_str.
4097 (Fw16_get_clipboard_data): Likewise.
4098
4099 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
4100 dst_multibyte of coding.
4101 (x_to_w32_font): Likewise.
4102
4103 * w32select.c (Fw32_set_clipboard_data): Setup members
4104 src_multibyte and dst_multibyte of coding. Adjusted for the
4105 change for find_charset_in_str.
4106 (Fw32_get_clipboard_data): Likewise.
4107
4108 * xdisp.c (get_next_display_element): Handle 8-bit characters
4109 correctly.
4110 (next_element_from_display_vector): Use CHAR_BYTES instead of
4111 CHAR_LEN.
4112 (disp_char_vector): Use SPLIT_CHAR instead of
4113 SPLIT_NON_ASCII_CHAR.
4114
4115 * xselect.c (selection_data_to_lisp_data): Setup members
4116 src_multibyte and dst_multibyte of coding. Adjusted for the
4117 change for find_charset_in_str.
4118 (lisp_data_to_selection_data): Likewise.
4119
4120 2000-05-19 Gerd Moellmann <gerd@gnu.org>
4121
4122 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
4123 buffer.
4124
4125 * dispextern.h (Vimage_types): Add extern declaration.
4126
4127 * xdisp.c (Vimage_types): Moved here from xfns.c.
4128 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
4129
4130 * xfns.c (Vimages_types): Moved to xdisp.c.
4131 (syms_of_xfns): Move `image-types' to xdisp.c.
4132
4133 * w32fns.c (Vimage_types): Removed.
4134 (syms_of_w32fns): Remove `image-types'.
4135
4136 2000-05-18 Kenichi Handa <handa@etl.go.jp>
4137
4138 * fns.c (map_char_table): Pay attention to character number of
4139 charset. Check the validity of charset at the first level. For
4140 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
4141 the default value.
4142
4143 * fontset.c: Include "buffer.h".
4144 (fs_load_font): If the face has fontset, record the face ID in
4145 that fontset.
4146 (Finternal_char_font): New function.
4147 (accumulate_font_info): New function.
4148 (Ffontset_info): Rewritten for the new fontset implementation.
4149 (syms_of_fontset): Register Vdefault_fontset in the first element
4150 of Vfontset_table. Include Vdefault_fontset in
4151 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
4152 function.
4153
4154 2000-05-16 Dave Love <fx@gnu.org>
4155
4156 * m/iris5d.h: Deleted -- unused.
4157
4158 2000-05-16 Gerd Moellmann <gerd@gnu.org>
4159
4160 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
4161 `invalid' instead of `illegal'.
4162
4163 * indent.c (Fmove_to_column): When ending within a tab, insert
4164 spaces first so that markers at the end of the tab get adjusted.
4165
4166 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
4167 buffer list that wasn't selected in that frame.
4168
4169 * filelock.c (get_boot_time): To obtain an 8 char file name, which
4170 is needed on mescaline, use a 2 char prefix, and call
4171 make_temp_name with second arg non-zero.
4172
4173 * fileio.c (make_temp_name): New function, extracted from
4174 Fmake_temp_name.
4175 (Fmake_temp_name): Use it.
4176
4177 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
4178
4179 * window.c (coordinates_in_window): Subtract 1 when computing
4180 right_x.
4181
4182 2000-05-15 Gerd Moellmann <gerd@gnu.org>
4183
4184 * Makefile.in (lisp): Add env.elc.
4185
4186 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
4187
4188 2000-05-12 Gerd Moellmann <gerd@gnu.org>
4189
4190 * search.c (Freplace_match): Handle case of `\N' in the
4191 replacement when there's no group N.
4192
4193 2000-05-11 Gerd Moellmann <gerd@gnu.org>
4194
4195 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
4196 of the message to message_dolog.
4197
4198 * keyboard.c (read_char): Don't clear current message for help
4199 events; let the code handling help events handle this. Change
4200 code detecting help events that should be ignored.
4201
4202 * xdisp.c (handle_single_display_prop): Don't try to set PT if
4203 we're interating over a string.
4204
4205 2000-05-09 Dave Love <fx@gnu.org>
4206
4207 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
4208 that offset before writing. Move gcpro region past call of
4209 Ffile_regular_p.
4210
4211 2000-05-04 Dave Love <fx@gnu.org>
4212
4213 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
4214
4215 2000-05-04 Gerd Moellmann <gerd@gnu.org>
4216
4217 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
4218 of inserted characters when BUF equals the current buffer, and PT
4219 is in front of or equal to FROM.
4220
4221 2000-05-03 Gerd Moellmann <gerd@gnu.org>
4222
4223 * xdisp.c (handle_single_display_prop): If display property value
4224 is invalid, or something not supported on the frame, restore
4225 iterator's position to what it was initially. Make sure to return
4226 0 for invalid and unsupported property values.
4227
4228 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
4229 that x_per_char_metric returns null.
4230
4231 2000-05-02 Gerd Moellmann <gerd@gnu.org>
4232
4233 * xterm.h (struct face): Add forward declaration.
4234 (struct image): Ditto.
4235 (image_ascent): Add prototype.
4236
4237 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
4238 (x_draw_image_relief, x_draw_image_foreground_1): Call function
4239 image_ascent instead of using IMAGE_ASCENT.
4240
4241 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
4242 (IMAGE_ASCENT): Removed.
4243
4244 * xfns.c (Qcenter): New variable.
4245 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
4246 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
4247 (image_ascent): New function.
4248 (lookup_image): Recognize `:ascent center'.
4249 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
4250 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
4251 (xbm_load): Don't set image's ascent here.
4252 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
4253 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
4254 check ascent values here.
4255 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
4256 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
4257 (syms_of_xfns): Initialize Qcenter.
4258
4259 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
4260 to the limits, increase the limits.
4261
4262 2000-05-01 Kenichi Handa <handa@etl.go.jp>
4263
4264 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
4265 Check Vfont_encoding_alist against the full name of the opened
4266 font.
4267
4268 2000-04-28 Gerd Moellmann <gerd@gnu.org>
4269
4270 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
4271 taller than the window.
4272
4273 2000-04-28 Kenichi Handa <handa@etl.go.jp>
4274
4275 * xfaces.c (realize_x_face): Fix the argument of the second
4276 xassert. BASE_FACE may not be a face for ASCII.
4277
4278 2000-04-27 Gerd Moellmann <gerd@gnu.org>
4279
4280 * print.c (print_object): Treat print-length < 0 as nil.
4281
4282 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
4283
4284 * s/freebsd.h (TERMCAP_OBJ): Removed.
4285 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
4286
4287 * lread.c (read1): Don't treat period followed by certain
4288 characters as symbol start.
4289
4290 * xfns.c (slurp_file): New function.
4291 (xbm_image_p): Handle case of in-memory XBM files.
4292 (xbm_scan): Rewritten to work on memory buffers instead of files.
4293 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
4294 Work on memory buffers instead of files. If DATA is null test
4295 if buffer looks like an in-memory XBM file.
4296 (xbm_load_image): Renamed from xbm_load_image_file. Work on
4297 memory buffers instead of files.
4298 (xbm_file_p): New function.
4299 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
4300
4301 * lread.c (end_of_file_error): New function.
4302 (read1): Call it instead of signaling `end-of-file' directly.
4303
4304 * print.c (print_error_message): Print data of `end-of-file'
4305 with Fprinc instead of Fprin1.
4306
4307 2000-04-26 Ken Raeburn <raeburn@gnu.org>
4308
4309 * window.c (freeze_window_start): Check that minibuffer scroll
4310 window isn't nil before extracting the window structure pointer
4311 from it.
4312
4313 * undo.c (record_delete): If we hit the end of the undo list, stop
4314 picking elements apart.
4315
4316 2000-04-26 Gerd Moellmann <gerd@gnu.org>
4317
4318 * xdisp.c (display_line): If lines are continued, restore
4319 iterator's ascent/descent information to the values before the
4320 first glyph not fitting on the line.
4321
4322 2000-04-25 Gerd Moellmann <gerd@gnu.org>
4323
4324 * xdisp.c (try_window_id) <all changes above window start>: Adjust
4325 positions in glyph matrix. Don't compute new window end
4326 positions.
4327
4328 * dispnew.c (increment_matrix_positions): Renamed from
4329 increment_glyph_matrix_buffer_positions.
4330 (increment_row_positions): Renamed from
4331 increment_glyph_row_buffer_positions.
4332
4333 * dispextern.h: Change names of renamed functions from dispnew.c
4334 in prototypes.
4335
4336 2000-04-24 Gerd Moellmann <gerd@gnu.org>
4337
4338 * fileio.c (Fdo_auto_save): Create directories for auto-save
4339 list file if necessary.
4340
4341 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
4342 from buffer or frame.
4343 (automatic_hscrolling_p): New variable.
4344 (hscroll_windows): Scroll windows horizontally only if automatic
4345 hscrolling is allowed.
4346 (syms_of_xdisp): New variable `automatic-hscrolling'.
4347
4348 * frame.h (struct frame): Add member extra_line_spacing.
4349
4350 * xfns.c (x_set_line_spacing): New function.
4351 (Fx_create_frame): Set line spacing from resources.
4352 (Qline_spacing): New variable.
4353 (syms_of_xfns): Initialize Qline_spacing.
4354
4355 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
4356
4357 * buffer.c (init_buffer_once): Handle extra_line_spacing.
4358 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
4359 (reset_buffer): Don't initialize extra2 and extra3. Initialize
4360 extra_line_spacing from default value.
4361 (init_buffer_once): Initialize default value of extra_line_spacing.
4362
4363 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
4364 and extra3.
4365
4366 * xterm.c (x_produce_glyphs): Remove reference to struct it's
4367 prompt_width. Add extra line spacing.
4368
4369 * term.c (produce_glyphs): Remove reference to struct it's
4370 prompt_width.
4371
4372 * dispextern.h (struct it): Remove member prompt_width, add
4373 extra_line_spacing.
4374
4375 2000-04-22 Gerd Moellmann <gerd@gnu.org>
4376
4377 * dispnew.c (update_frame_line): When writing a whole line, make
4378 sure cursor is in the right row afterwards, otherwise a use of
4379 capability `ch' in cmgoto might leave the cursor in the row below.
4380
4381 2000-04-21 Gerd Moellmann <gerd@gnu.org>
4382
4383 * lisp.h (struct Lisp_Buffer_Cons): Remove.
4384
4385 * keyboard.c (timer_check): Fix typo in comment.
4386
4387 2000-04-21 Kenichi Handa <handa@etl.go.jp>
4388
4389 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
4390 name change: ch -> character.
4391
4392 2000-04-20 Gerd Moellmann <gerd@gnu.org>
4393
4394 * keyboard.c (echo_message_buffer): New variable.
4395 (echo_now): Set echo_message_buffer to the echo area buffer used
4396 to display the echo.
4397 (cancel_echoing): Reset echo_message_buffer to nil.
4398 (read_char): Code rewritten that handles canceling an echo or
4399 echoing a dash, respectively.
4400
4401 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
4402 directory doesn't exist.
4403
4404 2000-04-19 Dave Love <fx@gnu.org>
4405
4406 * fns.c (syms_of_fns): Defsubr mapc.
4407 (concat): Don't allow numeric args.
4408 (Fconcat): Doc change.
4409
4410 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
4411
4412 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
4413 instead define end_match(1|2) more carefully.
4414 Use GET_CHAR_BEFORE_2 for `begline'.
4415
4416 2000-04-19 Gerd Moellmann <gerd@gnu.org>
4417
4418 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
4419 on 64-bit systems where NULL is defined as `0'.
4420
4421 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
4422 the `variable argument list' to make it work on Alpha.
4423
4424 * m/alpha.h (_LP64) [!_LP64]: Define.
4425 (ORDINARY_LINK): Define for NetBSD.
4426
4427 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
4428
4429 2000-04-19 Dave Love <fx@gnu.org>
4430
4431 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
4432 change.
4433
4434 * Makefile.in (LIBS): Don't use.
4435 (GETLOADAVG_OBJ): Define again.
4436 (otherobj): Add GETLOADAVG_OBJ.
4437
4438 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
4439
4440 2000-04-18 Gerd Moellmann <gerd@gnu.org>
4441
4442 * lread.c (read_filtered_event): Cancel and start busy cursor.
4443
4444 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
4445 that the per-character metrics may be null.
4446
4447 2000-04-17 Gerd Moellmann <gerd@gnu.org>
4448
4449 * buffer.c (clone_per_buffer_values): New function.
4450 (Fmake_indirect_buffer): Add optional argument CLONE. Call
4451 clone_per_buffer_values if CLONE is not nil.
4452
4453 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
4454
4455 2000-04-16 Dave Love <fx@gnu.org>
4456
4457 * Makefile.in: Remove obsolete localcpp stuff.
4458 (GETLOADAVG_OBJ): Don't define.
4459 (obj): Move LIBOBJS...
4460 (otherobj): ... to here.
4461 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
4462 whitespace-only lines after the continuation (Irix).
4463
4464 2000-04-14 Gerd Moellmann <gerd@gnu.org>
4465
4466 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
4467
4468 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
4469
4470 2000-04-14 Dave Love <fx@gnu.org>
4471
4472 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
4473 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
4474 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
4475 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
4476 NLIST_STRUCT.
4477
4478 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
4479 autoconfiscated HAVE_GETLOADAVG.
4480
4481 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
4482 BROKEN_MKTIME.
4483
4484 2000-04-14 Gerd Moellmann <gerd@gnu.org>
4485
4486 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
4487 (fill_in_lock_file_name): Avoid existing files that aren't
4488 links.
4489
4490 2000-04-14 Dave Love <fx@gnu.org>
4491
4492 * Makefile.in (LIBS, LIBOBJS): New variable.
4493 (INTERVAL_SRC): Convert to make variable.
4494 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
4495 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
4496 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
4497 add LIBOBJS.
4498 (SOME_MACHINE_OBJECTS): Remove interval stuff.
4499 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
4500 (shortlisp): Add facemenu, float-sup, frame.
4501 (SOME_MACHINE_LISP): Remove them from here.
4502 (LIBES): Change unused LDLIBS to autoconf LIBS.
4503
4504 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
4505
4506 2000-04-14 Kenichi Handa <handa@etl.go.jp>
4507
4508 * composite.c (update_compositions): If FROM and TO are not in a
4509 valid range, do nothing.
4510
4511 2000-04-13 Gerd Moellmann <gerd@gnu.org>
4512
4513 * tparam.c (tparam1): Abort when encountering an unknown
4514 `%'-specifier.
4515
4516 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
4517 terminfo.o.
4518
4519 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
4520 as TERMCAP_OBJ.
4521
4522 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
4523
4524 * fileio.c (a_write): Remove redundant semi-colons.
4525 (e_write): Return -1 if failed to write all the data.
4526 This fixes the changes made at 1999-12-15.
4527
4528 2000-04-12 Dave Love <fx@gnu.org>
4529
4530 * fns.c (mapcar1): Test for null vals to support mapc.
4531 (Fmapc): New function.
4532
4533 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
4534
4535 * msdos.c (NUM_MOUSE_BUTTONS): Define.
4536 (IT_frame_up_to_date): Support the buffer local value of
4537 cursor-type, if defined.
4538
4539 2000-04-10 Dave Love <fx@gnu.org>
4540
4541 * editfns.c (preceding-char, following-char): Doc fix.
4542
4543 2000-04-10 Ken Raeburn <raeburn@gnu.org>
4544
4545 * Makefile.in (temacs): Revert 2000-03-12 change.
4546
4547 2000-04-10 Jason Rumney <jasonr@gnu.org>
4548
4549 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
4550
4551 2000-04-10 Gerd Moellmann <gerd@gnu.org>
4552
4553 * xdisp.c (setup_echo_area_for_printing): Choose an echo
4554 area buffer, if it's not set up yet.
4555
4556 * indent.c (compute_motion): Set immediate_quit.
4557
4558 2000-04-09 Gerd Moellmann <gerd@gnu.org>
4559
4560 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
4561 variable.
4562 (realize_tty_face): Suppress boldness if colors are the inverse of
4563 the default colors, and tty_suppress_bold_inverse_default_colors_p
4564 is set.
4565 (Ftty_suppress_bold_inverse_default_colors): New function.
4566 (syms_of_xfaces): Defsubr it.
4567
4568 * buffer.c (Frestore_buffer_modified_p): New function.
4569 (syms_of_buffer): Defsubr it.
4570
4571 2000-04-08 Ken Raeburn <raeburn@gnu.org>
4572
4573 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
4574 charset id (int) argument, not a charset (Lisp_Object).
4575
4576 * coding.h (code_convert_string): Declare.
4577 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
4578 object, as the fourth argument to code_convert_string.
4579
4580 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
4581 value.
4582 (Fset_fontset_font): Use EQ to compare lisp objects.
4583
4584 2000-04-05 Ken Raeburn <raeburn@gnu.org>
4585
4586 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
4587 a pointer that looks like a lisp object.
4588 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
4589 zero, instead see whether it's an integer object, since they can't
4590 have intervals.
4591 (GET_INTERVAL_OBJECT): Simply assign to the destination.
4592
4593 * dispnew.c (allocate_matrices_for_frame_redisplay,
4594 direct_output_forward_char): Use X(U)INT and make_number as needed
4595 to convert between (unsigned) int values and lisp integers.
4596 * keyboard.c (read_key_sequence): Likewise.
4597 * lread.c (substitute_object_recurse): Likewise.
4598 * fns.c (concat, hash_lookup, hash_remove): Likewise.
4599 * minibuf.c (do_completion, Fminibuffer_complete_word,
4600 Fminibuffer_completion_help): Likewise.
4601 * term.c (produce_special_glyphs): Likewise.
4602
4603 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
4604 * print.c (print_preprocess, print_object): Likewise.
4605
4606 * search.c (compile_pattern): Use NILP when checking for nil.
4607
4608 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
4609 __OPTIMIZE__]: Provide a GNU C macro version that handles
4610 lisp-object unions.
4611 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
4612 field, to better cope with ENABLE_CHECKING and calls that modify a
4613 Lisp_Object using its old value.
4614
4615 2000-04-04 Gerd Moellmann <gerd@gnu.org>
4616
4617 * window.c (compare_window_configurations): Signal an error
4618 if parameters C1 or C2 aren't window configurations.
4619
4620 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
4621 AFTER_POTENTIAL_GC calls around calls to functions that can
4622 signal an error and thus invoke the debugger.
4623
4624 2000-04-03 Gerd Moellmann <gerd@gnu.org>
4625
4626 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
4627 an error if decoding fails.
4628
4629 * keyboard.c (lispy_mouse_names): Variable removed.
4630 (Vlispy_mouse_stem): New variable.
4631 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
4632 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
4633 for any mouse button number. Increase size of mouse_syms and
4634 button_down_location as needed. Call modify_event_symbol with
4635 different arguments.
4636 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
4637 Call modify_event_symbol with different arguments.
4638 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
4639 for any button number. Call modify_event_symbol with different
4640 arguments.
4641 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
4642 Accept a string for NAME_ALIST_OR_STEM.
4643
4644 * lisp.h (larger_vector): Add prototype.
4645
4646 * fns.c (larger_vector): Make externally visible.
4647
4648 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
4649
4650 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
4651
4652 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
4653 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
4654 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
4655 we are between str1 and str2.
4656 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
4657 (PATFETCH): Use `TRANSLATE'.
4658 (PATFETCH_RAW): Fetch multibyte char if applicable.
4659 (PATUNFETCH): Remove.
4660 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
4661 When writing a char, write it directly into the pattern buffer rather
4662 than going needlessly through a temp char-array.
4663 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
4664 multibyte magic and remove the useless `#ifdef emacs'.
4665 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
4666 buffer.
4667
4668 * regex.h (struct re_pattern_buffer): Make field `multibyte'
4669 conditional on `emacs'.
4670
4671 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
4672
4673 2000-04-01 Ken Raeburn <raeburn@gnu.org>
4674
4675 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
4676 non-union-type versions of XMARK and friends here, because XMARK
4677 and friends won't work on an integer field if NO_UNION_TYPE is not
4678 defined.
4679 (make_number): Define as a function if it's not defined as a
4680 macro.
4681
4682 * composite.c (run_composite_function): Use NILP when checking for
4683 nil.
4684 (syms_of_composite): Delete local var NARGS, pass an int as first
4685 argument to Fmake_hash_table.
4686
4687 * editfns.c (text_property_stickiness): Use NILP to test
4688 Lisp_Object boolean value.
4689 (Fmessage_or_box): Don't use NILP to test int variable.
4690 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
4691 problems reading from and changing the same lisp value in an
4692 XSETSTRING call.
4693
4694 2000-04-01 Gerd Moellmann <gerd@gnu.org>
4695
4696 * term.c (TN_no_color_video): New variable.
4697 (term_init): Intitialize TN_no_color_video.
4698 (enum no_color_bit): New enumeration.
4699 (MAY_USE_WITH_COLORS_P): New macro.
4700 (turn_on_face): Use it to determine if attributes may be used
4701 combined with colors.
4702
4703 2000-04-01 Ken Raeburn <raeburn@gnu.org>
4704
4705 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
4706 with int lvalues via casts; instead, just yield lisp object
4707 lvalues.
4708 (enlarge_window): Variable sizep now points to Lisp_Object. Use
4709 proper accessor macros.
4710 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
4711 (grow_mini_window): Fix typo getting int value of root->height.
4712
4713 * xdisp.c (compute_string_pos): Fix order of arguments to
4714 string_pos_nchars_ahead.
4715 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
4716 count arg to variable-arg routines like Frun_hook_with_args and
4717 Fformat.
4718 (back_to_previous_visible_line_start)
4719 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
4720 fixed-arg routines like Fget_char_property and Fmake_string.
4721 (reconsider_clip_changes): Use XINT when comparing integer lisp
4722 objects, or passing them as int arguments.
4723 (mark_window_display_accurate, insert_left_trunc_glyphs)
4724 (append_space, extend_face_to_end_of_line): Use make_number when
4725 storing or passing integer values as lisp objects.
4726 (set_cursor_from_row, highlight_trailing_whitespace): Use
4727 INTEGERP, not implicit test against zero, for glyph object.
4728 (try_window_id): Don't use make_number when we want an int value.
4729
4730 * xfaces.c (xlfd_symbolic_value): Make last argument a
4731 Lisp_Object, to be consistent with callers.
4732 (Fbitmap_spec_p): Use XINT to get numeric value of height.
4733 (lface_hash): Apply XFASTINT to lisp values before folding in.
4734
4735 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
4736 fill in window width and height. Pass an int, not a lisp object,
4737 as first arg to Finsert.
4738
4739 2000-04-01 Gerd Moellmann <gerd@gnu.org>
4740
4741 * xfaces.c (realize_basic_faces): Block input while realizing
4742 the faces.
4743
4744 * keyboard.c (lispy_mouse_names): Add additional mouse names.
4745
4746 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
4747
4748 2000-03-31 Gerd Moellmann <gerd@gnu.org>
4749
4750 * xterm.c (x_produce_glyphs): When displaying unibyte text
4751 or ASCII, handle case that per-char metric is null.
4752
4753 2000-03-30 Ken Raeburn <raeburn@gnu.org>
4754
4755 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
4756
4757 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
4758 XSUBR, XBUFFER): Verify correct object type before returning
4759 pointer, using eassert.
4760 * frame.h (XFRAME): Likewise.
4761
4762 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
4763 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
4764 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
4765 type.
4766 * data.c (set_internal): Likewise.
4767 * dispextern.h (WINDOW_WANTS_MODELINE_P,
4768 WINDOW_WANTS_HEADER_LINE_P): Likewise.
4769 * fileio.c (auto_save_1): Likewise.
4770 * insdel.c (check_markers): Likewise.
4771 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
4772 * undo.c (record_insert): Likewise.
4773 * vmsproc.c (child_sig): Likewise.
4774 * window.c (unshow_buffer, window_loop): Likewise.
4775 * xterm.c (x_erase_phys_cursor): Likewise.
4776
4777 2000-03-30 Gerd Moellmann <gerd@gnu.org>
4778
4779 * xfns.c (free_image_cache): Free the cache structure itself
4780 last, after all its members have been freed.
4781
4782 * lisp.h (xstrdup): Add prototype.
4783
4784 * alloc.c (xstrdup): Moved here from xfaces.c.
4785 (allocating_for_lisp): Variable removed.
4786 (lisp_malloc): Block input around the calls to malloc and
4787 mem_insert.
4788
4789 * xfaces.c (realize_tty_face): Use find_symbol_value instead
4790 of Fsymbol_value.
4791 (xstrdup): Moved to alloc.c.
4792
4793 2000-03-29 Ken Raeburn <raeburn@gnu.org>
4794
4795 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
4796
4797 * emacs.c (main): Fix sense of no-loadup test.
4798
4799 * config.in (ENABLE_CHECKING): Undef.
4800
4801 * lisp.h (struct interval): Replace "parent" field with a union of
4802 interval pointer and Lisp_Object; add new bitfield to use as
4803 discriminant. Change other flag fields to bitfields.
4804 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
4805 is defined and the supplied test fails, print a message and
4806 abort.
4807 (eassert): New macro. Use CHECK to provide an assert-like
4808 facility.
4809
4810 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
4811 pointers; abort if the value looks like a lisp object.
4812 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
4813 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
4814 Modify for new interval parent definition.
4815
4816 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
4817 UNMARK_BALANCE_INTERVALS): Update references that need an
4818 addressable lisp object in the interval structure.
4819 (die): New function.
4820 (suppress_checking): New variable.
4821
4822 * intervals.c (interval_start_pos): Just return 0 if there's no
4823 parent object.
4824
4825 2000-03-29 Gerd Moellmann <gerd@gnu.org>
4826
4827 * lread.c (read1): Accept `.' (period) as symbol start like in CL
4828 and earlier Emacs versions.
4829
4830 * keyboard.c (Ftop_level): Cancel busy-cursor.
4831
4832 * eval.c (call_debugger): Cancel busy-cursor.
4833
4834 2000-03-29 Kenichi Handa <handa@etl.go.jp>
4835
4836 * search.c (Freplace_match): Adjust multibyteness of the current
4837 buffer and NEWTEXT. Free allocated memory before signaling an
4838 error.
4839
4840 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
4841
4842 * regex.c (analyse_first): New function obtained by ripping out most
4843 of re_compile_fastmap and generalizing it a little bit so that it
4844 can also just return whether a given (sub)pattern can match the empty
4845 string or not.
4846 (regex_compile): Use `analyse_first' to decide whether the loop-check
4847 needs to be done or not for *, +, *? and +? (the loop check is costly
4848 for non-greedy repetition).
4849 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
4850
4851 2000-03-28 Dave Love <fx@gnu.org>
4852
4853 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
4854 alpha.
4855
4856 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
4857
4858 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
4859
4860 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
4861 an expression.
4862 (enum re_opcode_t): Update description of succeed_n.
4863 (PATFETCH): Always define.
4864 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
4865 operators, char classes, shy-groups and intervals).
4866 Optimize special cases of intervals so as to only use succeed_n and
4867 jump_n when really needed.
4868 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
4869 that we don't have to handle the special cases any more.
4870 Simplify on_failure_jump handling as well.
4871
4872 2000-03-28 Jason Rumney <jasonr@gnu.org>
4873
4874 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
4875
4876 2000-03-27 Gerd Moellmann <gerd@gnu.org>
4877
4878 * s/freebsd.h (GC_SETJMP_WORKS): Define.
4879
4880 * s/msdos.h (GC_SETJMP_WORKS): Define.
4881
4882 * alloc.c (mark_maybe_object): New function.
4883 (mark_memory): Use it.
4884 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
4885 (setjmp_tested_p, longjmp_done): New variables.
4886 (test_setjmp): New function.
4887 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
4888 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
4889
4890 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
4891 to DEC_TEXT_POS and INC_TEXT_POS.
4892
4893 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
4894 with parameter MULTIBYTE_P.
4895
4896 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
4897 MULTIBYTE_P.
4898
4899 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
4900 buffers because it looks for multibyte character byte sequences
4901 which don't exist in unibyte text.
4902
4903 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
4904
4905 * xfaces.c (register_color, unregister_color, unregister_colors)
4906 [DEBUG_X_COLORS]: New functions.
4907 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
4908
4909 * xfns.c (x_set_cursor_color): Get color reference counts right.
4910
4911 * xterm.c (x_copy_color): New function.
4912 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
4913
4914 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
4915 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
4916 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
4917 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
4918 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
4919 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
4920 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
4921 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
4922 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
4923 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
4924
4925 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
4926 names for handling per-buffer variables.
4927
4928 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
4929 instead of MAX_BUFFER_LOCAL_VARS.
4930 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
4931
4932 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
4933
4934 * xfns.c (x_specified_cursor_type): New function.
4935 (x_set_cursor_type): Use it.
4936
4937 * buffer.h (struct buffer): Add cursor_type.
4938
4939 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
4940
4941 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
4942 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
4943 opcode.
4944 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
4945 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
4946 executing it as well as when popping it off the stack to find infinite
4947 loops in non-greedy repetition operators.
4948
4949 2000-03-26 Gerd Moellmann <gerd@gnu.org>
4950
4951 * doc.c (Qfunction_documentation): New variable.
4952 (syms_of_doc): Initialize Qfunction_documentation.
4953 (Fdocumentation): If FUNCTION is a symbol with non-nil
4954 `function-documentation' property, return a documentation derived
4955 from that.
4956
4957 * buffer.c (syms_of_buffer): Add default-cursor-type.
4958 (init_buffer_once): Don't let cursor_type have a local value
4959 in every buffer.
4960
4961 * xterm.c (x_display_and_set_cursor): Choose cursor depending
4962 on buffer-local value of cursor_type.
4963 (x_draw_bar_cursor): Add parameter WIDTH.
4964
4965 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
4966 (init_buffer_once): Set default cursor_type value to t.
4967 Mark cursor_type as local everywhere.
4968 (syms_of_buffer): New per-buffer variable cursor-type.
4969
4970 * buffer.h (struct buffer): Remove member local_var_flags,
4971 add local_flags.
4972 (MAX_BUFFER_LOCAL_VARS): New macro.
4973 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
4974 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
4975 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
4976 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
4977
4978 * print.c (print_object): Use new macros for per-buffer
4979 variables.
4980
4981 * category.c (Fset_category_table): Use new macros for per-buffer
4982 variables.
4983
4984 * buffer.c (buffer_permanent_local_flags): Make a char array.
4985 (max_buffer_local_idx): New variable.
4986 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
4987 for new handling of per-buffer variables.
4988 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
4989 (init_buffer_once): Initialize per-buffer vars differently.
4990 Set max_buffer_local_idx.
4991
4992 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
4993 variables.
4994
4995 * lread.c (defvar_per_buffer): Use new macros for per-buffer
4996 variables.
4997
4998 * data.c (do_symval_forwarding, store_symval_forwarding)
4999 (find_symbol_value, set_internal, default_value, Fset_default)
5000 (Fkill_local_variable, Flocal_variable_p): Use new macros for
5001 per-buffer variables.
5002
5003 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
5004
5005 2000-03-24 Gerd Moellmann <gerd@gnu.org>
5006
5007 * xterm.c (x_term_init): Unblock input around call1 of
5008 Qvendor_specific_keysyms.
5009
5010 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
5011 (find_defun_start): Consider an open parenthesis in column 0
5012 a defun start only if open_paren_in_column_0_is_defun_start is set.
5013 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
5014
5015 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
5016
5017 * eval.c (Fautoload): Add entry in load-history (if after dump).
5018 * lread.c (load-history): Update docstring.
5019
5020 2000-03-24 Gerd Moellmann <gerd@gnu.org>
5021
5022 * indent.c (Fvertical_motion): Always use the current buffer.
5023 Temporarily change the window's buffer, if necessary.
5024
5025 2000-03-23 Gerd Moellmann <gerd@gnu.org>
5026
5027 * xterm.c (fast_find_position): Make sure not to consider rows
5028 not visible in the window.
5029
5030 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
5031
5032 * regex.c (enum syntaxcode): Provide default for non-Emacs.
5033 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
5034
5035 2000-03-22 Jason Rumney <jasonr@gnu.org>
5036
5037 * w32menu.c (single_submenu): Set help string to NULL if none.
5038 (w32_menu_show): Set help string correctly.
5039 (add-menu-item): Set help string in MIIM_DATA for menu item.
5040 Load SetMenuItemInfoA explicitly.
5041 (w32_menu_display_help): New function.
5042
5043 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
5044 (QCdata): Moved to xdisp.c.
5045
5046 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
5047 (Vw32_charset_to_codepage_alist): Removed.
5048 (Vw32_charset_info_alist): New variable.
5049 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
5050 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
5051 greek, hebrew, thai, johab, mac, unicode]): New symbols.
5052 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
5053 with TODO comment.
5054 (w32_codepage_for_font): Use Vw32_charset_info_alist.
5055 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
5056 Define Vw32_charset_info_alist and w32_charset symbols.
5057
5058 2000-03-22 Jason Rumney <jasonr@gnu.org>
5059
5060 * makefile.nt (w32bdf.obj): Update dependencies.
5061
5062 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
5063
5064 * w32fns.c: Include fontset.h after dispextern.h.
5065 (Fx_create_frame): Do not create fontset.
5066 (w32_load_system_font): Doc fix.
5067 (Fx_close_connection): Free full_name if it is not shared.
5068
5069 * w32term.c: Include fontset.h after dispextern.h.
5070 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
5071 updated.
5072 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
5073 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
5074 (w32_font_is_double_byte): New function, needs body.
5075 (x_append_glyph): Set glyph->glyph_not_available_p.
5076 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
5077 it->charset. If it->multibyte_p is zero and it->c is a multibyte
5078 character, convert it to a unibyte character.
5079 (struct glyph_string): Delete member `charset'.
5080 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
5081 calculating it is found.
5082 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
5083 the case that per char metric is not available correctly.
5084 (x_fill_glyph_string): Handle the case that the specific glyph is
5085 not available correctly.
5086 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
5087 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
5088 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
5089 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
5090 fontset. Don't call FS_LOAD_FONT.
5091
5092 2000-03-22 Ken Raeburn <raeburn@gnu.org>
5093
5094 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
5095 (INT_LISPLIKE): New macro.
5096 (NULL_INTERVAL_P): Use it.
5097 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
5098 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
5099 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
5100
5101 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
5102 explicit references to "parent" field of struct interval and
5103 associated unclean type conversions.
5104 * intervals.c (create_root_interval, root_interval, rotate_right,
5105 rotate_left, balance_possible_root_interval, split_interval_right,
5106 split_interval_left, interval_start_pos, find_interval,
5107 next_interval, previous_interval, update_interval,
5108 adjust_intervals_for_insertion, delete_node, delete_interval,
5109 adjust_intervals_for_deletion, merge_interval_right,
5110 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
5111 copy_intervals_to_string): Likewise.
5112 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
5113 Likewise.
5114 * syntax.c (update_syntax_table): Likewise.
5115
5116 * intervals.c (reproduce_tree_obj): New function, like
5117 reproduce_tree but takes a Lisp_Object for the parent. Declare
5118 with prototype.
5119 (graft_intervals_into_buffer): Use it when appropriate.
5120 (reproduce_tree): Declare with prototype.
5121 (balance_possible_root_interval): Check that the parent is a lisp
5122 object before trying to examine its type.
5123
5124 2000-03-22 Gerd Moellmann <gerd@gnu.org>
5125
5126 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
5127 as strings only if both are known to be strings.
5128
5129 * s/openbsd.h (LIBS_TERMCAP): Undef.
5130
5131 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
5132
5133 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
5134 definitions for non-Emacs compilation.
5135 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
5136 outside of `#ifdef emacs'.
5137 (print_partial_compiled_pattern): Update.
5138 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
5139 (re_compile_fastmap): Merge handling of charset and charset_not (for
5140 emacs and non-emacs compilation as well).
5141 Similarly for (not)categoryspec and (not)syntaxspec.
5142 Don't use the fastmap when reaching `anychar' since the added
5143 complexity is not justified.
5144 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
5145 and (not)syntaxspec. Merge (not)categoryspec.
5146
5147 2000-03-22 Kenichi Handa <handa@etl.go.jp>
5148
5149 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
5150 FACE_FOR_CHAR): Define them differently for the configuration of
5151 --without-x.
5152
5153 2000-03-21 Dave Love <fx@gnu.org>
5154
5155 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
5156 doc string.
5157
5158 2000-03-21 Gerd Moellmann <gerd@gnu.org>
5159
5160 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
5161 (lface_fully_specified_p): Don't check contents of
5162 LFACE_FONT_INDEX because that attribute is optional.
5163 (realize_x_face): Remove now unwarranted xassert.
5164
5165 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
5166
5167 The following changes are to make font selection based on
5168 characters, not charset. In addition, they recover fontset
5169 facilities while utilizing the new font selection mechanism.
5170
5171 * Makefile.in (fontset.o): Depend on dispextern.h.
5172
5173 * alloc.c (mark_face_cache): Don't mark face->registry.
5174
5175 * dispextern.h (struct glyph): New member glyph_not_available_p.
5176 Use 22 bits for face_id.
5177 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
5178 (struct face): Delete member registry, new member ascii_face.
5179 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
5180 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
5181 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
5182 (struct it): Delete member charset, new member
5183 glyph_not_available_p.
5184
5185 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
5186 (struct fontset_info, struct fontset_data): Structs removed.
5187 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
5188 Vglobale_fontset_alist, font_idx_temp): Externs removed.
5189 (fs_load_font, fs_query_fontset): Adjusted for new argument.
5190 (fs_free_face_fontset, fontset_font_pattern,
5191 face_suitable_for_char_p, face_for_char,
5192 make_fontset_for_ascii_face): Extern them.
5193 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
5194 (FS_LOAD_FACE_FONT): New macro.
5195
5196 * fontset.c: All codes rewritten or adjusted for the change of
5197 fontset implementation. Now fontset is represented by char table.
5198 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
5199 removed.
5200 (my_strcasecmp): Function removed.
5201 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
5202 variables.
5203 (AREF, ASIZE): New macros.
5204 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
5205 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
5206 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
5207 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
5208 fontset_id_valid_p, font_family_registry, fontset_name,
5209 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
5210 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
5211 New functions.
5212 (fs_load_font): New arg FACE. Caller changed.
5213 (fs_query_fontset): Argument changed. Caller changed.
5214 (Fquery_fontset): call fs_query_fontset.
5215 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
5216 Functions removed.
5217 (clear_fontset_elements, check_registry_encoding,
5218 check_fontset_name): New functions.
5219 (syms_of_fontset): Set char-table-extra-slots property of fontset
5220 to 3. Staticpro and initialize Vfontset_table and
5221 Vdefault_fontset. Defsubr fontset_font and fontset_list.
5222
5223 * frame.h (struct frame): Member `fontset_data' removed.
5224 (FRAME_FONTSET_DATA): Macro removed.
5225
5226 * frame.c (make_frame): Don't allocate f->fontset_data.
5227 (Fdelete_frame): Don't free f->fontset_data.
5228
5229 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
5230
5231 * xdisp.c (charset_at_position): Function removed.
5232 (init_iterator): Don't set member charset of struct `it'.
5233 (handle_face_prop, reseat_to_string, set_iterator_to_next,
5234 next_element_from_display_vector, insert_left_trunc_glyphs):
5235 Likewise.
5236 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
5237 FACE_FOR_CHARSET.
5238 (get_next_display_element, append_space,
5239 extend_face_to_end_of_line): Likewise.
5240
5241 * xfaces.c (Qx_charset_registry, Vface_default_registry):
5242 Variables removed.
5243 (clear_font_table, frame_update_line_height, load_face_font):
5244 Adjusted for the change of fontset implementation.
5245 (load_face_fontset_font): Function removed.
5246 (pixel_point_size): New function.
5247 (font_list): Argument type changed. Caller changed.
5248 (LFACE_FONT): New macro.
5249 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
5250 (set_lface_from_font_name): Type of arg FONTNAME is changed to
5251 Lisp_Object. Determine the font name by actually loading a font
5252 by the specified pattern. Set LFACE_FONT (lface) to the specified
5253 pattern. Even if a font is not found, don't try alternatives.
5254 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
5255 (set_font_frame_param): If `font' is specified in lface, use it.
5256 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
5257 (lface_same_font_attributes_p): Likewise.
5258 (make_realized_face): Arguent changed. Caller changed. Set
5259 face->ascii_face to face itself.
5260 (free_realized_face): Free face->fontset if face is for ASCII.
5261 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
5262 deduce_unibyte_registry, x_charset_registry): Functions removed.
5263 (free_realized_multibyte_face): New function.
5264 (lookup_face, lookup_named_face, lookup_derived_face): Argument
5265 changed. Caller changed.
5266 (try_font_list): Argument type changed.
5267 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
5268 (choose_face_font): Argument changed. Handle fontset properly.
5269 (choose_face_fontset_font): Function removed.
5270 (realize_default_face, realize_named_face): Don't remove the
5271 former face here.
5272 (realize_face): Argument changed. Caller changed. Remove face
5273 with the arg former_face_id in advance. Load font for the new
5274 face.
5275 (realize_x_face): Argument changed. Caller changed. For a
5276 multibyte character, share fontset with base_face. For a single
5277 byte character, make a new realized fontset. Don't load a font
5278 here.
5279 (realize_tty_face): Argument changed. Caller changed.
5280 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
5281 (face_at_buffer_position): Don't check multibyte_p for returning
5282 DEFAULT_FACE_ID.
5283 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
5284 FACE_SUITABLE_FOR_CHARSET_P.
5285 (syms_of_xfaces): Remove code for Qx_charset_registry and
5286 Vface_default_registry.
5287
5288 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
5289 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
5290 (x_per_char_metric): Don't try FONT->default_char. Even if
5291 pcm->width is zero, glyph bits may exist.
5292 (x_encode_char): Always initialize char2b->byte1.
5293 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
5294 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
5295 changed.
5296 (x_append_glyph): Set glyph->glyph_not_available_p.
5297 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
5298 it->charset. Handle the case that per char metric is not
5299 available. If it->multibyte_p is zero and it->c is a multibyte
5300 character, convert it to a unibyte character.
5301 (struct glyph_string): Delete member `charset'.
5302 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
5303 the case that per char metric is not available correctly.
5304 (x_fill_glyph_string): Handle the case that the specific glyph is
5305 not available correctly.
5306 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
5307 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
5308 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
5309 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
5310 fontset. Don't call FS_LOAD_FONT.
5311
5312 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
5313 (x_create_tip_frame): Likewise.
5314 (Fx_close_connection): Free full_name of font_info.
5315
5316 * fns.c (optimize_sub_char_table): New function.
5317 (Foptimize_char_table): New function.
5318 (syms_of_fns): Defsubr Soptimize_char_table.
5319
5320 2000-03-20 Gerd Moellmann <gerd@gnu.org>
5321
5322 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
5323 only if buffer is displayed in some window.
5324
5325 * xdisp.c (handle_single_display_prop): Initialize local `value'.
5326 (try_window_reusing_current_matrix): Don't call scroll run
5327 function if run's current and desired position are the same;
5328 this prevents cursor flickering.
5329
5330 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
5331
5332 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
5333
5334 * regex.c (RE_STRING_CHAR): New macro.
5335 (GET_CHAR_AFER_2): Remove.
5336 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
5337 (enum re_opcode_t): Remove on_failure_jump_exclusive.
5338 (print_partial_compiled_pattern, re_compile_fastmap)
5339 (re_match_2_internal): Remove on_failure_jump_exclusive.
5340 (regex_compile): Turn optimizable P+ loops into PP*, so that the
5341 optimization only need to work for * (ie. can use of_keep_string_jump).
5342 Remove the special case for .*\n since it is now covered by the general
5343 optimization.
5344 (re_search_2): Don't bother with `room'.
5345 (skip_one_char): New function.
5346 (skip_noops): Simplify since `memory' is not needed any more.
5347 (mutually_exclusive_p): Restructure slightly to use `switch' and
5348 add handling for "all" remaining cases.
5349 (re_match_2_internal): Change on_failure_jump_smart to use
5350 on_failure_keep_string_jump (and redirect the end-of-loop jump)
5351 rather than on_failure_jump_exclusive.
5352
5353 2000-03-19 Gerd Moellmann <gerd@gnu.org>
5354
5355 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
5356 number of bits per RGB because it's everywhere used as the depth
5357 of the visual.
5358
5359 * term.c (calculate_costs): Remove code dealing with X frames.
5360
5361 2000-03-19 Richard M. Stallman <rms@gnu.org>
5362
5363 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
5364
5365 2000-03-18 Gerd Moellmann <gerd@gnu.org>
5366
5367 * lread.c (read_integer): Unread the last char not consumed.
5368
5369 2000-03-17 Gerd Moellmann <gerd@gnu.org>
5370
5371 * xterm.c (x_update_window_cursor): Don't update in frames
5372 which are in the process of being deleted.
5373
5374 2000-03-16 Gerd Moellmann <gerd@gnu.org>
5375
5376 * Makefile.in (mostlyclean): Add `*.core'.
5377 (clean): Add `bootstrap-emacs'.
5378
5379 * lread.c (read_integer): New function.
5380 (read1): Support read syntax #o, #x, #b, #r.
5381
5382 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
5383
5384 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
5385 make sure POINTER_TO_OFFSET gives the same value before and after
5386 PREFETCH. Use `dfail' to guarantee "atomic" matching.
5387 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
5388 (debug): Now only active if > 0 rather than if != 0.
5389 (DEBUG_*): Update for the new meaning of `debug'.
5390 (print_partial_compiled_pattern): Add missing `succeed' case. Use
5391 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
5392 in `succeed_n', `jump_n' and `set_number_at'.
5393 (store_op1, store_op2, insert_op1, insert_op2)
5394 (at_begline_loc_p, at_endline_loc_p): Add prototype.
5395 (group_in_compile_stack): Move to after its arg's types are
5396 declared and add a prototype.
5397 (PATFETCH): Define in terms of PATFETCH_RAW.
5398 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
5399 wrapper.
5400 (QUIT): Redefine as a nop except for NTemacs.
5401 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
5402 indentation of the greedy-op and shy-group code.
5403 (at_(beg|end)line_loc_p): Fix argument's types.
5404 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
5405 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
5406 (MATCHING_IN_FIRST_STRING): Remove.
5407 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
5408 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
5409 QUIT unconditionally.
5410
5411 2000-03-15 Gerd Moellmann <gerd@gnu.org>
5412
5413 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
5414 a sole completion.
5415
5416 * process.c (send_process): Add a hint that the function
5417 can call Lisp code to its comment.
5418
5419 * lread.c (load_dangerous_libraries): New variable.
5420 (Vbytecomp_version_regexp): New variable.
5421 (safe_to_load_p): New function.
5422 (Fload): Handle files not compiled with Emacs specially.
5423 (syms_of_lread): New Lisp variable load-dangerous-libraries.
5424
5425 2000-03-14 Gerd Moellmann <gerd@gnu.org>
5426
5427 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
5428
5429 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
5430 support functions only if HAVE_X11R6_XIM is defined.
5431 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
5432
5433 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
5434
5435 * xfns.c (X_I18N_INHIBITED): Don't define.
5436 (create_frame_xic): Remove conditional compilation on
5437 X_I18N_INHIBITED.
5438 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
5439
5440 * config.in (HAVE_X_I18N): Moved here from xterm.h.
5441 (HAVE_X11R6_XIM): Define.
5442
5443 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
5444
5445 * xterm.c (x_term_init): Add support for X resource `synchronous'.
5446 If set, call XSynchronize.
5447
5448 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
5449
5450 * regex.c: Declare a new type `re_char' used throughout the code
5451 for the string char type. It's `const unsigned char' to match the
5452 rest of Emacs. Consistently make sure all pointers to strings use
5453 it and make sure all pointers into the pattern use `unsigned
5454 char'.
5455 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
5456 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
5457 code duplication.
5458
5459 * charset.h (GET_CHAR_AFTER_2): Remove.
5460 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
5461
5462 2000-03-12 Ken Raeburn <raeburn@gnu.org>
5463
5464 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
5465 variable before the invocation of YMF_PASS_LDFLAGS, in case both
5466 of them try to use backquotes.
5467
5468 2000-03-12 Dave Love <fx@gnu.org>
5469
5470 * unexelf.c: Restore changes of 1999-10-19.
5471 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
5472 fix its type and alignment; copy it from current process.
5473
5474 2000-03-12 Gerd Moellmann <gerd@gnu.org>
5475
5476 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
5477 has been found. Fix bug not computing timer's predecessor.
5478
5479 * fileio.c (Fread_file_name): Handle case that DIR contains a
5480 file name.
5481
5482 * window.c (Fsave_window_excursion): Doc fix.
5483
5484 * xfns.c (x_defined_color): Rewritten to use
5485 x_allocate_nearest_color.
5486
5487 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
5488
5489 * msdos.c (vga_installed): New function, code moved from
5490 dos_set_window_size.
5491 (Qbar, Qcursor_type, outside_cursor): New variables.
5492 (syms_of_msdos): Intern and staticpro them.
5493 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
5494 shape used outside Emacs when called for the first time.
5495 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
5496 cursor shape used outside Emacs.
5497 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
5498 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
5499 type has changed.
5500 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
5501 parameters specify the cursor. Make qreverse a global
5502 variable (renamed to Qreverse).
5503
5504 2000-03-09 Gerd Moellmann <gerd@gnu.org>
5505
5506 * fns.c (Fy_or_n_p): Cancel busy-cursor.
5507
5508 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
5509
5510 This is a big redesign of failure-stack and register handling, prompted
5511 by bugs revealed when trying to add shy-groups. Overall, what happened
5512 is that loops are now structured a little differently, groups can be
5513 shy and the code is a little simpler.
5514
5515 * regex.h: Update the copyright.
5516 (RE_SHY_GROUPS): New value.
5517 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
5518 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
5519
5520 * regex.c (enum re_opcode_t): Remove jump_past_alt,
5521 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
5522 on_failure_jump_(exclusive, loop and smart). Also fix the comment
5523 for (start|stop)_memory since they now only take one argument (the
5524 second has becomes unnecessary).
5525 (print_partial_compiled_pattern): Adjust for changes in
5526 re_opcode_t.
5527 (print_compiled_pattern): Use %ld to printf long ints and flush to
5528 make debugging a little easier.
5529 (union fail_stack_elt): Make the integer unsigned.
5530 (struct fail_stack_type): Add a `frame' element.
5531 (INIT_FAIL_STACK): Init `frame' as well.
5532 (POP_PATTERN_OP): New macro for re_compile_fastmap.
5533 (DEBUG_PUSH, DEBUG_POP): Remove.
5534 (NUM_REG_ITEMS): Remove.
5535 (NUM_NONREG_ITEMS): Adjust.
5536 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
5537 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
5538 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
5539 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
5540 macros.
5541 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
5542 address pushed is not the destination of the jump but the source
5543 of it instead.
5544 (NUM_FAILURE_ITEMS): Remove.
5545 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
5546 registers before the actual failure point). Don't hardcode any
5547 meaning for str==NULL anymore.
5548 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
5549 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
5550 Remove.
5551 (REG_UNSET_VALUE): Use NULL (why not?).
5552 (compile_range): Remove declaration since it doesn't exist.
5553 (struct compile_stack_elt_t): Remove inner_group_offset.
5554 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
5555 (regex_grow_registers): Remove dead code.
5556 (FIXUP_ALT_JUMP): New macro.
5557 (regex_compile): Add shy-groups Change loops to use
5558 on_failure_jump_smart&jump instead of
5559 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
5560 initial (dummy_failure_)jump. Remove c1_base (looks like unused
5561 variable to me). Use `jump' instead of `jump_past_alt' and don't
5562 bother with push_dummy_failure in alternatives since it is now
5563 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
5564 emacs' for (re)allocating the stack.
5565 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
5566 from loop when bufp->can_be_null rather than jumping to `done'.
5567 Avoid jumping backwards so as to ensure termination. Use
5568 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
5569 backreferences. Remove dead code in handling of `anychar'.
5570 (skip_noops, mutually_exclusive_p): New functions taken from the
5571 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
5572 improve mutually_exclusive_p to handle ".+\n".
5573 (lowest_active_reg, highest_active_reg,
5574 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
5575 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
5576 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
5577 variables. Push register (in `start_memory') on the stack rather
5578 than storing it in old_reg(start|end). Remove the cycle detection
5579 from `stop_memory', replaced by the use of on_failure_jump_loop
5580 for greedy loops. Add code for the new on_failure_jump_<foo>.
5581 Remove ad-hoc code in `on_failure_jump' to push more registers in
5582 the case of a loop. Take out code from `maybe_pop_jump' into
5583 separate functions and adapt it to the semantics of
5584 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
5585 and push_dummy_failure. Remove dummy_failure handling and
5586 handling of `failures to jump to on_failure_jump' (this last one
5587 was already dead code, it seems).
5588 (group_match_null_string_p, alt_match_null_string_p)
5589 (common_op_match_null_string_p): Remove.
5590
5591 2000-03-08 Dave Love <fx@gnu.org>
5592
5593 * config.in: Don't depend on __STDC__ for volatile.
5594 Add POINTER_TYPE, PTR, PROTOTYPES.
5595
5596 * hftctl.c, strftime.c: Use PROTOTYPES.
5597 * eval.c (find_handler_clause): Likewise.
5598
5599 * mem-limits.h: Use POINTER_TYPE.
5600
5601 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
5602 (memory_warnings): Declare using POINTER_TYPE.
5603
5604 2000-03-08 Gerd Moellmann <gerd@gnu.org>
5605
5606 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
5607
5608 * xdisp.c (display_echo_area): Temporarily inhibit garbage
5609 collection.
5610
5611 * xfns.c: Remove obsolete code in #if 0.
5612 (Fx_focus_frame): New function.
5613
5614 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
5615
5616 * coding.c (coding_category_name): Add coding-category-utf-8,
5617 coding-category-utf-16-be, coding-category-utf-16-le.
5618 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
5619 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
5620 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
5621 (detect_coding_utf_8): New function.
5622 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
5623 UTF_16_LOW_SURROGATE_P): New macros.
5624 (detect_coding_utf_16): New function
5625 (detect_coding_mask): When priorities are specified, skip any
5626 categories that have `nil' coding-system. Fix bug of returning
5627 wrong mask when PRIORITIES is specified and detect_coding_XXX()
5628 returns a mask not set in PRIORITIES.
5629 (detect_eol_type_in_2_octet_form): New function.
5630 (detect_eol): selects detect_eol_type_XXX to call according to
5631 cooding->category_idx.
5632 (detect_coding_system): Remove `nil' coding-system in the result.
5633 (Fupdate_coding_systems_internal): Update all coding-categories.
5634
5635 * coding.h (CODING_CATEGORY_IDX_UTF_8,
5636 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
5637 macros.
5638 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
5639 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
5640 CODING_CATEGORY_IDX_UTF_16_LE.
5641 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
5642 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
5643 (CODING_CATEGORY_MASK_ANY): Include the above macros.
5644 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
5645
5646 2000-03-07 Gerd Moellmann <gerd@gnu.org>
5647
5648 * doc.c (Fdocumentation_property): If value is not a string,
5649 and doesn't refer to etc/DOC, evaluate it to obtain a string.
5650
5651 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
5652 close the display with XtCloseDisplay. This caused a bus error
5653 on OpenWindows.
5654
5655 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
5656 complete but not unique.
5657
5658 2000-03-06 Gerd Moellmann <gerd@gnu.org>
5659
5660 * process.c (send_process): Remove local variable `procname' that
5661 might become invalid when a GC happens. Instead, access the
5662 process name slot directly.
5663
5664 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
5665 orig_height if set.
5666
5667 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
5668 orig_height if set.
5669
5670 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
5671
5672 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
5673 glyph matrices have been freed.
5674
5675 2000-03-05 Gerd Moellmann <gerd@gnu.org>
5676
5677 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
5678 (bootstrap-temacs): Set LC_ALL to C like for temacs.
5679
5680 * xfns.c (QCdata): Moved to xdisp.c.
5681
5682 * xdisp.c (QCdata): Moved here from xfns.c.
5683 (syms_of_xdisp): Initialize QCdata.
5684
5685 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
5686
5687 * window.c (coordinates_in_window): Use
5688 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
5689 FRAME_INTERNAL_BORDER_WIDTH.
5690
5691 * xdisp.c (try_window_id): Recompute unchanged information if
5692 it is obviously invalid.
5693
5694 * xterm.c (x_term_init): Create a colormap if not using the
5695 default visual.
5696
5697 * xterm.h (select_visual): Change prototype.
5698
5699 * xfns.c (select_visual): Rewritten. Recognize user-specified
5700 visual classes.
5701 (visual_classes): New variable.
5702
5703 2000-03-04 Gerd Moellmann <gerd@gnu.org>
5704
5705 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
5706 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
5707 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
5708 (x_decode_color): Don't handle allocation of white and black
5709 specially.
5710 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
5711 XtNcolormap resources.
5712 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
5713 (Fx_create_frame): Initialize color members of x_output structure.
5714 (xpm_load): Pass colormap to XPM lib.
5715
5716 * xfaces.c (x_free_colors): Access colormap of frame using
5717 FRAME_X_COLORMAP. Be paranoid about freeing black and white
5718 when default colormap is used.
5719
5720 * xterm.c (x_term_init): Set Colormap member of x_display_info
5721 structure. Copy colormap if resource `privateColormap' is
5722 specified (PseudoColor only).
5723 (x_setup_relief_color): Access colormap of frame using
5724 FRAME_X_COLORMAP.
5725
5726 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
5727 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
5728
5729 2000-03-04 Jason Rumney <jasonr@gnu.org>
5730
5731 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
5732 other non-platform-specific equivalents.
5733 [WINDOWSNT]: Include w32term.h, fontset.h and define X
5734 specific functions and macros as their w32 equivalents where
5735 non-platform-specifics are not available.
5736 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
5737 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
5738 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
5739 (frame_update_line_height): Use macros to access f->output_data.
5740 (defined_color): Remove FIXME comments; fixed.
5741 (x_face_list_fonts, prepare_face_for_display): Put X specifics
5742 into #ifdef blocks. Add WINDOWSNT blocks.
5743 (Fx_list_fonts): Use macros for accessing font data.
5744 (set_lface_from_font_name): Different default fonts for X and
5745 WINDOWSNT.
5746 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
5747 scalable for backward compatibility.
5748 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
5749 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
5750
5751 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
5752 syms_of_w32faces.
5753
5754 * makefile.nt (w32faces.obj): Remove.
5755 (xfaces.obj): Add.
5756
5757 2000-03-03 Jason Rumney <jasonr@gnu.org>
5758
5759 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
5760 correct parameters.
5761
5762 2000-03-03 Ken Raeburn <raeburn@gnu.org>
5763
5764 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
5765 standard ELF definitions here if the system header does not.
5766
5767 2000-03-03 Gerd Moellmann <gerd@gnu.org>
5768
5769 * xterm.c (PER_CHAR_METRIC): Removed.
5770 (x_per_char_metric_1, x_default_char): New functions.
5771 (x_per_char_metric): If font's default char is invalid, return
5772 metrics of a suitably chosen usable default char.
5773 (x_draw_glyph_string_foreground): If font has an invalid default
5774 char, replace occurrences of unprintable chars with a suitably
5775 chosen usable default char.
5776
5777 2000-03-02 Gerd Moellmann <gerd@gnu.org>
5778
5779 * xterm.c (note_mouse_highlight): Return quickly if frame's
5780 glyph matrices have been freed.
5781
5782 * dispnew.c (free_glyphs): Block input while freeing matrices.
5783
5784 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
5785
5786 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
5787 x_free_colors.
5788
5789 * dispextern.h (x_free_colors): Add prototype.
5790
5791 * xfaces.c (x_free_colors): New function.
5792 (unload_color, free_face_colors): Use it.
5793
5794 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
5795
5796 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
5797
5798 * window.c [MSDOS]: Include msdos.h.
5799
5800 2000-03-02 Dave Love <fx@gnu.org>
5801
5802 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
5803
5804 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
5805 set C_OPTIMIZE_SWITCH for gcc.
5806
5807 2000-03-02 Kenichi Handa <handa@etl.go.jp>
5808
5809 * coding.c (coding_save_composition): Be sure to allocate
5810 composition data area in coding even if there's no composition in
5811 the current run.
5812
5813 2000-03-01 Jason Rumney <jasonr@gnu.org>
5814
5815 * w32term.c: Equivalent changes to those made to xterm.c on
5816 2000-02-25 and 2000-02-24.
5817
5818 * w32fns.c: Equivalent changes to those made to xfns.c on
5819 2000-02-25 and 2000-02-21.
5820
5821 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
5822 correct line-end convention is followed.
5823
5824 * w32menu.c [HAVE_BOXES]: Remove #undef.
5825 (single_keymap_panes): Remove code for simulating checkmarks.
5826 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
5827 Remove code for drawing simulated checkmarks.
5828 (w32_menu_show): make unibyte help string correctly.
5829 (add_menu_item): draw standard Windows checkmarks. Draw radio
5830 buttons as radio buttons if possible.
5831
5832 2000-03-01 Gerd Moellmann <gerd@gnu.org>
5833
5834 * sysdep.c (start_of_text): Don't define this function for NetBSD
5835 with ELF.
5836
5837 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
5838 Don't define.
5839 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
5840 (LINKER): Don't undef if __NetBSD__ is defined.
5841
5842 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
5843
5844 * fileio.c [__NetBSD__]: Define `unix'.
5845
5846 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
5847
5848 2000-02-29 Gerd Moellmann <gerd@gnu.org>
5849
5850 * atimer.c (start_atimer): Don't abort when timers are stopped.
5851 (append_atimer_lists): New function.
5852 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
5853 arbitrary lists of stopped and running atimers.
5854
5855 * atimer.c (cancel_atimer): Handle canceling an atimer when
5856 some timers are stopped.
5857
5858 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
5859 after canceling it.
5860
5861 * fns.c (maybe_resize_hash_table): Handle case of new size
5862 coming out as being the same as old size.
5863
5864 2000-02-27 Jason Rumney <jasonr@gnu.org>
5865
5866 * makefile.nt: Add atimer.h to dependencies.
5867 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
5868 * w32console.c: Only disable window system features for dispextern.h
5869 (initialize_w32_display): Build a display info for the console.
5870 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
5871 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
5872 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
5873 as 2 button mice.
5874 * w32gui.h (struct W32FontStruct): Revert last change after change
5875 to xdisp.c.
5876 * w32menu.c (single_submenu): Set up help string.
5877 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
5878 (w32_dialog_show): Set up help string.
5879 * w32term.c (w32_display_info_for_display): Remove unused function.
5880 (w32_draw_bitmap): Use pre-built bitmaps.
5881 (w32_initialize_display_info): New function to initialize parts of
5882 display info that are common to both GUI and console frames.
5883 (w32_term_init): Use w32_initialize_display_info. Do not set
5884 Vw32_num_mouse_buttons here, as it is not called for console
5885 frames. Build bitmaps for indicating truncated lines etc.
5886 (x_delete_display): Destroy pre-built bitmaps.
5887 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
5888 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
5889
5890 2000-02-27 Dave Love <fx@gnu.org>
5891
5892 * lisp.h: Add a bunch of prototypes.
5893
5894 2000-02-26 Kenichi Handa <handa@etl.go.jp>
5895
5896 * keyboard.c (read_char): Set `usec' correctly.
5897
5898 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
5899
5900 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
5901 `lambda', set reg[RRR] to the map index.
5902 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
5903 reg[RRR] to 0. Otherwise, set it to -1.
5904
5905 2000-02-25 Gerd Moellmann <gerd@gnu.org>
5906
5907 * emacs.c (main): Remove code snippet commented out with `//'.
5908
5909 2000-02-25 Richard M. Stallman <rms@gnu.org>
5910
5911 * fileio.c (Ffile_symlink_p): If result starts with a `/'
5912 and contains a `:', prepend `/:'.
5913
5914 * window.c (select_window_1): If selected_window is nil,
5915 don't "swap out" the buffer's point.
5916 (Fset_window_configuration): Set selected_window to nil
5917 before calling Fselect_window.
5918 (unshow_buffer): Don't set point in buffer from window's point
5919 if another more recently selected window also shows the buffer.
5920
5921 2000-02-25 Gerd Moellmann <gerd@gnu.org>
5922
5923 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
5924
5925 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
5926 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
5927 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
5928 variables.
5929 (DEFAULT_BUSY_CURSOR_DELAY): New define.
5930 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
5931 (hide_busy_cursor): New functions.
5932 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
5933
5934 * minibuf.c (read_minibuf): Cancel busy-cursor.
5935
5936 * keyboard.c (command_loop_1): Call start_busy_cursor before
5937 Fcommand_execute and cancel_busy_cursor after it.
5938 (timer_check): Remove busy-cursor code.
5939 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
5940 cursor timer.
5941
5942 * process.c (wait_reading_process_input): Remove busy-cursor code.
5943
5944 * eval.c (Fsignal): Call cancel_busy_cursor instead of
5945 Fx_hide_busy_cursor.
5946
5947 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
5948 Remove prototyoes.
5949 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
5950
5951 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
5952
5953 * xterm.c (XTread_socket): Remove busy-cursor code.
5954
5955 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
5956 (build_frame_matrix_from_leaf_window): Put code handling
5957 glyph row's not being a slice of a frame row in #if 0.
5958 (sync_window_with_frame_matrix_rows): New function.
5959 (frame_row_to_window): New function.
5960 (mirror_line_dance): Handle copies between windows.
5961
5962 * lread.c (Fload): Use `xfree' instead of `free'.
5963 (init_obarray): Use `xmalloc' instead of `malloc'.
5964
5965 * window.c (Fset_window_buffer): Set WINDOW to the window
5966 after decoding.
5967 (coordinates_in_window): Take frame's internal border width
5968 into account.
5969
5970 2000-02-24 Gerd Moellmann <gerd@gnu.org>
5971
5972 * xterm.c (x_display_and_set_cursor): Display cursor of
5973 non-selected windows depending on the setting of
5974 cursor_in_non_selected_windows.
5975
5976 * xdisp.c (cursor_in_non_selected_windows): New variable.
5977 (syms_of_xdisp): DEFVAR_BOOL it.
5978
5979 2000-02-23 Gerd Moellmann <gerd@gnu.org>
5980
5981 * data.c (Fstring_to_number): If number is greater than what
5982 fits into an integer, return a float.
5983
5984 * eval.c (specbind): Remove references to
5985 keyword_symbols_constant_flag.
5986
5987 * data.c (keyword_symbols_constant_flag): Removed.
5988 (Fmakunbound, set_internal, syms_of_data): Remove references to
5989 keyword_symbols_constant_flag.
5990
5991 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
5992
5993 2000-02-23 Kenichi Handa <handa@etl.go.jp>
5994
5995 * syntax.c (multibyte_syntax_as_symbol): New variable.
5996 (syms_of_syntax): Declare it as a Lisp variable.
5997 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
5998 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
5999 nonzero, treat all multibyte characters as symbol.
6000 (init_syntax_once): Give syntax `word' to all multibyte
6001 characters.
6002
6003 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
6004
6005 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
6006 a deleted frame.
6007
6008 2000-02-21 Gerd Moellmann <gerd@gnu.org>
6009
6010 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
6011
6012 * xfns.c (x_window_to_frame, x_any_window_to_frame)
6013 (x_non_menubar_window_to_frame): Check the busy-cursor window.
6014
6015 2000-02-21 Dave Love <fx@gnu.org>
6016
6017 * frame.c (Vmouse_position_function): New variable.
6018 (Fmouse_position): Use it.
6019 (syms_of_frame): Install it.
6020
6021 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
6022
6023 2000-02-20 Gerd Moellmann <gerd@gnu.org>
6024
6025 * fileio.c (Finsert_file_contents): Unbind the binding of
6026 standard-output done by temp_output_buffer_setup.
6027
6028 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
6029 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
6030 (specbind, unbind_to): Handle most common case of non-constant
6031 symbol with trivial value specially.
6032
6033 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
6034
6035 2000-02-20 Richard M. Stallman <rms@gnu.org>
6036
6037 * data.c (Fmake_variable_buffer_local): Doc fix.
6038 Init found_for_buffer to 0.
6039 (Fmake_variable_frame_local): If the variable has already
6040 been buffer-local, set the check_frame field.
6041
6042 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
6043
6044 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
6045 produced for CODING_MODE_LAST_BLOCK requires.
6046
6047 2000-02-18 Dave Love <fx@gnu.org>
6048
6049 * keyboard.c (echo_keystrokes): Remove declaration.
6050 (Vecho_keystrokes) New variable.
6051 (read_char, record_menu_key, read_key_sequence): Use it to allow
6052 use of float value.
6053 (syms_of_keyboard): Change Vecho_keystrokes declaration.
6054
6055 * lread.c: Undef feature selection macros before defining.
6056
6057 2000-02-18 Gerd Moellmann <gerd@gnu.org>
6058
6059 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
6060 for symbols other than the symbol in question.
6061
6062 2000-02-17 Dave Love <fx@gnu.org>
6063
6064 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
6065
6066 2000-02-17 Gerd Moellmann <gerd@gnu.org>
6067
6068 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
6069
6070 * alloc.c (enum mem_type): Compile unconditionally.
6071
6072 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
6073
6074 * xfaces.c (tty_defined_color): Don't return faulire indication
6075 for unspecified-fg and unspecified-bg pseudo-colors.
6076
6077 2000-02-17 Gerd Moellmann <gerd@gnu.org>
6078
6079 * alloc.c (mark_object): Don't mark symbol names in pure space.
6080 (gc_sweep): Don't unmark symbol names in pure space.
6081
6082 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
6083 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
6084 [GC_MARK_STACK]: New defines.
6085 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
6086 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
6087
6088 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
6089
6090 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
6091 allocate_buffer instead of xmalloc.
6092
6093 * alloc.c (toplevel): Include setjmp.h.
6094 (PURE_POINTER_P): New define.
6095 (enum mem_type) [GC_MARK_STACK]: New enumeration.
6096 (Vdead) [GC_MARK_STACK]: New variable.
6097 (lisp_malloc): Add parameter TYPE, call mem_insert if
6098 GC_MARK_STACK is defined.
6099 (allocate_buffer): New function.
6100 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
6101 (free_float) [GC_MARK_STACK]: Set type to Vdead.
6102 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
6103 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
6104 (MEM_NIL) [GC_MARK_STACK]: New define.
6105 (struct mem_node) [GC_MARK_STACK]: New structure.
6106 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
6107 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
6108 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
6109 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
6110 (mark_stack) [GC_MARK_STACK]: New functions.
6111 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
6112 (clear_marks): Removed.
6113 (gc_sweep): Set free conses' car, free floats' type, free
6114 symbols' function to Vdead. Use lisp_free to free buffers.
6115 (init_alloc_once): Initialize Vdead.
6116 (survives_gc_p): Return non-zero for pure objects.
6117
6118 * alloc.c: Add comments throughout the file.
6119
6120 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
6121 that unblocks alarms.
6122
6123 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
6124 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
6125 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
6126
6127 * frame.c (make_frame): Set frame initiallly to `garbaged'.
6128
6129 2000-02-17 Kenichi Handa <handa@etl.go.jp>
6130
6131 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
6132 avoid infinite error signaling. Allocate sufficient memory for
6133 eol_str in the case that eoltype is Lisp_Int.
6134
6135 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
6136
6137 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
6138 depends on the previous behavior.
6139
6140 2000-02-16 Gerd Moellmann <gerd@gnu.org>
6141
6142 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
6143
6144 2000-02-15 Gerd Moellmann <gerd@gnu.org>
6145
6146 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
6147
6148 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
6149 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
6150 write(2).
6151
6152 2000-02-15 Richard M. Stallman <rms@gnu.org>
6153
6154 * data.c (set_internal): Don't make variable buffer-local
6155 if within a let-binding for the same buffer.
6156 (let_shadows_buffer_binding_p): New function.
6157
6158 * eval.c (specbind): For buffer-local value,
6159 record the current buffer also.
6160 (unbind_to): Cope with that change.
6161
6162 2000-02-15 Gerd Moellmann <gerd@gnu.org>
6163
6164 * window.c (Fsave_window_excursion): Doc fix.
6165
6166 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
6167
6168 * syntax.c (back_comment): Make sure we only consider comment-starters
6169 of the relevant style and return -1 in case of a failure to find the
6170 beginning of the comment.
6171 (Fforward_comment): If back_comment fails, go back to the position just
6172 after the comment-end.
6173 (scan_lists): Add comment describing a very minor bug.
6174
6175 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
6176
6177 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
6178 `completion-regexp-list' in the docstring.
6179
6180 2000-02-14 Dave Love <fx@gnu.org>
6181
6182 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
6183
6184 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
6185
6186 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
6187 to Emacs' syntax. Also fix the comment about set/not-set meanings
6188 since Emacs syntax is not the value 0 any more.
6189 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
6190 since it's now part of RE_SYNTAX_EMACS.
6191
6192 2000-02-12 Dave Love <fx@gnu.org>
6193
6194 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
6195 Alpha.
6196
6197 2000-02-12 Gerd Moellmann <gerd@gnu.org>
6198
6199 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
6200
6201 2000-02-12 Dave Love <fx@gnu.org>
6202
6203 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
6204
6205 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
6206 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
6207 * s/hpux.h: Don't define HAVE_VFORK.
6208
6209 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
6210
6211 * s/nextstep.h: Don't define HAVE_ALLOCA.
6212
6213 * config.in: Add vfork bits.
6214
6215 2000-02-12 Gerd Moellmann <gerd@gnu.org>
6216
6217 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
6218 unwind function to undo the effect of stopping atimers.
6219
6220 * keyboard.c (bind_polling_period): Stop all timers except
6221 poll_timer.
6222
6223 * atimer.c (stopped_atimers): New variable.
6224 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
6225 New functions.
6226
6227 * atimer.h (stop_other_atimers, run_all_atimers)
6228 (unwind_stop_other_atimers): Add function prototypes.
6229
6230 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
6231
6232 2000-02-11 Ken Raeburn <raeburn@gnu.org>
6233
6234 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
6235 library may depend on jpeg.
6236 (atimer.o): Depends on atimer.c.
6237
6238 2000-02-11 Kenichi Handa <handa@etl.go.jp>
6239
6240 * insdel.c (del_range_1): Call update_compositions.
6241 (del_range_both): Call update_compositions just once..
6242
6243 2000-02-10 Dave Love <fx@gnu.org>
6244
6245 * xfns.c (create_frame_xic): Fix initialization of automatic
6246 aggregates for pcc.
6247
6248 2000-02-09 Kenichi Handa <handa@etl.go.jp>
6249
6250 * ccl.c (CCL_MAKE_CHAR): New macro.
6251 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
6252 registers by CCL_MAKE_CHAR before calling translate_char.
6253 <CCL_TranslateCharacterConstTbl> Likewise.
6254
6255 2000-02-08 Dave Love <fx@gnu.org>
6256
6257 * lread.c (__EXTENSIONS__): Define.
6258
6259 2000-02-08 Gerd Moellmann <gerd@gnu.org>
6260
6261 * puresize.h (BASE_PURESIZE): Increase to 650000.
6262
6263 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
6264
6265 * msdos.c (XMenuActivate): Turn off the cursor after displaying
6266 the help message.
6267
6268 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
6269
6270 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
6271 md, mh, mb, mr, and me to the fake termcap entry.
6272
6273 2000-02-06 Ken Raeburn <raeburn@gnu.org>
6274
6275 * sound.c (sound_cleanup): Don't call device close routine if the
6276 function pointer is null.
6277
6278 2000-02-06 Andrew Innes <andrewi@gnu.org>
6279
6280 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
6281 around image definitions and prototypes.
6282 (gamma_correct) [WINDOWSNT]: New prototype.
6283
6284 * w32term.c (x_make_frame_visible): Replace call to
6285 input_poll_signal with poll_for_input.
6286
6287 * window.c [WINDOWSNT]: Include w32term.h.
6288
6289 * xdisp.c [WINDOWSNT]: Include w32term.h.
6290
6291 * makefile.nt: Add dependencies on w32gui.h.
6292 (OBJ1): Include atimer.obj.
6293 ($(BLD)\atimer.obj): New dependency rule.
6294
6295 * w32.c (sigmask): New function (does nothing).
6296 (sigunblock): Ditto.
6297
6298 * frame.c [WINDOWSNT]: Include w32term.h.
6299
6300 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
6301
6302 * lread.c (syms_of_lread): Fix literal newlines.
6303
6304 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
6305 the string constant limit (2048 bytes) in MSVC.
6306 (main): Ditto.
6307
6308 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
6309
6310 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
6311 area.
6312 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
6313 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
6314 dispatch the event.
6315
6316 2000-02-04 Dave Love <fx@gnu.org>
6317
6318 * fileio.c: Remove some unused vars.
6319 (_GNU_SOURCE): Define (for euidaccess).
6320
6321 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
6322
6323 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
6324 gcpro1, gcpro2.
6325 (read_minibuf): Deal with allow_props correctly.
6326
6327 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
6328
6329 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
6330
6331 2000-02-03 Ken Raeburn <raeburn@gnu.org>
6332
6333 * search.c (compile_pattern): If a cache entry has a nil regexp,
6334 fill in that entry instead of clobbering a previously cached
6335 string regexp.
6336
6337 2000-02-02 Ken Raeburn <raeburn@gnu.org>
6338
6339 * puresize.h (BASE_PURESIZE): Increase to 610000.
6340
6341 2000-02-02 Gerd Moellmann <gerd@gnu.org>
6342
6343 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
6344 can GC.
6345
6346 2000-02-02 Kenichi Handa <handa@etl.go.jp>
6347
6348 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
6349 instead of incrementing ic directly.
6350 <CCL_WriteExprConst> Likewise.
6351 <ccl_set_expr>: Set ic to jump_address.
6352
6353 * fileio.c (e_write): Fix the handling of
6354 CODING_FINISH_INSUFFICIENT_SRC.
6355
6356 2000-02-01 Dave Love <fx@gnu.org>
6357
6358 * editfns.c (Fpropertize): Doc fix.
6359
6360 * process.c (Fstart_process): Doc fix.
6361
6362 * eval.c: Fix various doc strings not to duplicate information
6363 from help-manyarg-func-alist.
6364
6365 * window.c (Fset_window_margins): Don't make interactive. Doc
6366 fix.
6367
6368 * doc.c (Vhelp_manyarg_func_alist): New variable.
6369 (Fdocumentation): Use it.
6370 (syms_of_doc): Define it.
6371
6372 2000-01-31 Gerd Moellmann <gerd@gnu.org>
6373
6374 * xterm.c (xim_open_dpy): Remove unused local variable.
6375
6376 * emacs.c (USAGE): Use term `display options' instead of `X
6377 options'.
6378
6379 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
6380 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
6381
6382 * fns.c (sweep_weak_table): New function.
6383 (sweep_weak_hash_tables): Use it. Keep on marking until there
6384 is no more change.
6385
6386 2000-01-30 Gerd Moellmann <gerd@gnu.org>
6387
6388 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
6389 that XTread_socket does not crash by trying to call XNoOp on a
6390 closed display.
6391
6392 2000-01-30 Jason Rumney <jasonr@gnu.org>
6393
6394 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
6395 Change selected_frame to SELECTED_FRAME ().
6396 (w32_console_mouse_position): Remove #ifndef MULE from around
6397 `insist' parameter.
6398
6399 * makefile.nt: Remove dosfns.obj.
6400
6401 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
6402
6403 * w32fns.c (w32_defined_color): Check for valid frame before
6404 applying gamma correction. Eliminate dependency on frame elsewhere.
6405 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
6406 (w32_to_x_font): Use resx and resy not height_in and width_in.
6407 (x_to_w32_font): Doc fix.
6408 (xlfd_strip_height): New function to strip and return font height.
6409 (w32_font_match): Compare height separately from rest of xlfd
6410 spec, using xlfd_strip_height.
6411
6412 * w32term.c (w32_term_init): Swap resx and height_in, resy and
6413 width_in. Use w32_defined_color in place of defined_color.
6414
6415 * w32faces.c: Merge more of DOS and X specifics in preparation for
6416 merge with xfaces.c.
6417 (defined_color): Remove FIXME comment.
6418 (tty_color_name): Provide w32-specific function.
6419 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
6420
6421 * w32console.c (turn_on_face, turn_off_face): Removed.
6422 (w32_face_attributes): New function.
6423 (Global_variables): Reduce scope where possible.
6424 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
6425 fill attribute.
6426 (hl_mode): Don't modify text attributes.
6427 (write_glyphs): Don't do anything if len <= 0. Use
6428 w32_face_attributes to get attributes for drawing. Write
6429 terminating codes using char_attr_normal.
6430 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
6431 (update_begin, update_end): Likewise.
6432 (vga_stdcolor_name): New function.
6433 (initialize_w32_display): Remove char_attr_reverse and char_attr.
6434 (Fset_screen_color): Remove char_attr_reverse.
6435
6436 2000-01-29 Gerd Moellmann <gerd@gnu.org>
6437
6438 * xfns.c (xic_set_preeditarea): Take window parameter and
6439 window-relative pixel-positions.
6440
6441 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
6442 is its frame's selected window.
6443 (xim_instantiate_callback): Likewise.
6444
6445 * xfns.c (x_create_im): Removed.
6446 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
6447 (supported_xim_styles): Renamed from supported_styles.
6448 (best_xim_style): Renamed from best_style.
6449 (create_frame_xic): Renamed from xic_create_frame.
6450 (free_frame_xic): Renamed from xic_destroy_frame.
6451
6452 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
6453
6454 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
6455 our frames, call XFilterEvent with 2nd parameter `None'.
6456 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
6457 returning XBufferOverflow.
6458 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
6459 area.
6460 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
6461 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
6462 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
6463 (xim_initialize, xim_close)
6464 [HAVE_X_I18N && HAVE_X11R6]: New functions.
6465 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
6466 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
6467 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
6468
6469 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
6470 and `xim_styles'.
6471 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
6472 `xic_style' and `xic_xfs'.
6473 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
6474 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
6475 (FRAME_XIM): Removed.
6476
6477 * xfns.c (supported_styles): New variable.
6478 (DEFAULT_STYLE, DEFAULT_FONT): New macros
6479 (xic_create_xfontset, best_style, xic_create_frame)
6480 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
6481 (xic_set_xfontset): New functions.
6482
6483 2000-01-28 Dave Love <fx@gnu.org>
6484
6485 * s/irix6-5.h: Revert last change after change to irix5-0.h.
6486
6487 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
6488
6489 2000-01-28 Gerd Moellmann <gerd@gnu.org>
6490
6491 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
6492 for *scratch* if it already existed.
6493
6494 * emacs.c (USAGE): New macro.
6495 (main): Use it to display usage information.
6496
6497 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
6498
6499 Support for the menu-help feature:
6500
6501 * msdos.h: Change prototypes of XMenuAddSelection and
6502 XMenuActivate.
6503
6504 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
6505 part of the line to the termscript file.
6506 (IT_clear_to_end): Clear the entire line, not just its beginning.
6507 (menu_help_message, prev_menu_help_message): New variables.
6508 (IT_menu_make_room): Make room for the help_text member.
6509 (IT_menu_display): New argument disp_help; all callers changed.
6510 If disp_help is non-zero, store the help text of the active menu
6511 item in menu_help_message.
6512 (XMenuAddPane): Initialize the help_text member to NULL.
6513 (XMenuAddSelection): New argument help_text. Store it in the
6514 XMenu structure.
6515 (XMenuActivate): New argument help_callback. If the value of
6516 menu_help_message has changed since the last time, display the
6517 menu help message text while waiting for the mouse to move. Clear
6518 the echo area before exiting.
6519 (XMenuDestroy): Free the help_text member.
6520
6521 2000-01-27 Gerd Moellmann <gerd@gnu.org>
6522
6523 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
6524 XMenuAddSelection. Pass help callback to XMenuActivate.
6525 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
6526
6527 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
6528
6529 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
6530 and EMACS_SET_USECS.
6531
6532 2000-01-26 Dave Love <fx@gnu.org>
6533
6534 * editfns.c (Fchar_after, Fchar_before): Doc fix.
6535
6536 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
6537 an error may be signalled.
6538
6539 2000-01-26 Gerd Moellmann <gerd@gnu.org>
6540
6541 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
6542 LD_SWITCH_SYSTEM inherited from irix5-0.h.
6543
6544 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
6545
6546 2000-01-25 Gerd Moellmann <gerd@gnu.org>
6547
6548 * charset.c (Fstring): If there is a multibyte char among
6549 the args, always return a multibyte string.
6550
6551 2000-01-25 Gerd Moellmann <gerd@gnu.org>
6552
6553 * sysdep.c (sys_select): Turn atimers off and on instead of
6554 recording and restoring old alarm handler
6555
6556 * process.c (toplevel): Include atimer.h.
6557 (create_process_1): Rewritten.
6558 (create_process): Use atimers instead of alarm.
6559 (wait_reading_process_input) [hpux]: Turn atimers off instead
6560 of turning off SIGALRM.
6561 (wait_reading_process_input): Turn off atimers instead off
6562 calling stop_polling.
6563
6564 * emacs.c (main): Call init_atimer.
6565
6566 * keyboard.c (toplevel): Include systime.h and atimer.h.
6567 (polling_for_input): Removed because unused.
6568 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
6569 (poll_timer): New variable.
6570 (poll_for_input, poll_for_input_1): New functions.
6571 (start_polling, stop_polling): Rewritten.
6572
6573 * keyboard.h (polling_for_input): Removed.
6574
6575 * atimer.h, atimer.c: New files.
6576
6577 * Makefile.in (obj): Add atimer.o.
6578 (atimer.o): New target.
6579
6580 * blockinput.h (pending_atimers): Add extern declaration.
6581 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
6582
6583 * lisp.h (popup_activated_flag): Add extern declaration.
6584
6585 * xmenu.c (popup_activated_flag): Make externally visible.
6586 (popup_activate_callback) [USE_MOTIF]: Increment
6587 popup_activated_flag.
6588 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
6589
6590 * xterm.c (toplevel): Include atimer.h.
6591 (toolkit_scroll_bar_interaction): New variable.
6592 (Fxt_process_timeouts): Removed.
6593 (x_process_timeouts): New function.
6594 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
6595 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
6596 (x_make_frame_visible): Call poll_for_input_1 instead of
6597 input_poll_signal. Don't call alarm.
6598 (x_initialize): Install timer calling x_process_timeouts.
6599
6600 2000-01-24 Dave Love <fx@gnu.org>
6601
6602 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
6603 Don't use -cckr -- apparently not now necessary.
6604
6605 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
6606
6607 * msdos.c (IT_menu_display): Truncate long menu lines at the right
6608 screen boundary.
6609
6610 2000-01-23 Jason Rumney <jasonr@gnu.org>
6611
6612 * w32fns.c (w32_defined_color): Apply gamma correction before
6613 trying to map to the palette.
6614 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
6615 to w32_clear_rect.
6616
6617 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
6618 here. Callers changed to always pass real device context.
6619 (w32_draw_bitmap): Likewise.
6620 (w32_get_glyph_overhangs): Likewise.
6621 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
6622 one.
6623 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
6624 pfnSetScrollInfo and SetScrollRange.
6625 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
6626 back into MULE characters after decoding them.
6627 (x_get_glyph_face_and_encoding): Likewise.
6628 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
6629 GetCharABCWidthsW fails, since this is defined on Windows 9x.
6630 (x_produce_glyphs): Calculate per char metrics for a character
6631 that we know exists in default font when font_not_found_p is true.
6632
6633 2000-01-22 Jason Rumney <jasonr@gnu.org>
6634
6635 * makefile.nt (intervals.obj, composite.obj): New modules.
6636 (composite.h): Added as dependency where appropriate.
6637
6638 * w32gui.h (XGCValue): New struct for emulating X GCs.
6639
6640 * w32term.h (XCharStruct): New struct for emulating X.
6641
6642 * w32console.c (turn_on_face, turn_off_face): New functions.
6643 (change_line_highlight): New prototype for new redisplay.
6644 (write_glyphs): Support multibyte text. Support faces.
6645
6646 * w32faces.c: Complete rewrite for new redisplay based on new
6647 xfaces.c.
6648
6649 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
6650 throughout. struct frame * in place of FRAME_PTR.
6651 Skeleton support for images, toolbars, tooltips from xfns.c.
6652 (Fx_create_frame): Use system default for default scroll bar
6653 width.
6654 (w32_get_arg): Renamed from x_get_arg.
6655 (Fx_file_dialog): New function.
6656 (w32_list_fonts): Check cache before asking system.
6657 (Vw32_enable_synthesized_fonts): New variable.
6658 (Vw32_enable_italics): Obsolete, removed.
6659
6660 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
6661 Use SELECTED_FRAME macro.
6662
6663 * w32menu.c: Add skeleton support for help strings on menus.
6664 (add_menu_item): Native checkbox and radio support added, but not
6665 yet enabled due to bugs.
6666 (push_menu_item): Add parameters type, selection and help.
6667 Callers updated.
6668 Formatting changes to reduce unnecessary diffs with xmenu.c.
6669
6670 * w32select.c (Fw32_set_clipboard_data): Update call to
6671 find_charset_in_str.
6672
6673 * w32term.c: Complete rewrite for new redisplay based on new
6674 xterm.c with necessary sections merged back in from old w32term.c.
6675
6676 2000-01-21 Richard M. Stallman <rms@gnu.org>
6677
6678 * data.c (set_internal): Further fix in same criterion.
6679
6680 2000-01-20 Richard M. Stallman <rms@gnu.org>
6681
6682 * data.c (set_internal): Fix the criteria for whether
6683 to swap out the old cached binding.
6684
6685 2000-01-19 Dave Love <fx@gnu.org>
6686
6687 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
6688
6689 2000-01-18 Kenichi Handa <handa@etl.go.jp>
6690
6691 * regex.c (re_compile_fastmap): While checking a range table for
6692 `charset', skip flag bits for a character class correctly.
6693
6694 2000-01-17 Gerd Moellmann <gerd@gnu.org>
6695
6696 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
6697
6698 * xfns.c (x_window): Call lw_create_widget with new parameter
6699 list.
6700
6701 * widget.c (EmacsFrameSetCharSize): Change size of children first
6702 because of problems with main window geometry management under
6703 Lesstif.
6704
6705 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
6706 MENU_ITEMS_ITEM_.*.
6707 (MENU_ITEMS_ITEM_HELP): New enumerator.
6708 (push_menu_item): Add parameter HELP. Record help in menu_items.
6709 (single_menu_item, single_submenu, list_of_items): Call
6710 push_menu_item with new parameter.
6711 (single_submenu): Set help string in widget value.
6712 (menu_highlight_callback): New function.
6713 (set_frame_menubar): Call lw_create_widget with new
6714 parameter list.
6715 (xmenu_show, xdialog_show): Ditto.
6716
6717 2000-01-13 Gerd Moellmann <gerd@gnu.org>
6718
6719 * sound.c (Fplay_sound): Improve doc string.
6720
6721 2000-01-11 Richard M. Stallman <rms@gnu.org>
6722
6723 * lisp.h (set_internal): Enter the new arg.
6724
6725 * eval.c (specbind): Record buffer-local variables specially,
6726 indicating which buffer's binding was saved.
6727 (unbind_to): Restore buffer-local variables specially
6728 in the proper buffer.
6729
6730 * data.c (set_internal): New arg BUF.
6731
6732 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
6733 * data.c (Fset): Pass new arg to set_internal.
6734 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
6735
6736 2000-01-11 Gerd Moellmann <gerd@gnu.org>
6737
6738 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
6739 xprintsym.
6740
6741 2000-01-11 Richard M. Stallman <rms@gnu.org>
6742
6743 * minibuf.c (Ftry_completion): Doc fix.
6744
6745 2000-01-11 Gerd Moellmann <gerd@gnu.org>
6746
6747 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
6748 vector, too.
6749
6750 2000-01-11 Andreas Schwab <schwab@suse.de>
6751
6752 * coding.c (code_convert_region): Initialize total_skip.
6753
6754 2000-01-08 Dave Love <fx@gnu.org>
6755
6756 * eval.c (Fuser_variable_p): Check customizability too.
6757
6758 2000-01-07 Gerd Moellmann <gerd@gnu.org>
6759
6760 * minibuf.c (Fcompleting_read): Doc fix.
6761
6762 2000-01-05 Gerd Moellmann <gerd@gnu.org>
6763
6764 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
6765 -L /usr/local/lib.
6766
6767 * xfns.c (x_create_im): New function to set IM and IC of a frame.
6768 Check that input style is supported before trying to create an
6769 IC for it.
6770 (x_window): Call x_create_im.
6771
6772 2000-01-04 Gerd Moellmann <gerd@gnu.org>
6773
6774 * xfns.c (current_gif_memory_src): New variable.
6775 (gif_load): Record the address of the current memory source
6776 in current_gif_memory_src.
6777 (gif_read_from_memory): Use current_gif_memory_src.
6778
6779 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
6780 macros statement form.
6781
6782 * sound.c (struct sound): Renamed from struct sound_file.
6783 (struct sound): Add members `data' and `header_size'.
6784 (enum sound_attr): Add SOUND_DATA.
6785 (current_sound, current_sound_device): Variables renamed from
6786 sound_file and sound_device.
6787 (parse_sound): Parse :data.
6788 (parse_sound): Handle sound data in strings.
6789 (find_sound_type): Function renamed from find_sound_file_type.
6790 (wav_init, au_init): Fail if sound's header_size is smaller than
6791 needed header size.
6792 (wav_play, au_play): Play sounds from string data.
6793
6794 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
6795
6796 * lisp.h: Add prototype for allocate_string_data.
6797
6798 * alloc.c (Fgarbage_collect): Return number of live and free
6799 strings.
6800
6801 * alloc.c (mark_buffer): Remove code in #if 0.
6802 (gc_sweep): Ditto.
6803 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
6804 (strings_consed): New variable.
6805 (allocate_string): Set it.
6806 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
6807 (Fmemory_use_counts): Return strings_consed. Use Flist.
6808
6809 * alloc.c: General cleanup in comments etc. Remove conditional
6810 compilation for `standalone'.
6811
6812 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
6813
6814 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
6815 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
6816 (DONT_COPY_FLAG): Removed.
6817 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
6818 (struct sdata, struct sblock): New
6819 (struct string_block): Rewritten.
6820 (STRINGS_IN_STRING_BLOCK): New macro.
6821 (oldest_sblock, current_sblock, total_strings, total_free_strings)
6822 (large_sblocks, string_blocks, string_free_list): New variables.
6823 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
6824 (init_strings): Rewritten.
6825 (allocate_string, allocate_string_data, compact_small_strings)
6826 (free_large_strings, sweep_strings): New functions.
6827 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
6828 (struct string_block_head, current_string_block)
6829 (first_string_block, large_string_blocks, STRING_FULLSIZE)
6830 (STRING_PAD): Removed.
6831 (make_uninit_multibyte_string, make_pure_string): Rewritten.
6832 (Fgarbage_collect): Don't set mark bit in large strings.
6833 (mark_object): Mark strings differently. Mark symbol names
6834 differently.
6835 (survives_gc_p): Test marked strings differently.
6836 (gc_sweep): Sweep strings differently, unmark strings in
6837 symbol names.
6838 (compact_strings): Removed.
6839
6840 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
6841
6842 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
6843 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
6844
6845 2000-01-04 Kenichi Handa <handa@etl.go.jp>
6846
6847 * fileio.c (Finsert_file_contents): Signal error if visiting file
6848 in a non-empty buffer.
6849
6850 * term.c (encode_terminal_code): Fix the previous change.
6851
6852 2000-01-03 Gerd Moellmann <gerd@gnu.org>
6853
6854 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
6855 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
6856
6857 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
6858
6859 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
6860
6861 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
6862 need to test for MSDOS frames.
6863
6864 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
6865
6866 * dosfns.c (unspecified_colors): Remove.
6867 (msdos_stdcolor_idx): Use global variables unspecified_fg and
6868 unspecified_bg.
6869 (msdos_stdcolor_name): Return strings for unspecified fore- and
6870 back-ground colors.
6871
6872 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
6873 (syms_of_xfaces): Remove their staticpro's.
6874 (tty_color_name): Return Lisp strings for unspecified fore- and
6875 back-ground colors.
6876 (Finternal_set_lisp_face_attribute): Remove the special treatment
6877 for Qunspecified_{f,b}g.
6878 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
6879 string.
6880
6881 2000-01-03 Gerd Moellmann <gerd@gnu.org>
6882
6883 * xdisp.c (reseat_at_next_visible_line_start): Position before
6884 newline only if ending up on a newline.
6885 (next_element_from_ellipsis): Return success. Handle case of
6886 displaying no ellipsis. Fix case of ellipsis defined in display
6887 table.
6888 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
6889 returns 0.
6890
6891 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
6892
6893 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
6894 (Fcolor_supported_p): Renamed from face-color-supported-p.
6895
6896 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6897
6898 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
6899 list of colors renamed to tty-defined-color-alist.
6900 (tty_color_name): Pass the frame to tty-color-by-index.
6901 (realize_tty_face): tty-color-alist is now a function which
6902 accepts the frame as argument.
6903
6904 * term.c (Ftty_display_color_p): Accept an optional argument
6905 FRAME.
6906
6907 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6908
6909 * term.c (insert_glyphs): Pass glyph, not &glyph, to
6910 encode_terminal_code.
6911
6912 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6913
6914 * dispnew.c (mode_line_string): Support termcap frames as well.
6915
6916 2000-01-01 Gerd Moellmann <gerd@gnu.org>
6917
6918 * syntax.c (Fforward_word): Undo previous change.
6919
6920 * editfns.c (Fconstrain_to_field): Don't constrain if
6921 inhibit-field-text-motion is non-nil.
6922 (Fline_beginning_position): Undo previous change.
6923 (Fline_end_position): Ditto.
6924
6925 * syntax.c (Fforward_word): Notice field boundaries only if
6926 inhibit-field-text-motion is nil.
6927
6928 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
6929
6930 * editfns.c (Vinhibit_field_text_motion): New variable.
6931 (inhibit-field-text-motion): New DEFVAR_LISP.
6932 (Fline_beginning_position, Fline_end_position): Notice field
6933 boundaries only if inhibit-field-text-motion is nil.
6934
6935 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
6936 All calls adjusted.
6937 (x_build_heuristic_mask): Likewise.
6938 (xbm_load_image_from_file): Change error output.
6939 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
6940 (gif_load, gs_load, x_kill_gs_process): Ditto.
6941
6942 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
6943 color indices when accessing raster pixels.
6944 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
6945 one of :file or :data.
6946 (enum pbm_keyword_index): Add PBM_DATA.
6947 (pbm_format): Add :data.
6948 (pbm_image_p): Allow either :file or :data.
6949 (pbm_read_file): New function.
6950 (pbm_scan_number): Rewritten to read from string.
6951 (pbm_load): Support :data.
6952
6953 See ChangeLog.8 for earlier changes.
6954
6955 ;; Local Variables:
6956 ;; coding: iso-2022-7bit
6957 ;; End: