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