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