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