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