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