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