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