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