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