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