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