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