(window_scroll_pixel_based): Don't recenter if
[bpt/emacs.git] / src / ChangeLog
1 2001-08-15 Gerd Moellmann <gerd@gnu.org>
2
3 * window.c (window_scroll_pixel_based): Don't recenter if
4 PT is partially visible in the window.
5
6 * xterm.c (expose_window_tree, expose_window, expose_line): Return
7 1 when overwriting mouse-face.
8 (expose_frame): If mouse-face was overwritten, redo it.
9
10 * xfaces.c (x_update_menu_appearance): Don't call
11 set_frame_menubar, let the next redisplay do it.
12
13 2001-08-14 Andrew Innes <andrewi@gnu.org>
14
15 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
16 drawing glyph string.
17
18 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
19
20 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
21 running HI-UX/MPP.
22
23 2001-08-14 Gerd Moellmann <gerd@gnu.org>
24
25 * xfaces.c (x_update_menu_appearance): Save and restore value of
26 interrupt_input_blocked.
27
28 2001-08-13 Gerd Moellmann <gerd@gnu.org>
29
30 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
31 a line start, move back to the line start.
32
33 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
34 exactly when a mini-buffer is active.
35
36 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
37 in units of 1/8 character on non window-system frames.
38 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
39
40 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
41
42 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
43 a doc string.
44
45 2001-08-09 Gerd Moellmann <gerd@gnu.org>
46
47 * keyboard.c (Vpre_help_message): New variable.
48 (syms_of_keyboard): Initialize and staticpro it.
49 (show_help_echo): Record current message before displaying a
50 help-echo, and restore that message when clearing the help.
51
52 * xfns.c (x_create_im): Remove prototype.
53
54 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
55
56 * dispnew.c (adjust_glyph_matrix): Undo last change.
57
58 2001-08-08 Gerd Moellmann <gerd@gnu.org>
59
60 * dispnew.c (adjust_glyph_matrix): In the optimization for
61 windows whose height has changed, disable partially visible
62 lines.
63
64 2001-08-07 Gerd Moellmann <gerd@gnu.org>
65
66 * window.c (Frecenter): If ARG < 0, and on a window system
67 frame, count in some empty lines when we can't move -ARG lines
68 down.
69
70 * xdisp.c (start_display): Don't try to determine the continuation
71 lines width if lines are truncated. It's superfluous and leads to
72 incorrect results if POS is not visible in the window after
73 reseating the iterator at the previous line start.
74
75 2001-08-06 Gerd Moellmann <gerd@gnu.org>
76
77 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
78
79 2001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
80
81 * alloc.c (init_stack): Remove declaration.
82
83 2001-08-03 Gerd Moellmann <gerd@gnu.org>
84
85 * keyboard.c (read_key_sequence): Check that key is an integer
86 before comparing it with quit_char.
87 (add_command_key): Use larger_vector.
88 (read_char_x_menu_prompt): Instead of converting symbol and
89 integer events into conses (EVENT . nil), use (EVENT . disabled)
90 which cannot be confused with valid events.
91 (read_char): When reading from Vunread_command_events, check for
92 events of the form (EVENT . disabled) instead of
93 (EVENT . nil).
94
95 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
96 a float, determine the max height from the frame's height.
97
98 2001-08-02 Gerd Moellmann <gerd@gnu.org>
99
100 * xdisp.c (redisplay_internal): Take message_cleared_p into
101 account only if minibuf_level == 0.
102
103 2001-08-01 Gerd Moellmann <gerd@gnu.org>
104
105 * xdisp.c (redisplay_internal): Add a check for the last
106 displayed message.
107
108 * xdisp.c (message_cleared_p): New variable.
109 (clear_message): Set message_cleared_p when clearing the current
110 message.
111 (redisplay_internal): Look at message_cleared_p to capture
112 the case that the echo area should be cleared.
113
114 * keyboard.c (command_loop_1): Fix spelling of
115 resize_echo_area_exactly.
116
117 * dispextern.h (resize_echo_area_exactly): Fix typo in function
118 name.
119
120 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
121
122 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
123 current matrix when the window gets smaller.
124
125 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
126
127 * print.c (strout): Cast the character passed to insert_char to
128 unsigned char, to avoid sign extension when it is promoted to int.
129
130 2001-07-31 Gerd Moellmann <gerd@gnu.org>
131
132 * fileio.c (Finsert_file_contents): Don't treat a return value
133 of 0 from emacs_read as an IO error.
134
135 2001-07-30 Gerd Moellmann <gerd@gnu.org>
136
137 * keyboard.c (abs): New macro.
138 (double_click_fuzz): New variable.
139 (make_lispy_event): Use it to determine what makes a double-click.
140 (syms_of_keyboard): DEFVAR_INT it.
141
142 * xmenu.c (set_frame_menubar): Take into account that
143 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
144 <raeburn@gnu.org>.
145
146 2001-07-27 Gerd Moellmann <gerd@gnu.org>
147
148 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
149
150 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
151 of row's visible height.
152
153 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
154 deal with the first overlay string having an image `display'
155 property.
156 (try_window_reusing_current_matrix, compute_line_metrics): Fix
157 computation of row's visible height for the case that part of the
158 row is invisible above and part of the row is at the same time
159 invisible below the window.
160
161 2001-07-26 Gerd Moellmann <gerd@gnu.org>
162
163 * xfns.c (x-show-tip): Doc fix.
164
165 * xfns.c (Vx_max_tooltip_size): New variable.
166 (syms_of_xfns): DEFVAR_LISP it.
167 (Fx_show_tip): Set frame's window_width to the width of the
168 window. Use a maximum tooltip size specified by
169 Vx_max_tooltip_size, if that has valid contents.
170 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
171
172 2001-07-26 Andrew Innes <andrewi@gnu.org>
173
174 * w32term.c (x_display_list): New variable.
175 (w32_term_init): Set it.
176
177 * w32term.h (x_display_list): New extern.
178
179 2001-07-26 Gerd Moellmann <gerd@gnu.org>
180
181 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
182 is non-nil, instead of when redisplaying_p is non-zero. See
183 comment there.
184 (mark_window_display_accurate_1): Add an assertion.
185
186 2001-07-25 Gerd Moellmann <gerd@gnu.org>
187
188 * dispextern.h (struct it): Increase size of ctl_chars to 16.
189
190 * xfns.c (Fx_file_dialog): Block/unblock input while processing
191 events so that we get a chance of processing expose events.
192
193 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
194
195 2001-07-24 Gerd Moellmann <gerd@gnu.org>
196
197 * xfns.c (valid_image_p): Protect better against invalid image
198 specifications. Previous code could signal an error.
199
200 2001-07-23 Gerd Moellmann <gerd@gnu.org>
201
202 * indent.c (current_column): Fix column computation in the
203 presence of display table entries.
204 (current_column_1, Fmove_to_column, compute_motion): Likewise.
205
206 * dispnew.c (adjust_glyph_matrix): In the optimization for
207 windows whose height has changed, use the new window height
208 to compute which rows to invalidate.
209
210 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
211 (MAX_10_EXP): New macro.
212 (Fformat): Use it.
213
214 * coding.c (code_convert_region): Handle the multibyte case if
215 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
216
217 2001-07-20 Gerd Moellmann <gerd@gnu.org>
218
219 * dispextern.h (struct face): Change type of `stipple' to
220 int; it's an ID.
221
222 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
223
224 2001-07-19 Gerd Moellmann <gerd@gnu.org>
225
226 * dispnew.c (update_window): Don't set the cursor at the end
227 of the update if display update has been paused.
228
229 * composite.h (syms_of_composite): Renamed from
230 syms_of_composition.
231
232 2001-07-18 Ken Raeburn <raeburn@gnu.org>
233
234 * fns.c (Fset_char_table_default): Check that a charset is defined
235 before checking its dimension.
236
237 2001-07-17 Ken Raeburn <raeburn@gnu.org>
238
239 * coding.c (setup_coding_system): Don't do any designation based
240 on reg_bits if charset is not yet defined.
241
242 * lisp.h (XVECTOR): Verify correct object type before returning a
243 pointer, using eassert.
244
245 2001-07-17 Gerd Moellmann <gerd@gnu.org>
246
247 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]: Increase
248 to 4096 because of paste problems reported on GNU/Linux.
249
250 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
251
252 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
253
254 2001-07-16 Gerd Moellmann <gerd@gnu.org>
255
256 * fileio.c (unwind_read): Function removed.
257 (read_non_regular, read_non_regular_quit): New functions.
258 (Finsert_file_contents): When reading from non-regular files,
259 arrange to catch a `quit' and terminate the loop. Rearrange
260 code so that a `quit' when reading from a regular file doesn't
261 insert text in the buffer.
262
263 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
264 Clear faces afterwards.
265 (clear_font_table): Take a x_display_info parameter. Don't free
266 fonts being the default font of any frame on the given display.
267
268 2001-07-13 Gerd Moellmann <gerd@gnu.org>
269
270 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
271 instead of CHAR_STRING which can signal an error.
272
273 * charset.c (char_to_string_1): Extracted from char_to_string.
274 Return -1 instead of signaling an error.
275 (char_to_string): Use it.
276
277 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
278
279 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
280
281 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
282 is t, don't try to append anything to it.
283
284 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
285
286 * dired.c (file_name_completion): Pass dp->d_name to
287 Fstring_match, not elt, which is always nil here.
288
289 2001-07-12 Gerd Moellmann <gerd@gnu.org>
290
291 * xselect.c (x_decline_selection_request): Handle errors
292 caused by receivers that have vanished.
293
294 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
295 ignoring events on foreign windows in #if 0. Always dispatch
296 the event after checking it with x_handle_property_notify.
297
298 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
299 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
300 TRACE macros to facilitate debugging. Add additional trace statements.
301 (toplevel): Add prototypes for file-local functions.
302 (x_atom_to_symbol): Remove DPYINFO parameter.
303
304 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
305
306 * w32menu.c (menubar_selection_callback, w32_menu_show):
307 Initialize `entry' to nil.
308 (w32_dialog_show): Remove unused `save_wv' variable.
309 (name_is_separator): Recognize "--:foo" and "--foo-bar".
310
311 2001-07-11 Gerd Moellmann <gerd@gnu.org>
312
313 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
314
315 * fileio.c (unwind_read): Print a message when discarding inserted
316 text or switching the buffer to unibyte. Change parameter.
317 (Finsert_file_contents): Don't pass VISIT to unwind_read.
318
319 * fileio.c (unwind_read): New function.
320 (Finsert_file_contents): Record it as unwind-function for
321 the case that reading is interrupted by C-g.
322
323 2001-07-10 Gerd Moellmann <gerd@gnu.org>
324
325 * dispnew.c (update_window): Don't skip the header-line
326 update when scrolling_window returns 0.
327
328 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
329
330 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
331 for the case that x_decode_color signals an error.
332
333 * xdisp.c (add_to_log): Do nothing if called asynchronously.
334
335 2001-07-09 Gerd Moellmann <gerd@gnu.org>
336
337 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
338 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
339 around ioctls.
340
341 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
342
343 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
344 doc string line for dos-timezone-offset.
345
346 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
347 inline assembly, to avoid compiler warnings.
348 (syms_of_msdos): Add \n\ at the end of a line in the doc string
349 line for dos-unsupported-char-glyph.
350
351 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
352
353 2001-07-05 Gerd Moellmann <gerd@gnu.org>
354
355 * sound.c: Include Emacs' header files with #include "...".
356
357 * eval.c (specbind): Additionally record the buffer that was
358 current when a buffer-local or frame-local variable was bound.
359
360 2001-07-04 Gerd Moellmann <gerd@gnu.org>
361
362 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
363 to unibyte characters in unibyte buffers.
364
365 2001-07-03 Gerd Moellmann <gerd@gnu.org>
366
367 * eval.c (specbind): If SYMBOL has a frame-local binding, record
368 the frame on the binding stack. Change format of entries for
369 local bindings on the binding stack to '(SYMBOL . WHERE)'.
370 (unbind_to): Handle unbinding a frame-local variable.
371
372 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
373 glyphs and truncation glyphs at the end of a row from its pixel width.
374 (dump_glyph_row): Print row's continuation_lines_width.
375 (try_window_id): Take the shortcut if ZV is visible in the
376 window, but there are actually no changes at ZV.
377
378 2001-07-02 Gerd Moellmann <gerd@gnu.org>
379
380 * xterm.h (x_free_dpy_colors): Add prototype.
381
382 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
383 right number of arguments.
384
385 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
386 ($(lwlibdir)TAGS): New target.
387 (TAGS): Fix dependency list.
388
389 * xterm.c (x_list_fonts): Make sure XFreeFont is called
390 with input blocked.
391
392 2001-06-30 Gerd Moellmann <gerd@gnu.org>
393
394 * emacs.c (main): Remove extern declaration for sys_nerr, which
395 isn't used and causes a compilation error with GCC 3.0 on
396 FreeBSD 4.3.
397
398 2001-06-27 Gerd Moellmann <gerd@gnu.org>
399
400 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
401 SIGIO around the code where Xt might wait for a
402 ConfigureNotifyEvent.
403 (toplevel): Include <signal.h> and syssignal.h.
404
405 * sound.c (vox_configure, vox_close): Turn off atimers
406 around ioctls.
407
408 2001-06-26 Gerd Moellmann <gerd@gnu.org>
409
410 * keyboard.c (read_char) <non_reread>: Record the previous idle
411 start time before calling timer_stop_idle.
412 (read_char) <reread_first>: After processing a help-echo event,
413 restore the previous idle start time.
414
415 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
416 the start of invisible text.
417 (setup_for_ellipsis): New function.
418 (next_overlay_string): After all overlay strings have been
419 processed, display an ellipsis if necessary.
420 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
421 (push_it): Initialize display_ellipsis_p on the iterator's stack.
422
423 * dispextern.h (struct iterator_stack_entry): Add member
424 display_ellipsis_p.
425
426 2001-06-25 Gerd Moellmann <gerd@gnu.org>
427
428 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
429 on the value of the wait-for-wm frame parameter.
430
431 * xterm.h (struct x_output): Add member wait_for_wm.
432
433 * xfns.c (Qwait_for_wm): New variable.
434 (x_frame_parms): Add entry for `wait-for-wm".
435 (x_set_wait_for_wm): New function.
436 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
437 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
438
439 * xdisp.c (try_window_id) <all changes below window end>: Don't
440 take this shortcut if ZV is visible in the window.
441 (try_window_id): When checking for window start being in changed
442 text, don't check that the buffer's size has changed.
443
444 2001-06-23 Richard M. Stallman <rms@gnu.org>
445
446 * minibuf.c (Fcompleting_read): Doc fix.
447
448 2001-06-19 Gerd Moellmann <gerd@gnu.org>
449
450 * composite.c (Ffind_composition_internal): Accept ZV
451 and a string's end position as POS.
452
453 2001-06-18 Gerd Moellmann <gerd@gnu.org>
454
455 * composite.c (Ffind_composition_internal): Check POS
456 for validity.
457
458 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
459
460 * editfns.c (Fmessage_box): If the frame is not under a window
461 system, output the message in the echo area.
462
463 2001-06-14 Richard M. Stallman <rms@gnu.org>
464
465 * xdisp.c (try_window_id): When EOB is visible, don't treat
466 insertion at EOB as if it were "off the bottom of the screen."
467
468 2001-06-11 Andrew Innes <andrewi@gnu.org>
469
470 * w32proc.c (create_child): Add new parameter is_gui_app.
471 (w32_executable_type): Add new parameter is_gui_app.
472 (sys_spawnve): Use it.
473 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
474 SIGQUIT. This matches better how the signals are interpreted by
475 MSVC compiled programs.
476 (syms_of_ntproc): Update docstring.
477
478 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
479
480 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
481 well otherwise note_mouse_highlight might optimize away highlighting
482 if we pass over that same overlay again.
483
484 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
485
486 * lread.c (Fload): Document that the argument is run via
487 substitute-in-file-name.
488
489 2001-05-31 Gerd Moellmann <gerd@gnu.org>
490
491 * Makefile.in (bootstrap-doc): New target.
492 (bootstrap-emacs): Depend on it.
493
494 * fileio.c (Fdo_auto_save): Don't try to create the directory of
495 auto-save-list-file-name when shutting down Emacs, because
496 creating the directory might signal an error, and leaves
497 Emacs in a strange state.
498
499 * term.c: (tty_cursor_hidden): New variable.
500 (update_begin): Don't call tty_hide_cursor. Clean up.
501 (update_end, set_terminal_window, set_scroll_region): Clean up.
502 (ring_bell, reset_terminal_modes): Clean up.
503 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
504 on tty_cursor_hidden.
505 (write_glyphs): Call tty_hide_cursor.
506
507 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
508
509 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
510
511 2001-05-30 Gerd Moellmann <gerd@gnu.org>
512
513 * xfns.c (enum image_value_type): New enumerator
514 IMAGE_STRING_OR_NIL_VALUE.
515 (parse_image_spec): Handle it.
516 (xbm_format, pbm_format): Use it for :foreground and :background.
517 (xbm_load, pbm_load): Check for nil color names.
518
519 * xterm.c (note_mouse_highlight): If an overlapping overlay
520 exists, but we find that we highlight the same overlay as before,
521 don't do the highlighting again.
522
523 2001-05-29 Gerd Moellmann <gerd@gnu.org>
524
525 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
526 Protect unibyte strings created by replacing their multibyte
527 equivalents in menu_items.
528
529 * keymap.c (Fsingle_key_description): NUL-terminate the string
530 buffer before calling build_string.
531
532 * callproc.c (Fcall_process): Deal with decode_coding returning
533 CODING_FINISH_INCONSISTENT_EOL.
534
535 2001-05-28 Gerd Moellmann <gerd@gnu.org>
536
537 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
538 an item's name with its key description in case the description
539 is a multibyte string.
540
541 * keymap.c (Fsingle_key_description): Create a multibyte string
542 only if necessary.
543
544 * macros.c (Fstart_kbd_macro): Doc fix.
545
546 * xterm.c (cursor_in_mouse_face_p): New function.
547 (x_draw_stretch_glyph_string): Use it to choose a different GC
548 when drawing a cursor within highlighted text.
549
550 * editfns.c (char_property_eq): Put in #if 0.
551
552 * indent.c (string_display_width): Put in #if 0.
553
554 * lread.c (Fload): Remove unused label.
555
556 * termcap.c (speeds): Put in #if 0.
557
558 2001-05-18 Gerd Moellmann <gerd@gnu.org>
559
560 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
561
562 * xfaces.c (xlfd_point_size): Don't divide pixel size from
563 transformation matrix by 10.
564
565 2001-05-16 Gerd Moellmann <gerd@gnu.org>
566
567 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
568 only if it's equal to the former foreground pixel color.
569 (x_set_foreground_color, x_set_background_color)
570 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
571
572 2001-05-16 Dave Love <fx@gnu.org>
573
574 * insdel.c (signal_before_change, signal_after_change): Consider a
575 local change hook which changes the buffer.
576
577 * process.c (read_process_output): Don't call signal_after_change
578 and update_compositions after insert_from_string_before_markers.
579
580 2001-05-16 Gerd Moellmann <gerd@gnu.org>
581
582 * xfaces.c (split_font_name): Use the right field when
583 checking for `[...]' syntax.
584
585 * buffer.c (copy_overlays): New function.
586 (clone_per_buffer_values): Use it.
587
588 * buffer.h (OVERLAY_PLIST): New macro.
589
590 * keymap.c (Fsingle_key_description): Replace a build_string with
591 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
592
593 * fontset.c (Ffontset_info): Check that face is non-null
594 before accessing its fields.
595
596 2001-05-15 Gerd Moellmann <gerd@gnu.org>
597
598 * keyboard.c (read_key_sequence): Prevent generating a fake
599 prefix key twice.
600
601 * xfaces.c (split_font_name): Handle `[...]' for the right
602 font name fields.
603
604 * ccl.c (ccl_driver): Don't copy remaining bytes in case
605 of CCL_STAT_INVALID_CMD.
606
607 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
608
609 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
610 in <var> has no default value yet.
611
612 * xfaces.c (try_alternative_families): First try the FAMILY.
613 And if nothing is found in the end, try again with scalable fonts.
614 (try_font_list): Let try_alternative_families do a bit more of
615 the work. Only use FAMILY if it is not nil.
616 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
617
618 2001-05-14 Gerd Moellmann <gerd@gnu.org>
619
620 * xterm.c (note_mouse_highlight): Avoid changing the mouse
621 pointer shape when show_mouse_face has already done it.
622
623 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
624 full-width rows.
625
626 * xfaces.c (split_font_name): Make sure to leave the loop
627 with the right value of `i'.
628
629 * xfaces.c (split_font_name): Handle matrix transformations
630 in the pixel and point size fields of XLFD font names.
631 (xlfd_point_size): Likewise.
632
633 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
634
635 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
636 (x_to_w32_font): Add prototype.
637
638 * regex.c (malloc, realloc, free) [emacs]: Undefine before
639 redefining, to avoid compiler warnings.
640
641 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
642
643 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
644 (w32_get_bdf_glyph): Cast between unsigned char and char when
645 passing arguments to subroutines, to shut up compiler warnings.
646 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
647 GET_HEX_VAL.
648
649 * xfaces.c: Include keyboard.h before frame.h, not after it.
650
651 * widget.c: Include keyboard.h before frame.h.
652
653 * w32term.h (struct image, struct face): Forward declaration, to
654 avoid compiler warnings.
655
656 2001-05-11 Gerd Moellmann <gerd@gnu.org>
657
658 * keyboard.c (read_key_sequence): Don't modify events when
659 generating fake prefix keys (mode-line, scroll-bar, ...) since
660 this prevents proper processing of such events when pushed back
661 into unread-command-events.
662
663 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
664 actually redrawn. Make the function static.
665 (note_mouse_highlight): Fix a case where the mouse cursor
666 was changed back to the text cursor.
667
668 * xterm.h (clear_mouse_face): Remove prototype.
669
670 * xdisp.c (try_window_id): Fix the fix and set the right
671 window_end_vpos.
672
673 * xdisp.c (try_window_id): Fix computation of window end in the
674 case that lines were deleted at the end of the window. Add some
675 more debug_method_adds.
676
677 * xfaces.c (try_alternative_families): New function.
678 (try_font_list): Use it. If ATTRS specifies a family, check
679 fonts from that family first.
680 (choose_face_font): Remove code setting the family part of
681 the pattern to nil.
682
683 2001-05-10 Gerd Moellmann <gerd@gnu.org>
684
685 * xdisp.c (try_window_id): Fix case of all changes before
686 the window start.
687
688 * xdisp.c (try_window_id): Add some xasserts.
689
690 2001-05-09 Gerd Moellmann <gerd@gnu.org>
691
692 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
693
694 2001-05-09 Dave Love <fx@gnu.org>
695
696 * xdisp.c (GIVE_UP): Fix for K&R C.
697
698 2001-05-09 Gerd Moellmann <gerd@gnu.org>
699
700 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
701
702 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
703 back to the text cursor shape without need.
704
705 2001-05-07 Gerd Moellmann <gerd@gnu.org>
706
707 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
708
709 * dispextern.h (inverse_video): Declare extern.
710
711 * keyboard.c (delete_kboard): Handle the case that selected_frame
712 has been deleted in the course of x_connection_closed.
713
714 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
715
716 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
717 Fix the change from 2001-04-30.
718
719 2001-05-03 Gerd Moellmann <gerd@gnu.org>
720
721 * xfns.c (file_dialog_unmap_cb): New function.
722 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
723 where a dialog is closed via the window manager.
724
725 * xdisp.c (try_window_id): Cases of changes all in front of
726 the window start or all below the window end mostly rewritten.
727 (redisplay_window): Move the tests if try_window_id is
728 applicable to try_window_id.
729 (GIVE_UP): New macro.
730
731 2001-05-02 Gerd Moellmann <gerd@gnu.org>
732
733 * xterm.c (expose_window): Return int. If W is the window
734 currently being updated, mark the frame garbaged.
735 Fix computation of rows intersecting the exposed rectangle.
736 (expose_window_tree): Stop when expose_window returns 0.
737
738 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
739 again if it has already been drawn.
740
741 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
742
743 * syntax.c (update_syntax_table): Check that oldi has the same
744 properties as old_prop before deciding not to invalidate.
745
746 2001-04-30 Gerd Moellmann <gerd@gnu.org>
747
748 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
749 read-only text that is so because of text properties.
750
751 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
752 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
753 windows that are components of a Lucid menu bar.
754
755 2001-04-27 Gerd Moellmann <gerd@gnu.org>
756
757 * term.c (turn_on_face): Fix reverse video handling on terminals
758 that don't support colors.
759
760 2001-04-26 Gerd Moellmann <gerd@gnu.org>
761
762 * editfns.c (save_excursion_restore): Don't use XBUFFER on
763 a non-buffer.
764
765 2001-04-25 Gerd Moellmann <gerd@gnu.org>
766
767 * term.c (toggle_highlight): New function.
768 (turn_on_face): Change handling of reverse video.
769
770 * process.c (wait_reading_process_input):
771 Call record_asynch_buffer_change only if a timer really changed buffers.
772
773 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
774 of the number of overlays to check.
775
776 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
777
778 * xdisp.c (try_window_id): Fix a case where window_end_pos
779 and window_end_bytepos were not adjusted.
780
781 2001-04-23 Gerd Moellmann <gerd@gnu.org>
782
783 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
784 zero instead of -1.
785
786 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
787
788 * process.c (wait_reading_process_input) [!subprocesses]:
789 Don't reference waiting_for_user_input_p, it's not defined in the
790 branch without async subprocesses support.
791
792 2001-04-19 Gerd Moellmann <gerd@gnu.org>
793
794 * keyboard.c (delete_kboard): Prevent a dangling reference
795 from current_kboard to KB, which is freed.
796
797 * process.c (wait_reading_process_input):
798 Call record_asynch_buffer_change after running timers, to make
799 read_key_sequence aware of buffer changes from under it.
800
801 2001-04-18 Gerd Moellmann <gerd@gnu.org>
802
803 * xfaces.c (Qscalable_fonts_allowed): New variable.
804 (realizing_basic_faces_p): Removed.
805 (x_face_list_fonts): Special handling for realizing_basic_faces_p
806 removed.
807 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
808 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
809 for scalable-fonts-allowed to t.
810
811 * fileio.c (Finsert_file_contents): If the file size returned from
812 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
813 read from files on a procfs whose contents are generated dynamically.
814
815 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
816
817 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
818 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
819 (__memalign_hook): Make the two prototypes consistent.
820
821 2001-04-17 Gerd Moellmann <gerd@gnu.org>
822
823 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
824 matrix of mini-windows.
825
826 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
827
828 * intervals.c (find_interval): Don't rebalance during signal handling.
829
830 2001-04-11 Gerd Moellmann <gerd@gnu.org>
831
832 * fns.c: Include blockinput.h.
833
834 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
835
836 2001-04-10 Gerd Moellmann <gerd@gnu.org>
837
838 * fns.c (Fcompare_strings): Fix return values.
839
840 * window.c (window_scroll): Change the meaning of N to mean
841 N screen-fulls or N lines.
842 (window_scroll_pixel_based, window_scroll_line_based)
843 (scroll_command, Fscroll_other_window): Change accordingly.
844
845 * window.c (window_scroll_pixel_based, Frecenter):
846 Call window_box_height instead of using it.last_visible_y for the
847 height of the window.
848
849 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
850 instead of using it.last_visible_y for the height of the window.
851
852 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
853 From Dan Holmsand <dan@eyebee.com>.
854
855 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
856 able to write to hidden and system files. From Dan Holmsand
857 <dan@eyebee.com>.
858
859 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
860 Holmsand <dan@eyebee.com>.
861
862 2001-04-09 Gerd Moellmann <gerd@gnu.org>
863
864 * fns.c (Fplist_get, Fplist_put): Add QUITs.
865
866 * window.c (window_internal_height): Return 1 less if the
867 window has a header line.
868
869 * xdisp.c (try_window_id): When scrolling on a terminal, take
870 the change of window_internal_height into account.
871
872 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
873
874 * gmalloc.c (align): If the argument SIZE would overflow
875 __malloc_ptrdiff_t, fail right away.
876
877 2001-04-06 Gerd Moellmann <gerd@gnu.org>
878
879 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
880 Make sure the tooltip is completely visible.
881 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
882
883 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
884
885 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
886
887 2001-04-06 Dave Love <fx@gnu.org>
888
889 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
890 Fix test of `from'.
891
892 2001-04-06 Gerd Moellmann <gerd@gnu.org>
893
894 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
895
896 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
897
898 2001-04-05 Gerd Moellmann <gerd@gnu.org>
899
900 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
901
902 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
903
904 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
905 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
906
907 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
908 shell widget's position only if it is non-null.
909
910 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
911 Set f->output_data.x->widget to null after destroying it.
912
913 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
914 FILENAME to bring it in synch with the documentation.
915
916 * xfaces.c (realizing_basic_faces_p): Renamed from
917 realize_default_face_p.
918 (realize_basic_faces): Set/clear realizing_basic_faces_p.
919 (realize_default_face): Don't set the flag.
920
921 2001-04-04 Gerd Moellmann <gerd@gnu.org>
922
923 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
924
925 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
926
927 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
928 the buffer that was used for echoing.
929
930 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
931 (first_font_matching): Removed unused function.
932 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
933 (may_use_scalable_font_p): Remove parameter FONT; rename
934 parameter NAME to FONT.
935 (x_face_list_fonts): Fix missing bounds check.
936 (realizing_default_face_p): New variable.
937 (realize_default_face): Set and clear that flag.
938 (x_face_list_fonts): When called during the realization of the
939 default face, and no matching fonts are found when ignoring
940 scalable fonts and fonts matching a regexp from
941 face-ignored-fonts, try without ignoring fonts.
942
943 2001-04-03 Gerd Moellmann <gerd@gnu.org>
944
945 * xfns.c (postprocess_image): New function.
946 (lookup_image): Call it for all image types except PostScript.
947 (x_kill_gs_process): Call postprocess_image.
948
949 * xterm.c (x_use_underline_position_properties): New variable.
950 (x_draw_glyph_string): Use it.
951 (syms_of_xterm): DEFVAR_BOOL it.
952
953 2001-04-02 Gerd Moellmann <gerd@gnu.org>
954
955 * xterm.c (x_alloc_nearest_color_1): New function.
956 (x_alloc_nearest_color): Use it.
957 (x_color_cells): Take a Display as argument, instead of a frame.
958 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
959 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
960 (x_initialize): Register cvt_string_to_pixel as resource converter
961 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
962
963 2001-03-30 Gerd Moellmann <gerd@gnu.org>
964
965 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
966 (set_iterator_to_next): If a string from a display property ends,
967 consider the case that this might also be the end of an
968 overlay string having the display property.
969
970 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
971
972 * xdisp.c (reseat_to_string): Undo last change.
973
974 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
975 matrix of a window when the header line changes, when
976 new rows are allocated, or when the width changes.
977
978 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
979
980 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
981
982 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
983
984 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
985 deprecated.
986
987 2001-03-29 Gerd Moellmann <gerd@gnu.org>
988
989 * data.c (Fsubr_interactive_form): New function.
990 (syms_of_data): Defsubr it.
991
992 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
993 (live_float_p, live_misc_p): Return 1 only if the offset of the
994 pointer in its block is >= 0.
995
996 2001-03-28 Paul Eggert <eggert@twinsun.com>
997
998 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
999 microseconds calcuation. Avoid double-rounding problem.
1000 In doc string, warn that the result is approximate.
1001
1002 2001-03-28 Gerd Moellmann <gerd@gnu.org>
1003
1004 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
1005 bind `inhibit-eval-during-redisplay' to t.
1006
1007 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
1008
1009 * xdisp.c (inhibit_eval_during_redisplay)
1010 (Qinhibit_eval_during_redisplay): New variables.
1011 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
1012 don't eval, return nil instead.
1013 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
1014 Initialize Qinhibit_eval_during_redisplay.
1015
1016 * xdisp.c (reseat_to_string): If STRING is multibyte, set
1017 the iterator's multibyte_p flag.
1018
1019 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
1020 instead of setting it to zero; it's incremented for each frame
1021 where the menu face is changed.
1022
1023 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
1024 change bottom shadow accordingly.
1025
1026 * xterm.c (expose_window_tree, expose_frame): Don't compute
1027 intersections here.
1028 (expose_window): Do it here instead.
1029 (x_draw_glyph_string): Fix a computation of the underline position.
1030
1031 * bytecode.c (BYTE_CODE_QUIT): New macro.
1032 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
1033
1034 2001-03-27 Gerd Moellmann <gerd@gnu.org>
1035
1036 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
1037 Give up if matrix starts in an ellipsis.
1038 (init_from_display_pos): Do nothing if POS doesn't specify
1039 a dpvec_index but the iterator has such a position.
1040
1041 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
1042
1043 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
1044 x/y position is (0, 0) after destroying the menu bar, restore
1045 its original position.
1046
1047 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
1048 (init_from_display_pos): Use it.
1049 (try_window_reusing_current_matrix): Don't use cursor_row_p.
1050
1051 2001-03-26 Gerd Moellmann <gerd@gnu.org>
1052
1053 * xdisp.c (try_window_id): Undo last change.
1054
1055 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
1056
1057 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
1058
1059 * buffer.c (syms_of_buffer): Doc fix.
1060
1061 2001-03-26 Gerd Moellmann <gerd@gnu.org>
1062
1063 * xfaces.c (x_update_menu_appearance): Use local variable
1064 popup_path for setting font resources.
1065
1066 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
1067
1068 * frame.c (Fframe_list): Don't reference tip_frame if
1069 HAVE_WINDOW_SYSTEM is not defined.
1070
1071 * emacs.c (main): Update the copyright year. From Werner LEMBERG
1072 <wl@gnu.org>.
1073
1074 2001-03-25 Gerd Moellmann <gerd@gnu.org>
1075
1076 * xdisp.c (init_from_display_pos): Test invisible property
1077 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
1078
1079 * xdisp.c (redisplay_internal) <update one window>: Make sure
1080 last_arrow_position and last_arrow_string are set.
1081
1082 * frame.c (Fframe_list): Don't return a tooltip frame.
1083
1084 2001-03-23 Gerd Moellmann <gerd@gnu.org>
1085
1086 * xdisp.c (mark_window_display_accurate_1): New function,
1087 extracted from mark_window_display_accurate.
1088 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
1089 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
1090 (mark_window_display_accurate): Use it.
1091 (redisplay_internal): Use it for the selected window.
1092 (redisplay_internal): Avoid duplicate mark_window_display_accurate
1093 for the selected frame.
1094
1095 * xdisp.c Use make_number, for readability.
1096 (try_window_id): Disable rows below the window end.
1097 (try_window_reusing_current_matrix): Use cursor_row_p.
1098 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
1099 of rows.
1100 (init_from_display_pos): If POS specifies a position in a display
1101 vector, maybe get the iterator set up for that ellipsis.
1102
1103 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
1104
1105 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
1106
1107 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
1108
1109 2001-03-23 Gerd Moellmann <gerd@gnu.org>
1110
1111 * xfaces.c (x_update_menu_appearance): Use a different path
1112 for Lucid popup menus.
1113
1114 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
1115
1116 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
1117
1118 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
1119 (string_buffer_position): Use `make_number'.
1120
1121 2001-03-22 Gerd Moellmann <gerd@gnu.org>
1122
1123 * xfaces.c (x_update_menu_appearance): Renamed from
1124 x_set_menu_face_resources. Use different resources for popups.
1125
1126 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
1127 (GC_CHECK_STRING_BYTES): Don't define.
1128
1129 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
1130 Removed, together with subroutines.
1131 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
1132 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
1133
1134 * dispextern.h (x_set_menu_resources_from_menu_face):
1135 Remove prototype.
1136
1137 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
1138 Remove calls to x_set_menu_resources_from_menu_face.
1139
1140 * xfaces.c (xm_set_menu_resources_from_menu_face):
1141 Remove #ifndef LESSTIF_VERSION.
1142
1143 * xmenu.c: Include widget.h.
1144 (single_submenu): Return int. Some cleanup.
1145 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
1146
1147 2001-03-21 Gerd Moellmann <gerd@gnu.org>
1148
1149 * xterm.c (x_update_window_end): Handle overwritten mouse face
1150 also for tool bar windows.
1151 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
1152 DRAW is DRAW_IMAGE_RAISED.
1153
1154 2001-03-20 Gerd Moellmann <gerd@gnu.org>
1155
1156 * print.c (syms_of_print): Doc fixes.
1157
1158 * fns.c (Fmd5): Doc fix.
1159
1160 2001-03-19 Gerd Moellmann <gerd@gnu.org>
1161
1162 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1163 Clear area of the frame not occupied by the scroll bar.
1164
1165 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
1166 tip frame's root window buffer to *tip* right after creating
1167 the frame.
1168
1169 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
1170 is an integer don't have to be for space characters.
1171
1172 2001-03-16 Gerd Moellmann <gerd@gnu.org>
1173
1174 * indent.c (current_column, current_column_1, Fmove_to_column)
1175 (compute_motion): Handle characters from display vectors differently.
1176
1177 2001-03-15 Kenichi Handa <handa@etl.go.jp>
1178
1179 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
1180 drawing glyph string.
1181
1182 2001-03-15 Gerd Moellmann <gerd@gnu.org>
1183
1184 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
1185 (command_loop_1): Undo last change.
1186
1187 * xterm.c (fast_find_position): Return the correct vpos.
1188
1189 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
1190 non-null, set a per-buffer value in BUF instead of the current buffer.
1191 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
1192 Call store_symval_forwarding with BUF null.
1193 (set_internal): Call store_symval_forwarding with the BUF
1194 parameter passed to set_internal. Formerly, the value was always
1195 set in the current buffer; the buffer recorded in specbind for
1196 this case wasn't used.
1197 (arith_driver): Reindent.
1198
1199 * buffer.c (swap_out_buffer_local_variables):
1200 Call store_symval_forwarding with BUF null.
1201
1202 * lisp.h (store_symval_forwarding): Change prototype.
1203
1204 * eval.c (specbind): Call store_symval_forwarding with BUF null.
1205
1206 2001-03-14 Gerd Moellmann <gerd@gnu.org>
1207
1208 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
1209 FOR_DELETION. Avoid resizing the mini-window of the selected
1210 frame if FOR_DELETION is set.
1211 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
1212 (Fmake_frame_invisible): Change calls to do_switch_frame for new
1213 signature.
1214
1215 * window.c (Fset_window_configuration): Change call to
1216 do_switch_frame to new format.
1217
1218 * keyboard.c (quit_throw_to_read_char): Change call to
1219 do_switch_frame to new format.
1220
1221 * lisp.h (do_switch_frame): Change prototype.
1222
1223 * frame.c (Fframe_parameters): In the `buffer-list' frame
1224 parameter, store the buffer list of FRAME, not the list of the
1225 selected frame.
1226
1227 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
1228 box just because the glyph row's full_width_p flag is set.
1229
1230 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
1231
1232 * xdisp.c (highlight_trailing_whitespace): On character terminals,
1233 skip the padding blanks inserted in extend_face_to_end_of_line,
1234 before checking for trailing whitespace.
1235
1236 2001-03-13 Gerd Moellmann <gerd@gnu.org>
1237
1238 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
1239 Remove special handling for LessTif/Motif.
1240 (toplevel): Don't include Xm/Xm.h.
1241
1242 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
1243 Remove workaround code for LessTif; it doesn't work anymore.
1244
1245 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
1246 Xm/ScrollBarP.h.
1247
1248 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
1249 Don't access private scroll bar data; it's no longer necessary with
1250 contemporary LessTif.
1251
1252 * xfaces.c (xm_set_menu_resources_from_menu_face):
1253 Change #if 0 to #ifndef LESSTIF_VERSION.
1254
1255 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
1256 removing button grabs.
1257
1258 2001-03-13 Kenichi Handa <handa@etl.go.jp>
1259
1260 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
1261 and clip-large-size-font as obsolete.
1262
1263 * lread.c (read_multibyte): Check the validity of multibyte
1264 sequence. If invalid, return the first byte.
1265
1266 2001-03-12 Gerd Moellmann <gerd@gnu.org>
1267
1268 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
1269 before running the command; timer functions or process
1270 filters may have set it.
1271
1272 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
1273
1274 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
1275 Doc fix.
1276
1277 2001-03-12 Gerd Moellmann <gerd@gnu.org>
1278
1279 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
1280 to sprintf.
1281
1282 2001-03-09 Gerd Moellmann <gerd@gnu.org>
1283
1284 * dispextern.h (string_buffer_position): Add prototype.
1285
1286 * xdisp.c (string_buffer_position, display_prop_string_p)
1287 (single_display_prop_string_p): New functions.
1288
1289 * xterm.c (note_mouse_highlight): If there's no help-echo on
1290 a string, look at the buffer text ``under'' it.
1291
1292 * keyboard.c (make_lispy_event): Add string info to the event,
1293 analogous to what's done on mode lines.
1294 (read_key_sequence): For a click on a string, consider `local-map'
1295 and `keymap' of that string.
1296
1297 * keyboard.c (make_lispy_event, make_lispy_movement):
1298 Adjust calls to buffer_posn_from_coords to new format.
1299
1300 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
1301
1302 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
1303 POS; return void.
1304
1305 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
1306 flags argument to emacs_open; it seems to conflict with O_EXCL.
1307
1308 2001-03-09 Kenichi Handa <handa@etl.go.jp>
1309
1310 * composite.h (struct composition): Change types of members;
1311 glyph_len to unsigned, width to unsigned short.
1312
1313 2001-03-08 Andrew Innes <andrewi@gnu.org>
1314
1315 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
1316 menu titles.
1317
1318 2001-03-08 Gerd Moellmann <gerd@gnu.org>
1319
1320 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
1321 instead of nil.
1322
1323 * xterm.c (note_mouse_highlight): Handle mouse-face and
1324 help-echo in strings.
1325 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
1326 (fast_find_string_pos): New function.
1327
1328 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
1329 (display_string): Call face_at_string_position with new parameter.
1330
1331 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
1332 Handle `mouse-face'.
1333
1334 * dispextern.h (face_at_string_position): Change prototype.
1335
1336 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
1337
1338 * keyboard.c (make_lispy_event): Avoid generating drag events
1339 if the mouse hasn't actually moved to another buffer position.
1340
1341 2001-03-08 Dave Love <fx@gnu.org>
1342
1343 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
1344
1345 2001-03-08 Gerd Moellmann <gerd@gnu.org>
1346
1347 * process.c (Fset_process_window_size): Fix a typo.
1348
1349 2001-03-08 Kenichi Handa <handa@etl.go.jp>
1350
1351 * coding.c (detect_coding_sjis): Do more rigid check.
1352 (detect_coding_big5): Likewise.
1353 (decode_coding_sjis_big5): Likewise.
1354 (Fdetect_coding_region): Call detect_coding_system with tailing
1355 anchor byte `\0' for more rigid detection.
1356 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
1357 (Fdetect_coding_string): Likewise.
1358
1359 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
1360
1361 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
1362 a string before extracting its data.
1363
1364 2001-03-07 Gerd Moellmann <gerd@gnu.org>
1365
1366 * window.c (Frecenter): Rewrite code handling negative values
1367 of ARG on graphical frames.
1368
1369 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
1370
1371 * window.c (displayed_window_lines): If W->start is outside the
1372 accessible portion of the buffer, call start_display with BEGV or
1373 ZV instead of W->start.
1374
1375 2001-03-07 Gerd Moellmann <gerd@gnu.org>
1376
1377 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
1378
1379 * process.c (Fset_process_filter): Don't crash if the input
1380 file descriptor of PROCESS is closed.
1381 (Fset_process_window_size): Likewise.
1382
1383 2001-03-06 Kenichi Handa <handa@etl.go.jp>
1384
1385 * xterm.c (XTflash): Make the timeout of select shorter, and call
1386 select repeatedly until the desired time expires.
1387
1388 2001-03-06 Gerd Moellmann <gerd@gnu.org>
1389
1390 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
1391
1392 * xfns.c (Fx_create_frame): Clear Vwindow_list.
1393
1394 * lisp.h (Vwindow_list): Declare extern.
1395
1396 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
1397
1398 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
1399
1400 2001-03-06 Gerd Moellmann <gerd@gnu.org>
1401
1402 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
1403 to detect a case where we have to highlight a different region
1404 despite not having left the currently highlighted region.
1405 Set mouse_face_overlay in the x_display_info.
1406 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
1407
1408 * xterm.h (struct x_display_info): Add mouse_face_overlay.
1409
1410 * buffer.c (mouse_face_overlay_overlaps): New function.
1411
1412 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
1413 (Qmouse_face): Declare extern.
1414
1415 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
1416 if face_change_count is non-zero.
1417
1418 2001-03-06 Kenichi Handa <handa@etl.go.jp>
1419
1420 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
1421 that the source is unibyte.
1422
1423 2001-03-05 Dave Love <fx@gnu.org>
1424
1425 * xterm.c (XTmouse_position): Fix typo.
1426
1427 2001-03-05 Gerd Moellmann <gerd@gnu.org>
1428
1429 * minibuf.c (read_minibuf): Clean up the binding stack if
1430 called noninteractively.
1431
1432 2001-03-05 Kenichi Handa <handa@etl.go.jp>
1433
1434 * coding.c (syms_of_coding): Docstring modified.
1435
1436 2001-03-05 Kenichi Handa <handa@etl.go.jp>
1437
1438 * charset.c (char_to_string): If a single byte char has modifier
1439 bits that can't be reflected to the character code, ignore them
1440 instead of signaling an error.
1441
1442 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
1443
1444 * s/msdos.h: Update copyright notice.
1445
1446 * dosfns.h: Update copyright notice.
1447
1448 * dosfns.c: Update copyright notice.
1449
1450 * msdos.c: Update copyright notice.
1451
1452 2001-03-02 Gerd Moellmann <gerd@gnu.org>
1453
1454 * xterm.c (glyph_rect): New function.
1455 (XTmouse_position): Use it to raise the threshold for mouse
1456 movement event generation.
1457
1458 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
1459
1460 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
1461 specifies (reverse . t), reverse the initial screen colors.
1462 (IT_set_frame_parameters): If the property is foreground-color,
1463 but we are reversing the colors, set bg_set, not fg_set.
1464 Likewise for setting background-color and reversing: set fg_set.
1465 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
1466 in effect.
1467
1468 * xfaces.c (Finternal_set_lisp_face_attribute)
1469 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
1470 parameters alist.
1471
1472 2001-03-02 Gerd Moellmann <gerd@gnu.org>
1473
1474 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
1475 to a single slash in the middle of file names.
1476
1477 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
1478 Accept only alphanumeric time zone names.
1479
1480 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
1481 or width area.
1482 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
1483 a widget to zero height.
1484
1485 2001-03-01 Gerd Moellmann <gerd@gnu.org>
1486
1487 * window.c (Fwindow_end): Call move_it_past_eol only if
1488 ending up on a partially visible line.
1489
1490 2001-03-01 Dave Love <fx@gnu.org>
1491
1492 * ccl.c (Fccl_execute): Doc fix.
1493
1494 2001-03-01 Gerd Moellmann <gerd@gnu.org>
1495
1496 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
1497 of the tool bar before calling x_figure_window_size.
1498
1499 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
1500 NULL after destroying it, otherwise XTread_socket can access a
1501 destroyed widget when input is unblocked.
1502
1503 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
1504
1505 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
1506 same name as before, although there was a change in fontsets.
1507
1508 2001-02-28 Ken Raeburn <raeburn@gnu.org>
1509
1510 * lisp.h (Fframe_parameter): Declare.
1511
1512 * window.c (set_window_buffer): Field vscroll is an int, not a
1513 Lisp_Object.
1514
1515 2001-02-28 Gerd Moellmann <gerd@gnu.org>
1516
1517 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
1518 NULL instead.
1519
1520 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
1521 NULL instead.
1522
1523 * alloc.c (toplevel): Include process.h.
1524 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
1525 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
1526 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
1527 (allocate_vector, allocate_hash_table, allocate_window)
1528 (allocate_frame, allocate_process, allocate_other_vector):
1529 New functions.
1530 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
1531 (mark_maybe_pointer): New function.
1532 (mark_memory): Also mark Lisp data to which only pointers
1533 remain and not Lisp_Objects.
1534 (min_heap_address, max_heap_address): New variables.
1535 (mem_find): Return MEM_NIL if START is below min_heap_address or
1536 above max_heap_address.
1537 (mem_insert): Compute min_heap_address and max_heap_address.
1538
1539 * process.c (make_process): Use allocate_process.
1540
1541 * frame.c (make_frame): Use allocate_frame.
1542
1543 * window.c (make_window, make_dummy_parent): Use allocate_window.
1544 (Fcurrent_window_configuration): Use allocate_other_vector.
1545
1546 * lisp.h (allocate_vectorlike): Remove prototype.
1547 (allocate_vector, allocate_other_vector, allocate_frame)
1548 (allocate_window, allocate_process, allocate_hash_table):
1549 Add prototypes.
1550
1551 * fns.c (Fdelete, larger_vector): Use allocate_vector.
1552 (make_hash_table, copy_hash_table): Use allocate_hash_table.
1553
1554 2001-02-27 Kenichi Handa <handa@etl.go.jp>
1555
1556 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
1557 treat the produced bytes as a valid multibyte sequence.
1558
1559 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
1560 (ccl_driver) <CCL_WriteMultibyteChar2>:
1561 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
1562 <ccl_finish>: Set ccl->eight_bit_control properly.
1563
1564 * ccl.h (struct ccl_program): New member eight_bit_control.
1565
1566 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
1567
1568 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
1569 accessible_keymaps_char_table.
1570 (accessible_keymaps_char_table): Obey `is_metized'.
1571 (where_is_internal, Fwhere_is_internal): Don't confuse int and
1572 Lisp_Object.
1573
1574 2001-02-26 Gerd Moellmann <gerd@gnu.org>
1575
1576 * dispnew.c: Check HAVE_TERM_H before including term.h.
1577
1578 2001-02-24 Andrew Innes <andrewi@gnu.org>
1579
1580 * makefile.w32-in: Update copyright notice.
1581
1582 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
1583
1584 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
1585
1586 2001-02-24 Kenichi Handa <handa@etl.go.jp>
1587
1588 * Makefile.in (lisp): Add international/utf-8.elc.
1589
1590 * fontset.c (Fnew_fontset): Fix handling of the case that an
1591 element of FONTLIST is a cons of family and registry.
1592
1593 2001-02-23 Jason Rumney <jasonr@gnu.org>
1594
1595 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
1596 to height unconditionally.
1597
1598 * w32term.c (x_set_glyph_string_background_width): Extend the
1599 background face to the end of the drawing area in the text area, only.
1600 (x_insert_glyphs): Call window_box_left to obtain the left
1601 x-coordinate of the area to shift.
1602
1603 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
1604 safe_run_hooks.
1605
1606 2001-02-22 Andrew Innes <andrewi@gnu.org>
1607
1608 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
1609 ($(BLD)\dispnew.obj):
1610 ($(BLD)\editfns.obj):
1611 ($(BLD)\fileio.obj):
1612 ($(BLD)\filelock.obj):
1613 ($(BLD)\keyboard.obj):
1614 ($(BLD)\w32proc.obj):
1615 ($(BLD)\process.obj):
1616 ($(BLD)\sysdep.obj): Ditto.
1617
1618 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
1619 header files.
1620 ($(BLD)/dispnew.$(O)):
1621 ($(BLD)/editfns.$(O)):
1622 ($(BLD)/fileio.$(O)):
1623 ($(BLD)/filelock.$(O)):
1624 ($(BLD)/keyboard.$(O)):
1625 ($(BLD)/w32proc.$(O)):
1626 ($(BLD)/process.$(O)):
1627 ($(BLD)/sysdep.$(O)): Ditto.
1628
1629 2001-02-22 Gerd Moellmann <gerd@gnu.org>
1630
1631 * xdisp.c (forward_to_next_line_start): When taking the shortcut
1632 at the start of the function, check that the \n in it->c is
1633 from the iterator's current position.
1634
1635 * xdisp.c (handle_single_display_prop): Add parameter
1636 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
1637 properties which replace the display of text with something else.
1638 (handle_display_prop): Call handle_single_display_prop with
1639 additional argument saying if we already replaced text display
1640 with something else. Use AREF.
1641 (with_echo_area_buffer_unwind_data, display_menu_bar)
1642 (decode_mode_spec_coding): Use AREF and ASIZE.
1643
1644 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
1645 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
1646 * vmstime.h: Files removed.
1647
1648 * unexencap.c, unexfx2800.c: Files removed.
1649
1650 * dispnew.c (direct_output_for_insert): Give up if we are showing
1651 a message or just cleared the message because we might need to
1652 resize the echo area window or display an empty echo area.
1653
1654 2001-02-21 Gerd Moellmann <gerd@gnu.org>
1655
1656 * xdisp.c (redisplay_internal): Do the
1657 mark_window_display_accurate after all windows have been
1658 redisplayed because this call resets flags in buffers which are
1659 needed for proper redisplay.
1660
1661 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
1662 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
1663 the old names.
1664
1665 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
1666 busy_window to hourglass_window, busy_p to hourglass_p.
1667
1668 * msdos.h (struct x_output): Rename busy_window to
1669 hourglass_window, busy_p to hourglass_p.
1670
1671 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
1672 busy_window to hourglass_window, busy_p to hourglass_p.
1673
1674 * xfns.c: Rename everything containing *busy_cursor* and similar
1675 to *hourglass*.
1676 (syms_of_w32fns): Rename x-busy-pointer-shape to
1677 x-hourglass-pointer-shape, display-busy-cursor to
1678 display-hourglass, busy-cursor-delay to hourglass-delay.
1679
1680 * w32fns.c: Rename everything containing *busy_cursor* and similar
1681 to *hourglass*.
1682 (syms_of_w32fns): Rename x-busy-pointer-shape to
1683 x-hourglass-pointer-shape, display-busy-cursor to
1684 display-hourglass, busy-cursor-delay to hourglass-delay.
1685
1686 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
1687 of its busy_p flag.
1688
1689 * dispextern.h (start_hourglass, cancel_hourglass)
1690 (display_hourglass_p): Renamed from *busy_cursor*.
1691
1692 2001-02-20 Gerd Moellmann <gerd@gnu.org>
1693
1694 * keyboard.c (read_char): When an event from unread-command-events
1695 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
1696
1697 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
1698 equal to the current buffer.
1699
1700 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
1701 nil, otherwise we're left with truncate_lines t when a message
1702 is printed with message-truncate-lines bound to t.
1703
1704 2001-02-19 Gerd Moellmann <gerd@gnu.org>
1705
1706 * window.c (Fmove_to_window_line): Undo last change.
1707 (displayed_window_lines): Call line_bottom_y to determine
1708 the line's bottom position.
1709
1710 * dispextern.h (line_bottom_y): Add prototype.
1711
1712 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
1713 (pos_visible_p): Use it.
1714
1715 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
1716 set redisplaying_p to 0 here instead of in Frecursive_edit.
1717 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
1718 set redisplaying_p.
1719
1720 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
1721 New variables.
1722 (syms_of_xdisp): Initialize new variables.
1723 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
1724 Specbind `inhibit-menubar-update' when updating the menu bar.
1725
1726 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
1727 safe_run_hooks.
1728
1729 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
1730 safe_run_hooks.
1731
1732 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
1733 is null.
1734
1735 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
1736 to the start of the file.
1737
1738 2001-02-16 Gerd Moellmann <gerd@gnu.org>
1739
1740 * window.c (set_window_buffer): Fix last change.
1741
1742 * window.c (set_window_buffer): Set window's vscroll to 0.
1743
1744 * window.c (coordinates_in_window): Increase width of area
1745 where the vertical line can be dragged.
1746
1747 * xterm.c (x_set_glyph_string_background_width): Extend the
1748 background face to the end of the drawing area in the text
1749 area, only.
1750
1751 * xdisp.c (handle_single_display_prop): Set iterator's position
1752 to where the `display' property starts, like for images.
1753 (dump_glyph): New function.
1754 (dump_glyph_row): Use it. Dump info about marginal areas.
1755
1756 * dispnew.c (direct_output_for_insert): Recognize more cases where
1757 glyphs can be written instead of being inserted.
1758
1759 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
1760 the left x-coordinate of the area to shift.
1761
1762 * dired.c (directory_files_internal): Set result list to nil
1763 before retrying.
1764
1765 2001-02-15 Kenichi Handa <handa@etl.go.jp>
1766
1767 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
1768 invalid multibyte sequence, treat *SRC as a character of
1769 eight-bit-graphic.
1770
1771 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
1772
1773 * textprop.c (Fset_text_properties): Doc fix.
1774
1775 2001-02-15 Gerd Moellmann <gerd@gnu.org>
1776
1777 * dispnew.c (update_text_area): Undo change of 2001-01-12.
1778
1779 2001-02-14 Dave Love <fx@gnu.org>
1780
1781 * coding.c: Doc and message fixes.
1782
1783 2001-02-14 Andrew Innes <andrewi@gnu.org>
1784
1785 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
1786 Emacs frame above the screen size.
1787
1788 2001-02-14 Gerd Moellmann <gerd@gnu.org>
1789
1790 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
1791
1792 2001-02-13 Gerd Moellmann <gerd@gnu.org>
1793
1794 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
1795 case that TO ends up beyond ZV after running before-change-functions.
1796
1797 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
1798 the selected window if it is showing the buffer in question.
1799
1800 * dired.c (directory_files_internal): Initialize errno.
1801 (toplevel): Include errno.h.
1802
1803 2001-02-13 Kenichi Handa <handa@etl.go.jp>
1804
1805 * xfaces.c (best_matching_font): New parameter width_ratio.
1806 Multiply avgwidth by width_ratio.
1807 (choose_face_font): Call best_matching_font with width_ratio
1808 calculated from the column width of C.
1809
1810 2001-02-12 Andrew Innes <andrewi@gnu.org>
1811
1812 The following changes are to draw box lines inside characters area
1813 if line-width is negative.
1814
1815 * w32term.c (x_produce_image_glyph): Pay attention to the case that
1816 face->box_line_width is negative.
1817 (x_produce_stretch_glyph): Likewise.
1818 (x_produce_glyphs): Likewise.
1819 (x_estimate_mode_line_height): Likewise.
1820 (x_draw_glyph_string_background): Likewise.
1821 (x_draw_glyph_string_foreground): Likewise.
1822 (x_draw_composite_glyph_string_foreground): Likewise.
1823 (x_draw_glyph_string_box): Likewise.
1824 (x_draw_image_foreground): Likewise.
1825 (x_draw_image_relief): Likewise.
1826 (x_draw_image_foreground_1): Likewise.
1827 (x_draw_image_glyph_string): Likewise.
1828
1829 2001-02-09 Kenichi Handa <handa@etl.go.jp>
1830
1831 The following changes are to draw box lines inside characters area
1832 if line-width is negative.
1833
1834 * xterm.c (x_produce_image_glyph): Pay attention to the case that
1835 face->box_line_width is negative.
1836 (x_produce_stretch_glyph): Likewise.
1837 (x_produce_glyphs): Likewise.
1838 (x_estimate_mode_line_height): Likewise.
1839 (x_draw_glyph_string_background): Likewise.
1840 (x_draw_glyph_string_foreground): Likewise.
1841 (x_draw_composite_glyph_string_foreground): Likewise.
1842 (x_draw_glyph_string_box): Likewise.
1843 (x_draw_image_foreground): Likewise.
1844 (x_draw_image_relief): Likewise.
1845 (x_draw_image_foreground_1): Likewise.
1846 (x_draw_image_glyph_string): Likewise.
1847
1848 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
1849 and :line-width can be negative.
1850 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
1851
1852 2001-02-09 Jason Rumney <jasonr@gnu.org>
1853
1854 * w32term.c (w32_encode_char): Treat eight bit graphic and control
1855 characters the same as ASCII and latin-1.
1856 (x_display_and_set_cursor): Check for the focus frame's selected
1857 window instead of selected_window.
1858 (x_after_update_window_line): Don't clear if frame's internal
1859 border width is zero.
1860 (x_new_font): Don't change a tooltip's size.
1861 (w32_initialize): Set char_ins_del_ok to 1.
1862
1863 * w32fns.c (Fx_show_tip): Fix calls to make_number.
1864 (x_set_font): If font hasn't changed, avoid recomputing
1865 faces and other things.
1866 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
1867 (Fx_create_frame): Add the tool bar height to the frame height.
1868 (x_create_tip_frame): Prevent changing the tooltip's
1869 background color by specifying a color for the default font
1870 in .Xdefaults.
1871 (Qcancel_timer): New variable.
1872 (syms_of_w32fns): Initialize and staticpro it.
1873 (Fx_hide_tip, Fx_show_tip): Use it.
1874 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1875 the timer.
1876 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
1877
1878 * w32.c (init_environment): Duplicate local string before putenv.
1879
1880 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
1881
1882 * charset.c (Fstring): A typo.
1883
1884 2001-02-09 Kenichi Handa <handa@etl.go.jp>
1885
1886 * charset.c (Fstring): If all arguments are less than 256, return
1887 a unibyte string.
1888
1889 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
1890 return a unibyte string.
1891
1892 * coding.c (code_convert_region): After detecting a coding, if
1893 nothing found, set coding->composing to COMPOSITION_NO.
1894 (decode_coding_string): Likewise.
1895
1896 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
1897
1898 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
1899 to avoid overflow.
1900
1901 2001-02-07 Kenichi Handa <handa@etl.go.jp>
1902
1903 * charset.c (parse_str_to_multibyte): New function.
1904
1905 * charset.h (parse_str_to_multibyte): Extern it.
1906
1907 * print.c (print_string): If we are going to print a unibyte
1908 string into a multibyte buffer, convert the string to multibyte by
1909 str_to_multibyte.
1910
1911 2001-02-06 Andrew Innes <andrewi@gnu.org>
1912
1913 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
1914 been created. It seems we can get sent window messages such as
1915 WM_ERASEBKGND before we properly update a frame.
1916
1917 2001-02-06 Gerd Moellmann <gerd@gnu.org>
1918
1919 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
1920 Avoid some unnecessary cursor positioning.
1921
1922 2001-02-05 Gerd Moellmann <gerd@gnu.org>
1923
1924 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
1925 (LFACE_AVGWIDTH): New macro.
1926 (LFACEP): Use AREF.
1927 (check_lface_attrs): Check LFACE_AVGWIDTH.
1928 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1929 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
1930 (merge_face_vectors): Check LFACE_AVGWIDTH.
1931 (Finternal_make_lisp_face): Use AREF.
1932 (xm_set_menu_resources_from_menu_face)
1933 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
1934 (Finternal_lisp_face_empty_p): Use AREF.
1935 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
1936 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
1937 Compare average widths..
1938 (best_matching_font): Arrange for comparing average widths.
1939
1940 * dispextern.h (enum lface_attribute_index):
1941 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
1942
1943 2001-02-05 Dave Love <fx@gnu.org>
1944
1945 * puresize.h: Revert last change following loadup.el change.
1946
1947 2001-02-05 Andrew Innes <andrewi@gnu.org>
1948
1949 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
1950 invocation of temacs, to work with Windows 2000.
1951 (bootstrap-emacs): Ditto.
1952
1953 2001-02-05 Gerd Moellmann <gerd@gnu.org>
1954
1955 * xterm.c (x_display_and_set_cursor): Check for the focus
1956 frame's selected window instead of selected_window.
1957
1958 * xdisp.c (try_scrolling): If point is in the line below the
1959 window, make sure to move the iterator at least a canonical
1960 char height down.
1961
1962 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
1963
1964 2001-02-05 Kenichi Handa <handa@etl.go.jp>
1965
1966 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
1967 If invalid, execute CCL_INVALID_CMD.
1968 (ccl_driver): If the CCL program is terminated because of
1969 CCL_STAT_INVALID_CMD, copy the remaining source data to the
1970 destination instead of throwing them away.
1971
1972 2001-02-02 Gerd Moellmann <gerd@gnu.org>
1973
1974 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
1975 faces and other things.
1976
1977 * xdisp.c (get_next_display_element): Fix case of empty
1978 display table entry.
1979
1980 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
1981
1982 * editfns.c (Fconstrain_to_field): Doc fix.
1983
1984 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
1985 into `thoroughly', to make it consistent with the doc string.
1986
1987 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
1988
1989 2001-02-01 Gerd Moellmann <gerd@gnu.org>
1990
1991 * search.c (search_buffer): Call set_search_regs with a byte
1992 position, not a character position.
1993
1994 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
1995 minibuffer-only,
1996
1997 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
1998
1999 * frame.c (Fmodify_frame_parameters): Doc fix.
2000
2001 2001-01-31 Gerd Moellmann <gerd@gnu.org>
2002
2003 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
2004 identifier which is not reserved by Standard C.
2005
2006 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
2007
2008 * window.c (enum window_part): New enumeration.
2009 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
2010 Qright_bitmap_area.
2011 (coordinates_in_window): Return an enumerator from enum
2012 window_part. Fix handling of right scroll bar.
2013 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
2014 `right-fringe' instead of `left-bitmap-area' and
2015 `right-bitmap-area'. Use enumerators from enum window_part
2016 instead of hard-coded integers.
2017 (check_window_containing, window_from_coordinates):
2018 Use enumerators from enum window_part instead of hard-coded integers.
2019 (syms_of_window): Replace Qleft_bitmap_area and
2020 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
2021
2022 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
2023
2024 * editfns.c (Fformat_time_string): Doc fix.
2025
2026 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
2027
2028 * keymap.c (Fwhere_is_internal): Use the first valid binding
2029 if no ascii binding is found (when firstonly is t).
2030
2031 2001-01-31 Gerd Moellmann <gerd@gnu.org>
2032
2033 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
2034 instead of Finteractive_p.
2035
2036 * lisp.h (interactive_p): Add prototype.
2037
2038 * eval.c (interactive_p): New function.
2039 (Finteractive_p): Use it.
2040
2041 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
2042
2043 2001-01-31 Dave Love <fx@gnu.org>
2044
2045 * .gdbinit (hook-run): Define to run xreload.
2046
2047 * textprop.c (Fset_text_properties): Fix newline in doc string.
2048
2049 2001-01-30 Gerd Moellmann <gerd@gnu.org>
2050
2051 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
2052 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
2053
2054 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
2055 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
2056 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
2057
2058 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
2059 height.
2060
2061 2001-01-30 Dave Love <fx@gnu.org>
2062
2063 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
2064 AFTER_POTENTIAL_GC.
2065
2066 2001-01-29 Gerd Moellmann <gerd@gnu.org>
2067
2068 * bytecode.c (Fbyte_code) <Bcurrent_column>:
2069 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
2070
2071 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
2072
2073 * textprop.c (Fset_text_properties): Doc fix.
2074
2075 2001-01-29 Gerd Moellmann <gerd@gnu.org>
2076
2077 * xdisp.c (forward_to_next_line_start): Remove xassert.
2078
2079 2001-01-29 Jason Rumney <jasonr@gnu.org>
2080
2081 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
2082 returning without releasing it.
2083
2084 2001-01-29 Kenichi Handa <handa@etl.go.jp>
2085
2086 * w32fns.c (w32_font_match): Allocate three more bytes to regex
2087 for '^', '$', and '\0'.
2088
2089 2001-01-28 Andrew Choi <akochoi@i-cable.com>
2090
2091 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
2092 regex for '^', '$', and '\0'.
2093
2094 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
2095 only if current_sblock has been initialized.
2096
2097 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
2098 terminal frame even if it is the only visible frame.
2099
2100 2001-01-28 Kenichi Handa <handa@etl.go.jp>
2101
2102 * fontset.c (font_family_registry): Even if FONTNAME conform to
2103 XLFD, if it specifies other fields than family and registry,
2104 return FONTANME. New argument FORCE if nonzero cancel that feature.
2105 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
2106 a signle byte character. Don't set FAMILY part to nil here.
2107 It is handled by the caller choose_face_font.
2108 (Fnew_fontset): Call font_family_registry with FORCE 0.
2109 (Fset_fontset_font): Likewise.
2110
2111 2001-01-27 Gerd Moellmann <gerd@gnu.org>
2112
2113 * xdisp.c (display_line): Don't treat a newline as fitting
2114 on the line.
2115
2116 2001-01-26 Gerd Moellmann <gerd@gnu.org>
2117
2118 * window.c (size_window): Set the window's orig_top to nil when
2119 changing heights, so that a future shrink_mini_window won't
2120 restore a bogus height.
2121
2122 * frame.c (do_switch_frame): If selected frame has a mini-window,
2123 resize that to exact size.
2124
2125 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
2126
2127 * xdisp.c (display_line): Simplify check for glyphs fitting
2128 entirely in the line.
2129
2130 * xfns.c (xic_style): New variable.
2131 (create_frame_xic): Move static variable to global scope for
2132 the case that `static' gets defined away.
2133
2134 2001-01-26 Kenichi Handa <handa@etl.go.jp>
2135
2136 * coding.c (decode_coding): Set a flag for inhibiting
2137 inconsistent eol.
2138 (code_convert_region): Always set saved_coding_symbol.
2139 (decode_coding_string): Likewise. Update coding->symbol when we
2140 encounter a inconsistent eol by the same way as code_convert_region.
2141
2142 2001-01-25 Gerd Moellmann <gerd@gnu.org>
2143
2144 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
2145 XClearArea.
2146
2147 * xterm.c (x_after_update_window_line): Don't clear if frame's
2148 internal border width is zero.
2149 (x_clear_area): New function.
2150 (x_after_update_window_line, x_clear_end_of_line)
2151 (x_scroll_bar_create, x_scroll_bar_set_handle)
2152 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
2153 instead of XClearArea.
2154
2155 * xterm.h (x_clear_area): Add prototype.
2156
2157 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
2158 which doesn't seem necessary anymore with Lesstif 0.92.
2159
2160 2001-01-25 Dave Love <fx@gnu.org>
2161
2162 * puresize.h (BASE_PURESIZE): Up to 720000.
2163
2164 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
2165
2166 2001-01-25 Gerd Moellmann <gerd@gnu.org>
2167
2168 * xdisp.c (echo_area_display): Don't call redisplay_internal
2169 when Emacs is shutting down. We can't run hooks etc. that
2170 would be necessary to do a redisplay.
2171
2172 * lread.c (read_integer): Use type EMACS_INT instead of int.
2173
2174 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
2175
2176 * ccl.c (ccl_driver): Fix last change.
2177
2178 2001-01-25 Kenichi Handa <handa@etl.go.jp>
2179
2180 * ccl.h (sturct ccl_program): New member suppress_error.
2181
2182 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
2183 insert error message to the output.
2184 (setup_ccl_program): Initialize ccl->suppress_error to 0.
2185
2186 * coding.h (struct coding_system): New member suppress_error.
2187
2188 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
2189 (Fset_terminal_coding_system_internal): Set the member
2190 suppress_error to 1.
2191 (Fset_safe_terminal_coding_system_internal): Likewise.
2192
2193 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
2194
2195 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
2196 as if it was a `charset'.
2197
2198 2001-01-24 Gerd Moellmann <gerd@gnu.org>
2199
2200 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
2201 value in where_is_cache; the next lookup in the cache returns
2202 something bogus if we do.
2203
2204 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
2205
2206 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
2207 if HAVE_WINDOW_SYSTEM isn't defined.
2208
2209 2001-01-24 Gerd Moellmann <gerd@gnu.org>
2210
2211 * fns.c (sweep_weak_table): Fix code taking items out of
2212 the hash collision chain. Some cleanup.
2213
2214 * xterm.c (x_new_font): Don't change a tooltip's size.
2215
2216 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
2217 background color by specifying a color for the default font
2218 in .Xdefaults.
2219
2220 2001-01-24 Kenichi Handa <handa@etl.go.jp>
2221
2222 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
2223 a workaround for SunOS 4's cc.
2224 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
2225 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
2226 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
2227 statement.
2228
2229 2001-01-23 Gerd Moellmann <gerd@gnu.org>
2230
2231 * xterm.c (x_set_window_size_1): New function extracted from
2232 x_set_window_size.
2233 (x_set_window_size): Use it.
2234 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
2235 doesn't have a widget, like tooltips.
2236
2237 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
2238
2239 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
2240
2241 2001-01-23 Kenichi Handa <handa@etl.go.jp>
2242
2243 * fns.c (Fset_char_table_default): Fix to make sub char-table
2244 correctly.
2245
2246 2001-01-22 Gerd Moellmann <gerd@gnu.org>
2247
2248 * xdisp.c (build_desired_tool_bar_string): Make sure we have
2249 a desired tool bar string, even if there are no tool bar items.
2250
2251 * xdisp.c (Ftool_bar_lines_needed): New function.
2252 (syms_of_xdisp): Defsubr it.
2253
2254 * editfns.c (Fformat): Don't extend text properties from arguments
2255 to padding chars in the result.
2256
2257 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
2258
2259 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
2260
2261 2001-01-20 Andrew Innes <andrewi@gnu.org>
2262
2263 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
2264 (w32_initialize): Don't set term hooks that aren't actually needed
2265 in windowed mode.
2266
2267 * xfaces.c (realize_default_face):
2268 (realize_face):
2269 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
2270
2271 * xdisp.c (handle_single_display_prop): Remove references to
2272 FRAME_W32_CONSOLE_P.
2273
2274 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
2275
2276 * frame.h (output_method): Remove output_w32_console method.
2277 (FRAME_W32_CONSOLE_P): Remove macro.
2278
2279 * frame.c (Qw32_console): Remove variable.
2280 (Fframep): Remove references to it.
2281 (syms_of_frame): Ditto.
2282 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
2283
2284 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
2285 redefinition.
2286
2287 2001-01-20 Kenichi Handa <handa@etl.go.jp>
2288
2289 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
2290
2291 2001-01-19 Andrew Innes <andrewi@gnu.org>
2292
2293 * w32.c (init_environment): Add a version-independent site-lisp
2294 directory to EMACSLOADPATH, after the version dependent one.
2295
2296 2001-01-19 Gerd Moellmann <gerd@gnu.org>
2297
2298 * editfns.c (Fbuffer_substring): Doc fix.
2299
2300 * xdisp.c (message_dolog, message2, message2_nolog):
2301 Rename parameter LEN to NBYTES.
2302
2303 2001-01-19 Kenichi Handa <handa@etl.go.jp>
2304
2305 * charset.c (strwidth): Use c_string_width.
2306 (c_string_width): New function.
2307 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
2308 Caller changed.
2309
2310 * charset.h (c_string_width, lisp_string_width): Extern them.
2311
2312 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
2313
2314 * indent.c (check_composition): Check validity of composition.
2315
2316 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
2317 characters by calling c_string_width.
2318 (x_consider_frame_title): Get byte length of frame tile string
2319 correctly.
2320 (display_mode_element): Pay attention to width of non-ASCII
2321 characters by calling strwidth.
2322
2323 2001-01-18 Gerd Moellmann <gerd@gnu.org>
2324
2325 * xfns.c (Qcancel_timer): New variable.
2326 (syms_of_xfns): Initialize and staticpro it.
2327 (Fx_hide_tip, Fx_show_tip): Use it.
2328 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
2329 the timer.
2330 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
2331
2332 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
2333
2334 * window.h (WINDOW_LIVE_P): New macro.
2335
2336 * window.c (window_size_fixed): New variable.
2337 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
2338 the doc string.
2339
2340 * eval.c (specbind): If binding a per-buffer variable which
2341 doesn't have a buffer-local value in the current buffer, change
2342 the global value by changing the value of the symbol bound in all
2343 buffers not having their own value, to make it consistent with
2344 what happens with other buffer-local variables.
2345
2346 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
2347
2348 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
2349 when searching for a newline.
2350
2351 2001-01-18 Kenichi Handa <handa@etl.go.jp>
2352
2353 * xdisp.c (display_string): Fix previous change.
2354
2355 2001-01-18 Jason Rumney <jasonr@gnu.org>
2356
2357 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
2358 GLYPH_DEBUG is defined.
2359 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
2360 true for images with `:ascent 100'.
2361 (x_set_mouse_face_gc): If the last used mouse face has gone in the
2362 meantime, use face MOUSE_FACE_ID.
2363 If first glyph isn't a character glyph, use the ASCII NUL
2364 character to determine the face.
2365 (expose_area): Do not treat left margin specially.
2366 (note_mode_line_highlight): If no local_map, check global keymap.
2367 (note_mouse_highlight): Initialize overlay.
2368 (clear_mouse_face): Don't return if tip_frame is non-nil.
2369 (show_scroll_bars): Remove unused function.
2370 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
2371 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
2372 Clip to row.
2373 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
2374 (x_free_frame_resources): Unload relief colors.
2375
2376 2001-01-17 Gerd Moellmann <gerd@gnu.org>
2377
2378 * xdisp.c (forward_to_next_line_start): Avoid calling
2379 get_next_display_element when the newline is already found.
2380 This may change the iterator's position, when its current position is
2381 equal to the iterator's stop_charpos.
2382
2383 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
2384 zero, use this method only at the end of a line.
2385
2386 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
2387 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
2388 if SCALABLE_FONTS_P is set.
2389
2390 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
2391 so that scalable fonts are included.
2392
2393 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
2394 In the cache, use a key containing the information if scalable
2395 fonts are included.
2396 (x_load_font): Adapt to change of keys in the font cache.
2397
2398 2001-01-17 Kim F. Storm <storm@filanet.dk>
2399
2400 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
2401 XListFonts to take advantage of font caching.
2402
2403 * xterm.c (x_list_fonts): Ensure caching font information when
2404 called for a null frame, which is the case frequently when Emacs
2405 starts.
2406
2407 2001-01-17 Gerd Moellmann <gerd@gnu.org>
2408
2409 * xfns.c (QCconversion): Replaces QCalgorithm.
2410
2411 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
2412
2413 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
2414 of :algorithm.
2415
2416 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
2417 not everything could be displayed.
2418
2419 * line.h, x-list-font.c: Files removed because unused.
2420
2421 2001-01-17 Andrew Innes <andrewi@gnu.org>
2422
2423 * dired.c (directory_files_internal): Convert result from readdir
2424 to a unibyte string initially, to avoid possible misinterpretation
2425 of some bytes as the internal form of Emacs characters.
2426
2427 2001-01-17 Kenichi Handa <handa@etl.go.jp>
2428
2429 * fns.c (concat): Be sure to avoid putting the same `composition'
2430 property on the adjacent regions.
2431
2432 2001-01-16 Gerd Moellmann <gerd@gnu.org>
2433
2434 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
2435 (Fscroll_right, Fscroll_left): Set it here instead, if called
2436 interactively.
2437
2438 * buffer.c (Fset_buffer_modified_p): Set buffer's
2439 prevent_redisplay_optimizations_p flag.
2440
2441 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
2442 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
2443 with additional arg.
2444
2445 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
2446 Change prototype.
2447
2448 * xdisp.c (redisplay_preserve_echo_area): Add parameter
2449 FROM_WHERE, for debugging.
2450
2451 2001-01-16 Kenichi Handa <handa@etl.go.jp>
2452
2453 * ccl.c (Fregister_ccl_program): Handle the return value of
2454 resolve_symbol_ccl_program correctly.
2455 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
2456
2457 2001-01-15 Gerd Moellmann <gerd@gnu.org>
2458
2459 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
2460 has gone in the meantime, use face MOUSE_FACE_ID.
2461
2462 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
2463 If x_display_info_for_display returns null, don't try to close
2464 the display; we didn't open it.
2465
2466 * dispnew.c (save_or_restore_current_matrices): Function removed.
2467 (save_current_matrix, restore_current_matrix): New functions.
2468 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
2469 restore the frame's current matrix. Due to the glyph pointer
2470 setup done in adjust_glyph_matrix, there is no easy way to make
2471 saving the current matrix in the desired matrix generally correct,
2472 so don't try it.
2473
2474 2001-01-15 Kenichi Handa <handa@etl.go.jp>
2475
2476 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
2477 truncation glyphs.
2478 (display_line): Optimize for wide characters.
2479 (display_string): Don't try to display a multi-column character
2480 partially. On ttys, produce more than one truncation glyph for
2481 multi-column characters that don't fit on the line.
2482
2483 2001-01-13 Kenichi Handa <handa@etl.go.jp>
2484
2485 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
2486 Define it instead of WORDS_BIGENDIAN. Caller changed.
2487
2488 2001-01-13 Jason Rumney <jasonr@gnu.org>
2489
2490 * w32fns.c (Fimage_size, image_ascent, lookup_image)
2491 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
2492 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2493 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
2494
2495 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
2496 (x_draw_image_relief, x_draw_image_foreground_1)
2497 (x_draw_image_glyph_string): Adapt to change of image margins.
2498
2499 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
2500 variables.
2501
2502 * w32bdf.c (search_file_line, get_cached_font_char)
2503 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
2504
2505 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
2506
2507 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
2508 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
2509 (Fw32_send_sys_command): Remove unused variables.
2510 (w32_msg_pump): Add parentheses.
2511
2512 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
2513 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
2514 Add parentheses.
2515
2516 2001-01-12 Gerd Moellmann <gerd@gnu.org>
2517
2518 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
2519 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
2520 being a pair of margins.
2521 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
2522 to DEFVAR_LISP. Extend doc.
2523
2524 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
2525 margins.
2526 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
2527 pair of integers `(X . Y)', use X for the horizontal and Y for the
2528 vertical margin.
2529 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
2530 (parse_image_spec): Check it.
2531 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2532 (tiff_format, gif_format, gs_format):
2533 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
2534
2535 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
2536 (x_draw_image_relief, x_draw_image_foreground_1)
2537 (x_draw_image_glyph_string): Adapt to the change of image margins.
2538
2539 * dispextern.h (struct image): Replace member `margin' with
2540 `hmargin' and `vmargin'.
2541
2542 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
2543 and GLYPHS.
2544
2545 * dispnew.c (update_text_area): Put code which decrements the
2546 stop position when the row's face extends to the end of the
2547 line in #if 0.
2548
2549 * xfns.c (x_set_mouse_color): Fix color allocation.
2550
2551 * keyboard.c: Call get_local_map with new argument list.
2552
2553 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
2554
2555 * intervals.h (enum map_property): Removed.
2556 (get_local_map): Change prototype.
2557
2558 * keymap.c: Call get_local_map with new argument list.
2559 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
2560
2561 2001-01-11 Gerd Moellmann <gerd@gnu.org>
2562
2563 * xdisp.c (build_desired_tool_bar_string): Correct the computation
2564 of the size needed for the tool bar string. For the last image,
2565 use a `display' property that reaches to the end of the string.
2566
2567 * xselect.c (selection_request_dpyinfo): New variable.
2568 (x_handle_selection_request): Set it.
2569 (x_selection_request_lisp_error): Don't call
2570 x_decline_selection_request if selection request's display has
2571 been closed.
2572
2573 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
2574 Do the unregister_colors before calling XFreeColors.
2575
2576 2001-01-10 Dave Love <fx@gnu.org>
2577
2578 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
2579 ${SOME_MACHINE_LISP}, not ${lisp}.
2580
2581 2001-01-10 Gerd Moellmann <gerd@gnu.org>
2582
2583 * xdisp.c (display_line): On ttys, produce more than one truncation
2584 glyph for multi-column characters that don't fit on the line.
2585
2586 * xselect.c (x_reply_selection_request): Add a comment.
2587
2588 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
2589 XkbGetNames instead of XkbGetKeyboard.
2590
2591 2001-01-10 Dave Love <fx@gnu.org>
2592
2593 * sysdep.c (random): Revert the declaration.
2594
2595 2001-01-09 Gerd Moellmann <gerd@gnu.org>
2596
2597 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
2598 Call function string_bytes.
2599 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
2600
2601 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
2602 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
2603 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
2604 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
2605 the current sblock.
2606 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
2607 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
2608 after sweeping strings, and at the end.
2609 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
2610
2611 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
2612 ensure that pop_message is called.
2613
2614 * keyboard.c (Fexecute_extended_command): Use a
2615 record_unwind_protect to ensure that pop_message is called.
2616
2617 * lisp.h (push_message_unwind): Add prototype.
2618
2619 * xdisp.c (push_message_unwind): New function.
2620
2621 * fileio.c (do_auto_save_unwind): Do the pop_message here
2622 instead of in Fdo_auto_save.
2623 (Fdo_auto_save): Don't call pop_message.
2624
2625 2001-01-08 Ken Raeburn <raeburn@gnu.org>
2626
2627 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
2628 in inner block.
2629
2630 2001-01-08 Gerd Moellmann <gerd@gnu.org>
2631
2632 * window.c (window_scroll_pixel_based): Adjust glyph matrices
2633 when increasing window's vscroll.
2634
2635 * macros.c (Qkbd_macro_termination_hook): New variable.
2636 (syms_of_macros): Initialize and staticpro it.
2637 (pop_kbd_macro): Run kbd-macro-termination-hook.
2638
2639 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
2640
2641 2001-01-07 Dave Love <fx@gnu.org>
2642
2643 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
2644 arglist, for documentation's sake.
2645
2646 2001-01-06 Andrew Innes <andrewi@gnu.org>
2647
2648 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
2649 of *.pdb.
2650
2651 2001-01-05 Andrew Innes <andrewi@gnu.org>
2652
2653 * term.c (update_end): Don't check updating_frame; for some reason
2654 this can be 0 sometimes, such as after dismissing a popup menu,
2655 and isn't necessary given the explicit frame argument.
2656
2657 2001-01-05 Gerd Moellmann <gerd@gnu.org>
2658
2659 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
2660 on some systems, and an unsigned long on others, like FreeBSD 4.1.
2661
2662 2001-01-04 Gerd Moellmann <gerd@gnu.org>
2663
2664 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2665
2666 * xfns.c (x_create_tip_frame): Preserve the value of
2667 face_change_count around the creation of the tip frame.
2668
2669 * xfns.c (last_show_tip_args): New variable.
2670 (compute_tip_xy): New function.
2671 (Fx_show_tip): Reuse an existing tip frame, if possible.
2672 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
2673
2674 2001-01-04 Dave Love <fx@gnu.org>
2675
2676 * editfns.c (Fformat): Doc fix.
2677
2678 * systime.h (set_file_times): Prototype.
2679
2680 * widget.h (EmacsFrameSetCharSize_): Prototype.
2681
2682 * sysdep.c (random, srandom): Declare explicitly.
2683
2684 * dispextern.h (move_it_vertically_backward): Declare.
2685
2686 2001-01-04 Gerd Moellmann <gerd@gnu.org>
2687
2688 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
2689 like in Fx_create_frame.
2690
2691 * xfaces.c (set_font_frame_param): Don't do anything for
2692 non-graphical frames.
2693
2694 * window.c (Fdelete_other_windows): Set window's window_end_valid
2695 to nil when changing the window's start. Don't change the
2696 window's start when its top position hasn't changed. If we do,
2697 this will set the window's optional_new_start, which act's like a
2698 force_start during redisplay with C-x 1 M-> under particular
2699 circumstances (see report from Per Starback to emacs-pretest-bug
2700 from 2000-12-13.).
2701
2702 2001-01-03 Gerd Moellmann <gerd@gnu.org>
2703
2704 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
2705 short cut at the start of the function. Add an assertion.
2706 (reseat_at_next_visible_line_start): Add an assertion.
2707
2708 * window.c (Frecenter): When changing the window start, set the
2709 window's window_end_valid to nil.
2710 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
2711
2712 * dispextern.h (move_it_past_eol): Add prototype.
2713
2714 * xdisp.c (move_it_past_eol): New function.
2715
2716 * window.c (Fwindow_end): Doc fix.
2717
2718 2001-01-03 Dave Love <fx@gnu.org>
2719
2720 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
2721
2722 2001-01-03 Gerd Moellmann <gerd@gnu.org>
2723
2724 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
2725 the enabled_p flag of the glyph row at window_end_vpos to 0.
2726 (handle_single_display_prop): Fix last change.
2727
2728 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2729
2730 * window.c (Frecenter): Doc fix.
2731
2732 2001-01-02 Andrew Innes <andrewi@gnu.org>
2733
2734 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
2735
2736 * frame.h (output_method): Add output_w32_console method.
2737 (FRAME_W32_CONSOLE_P): New macro.
2738
2739 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
2740 use output_w32_console method.
2741 (Qw32_console): New Lisp_Object.
2742 (Fframep): Return it.
2743 (syms_of_frame): Init it.
2744 (Fframe_parameters): Report w32console as font for w32_console frames.
2745
2746 * xfaces.c (realize_default_face): Set face foreground and
2747 background to unspecified for w32_console frames.
2748 (realize_face): Realize face cache for w32_console frames.
2749 (realize_tty_face): Accept w32_console frames.
2750
2751 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
2752 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
2753 necessary, even if running interactively.
2754
2755 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
2756 w32_console frames.
2757
2758 * w32term.c (x_update_begin):
2759 (x_update_end):
2760 (x_clear_frame):
2761 (x_ins_del_lines):
2762 (x_change_line_highlight):
2763 (x_delete_glyphs):
2764 (w32_ring_bell):
2765 (x_update_begin):
2766 (x_update_end):
2767 (w32_reassert_line_highlight):
2768 (w32_frame_rehighlight):
2769 (w32_frame_raise_lower): Do nothing if not w32 frame.
2770
2771 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
2772
2773 * w32fns.c (Fx_display_color_cells): Determine correct value, when
2774 system doesn't tell us directly.
2775 (Fx_display_visual_class): Implement properly.
2776
2777 2001-01-02 Gerd Moellmann <gerd@gnu.org>
2778
2779 * window.c (Frecenter): Handle centering in graphical frames
2780 specially. Centering on the basis of line counts doesn't work
2781 reliably with variable-height lines.
2782
2783 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
2784
2785 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
2786 and al[].
2787
2788 * composite.c (run_composition_function): Remove unused var `val'.
2789 (update_compositions): Remove unused variable `hook'.
2790
2791 * intervals.c (get_local_map): Remove unused variable `tem'.
2792
2793 * doprnt.c (doprnt1): Remove unused variable `size'.
2794
2795 * fns.c (Flength): Remove unused variable `tail'.
2796 (Fdelete): Remove unused variable `size'.
2797
2798 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
2799 and `gcpro2'.
2800
2801 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
2802
2803 * data.c (find_symbol_value): Remove extra 3rd argument in the
2804 call to swap_in_symval_forwarding.
2805
2806 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
2807
2808 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
2809 (trivial_regexp_p): Remove unused variable `c'.
2810 (boyer_moore): Remove unused variable `k'.
2811
2812 * indent.c (current_column): Remove unused variable `stopchar'.
2813 (Fcompute_motion): Remove unused variable `contin'.
2814
2815 * casefiddle.c (casify_object): Remove unused variable `tolen'.
2816
2817 * dired.c (directory_files_internal): Fix a typo in a comment.
2818 Remove an unused variable `handler'.
2819 (file_name_completion): Remove unused function-scope variable `dp'.
2820 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
2821 on BSD4_2.
2822
2823 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
2824
2825 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
2826 and `buf'.
2827 (Fmarker_insertion_type): Remove unused variable `buf'.
2828
2829 * insdel.c (make_gap): Remove unused variable `result'.
2830
2831 * keyboard.c (record_char): Remove unused function-scope var `help'.
2832 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
2833 (menu_bar_items): Remove unused function-scope variable `tem'.
2834
2835 * fontset.c (fontset_ref): Remove unused variable `i'.
2836 (fontset_set): Remove unused variables `j' and `tmp'.
2837 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
2838 (make_fontset_for_ascii_face): Remove unused variable `name'.
2839 (fs_load_font): Remove unused variable `font_idx'.
2840 (fs_query_fontset): Remove unused function-local variable `fontset'.
2841 (list_fontsets): Remove unused variable `tail'.
2842 (Fnew_fontset): Remove unused variables `family' and `registry'.
2843 (accumulate_font_info): Remove unused variable `tmp'.
2844 (Ffontset_font): Remove unused variable `id'.
2845 (syms_of_fontset): Remove unused variable `i'.
2846
2847 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
2848 to x_term_init.
2849 (lookup_image): Remove unused variable `file'.
2850 (xbm_load): Remove unused variables `bitmap_data', `height', and
2851 `width'. Remove function-local variable `i', leave the
2852 block-local one.
2853 (gif_load): Remove unused variable `inc'.
2854
2855 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
2856 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
2857 leave only the one in the inner block.
2858
2859 * xfaces.c (face_fontset, realize_default_face): Remove unused
2860 variable `fontset'.
2861 (face_at_buffer_position): Remove unused variable `multibyte_p'.
2862
2863 * term.c (encode_terminal_code): Remove unused variable `c'.
2864
2865 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
2866 char *' instead of `char *'.
2867
2868 * category.c (Fcategory_docstring): Remove unused variable `doc'.
2869 (Fget_unused_category): Remove unused variable `docstring_vector'.
2870 (Fchar_category_set): Remove unused variables `val', `charset',
2871 `c1' and `c2'.
2872
2873 * coding.c (detect_coding_iso2022, setup_coding_system):
2874 Remove unused variable `i'.
2875 (detect_coding_mask): Remove unused variable `idx'.
2876 (detect_coding): Remove unused variable `i'.
2877 (ccl_coding_driver): Remove unused variable `result'.
2878 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
2879 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
2880 (encode_coding_string): Remove unused variables `gcpro1' and
2881 `saved_coding_symbol'.
2882 (Ffind_coding_systems_region_internal): Remove function-local
2883 variable args[], leave only the block-local one.
2884 (code_convert_region1): Remove unused variable `len'.
2885
2886 * charset.c (char_printable_p): Remove unused variable `chars'.
2887 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
2888 (str_to_multibyte): Remove unused variable `c'.
2889
2890 * window.c (size_window): Remove block-local variable `min_size'.
2891
2892 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
2893 `header_line_height'.
2894 (append_space, extend_face_to_end_of_line): Declare `saved_what'
2895 enum display_element_type.
2896
2897 2001-01-02 Gerd Moellmann <gerd@gnu.org>
2898
2899 * xterm.c (x_connection_closed): Catch X errors around all
2900 statements that call X. Save away the error message in a local copy.
2901
2902 * xterm.c (x_connection_closed): Set handling_signal to 0 at
2903 the start.
2904
2905 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
2906 in or at the start of invisible text.
2907
2908 * dispnew.c (update_window): Don't check_current_matrix_flags.
2909
2910 2001-01-01 Jason Rumney <jasonr@gnu.org>
2911
2912 * w32fns.c (x_figure_window_size): Do not allow new_height and
2913 new_width of frame to override specified values.
2914
2915 2000-12-30 Kenichi Handa <handa@etl.go.jp>
2916
2917 * composite.c (find_composition): Fix a code for searching backward.
2918
2919 2000-12-29 Gerd Moellmann <gerd@gnu.org>
2920
2921 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
2922 (update_window) [GLYPH_DEBUG]: Call it.
2923 (scrolling_window): Prevent including current rows which are below
2924 what's displayed in the window.
2925
2926 * xdisp.c (try_window_reusing_current_matrix)
2927 <new start <= old start>: Disable rows in the current matrix
2928 which are below the window after scrolling.
2929
2930 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
2931 is zero. It's not worth the complexity.
2932 (invisible_text_between_p): Put in #if 0 because unused.
2933
2934 2000-12-28 Gerd Moellmann <gerd@gnu.org>
2935
2936 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
2937 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
2938
2939 * keyboard.c (echo_char): If C is an integer, always call
2940 push_key_description. Former code could signal an invalid
2941 character error.
2942
2943 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
2944 If set, print multibyte text.
2945 (Fsingle_key_description): Call push_key_description with
2946 FORCE_MULTIBYTE set.
2947 (describe_buffer_bindings): Likewise.
2948
2949 * lisp.h (push_key_description): Add prototype.
2950
2951 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
2952 around the call to redisplay_internal.
2953
2954 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2955
2956 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2957
2958 2000-12-28 Kenichi Handa <handa@etl.go.jp>
2959
2960 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
2961 (ccl_driver): New local variable `extra_bytes'.
2962
2963 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
2964
2965 * coding.c (setup_coding_system):
2966 Initialize coding->spec.ccl.eight_bit_carryover.
2967 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
2968
2969 2000-12-28 Kenichi Handa <handa@etl.go.jp>
2970
2971 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
2972 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
2973 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
2974 (decode_composition_emacs_mule): New function.
2975 (decode_coding_emacs_mule): Decode composition sequence by calling
2976 decode_composition_emacs_mule.
2977 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
2978 (encode_coding_emacs_mule): Changed from macro to function.
2979 If a text contains compositions, encode them correctly.
2980 (setup_coding_system): Set coding->commong_flags for emacs-mule so
2981 that decoding and encoding are required.
2982
2983 2000-12-27 Gerd Moellmann <gerd@gnu.org>
2984
2985 * xfaces.c (PT_PER_INCH): New macro.
2986 (xlfd_point_size): Compute real point size from font's pixel size.
2987 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
2988 instead of 72.
2989
2990 * .gdbinit: Comment out the line pointing to the Lesstif source
2991 directory.
2992
2993 * window.c (Frecenter): Use displayed_window_lines instead
2994 of window_internal_height.
2995
2996 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2997 instead of x-toolkit-scroll-bars-p.
2998 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
2999
3000 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
3001 instead of x-toolkit-scroll-bars-p.
3002 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
3003
3004 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
3005 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
3006 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
3007 New variables.
3008 (add_window_display_history, add_frame_display_history)
3009 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
3010 (build_frame_matrix_from_leaf_window): Remove unused code.
3011 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
3012 redisplay history.
3013 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
3014 (update_window) [GLYPH_DEBUG]: Likewise.
3015 (syms_of_display): Defsubr dump-redisplay-history.
3016
3017 2000-12-23 Gerd Moellmann <gerd@gnu.org>
3018
3019 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
3020 the end of the prompt. Set echo_after_prompt to the offset
3021 of echoptr in echobuf.
3022
3023 * xdisp.c (init_from_display_pos): Pop until the iterator's
3024 stack is empty; there may be frames for stretch or images
3025 on the stack.
3026
3027 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
3028 (save_or_restore_current_matrix): New function for the same
3029 purpose, but more efficient.
3030 (adjust_frame_glyphs_for_frame_redisplay): Use it.
3031
3032 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
3033
3034 * xdisp.c (syms_of_xdisp): Fix last change.
3035
3036 2000-12-23 Gerd Moellmann <gerd@gnu.org>
3037
3038 * xdisp.c (syms_of_xdisp): Doc fix.
3039
3040 * xdisp.c (redisplay_window): Remove label restore_buffers;
3041 use finish_scroll_bars instead to make sure that scroll bars
3042 are redeemed. If we don't do this, flickering can result from
3043 scroll bars being destroyed and recreated.
3044
3045 2000-12-22 Jason Rumney <jasonr@gnu.org>
3046
3047 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
3048 in the wrong colors when the foreground is not black.
3049 (expose_window): Don't redraw the window that's currently being
3050 updated.
3051
3052 2000-12-22 Gerd Moellmann <gerd@gnu.org>
3053
3054 * window.c (size_window): When setting the window's too_small_ok
3055 flag, compare old size with minimum size depending on WIDTH_P,
3056 don't compare with window_min_width.
3057
3058 * window.c (delete_window): Simplify somewhat.
3059 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
3060 freeing window matrices. The flag windows_or_buffers_changed is
3061 set, so the next redisplay will consider all windows; this should
3062 suffice.
3063
3064 2000-12-22 Kenichi Handa <handa@etl.go.jp>
3065
3066 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
3067
3068 * ccl.h (struct ccl_program): New member cr_consumed.
3069
3070 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
3071 (CCL_READ_CHAR): Handle EOL conversion here.
3072 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
3073
3074 2000-12-21 Gerd Moellmann <gerd@gnu.org>
3075
3076 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
3077
3078 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
3079 otherwise tabs of different size compare equal.
3080
3081 * callint.c (Fcall_interactively): Prevent a compiler warning.
3082
3083 * print.c (print_unwind): Return nil.
3084 (PRINTDECLARE): Initialize all local variables.
3085 (print_preprocess): Add a default case.
3086
3087 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
3088
3089 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
3090
3091 * window.c (delete_window, Fsplit_window)
3092 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
3093
3094 * dispextern.h (ensure_frame_matrix): Function declaration removed.
3095
3096 * dispnew.c (ensure_frame_matrix): Removed.
3097 (save_frame_matrix, restore_frame_matrix): New functions.
3098 (adjust_frame_glyphs_for_frame_redisplay): Use them.
3099
3100 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
3101 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
3102
3103 2000-12-21 Andrew Innes <andrewi@gnu.org>
3104
3105 * w32term.c (x_update_begin): Regenerate the palette here, rather
3106 than for each window.
3107
3108 * w32xfns.c (select_palette): Avoid calling SelectPalette if
3109 palette is NULL, since this corrupts memory! Also get
3110 display_info reference from frame.
3111
3112 2000-12-21 Jason Rumney <jasonr@gnu.org>
3113
3114 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
3115
3116 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
3117 to avoid returning without releasing it.
3118
3119 2000-12-21 Kenichi Handa <handa@etl.go.jp>
3120
3121 * keymap.c (push_key_description): Don't convert eight-bit-control
3122 and eight-bit-graphic to multibyte character.
3123
3124 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
3125 generic character and CODE1 is nil, return the smallest character
3126 in CHARSET.
3127
3128 2000-12-20 Dave Love <fx@gnu.org>
3129
3130 * s/osf5-0.h (NSIG): Don't redefine.
3131
3132 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
3133
3134 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
3135 excluding menu-bar and tool-bar.
3136 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
3137 (menu_item_p): Remove.
3138 (where_is_internal_1): Don't ignore menu-items.
3139
3140 2000-12-20 Gerd Moellmann <gerd@gnu.org>
3141
3142 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
3143 into account.
3144
3145 * window.c (make_window): Initialize window's min_hscroll.
3146 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
3147 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
3148 to zero.
3149 (struct saved_window): New member min_hscroll.
3150 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
3151 (Fset_window_configuration): Set window's min_hscroll.
3152 (save_window_save): Save window's min_hscroll.
3153 (compare_window_configurations): Compare min_hscroll values.
3154
3155 * window.h (struct window): New member min_hscroll.
3156
3157 * keyboard.c (echo_prompt): Prevent a compiler warning.
3158
3159 * xdisp.c (try_cursor_movement): Fix last change. The real
3160 condition is that PT is at the end of the row, and should
3161 be displayed at the start of the next row.
3162
3163 * xdisp.c (try_cursor_movement): If we end on a partially
3164 visible line, end we already decided to scroll, return -1.
3165
3166 * dispextern.h (ensure_frame_matrix): Add prototype.
3167
3168 * window.c (delete_window, Fsplit_window)
3169 (Fset_window_configuration): Call ensure_frame_matrix.
3170
3171 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
3172 New functions.
3173 (adjust_frame_glyphs_for_frame_redisplay): If display has been
3174 completed, call fake_current_matrices instead of marking frame
3175 garbaged.
3176
3177 2000-12-20 Jason Rumney <jasonr@gnu.org>
3178
3179 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
3180
3181 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
3182
3183 * fns.c (Frequire): Doc fix.
3184
3185 2000-12-19 Gerd Moellmann <gerd@gnu.org>
3186
3187 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
3188
3189 * dispnew.c (direct_output_for_insert): Fix check for mini-window
3190 currently displaying a message.
3191
3192 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
3193 xterm.h.
3194 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
3195
3196 2000-12-18 Andrew Innes <andrewi@gnu.org>
3197
3198 * w32.c (w32_strerror): New function.
3199
3200 * w32.h (w32_strerror): New extern.
3201
3202 * w32fns.c (Fw32_shell_execute): Use it.
3203
3204 2000-12-18 Gerd Moellmann <gerd@gnu.org>
3205
3206 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
3207
3208 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
3209
3210 * msdos.c (IT_set_face): Obey inverse_video.
3211
3212 2000-12-18 Kenichi Handa <handa@etl.go.jp>
3213
3214 * dired.c (directory_files_internal): Always return decoded filenames.
3215
3216 2000-12-18 Gerd Moellmann <gerd@gnu.org>
3217
3218 * xterm.c (x_connection_closed): Prevent being called recursively
3219 because of an error condition in XtCloseDisplay.
3220
3221 * xdisp.c (init_iterator): If noninteractive, and the frame's
3222 face cache is null, make one.
3223
3224 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
3225
3226 * process.c (wait_reading_process_input): Check for pending
3227 input when running timers.
3228
3229 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
3230
3231 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
3232
3233 2000-12-18 Kenichi Handa <handa@etl.go.jp>
3234
3235 * process.c (read_process_output): Don't run a filter if the code
3236 decoder produces nothing but carryover.
3237
3238 2000-12-17 Andrew Innes <andrewi@gnu.org>
3239
3240 * w32.c (sys_rename): Only check errno against EEXIST, and not
3241 EACCES, when determining whether rename failed because the target
3242 exists. This was resulting in indefinite looping on Windows 9x if
3243 the source file was locked by another process.
3244
3245 * w32fns.c (Ffile_system_info): New function.
3246 (syms_of_w32fns): Defsubr it.
3247
3248 2000-12-17 Gerd Moellmann <gerd@gnu.org>
3249
3250 * window.c (coordinates_in_window): Fix computation for
3251 position on vertical line between mode lines.
3252
3253 * xfns.c (unwind_create_frame): Return t if frame was deleted.
3254 Don't alter tip_frame or tip_window.
3255 (unwind_create_tip_frame): Set tip_frame to nil only if frame
3256 was deleted.
3257
3258 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
3259 Don't alter tip_frame or tip_window.
3260 (unwind_create_tip_frame): Set tip_frame to nil only if frame
3261 was deleted.
3262
3263 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
3264
3265 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
3266 be consistent with the doc string. Reported by NAKAJIMA Mikio
3267 <minakaji@osaka.email.ne.jp>.
3268
3269 2000-12-16 Kenichi Handa <handa@etl.go.jp>
3270
3271 * xfaces.c (Vface_ignored_fonts): New variable.
3272 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
3273 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
3274
3275 2000-12-15 Gerd Moellmann <gerd@gnu.org>
3276
3277 * dispnew.c (update_window): Detect pending input every nth line
3278 updated, i.e. do it depending on real work done, and not on the
3279 vpos of the line.
3280
3281 * xterm.c (expose_window): Don't redraw the window that's
3282 currently being updated.
3283
3284 * window.c (Fset_window_point): Remove test for
3285 cursor_in_non_selected_windows.
3286
3287 * lread.c (read1): Recognize end of file after `\\'.
3288
3289 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
3290 not unwind_create_frame.
3291
3292 2000-12-15 Dave Love <fx@gnu.org>
3293
3294 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
3295 bcopy & al.
3296
3297 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
3298
3299 2000-12-15 Kenichi Handa <handa@etl.go.jp>
3300
3301 * coding.c (setup_coding_system): Clear all members of the struct
3302 coding_system at first.
3303 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
3304 argument.
3305 (code_convert_region): Don't override coding->src_multibyte and
3306 coding->dst_multibyte.
3307
3308 * fns.c (Fmd5): Docstring improved.
3309
3310 2000-12-15 Miles Bader <miles@gnu.org>
3311
3312 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
3313 are actually marked as mode-lines; otherwise use
3314 estimate_mode_line_height.
3315
3316 2000-12-14 Gerd Moellmann <gerd@gnu.org>
3317
3318 * editfns.c (Fformat): Prevent a buffer overrun when the format
3319 specifies a precision.
3320
3321 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
3322
3323 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
3324 argument is outside the range [2..3].
3325
3326 2000-12-14 Andrew Innes <andrewi@gnu.org>
3327
3328 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
3329 nothing to do. Bind inhibit-quit.
3330 (tip_frame): Make it a Lisp_Object.
3331 (x_create_tip_frame): Set tip_frame after it has been added to
3332 Vframe_list.
3333 (Fx_show_tip): Don't set tip_frame here.
3334 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
3335 (unwind_create_frame, unwind_create_tip_frame): New functions.
3336 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
3337 while a frame is only partially constructed.
3338
3339 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
3340 (x_free_frame_resources): New function.
3341 (x_destroy_window): Use it.
3342
3343 2000-12-14 Gerd Moellmann <gerd@gnu.org>
3344
3345 * xfns.c (Fx_backspace_delete_keys_p): New function.
3346 (syms_of_xfns): Defsubr it.
3347
3348 * config.in (HAVE_XKBGETKEYBOARD): Add.
3349
3350 2000-12-14 Kenichi Handa <handa@etl.go.jp>
3351
3352 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
3353 Always store string in multibyte representation in echobuf.
3354 (echo_char): Always store string in multibyte representation in
3355 echobuf.
3356 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
3357 (read_key_sequence): Adjusted for the change of echo_prompt.
3358
3359 * fns.c (Fmd5): Docstring improved.
3360
3361 * lisp.h (detect_coding_system): Prototype adjusted.
3362
3363 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
3364 (detect_coding_emacs_mule, detect_coding_iso2022,)
3365 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
3366 (detect_coding_utf_16, detect_coding_ccl): Make them static.
3367 New argument MULTIBYTEP. Callers changed.
3368 (detect_coding_mask, detect_coding_system): New argument
3369 MULTIBYTEP. Callers changed.
3370 (decode_coding_string): Set coding->src_multibyte and
3371 coding->dst_multibyte before calling detect_coding and detect_eol.
3372 Update them after some coding system is detected.
3373
3374 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
3375
3376 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
3377
3378 * keyboard.c (menu_bar_items, tool_bar_items):
3379 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
3380
3381 2000-12-13 Gerd Moellmann <gerd@gnu.org>
3382
3383 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
3384 New variables.
3385 (unwind_create_frame, unwind_create_tip_frame): New functions.
3386 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
3387 while a frame is only partially constructed.
3388
3389 * xterm.h (x_free_frame_resources): Declare.
3390
3391 * xterm.c (x_free_frame_resources): New function.
3392 (x_destroy_window): Use it.
3393
3394 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
3395 don't interrupt the update for pending input initially, i.e.
3396 update at least some lines.
3397
3398 * keyboard.c (do_mouse_tracking): Make externally visible.
3399
3400 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
3401
3402 * xfns.c (gray_bitmap_bits): Declare `char *'.
3403
3404 2000-12-12 Gerd Moellmann <gerd@gnu.org>
3405
3406 * xdisp.c (display_tool_bar_line): Make sure that tool bar
3407 lines start with a relief line.
3408
3409 2000-12-12 Dave Love <fx@gnu.org>
3410
3411 * window.c (Fdisplay_buffer): Doc fix.
3412 (Fwindow_list): Remove unused var.
3413
3414 * buffer.h (mmap_set_vars): Declare.
3415
3416 * window.h (Fset_window_point): Declare.
3417
3418 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
3419
3420 * msdos.c (fast_find_position): Don't overstep the last window row.
3421 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
3422 variable `area'. When looking for a row under (X,Y), give up if some
3423 of the previous rows is not enabled.
3424
3425 2000-12-12 Gerd Moellmann <gerd@gnu.org>
3426
3427 * window.c (Fset_window_point): If displaying cursors in windows
3428 other than the selected window, make sure redisplay updates
3429 other windows to show the new value of point in the window.
3430
3431 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
3432
3433 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
3434 the buffer is the sole visible buffer when in the mini-buffer.
3435
3436 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
3437 Bind `inhibit-read-only' to t.
3438 (unwind_with_echo_area_buffer): Use AREF.
3439
3440 * xfns.c (Fx_hide_tip): Simplified.
3441
3442 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
3443 instead of `1'.
3444
3445 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
3446
3447 2000-12-11 Gerd Moellmann <gerd@gnu.org>
3448
3449 * xfns.c (Fx_hide_tip): Fix last change.
3450
3451 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
3452 nothing to do. Bind inhibit-quit.
3453 (tip_frame): Make it a Lisp_Object.
3454 (x_create_tip_frame): Set tip_frame after it has been added to
3455 Vframe_list.
3456 (Fx_show_tip): Don't set tip_frame here.
3457
3458 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
3459
3460 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
3461 Lisp_Object.
3462
3463 * dispextern.h: Change external declaration of tip_frame.
3464
3465 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
3466 return an empty string.
3467
3468 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
3469 of the window's update_mode_line flag, since the former is set by
3470 force-mode-line-update, not the latter. This makes
3471 column-number-mode slightly faster.
3472
3473 * xdisp.c (try_window_id) <all changes above window start>:
3474 Set the cursor.
3475
3476 2000-12-11 Paul Eggert <eggert@twinsun.com>
3477
3478 * config.in (HAVE_FTELLO): Remove.
3479 (HAVE_FSEEKO): Add.
3480 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
3481 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
3482 HAVE_FTELLO.
3483 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
3484 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
3485
3486 2000-12-11 Miles Bader <miles@gnu.org>
3487
3488 * window.c (displayed_window_lines): Don't round up when
3489 converting empty space at bottom to lines.
3490 Handle non-newline-terminated final lines properly.
3491 (Fwindow_text_height): New function (used to be in lisp).
3492 (syms_of_window): Initialize it.
3493
3494 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
3495
3496 * syntax.c (scan_lists): Check that the right quote char has the
3497 right Sstring syntax when jumping over strings.
3498 (init_syntax_once): Use Smax rather than 13.
3499
3500 2000-12-09 Miles Bader <miles@gnu.org>
3501
3502 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
3503 with PARTIALLY, inverting the sense.
3504 (window_scroll_pixel_based): Scroll partially visible lines into
3505 place if we hit the beginning or end of the buffer.
3506 (displayed_window_lines): Don't include partially visible lines.
3507 (Fmove_to_window_line): Skip past any partially visible first line.
3508
3509 2000-12-08 Gerd Moellmann <gerd@gnu.org>
3510
3511 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
3512
3513 * tparam.c (tparam1): Change the way buffers are reallocated to be
3514 portable and less obfuscated.
3515
3516 * termcap.c (tgetent): Change the way buffers are reallocated to
3517 be portable and less obfuscated.
3518
3519 * macros.c (store_kbd_macro_char): Change the way buffers are
3520 reallocated to be portable and less obfuscated.
3521
3522 * lread.c (read1): Change the way buffers are reallocated to be
3523 portable and less obfuscated.
3524
3525 * doc.c (Fsubstitute_command_keys): Change the way buffers
3526 are reallocated so that it is portable.
3527
3528 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
3529
3530 * dosfns.c (Ffile_system_info): New function.
3531 (syms_of_dosfns): Defsubr it.
3532
3533 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
3534
3535 * alloc.c (gc_sweep): Add comment.
3536
3537 2000-12-07 Gerd Moellmann <gerd@gnu.org>
3538
3539 * sound.c (vox_configure): Change order of ioctls.
3540 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
3541 Ignore errors when changing volume.
3542 (vox_close): Don't reset the device.
3543
3544 * process.c (read_process_output): Make sure the process marker's
3545 position is valid when the process buffer is changed in
3546 after-change functions. W3 does that.
3547
3548 * xfns.c (x_free_gcs): New function.
3549
3550 * xterm.h (x_free_gcs): Add prototype.
3551
3552 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
3553 freeing GCs here.
3554
3555 * xterm.c (x_destroy_window): Call x_free_gcs so that
3556 resources of non-toolkit X windows will be freed.
3557
3558 2000-12-07 Andrew Innes <andrewi@gnu.org>
3559
3560 * w32fns.c (xlfd_charset_of_font): Fix last change.
3561
3562 2000-12-06 Dave Love <fx@gnu.org>
3563
3564 * md5.h (__P): Don't define -- it comes from config.h.
3565
3566 * strftime.c: Change some #if foo to #ifdef foo.
3567
3568 2000-12-06 Andrew Innes <andrewi@gnu.org>
3569
3570 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
3571
3572 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
3573 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
3574 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
3575
3576 2000-12-06 Gerd Moellmann <gerd@gnu.org>
3577
3578 * alloc.c (gc_sweep): Prevent symbols read during loadup
3579 from being freed.
3580
3581 * xdisp.c (underlying_face_id): New function.
3582 (handle_face_prop, face_before_or_after_it_pos): Use it
3583 to determine the face ``under'' a string. Let strings inherit
3584 the face of the buffer under them.
3585
3586 * xfaces.c (face_at_string_position): Update function comment.
3587
3588 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
3589 matrix if the window's left position has changed; we need to
3590 redraw it in this case.
3591
3592 * dispextern.h (struct glyph_matrix): Add member window_left_x.
3593
3594 * window.c (coordinates_in_window): Check mouse on mode-line or
3595 header-line first.
3596
3597 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
3598 advertized by the function documentation.
3599
3600 * window.c (syms_of_window): Doc fix.
3601
3602 * sound.c (vox_configure): Set volume for left and right channel.
3603 (sound_cleanup): Return nil.
3604
3605 * xdisp.c (move_it_by_lines): Fix paren typo.
3606
3607 * xterm.c (x_load_font): Don't use the font's max_bounds for
3608 computing the height of the font. If max_bounds' ascent or
3609 descent are greater than the font's ascent or descent, this means
3610 glyphs overlap, which should be handled now by redisplay.
3611
3612 * window.c (Veven_window_heights): New variable.
3613 (syms_of_window): DEFVAR_LISP it.
3614 (Fdisplay_buffer): Check Veven_window_heights before evening the
3615 window heights.
3616
3617 2000-12-06 Miles Bader <miles@gnu.org>
3618
3619 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
3620 update `default-frame-alist' instead of setting no frame parameters.
3621
3622 2000-12-06 Kenichi Handa <handa@etl.go.jp>
3623
3624 * composite.c (update_compositions): Fix typo (use the correct
3625 variable).
3626
3627 2000-12-05 Jason Rumney <jasonr@gnu.org>
3628
3629 * md5.h: Remove underscores from function declarations.
3630 (__attribute__, __alignof__) [!__GNUC__]: Define.
3631
3632 * md5.c: Delay include of md5.h until after namespace cleaning.
3633
3634 * makefile.w32-in (fns.o): Depend on md5.h
3635 (md5.o): New target.
3636 (sunfns.o): Remove.
3637
3638 * makefile.nt: Likewise.
3639
3640 2000-12-05 Jason Rumney <jasonr@altavista.net>
3641
3642 * w32term.c (expose_area): Complete last change.
3643
3644 2000-12-05 Ken Raeburn <raeburn@gnu.org>
3645
3646 * minibuf.c: Include intervals.h.
3647
3648 2000-12-05 Jason Rumney <jasonr@gnu.org>
3649
3650 * w32term.c (x_produce_glyphs): If a font for a component of
3651 a composition is not found, use 1 pixel dot ascent and 0 dot
3652 descent value to avoid displaying terribly tall empty boxes.
3653 (expose_area): Pass x-coordinate relative to the exposed
3654 area to x_draw_glyphs instead of a window-relative coordinate.
3655
3656 2000-12-05 Gerd Moellmann <gerd@gnu.org>
3657
3658 * xdisp.c (next_element_from_ellipsis): Save face before selective
3659 display in saved_face_id, and set face_before_selective_p.
3660 (reseat_1): Reset face_before_selective_p.
3661 (append_space, extend_face_to_end_of_line): If iterator's
3662 face_before_selective_p is set, use the face from saved_face_id.
3663 (extend_face_to_end_of_line): For tty frames, make sure to
3664 use the right face id when producing spaces at the end of
3665 the line.
3666
3667 * dispextern.h (struct it): Add face_before_selective_p.
3668
3669 * keyboard.c (record_char): Don't record identical help-echo
3670 events in recent_keys.
3671
3672 * xterm.c [USE_X_TOOLKIT]: Close the display.
3673 (xim_close_dpy): Handle case that the display has been closed.
3674
3675 * xterm.c (x_destroy_window): Reset the frame's X window after
3676 destroying it.
3677
3678 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
3679 variable window_width.
3680 (line_draw_cost): Fix code skipping over spaces at the end of the
3681 line when must_write_spaces is not set.
3682 (scrolling_window): Fix code inserting runs in list of all runs.
3683
3684 2000-12-05 Kenichi Handa <handa@etl.go.jp>
3685
3686 * coding.c (setup_coding_system): Be sure to initialize
3687 coding->category_idx.
3688
3689 2000-12-04 Gerd Moellmann <gerd@gnu.org>
3690
3691 * xterm.c (PER_CHAR_METRIC): Removed because not used.
3692
3693 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
3694 area to x_draw_glyphs instead of a window-relative coordinate.
3695
3696 * fileio.c (auto_save_error): Add parameter ERROR. Show the
3697 error in the message.
3698
3699 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
3700 timer after having read a key. It's not good for code reading
3701 several keys in a loop, like an input method.
3702
3703 * fileio.c (Finsert_file_contents): When VISIT is t, don't
3704 record undo information for format-decode.
3705
3706 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
3707 current buffer is read-only, not if it isn't.
3708
3709 * keyboard.c (record_char): Record `help-echo' input events
3710 in recent_keys only if they display some help. Don't record
3711 `help-echo' events as macro char.
3712
3713 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
3714
3715 * editfns.c (save_excursion_restore): Don't move point
3716 in another window if it is showing the wrong buffer.
3717 Avoid the call to Fwindow_live_p, for speed.
3718
3719 2000-12-04 Kenichi Handa <handa@etl.go.jp>
3720
3721 * xfaces.c (struct font_name): New member registry_priority.
3722 (split_font_name): Initialize the above member to zero.
3723 (concat_font_list): New function.
3724 (font_list): Include fonts of all alternative registries.
3725 (FONT_POINT_SIZE_QUANTUM): New macro.
3726 (better_font_p): Ignore point size difference less than
3727 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
3728
3729 * xterm.c (x_produce_glyphs): If a font for a component of
3730 a composition is not found, use 1 pixel dot ascent and 0 dot
3731 descent value to avoid displaying terribly tall empty boxes.
3732
3733 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
3734
3735 2000-12-03 Ken Raeburn <raeburn@gnu.org>
3736
3737 * coding.h (code_convert_string1): Declare.
3738
3739 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
3740
3741 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
3742
3743 2000-12-02 Jason Rumney <jasonr@gnu.org>
3744
3745 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
3746 correctly for single byte character case.
3747 (w32_per_char_metric): Do not try to make any assumptions about
3748 the metrics of BDF fonts.
3749 (x_estimate_mode_line_height): If `mode-line' face
3750 hasn't a font, use that of the frame, as drawing glyphs does.
3751 (note_mouse_highlight): Change the cursor shape on the vertical
3752 border between windows [not enabled].
3753
3754 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
3755
3756 * w32fns.c (Fx_create_frame): Reintroduce the call to
3757 face-set-after-frame-defaults.
3758 (Vx_window_horizontal_drag_shape): New variable.
3759 (syms_of_xfns): DEFVAR_LISP it.
3760 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
3761 enabled].
3762
3763 2000-12-02 Simon Josefsson <simon@josefsson.org>
3764
3765 * fns.c (Fmd5): Use a different logic to decide the coding system
3766 to use.
3767
3768 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
3769
3770 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
3771
3772 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
3773
3774 2000-12-01 Gerd Moellmann <gerd@gnu.org>
3775
3776 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
3777 height for YNegative.
3778 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
3779 height; also see comment there.
3780
3781 * window.c (coordinates_in_window): Handle computations for
3782 positions on the vertical bar and fringes differently for
3783 window-system frames. Consider some pixels near the vertical bar
3784 as on the bar if the frame doesn't have vertical scroll bars.
3785 Associate positions between mode or header lines with the
3786 right window, the left one.
3787
3788 2000-12-01 Jason Rumney <jasonr@gnu.org>
3789
3790 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
3791
3792 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
3793 invalid frame.
3794
3795 2000-12-01 Gerd Moellmann <gerd@gnu.org>
3796
3797 * window.c (struct saved_window): Add members orig_top and orig_height.
3798 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
3799 (save_window_save, Fset_window_configuration): Save/restore
3800 window's orig_top and orig_height.
3801
3802 2000-12-01 Jason Rumney <jasonr@gnu.org>
3803
3804 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
3805
3806 * w32fns.c (x_set_cursor_color): Fix last change.
3807
3808 2000-11-30 Gerd Moellmann <gerd@gnu.org>
3809
3810 * xdisp.c (echo_area_display): If cursor is in the echo area, make
3811 sure that the next redisplay displays the minibuffer, so that
3812 the cursor will be replaced with what the minibuffer wants.
3813
3814 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
3815 #ifndef instead of using #if.
3816 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
3817 USE_TOOLKIT_SCROLL_BARS is defined.
3818
3819 2000-11-30 Jason Rumney <jasonr@gnu.org>
3820
3821 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
3822 x_display_cursor.
3823
3824 2000-11-30 Gerd Moellmann <gerd@gnu.org>
3825
3826 * fns.c (Fmd5): Doc fix.
3827
3828 2000-11-30 Simon Josefsson <simon@josefsson.org>
3829
3830 * fns.c (Fmd5): New function.
3831 (syms_of_fns): Defsubr md5.
3832
3833 * Makefile.in (obj): Add md5.o
3834
3835 2000-11-30 Gerd Moellmann <gerd@gnu.org>
3836
3837 * md5.h, md5.c: New files, taken from glibc.
3838
3839 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
3840
3841 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
3842 hasn't a font, use that of the frame, as drawing glyphs does.
3843
3844 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
3845
3846 * eval.c (Frun_hooks): Allow 0 arguments.
3847
3848 2000-11-29 Gerd Moellmann <gerd@gnu.org>
3849
3850 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
3851 is over the menu bar widget, say it's not on the frame.
3852
3853 * xfns.c (Fx_create_frame): Reintroduce the call to
3854 face-set-after-frame-defaults.
3855
3856 * eval.c (Fsignal): Reset handling_signal.
3857
3858 2000-11-28 Jason Rumney <jasonr@gnu.org>
3859
3860 * w32menu.c (add_menu_item): Reset menu item text when changing
3861 type to radio button.
3862
3863 2000-11-28 Gerd Moellmann <gerd@gnu.org>
3864
3865 * xselect.c: Update copyright.
3866
3867 * window.c (coordinates_in_window): If on a mode or header line,
3868 but sufficiently close to its start, return ``on vertical
3869 border''. This gives us a way to drag windows horizontally when
3870 using toolkit scroll bars.
3871
3872 * xterm.c (note_mouse_highlight): Change the cursor shape
3873 on the vertical border between windows.
3874
3875 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
3876
3877 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
3878 (syms_of_xfns): DEFVAR_LISP it.
3879 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
3880
3881 * textprop.c (text_read_only): New function.
3882 (verify_interval_modification): Use it instead of signaling
3883 `text-read-only'. This makes it easier to catch this error
3884 with a breakpoint.:
3885
3886 * xdisp.c (forward_to_next_line_start): Check for newlines,
3887 not end of line, which includes CR.
3888
3889 2000-11-28 Kenichi Handa <handa@etl.go.jp>
3890
3891 * coding.c (Ffind_coding_systems_region_internal): Be sure to
3892 include no-conversion.
3893
3894 2000-11-27 Jason Rumney <jasonr@gnu.org>
3895
3896 * w32fns.c (w32_load_system_font): Always mark font as double byte
3897 if codepage is unicode.
3898
3899 2000-11-27 Gerd Moellmann <gerd@gnu.org>
3900
3901 * xdisp.c (forward_to_next_line_start): If already on a newline,
3902 just consume it to avoid unintended skipping over invisible text below.
3903
3904 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
3905 `vertical-line', `mode-line' and `header-line' events.
3906
3907 * xdisp.c (try_window_id): Avoid starting to display in the middle
3908 of a character, a TAB for instance. This is easier than to set
3909 up the iterator exactly, and it's not a frequent case, so the
3910 additional effort wouldn't really pay off.
3911
3912 2000-11-26 Andrew Choi <akochoi@i-cable.com>
3913
3914 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
3915 init_window_once.
3916
3917 2000-11-25 Jason Rumney <jasonr@gnu.org>
3918
3919 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
3920 Args to window_from_coordinates should be pixel coordinates.
3921
3922 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
3923 redisplay handles them properly.
3924
3925 2000-11-25 Miles Bader <miles@gnu.org>
3926
3927 * indent.c (compute_motion): Keep pos_byte in sync with pos.
3928
3929 2000-11-24 Jason Rumney <jasonr@gnu.org>
3930
3931 * w32.c (init_environment): Set LANG environment variable based on
3932 locale settings, if not set.
3933
3934 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
3935 making tool bar smaller. When clearing the frame, also
3936 clear current matrices. Clear frame when tool bar disappears.
3937 Don't use more lines for the tool-bar than is available.
3938 (x_change_window_heights): New function.
3939
3940 2000-11-24 Gerd Moellmann <gerd@gnu.org>
3941
3942 * xdisp.c (init_from_display_pos): If POS says we're already after
3943 an overlay string ending at POS, make sure to pop the iterator
3944 because it will be in front of that overlay string. When POS is
3945 ZV, we've thereby also ``processed'' overlay strings at ZV.
3946
3947 * xfaces.c (lface_from_face_name): Function comment fix.
3948
3949 2000-11-24 Miles Bader <miles@gnu.org>
3950
3951 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
3952 apply `mode-line-inverse-video' -- zero means force display using
3953 the default face, non-zero means display using the specialized face.
3954 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
3955
3956 2000-11-23 Kenichi Handa <handa@etl.go.jp>
3957
3958 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
3959 hard coded `4'.
3960
3961 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
3962
3963 * coding.c (decode_coding_emacs_mule): Fix the case of
3964 CODING_EOL_LF, which used uninitialized value of c.
3965
3966 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
3967
3968 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
3969
3970 2000-11-22 Gerd Moellmann <gerd@gnu.org>
3971
3972 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
3973 buffer object.
3974
3975 * frame.h (struct frame): Replace desired_tool_bar_items,
3976 current_tool_bar_items, n_desired_tool_bar_items,
3977 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
3978
3979 * frame.c (make_frame): Change initialization of tool bar
3980 items accordingly.
3981
3982 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
3983 Change references to members deleted from struct frame to use the
3984 new ones.
3985
3986 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
3987 references to members deleted from struct frame to use the new ones.
3988
3989 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
3990
3991 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
3992
3993 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
3994 (note_tool_bar_highlight): Change references to members deleted
3995 from struct frame to use the new ones.
3996
3997 2000-11-23 Miles Bader <miles@gnu.org>
3998
3999 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
4000 the face's inverse-video attribute, rather than overriding it.
4001
4002 2000-11-22 Gerd Moellmann <gerd@gnu.org>
4003
4004 * xfns.c (x_set_tool_bar_lines): Clear internal border when
4005 making tool bar smaller.
4006
4007 2000-11-22 Dave Love <fx@gnu.org>
4008
4009 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
4010
4011 2000-11-22 Miles Bader <miles@gnu.org>
4012
4013 * keyboard.c (Vminibuffer_message_timeout): New variable.
4014 (command_loop_1): Use it to determine message timeout.
4015 (syms_of_keyboard): Initialize it.
4016
4017 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
4018
4019 2000-11-22 Kenichi Handa <handa@etl.go.jp>
4020
4021 * sysdep.c: Move the code for declaring h_errno after #include
4022 <netdb.h>.
4023
4024 2000-11-21 Gerd Moellmann <gerd@gnu.org>
4025
4026 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
4027 the menu bar when the tooltip is unmapped.
4028
4029 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
4030 sole visible buffer when we're currently in the mini-buffer, and
4031 give up if so.
4032
4033 2000-11-21 Jason Rumney <jasonr@gnu.org>
4034
4035 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
4036 put on the clipboard.
4037 (Fw32_get_clipboard_data): Compare data on clipboard with saved
4038 copy of what Emacs last put there. If they are the same, do not
4039 use the clipboard copy to avoid losing data due to coding conversions.
4040
4041 2000-11-22 Miles Bader <miles@gnu.org>
4042
4043 * minibuf.c (Vminibuffer_prompt_properties): New variable.
4044 (syms_of_minibuf): Initialize it.
4045 (read_minibuf): Add properties from Vminibuffer_prompt_properties
4046 to prompt, don't make read-only.
4047
4048 2000-11-21 Gerd Moellmann <gerd@gnu.org>
4049
4050 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
4051 Add BEFORE/AFTER_POTENTIAL_GC.
4052
4053 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
4054
4055 * buffer.c (mmap_free_1): Avoid a compiler warning.
4056
4057 * term.c, cm.c: Don't try to include termcap.h; see comment there.
4058
4059 2000-11-21 Kenichi Handa <handa@etl.go.jp>
4060
4061 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
4062 ... #endif scope.
4063
4064 2000-11-20 Gerd Moellmann <gerd@gnu.org>
4065
4066 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
4067 screen supports it.
4068
4069 * s/gnu-linux.h: Don't use `#cpu'.
4070
4071 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
4072 not defined in mman.h.
4073
4074 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
4075 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
4076 and store an index in the XClientMessageEvent. Storing a
4077 Lisp_Object or pointer can fail on a 64 bit system, since X only
4078 transfers 32 bits.
4079 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
4080
4081 2000-11-20 Dave Love <fx@gnu.org>
4082
4083 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
4084
4085 2000-11-20 Gerd Moellmann <gerd@gnu.org>
4086
4087 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
4088
4089 2000-11-20 Kenichi Handa <handa@etl.go.jp>
4090
4091 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
4092 by WIDTH.
4093
4094 * alloc.c (make_string): Fix previous change. Be sure to make
4095 unibyte string correctly.
4096
4097 2000-11-19 Gerd Moellmann <gerd@gnu.org>
4098
4099 * window.c (Fwindow_list): Change parameter list to be XEmacs
4100 compatible.
4101 (window_list_1): New function.
4102 (window_loop): Use it instead of Fwindow_list.
4103
4104 * sysdep.c (emacs_ospeed): New variable.
4105 (toplevel): Don't declare ospeed extern.
4106 (init_baud_rate): Use emacs_ospeed instead of ospeed.
4107
4108 * termcap.c (ospeed): Remove.
4109 (tputs) [!emacs]: Remove unused code.
4110 (tgetent): Avoid a compiler warning.
4111
4112 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
4113 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
4114 SCROLL_BAR_X_WIDGET with additional argument DPY.
4115
4116 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
4117 removed.
4118 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
4119 Take the X display as additional argument.
4120 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
4121 `Widget' is a pointer type that's not easily stored in Lisp_Object
4122 form in a portable way.
4123
4124 * dispnew.c (update_text_area): Fix last change.
4125
4126 2000-11-18 Gerd Moellmann <gerd@gnu.org>
4127
4128 * xdisp.c: Use BINDING_STACK_SIZE throughout.
4129
4130 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
4131 clear current matrices.
4132
4133 * buffer.c (mmap_enlarge): Don't print a message on stderr
4134 if mapping new memory at the end of the existing region fails.
4135
4136 * dispnew.c (update_text_area): Don't skip over equal glyphs
4137 when the last current glyph overlaps the glyph to its right.
4138
4139 2000-11-18 Miles Bader <miles@gnu.org>
4140
4141 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
4142 lines that *end* with "..." too (that's the most common case!).
4143
4144 2000-11-18 Gerd Moellmann <gerd@gnu.org>
4145
4146 * xdisp.c (resize_mini_window): Temporarily change to the
4147 mini-window's buffer if necessary.
4148
4149 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
4150 the tooltip obscures less text under it.
4151
4152 2000-11-17 Gerd Moellmann <gerd@gnu.org>
4153
4154 * puresize.h (BASE_PURESIZE): Increase to 700000.
4155
4156 2000-11-18 Jason Rumney <jasonr@gnu.org>
4157
4158 * w32term.c (w32_draw_bitmap): Use face to set colors.
4159
4160 2000-11-17 Dave Love <fx@gnu.org>
4161
4162 * lread.c (Fload): Fix #ifdef for pcc.
4163
4164 2000-11-17 Gerd Moellmann <gerd@gnu.org>
4165
4166 * xdisp.c (pos_visible_p): Compute the default character height
4167 differently.
4168
4169 2000-11-16 Gerd Moellmann <gerd@gnu.org>
4170
4171 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
4172 knowing the line's height; use the default font's height in that case.
4173
4174 * xfaces.c (weight_table): Add `demi' with the same meaning as
4175 `demibold'.
4176
4177 2000-11-16 Kenichi Handa <handa@etl.go.jp>
4178
4179 * dispnew.c (null_row): New global static variable.
4180 (clear_glyph_row): Delete local static variable null_row.
4181
4182 2000-11-15 Jason Rumney <jasonr@gnu.org>
4183
4184 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
4185 (w32_alloc_lighter_color): Use new brightness calculations from
4186 xterm.c. Scale delta to be in the range expected by W32.
4187 (w32_draw_relief_rect): Use frame relief colors.
4188
4189 2000-11-15 Gerd Moellmann <gerd@gnu.org>
4190
4191 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
4192 (Qinhibit_default_face_x_resources): New variable.
4193 (syms_of_frame): Initialize it.
4194 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
4195
4196 * xdisp.c (pos_visible_p): Improve function comment.
4197
4198 * lisp.h (BINDING_STACK_SIZE): New macro.
4199
4200 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
4201 reading the directory if readdir returns null and errno is EAGAIN
4202 or EINTR.
4203
4204 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
4205
4206 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
4207 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
4208 Set amount_to_scroll to max of dx and scroll_step so that
4209 scroll-conservatively doesn't defeat scroll-step>1.
4210 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
4211 scroll-conservatively for line-at-a-time scrolling.
4212
4213 2000-11-14 Gerd Moellmann <gerd@gnu.org>
4214
4215 * window.c (Fpos_visible_in_window_p): Call pos_visible with
4216 extra argument.
4217
4218 * xdisp.c (current_mode_line_height, current_header_line_height):
4219 New variables.
4220 (init_xdisp): Initialize them.
4221 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
4222 and use exact mode line heights if it is set.
4223
4224 * lisp.h (pos_visible_p): Change prototype.
4225
4226 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
4227 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
4228 and current_header_line_height first.
4229 (current_mode_line_height, current_header_line_height):
4230 Declare extern.
4231
4232 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
4233
4234 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
4235 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
4236 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
4237
4238 2000-11-14 Miles Bader <miles@gnu.org>
4239
4240 * xterm.c (x_alloc_lighter_color): Include an additive component
4241 too for dark colors, because FACTOR isn't enough.
4242 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
4243 New macros.
4244
4245 2000-11-13 Gerd Moellmann <gerd@gnu.org>
4246
4247 * keyboard.c (show_help_echo): Call message3_nolog with number of
4248 bytes in the help string as 2nd parameter, instead of the number
4249 of characters.
4250
4251 2000-11-13 Miles Bader <miles@gnu.org>
4252
4253 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
4254 (Fload): Use new openp return protocol.
4255 Don't try to use Vload_source_file_function to load .elc files.
4256 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
4257 openp return protocol.
4258 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
4259
4260 2000-11-11 Kenichi Handa <handa@etl.go.jp>
4261
4262 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
4263
4264 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
4265 Defined these macros.
4266 (NLIST_STRUCT): Avoid re-defining it.
4267
4268 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
4269 -I/usr/contrib/X11R6/include.
4270 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
4271
4272 2000-11-10 Jason Rumney <jasonr@gnu.org>
4273
4274 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
4275
4276 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
4277 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
4278
4279 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
4280 (Qw32_charset_vietnamese): New symbol.
4281 (xlfd_charset_of_font): New function.
4282 (w32_load_system_font): Use it.
4283 (x_to_w32_charset): Use Fassoc to find charset info. Special case
4284 when Vw32_charset_info_alist is nil to ensure default face always
4285 has font. Use Fcar and Fcdr for safety.
4286 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
4287 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
4288 pseudo-codepages for special cases.
4289 (w32_to_x_font): New parameter to allow charset portion to be
4290 specified where there is many to one mapping. Callers changed.
4291 (w32_list_fonts): Avoid listing fonts that won't display.
4292
4293 2000-11-10 Gerd Moellmann <gerd@gnu.org>
4294
4295 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
4296 (font_list_1): Renamed from font_list.
4297 (font_list): New function, trying alternative registries from
4298 Vface_alternative_font_registry_alist.
4299 (Finternal_set_alternative_font_registry_alist): New function.
4300 (syms_of_xfaces): Initialize and Staticpro
4301 Vface_alternative_font_registry_alist.
4302 Defsubr Finternal_set_alternative_font_registry_alist.
4303
4304 2000-11-09 Ken Raeburn <raeburn@gnu.org>
4305
4306 * lisp.h (Flooking_at): Declare.
4307
4308 2000-11-09 Gerd Moellmann <gerd@gnu.org>
4309
4310 * dired.c (directory_files_internal): Fix a braino.
4311
4312 * dired.c (directory_files_internal): Add missing GCPRO's.
4313 Some cleanup.
4314
4315 2000-11-08 Gerd Moellmann <gerd@gnu.org>
4316
4317 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
4318 (resize_mini_window): Return quickly if Vresize_mini_window is
4319 nil. Don't return if Vmax_mini_window_height is nil.
4320
4321 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
4322 (syms_of_xdisp): Initialize them.
4323 (resize_mini_window): Act according to the setting of
4324 Vresize_mini_window.
4325 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
4326
4327 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
4328 scroll bar widget after configuring it, so that it will appear at
4329 the right position from the start.
4330 (XTredeem_scroll_bar): Cleaned up.
4331
4332 2000-11-08 Kenichi Handa <handa@etl.go.jp>
4333
4334 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
4335 font is taller than the frame line, we don't have to bias the
4336 division by two.
4337
4338 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
4339
4340 2000-11-07 Dave Love <fx@gnu.org>
4341
4342 * config.in (HAVE_MKSTEMP): Add.
4343
4344 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
4345
4346 2000-11-07 Gerd Moellmann <gerd@gnu.org>
4347
4348 * window.c (Fset_window_configuration): Don't try to preserve
4349 point in the current buffer, if that buffer is displayed in more
4350 than one window.
4351
4352 * xfaces.c (lookup_named_face): If default face isn't realized,
4353 try to realize it. Return -1 if not successful.
4354 (Fx_list_fonts): Handle case that face cannot be determined.
4355 (Fface_font): Likewise.
4356
4357 2000-11-06 Gerd Moellmann <gerd@gnu.org>
4358
4359 * window.c (displayed_window_lines): Detect partially
4360 visible lines at the bottom correctly.
4361
4362 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
4363
4364 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
4365 when ensuring we don't do visit in indirect buffer.
4366
4367 2000-11-06 Kenichi Handa <handa@etl.go.jp>
4368
4369 * composite.h (compose_chars_in_text): Add prototype.
4370
4371 * composite.c (Vcomposition_function_table): New variable.
4372 (Qcomposition_function_table): New variable.
4373 (run_composition_function): Call
4374 Vcompose_chars_after_function with three arguments.
4375 (compose_chars_in_text): New function.
4376 (syms_of_composite): Modified the doc-string of
4377 Vcompose_chars_after_function. Declare composition-function-table
4378 as a lisp variable, and initialize it.
4379
4380 * xfns.c (x_encode_text): Suppress producing escape sequences for
4381 composition.
4382
4383 * xselect.c: Include composite.h.
4384 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
4385
4386 2000-11-05 Andrew Innes <andrewi@gnu.org>
4387
4388 * w32term.c (x_produce_glyphs): Fix typo in enum name.
4389
4390 * sysdep.c (read_input_waiting): Remove extraneous argument to
4391 read_socket_hook.
4392
4393 * w32fns.c (Fx_server_version): Include w32_build_number in the
4394 return list.
4395
4396 * w32heap.c (w32_build_number): New variable.
4397 (cache_system_info): Set it.
4398
4399 * w32heap.h (w32_build_number): Add extern.
4400
4401 * emacs.c (syms_of_emacs): Update docstring for
4402 system-configuration, to reflect the actual usage on MS-Windows.
4403
4404 2000-10-31 Gerd Moellmann <gerd@gnu.org>
4405
4406 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
4407 process idle timers while waiting for another event.
4408
4409 * dispnew.c (update_frame_line): Handle case where spaces in
4410 the default face are colored.
4411
4412 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
4413 window height hasn't changed.
4414
4415 2000-10-31 Jason Rumney <jasonr@gnu.org>
4416
4417 * w32term.c (x_produce_glyphs): Handle composite characters.
4418 (x_draw_glyph_string_foreground)
4419 (x_draw_composite_glyph_string_foreground): Restore old font.
4420
4421 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
4422
4423 * minibuf.c (read_minibuf): Reset the undo history just before
4424 starting the recursive-edit.
4425
4426 2000-10-30 Gerd Moellmann <gerd@gnu.org>
4427
4428 * xfaces.c (menu_face_change_count): New variable.
4429 (Finternal_set_lisp_face_attribute): Increment it for changes
4430 of the `menu' face.
4431 (realize_basic_faces): Reflect changes in the `menu' faces
4432 in menu bars.
4433
4434 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
4435 dy obtained from the iterator's y-position after moving from
4436 scroll_margin_pos to PT; see comment there.
4437
4438 * xdisp.c (safe_eval_handler): Call add_to_log.
4439
4440 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
4441 is not a symbol or string.
4442
4443 * xdisp.c (echo_area_display): Don't perform a display update from
4444 inside redisplay. The update will happen anyway at the end of
4445 redisplay, and it can confuse redisplay (GC messages while
4446 redisplaying, for instance.)
4447
4448 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
4449
4450 * xrdb.c (x_load_resources): Use the class name in the defaults.
4451
4452 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
4453 (regex_compile): Catch bogus \(\1\).
4454
4455 2000-10-30 Gerd Moellmann <gerd@gnu.org>
4456
4457 * xterm.c (x_alloc_nearest_color): Fix last change to compare
4458 RGB values.
4459
4460 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
4461 we have a color cache, check that the cached color equals the
4462 allocated color. If not, clear the color cache.
4463
4464 * window.c (displayed_window_lines): Change buffers if necessary.
4465 Fix computation of displayed lines.
4466
4467 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
4468 update_menu_bindings to DEFVAR_BOOL.
4469
4470 2000-10-30 Kenichi Handa <handa@etl.go.jp>
4471
4472 * search.c (Fset_match_data): Be sure to make search_regs always sane.
4473
4474 * puresize.h (BASE_PURESIZE): Increase to 680000.
4475
4476 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
4477
4478 2000-10-29 Jason Rumney <jasonr@gnu.org>
4479
4480 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
4481
4482 * w32term.c (w32_bdf_per_char_metric): Negate descent.
4483 (w32_cache_char_metrics): Handle possibility that 'x' does not
4484 exist in a BDF font.
4485 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
4486
4487 * w32bdf.h (bdffont): Add nchars.
4488
4489 * w32bdf.c (set_bdf_font_info): Set it.
4490 (w32_BDF_TextOut): Swap byte order of double byte characters.
4491 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
4492
4493 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
4494
4495 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
4496 don't override the colors in frame's param_alist, unless they are
4497 unspecified.
4498
4499 * term.c (reassert_line_highlight): If inverse_video is non-zero,
4500 reverse the effect of the highlight flag.
4501
4502 2000-10-27 Ken Raeburn <raeburn@gnu.org>
4503
4504 * window.h (Fwindow_live_p): Declare.
4505
4506 * undo.c (record_delete): Check that last_undo_buffer is really a
4507 buffer before applying XBUFFER to it.
4508
4509 * keymap.c (where_is_internal): Pass lisp object, not integer, to
4510 Faref.
4511
4512 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
4513
4514 * lisp.h (KEYMAPP): New macro.
4515 (get_keymap): Remove.
4516 (get_keymap_1): Rename get_keymap.
4517
4518 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
4519
4520 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
4521
4522 * xmenu.c (single_submenu): Use KEYMAPP.
4523 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
4524 Use KEYMAPP rather than Fkeymapp.
4525
4526 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
4527
4528 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
4529 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
4530 Use KEYMAPP rather than Fkeymapp.
4531 (single_submenu): Use KEYMAPP.
4532 (w32_menu_show, w32_dialog_show): Use TRUE.
4533
4534 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
4535
4536 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
4537 (Fkeymapp): Use KEYMAPP.
4538 (get_keymap): Rename from get_keymap_1. Remove old def.
4539 Return t when autoload=0 and error=0 and the keymap needs autoloading.
4540 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
4541 (Fminor_mode_key_binding): Don't raise an error if the binding
4542 is not a keymap.
4543 (Fuse_global_map, Fuse_local_map): Allow autoloading.
4544 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
4545
4546 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
4547 Allow Vspecial_event_map to be autoloaded.
4548 (menu_bar_items): Fetch the keymap rather than using keymapp.
4549 (menu_bar_one_keymap): No need to follow func-indirect any more.
4550 (parse_menu_item): get_keymap_1 -> get_keymap.
4551 (tool_bar_items): Fetch the keymap rather than using keymapp.
4552 (read_key_sequence): Use KEYMAPP.
4553
4554 * intervals.c (get_local_map): Use get_keymap rather than following
4555 function-indirections explicitly.
4556
4557 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
4558
4559 2000-10-27 Jason Rumney <jasonr@gnu.org>
4560
4561 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
4562 point, as Windows has oversized fonts.
4563
4564 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
4565
4566 2000-10-27 Gerd Moellmann <gerd@gnu.org>
4567
4568 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
4569 (freehook, reallochook): Handle null pointer arguments.
4570 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
4571
4572 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
4573
4574 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
4575 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
4576 Giving in to popular pressure to shut up the compiler with casts.
4577
4578 2000-10-27 Gerd Moellmann <gerd@gnu.org>
4579
4580 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
4581 signed value, and use a default value computed from the font's
4582 maximum descent.
4583
4584 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
4585
4586 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
4587 that specify a negative underline position can still use underlines.
4588
4589 * window.c (Fpos_visible_in_window_p): Make POS default to
4590 WINDOW's point, not the current buffer's point.
4591
4592 2000-10-26 Dave Love <fx@gnu.org>
4593
4594 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
4595 when it's necessary.
4596
4597 2000-10-26 Gerd Moellmann <gerd@gnu.org>
4598
4599 * window.c (size_window): Compute size difference from sum of old
4600 child window sizes instead of from parent's size.
4601
4602 * xdisp.c (pos_visible_p): Change current buffer if necessary.
4603 Handle obscured lines at the top of the window.
4604
4605 * frame.c (Fdelete_frame): Doc fix. Move running the hook
4606 down after the last error condition check.
4607
4608 * frame.c (Fdelete_frame): Run delete-frame-hook.
4609
4610 2000-10-26 Kenichi Handa <handa@etl.go.jp>
4611
4612 * coding.c (decode_coding): Fix previous change (check also
4613 CODING_MODE_LAST_BLOCK).
4614
4615 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
4616
4617 * regex.c: More `unsigned char' -> `re_char' changes.
4618 Also change several `int' into `re_wchar_t'.
4619 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
4620 (PUSH_FAILURE_POINTER): Don't cast any more.
4621 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
4622 We want GCC to complain, since this piece of code makes
4623 re_match non-reentrant, which *should* be fixed.
4624 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
4625 (EXTEND_BUFFER): Use RETALLOC.
4626 (SET_LIST_BIT): Don't cast.
4627 (re_wchar_t): New type.
4628 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
4629 that those two functions will always properly return.
4630 (IMMEDIATE_QUIT_CHECK): Cast to void.
4631 (analyse_first): Use recursion rather than an explicit stack.
4632 (re_compile_fastmap): Can't fail anymore.
4633 (re_search_2): Don't check re_compile_fastmap for failure.
4634 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
4635 Now also sets the new value (passed in a new argument).
4636 (re_match_2_internal): Use it.
4637 Also, use a new var `reg' of type size_t when looping through regs
4638 rather than reuse the inappropriate `mcnt'.
4639
4640 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
4641 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
4642 (where_is_internal): Renamed from Fwhere_is_internal.
4643 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
4644 (Fwhere_is_internal): New function wrapping where_is_internal.
4645 (where_is_internal_1): Handle the case where we're filling the cache.
4646 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
4647
4648 2000-10-25 Miles Bader <miles@gnu.org>
4649
4650 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
4651
4652 2000-10-25 Gerd Moellmann <gerd@gnu.org>
4653
4654 * window.c (pos_fully_visible_p): Removed.
4655 (Fpos_visible_in_window_p): Use pos_visible_p to determine
4656 if position is visible and/or fully visible.
4657
4658 * lisp.h (pos_visible_p): Add prototype.
4659
4660 * xdisp.c (pos_visible_p): New function.
4661
4662 2000-10-25 Kenichi Handa <handa@etl.go.jp>
4663
4664 * process.c (send_process): If OBJECT is t, it means that the data
4665 is from C string, but we should encode it. Before calling
4666 setup_raw_text_coding_system, be sure to flush out data by the
4667 previous coding system.
4668
4669 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
4670
4671 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
4672 assignment of startpos to prev when startpos == pos.
4673
4674 * editfns.c (find_field): Set the field stickiness correctly from
4675 overlay fields. Use renamed `text_property_stickiness'.
4676 (text_property_stickiness): Renamed from `char_property_stickiness'.
4677 Only check text properties, not overlays.
4678 * textprop.c (get_char_property_and_overlay): New function.
4679 (Fget_char_property): Use it.
4680 * intervals.h (get_char_property_and_overlay): Add declaration.
4681
4682 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
4683
4684 * keymap.c: Use AREF, ASET and ASIZE macros.
4685 (Fmake_sparse_keymap): Docstring fix.
4686 (synkey): Remove.
4687 (shadow_lookup): Move up.
4688 Handle the case where lookup-key returns an integer.
4689 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
4690 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
4691 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
4692 Simplify/rewrite the keymap-finding code.
4693 Add check for command shadowing, using shadow_lookup.
4694
4695 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
4696
4697 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
4698 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
4699 a symbol.
4700
4701 2000-10-24 Andrew Innes <andrewi@gnu.org>
4702
4703 * dired.c (directory_files_internal_unwind): New function.
4704 (directory_files_internal): Use it to ensure closedir is called
4705 even if expand-file-name or file-attributes throw, eg. because of
4706 a user interrupt. Also enable immediate_quit while calling
4707 re_search, so that matching can be interrupted as well.
4708
4709 2000-10-24 Andrew Innes <andrewi@gnu.org>
4710
4711 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
4712 NT-Emacs only.
4713 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
4714 so that re_search functions only quit when callers expect them to.
4715
4716 2000-10-24 Kenichi Handa <handa@etl.go.jp>
4717
4718 * regex.c (regex_compile): Change the way of handling a range from
4719 a char less than 256 to a char not less than 256.
4720
4721 2000-10-24 Gerd Moellmann <gerd@gnu.org>
4722
4723 * window.c (size_window): Prevent setting window's width or
4724 height to a negative value (esp. with XSETFASTINT).
4725
4726 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
4727 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
4728 (protect_malloc_state) [GC_MALLOC_CHECK &&
4729 GC_PROTECT_MALLOC_STATE]: New function.
4730 (PROTECT_MALLOC_STATE): New macro.
4731 (__malloc_initialize, morecore, _malloc_internal)
4732 (_free_internal) _realloc_internal): Use it to make _heapinfo
4733 read-only outside of gmalloc.
4734
4735 * keymap.c: Update copyright.
4736
4737 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
4738 a symbol.
4739
4740 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
4741
4742 * filelock.c (unlock_all_files): Use unlock_file to expand each
4743 buffer's file_truename before trying remove its lock file.
4744
4745 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
4746
4747 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
4748 or CRLF, decode EOLs.
4749
4750 2000-10-24 Kenichi Handa <handa@etl.go.jp>
4751
4752 * window.c (Fdisplay_buffer): Fix doc.
4753
4754 2000-10-23 Jason Rumney <jasonr@gnu.org>
4755
4756 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
4757 ASCII font of default fontset on Windows.
4758
4759 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
4760 xterm.c comment below).
4761
4762 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
4763
4764 2000-10-23 Gerd Moellmann <gerd@gnu.org>
4765
4766 * xterm.c (x_connection_closed): Reset handling_signal.
4767
4768 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
4769
4770 2000-10-23 Miles Bader <miles@gnu.org>
4771
4772 * window.c (window_scroll_pixel_based, window_scroll_line_based):
4773 Pass nil for FULLY argument to Fpos_visible_in_window_p to
4774 maintain old behavior.
4775 * minibuf.c (Fminibuffer_complete): Likewise.
4776
4777 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
4778
4779 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
4780 that when a font can't be exactly centered, it errs up rather than
4781 down.
4782
4783 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
4784
4785 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
4786
4787 2000-10-23 Andrew Choi <akochoi@i-cable.com>
4788
4789 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
4790
4791 * dispnew.c [macintosh]: Include macterm.h.
4792 (init_display) [macintosh]: Initialization for window system.
4793
4794 * emacs.c (main) [macintosh]: Call syms_of_textprop,
4795 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
4796 syms_of_search, x_term_init, and init_keyboard before calling
4797 init_window_once. Also, call syms_of_xmenu.
4798
4799 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
4800 default fontset to Monaco.
4801
4802 * frame.c [macintosh]: Include macterm.h. Remove declarations of
4803 NewMacWindow and DisposeMacWindow.
4804 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
4805 instead of calling NewMacWindow and setting fields of
4806 f->output_data.mac directly. Call init_frame_faces.
4807 (Fdelete_frame) [macintosh]: Remove unused code.
4808 (Fmodify_frame_parameters) [macintosh]: Call
4809 x_set_frame_parameters instead of mac_set_frame_parameters.
4810
4811 * frame.h [macintosh]: Define menu_bar_lines field in struct
4812 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
4813
4814 * keyboard.c [macintosh]: Include macterm.h.
4815 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
4816 and menu_bar_activate_event type events as for X and NT.
4817 (make_lispy_event) [macintosh]: Construct lisp events of type
4818 MENU_BAR_EVENT as for X and NT.
4819
4820 * sysdep.c [macintosh]: Remove declaration for sys_signal.
4821 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
4822 (sys_subshell) [macintosh]: Remove definition entirely.
4823 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
4824 Vwindow_system_version here. Remove initialization of
4825 Vx_bitmap_file_path.
4826 (read_input_waiting): Correct the number of parameters passed to
4827 read_socket_hook.
4828 Move all Macintosh functions to mac/mac.c.
4829
4830 * term.c [macintosh]: Include macterm.h.
4831
4832 * window.c [macintosh]: Include macterm.h.
4833
4834 * xdisp.c [macintosh]: Include macterm.h. Declare
4835 set_frame_menubar and pending_menu_activation.
4836 (echo_area_display) [macintosh]: Do not return if terminal frame
4837 is the selected frame.
4838 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
4839 Allow only the selected frame to set menu bar.
4840 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
4841 calling FRAME_EXTERNAL_MENU_BAR (f).
4842 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
4843
4844 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
4845 and check_x. Declare XCreateGC. Define x_create_gc and
4846 x_free_gc. Initialize font_sort_order.
4847 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
4848 but call x_list_fonts instead of w32_list_fonts.
4849 (Finternal_face_x_get_resource) [macintosh]: Do not call
4850 display_x_get_resource.
4851 (prepare_face_for_display) [macintosh]: Set xgcv.font.
4852 (realize_x_face) [macintosh]: Load the font if it is specified in
4853 ATTRS.
4854 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
4855
4856 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
4857
4858 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
4859 is nil: since we go to the end of submap anyway, we'd end up
4860 setting nil to nil.
4861 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
4862 doesn't obey autoload.
4863
4864 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4865
4866 * msdos.c (dos_set_window_size): Update screen dimension variables.
4867
4868 2000-10-21 Jason Rumney <jasonr@gnu.org>
4869
4870 * w32term.c (w32_cache_char_metrics): Double check that font is
4871 really fixed pitch before trusting tmPitchAndFamily.
4872
4873 2000-10-21 Andrew Innes <andrewi@gnu.org>
4874
4875 * w32gui.h (w32_char_font_type): Move enum from w32term.c
4876
4877 * w32term.h: Extern decl for w32_cache_char_metrics.
4878
4879 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
4880
4881 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
4882 (w32_unload_font): Free per_char array if present.
4883
4884 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
4885 cached information in emulated XFontStruct to handle common cases
4886 quickly. Do not allocate XCharStruct for return.
4887 (w32_native_per_char_metric): New function.
4888 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
4889 allocating one.
4890 (x_produce_glyphs): Don't get an HDC. Change calls to
4891 w32_per_char_metric to match arg change above. Remove calls to
4892 free results.
4893 (w32_get_glyph_overhangs): Ditto.
4894 (w32_cache_char_metrics): New function.
4895
4896 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
4897 ($(BLD)/casefiddle.$(O)): Remove compile command.
4898 ($(BLD)/gmalloc.$(O)): Remove compile command.
4899 ($(BLD)/dispnew.obj):
4900 ($(BLD)/keyboard.obj):
4901 ($(BLD)/w32inevt.obj):
4902 ($(BLD)/w32bdf.obj):
4903 ($(BLD)/alloc.obj):
4904 ($(BLD)/buffer.obj):
4905 ($(BLD)/editfns.obj):
4906 ($(BLD)/emacs.obj):
4907 ($(BLD)/fileio.obj):
4908 ($(BLD)/fns.obj):
4909 ($(BLD)/indent.obj):
4910 ($(BLD)/insdel.obj):
4911 ($(BLD)/intervals.obj):
4912 ($(BLD)/minibuf.obj):
4913 ($(BLD)/print.obj):
4914 ($(BLD)/scroll.obj):
4915 ($(BLD)/sysdep.obj):
4916 ($(BLD)/textprop.obj):
4917 ($(BLD)/widget.obj):
4918 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
4919 ($(BLD)/term.obj): Add dependency on dispextern.h.
4920
4921 * makefile.nt ($(BLD)\dispnew.obj):
4922 ($(BLD)\keyboard.obj):
4923 ($(BLD)\w32inevt.obj):
4924 ($(BLD)\w32bdf.obj):
4925 ($(BLD)\alloc.obj):
4926 ($(BLD)\buffer.obj):
4927 ($(BLD)\editfns.obj):
4928 ($(BLD)\emacs.obj):
4929 ($(BLD)\fileio.obj):
4930 ($(BLD)\fns.obj):
4931 ($(BLD)\indent.obj):
4932 ($(BLD)\insdel.obj):
4933 ($(BLD)\intervals.obj):
4934 ($(BLD)\minibuf.obj):
4935 ($(BLD)\print.obj):
4936 ($(BLD)\scroll.obj):
4937 ($(BLD)\sysdep.obj):
4938 ($(BLD)\textprop.obj):
4939 ($(BLD)\widget.obj):
4940 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
4941 ($(BLD)\term.obj): Add dependency on dispextern.h
4942
4943 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4944
4945 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
4946 with an additional argument of Qt.
4947
4948 2000-10-21 Miles Bader <miles@gnu.org>
4949
4950 * window.c (pos_fully_visible_in_window_p): New function.
4951 (Fpos_visible_in_window_p): Add FULLY argument.
4952 Use pos_fully_visible_in_window_p.
4953 (window_scroll_pixel_based, window_scroll_line_based): Update
4954 calls to Fpos_visible_in_window_p.
4955 * lisp.h (Fpos_visible_in_window_p): Update prototype
4956
4957 2000-10-20 Gerd Moellmann <gerd@gnu.org>
4958
4959 * alloc.c (toplevel): Conditionalize compilation of mem_*
4960 functions differently.
4961
4962 2000-10-20 Jason Rumney <jasonr@gnu.org>
4963
4964 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
4965 mem_init where it used to be. mem_z etc not defined otherwise.
4966
4967 2000-10-20 Gerd Moellmann <gerd@gnu.org>
4968
4969 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
4970 GC_MALLOC_CHECK.
4971 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
4972 structure definition and related variabled to the top of the file.
4973 Include this code when GC_MALLOC_CHECK is defined.
4974 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
4975 register/unregister allocated region.
4976 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
4977 which isn't allocated.
4978 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
4979 something which is already in use.
4980 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
4981 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
4982 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
4983 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
4984
4985 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
4986 _malloc_internal instead of malloc.
4987 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
4988 of free.
4989
4990 2000-10-20 Andrew Innes <andrewi@gnu.org>
4991
4992 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
4993 Windows.
4994 (my_strftime) <macro>: Don't use macro arg list when redefining as
4995 _strftime_copytm.
4996 (my_strftime) <function>: Supply 0 as ut argument.
4997
4998 2000-10-19 Jason Rumney <jasonr@altavista.net>
4999
5000 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
5001 including dispextern.h, as it stops faces from working.
5002
5003 * w32fns.c (Fx_create_frame): Don't bother calling
5004 face-set-after-frame-default since the caller does it for us
5005 anyway. Clean up calls to x_get_arg to be consistent with X.
5006
5007 * w32term.c (x_produce_glyphs): Handle
5008 unibyte_display_via_language_environment correctly.
5009 (w32_draw_box_rect): Fix the calculation of width and height.
5010
5011 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
5012 as it has stopped working.
5013 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
5014 menu-bar.
5015
5016 2000-10-19 Gerd Moellmann <gerd@gnu.org>
5017
5018 * eval.c (skip_debugger): Prevent a compiler warning.
5019 (Fcondition_case): Likewise.
5020 (Fbacktrace_frame): Use a null interactive spec.
5021
5022 2000-10-19 Kenichi Handa <handa@etl.go.jp>
5023
5024 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
5025
5026 2000-10-18 Gerd Moellmann <gerd@gnu.org>
5027
5028 * strftime.c: Sync with glibc, file version 1.78.
5029 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
5030 should no longer be used according to ISO 8601.
5031
5032 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
5033 no map for meta_prefix_char, don't try to use it as a keymap.
5034 Instead, if T_OK is non-zero, look up a default binding, if any,
5035 otherwise, if T_OK is zero, return nil.
5036
5037 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
5038 (x_to_xcolors, png_load): Use x_query_color.
5039
5040 * xterm.c (x_color_cells, x_query_colors, x_query_color):
5041 New functions.
5042 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
5043 which can be slow.
5044 (x_copy_color, x_alloc_lighter_color): Likewise.
5045
5046 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
5047 (x_query_color, x_query_colors): Add prototype.
5048
5049 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
5050 check_string_bytes only if not noninteractive, increase count to 50.
5051
5052 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
5053
5054 * insdel.c (adjust_markers_for_delete): Handle before-insertion
5055 markers correctly.
5056
5057 2000-10-17 Gerd Moellmann <gerd@gnu.org>
5058
5059 * alloc.c (pure_bytes_used): Renamed from pureptr.
5060 (ALIGN): New macro.
5061 (pure_alloc): New function.
5062 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
5063 Use it.
5064 (Fpurecopy): Use PURE_POINTER_P.
5065
5066 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
5067 PT has moved backward.
5068
5069 * xdisp.c (cursor_row_p): Take continued lines into account.
5070
5071 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
5072 string's size_byte.
5073 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
5074 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
5075 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
5076 string allocated.
5077
5078 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
5079 of selective display off while searching for the next line start.
5080
5081 2000-10-17 Kenichi Handa <handa@etl.go.jp>
5082
5083 * Makefile.in (term.o): Depend on dispextern.h.
5084
5085 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
5086
5087 * keymap.c (keymap_memberp): Ensure that nil is not a member.
5088
5089 2000-10-16 Gerd Moellmann <gerd@gnu.org>
5090
5091 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
5092 the iterator at the beginning, so that they can be set later on,
5093 for instance in reseat_at_next_visible_line_start, without being
5094 overwritten.
5095
5096 * xfns.c (pbm_format): Add :foreground and :background keywords.
5097 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
5098 (xbm_load): Recognize foreground and background color specifications.
5099
5100 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
5101
5102 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
5103
5104 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
5105
5106 * msdos.c (IT_set_face): Compare highlighted face with the default
5107 face, and invert colors if these faces' colors are identical.
5108 (Fmsdos_remember_default_colors): Don't swap foreground and
5109 background colors in initial_colors[].
5110 (IT_set_frame_parameters): Don't swap frame's foreground and
5111 background pixels. If ALIST includes "(reverse . t)", swap
5112 foreground-color and background-color properties in frame's
5113 param_alist. If the original frame's param_alist doesn't specify
5114 the colors, store unspecified-fg and unspecified-bg, reversed if
5115 required.
5116
5117 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
5118 the colors are unspecified and reversed, reverse fore- and back-
5119 ground in the returned value.
5120 (Fframe_parameter): Ditto.
5121
5122 2000-10-16 Gerd Moellmann <gerd@gnu.org>
5123
5124 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
5125 get_last_unchanged_at_beg_row.
5126 (find_first_unchanged_at_end_row): Renamed from
5127 get_first_unchanged_at_end_row.
5128 (find_first_unchanged_at_end_row): Convert assertions to
5129 unconditional tests which abort. When looking for a row in
5130 unchanged text, don't go further back than first_text_row.
5131
5132 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
5133 Don't add in the last line's height when deciding if the new
5134 position is below the scroll margin.
5135
5136 2000-10-16 Miles Bader <miles@gnu.org>
5137
5138 * editfns.c (Fconstrain_to_field): Check carefully for field
5139 boundaries if either OLD_POS or NEW_POS has a non-nil field
5140 property, even if they're the same.
5141
5142 2000-10-16 Kenichi Handa <handa@etl.go.jp>
5143
5144 * xterm.c (x_draw_box_rect): Fix the calculation of width and
5145 height for XFillRectangle.
5146
5147 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
5148
5149 * syntax.c (Fstring_to_syntax): New function extracted from
5150 Fmodify_syntax_entry.
5151 (Fmodify_syntax_entry): Use it and document the ! and | fences.
5152 (skip_chars, Fforward_comment): Remove unused variables.
5153 (syms_of_syntax): Add defsubr for string-to-syntax.
5154 (describe_syntax): Add code for comment and string fences.
5155
5156 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
5157
5158 * keymap.c (access_keymap): Add AUTOLOAD parameter.
5159 Do the meta->esc mapping. Call get_keyelt before returning.
5160 Start scanning from the second element (the first is always `keymap')
5161 to make it easier to detect when we reach a parent map.
5162 Handle the case of inheriting from a symbol whose function is a map.
5163 (Fkeymap_parent): Also handle the `inherit from symbol' case.
5164 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
5165 (get_keyelt, Flookup_key): Update call to access_keymap.
5166 Remove the meta->esc mappings.
5167 (define_as_prefix): Delete old disabled code.
5168 (menu_item_p): New function.
5169 (where_is_internal_1): Skip over the few remaining menu items.
5170 * lisp.h (access_keymap): Update prototype.
5171 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
5172 Update call to access_keymap.
5173 (follow_key, read_key_sequence): Update calls to access_keymap.
5174 Remove the meta->esc mappings.
5175
5176 2000-10-13 Gerd Moellmann <gerd@gnu.org>
5177
5178 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
5179 with additional argument.
5180
5181 * xdisp.c (cursor_row_p): New function.
5182 (try_cursor_movement, display_line): Use it.
5183
5184 * xdisp.c (append_space): Also save/restore iterator's current
5185 character and its length.
5186
5187 * xdisp.c (init_from_display_pos): Add an assertion.
5188 (handle_stop): Don't set iterator's add_overlay_start.
5189 (handle_invisible_prop): Likewise.
5190 (load_overlay_strings): If text under an overlay is invisible,
5191 take both before- and after-strings into account when the iterator
5192 is positioned either at the start or at the end of the overlay.
5193 (forward_to_next_line_start): Rewritten.
5194 (reseat_at_next_visible_line_start): Rewritten.
5195 (set_iterator_to_next): Add parameter RESEAT_P.
5196
5197 * dispextern.h (struct it): Remove member add_overlay_start.
5198 (set_iterator_to_next): Change prototype.
5199
5200 2000-10-13 Kenichi Handa <handa@etl.go.jp>
5201
5202 * coding.c (code_convert_region): Be sure to initialize
5203 coding->category_idx.
5204 (decode_coding_string): Set coding->src_multibyte and
5205 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
5206 (encode_coding_string): Set coding->src_multibyte and
5207 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
5208
5209 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
5210
5211 * xfns.c (Fx_create_frame): Don't bother calling
5212 face-set-after-frame-default since the caller does it for us anyway.
5213
5214 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
5215
5216 * window.c (coordinates_in_window): Fix detection of vertical line
5217 on character terminals.
5218
5219 2000-10-12 Gerd Moellmann <gerd@gnu.org>
5220
5221 * editfns.c (save_excursion_save): Additionally record the
5222 selected window.
5223 (save_excursion_restore): If buffer was visible in a window, and a
5224 different window was selected, and the old selected window is
5225 still live, restore point in that window.
5226
5227 2000-10-12 Kenichi Handa <handa@etl.go.jp>
5228
5229 * xterm.c (x_produce_glyphs): Handle
5230 unibyte_display_via_language_environment correctly.
5231
5232 * regex.c (regex_compile): Change the way of handling a range from
5233 unibyte char to multibyte char.
5234
5235 * syntax.c (skip_chars): Change the way of handling a range from
5236 unibyte char to multibyte char.
5237
5238 * process.c (read_process_output): Cancel previous change.
5239
5240 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
5241
5242 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
5243
5244 * charset.c (Ffind_charset_string): Doc fix.
5245 (Ffind_charset_region): Doc fix.
5246
5247 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
5248
5249 * process.c (read_process_output): Fix previous change. Adjust
5250 multibyteness of text to insert in a buffer by
5251 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
5252
5253 2000-10-10 Andreas Schwab <schwab@suse.de>
5254
5255 * alloc.c (mark_object): Remove all workarounds installed on
5256 1993-08-08.
5257
5258 2000-10-10 Kenichi Handa <handa@etl.go.jp>
5259
5260 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
5261 (base64_encode_1): Make it work for a text of multibyte form.
5262 (Fbase64_decode_region): Allocate sufficient memory for multibyte
5263 case. Don't call str_to_multibyte because base64_decode_1
5264 produces correct multibyte form for eight-bit codes.
5265 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
5266 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
5267 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
5268 codes.
5269
5270 * charset.h (CHAR_STRING): Optimized for single byte characters.
5271
5272 2000-10-09 Andreas Schwab <schwab@suse.de>
5273
5274 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
5275 -1 after socket is closed, to fall through to error processing.
5276
5277 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
5278
5279 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
5280 variables. If ALIST includes foreground-color or
5281 background-color, change also the colors of the default face for
5282 this frame.
5283
5284 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
5285
5286 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
5287 them extern (they are defined on xfaces.c).
5288 (syms_of_msdos): Don't intern and don't staticpro
5289 Qbackground_color and Qforeground_color.
5290
5291 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
5292
5293 * frame.c (Fframe_parameter): For non-windowed frames, if
5294 f->param_alist says foreground or background color is unspecified,
5295 call tty_color_name to return the color name computed from the
5296 frame's current colors.
5297
5298 2000-10-06 Dave Love <fx@gnu.org>
5299
5300 * terminfo.c (ospeed): Don't declare.
5301
5302 * sysdep.c: Don't include string.h.
5303 (h_errno): Declare conditional also on TRY_AGAIN.
5304
5305 * charset.c (Ffind_charset_string): Doc fix.
5306
5307 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
5308 (Fbase64_decode_region, Fbase64_decode_string): More explicit
5309 error messages.
5310
5311 2000-10-05 Dave Love <fx@gnu.org>
5312
5313 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
5314 position like menu-bar.
5315
5316 2000-10-05 Gerd Moellmann <gerd@gnu.org>
5317
5318 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
5319
5320 * xdisp.c (handle_single_display_prop): Use safe_call1.
5321 (safe_call): Renamed from call_function.
5322 (safe_call1): New function.
5323 (handle_fontified_prop): Use safe_call1 instead of call1.
5324 (safe_eval): Renamed from eval_form.
5325 (safe_eval_handler): Renamed from eval_handler.
5326 (handle_single_display_prop, display_mode_element): Use safe_eval
5327 instead of eval_form.
5328
5329 * xfaces.c (merge_face_heights): Use safe_call instead of
5330 call_function.
5331
5332 * keyboard.c (show_help_echo): Use safe_call instead of
5333 call_function; use safe_eval instead of eval_form.
5334
5335 * lisp.h (safe_call): Renamed from call_function.
5336 (safe_eval): Renamed from eval_form.
5337 (safe_call1): Add prototype.
5338
5339 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
5340
5341 * xfns.c (image_ascent): Rearrange ascent calculation for the
5342 has-a-font case.
5343
5344 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
5345
5346 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
5347 (where_is_internal_1): Don't bother ignoring menu-items any more.
5348
5349 2000-10-04 Gerd Moellmann <gerd@gnu.org>
5350
5351 * keyboard.c (update_menu_bindings): New variable.
5352 (parse_menu_item): Use AREF. If update_menu_bindings
5353 is 0, don't update menu bindings.
5354 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
5355
5356 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
5357
5358 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
5359 to `mark_object'.
5360
5361 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
5362
5363 * syntax.c (forw_comment): Match nestedness of ender/starter.
5364 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
5365 (prev_char_comstart_first): Remove.
5366 (back_comment): Check two-char comment markers more carefully
5367 to better handle overlapping cases like *//* or /* */* */ ...
5368 Match nestedness of ender/starter.
5369
5370 2000-10-02 Dave Love <fx@gnu.org>
5371
5372 * config.in (HAVE_GAI_STRERROR): Add undef.
5373
5374 * process.c (Fopen_network_stream): Use it.
5375
5376 * m/alpha.h (NO_REMAP): Don't define.
5377
5378 2000-10-02 Gerd Moellmann <gerd@gnu.org>
5379
5380 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
5381 return with a string converted to an integer or vice versa when
5382 Vmocklisp_arguments is t.
5383 (Fsignal): Likewise. The function can return for `quit'.
5384 (struct gcpro): Declare member `var' to point to a volatile
5385 Lisp_Object.
5386
5387 * eval.c (error): Prevent compiler warning.
5388
5389 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
5390
5391 * keymap.c (keymap_memberp): New function.
5392 (Fset_keymap_parent): Use it.
5393 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
5394 Use keymap_memberp to avoid creating cycles.
5395 (access_keymap): Use KEYMAPP.
5396
5397 2000-09-30 Gerd Moellmann <gerd@gnu.org>
5398
5399 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
5400 gai_strerror. Make sure xerrno is set if connect fails. Improve
5401 error recovery.
5402
5403 2000-09-29 Jason Rumney <jasonr@gnu.org>
5404
5405 * w32term.c (w32_char_font_type, w32_encode_char)
5406 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
5407 (w32_bdf_per_char_metric): New function.
5408 (w32_per_char_metric): Use it.
5409 (x_draw_glyph_string_background): Always draw background for BDF
5410 glyphs.
5411
5412 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
5413 GDI object which is a scarce resource.
5414
5415 * w32bdf.c (search_file_line): Fix skipping of whitespace.
5416 (get_quoted_string): Fix limit on memchr search.
5417 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
5418 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
5419 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
5420 (get_cached_font_char, cache_char_offset): Use macro
5421 BDF_CODEPOINT_RANGE_COVER_P.
5422 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
5423 (clear_cached_bitmap_slots): New function.
5424 (GET_HEX_VALUE): G-Z, g-z are not hex.
5425 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
5426 (get_bitmap_with_cache): Use new cache implementation.
5427 (create_offscreen_bitmap): New function.
5428 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
5429
5430 * w32term.c (x_produce_glyphs): If the distance from the current
5431 position to the next tab stop is less than a canonical character
5432 width, use the tab stop after that.
5433 (x_draw_glyphs): Handle case START and END are out of bounds more
5434 carefully.
5435 (x_clear_mouse_face): Block/unblock input.
5436 (x_display_and_set_cursor): Don't show a hollow box cursor for
5437 buffers whose cursor_type is nil.
5438
5439 2000-09-29 Gerd Moellmann <gerd@gnu.org>
5440
5441 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
5442
5443 * dispextern.h (updating_frame): Declare extern.
5444
5445 2000-09-29 Andreas Schwab <schwab@suse.de>
5446
5447 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
5448
5449 2000-09-29 Gerd Moellmann <gerd@gnu.org>
5450
5451 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
5452 use its function definition.
5453 (tool_bar_items): Likewise.
5454
5455 * lisp.h (fatal): Declare NO_RETURN.
5456
5457 2000-09-29 Kenichi Handa <handa@etl.go.jp>
5458
5459 * keymap.c: Remove the line "#undef NULL".
5460
5461 2000-09-28 Gerd Moellmann <gerd@gnu.org>
5462
5463 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
5464
5465 2000-09-28 Dave Love <fx@gnu.org>
5466
5467 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
5468
5469 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
5470
5471 * .gdbinit (xreload): Note its need on GNU/Linux.
5472
5473 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
5474 r_alloc, r_alloc_free.
5475
5476 2000-09-28 Kenichi Handa <handa@etl.go.jp>
5477
5478 * syntax.c (skip_chars): Handle negation correctly.
5479
5480 2000-09-27 Gerd Moellmann <gerd@gnu.org>
5481
5482 * xfaces.c (realize_default_face): Call set_lface_from_font_name
5483 with non-zero FORCE_P argument.
5484
5485 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
5486 Add assertions.
5487
5488 * xdisp.c (window_box_height): Add an assertion.
5489
5490 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
5491 tool-bar than is available.
5492 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
5493
5494 2000-09-27 Dave Love <fx@gnu.org>
5495
5496 * s/irix6-5.h: Now works 64-bit. Tidied.
5497
5498 2000-09-26 Gerd Moellmann <gerd@gnu.org>
5499
5500 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
5501 instead of BITS_PER_INT.
5502 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
5503 EMACS_UINT, respectively.
5504 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
5505
5506 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
5507
5508 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
5509
5510 * window.c (freeze_window_starts): Construct last argument for
5511 foreach_window differently.
5512
5513 * xfns.c (x_decode_color): Don't return a Lisp_Object.
5514
5515 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
5516 EMACS_UINT instead of `int' and `unsigned int'.
5517 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
5518
5519 * frame.h (struct frame): Make the `nothing' member of union
5520 output_data an EMACS_INT.
5521
5522 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
5523 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
5524 size in the sdata structure.
5525 (SDATA_NBYTES, SDATA_DATA): New macros.
5526 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
5527 differently for the different layout of the sdata structure.
5528 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
5529 in sdata.
5530 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
5531 Check that size recorded in the string size and size recorded in
5532 the sdata structure agree.
5533
5534 2000-09-25 Dave Love <fx@gnu.org>
5535
5536 * buffer.c: Include stdio.h.
5537
5538 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
5539
5540 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
5541
5542 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
5543 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
5544 (__malloc_extra_blocks): Declare as __malloc_size_t.
5545
5546 2000-09-25 Gerd Moellmann <gerd@gnu.org>
5547
5548 * alloc.c (mark_image): Use GC_NILP instead of NILP.
5549
5550 * keyboard.c (show_help_echo): Set help_echo_showing_p.
5551 (read_char): If help-echo is showing, preserve the echo area
5552 when redisplaying.
5553
5554 * xdisp.c (help_echo_showing_p): New variable.
5555 (set_message): Reset it to 0.
5556 (init_xdisp): Initialize help_echo_showing_p.
5557
5558 * dispextern.h (help_echo_showing_p): Declare extern.
5559
5560 * config.in: Fix typo in __GNUC_MINOR__.
5561
5562 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
5563
5564 * s/freebsd.h (POSIX_SIGNALS): Define.
5565
5566 * xterm.c (x_clear_mouse_face): Block/unblock input.
5567
5568 2000-09-24 Dave Love <fx@gnu.org>
5569
5570 * fns.c (base64_encode_1): Fix last change.
5571
5572 2000-09-22 Gerd Moellmann <gerd@gnu.org>
5573
5574 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
5575
5576 * xdisp.c (try_window_reusing_current_matrix): More fixes
5577 for the case window has a header-line.
5578
5579 2000-09-22 Dave Love <fx@gnu.org>
5580
5581 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
5582 a doc string.
5583
5584 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
5585
5586 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
5587
5588 2000-09-21 Gerd Moellmann <gerd@gnu.org>
5589
5590 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
5591 for GCC >= 2.5.
5592
5593 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
5594 Declare NO_RETURN.
5595
5596 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
5597 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
5598 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
5599 warnings.
5600
5601 * marker.c (byte_char_debug_check): Return void.
5602
5603 * xfns.c (Fx_create_frame): Set default frame parameter value
5604 for tool-bar-lines to 1.
5605
5606 * dispnew.c (scrolling_window): Compare y-positions of rows
5607 equal at the start. Some simplification.
5608
5609 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
5610 reused rows' y-position in the case window has a header-line, and
5611 new window start is greater than old window start.
5612
5613 * process.c (process_sent_to): New variable.
5614 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
5615 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
5616 Declare more parameters volatile.
5617
5618 * lread.c (Vrecursive_load_depth_limit): New variable.
5619 (Fload): Check recursive loads whose recursion depth exceeds
5620 Vrecursive_load_depth_limit.
5621 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
5622
5623 2000-09-20 Gerd Moellmann <gerd@gnu.org>
5624
5625 * fileio.c (Fread_file_name): Doc fix.
5626
5627 * editfns.c (Fmessage_or_box): Doc fix.
5628
5629 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
5630
5631 * xfns.c (xbm_scan): Allow C-style comments.
5632
5633 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
5634 symbols are specified, add color translations to the cache.
5635 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
5636 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
5637 xpm_cache_color.
5638 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
5639 structures to xpm_init_color_cache.
5640
5641 2000-09-19 Gerd Moellmann <gerd@gnu.org>
5642
5643 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
5644
5645 2000-09-19 Andrew Innes <andrewi@gnu.org>
5646
5647 * makefile.nt (bootstrap-emacs): Don't change directory.
5648
5649 2000-09-19 Kenichi Handa <handa@etl.go.jp>
5650
5651 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
5652
5653 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
5654 If output buffer is too small, signal an appropriated error.
5655
5656 2000-09-18 Dave Love <fx@gnu.org>
5657
5658 * keyboard.c (menu_bar_items, tool_bar_items)
5659 (current_active_maps): Remove redundant get_local_map call.
5660
5661 2000-09-18 Gerd Moellmann <gerd@gnu.org>
5662
5663 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
5664 cursor for buffers whose cursor_type is nil.
5665
5666 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
5667 a feature to implement that is already implemented.
5668 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
5669 warnings.
5670
5671 * xfns.c (x_clear_image_1): New function.
5672 (x_clear_image): Use it.
5673 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
5674
5675 * dispnew.c (update_window): Move test for invisible lines
5676 at the top to update_window_line.
5677 (update_window_line): Handle invisible lines here.
5678
5679 * xfns.c (clear_image_cache): Clear current matrices of all
5680 frames sharing an image cache. Block input while freeing
5681 images. Fix timestamp comparison.
5682 (x_clear_image): Also free the mask.
5683
5684 * xfns.c (lookup_image): Block input while loading the image so
5685 that we won't get interrupted in a state where the image isn't yet
5686 set up completely.
5687 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
5688 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
5689 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
5690 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
5691
5692 2000-09-16 Gerd Moellmann <gerd@gnu.org>
5693
5694 * dispnew.c (update_window): Make sure to make desired rows
5695 current even if they are completely invisible at the top
5696 of a window.
5697
5698 2000-09-15 Gerd Moellmann <gerd@gnu.org>
5699
5700 * xfns.c (lookup_image): Build mask before applying an algorithm.
5701 Recognize algorithm `disabled'.
5702 (cross_disabled_images): New variable.
5703 (COLOR_INTENSITY): New macro.
5704 (x_detect_edges): Use COLOR_INTENSITY.
5705 (x_disable_image): New function.
5706 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
5707
5708 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
5709 disabled state, don't apply an image transformation algorithm if
5710 the user specified an image for the disabled state. Use
5711 `:algorithm disabled' for creating a disabled item's image if the
5712 user hasn't specified an image.
5713
5714 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
5715 allocation functions with the XPM lib.
5716 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
5717 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
5718 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
5719 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
5720 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
5721 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
5722 functions, if possible, because these handle color allocation
5723 failure more gracefully.
5724 (Fimage_mask_p): New function.
5725
5726 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
5727 (Qedge_detection, Qheuristic): New symbols.
5728 (syms_of_xfns): Initialize new symbols.
5729 (lookup_image): Handle `:mask X', `:algorithm emboss', and
5730 `algorithm (edge-detection ...)'.
5731 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
5732 (tiff_format, gif_format, gs_format): Add `:mask'.
5733 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
5734 (GIF_MASK, GS_MASK): New enumerators.
5735 (x_laplace_read_row, x_laplace_write_row): Functions removed.
5736 (emboss_matrix, laplace_matrix): New variables.
5737 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
5738 (x_edge_detection): New functions.
5739 (x_laplace): Rewritten in terms of x_detect_edges.
5740 (x_build_heuristic_mask): If image has a mask, free it.
5741
5742 2000-09-14 Andrew Innes <andrewi@gnu.org>
5743
5744 * makefile.w32-in: Revert to Unix line endings.
5745
5746 2000-09-14 Andrew Innes <andrewi@gnu.org>
5747
5748 * makefile.w32-in: Standardize indentation somewhat.
5749 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
5750 cater for differences between shells.
5751
5752 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
5753
5754 2000-09-14 Gerd Moellmann <gerd@gnu.org>
5755
5756 * xterm.c (x_produce_glyphs): If the distance from the current
5757 position to the next tab stop is less than a canonical character
5758 width, use the tab stop after that.
5759
5760 2000-09-14 Dave Love <fx@gnu.org>
5761
5762 * buffer.c (alloc_buffer_text): Fix xmalloc call.
5763
5764 2000-09-14 Gerd Moellmann <gerd@gnu.org>
5765
5766 * xdisp.c (handle_fontified_prop): While running fontification
5767 functions, bind `fontification-functions' and
5768 `after-change-functions' to nil.
5769
5770 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
5771 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
5772
5773 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
5774
5775 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
5776 USE_MMAP_FOR_BUFFERS.
5777
5778 * insdel.c (make_gap): Use enlarge_buffer_text.
5779
5780 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
5781 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
5782 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
5783 from former r_alloc_* functions in ralloc.c.
5784 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
5785 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
5786 (mmap_init) [REL_ALLOC_MMAP]: New function.
5787 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
5788 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
5789 BUFFER_FREE.
5790
5791 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
5792 (enlarge_buffer_text): Add prototype.
5793
5794 * ralloc.c: Remove everything having to do with the use of mmap.
5795
5796 2000-09-13 Gerd Moellmann <gerd@gnu.org>
5797
5798 * sound.c (Fplay_sound): Doc fix.
5799
5800 * keyboard.c: Avoid some more compiler warnings.
5801 (parse_tool_bar_item): Ignore cached key bindings.
5802
5803 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
5804 and allocation of Lisp data.
5805
5806 2000-09-12 Gerd Moellmann <gerd@gnu.org>
5807
5808 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
5809 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
5810 defaults first.
5811
5812 * lread.c (Fload): Put code checking for recursive loads in #if 0.
5813
5814 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
5815
5816 * ccl.c: Comment fixed.
5817 (MAX_MAP_SET_LEVEL): Increased to 30.
5818 (PUSH_MAPPING_STACK): Enclose with do-while block.
5819 (POP_MAPPING_STACK): Likewise.
5820 (stack_idx_of_map_multiple): New variable.
5821 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
5822 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
5823 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
5824 (ccl_driver) <CCL_MapSingle>: Likewise.
5825 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
5826 with the case where looking up process reaches to the end of
5827 map-set, and call CCL programs as the above change.
5828
5829 2000-09-11 Gerd Moellmann <gerd@gnu.org>
5830
5831 * xfns.c (png_load, jpeg_load): Declare some variables volatile
5832 that might be clobbered by longjmp.
5833 (check_x_display_info, x_decode_color, create_frame_xic)
5834 (Fx_display_backing_store, Fx_display_visual_class)
5835 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
5836
5837 * lread.c (init_lread): Set Vloads_in_progress to nil.
5838 (Fload): Show list of recursively loaded files, when signaling an
5839 error.
5840
5841 * lread.c (Vloads_in_progress): New variable.
5842 (record_load_unwind): New function.
5843 (Fload): Check for recursive loads.
5844 (syms_of_lread): Initialize Vloads_in_progress.
5845 (read_integer, read1): Avoid some compiler warnings.
5846
5847 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
5848 compiler warnings.
5849
5850 2000-09-11 Miles Bader <miles@gnu.org>
5851
5852 * editfns.c (Fbuffer_string): Doc fix.
5853
5854 2000-09-10 Gerd Moellmann <gerd@gnu.org>
5855
5856 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
5857
5858 2000-09-09 Ken Raeburn <raeburn@gnu.org>
5859
5860 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
5861 whether to include other header files.
5862
5863 2000-09-09 Gerd Moellmann <gerd@gnu.org>
5864
5865 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
5866 by Fmemq as a boolean.
5867
5868 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
5869
5870 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
5871
5872 2000-09-08 Gerd Moellmann <gerd@gnu.org>
5873
5874 * ralloc.c (mmap_fd): Remove initializer which can make it
5875 read-only in a dumped Emacs.
5876 (mmap_fd_1): New variable.
5877 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
5878 restore it from there.
5879 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
5880 unconditionally so that mmap_fd can be initialized there.
5881 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
5882 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
5883 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
5884
5885 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
5886
5887 * xdisp.c (dump_glyph_row): Fix printf format string.
5888 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
5889
5890 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
5891
5892 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
5893 inheritance.
5894
5895 * xdisp.c (try_window_id): When trying to locate cursor in
5896 unchanged rows at the top, handle the case that we can't find it.
5897
5898 * xterm.c (x_draw_glyphs): Handle case START and END are out
5899 of bounds more carefully.
5900
5901 2000-09-08 Dave Love <fx@gnu.org>
5902
5903 * s/sol2.h (REL_ALLOC_MMAP): Define.
5904 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
5905
5906 * ralloc.c: Don't include string.h (redundant).
5907 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
5908 [!MAP_ANON]: Include fcntl.h.
5909 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
5910 (r_alloc, r_re_alloc, r_alloc_free)
5911 (mmap_enlarge, mmap_set_vars): Use it.
5912 (r_alloc_init_fd): New function.
5913 (__morecore) [SYSTEM_MALLOC]: Don't declare.
5914 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
5915 malloc type.
5916
5917 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
5918 Remove vm-limit.o.
5919
5920 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
5921 change to __NetBSD__.
5922
5923 2000-09-08 Kenichi Handa <handa@etl.go.jp>
5924
5925 * search.c (compile_pattern): Check the multibyteness of cached
5926 string and PATTERN.
5927
5928 2000-09-08 Miles Bader <miles@gnu.org>
5929
5930 * xfaces.c (default_face_vector): Function removed.
5931 (Finternal_merge_in_global_face): Restore old global/local
5932 attribute override order. Use inline loop instead of calling
5933 default_face_vector.
5934
5935 2000-09-07 Gerd Moellmann <gerd@gnu.org>
5936
5937 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
5938 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
5939 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
5940 where necessary, in case POINTER_TYPE is `void'.
5941
5942 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
5943
5944 * frame.c (make_terminal_frame): Initialize frame foreground and
5945 background colors to unspecified, for the initial instance of an
5946 MSDOS frame.
5947
5948 2000-09-07 Gerd Moellmann <gerd@gnu.org>
5949
5950 * ralloc.c (mmap_find): Fix overlap computation.
5951 (mmap_enlarge): Compute nbytes before trying to find an
5952 overlapping region.
5953
5954 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
5955 instead of `!='.
5956
5957 * lread.c (syms_of_lread): Change value of regexp
5958 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
5959
5960 * xmenu.c (xdialog_show): When looking up the selection in
5961 menu_items, take `quote' boundaries into account; this corresponds
5962 to a nil ITEM in x-popup-dialog.
5963
5964 2000-09-07 Kenichi Handa <handa@etl.go.jp>
5965
5966 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
5967 not 0x81.
5968 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
5969
5970 * coding.c (encode_coding_sjis_big5): Use translation table for
5971 encoding, not decoding. Fix the handling of latin-jisx0201.
5972 Check for the charset katakana-jisx0201 too.
5973 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
5974 (detect_coding_sjis): Check the byte sequence more rigidly.
5975
5976 2000-09-07 Gerd Moellmann <gerd@gnu.org>
5977
5978 * xfaces.c (Vparam_value_alist): New variable.
5979 (syms_of_xfaces): Initialize it.
5980 (Finternal_set_lisp_face_attribute): Avoid more consing.
5981
5982 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
5983 specially.
5984 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
5985 (Qbackground_mode): New variable.
5986 (syms_of_frame_1): Initialize Qbackground_mode.
5987
5988 * lisp.h (Qdisplay): Declare extern.
5989
5990 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
5991 change face on all frames, and change the default for new frames.
5992
5993 2000-09-07 Dave Love <fx@gnu.org>
5994
5995 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
5996
5997 2000-09-07 Kenichi Handa <handa@etl.go.jp>
5998
5999 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
6000
6001 * charset.c: Include composite.h
6002 (lisp_string_width): New function.
6003 (Fstring_width): Call lisp_string_width instead of strwidth.
6004
6005 * Makefile.in (charset.o): Depends on composite.h.
6006
6007 * process.c (read_process_output): Before inserting the decoded
6008 text in the buffer, adjust the multibyteness.
6009
6010 2000-09-06 Gerd Moellmann <gerd@gnu.org>
6011
6012 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
6013 buffer's text buffer is null, map new memory.
6014
6015 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
6016 POINTER_TYPE and size_t.
6017 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
6018 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
6019 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
6020 [REL_ALLOC_MMAP]: New macros.
6021 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
6022 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
6023 [REL_ALLOC_MMAP]: New functions.
6024
6025 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
6026 before and after unexec.
6027
6028 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
6029 text buffers if necessary.
6030
6031 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
6032 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
6033 in prototypes.
6034
6035 * config.in (HAVE_MMAP): Add #undef.
6036
6037 2000-09-05 Gerd Moellmann <gerd@gnu.org>
6038
6039 * frame.c (Qdisplay_type): New variable.
6040 (syms_of_frame_1): Initialize it.
6041 (Fframe_parameter): New function that avoids consing.
6042 (syms_of_frame): Defsubr it.
6043
6044 * buffer.c (Fother_buffer): Consider buffers as invisible when
6045 they are displayed in a window on an invisible frame.
6046
6047 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
6048 get-largest-window always return nil.
6049
6050 2000-09-04 Gerd Moellmann <gerd@gnu.org>
6051
6052 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
6053 variable; recognize Emacs 19 elc files.
6054
6055 2000-09-04 Miles Bader <miles@gnu.org>
6056
6057 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
6058 before initially popping up the menu, so the menu doesn't flash
6059 when the face settings are significantly different from the defaults.
6060
6061 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
6062
6063 * regex.c (WIDE_CHAR_SUPPORT): New macro.
6064 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
6065 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
6066 (BIT_UNIBYTE): Remove.
6067 (re_match_2_internal): Delete corresponding code and streamline the
6068 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
6069 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
6070 (re_wctype_t): New type.
6071 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
6072 (regex_compile): Use them and fix handling of overly long char classes.
6073
6074 2000-09-03 Andrew Innes <andrewi@gnu.org>
6075
6076 * makefile.w32-in: Change to DOS line endings.
6077
6078 * s/ms-w32.h (ORDINARY_LINK): New define.
6079
6080 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
6081 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
6082
6083 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
6084 (distclean): Delete them here instead.
6085
6086 * w32proc.c (compare_env): Convert to uppercase for comparison,
6087 not lowercase, to match how the native Windows shell works.
6088
6089 2000-09-03 Jason Rumney <jasonr@gnu.org>
6090
6091 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
6092 CVS changes the line-ends when checking in/out on DOS/Windows.
6093
6094 * makefile.nt (emacs): Do not change directory to run temacs, as
6095 the load-path is set relative to current directory.
6096
6097 2000-09-03 Miles Bader <miles@gnu.org>
6098
6099 * xterm.c (x_alloc_lighter_color_for_widget): New function.
6100
6101 2000-09-02 Gerd Moellmann <gerd@gnu.org>
6102
6103 * xdisp.c (redisplay_mode_lines): New function.
6104 (display_mode_lines): Return number of mode lines displayed.
6105 (echo_area_display): Use redisplay_mode_lines to draw garbaged
6106 mode lines. Don't temporarily bind redisplay-dont-pause to t.
6107
6108 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
6109 string.h and strings.h.
6110 (index) [HAVE_INDEX]: Add prototype.
6111
6112 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
6113 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
6114
6115 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
6116 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6117
6118 2000-09-01 Gerd Moellmann <gerd@gnu.org>
6119
6120 * lread.c (read1): Accept `?' as symbol constituent, for
6121 compatiblity with XEmacs.
6122
6123 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
6124
6125 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
6126 (struct re_pattern_buffer): Remove newline_anchor.
6127 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
6128 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
6129 (re_max_failures, fail_stack): Use size_t rather than unsigned.
6130 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
6131 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
6132 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
6133 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
6134 Get rid of references to newline_anchor.
6135 (regcomp): Allocate and precompute a fastmap.
6136
6137 2000-08-31 Gerd Moellmann <gerd@gnu.org>
6138
6139 * lread.c (openp): GCPRO local variable `filename'.
6140
6141 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
6142
6143 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
6144
6145 * regex.c: Merge some changes from GNU libc. Add prototypes.
6146 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
6147 Use memcmp and memcpy instead of bcopy and bcmp.
6148 (init_syntax_once): Use ISALNUM.
6149 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
6150 (REG_UNSET_VALUE): Remove. Use NULL instead.
6151 (REG_UNSET, re_match_2_internal): Use NULL.
6152 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
6153 New macros.
6154 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
6155 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
6156 (regex_compile): In handle_interval, return an error rather than try to
6157 unfetch the interval if we can't find the closing brace.
6158 Obey the RE_NO_GNU_OPS syntax bit.
6159 (TOLOWER): New macro.
6160 (regcomp): Use it.
6161 (regexec): Allocate regs.start and regs.end as one block.
6162
6163 2000-08-30 Gerd Moellmann <gerd@gnu.org>
6164
6165 * xdisp.c (echo_area_display): Check display_completed instead
6166 of calling detect_input_pending.
6167
6168 * dispnew.c (update_frame): Only set display_completed here; move
6169 the update_begin and update_end calls here from update_frame_1.
6170 (update_frame_1): Don't set display_completed here, don't call
6171 update_begin/update_end.
6172
6173 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
6174 instead of store_frame_param.
6175
6176 2000-08-29 Gerd Moellmann <gerd@gnu.org>
6177
6178 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
6179 desired window matrix hasn't been displayed, use the current row
6180 instead. Make sure that only those frame rows are updated for
6181 which there exists a corresponding enabled desired row.
6182
6183 2000-08-29 Miles Bader <miles@gnu.org>
6184
6185 * xfaces.c (default_face_vector): New function.
6186 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
6187
6188 2000-08-29 Gerd Moellmann <gerd@gnu.org>
6189
6190 * lread.c (openp): Prevent temporary string passed to
6191 Ffile_readable_p from being garbage collected.
6192
6193 2000-08-28 Dave Love <fx@gnu.org>
6194
6195 * keymap.c (store_in_keymap): Add `static' to declaration.
6196
6197 2000-08-28 Gerd Moellmann <gerd@gnu.org>
6198
6199 * emacs.c, callint.c, doc.c, editfns.c
6200 (toplevel) [HAVE_STRING_H]: Include string.h.
6201 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
6202 (index): Remove prototypes which might conflict with non-standard
6203 definitions of index/strchr.
6204
6205 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
6206 (rindex): Define only if !HAVE_RINDEX.
6207
6208 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
6209
6210 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
6211
6212 2000-08-28 Miles Bader <miles@gnu.org>
6213
6214 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
6215 made inconsistent by a font-related attribute in FROM.
6216 (merge_face_inheritance): Add function comment.
6217
6218 2000-08-28 Kenichi Handa <handa@etl.go.jp>
6219
6220 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
6221 the 4th arg (PREV_EVENT) Qt to suppress input method.
6222
6223 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
6224
6225 * regex.c: Indent cpp directives and remove parens after `defined'.
6226 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
6227 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
6228 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
6229 (re_compile_pattern): Use size_t for length.
6230 (init_syntax_once): Move to a better place.
6231 * regex.h: Merge changes from GNU libc. Indent cpp directives.
6232 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
6233
6234 * syntax.c (back_comment): Detect cases where a comment-starter is
6235 actually inside another comment as in: /* a // b */ c // d \n.
6236 Make it clear that `comstart_pos' is unused for nested comments.
6237
6238 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
6239 (KEYMAPP): New macro.
6240 (Fkeymap_parent, Fset_keymap_parent): Use it.
6241 (fix_submap_inheritance): Mark it static.
6242 (define_as_prefix, describe_buffer_bindings, describe_command)
6243 (describe_translation, describe_map): Complete prototypes.
6244
6245 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
6246
6247 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
6248 to better match the key-lookup behavior.
6249
6250 2000-08-27 Gerd Moellmann <gerd@gnu.org>
6251
6252 * xfaces.c (lface_fully_specified_p): Handle :inherit.
6253 (Finternal_set_lisp_face_attribute): Fix typo in error message.
6254
6255 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
6256
6257 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
6258 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
6259 (xterm.o): Depend on coding.h
6260
6261 2000-08-26 Kenichi Handa <handa@etl.go.jp>
6262
6263 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
6264 the corresponding '#endif'.
6265
6266 2000-08-26 Miles Bader <miles@gnu.org>
6267
6268 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
6269 * xfaces.c (QCinherit): New variable.
6270 (syms_of_xfaces): Initialize it.
6271 (LFACE_INHERIT): New macro.
6272 (Finternal_get_lisp_face_attribute)
6273 (merge_face_vector_with_property)
6274 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
6275 (check_lface_attrs): Allow new types of face height. Check
6276 inherit attribute.
6277 (CYCLE_CHECK): New macro.
6278 (merge_face_inheritance): New function.
6279 (merge_face_vectors): Merge inherited faces too. Add F and
6280 CYCLE_CHECK arguments.
6281 (merge_face_vector_with_property, Finternal_merge_in_global_face)
6282 (lookup_named_face, lookup_derived_face, realize_named_face)
6283 (face_at_string_position, face_at_buffer_position): Supply
6284 new F and CYCLE_CHECK arguments to merge_face_vectors.
6285 (merge_face_heights): New function.
6286 (merge_face_vectors, merge_face_vector_with_property)
6287 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
6288 handle relative face heights.
6289 (lface_same_font_attributes_p): Compare heights using EQ.
6290
6291 2000-08-26 Kenichi Handa <handa@etl.go.jp>
6292
6293 * charset.c (char_to_string): Check the character validity.
6294 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6295
6296 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
6297
6298 * regex.c (PUSH_FAILURE_COUNT): New macro.
6299 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
6300 Handle popping of a register's or a counter's data.
6301 (POP_FAILURE_POINT): Use the new name.
6302 (re_match_2_internal): Push counter data on the stack for succeed_n,
6303 jump_n and set_number_at and remove misleading dead code in succeed_n.
6304
6305 2000-08-25 Gerd Moellmann <gerd@gnu.org>
6306
6307 * xdisp.c (redisplay_internal): If considering all windows on all
6308 frames, update the display for each frame as soon as possible,
6309 instead of first building all desired matrices for all frames, and
6310 then updating them all.
6311 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
6312
6313 2000-08-24 Gerd Moellmann <gerd@gnu.org>
6314
6315 * bytecode.c (mark_byte_stack): Add a comment.
6316
6317 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
6318 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
6319 a graphical frame.
6320
6321 2000-08-24 Kenichi Handa <handa@etl.go.jp>
6322
6323 * minibuf.c (do_completion): Always use compare-string, not
6324 string-equal because the latter doesn't pay attention to
6325 multibyteness of strings.
6326
6327 * process.c (create_process): Don't setup raw-text coding here.
6328 (Fopen_network_stream): Don't set coding->src_multibyte and
6329 coding->dst_multibyte here.
6330 (read_process_output): For process filter, return unibyte string
6331 if default-enable-multibyte-characters is nil.
6332 (send_process): If OBJECT is multibyte text, be sure to encoded it
6333 by the specified coding system for the process. Otherwise, setup
6334 raw-text coding.
6335 (init_process): Don't initialize default-process-coding-system here.
6336
6337 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
6338
6339 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
6340 <scroll-down-aggressively>: Likewise.
6341
6342 2000-08-23 Kenichi Handa <handa@etl.go.jp>
6343
6344 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
6345 zero. Set coding->produced_char correctly.
6346
6347 2000-08-22 Andrew Innes <andrewi@gnu.org>
6348
6349 * makefile.w32-in: New file.
6350
6351 * unexw32.c (unexec): Ignore old_name, and use the actual location
6352 of the current executable instead. Base new_name on this.
6353
6354 * w32proc.c (create_child): Remove reference to security
6355 descriptor, which isn't needed and doesn't compile with mingw32.
6356
6357 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6358 up dllimport attributes.
6359 (x_update_window_end): Update prototype.
6360
6361 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
6362 extern, which screws up dllimport attributes.
6363
6364 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6365 up dllimport attributes.
6366
6367 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
6368 screws up dllimport attributes.
6369
6370 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6371 up dllimport attributes.
6372 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
6373 screws up dllimport attributes.
6374
6375 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6376 up dllimport attributes.
6377
6378 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
6379 screws up dllimport attributes.
6380
6381 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
6382 screws up dllimport attributes.
6383
6384 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6385 up dllimport attributes.
6386
6387 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
6388 unnecessary extern, which screws up dllimport attributes.
6389 (main): Ditto.
6390
6391 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6392 up dllimport attributes.
6393
6394 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
6395 unnecessary extern, which screws up dllimport attributes.
6396
6397 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
6398 screws up dllimport attributes.
6399
6400 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6401 up dllimport attributes.
6402
6403 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
6404
6405 * w32bdf.c (search_file_line):
6406 (set_bdf_font_info):
6407 (seek_char):
6408 (w32_get_bdf_glyph):
6409 (w32_BDF_to_x_font): Fix compile warnings.
6410
6411 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
6412
6413 * w32select.c: Include keyboard.h before frame.h.
6414
6415 * w32fns.c (max): Define macro.
6416 (JOHAB_CHARSET): Define if not known.
6417 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
6418 (Fx_show_tip): Synch with X version.
6419
6420 * w32xfns.c: Include keyboard.h before frame.h.
6421
6422 * w32fns.c: Include keyboard.h before frame.h.
6423
6424 * w32term.c: Include keyboard.h before frame.h.
6425
6426 * fontset.c: Include keyboard.h before frame.h.
6427
6428 * w32inevt.c: Include keyboard.h before frame.h.
6429 (MOUSE_MOVED): Define if not known.
6430
6431 * minibuf.c: Include keyboard.h before frame.h.
6432
6433 * keyboard.c: Include keyboard.h before frame.h.
6434
6435 * indent.c: Include keyboard.h before frame.h.
6436
6437 * dispnew.c: Include keyboard.h before frame.h.
6438
6439 * buffer.c: Include keyboard.h before frame.h.
6440
6441 * alloc.c: Include keyboard.h before frame.h.
6442
6443 * print.c: Include keyboard.h before frame.h.
6444
6445 * process.c: Include keyboard.h before frame.h.
6446
6447 * scroll.c: Include keyboard.h before frame.h.
6448
6449 * sysdep.c: Include keyboard.h before frame.h.
6450
6451 * term.c: Include keyboard.h before frame.h.
6452
6453 * window.c: Include keyboard.h before frame.h.
6454
6455 * xdisp.c: Include keyboard.h before frame.h.
6456 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
6457
6458 * frame.c: Include keyboard.h before frame.h.
6459
6460 * w32heap.h: Undefine min, max.
6461
6462 * w32gui.h: Undefine min, max.
6463
6464 * unexw32.c: Change PUCHAR to PCHAR.
6465 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
6466 (relocate_offset):
6467 (get_section_info):
6468 (copy_executable_and_dump_data): Remove unnecessary static defs.
6469 (copy_executable_and_dump_data): Fix compile warnings.
6470
6471 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
6472
6473 * w32console.c (min): Define macro.
6474 (clear_frame, write_glyphs): Fix compile warning.
6475
6476 * w32proc.c (compare_env):
6477 (find_child_console): Fix compile warning.
6478
6479 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
6480 sys_errlist instead of _sys_errlist.
6481 (get_emacs_configuration_options): New function.
6482
6483 * s/ms-w32.h (sys_nerr): Provide default definition.
6484 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
6485 name with _ prepended.
6486 (NSIG): Define if not known.
6487 (get_emacs_configuration): Provide extern declaration.
6488 (get_emacs_configuration_options): Provide extern declaration.
6489 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
6490
6491 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
6492 (map_w32_filename):
6493 (read_unc_volume): Fix compile warning.
6494
6495 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
6496 definitions from being used.
6497
6498 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
6499
6500 * w32.c (unc_volume_file_attributes):
6501 (open_unc_volume): Make arg const.
6502
6503 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
6504 (read_input_waiting): Remove excess parameter.
6505
6506 * w32.c (init_environment): Call _access.
6507 (check_windows_init_file): Call _close.
6508 (init_user_info): Call _putenv.
6509 (init_environment): Call _putenv and _strdup.
6510 (init_ntproc): Reset volume info cache on startup.
6511
6512 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
6513 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
6514 cannot override the CRT malloc.
6515
6516 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
6517 (LINK_FLAGS): Append to original value of LINK_FLAGS.
6518
6519 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
6520 unless we are linking with a static CRT.
6521 (RVA_TO_PTR): Cast result to unsigned char*.
6522
6523 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
6524 (add_volume_info): Use xstrdup.
6525
6526 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
6527
6528 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
6529 (do_completion, Fminibuffer_complete_word): Use it.
6530 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
6531 var so it can take non-boolean values.
6532
6533 2000-08-21 Gerd Moellmann <gerd@gnu.org>
6534
6535 * editfns.c (find_field): Formatting changes.
6536 (toplevel): Some old-style function forward declarations
6537 changed to prototypes, some new protypes added, some functions
6538 made static.
6539
6540 * lisp.h (set_time_zone_rule): Add prototype.
6541 (use_dialog_box): External declaration.
6542
6543 * keyboard.c (gen_help_event): Add parameter SIZE.
6544 (kbd_buffer_events_waiting): Slightly rewritten.
6545 (clear_event): New function.
6546 (kbd_buffer_get_event): Use it, and clear the input_events of
6547 HELP_EVENTs.
6548 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
6549 don't fill the newly created array with nils.
6550 (toplevel): Convert some old-style function forward declarations
6551 to prototypes.
6552
6553 * keyboard.h (gen_help_event): Change prototype.
6554
6555 * xterm.c (XTread_socket): Change calls to gen_help_event.
6556
6557 * w32term.c (w32_read_socket): Change calls to gen_help_event.
6558
6559 * eval.c (Fmacroexpand): Doc fix.
6560
6561 2000-08-20 Jason Rumney <jasonr@gnu.org>
6562
6563 * w32term.h (x_display_info_for_display): Remove as this function
6564 does not exist on W32.
6565
6566 * w32term.c (help_echo_window): New variable.
6567 (syms_of_w32term): staticpro it.
6568 (note_mode_line_highlight): Set it.
6569 (XTextExtents16): Removed as there is no equivalent on W32.
6570 (x_compute_glyph_string_overhangs): Incomplete body removed, as
6571 the X way of doing this will not work for W32.
6572 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
6573 (x_draw_image_foreground): Avoid drawing outside of the clip area
6574 when image doesn't have a mask.
6575 (note_mouse_highlight): Process overlays in the right order of
6576 priority. Set help_echo_window.
6577 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
6578 because that's more visible for large images.
6579
6580 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
6581 name to single_keymap_panes.
6582 (w32_menu_show): Set wv->title when dealing with titles.
6583 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
6584
6585 2000-08-21 Miles Bader <miles@gnu.org>
6586
6587 * minibuf.c (do_completion): Try again if we rewrite the input
6588 string, but no completion was done, so that any completion message
6589 will be correct.
6590
6591 2000-08-20 Gerd Moellmann <gerd@gnu.org>
6592
6593 * xfaces.c (lface_equal_p): Compare strings differently.
6594 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
6595 (realize_tty_face): Use them.
6596 (syms_of_xfaces): Initialize new variables.
6597 (map_tty_color): New function, extracted from realize_tty_face.
6598 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
6599 foreground or background color, store the new color name in the
6600 realized face; previous code trying to do this had no effect.
6601 (realize_tty_face): Use map_tty_color.
6602 (Fclear_face_cache): Set face_change_count and ensure thorough
6603 redisplay.
6604
6605 2000-08-19 Gerd Moellmann <gerd@gnu.org>
6606
6607 * undo.c (record_first_change, record_marker_adjustment): Don't
6608 use XBUFFER on last_undo_buffer which might not be a buffer.
6609
6610 2000-08-18 Kenichi Handa <handa@etl.go.jp>
6611
6612 * coding.c (decode_coding_string): Set members consumed,
6613 consumed_char, produced, produced_char of *coding correctly. If
6614 decode_coding doesn't consume any byte, don't try anymore.
6615 (encode_coding_string): Likewise.
6616
6617 2000-08-18 Gerd Moellmann <gerd@gnu.org>
6618
6619 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
6620 conditional have void type, for Standard C compilers.
6621
6622 * xdisp.c (redisplay_internal): Compare windows for equality with
6623 EQ, instead of applying XWINDOW to something that might not
6624 be a window.
6625
6626 2000-08-18 Kenichi Handa <handa@etl.go.jp>
6627
6628 * fontset.c (Finternal_char_font): Search only the selected frame
6629 for a window of the current buffer.
6630
6631 2000-08-18 Gerd Moellmann <gerd@gnu.org>
6632
6633 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
6634 Lisp_Objects.
6635
6636 * keyboard.c (kbd_buffer_get_event): Handle the case that the
6637 second half of a HELP_EVENT is found at the start of kbd_buffer.
6638
6639 2000-08-18 Miles Bader <miles@gnu.org>
6640
6641 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
6642
6643 * editfns.c (save_restriction_save): Rewrite to use markers.
6644 (save_restriction_restore): Rewrite to understand new form of data
6645 saved by save_restriction_save.
6646 (Fsave_restriction): Remove cautionary note in doc-string.
6647
6648 2000-08-17 Gerd Moellmann <gerd@gnu.org>
6649
6650 * fileio.c (build_annotations): Add a comment explaining the
6651 return value of format-annotate-function. Replace a spurious call
6652 to Flength with a CONSP test. Call format-annotate-function with
6653 a fifth arg specifying how many times the function is been called
6654 in a row, to let it choose temporary buffers appropriately.
6655
6656 2000-08-17 Dave Love <fx@gnu.org>
6657
6658 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
6659 declare make_temp_name twice.
6660
6661 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
6662 (unreadpure): Give it an arg.
6663
6664 * unexalpha.c: Prototype fatal_unexec, mark_x,
6665 update_dynamic_symbols. Declare unexec as void.
6666
6667 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
6668 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
6669
6670 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
6671 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
6672
6673 * alloca.c: Use #error.
6674 [POINTER_TYPE]: Use it.
6675
6676 * eval.c (Fdefvar): Doc fix.
6677
6678 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
6679 INITIALIZE_INTERVAL.
6680
6681 * buffer.h: Avoid DECLARE_INTERVALS.
6682
6683 * config.in: Add size_t.
6684
6685 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
6686
6687 * w16select.c (set_clipboard_data): If there's not enough memory
6688 to put text into clipboard, return 1, as Fw16_set_clipboard_data
6689 expects. In case of other failures, return 3.
6690 (system_error_msg): New error message.
6691 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
6692 system_error_msg.
6693
6694 2000-08-16 Gerd Moellmann <gerd@gnu.org>
6695
6696 * term.c (write_glyphs): Also turn off inverse video after turning
6697 off other appearances in case TS_exit_attribute_mode is not equal
6698 to TS_end_standout_mode.
6699 (insert_glyphs): Turn inverse video on/off for each run of glyphs
6700 with the same face.
6701 (turn_off_face): Reset standout_mode only if
6702 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
6703 is equal to TS_end_standout_mode.
6704
6705 2000-08-16 Kenichi Handa <handa@etl.go.jp>
6706
6707 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
6708 sequence at the end of the source block.
6709
6710 * ccl.c (Fccl_program_p): Docstring modified.
6711 (Fccl_execute): Likewise.
6712 (Fccl_execute_on_string): Likewise.
6713
6714 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
6715
6716 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
6717
6718 2000-08-16 Kenichi Handa <handa@etl.go.jp>
6719
6720 The following changes are mainly to fix bugs of
6721 encode/decode-coding-string failing if encoding/decoding return
6722 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
6723 variable conversion_buffer.
6724
6725 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
6726 decrement dst_end to avoid buffer overflow in the later call of
6727 string_as_multibyte
6728
6729 * coding.h (conversion_buffer_size, conversion_buffer)
6730 (get_conversion_buffer): Extern deleted.
6731
6732 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
6733 (conversion_buffer, conversion_buffer_size): Variables deleted.
6734 (get_conversion_buffer): Function deleted.
6735 (struct conversion_buffer): New structure.
6736 (MAX_ALLOCA): New macro.
6737 (allocate_conversion_buffer): New macro.
6738 (extend_conversion_buffer, free_conversion_buffer): New functions.
6739 (ccl_coding_driver): Set coding->result.
6740 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
6741 this is the last block of source.
6742 (encode_coding): Likewise. Handle the source block as the last
6743 one only when the whole source text is consumed.
6744 (decode_coding_string): Handle the case that the output buffer is
6745 too small to decode the whole source text. Use
6746 allocate_conversion_buffer, extend_conversion_buffer and
6747 free_conversion_buffer, not get_conversion_buffer.
6748 (encode_coding_string): Likewise.
6749 (init_coding): Function deleted.
6750 (init_coding_once): Delete code to initialize conversion_buffer_size.
6751
6752 * emacs.c (main): Don't call init_coding.
6753
6754 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
6755
6756 * term.c (write_glyphs): Use a locally declared conversion_buffer.
6757 (insert_glyphs): Likewise.
6758
6759 * w32console.c (write_glyphs): Use a locally declared
6760 conversion_buffer.
6761
6762 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
6763
6764 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
6765 member of display_info is NULL.
6766
6767 2000-08-15 Gerd Moellmann <gerd@gnu.org>
6768
6769 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
6770
6771 * term.c (turn_off_face): Reset standout_mode when resetting
6772 appearances with capability `me'.
6773 (write_glyphs): Switch on inverse video before each face change.
6774
6775 2000-08-14 Dave Love <fx@gnu.org>
6776
6777 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
6778 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
6779 (lisp_free): Declare and make static.
6780
6781 * window.c: Fix embedded comment.
6782 (syms_of_window): Fix doc string.
6783
6784 2000-08-14 Gerd Moellmann <gerd@gnu.org>
6785
6786 * keymap.c (push_key_description): If C without modifiers is < 32,
6787 make sure to print `C-' before `M-', like in the manual.
6788
6789 2000-08-11 Gerd Moellmann <gerd@gnu.org>
6790
6791 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
6792 since they aren't relocated anymore.
6793 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
6794
6795 * xdisp.c (try_cursor_movement): Fix handling of cursor in
6796 partially visible line which is smaller than the window's height.
6797
6798 2000-08-11 Kenichi Handa <handa@etl.go.jp>
6799
6800 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
6801 the multibyte form of eight-bit-control characters.
6802 (Fccl_execute_on_string): Initialize ccl->multibyte.
6803
6804 * ccl.h (struct ccl_program): New member multibyte.
6805
6806 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
6807
6808 2000-08-11 Kenichi Handa <handa@etl.go.jp>
6809
6810 * regex.c (regex_compile) <normal_char>: Pay attention to
6811 multibyteness.
6812 (analyse_first) <exactn>: Setup fastmap correctly for
6813 eight-bit-control characters.
6814
6815 2000-08-11 Kenichi Handa <handa@etl.go.jp>
6816
6817 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
6818
6819 * keyboard.c (make_lispy_event): Handle the new event type
6820 multibyte_char_keystroke.
6821
6822 * xterm.c: Include coding.h.
6823 (XTread_socket): Work around a bug of XmbLookupString. If the
6824 input is from XIM, decode it according to the current locale. In
6825 that case, generate multibyte_char_keystroke events.
6826
6827 2000-08-11 Kenichi Handa <handa@etl.go.jp>
6828
6829 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
6830 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
6831
6832 2000-08-10 Gerd Moellmann <gerd@gnu.org>
6833
6834 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
6835 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
6836 (move_it_in_display_line_to): Record iterator's ascent and descent
6837 before producing glyphs, and restore them when we know the glyph
6838 doesn't fit on the line.
6839 (move_it_to): Restructured so that it's easier to debug. If
6840 moving to a vpos, and not moving to an x or character position,
6841 stop as soon as the specified vpos is reached; don't move further
6842 into that line because that might change the computed line height.
6843 (try_cursor_movement): New function, extracted from the cursor
6844 movement branch of redisplay_window. If ending on a partially
6845 visible line, don't try to scroll if the cursor line is taller
6846 than the window.
6847 (redisplay_window): Use try_cursor_movement.
6848
6849 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
6850 because that function doesn't cope with variable-height lines.
6851
6852 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
6853 box cursor because that's better visible for large images.
6854
6855 2000-08-10 Miles Bader <miles@gnu.org>
6856
6857 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
6858
6859 2000-08-10 Gerd Moellmann <gerd@gnu.org>
6860
6861 * xdisp.c (Vmessages_buffer_name): New variable.
6862 (message_dolog): Use it.
6863 (syms_of_xdisp): Initialize it.
6864
6865 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
6866
6867 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
6868 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
6869 redundant now that keyboard.h is included.
6870
6871 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
6872
6873 * keyboard.c (kbd_buffer_events_waiting): New function.
6874
6875 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
6876
6877 * msdos.c: Include keyboard.h.
6878 (XMenuActivate): Empty no_event events from the event buffer. If
6879 no events are left after that, call clear_input_pending.
6880 (mouse_clear_clicks): New function, code moved from mouse_init.
6881 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
6882 mouse driver to ``forget'' any past clicks.
6883
6884 * Makefile.in (msdos.o): Depend on keyboard.h.
6885
6886 2000-08-09 Gerd Moellmann <gerd@gnu.org>
6887
6888 * lisp.h (input_pending): External declaration.
6889
6890 * dispextern.h (Qredisplay_dont_pause): Declare extern.
6891
6892 * xdisp.c (echo_area_display): Display thoroughly if input is
6893 pending. Bind redisplay-dont-pause to t during the redisplay.
6894 in case input is pending.
6895
6896 * dispnew.c (Qredisplay_dont_pause): New variable.
6897 (syms_of_display): Initialize and staticpro it.
6898 (update_frame_1): Don't interrupt the display for pending input if
6899 redisplay_dont_pause is set.
6900
6901 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
6902
6903 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
6904
6905 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
6906
6907 * callproc.c (Fcall_process): Terminate the unwind-protect around
6908 the post-read-conversion of coding system.
6909
6910 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
6911 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
6912 * buffer.h (overlays_at): Update prototype.
6913 * xdisp.c (next_overlay_change): Update call to overlays_at.
6914 * xfaces.c (face_at_buffer_position): Likewise.
6915 * textprop.c (Fget_char_property): Likewise.
6916 * xterm.c (note_mouse_highlight): Likewise.
6917
6918 * minibuf.c (do_completion): Don't consider a simple change of
6919 case as `completion'.
6920
6921 2000-08-08 Ken Raeburn <raeburn@gnu.org>
6922
6923 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
6924 * undo.c (record_delete): Make sure last_point_position_buffer is
6925 a buffer before comparing pointers.
6926
6927 * coding.h (decode_coding_string): Declare.
6928
6929 * intervals.h (Fprevious_single_char_property_change): Declare.
6930
6931 * textprop.c (Fprevious_single_char_property_change): Don't do
6932 arithmetic directly on lisp objects.
6933
6934 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
6935
6936 * keyboard.h (menu_item_eval_property): Declare.
6937
6938 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
6939 reuse as buffer name, instead of recreating (and discarding) every
6940 time a message is logged.
6941 (with_echo_area_buffer): Make callback arg A2 a lisp object.
6942 (current_message_1, truncate_message_1, set_message_1)
6943 (display_echo_area_1, resize_mini_window_1): Signatures changed.
6944 (current_message, truncate_echo_area, display_echo_area)
6945 (resize_echo_area_axactly): Changed calls.
6946
6947 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
6948 Lisp object.
6949 (Ffind_coding_systems_region_internal): First argument to Fappend
6950 must be an integer, not a Lisp object.
6951
6952 2000-08-08 Kenichi Handa <handa@etl.go.jp>
6953
6954 * charset.c (Fchar_width): Doc fix.
6955
6956 2000-08-08 Gerd Moellmann <gerd@gnu.org>
6957
6958 * charset.c (Fstring_width): Doc fix.
6959
6960 2000-08-07 Gerd Moellmann <gerd@gnu.org>
6961
6962 * xdisp.c (start_display): When starting display on a continuation
6963 line, clear ascent and descent members of the iterator structure;
6964 the height of the continued line does not affect the height of the
6965 continuation line.
6966 (make_cursor_line_fully_visible): Do nothing if cursor is on a
6967 line taller than the window.
6968 (redisplay_window) <forced window start>: Handle case that the
6969 middle of the window is not found in any row.
6970 (dump_glyph_row): Show more information.
6971 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
6972 first text line in a glyph matrix.
6973
6974 * xterm.c (x_draw_image_foreground): Avoid drawing outside
6975 of the clip area when image doesn't have a mask.
6976
6977 * fns.c (sweep_weak_table): Fix survival conditions for
6978 key-or-value and key-and-value weakness.
6979
6980 * .gdbinit (xhashtable): New command.
6981
6982 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
6983 tables out of the list of all weak hash tables.
6984
6985 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
6986 a new buffer is created, make sure echo_area_buffer[] references
6987 the new buffer.
6988
6989 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
6990
6991 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
6992 the doc string.
6993
6994 2000-08-07 Kenichi Handa <handa@etl.go.jp>
6995
6996 * syntax.c (skip_chars): Fix previous change. Make the handling
6997 of unibyte string consistent with that of regex search.
6998
6999 2000-08-05 Gerd Moellmann <gerd@gnu.org>
7000
7001 * xmenu.c (popup_get_selection): Use xfree instead of free.
7002
7003 * fileio.c (Finsert_file_contents): Use xfree instead of free.
7004
7005 * editfns.c (Ftranspose_regions): Use xfree instead of free.
7006
7007 * callproc.c (child_setup): Use xfree instead of free.
7008
7009 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
7010 instead of malloc.
7011 (run_mac_command, closedir): Use `xfree' instead of `free'.
7012
7013 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
7014
7015 * eval.c (error): Use xfree instead of free.
7016
7017 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
7018
7019 * fns.c: Replace `illegal' with `invalid'.
7020 (Fmake_hash_table, make_hash_table): Allow table size of 0.
7021
7022 2000-08-05 Kenichi Handa <handa@etl.go.jp>
7023
7024 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
7025 conversion.
7026
7027 2000-08-04 Noah Friedman <friedman@splode.com>
7028
7029 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
7030 docstring.
7031
7032 2000-08-04 Gerd Moellmann <gerd@gnu.org>
7033
7034 * syntax.c (skip_chars): Fix typo in error message.
7035
7036 2000-08-04 Andreas Schwab <schwab@suse.de>
7037
7038 * m/ia64.h: Moved from s/ia64.h.
7039
7040 2000-08-04 Kenichi Handa <handa@etl.go.jp>
7041
7042 * process.c (read_process_output): Big simplification. Handle
7043 composition and post-read-conversion of coding system correctly.
7044 (send_process): Handle composition correctly.
7045
7046 * callproc.c (Fcall_process): Handle post-read-conversion of
7047 coding system if any.
7048
7049 * coding.c (decode_coding_iso2022): More strict check for handling
7050 single shifting.
7051 (coding_restore_composition): Pay attention to the case that
7052 cmp_data is not set properly (because of invalid code in the
7053 source text).
7054 (run_pre_post_conversion_on_str): Include text properties in the
7055 resulting string.
7056 (decode_coding_string): Set members of coding correctly.
7057
7058 2000-08-03 Gerd Moellmann <gerd@gnu.org>
7059
7060 * s/ia64.h: New file.
7061
7062 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
7063 Use NULL instead of 0 at the end of variable argument list of
7064 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
7065 sizeof (int) < sizeof (void *).
7066
7067 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
7068 of variable argument lists of XtVaGetValues and XtVaSetValues.
7069
7070 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
7071 variable argument lists of XtVaGetValues and XtVaSetValues.
7072
7073 2000-08-02 Gerd Moellmann <gerd@gnu.org>
7074
7075 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
7076 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
7077
7078 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
7079 prototype.
7080
7081 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
7082 in call to Fsingle_key_description.
7083
7084 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
7085 Callers changed.
7086
7087 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
7088
7089 * window.c (display_buffer_reuse_frames): New variable.
7090 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
7091 frames displaying BUFFER.
7092 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
7093
7094 2000-08-01 Miles Bader <miles@gnu.org>
7095
7096 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
7097 when to constrain NEW_POS (they were pretty screwed up before).
7098
7099 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
7100
7101 * msdos.c (run_msdos_command): Save and restore the master
7102 environment, for the case that child_setup signals an error.
7103 When mirroring slashes in DOS shell commands, don't fail when
7104 argv[2] has embedded blanks.
7105 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
7106 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
7107 (dos_ttraw): Call mouse_setup_buttons.
7108
7109 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
7110 using alloca; free it after run_msdos_command returns.
7111
7112 2000-07-27 Dave Love <fx@gnu.org>
7113
7114 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
7115 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
7116
7117 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
7118
7119 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
7120
7121 * editfns.c (lisp_time_argument): Fix last change.
7122
7123 2000-07-27 Gerd Moellmann <gerd@gnu.org>
7124
7125 * fns.c (Fdelete): Make it work on vectors and strings in addition
7126 to lists.
7127
7128 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
7129 (syms_of_fns): Initialize new variables.
7130 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
7131 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
7132 weakness, with t meaning the same as `key-and-value'.
7133
7134 2000-07-27 Kenichi Handa <handa@etl.go.jp>
7135
7136 * coding.h (struct coding_system): Member safe_charset deleted.
7137
7138 * coding.c (Qsafe_charsets): This variable deleted.
7139 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
7140 New variables.
7141 (coding_safe_chars): New function.
7142 (CODING_SAFE_CHAR_P): New macro.
7143 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
7144 checking safe_charsets member of the coding system. Caller changed.
7145 (detect_coding_iso2022): New local variable safe_chars.
7146 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
7147 safe_charsets member of the coding system.
7148 (decode_coding_iso2022): New local variable safe_chars.
7149 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
7150 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
7151 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
7152 (ENCODE_UNSAFE_CHARACTER): New macro.
7153 (encode_coding_iso2022): New local variable safe_chars. Check
7154 unsafe chars.
7155 (setup_coding_system): Delete the code to initialize
7156 coding->safe_charses
7157 (intersection, find_safe_codings): New functions.
7158 (Ffind_coding_systems_region_internal): New function.
7159 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
7160 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
7161 variable and initialize it.
7162
7163 * fns.c (char_table_ref_and_index): New function.
7164
7165 * lisp.h (char_table_ref_and_index): Add prototype.
7166
7167 2000-07-26 Sam Steingold <sds@gnu.org>
7168
7169 * editfns.c (lisp_time_argument): Added third argument `usec'.
7170 (Ffloat_time): New built-in Lisp function.
7171
7172 2000-07-26 Gerd Moellmann <gerd@gnu.org>
7173
7174 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
7175 for the character code.
7176
7177 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
7178 GNU/Linux.
7179
7180 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
7181 if called for a popup menu.
7182 (xmenu_show): Store help string in widget values.
7183
7184 2000-07-26 Dave Love <fx@gnu.org>
7185
7186 * syswait.h: Move some definitions.
7187 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
7188 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
7189 perspicuous definitions.
7190 (WTERMSIG): Fix bit pattern used.
7191
7192 2000-07-26 Kenichi Handa <handa@etl.go.jp>
7193
7194 * print.c (print_object): If vector printing is truncated, print
7195 "..." to indicate it as well as the case of list printing.
7196
7197 2000-07-25 Gerd Moellmann <gerd@gnu.org>
7198
7199 * xdisp.c (next_element_from_display_vector): Improve comments.
7200
7201 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
7202 for the character code, and the rest for the face id as in 20.x.
7203 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
7204
7205 * window.c (window_display_table): Cleaned up.
7206
7207 * syntax.c (Fforward_word): Add last arg nil in call of
7208 Fconstrain_to_field.
7209
7210 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
7211
7212 * fileio.c (Frename_file) [DOS_NT]: If the file names are
7213 identical but for the letter-case, don't call
7214 barf_or_query_if_file_exists.
7215
7216 2000-07-25 Miles Bader <miles@gnu.org>
7217
7218 * editfns.c (find_field): Honor special `boundary' fields.
7219 (Qboundary): New variables.
7220 (syms_of_editfns): Initialize Qboundary.
7221 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
7222 Use scan_buffer instead of find_before_next_newline, because it
7223 allows us to detect the boundary case where there's a newline at
7224 the search limit.
7225 * lisp.h (Fconstrain_to_field): Update external declaration.
7226
7227 2000-07-24 Gerd Moellmann <gerd@gnu.org>
7228
7229 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
7230 if that is nil.
7231
7232 2000-07-24 Dave Love <fx@gnu.org>
7233
7234 * s/sunos4-0.h, s/sol2.h:
7235 (LIBS_TERMCAP): Move from m/sparc.h.
7236
7237 * m/sparc.h (TERMINFO): Moved to system files (probably only
7238 relevant for sunos4 judging by its vintage).
7239 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
7240 __arch64__.
7241
7242 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
7243
7244 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
7245 name to single_keymap_panes.
7246
7247 2000-07-24 Andreas Schwab <schwab@suse.de>
7248
7249 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
7250
7251 2000-07-24 Gerd Moellmann <gerd@gnu.org>
7252
7253 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
7254 parameters instead of using int parameters. Expect FN to accept
7255 EMACS_INT parameters.
7256 (display_echo_area, resize_echo_area_axactly, current_message)
7257 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
7258 with new argument list.
7259 (resize_mini_window_1): New callback function.
7260 (current_message_1, truncate_message_1, set_message_1): Change
7261 parameter lists to the new format expected by with_echo_area_buffer.
7262
7263 2000-07-24 Kenichi Handa <handa@etl.go.jp>
7264
7265 * fontset.c (fontset_ref): Remove INLINE declaration.
7266 (fontset_ref_via_base): Likewise.
7267 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
7268 to downcase.
7269
7270 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
7271
7272 * msdos.c (IT_note_mouse_highlight): Process overlays in the
7273 correct order of priority. If help echo was found in an overlay,
7274 use that overlay as the object in which the help echo was found.
7275
7276 2000-07-22 Miles Bader <miles@gnu.org>
7277
7278 * textprop.c (Fprevious_single_char_property_change): The initial
7279 property value should be from the position preceding POSITION, not
7280 following it.
7281
7282 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
7283
7284 * coding.c (syms_of_coding): Doc fix for
7285 inhibit-iso-escape-detection.
7286
7287 2000-07-21 Gerd Moellmann <gerd@gnu.org>
7288
7289 * xterm.c (note_mouse_highlight): Process overlays in the right
7290 order of priority.
7291
7292 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
7293
7294 * xterm.c (note_mouse_highlight): If help-echo was found in an
7295 overlay, use that overlay as the object in which the help was found.
7296
7297 * window.c (foreach_window_1): Fix typo reversing an if-condition.
7298
7299 * window.c (foreach_window): Instead of a fake variable argument
7300 list, take one USER_DATA argument.
7301 (foreach_window_1): Likewise, and call callback functions with two
7302 args, the window and USER_DATA.
7303 (struct check_window_data): New struct.
7304 (check_window_containing): Use it.
7305 (window_from_coordinates): Set up a struct check_window_data for
7306 foreach_window.
7307 (add_window_to_list, freeze_window_start): Change parameters
7308 according to new calling convention.
7309
7310 * window.h (foreach_window): Change prototype.
7311
7312 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
7313
7314 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
7315
7316 * xmenu.c (menu_help_callback): Call show_help_echo with
7317 additional arguments OBJECT and POS.
7318
7319 2000-07-21 Kenichi Handa <handa@etl.go.jp>
7320
7321 * data.c (Faset): Allow storing any multibyte character in a
7322 string. Convert unibyte string to multibyte if necessary.
7323
7324 * xfns.c (x_encode_text): New function.
7325 (x_set_name): Use x_encode_text.
7326 (x_set_title): Likewise.
7327
7328 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
7329
7330 * xterm.h (x_encode_text): Add prototype.
7331
7332 2000-07-20 Dave Love <fx@gnu.org>
7333
7334 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
7335 xfree, not free.
7336
7337 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
7338
7339 * msdos.c (help_echo_window): New variable.
7340 (syms_of_msdos): Initialize and staticpro it.
7341 (IT_note_mode_line_highlight): Set help_echo_window.
7342 (IT_note_mouse_highlight): Ditto.
7343 (dos_rawgetc): Store help_echo_window in the second event produced
7344 for HELP_EVENTs.
7345
7346 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
7347 Record the object that generated the help echo and the position of
7348 that object in help_echo_object and help_echo_pos. Record that
7349 some glyphs in a row are displayed in mouse-face.
7350 (IT_update_begin): Don't clear mouse highlight unless one of the
7351 enabled glyph rows is marked as being displayed in mouse-face.
7352 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
7353 and position recorded in help_echo_object and help_echo_pos to the
7354 event queue.
7355 (IT_menu_display): Accept a new argument PN: the pane number of
7356 the current menu pane. Record the pane number and the item
7357 number of the item which has associated help string.
7358 (XMenuActivate): Update the prototype for help_callback in
7359 function declaration. Call IT_menu_display with the current menu
7360 pane number as an additional argument. Call help_callback with
7361 two additional arguments: the pane number and the item number of
7362 the menu item associated with the help text.
7363 (help_echo_object, help_echo_pos): New variables.
7364 (syms_of_msdos): Initialize them and staticpro help_echo_object.
7365
7366 * msdos.h (XMenuActivate): Update prototype.
7367
7368 2000-07-19 Gerd Moellmann <gerd@gnu.org>
7369
7370 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
7371 Add some more prototypes.
7372
7373 * xterm.c, xterm.h: Add some more prototypes.
7374
7375 * lisp.h (Fnext_single_char_property_change): Add prototype.
7376
7377 * dispnew.c (direct_output_for_insert): Remove confusing
7378 outer local variable mouse_face_overwritten_p.
7379 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
7380
7381 * alloc.c (allocate_string_data): Don't copy old string contents.
7382
7383 2000-07-19 Kenichi Handa <handa@etl.go.jp>
7384
7385 * coding.c (code_convert_region): Delete text properties before
7386 shrinking the conversion region.
7387
7388 2000-07-18 Gerd Moellmann <gerd@gnu.org>
7389
7390 * dispnew.c (update_text_area): Write the whole row if it
7391 has mouse-face in it.
7392
7393 * xfaces.c (face-alternative-font-family-alist): Remove
7394 DEFVAR_LISP; staticpro instead.
7395
7396 * xmenu.c (menu_help_callback): Call show_help_echo with
7397 new arguments.
7398
7399 * keyboard.c (show_help_echo): Add parameter WINDOW.
7400 (read_char): Call show_help_echo with window extracted from Lisp
7401 help event.
7402 (gen_help_event): Add parameter WINDOW.
7403
7404 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
7405
7406 * xterm.c (help_echo_window): New variable.
7407 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7408 (XTread_socket): Pass help_echo_window to gen_help_event.
7409 (syms_of_xterm): Initialize and staticpro help_echo_window.
7410
7411 2000-07-18 Dave Love <fx@gnu.org>
7412
7413 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
7414
7415 2000-07-18 Gerd Moellmann <gerd@gnu.org>
7416
7417 * alloc.c (allocate_string_data): If string had already data
7418 assigned, copy old contents to new string data.
7419
7420 * coding.c (syms_of_coding): Fix typo in spelling of variable
7421 `inhibit-iso-escape-detection'.
7422
7423 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
7424
7425 * Makefile.in: Add dependencies on dispextern.h.
7426 (alloca.o): Don't define malloc and define EMACS_FREE instead of
7427 `free'; both can conflict with system header files.
7428
7429 2000-07-18 Kenichi Handa <handa@etl.go.jp>
7430
7431 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
7432 undefined.
7433
7434 2000-07-18 Dave Love <fx@gnu.org>
7435
7436 * window.c (Fwindow_list): Declare arg `window'.
7437
7438 2000-07-18 Kenichi Handa <handa@etl.go.jp>
7439
7440 * coding.c (setup_coding_system): Don't override the explicitly
7441 specified designations.
7442
7443 2000-07-15 Miles Bader <miles@gnu.org>
7444
7445 * editfns.c (char_property_eq, char_property_stickiness): Renamed
7446 from `text_property_eq' and `text_property_stickiness', respectively.
7447 (find_field, Fconstrain_to_field, char_property_eq)
7448 (char_property_stickiness): Changed to call char-property functions
7449 instead of text-property-only ones.
7450
7451 * textprop.c (Fnext_single_char_property_change): Made a subr (was
7452 `next_single_char_property_change'). Do more error checking, and
7453 cleanup limit behavior.
7454 (Fprevious_single_char_property_change): New function.
7455 (syms_of_textprop): Initialize new subrs.
7456
7457 * xdisp.c (display_prop_end, invisible_text_between_p):
7458 Call Fnext_single_char_property_change instead of
7459 next_single_char_property_change.
7460
7461 2000-07-15 Jason Rumney <jasonr@gnu.org>
7462
7463 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
7464 after menu is finished with.
7465 (add_menu_item): Only consider wv->title as a menu title.
7466 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
7467
7468 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
7469 null title.
7470 (FONT_REGEXP): Remove unused macro, and its sub-components.
7471 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
7472
7473 * w32term.c (help_echo_object, help_echo_pos): New variables.
7474 (note_mode_line_highlight): Store additional information about the
7475 help-echo in help_echo_object and help_echo_pos. Check both
7476 `local-map' and `keymap' properties for changing the cursor
7477 (note_mouse_highlight): Store additional information about the
7478 help-echo in help_echo_object and help_echo_pos.
7479 (note_tool_bar_highlight): Set help_echo_object to nil and
7480 help_echo_pos to -1.
7481 (w32_read_socket): Use gen_help_event instead of filling
7482 input_events manually.
7483 (syms_of_w32term): Staticpro help_echo_object.
7484 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
7485 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
7486 (x_clear_mouse_face): New function.
7487 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
7488 (x_update_window_begin): No need to turn off the mouse
7489 highlight here.
7490 (show_mouse_face): Set the mouse_face_p flag of glyph rows
7491 depending on whether they contain glyphs highlighted in mouse-face.
7492 (x_fill_stretch_glyph_string): Consume runs of stretch
7493 glyphs instead of a single one.
7494 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7495 with new argument list.
7496 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7497 (x_append_glyph, x_append_composite_glyph)
7498 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7499 changes in struct glyph starting 1999-12-27. See comments for
7500 xterm.c on 2000-07-05.
7501
7502 2000-07-14 Sam Steingold <sds@gnu.org>
7503
7504 * xfaces.c (realize_x_face): Fix the last patch:
7505 check `default_face' before dereferencing.
7506
7507 2000-07-14 Dave Love <fx@gnu.org>
7508
7509 * syntax.c (back_comment): Add null default in switch (for pcc).
7510
7511 2000-07-14 Kenichi Handa <handa@etl.go.jp>
7512
7513 * xfaces.c (realize_x_face): Make fontset using the base of the
7514 default_face's fontset, not using the default fontset.
7515
7516 * coding.c (inhibit_iso_escape_detection): New variable.
7517 (syms_of_coding): Make it a Lisp variable.
7518 (detect_coding_iso2022): If inhibit_iso_escape_detection is
7519 nonzero, ignore ISO2022's escape sequence.
7520
7521 2000-07-14 Gerd Moellmann <gerd@gnu.org>
7522
7523 * alloca.c (malloc) [emacs]: Define as xmalloc.
7524
7525 * xfns.c (Fx_show_tip): If frame parameters contain a position,
7526 use that instead of the mouse position. Add parameters DX and DY.
7527
7528 * dispextern.h (Fx_show_tip): Adjust number of parameters
7529 in prototype.
7530
7531 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
7532 if HELP is a function, call it with OBJECT and POS as parameters
7533 to get the help to display.
7534 (gen_help_event, kbd_buffer_store_help_event): New functions.
7535 (kbd_buffer_get_event): Construct the Lisp help-event differently.
7536 (read_char): Call show_help_echo with new parameters.
7537
7538 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
7539 Add prototypes.
7540
7541 * xterm.c (help_echo_object, help_echo_pos): New variables.
7542 (note_mode_line_highlight): Store additional information about the
7543 help-echo in help_echo_object and help_echo_pos. Check both
7544 `local-map' and `keymap' properties for changing the cursor
7545 (note_mouse_highlight): Store additional information about the
7546 help-echo in help_echo_object and help_echo_pos.
7547 (note_tool_bar_highlight): Set help_echo_object to nil and
7548 help_echo_pos to -1.
7549 (XTread_socket): Use gen_help_event instead of filling
7550 input_events manually.
7551 (syms_of_xterm): Staticpro help_echo_object.
7552
7553 * xmenu.c (menu_highlight_callback): Use
7554 kbd_buffer_store_help_event instead of setting up and input_event
7555 structure manually.
7556
7557 * xdisp.c (eval_form): GCPRO argument sexpr.
7558 (call_function): New function.
7559 (handle_single_display_prop): Use call_function and FUNCTIONP
7560 instead of checking whether if font_height is a symbol and
7561 using eval_form.
7562
7563 * eval.c (internal_condition_case_2): New function.
7564
7565 * lisp.h (FUNCTIONP): New macro.
7566 (internal_condition_case_2, call_function): Add prototypes.
7567
7568 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
7569 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
7570 Always set `arg' member of input_events.
7571 (construct_menu_click): Unused function removed.
7572
7573 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
7574
7575 * w32term.c (construct_mouse_click, construct_mouse_wheel)
7576 (construct_drag_n_drop, x_scroll_bar_handle_click)
7577 (w32_read_socket): Always set `arg' member of input_events.
7578
7579 * keyboard.c (show_help_echo): Use eval_form. Add comment.
7580
7581 * lisp.h (eval_form): Add prototype.
7582
7583 * xdisp.c (eval_form): Make it externally visible.
7584
7585 2000-07-13 Gerd Moellmann <gerd@gnu.org>
7586
7587 * xterm.c (x_handle_tool_bar_click): Store the frame in the
7588 frame_or_window slot of TOOL_BAR_EVENT input events instead of
7589 consing. For prefix events, store the frame in the `arg' slot of
7590 the event, otherwise store the key there.
7591 (XTread_socket): Instead of consing, use the frame_or_window slot
7592 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
7593
7594 * xmenu.c (menu_highlight_callback): Store help string in the
7595 `arg' member of the input event; don't cons.
7596 (menubar_selection_callback): Use the `arg' slot of input events
7597 to queue additional information, instead of consing.
7598
7599 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
7600
7601 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
7602 TOOL_BAR_EVENTs.
7603 (w32_read_socket): Adapt to changes in HELP_EVENTs.
7604
7605 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
7606 input events to queue additional information, instead of consing.
7607
7608 * keyboard.c (kbd_buffer_gcpro): Renamed from
7609 kbd_buffer_frame_or_window. Now used for all Lisp objects
7610 referenced from the input queue.
7611 (kbd_buffer_store_event): Always use structure assignment for
7612 copying input events. Record all Lisp objects referenced from
7613 events in kbd_buffer_gcpro.
7614 (kbd_buffer_get_event): Construct Lisp `help-echo' events
7615 differently from input events. Test for prefix menu_bar_events
7616 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
7617 event in kbd_buffer_gcpro to nil.
7618 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
7619 frame_or_window is equal to its arg member as prefix events.
7620 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
7621 used by an input event to nil.
7622 (init_keyboard): Use two times the size of the input queue
7623 for kbd_buffer_gcpro.
7624 (syms_of_keyboard): Likewise.
7625
7626 * emacs.c (handle_USR2_signal, handle_USR1_signal):
7627 Use USER_SIGNAL_EVENT.
7628
7629 * termhooks.h (struct input_event): Add member `arg'.
7630 (MENU_BAR_EVENT): Renamed from menu_bar_event.
7631 (USER_SIGNAL_EVENT): Renamed from user_signal.
7632
7633 * xfaces.c (ASET): Remove definition.
7634
7635 * lisp.h (AREF, ASET, ASIZE): New macros.
7636
7637 * fontset.c (AREF, ASIZE): Remove definitions.
7638
7639 * fns.c (AREF): Remove definition.
7640
7641 * composite.c (AREF): Remove definition.
7642
7643 2000-07-12 Gerd Moellmann <gerd@gnu.org>
7644
7645 * dispnew.c (redraw_overlapped_rows): Add missing local.
7646 (scrolling_window): Remove debug code.
7647
7648 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
7649 Before scrolling, turn off a mouse-highlight in the window
7650 being scrolled.
7651
7652 * xterm.c (x_update_window_end): Add parameter
7653 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
7654 redisplay in XTframe_up_to_date.
7655 (x_clear_mouse_face): New function.
7656 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
7657
7658 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
7659 current glyph row.
7660 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
7661 it when any row is written to that contains glyphs highlighted in
7662 mouse-face.
7663 (update_window): Call the window update end hook with new
7664 parameter MOUSE_FACE_OVERWRITTEN_P.
7665 (direct_output_for_insert): Give up if row contains mouse-face.
7666
7667 * dispextern.h (struct redisplay_interface): Add parameter
7668 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
7669 (clear_mouse_face): New function pointer member.
7670
7671 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
7672
7673 * syntax.c (back_comment): Use one switch rather than a few `if's.
7674 Obey open_paren_in_column_0_is_defun_start.
7675 When reverting to the `slow' method, try to nicely handle the case
7676 of nested comments by checking that the comment-starter we found
7677 does indeed match the comment-ender.
7678 (scan_sexps_forward, scan_sexps_forward):
7679 Ignore excessive opening parenthesis rather than throwing an error.
7680
7681 2000-07-11 Gerd Moellmann <gerd@gnu.org>
7682
7683 * doc.c (Fsubstitute_command_keys): Handle case that a GC
7684 in Fwhere_is_internal or get_keymap_1 relocates string contents.
7685
7686 * dispnew.c (direct_output_forward_char): Give up if currently
7687 displaying a message instead of the minibuffer contents.
7688
7689 * xterm.c (x_update_window_begin): No need to turn off the mouse
7690 highlight here.
7691 (show_mouse_face): Set the mouse_face_p flag of glyph rows
7692 depending on whether they contain glyphs highlighted in mouse-face.
7693
7694 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
7695 compare the mouse_face_p flags of both rows.
7696
7697 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
7698
7699 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
7700
7701 * keyboard.c (show_help_echo): Accept additional parameter
7702 ok_to_overwrite_keystroke_echo.
7703 (read_char): Call show_help_echo with a zero
7704 ok_to_overwrite_keystroke_echo argument.
7705 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
7706 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
7707 ok_to_overwrite_keystroke_echo argument.
7708 * w32menu.c (w32_menu_display_help): Call show_help_echo with
7709 non-zero ok_to_overwrite_keystroke_echo argument.
7710
7711 2000-07-10 Gerd Moellmann <gerd@gnu.org>
7712
7713 * xdisp.c (try_window_id): If changes are all below what is
7714 displayed in the window, and point is in the window, we still
7715 might have to find point on the display.
7716
7717 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
7718 glyphs instead of a single one.
7719 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7720 with new argument list.
7721 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7722
7723 * keymap.c (get_keymap_1): Add comment that this function can GC.
7724 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
7725 comment that functions can GC.
7726 (Fset_keymap_parent): GCPRO arg KEYMAP.
7727
7728 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
7729
7730 * msdos.c (XMenuActivate): After exiting the menu, restore the
7731 echo area message and erase it.
7732
7733 2000-07-10 Kenichi Handa <handa@etl.go.jp>
7734
7735 * fontset.c (Ffontset_info): Make the return value more compatible
7736 with that of Emacs 20.
7737
7738 2000-07-07 Gerd Moellmann <gerd@gnu.org>
7739
7740 * eval.c (Fsignal): Handle case that backtrace_list is null.
7741
7742 2000-07-07 Kenichi Handa <handa@etl.go.jp>
7743
7744 * ccl.c (Fccl_execute): Typo fixed.
7745
7746 2000-07-06 Gerd Moellmann <gerd@gnu.org>
7747
7748 * window.c (window_loop): Add missing gcpro1 local variable.
7749
7750 * window.c (Fwindow_list): Reverse list at the end.
7751 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
7752 means allow windows on OWINDOW's frame, only.
7753 (window_loop): Simplified; use Fwindow_list.
7754
7755 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
7756
7757 2000-07-05 Gerd Moellmann <gerd@gnu.org>
7758
7759 * xterm.c (XTread_socket): Increment handling_signal at the start,
7760 decrement it at the end.
7761
7762 * eval.c (handling_signal): New variable.
7763 (Fsignal): Abort if handling_signal is non-zero.
7764
7765 * lisp.h (handling_signal): External declaration.
7766
7767 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
7768
7769 2000-07-05 Ken Raeburn <raeburn@gnu.org>
7770
7771 Sound support for NetBSD through "Linux emulation" support:
7772 * config.in (HAVE_SOUNDCARD_H): Undef.
7773 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
7774 * Makefile.in (LIBSOUND): New variable.
7775 (LIBES): Include it.
7776 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
7777 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
7778 (vox_open): Use DEFAULT_SOUND_DEVICE.
7779 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
7780
7781 2000-07-05 Gerd Moellmann <gerd@gnu.org>
7782
7783 * print.c (print_error_message): If Vsignaling_function is set,
7784 show it in *Messages*.
7785
7786 * lisp.h (Vsignaling_function): External declaration.
7787
7788 * eval.c (Vsignaling_function): New variable.
7789 (Fsignal): Compute it.
7790 (syms_of_eval): Staticpro it.
7791
7792 2000-07-05 Dave Love <fx@gnu.org>
7793
7794 * syswait.h: Use the autoconf recommended approach. Old code
7795 #if'd out in case we need to revert.
7796
7797 * config.in (HAVE_SYS_WAIT_H): Added.
7798
7799 2000-07-05 Andrew Innes <andrewi@gnu.org>
7800
7801 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
7802 when non-NULL instead of __morecore, to take account of buffer
7803 memory. This also solves a problem with spurious memory warnings
7804 on Windows.
7805
7806 * ralloc.c: Make real_morecore non-static.
7807
7808 * eval.c (internal_condition_case): Comment out abort if
7809 interrupt_input_blocked is not zero.
7810
7811 * makefile.nt: Add support for `bootstrap' and related targets.
7812 Include minimal debug info in emacs.exe in release build.
7813 Remove all dependencies on lisp.h, and fixup some others.
7814
7815 * w32.c (init_environment): Install code from 20.7 for providing
7816 default values for environment variables, based on the
7817 executable's own location.
7818 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
7819 (sys_socket): Install socket inheritance bug fix from 20.7.
7820
7821 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
7822 here via blockinput.h).
7823
7824 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
7825
7826 * w32menu.c (w32_menu_display_help):
7827 * xmenu.c (menu_help_callback): Use show_help_echo.
7828
7829 * keyboard.h (show_help_echo): Declare.
7830
7831 * keyboard.c (show_help_echo): New function, extracted from read_char.
7832 Feval its `msg' argument if it's a cons cell.
7833 (read_char): Use it.
7834 (follow_key): Pass `autoload' to get_keyelt.
7835
7836 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
7837 (note_tool_bar_highlight, XTread_socket):
7838 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
7839 (dos_rawgetc):
7840 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
7841 (note_tool_bar_highlight, w32_read_socket):
7842 Do not gratuitously ignore non-string `help-echo' properties.
7843
7844 2000-07-05 Gerd Moellmann <gerd@gnu.org>
7845
7846 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
7847
7848 * window.c (delete_all_subwindows): Reset Vwindow_list.
7849
7850 * xterm.c (x_append_glyph, x_append_composite_glyph)
7851 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7852 changes in struct glyph starting 1999-12-27. Some bit-fields of
7853 struct glyph were not set, which made glyphs unequal when compared
7854 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
7855 effects were the result. This also depended on the contents of
7856 memory returned by xmalloc. If flickering happens again, activate
7857 the code in clear_glyph_row that's in #if 0. If the flickering is
7858 gone with that, chances are that it is caused by something similar.
7859
7860 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
7861
7862 * dispextern.h: Add some comments.
7863
7864 * window.c (add_window_to_list): Add parameter LIST.
7865 (window_list): Order list so that, for each frame, windows are
7866 in canonical order, and so that frames appear in the list in
7867 the order given by Vframe_list.
7868 (next_window): Reverse the handling of NEXT_P.
7869
7870 2000-07-04 Gerd Moellmann <gerd@gnu.org>
7871
7872 * window.c (Vwindow_list): New variable.
7873 (make_window, delete_window): Set Vwindow_list to nil.
7874 (check_window_containing): New function.
7875 (window_from_coordinates): Rewritten.
7876 (add_window_to_list, window_list, candidate_window_p)
7877 (decode_next_window_args, next_window): New functions.
7878 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
7879 (Fwindow_list): New function.
7880 (Fother_window): Cleaned up.
7881 (foreach_window): Add a longer "variable argument list". Let
7882 callback function return 0 to indicate that cycling over windows
7883 should stop.
7884 (foreach_window_1): Likewise.
7885 (freeze_window_start): Return int.
7886 (init_window): New function.
7887 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
7888
7889 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
7890 input_event with bzero.
7891 (main): Call init_window.
7892
7893 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
7894 a menu filter.
7895
7896 2000-07-04 Kenichi Handa <handa@etl.go.jp>
7897
7898 * composite.h (make_composition_value_copy): Extern it.
7899
7900 * composite.c (make_composition_value_copy): New function.
7901
7902 * editfns.c (Fformat): While copying text properties, make each
7903 composition property value a copy.
7904
7905 * fns.c (concat): While copying text properties, make each
7906 composition property value a copy.
7907
7908 2000-07-03 Gerd Moellmann <gerd@gnu.org>
7909
7910 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
7911
7912 * fns.c (sweep_weak_table): Mark only objects that are not
7913 marked already.
7914
7915 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
7916 include those frames as candidates which have their focus
7917 redirected to the minibuffer frame.
7918
7919 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
7920
7921 * fns.c (Fputhash): Return `value' rather than nil.
7922
7923 2000-06-30 Gerd Moellmann <gerd@gnu.org>
7924
7925 * frame.c (next_frame): Don't check focus redirection in case
7926 MINIBUF is a window. Doing so excludes frames using MINIBUF
7927 unless their focus is redirected, which contradicts the
7928 specification of next-frame, and leads to infinite loops in
7929 certain situations when cycling through windows with next-window.
7930
7931 2000-06-30 Kenichi Handa <handa@etl.go.jp>
7932
7933 * coding.c (code_convert_region): Even if the length of text is
7934 zero, try to convert it if coding->type is coding_type_ccl.
7935 (decode_coding_string, encode_coding_string): Likewise.
7936
7937 2000-06-28 Gerd Moellmann <gerd@gnu.org>
7938
7939 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
7940 the display if windows_or_buffers_changed.
7941
7942 * dispnew.c (struct row_entry): New structure.
7943 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
7944 (row_table_size, old_lines, new_lines, old_lines_size)
7945 (new_lines_size, run_pool, runs_size, runs): New variables.
7946 (add_row_entry): New function.
7947 (scrolling_window): Use data structures allocated with xmalloc and
7948 held in global variables, instead of allocating them with alloca and
7949 holding them in local variables. Use a larger hash table whose
7950 size depends on glyph matrix sizes. Don't use bzero to clear the
7951 hash table; instead, clear used slots only.
7952
7953 * fns.c (next_almost_prime): Make it externally visible.
7954
7955 * lisp.h (next_almost_prime): Add prototype.
7956
7957 * s/isc4-0.h (sigunblock): Define.
7958
7959 * s/sco5.h (sigunblock): Define.
7960
7961 2000-06-27 Dave Love <fx@gnu.org>
7962
7963 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
7964 (moved to osf5-0.h).
7965 [!NOT_C_CODE]: Protect string.h stuff.
7966
7967 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
7968 (sys_siglist, NSIG): Definitions moved here from osf1.h.
7969
7970 2000-06-27 Gerd Moellmann <gerd@gnu.org>
7971
7972 * xdisp.c (resize_mini_window): Subtract the extra line spacing
7973 below the last line from the needed window height.
7974
7975 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
7976
7977 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
7978 (Fwidget_get): Use it.
7979 (syms_of_fns): Defsubr it.
7980
7981 2000-06-26 Gerd Moellmann <gerd@gnu.org>
7982
7983 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
7984 display info for XIM.
7985 (xim_open_dpy): Likewise.
7986 (xim_close_dpy): Don't free the display info's XIM.
7987
7988 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
7989
7990 * config.in (USE_XIM): New define.
7991
7992 * keymap.c (get_keyelt): For menu-items containing a `:filter
7993 FILTER', apply FILTER to the menu-item's definition to get the
7994 real definition to use.
7995
7996 * lisp.h (QCfilter): External declaration.
7997
7998 * xfns.c (Fimage_size): New function.
7999 (syms_of_xfns): Defsubr it.
8000
8001 2000-06-26 Andreas Schwab <schwab@suse.de>
8002
8003 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
8004 Fstring_as_unibyte.
8005
8006 2000-06-25 Dave Love <fx@gnu.org>
8007
8008 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
8009
8010 * Makefile.in (blockinput.h): Depend on atimer.h.
8011 (atimer.h): Depend on systime.h.
8012
8013 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
8014
8015 * atimer.h: Protect against multiple inclusion. Include systime.h.
8016
8017 * lisp.h (swap_in_global_binding): Declare.
8018
8019 2000-06-24 Ken Raeburn <raeburn@gnu.org>
8020
8021 * process.c (Fopen_network_stream): Turn off atimers for duration
8022 of call to connect. (Patch from Gerd.)
8023
8024 2000-06-23 Dave Love <fx@gnu.org>
8025
8026 * ralloc.c: Maybe include unistd.h
8027
8028 * emacs.c (setgrp): Undefine before defining.
8029 (malloc_warning, set_time_zone_rule, index): Prototype.
8030
8031 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
8032 HAVE_STRUCT_TIMEZONE.
8033
8034 * s/osf1.h: Move string.h hack here from alpha.h and make it
8035 conditional.
8036 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
8037 _XOPEN_SOURCE.
8038 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
8039 (SOCKLEN_TYPE): Don't define.
8040
8041 * m/alpha.h: Remove string.h hack.
8042
8043 * s/osf5-0.h: New file.
8044
8045 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
8046 include time.h, done by systime.h.
8047 [__FreeBSD__]: Remove redundant includes.
8048
8049 * callproc.c (setpgrp): Undefine before defining.
8050 (delete_temp_file): Return Qnil to avoid warning.
8051
8052 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
8053
8054 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
8055 HAVE_X_WINDOWS.
8056
8057 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
8058
8059 * composite.h (compose_text): Declare.
8060
8061 * xterm.c: Don't include sys/types.h unconditionally. Don't
8062 protect its inclusion with !USG (following xmenu.c).
8063
8064 2000-06-23 Gerd Moellmann <gerd@gnu.org>
8065
8066 * xfns.c (x_create_tip_frame): Initialize frame's colors like
8067 in x_create_frame.
8068
8069 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
8070
8071 * coding.c (decode_eol_post_ccl): Special handling for undecided
8072 and inconsistent EOL types.
8073
8074 2000-06-22 Gerd Moellmann <gerd@gnu.org>
8075
8076 * xrdb.c (x_load_resources): Add default resource for scroll bar's
8077 trough color and main window's background color.
8078
8079 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
8080
8081 * xterm.h (Xt_app_con): External declaration.
8082
8083 * widget.c (EmacsFrameRealize): Fix typo.
8084
8085 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
8086
8087 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
8088 (handle_invisible_prop): Record the start of invisible text in
8089 it->add_overlay_start.
8090 (struct overlay_entry): Add member `overlay'.
8091 (handle_overlay_change): Simplify.
8092 (next_overlay_string): After having processed overlay strings at the
8093 end of the buffer, record that fact in
8094 it->overlay_strings_at_end_processed_p.
8095 (compare_overlay_entries): If before- and after-strings come
8096 from the same overlay, let before-strings come first.
8097 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
8098 (load_overlay_strings): Take it->add_overlay_start into account
8099 when adding overlay strings.
8100
8101 * dispextern.h (struct it): Add member add_overlay_start.
8102
8103 2000-06-22 Dave Love <fx@gnu.org>
8104
8105 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
8106
8107 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
8108
8109 2000-06-22 Kenichi Handa <handa@etl.go.jp>
8110
8111 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
8112 is greater than 0.
8113
8114 2000-06-21 Dave Love <fx@gnu.org>
8115
8116 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
8117
8118 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
8119
8120 * syntax.c (back_comment): Simplify string-parity counting (with
8121 the added benefit of handling multiple string-styles as long as
8122 they are not intertwined).
8123 Jump to the slow code as soon as a comment starter is found in
8124 a "string_lossage" position. Fixes the case: " /* " /* " */.
8125
8126 2000-06-21 Dave Love <fx@gnu.org>
8127
8128 * Makefile.in: Use GETLOADAVG_LIBS.
8129
8130 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
8131 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
8132
8133 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8134
8135 * syntax.c (describe_syntax): Recognize the `n'estable bit.
8136 (Fforward_comment, scan_lists):
8137 Check the comstyle of single-char comment-starters.
8138 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
8139 we're just at the beginning of the comment (f.ex with (*) ... (*)).
8140 Check the comstyle of single-char comment-starters.
8141 Clarify control-flow around the Scomment case.
8142
8143 2000-06-20 Dave Love <fx@gnu.org>
8144
8145 * fns.c (make_hash_table, maybe_resize_hash_table):
8146 Cast arg of next_almost_prime.
8147
8148 * tparam.c [emacs]: Include lisp.h.
8149
8150 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
8151 and unistd.h.
8152
8153 2000-06-20 Gerd Moellmann <gerd@gnu.org>
8154
8155 * keyboard.c (adjust_point_for_property): Check if display
8156 property should be treated as intangible by looking at its value.
8157
8158 * xdisp.c (single_display_prop_intangible_p)
8159 (display_prop_intangible_p): New functions.
8160
8161 * dispextern.h (display_prop_intangible_p): Add prototype.
8162
8163 * xdisp.c (dump_glyph_row): Show type of glyph->object.
8164
8165 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
8166 argument to sigprocmask.
8167
8168 * s/sco5.h (sigblock): Redefined to pass a pointer as second
8169 argument to sigprocmask.
8170
8171 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
8172 sigprocmask_set, and pass a pointer to it to sigprocmask.
8173
8174 * sysdep.c (sigprocmask_set): New variable.
8175
8176 * fileio.c (make_temp_name): Don't use `%s' in string passed to
8177 report_file_error.
8178
8179 2000-06-20 Sam Steingold <sds@gnu.org>
8180
8181 * xrdb.c: Don't declare xmalloc, xrealloc.
8182
8183 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8184
8185 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
8186 (re_comp): Cast gettext return value to avoid complaints when
8187 !HAVE_LIBINTL.
8188
8189 2000-06-20 Dave Love <fx@gnu.org>
8190
8191 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
8192
8193 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
8194
8195 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
8196
8197 * m/alpha.h: Don't declare xmalloc, xrealloc.
8198
8199 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
8200
8201 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
8202
8203 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
8204
8205 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
8206 HAVE_GETWD.
8207
8208 * keyboard.h (poll_for_input_1): Declare.
8209
8210 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
8211
8212 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
8213
8214 * doprnt.c: Don't declare xmalloc, xrealloc.
8215
8216 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
8217 (getenv, ctime, getwd): Removed.
8218 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
8219
8220 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
8221 x_set_tool_bar_lines.
8222
8223 * config.in: Add HAVE_GETWD. Move some definitions above
8224 machine/system includes.
8225
8226 2000-06-20 Kenichi Handa <handa@etl.go.jp>
8227
8228 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
8229
8230 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
8231 contain information about ENCODING.
8232
8233 * fontset.c (FONTSET_ASCII): Use the first element of char table
8234 for an ASCII font, not defalt slot.
8235 (fontset_ref_via_base): If FONTSET doesn't contain information for
8236 C, try the default fontset.
8237 (make_fontset): Don't copy the default fontset.
8238 (fontset_font_pattern): Likewise.
8239 (accumulate_font_info): If ELT is nil, use the corresponding
8240 element in the default fontset.
8241
8242 2000-06-19 Dave Love <fx@gnu.org>
8243
8244 * syntax.c (Fparse_partial_sexp): Doc fix.
8245
8246 * regex.h: Test PROTOTYPES as well as __STDC__.
8247
8248 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
8249 errno, strerror. Put text after #endif in comment.
8250
8251 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
8252
8253 * xterm.c (x_frame_of_widget): Likewise.
8254
8255 2000-06-19 Gerd Moellmann <gerd@gnu.org>
8256
8257 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
8258 to Vfundamental_mode_abbrev_table.
8259
8260 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
8261 bogus objects are marked. This slows down GC by ~80 percent, but
8262 it might be worth trying when debugging GC-related problems.
8263 This feature requires conservative stack marking to be enabled.
8264
8265 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
8266 returns XLookupChars, reset `modifiers' to zero.
8267
8268 2000-06-19 Dave Love <fx@gnu.org>
8269
8270 * mktime.c: Unprotoized.
8271
8272 2000-06-19 Richard Stallman <rms@gnu.org>
8273
8274 * data.c (set_internal): If variable is frame-local,
8275 store the new value immediately into the frame parameter alist.
8276
8277 2000-06-19 Ken Raeburn <raeburn@gnu.org>
8278
8279 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
8280 in the custom handler pointer.
8281
8282 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
8283 value, or checks for CHAR_META can fail when Lisp_Object is a
8284 union type.
8285 * keymap.c (get_keyelt): Likewise.
8286
8287 2000-06-19 Kenichi Handa <handa@etl.go.jp>
8288
8289 * ccl.h (struct ccl_program): New member eol_type.
8290 (struct ccl_spec): New member cr_carryover.
8291
8292 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
8293 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
8294
8295 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
8296 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
8297 (decode_eol_post_ccl): New function.
8298 (decode_coding): Don't detect EOL format here for CCL based coding
8299 systems.
8300 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
8301 decode_eol_post_ccl after running the CCL program.
8302 (code_convert_region): Don't detect EOL format here for CCL based
8303 coding systems.
8304 (decode_coding_string): Likewise.
8305
8306 2000-06-18 Ken Raeburn <raeburn@gnu.org>
8307
8308 * charset.c (update_charset_table): Use XINT on "iso_final_char"
8309 when treating it as an integer.
8310
8311 * coding.h (encode_coding_string): Declare.
8312
8313 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
8314 it as an integer.
8315
8316 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
8317 "xkeymap" to avoid shadowing the "enum map_type" value that needs
8318 to be passed to get_local_map.
8319
8320 * sound.c (Fplay_sound): Don't call make_number on
8321 Frun_hook_with_args count argument.
8322
8323 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
8324 for lisp objects in X event structure data field, when lisp
8325 objects are represented with unions.
8326 (x_scroll_bar_to_input_event): Ditto.
8327
8328 2000-06-16 Ken Raeburn <raeburn@gnu.org>
8329
8330 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
8331 termination of string. Fix sense of test whether
8332 Vline_number_display_limit is an integer.
8333
8334 2000-06-16 Gerd Moellmann <gerd@gnu.org>
8335
8336 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
8337 only if HAVE_X_WINDOWS.
8338
8339 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
8340 of titles.
8341
8342 * dispnew.c (update_frame_1): Handle case that cursor vpos is
8343 out of bounds.
8344
8345 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
8346
8347 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
8348 of its headers.
8349
8350 2000-06-15 Kenichi Handa <handa@etl.go.jp>
8351
8352 * coding.c (decode_coding_emacs_mule): Always set src_base at the
8353 start of the while loop.
8354
8355 2000-06-15 Gerd Moellmann <gerd@gnu.org>
8356
8357 * atimer.c (alarm_signal_handler): Add forward declaration.
8358
8359 * data.c (set_internal): Remove debug code.
8360
8361 2000-06-14 Gerd Moellmann <gerd@gnu.org>
8362
8363 * Makefile.in (bootstrap-temacs): Add `-I../src'.
8364
8365 * unexec.c (toplevel) [COFF]: Include coff.h.
8366
8367 * s/lynxos.h: New file.
8368
8369 * keymap.c (Fsingle_key_description): Enclose function key and
8370 event symbol names in angle brackets.
8371
8372 * xdisp.c (setup_echo_area_for_printing): Call
8373 message_log_maybe_newline if message_buf_print is not set.
8374
8375 * print.c (printchar, strout): Don't check message_buf_print
8376 before calling setup_echo_area_for_printing because that
8377 function does something useful even when message_buf_print is
8378 already set.
8379
8380 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
8381 New variables.
8382 (ensure_echo_area_buffers): Initialize echo buffer's
8383 truncate lines setting to nil.
8384 (with_echo_area_buffer): Don't set the echo buffer's truncate
8385 lines setting here.
8386 (set_message_1): Set it here instead, based on the value
8387 of message_truncate_lines.
8388 (resize_mini_window): Handle case that lines are truncated.
8389 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
8390 DEFVAR_BOOL message-truncate-lines.
8391
8392 * keyboard.c (read_char): Bind message-truncate-lines to t
8393 while displaying a help-echo.
8394
8395 * lisp.h (Qmessage_truncate_lines): External declaration.
8396
8397 2000-06-13 Gerd Moellmann <gerd@gnu.org>
8398
8399 * xdisp.c (Vline_number_display_limit): Renamed from
8400 line_number_display_limit.
8401 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
8402 Extend documentation string. Initialize
8403 Vline_number_display_limit to nil meaning no limit.
8404 (decode_mode_spec): Use Vline_number_display_limit with its new
8405 meaning.
8406
8407 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
8408
8409 2000-06-13 Richard Stallman <rms@gnu.org>
8410
8411 * frame.c (Fmodify_frame_parameters): Doc fix.
8412
8413 * xfns.c (x_set_frame_parameters): Comment fix.
8414
8415 * frame.c (store_frame_param): Call swap_in_global_binding if the
8416 variable's current binding was chosen based on this frame.
8417
8418 * data.c (swap_in_global_binding): New function.
8419
8420 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
8421
8422 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
8423 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
8424
8425 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
8426
8427 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
8428
8429 2000-06-12 Jason Rumney <jasonr@gnu.org>
8430
8431 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
8432
8433 * w32.h (EMACS_W32_H): Renamed from _NT_H_
8434
8435 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
8436
8437 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
8438
8439 2000-06-12 Gerd Moellmann <gerd@gnu.org>
8440
8441 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
8442 (syms_of_xfaces): Defsubr Sdump_colors.
8443 (x_free_colors): Don't treat b&w specially on default visual.
8444 (x_free_dpy_colors): New function.
8445 (free_face_colors): Don't check visual class; it's done
8446 in x_free_colors.
8447
8448 * xterm.c (x_frame_of_widget): New function.
8449 (x_alloc_nearest_color_for_widget): Use it.
8450 (x_copy_dpy_color): New function.
8451 (x_destroy_window): Free various colors.
8452
8453 2000-06-12 Kenichi Handa <handa@etl.go.jp>
8454
8455 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
8456
8457 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
8458
8459 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
8460
8461 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
8462
8463 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
8464
8465 2000-06-11 Dave Love <fx@gnu.org>
8466
8467 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
8468
8469 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
8470
8471 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
8472
8473 2000-06-11 Gerd Moellmann <gerd@gnu.org>
8474
8475 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
8476 to `XEvent *'.
8477
8478 2000-06-10 Kenichi Handa <handa@etl.go.jp>
8479
8480 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
8481 (regex_compile): Fix the code for handling the case of single byte
8482 char and multibyte char being mixed in a range within [...].
8483
8484 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
8485 and dst_multibyte members of coding.
8486
8487 * charset.c (update_charset_table): Update the table
8488 bytes_by_char_head.
8489 (init_charset_once): Initialize elements of bytes_by_char_head to
8490 1 except for leading codes for private charases.
8491
8492 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
8493 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
8494
8495 2000-06-09 Ken Raeburn <raeburn@gnu.org>
8496
8497 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
8498 access the data it doesn't point to.
8499
8500 2000-06-08 Gerd Moellmann <gerd@gnu.org>
8501
8502 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
8503 will be translated to a switch-frame event when reading the
8504 event queue. This is necessary because Emacs otherwise won't
8505 perform a switch-frame to a new frame until some other event, for
8506 example a keystroke event, forces it to do so. This has various
8507 effects, one visible being that the cursor of a frame created with
8508 C-x 5 2 or switched to with a window manager key binding like
8509 A-TAB stays hollow because selected_window isn't on the newly
8510 focused frame until the switch-frame is performed.
8511
8512 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
8513 generating a switch-frame event if necessary.
8514
8515 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
8516
8517 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
8518 it's an integer.
8519
8520 2000-06-08 Kenichi Handa <handa@etl.go.jp>
8521
8522 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
8523
8524 2000-06-07 Gerd Moellmann <gerd@gnu.org>
8525
8526 * window.c (displayed_window_lines): Take empty lines at
8527 the bottom of a window into account.
8528
8529 * window.c (displayed_window_lines): New function.
8530 (Fmove_to_window_line): Use displayed_window_lines to determine
8531 the number of lines to move, instead of using the window's height.
8532
8533 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
8534 to stop reading, even if the form read sets point to a different
8535 value when evaluated.
8536
8537 * xdisp.c (display_line): Fix code deciding in which line to
8538 put the cursor.
8539
8540 2000-06-07 Kenichi Handa <handa@etl.go.jp>
8541
8542 * fileio.c (e_write): Free composition data if stored in
8543 coding->cmp_data.
8544
8545 2000-06-06 Gerd Moellmann <gerd@gnu.org>
8546
8547 * xdisp.c (display_line): Set row's and iterator's
8548 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
8549 Set cursor even if row ends in the middle of a character.
8550 (dump_glyph_row): Print values of new flags.
8551 (redisplay_window) <cursor movement in unchanged window>: When
8552 point has been moved forward, and PT is at the end of the cursor
8553 row, don't place the cursor in the next row if the cursor row ends
8554 in the middle of a character or at ZV.
8555
8556 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
8557 (struct glyph_row): Add starts_in_middle_of_char_p and
8558 ends_in_middle_of_char_p.
8559 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
8560 ends_in_middle_of_char_p flag.
8561 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
8562
8563 * term.c (append_glyph): Revert change of 2000-06-06.
8564
8565 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
8566 padding glyph not fitting on line as whole character not
8567 fitting on line.
8568
8569 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
8570 this isn't true for images with `:ascent 100'.
8571
8572 2000-06-06 Kenichi Handa <handa@etl.go.jp>
8573
8574 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
8575 as modified if it is originally unmodified.
8576
8577 * term.c (encode_terminal_code): Change the way to check if
8578 terminal coding does any conversion.
8579 (append_glyph): Set glyph->pixel_width correctly.
8580
8581 * xdisp.c (display_line): While checking line continuation, pay
8582 attention to a padding glyph.
8583
8584 2000-06-05 Gerd Moellmann <gerd@gnu.org>
8585
8586 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
8587
8588 2000-06-05 Dave Love <fx@gnu.org>
8589
8590 * xdisp.c: Include fontset.h.
8591
8592 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
8593
8594 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8595
8596 * dispnew.c: Conditionally include term.h.
8597
8598 * coding.h: Declare code_convert_string_norecord.
8599
8600 * frame.h (struct frame): Use volatile unconditionally.
8601
8602 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
8603
8604 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
8605
8606 * systime.h: Protect against multiple inclusion.
8607 (timezone) [USG5_4]: Define as time_t.
8608
8609 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
8610 (Foptimize_char_table, make_temp_name): Declare.
8611
8612 * Makefile.in (xdisp.o): Depend on fontset.h.
8613
8614 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8615
8616 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
8617 (Foptimize_char_table, make_temp_name): Declare.
8618
8619 * s/irix4-0.h:
8620 * s/irix5-0.h:
8621 * s/netbsd.h: Don't define autoconfiscated MATHERR.
8622
8623 2000-06-02 Dave Love <fx@gnu.org>
8624
8625 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
8626
8627 2000-06-02 Gerd Moellmann <gerd@gnu.org>
8628
8629 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
8630 result face, set flags in that face indicating that colors may not
8631 be freed.
8632
8633 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
8634 glyph, use the ASCII NUL character to determine the face.
8635
8636 2000-06-02 Dave Love <fx@gnu.org>
8637
8638 * sysdep.c: Conditionally include stdlib.h, unistd.h.
8639 (VFORK_RETURN_TYPE): Remove.
8640
8641 * config.in: Add NO_MATHERR.
8642
8643 2000-06-01 Dave Love <fx@gnu.org>
8644
8645 * cmds.c (internal_self_insert): Don't check
8646 Vbefore_change_function, Vafter_change_function.
8647
8648 * insdel.c (signal_before_change, signal_after_change): Likewise.
8649
8650 * buffer.c (Vbefore_change_function, Vafter_change_function):
8651 Variables and their initializations deleted.
8652
8653 * callint.c (Fcall_interactively): Doc fix.
8654
8655 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
8656
8657 2000-05-31 Dave Love <fx@gnu.org>
8658
8659 * textprop.c: Revert last change -- duplicated.
8660
8661 2000-05-31 Gerd Moellmann <gerd@gnu.org>
8662
8663 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
8664 in #if 0.
8665
8666 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
8667
8668 2000-05-31 Jason Rumney <jasonr@gnu.org>
8669
8670 * search.c (Fre_search_forward, Fre_search_backward)
8671 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
8672
8673 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
8674
8675 2000-05-30 Jason Rumney <jasonr@gnu.org>
8676
8677 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
8678 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
8679
8680 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
8681
8682 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
8683 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
8684 expand a nil default_filename.
8685
8686 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
8687 pointer to glyph_to_pixel_coords, not a frame.
8688
8689 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
8690 coding.h to dependencies.
8691
8692 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
8693
8694 * w32console.c (glyph_to_pixel_coords): Change first parameter to
8695 window pointer to be consistent with w32term.c and xterm.c.
8696
8697 * w32fns.c: Format and doc changes to bring closer to xfns.c.
8698 (VIETNAMESE_CHARSET): Define if not defined in system headers.
8699 (Qline_spacing, Qcenter): New variables.
8700 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
8701 (x_set_line_spacing): New function.
8702 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
8703 (x_specified_cursor_type): New function.
8704 (x_set_cursor_type): Use it.
8705 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
8706 and icon strings.
8707 (validate_x_resource_name, x_get_resource_string): Measure lengths
8708 of external strings in bytes.
8709 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
8710 GetTextExtentPoint32 with NULL title.
8711 (Fx_create_frame): Initialize Qline_spacing.
8712 (w32_load_system_font): Initialize font->double_byte_p.
8713 (x_to_w32_charset): Use Vw32_charset_info_alist.
8714 (Image, busy cursor, tooltip functions): Merged changes from
8715 xfns.c. Not yet functional on Windows.
8716
8717 * w32gui.h (W32FontStruct): Add double_byte_p member.
8718
8719 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
8720 (emacs_button_translation): Use it.
8721 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
8722 in `mask' to be set.
8723
8724 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
8725 menu strings.
8726
8727 * w32term.c: Format and doc changes to bring closer to xterm.c.
8728 (w32_char_font_type): New enum.
8729 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
8730 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
8731 (w32_encode_char): New function.
8732 (x_encode_char): Removed.
8733 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
8734 x_encode_char and w32_font_is_double_byte.
8735 (x_produce_image_glyph): Use image_ascent.
8736 (x_produce_glyphs): Use new version of w32_per_char_metric and
8737 handle NULL return value. Allow extra line spacing.
8738 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
8739 (w32_get_glyph_overhangs): Remove unicode_p param. Use
8740 w32_font_type member of glyph instead.
8741 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
8742 (fast_find_position): Make sure not to consider rows not visible
8743 in the window.
8744 (w32_read_socket) [WM_MENUSELECT]: Cannot call
8745 w32_menu_display_help with input blocked, as it can abort.
8746 (x_display_and_set_cursor): Choose cursor depending
8747 on buffer-local value of cursor_type.
8748 (x_draw_bar_cursor): Add parameter WIDTH.
8749
8750 * w32term.h (CP_DEFAULT): Define.
8751 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
8752
8753 2000-05-30 Gerd Moellmann <gerd@gnu.org>
8754
8755 * search.c (Fre_search_forward, Fre_search_backward)
8756 (Fposix_search_backward, Fposix_search_forward): Doc fix.
8757
8758 2000-05-30 Kenichi Handa <handa@etl.go.jp>
8759
8760 * coding.c (detect_coding_iso2022): Fix code for checking
8761 CODING_CATEGORY_MASK_ISO_8_2.
8762
8763 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
8764
8765 * regex.c (PREFETCH_NOLIMIT): New function.
8766 (re_match_2_internal): Use it and adjust the end_match_2 logic.
8767
8768 2000-05-29 Gerd Moellmann <gerd@gnu.org>
8769
8770 * syntax.c (find_defun_start): Move test for
8771 open_paren_in_column_0_is_defun_start outside of the loop.
8772
8773 * xdisp.c (redisplay_window): Really switch buffers when
8774 displaying mode lines, and temporarily set selected_frame to the
8775 frame of the window that's redisplayed.
8776
8777 * xfaces.c (free_realized_faces): Block/unblock input.
8778 (free_realized_multibyte_face): Ditto.
8779
8780 2000-05-29 Dave Love <fx@gnu.org>
8781
8782 * textprop.c (Qkeymap): New variable.
8783 (syms_of_textprop): Intern it.
8784
8785 * keymap.c: Include intervals.h.
8786 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
8787
8788 * Makefile.in (keymap.o): Depend on intervals.h.
8789
8790 * keyboard.c (menu_bar_items, tool_bar_items)
8791 (Fexecute_extended_command): Deal with `keymap' property.
8792 (read_key_sequence): Track map from `keymap' property as well as
8793 `local_map'.
8794
8795 * intervals.c (get_local_map): Extra arg to allow looking for
8796 `keymap' too.
8797
8798 * intervals.h (map_property): New enum.
8799 (get_local_map): Extra arg using it.
8800 (Qkeymap): Declare.
8801
8802 * lisp.h (get_local_map): Don't declare here.
8803
8804 2000-05-29 Kenichi Handa <handa@etl.go.jp>
8805
8806 * Makefile.in (callproc.o): Depend on composite.h.
8807
8808 * callproc.c: Include composite.h.
8809 (Fcall_process): Handle composition correctly.
8810
8811 * coding.h (coding_allocate_composition_data): Extern it.
8812 (coding_restore_composition): Likewise.
8813
8814 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
8815 yet allocated, finish decoding with result
8816 CODING_FINISH_INSUFFICIENT_CMP.
8817 (coding_allocate_composition_data): Make it non-static.
8818 (coding_restore_composition): Likewise.
8819
8820 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
8821
8822 * charset.c (syms_of_charset): Revert last change.
8823
8824 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8825
8826 * term.c (produce_glyphs): Treat characters from the eight-bit-*
8827 charsets as unibyte, with 1-column screen width. Sent by Kenichi
8828 Handa.
8829
8830 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8831
8832 * charset.c (syms_of_charset): Set width of character sets
8833 eight-bit-control and eight-bit-graphic to 1 column.
8834
8835 2000-05-26 Gerd Moellmann <gerd@gnu.org>
8836
8837 * config.in (HAVE_SPEED_T): New define.
8838
8839 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
8840 `extern speed_t'.
8841
8842 2000-05-26 Dave Love <fx@gnu.org>
8843
8844 * coding.c (shrink_decoding_region): Initialize eol_conversion.
8845
8846 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
8847 (Fsubr_arity): New function.
8848 (syms_of_data): Install them.
8849
8850 2000-05-26 Kenichi Handa <handa@etl.go.jp>
8851
8852 * charset.c (init_charset_once): Set the table bytes_by_char_head
8853 correctly.
8854
8855 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
8856 the default fontset to what Emacs uses by default.
8857 (check_registry_encoding): This function deleted.
8858 (Fset_fontset_font): Remove the adhoc condition for the default
8859 fontset. Allow cons in FONTNAME.
8860
8861 * fns.c (map_char_table): Ignore char-table entries for
8862 charsets eight-bit-control and eight-bit-graphic.
8863
8864 2000-05-25 Ken Raeburn <raeburn@gnu.org>
8865
8866 * emacs.c (main): Initialize keyboard syms before initializing
8867 window code, so face names are available.
8868
8869 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
8870
8871 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
8872 of an anchor at the beginning of a shy-group.
8873
8874 2000-05-25 Gerd Moellmann <gerd@gnu.org>
8875
8876 * xdisp.c (handle_invisible_prop): Don't try to skip over
8877 invisible text if end of text is already reached.
8878
8879 2000-05-25 Dave Love <fx@gnu.org>
8880
8881 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
8882
8883 * coding.c (encode_eol): Add null statement after label.
8884
8885 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
8886
8887 * w16select.c (Fw16_set_clipboard_data): Fix the change from
8888 2000-05-20.
8889
8890 2000-05-25 Kenichi Handa <handa@etl.go.jp>
8891
8892 * ccl.c (ccl_driver): Fix previous change.
8893
8894 2000-05-25 Kenichi Handa <handa@etl.go.jp>
8895
8896 * coding.c (run_pre_post_conversion_on_str): Set point to the
8897 beginning of buffer before calling coding->post_read_conversion.
8898 (decode_coding_string): Give correct args to
8899 run_pre_post_conversion_on_str.
8900 (encode_coding_string): Likewise.
8901
8902 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
8903 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
8904 eight-bit-graphic correctly.
8905
8906 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
8907
8908 * fileio.c (Finsert_file_contents): Even if a file is not found,
8909 execute codes for setting up coding system. Call
8910 after-insert-file-functions unconditionally.
8911
8912 2000-05-24 Gerd Moellmann <gerd@gnu.org>
8913
8914 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
8915 BSD_PGRPS are not defined.
8916
8917 2000-05-24 Kenichi Handa <handa@etl.go.jp>
8918
8919 * charset.c (update_charset_table): Accept nil in LONG_NAME and
8920 DESCRIPTION.
8921 (syms_of_charset): Avoid building same strings.
8922
8923 2000-05-23 Gerd Moellmann <gerd@gnu.org>
8924
8925 * lread.c (Fload): Add a comment about the meaning of
8926 Vuser_init_file being t.
8927
8928 * puresize.h (BASE_PURESIZE): Increase to 675000.
8929
8930 * s/gnu-linux.h (setpgrp): Don't define it here because this
8931 prevents compilation on GNU/Linux systems with glib 2.2.
8932
8933 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
8934 as setpgid.
8935
8936 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
8937
8938 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
8939 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
8940 version.
8941 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
8942
8943 2000-05-23 Kenichi Handa <handa@etl.go.jp>
8944
8945 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8946
8947 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
8948
8949 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
8950
8951 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
8952
8953 2000-05-22 Kenichi Handa <handa@etl.go.jp>
8954
8955 * keyboard.c (read_char): Allow character codes 128..255 to be
8956 handled by input-method-function.
8957
8958 * insdel.c (adjust_markers_for_replace): Fix previous change.
8959 (adjust_after_replace): If PREV_TEXT is nil, call
8960 adjust_markers_for_insert, not adjust_markers_for_replace.
8961
8962 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
8963
8964 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
8965 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
8966 [HAVE_GRANDPT]: Define.
8967 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
8968
8969 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
8970 like SYSV_PTYS.
8971
8972 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
8973
8974 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
8975
8976 2000-05-20 Kenichi Handa <handa@etl.go.jp>
8977
8978 The following changes are to handle 8-bit characters in a
8979 multibyte buffer/string without facing with byte combining
8980 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
8981 eight-bit-graphic (for 0xA0..0xFF) are introduced.
8982
8983 * Makefile.in (fns.o): Depend on charset.h.
8984
8985 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
8986 convert it to unibyte.
8987 (make_string): Use parse_str_as_multibyte, not chars_in_text.
8988
8989 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
8990 apparent char boundary.
8991 (Fset_buffer_multibyte): Convert 8-bit characters in the range
8992 0x80..0x9F to/from multibyte form.
8993
8994 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
8995 to unibyte.
8996
8997 * callproc.c (Fcall_process): Always encode an argument string if
8998 it is multibyte. Setup src_multibyte and dst_multibyte members of
8999 process_coding properly.
9000
9001 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
9002 SPLIT_NON_ASCII_CHAR.
9003
9004 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
9005 as is.
9006 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
9007
9008 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
9009 (SPLIT_CHARACTER_SEQ): This macro deleted.
9010 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
9011 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
9012 and eight-bit-graphic.
9013 (char_to_string): Likewise. Signal an error for too large
9014 character code.
9015 (char_printable_p): Return 0 for 8-bit characters.
9016 (update_charset_table): Update iso_charset_table only when a final
9017 character is non-negative.
9018 (find_charset_in_text): Renamed from find_charset_in_str.
9019 Arguments and return value changed. Callers changed.
9020 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
9021 be -1 if CHARSET is used only internally.
9022 (Fmake_char_internal): Handle new charsets; eight-bit-control and
9023 eight-bit-graphic.
9024 (Fcharset_after): Simplified.
9025 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
9026 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
9027 (multibyte_chars_in_text): Simplified by assuming there's no
9028 invalid multibyte sequence.
9029 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
9030 (str_as_unibyte): New functions.
9031 (Fstring): Simpified by assuming that byte combining never happens.
9032 (init_charset_once): Initialization for
9033 LEADING_CODE_8_BIT_CONTROL.
9034 (syms_of_charset): Intern and staticpro Qeight_bit_control and
9035 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
9036 eight-bit-control and eight-bit-graphic.
9037
9038 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
9039 (CHARSET_8_BIT_GRAPHIC): New macros.
9040 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
9041 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
9042 (CHARSET_REVERSE_CHARSET): Likewise.
9043 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
9044 eight-bit-graphic.
9045 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
9046 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
9047 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
9048 encounter an invalid multibyte sequence.
9049 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
9050 sequence is always valid.
9051 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
9052 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
9053 (CHAR_STRING): For 8-bit characters, call char_to_string.
9054 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
9055 multibyte sequence is always valid.
9056 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
9057 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
9058 (str_as_unibyte): Extern them.
9059 (BCOPY_SHORT): Fix a bug.
9060 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
9061 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
9062 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
9063 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
9064
9065 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
9066 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
9067 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
9068 (EMIT_BYTES): New macros.
9069 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
9070 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
9071 macros deleted.
9072 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
9073 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
9074 check the validity of multibyte sequence.
9075 (decode_coding_emacs_mule): New function.
9076 (encode_coding_emacs_mule): New macro.
9077 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
9078 the source.
9079 (DECODE_ISO_CHARACTER): Just return a character code.
9080 (DECODE_COMPOSITION_START): Set coding->result instead of result.
9081 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
9082 EMIT_CHAR to produced decoded characters. Exit the loop only by
9083 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
9084 block here.
9085 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
9086 only position codes for an invalid character.
9087 (encode_designation_at_bol): Return new destination pointer. 5th
9088 arg DSTP is changed to DST.
9089 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
9090 from the source by ONE_MORE_CHAR. Don't handle the case of last
9091 block here.
9092 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
9093 macros deleted.
9094 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
9095 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
9096 TWO_MORE_BYTES to fetch a byte from the source.
9097 (encode_eol): Pay attention to coding->src_multibyte.
9098 (detect_coding, detect_eol): Preserve members src_multibyte and
9099 dst_multibyte.
9100 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
9101 (encoding_buffer_size): Set magnification to 3 for all coding
9102 systems that require encoding.
9103 (ccl_coding_driver): For decoding, be sure that the result is
9104 valid multibyte sequence.
9105 (decode_coding): Initialize coding->errors and coding->result.
9106 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
9107 and raw-text, always call decode_eol. Handle the case of last
9108 block here. If not coding->dst_multibyte, convert the resulting
9109 sequence to unibyte.
9110 (encode_coding): Initialize coding->errors and coding->result.
9111 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
9112 and raw-text, always call encode_eol. Handle the case of last
9113 block here.
9114 (shrink_decoding_region, shrink_encoding_region): Detect cases
9115 that we can't skip data more rigidly.
9116 (code_convert_region): Setup src_multibyte and dst_multibyte
9117 members of coding. For decoding, if the buffer is multibyte,
9118 convert the source sequence to unibyte in advance. For encoding,
9119 if the buffer is multibyte, convert the resulting sequence to
9120 multibyte afterward.
9121 (run_pre_post_conversion_on_str): New function.
9122 (code_convert_string): Deleted and divided into the following two.
9123 (decode_coding_string, encode_coding_string): New functions.
9124 (code_convert_string1, code_convert_string_norecord): Call one of
9125 above.
9126 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
9127 MAKE_NON_ASCII_CHAR.
9128 (Fset_terminal_coding_system_internal)
9129 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
9130 and dst_multibyte members.
9131 (init_coding_once): Initialize iso_code_class with new enum
9132 ISO_control_0 and ISO_control_1.
9133
9134 * coding.h (enum iso_code_class_type): Member ISO_control_code is
9135 devided into ISO_control_0 and ISO_control_1.
9136 (struct coding_system): New members src_multibyte, dst_multibyte,
9137 errors, and result. Delete member fake_multibyte.
9138 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
9139 nonzero.
9140 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
9141 nonzero.
9142
9143 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
9144 (Faset): Likewise.
9145
9146 * editfns.c (Fformat): Be sure to convert 8-bit characters to
9147 multibyte form.
9148 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
9149 combining occurs.
9150 (Ftranspose_region): Delete codes for handling byte combining.
9151
9152 * fileio.c (Finsert_file_contents): Setup src_multibyte and
9153 dst_multibyte members of coding. On handling REPLACE on unibyte
9154 buffer, convert the result of decode_coding to unibyte. On
9155 inserting into a mutibyte buffer, always call code_convert_region.
9156 (e_write): Setup coding->src_multibyte according to the
9157 multibyteness of the source (buffer or string).
9158
9159 * fns.c (concat): Handle 8-bit characters correctly.
9160 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
9161 unibyte in the result.
9162 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
9163 valid multibyte form in the result.
9164 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
9165 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
9166 return -1, signal an error.
9167 (base64_encode_1): New arg MULTIBYTE. Get each character by
9168 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
9169 character is found, return -1.
9170 (Fbase64_decode_region): Delete codes for handling byte-combining.
9171 Treat each decoded byte as a unibyte character.
9172 (Fbase64_decode_string): Return unibyte string.
9173 (Fcompare_strings, concat, string_byte_to_char): Use
9174 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
9175 FETCH_STRING_CHAR_ADVANCE.
9176 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9177 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
9178
9179 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
9180 SPLIT_NON_ASCII_CHAR.
9181 (fontset_ref_via_base, fontset_set): Likewise
9182
9183 * insdel.c (adjust_markers_for_record_delete): Deleted.
9184 (adjust_markers_for_insert): Argument changed. Caller changed.
9185 (adjust_markers_for_replace): Likewise.
9186 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
9187 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
9188 (copy_text): Delete unused local varialbe c_save. For converting
9189 to multibyte, be sure to make all 8-bit characters in valid
9190 multibyte form.
9191 (count_size_as_multibyte): Handle 8-bit characters correctly.
9192 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
9193 (adjust_after_replace, replace_range, del_range_2)
9194 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
9195 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
9196 (adjust_after_replace, replace_range, del_range_2) Delete codes for
9197 handling byte combining.
9198 (adjust_before_replace): Deleted.
9199
9200 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
9201 SPLIT_NON_ASCII_CHAR.
9202 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
9203 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9204 (Fkey_description): Likewise.
9205
9206 * lread.c (read1): On reading multibyte string, be sure to make
9207 all 8-bit chararacters in valid multibyte form.
9208 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9209
9210 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
9211 unconditionally.
9212
9213 * process.c (Fstart_process): GCPRO current_dir before calling
9214 Ffind_operation_coding_system. Encode arguments here.
9215 (create_process): Don't encode arguments here. Setup
9216 src_multibyte and dst_multibyte members of struct coding.
9217 (read_process_output): Setup src_multibyte and dst_multibyte
9218 members of struct coding. If the output is to multibyte buffer,
9219 always decode the output of the process. Adjust the
9220 representation of 8-bit characters to the multibyteness of the output.
9221 (send_process): Setup coding->src_multibyte according to the
9222 multibyteness of the source.
9223
9224 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9225 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
9226 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
9227
9228 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
9229
9230 * w16select.c (Fw16_set_clipboard_data): Setup members
9231 src_multibyte and dst_multibyte of coding. Adjusted for the
9232 change for find_charset_in_str.
9233 (Fw16_get_clipboard_data): Likewise.
9234
9235 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
9236 dst_multibyte of coding.
9237 (x_to_w32_font): Likewise.
9238
9239 * w32select.c (Fw32_set_clipboard_data): Setup members
9240 src_multibyte and dst_multibyte of coding. Adjusted for the
9241 change for find_charset_in_str.
9242 (Fw32_get_clipboard_data): Likewise.
9243
9244 * xdisp.c (get_next_display_element): Handle 8-bit characters
9245 correctly.
9246 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
9247 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
9248
9249 * xselect.c (selection_data_to_lisp_data): Setup members
9250 src_multibyte and dst_multibyte of coding. Adjusted for the
9251 change for find_charset_in_str.
9252 (lisp_data_to_selection_data): Likewise.
9253
9254 2000-05-19 Gerd Moellmann <gerd@gnu.org>
9255
9256 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
9257
9258 * dispextern.h (Vimage_types): Add extern declaration.
9259
9260 * xdisp.c (Vimage_types): Moved here from xfns.c.
9261 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
9262
9263 * xfns.c (Vimages_types): Moved to xdisp.c.
9264 (syms_of_xfns): Move `image-types' to xdisp.c.
9265
9266 * w32fns.c (Vimage_types): Removed.
9267 (syms_of_w32fns): Remove `image-types'.
9268
9269 2000-05-18 Kenichi Handa <handa@etl.go.jp>
9270
9271 * fns.c (map_char_table): Pay attention to character number of
9272 charset. Check the validity of charset at the first level. For
9273 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
9274 the default value.
9275
9276 * fontset.c: Include "buffer.h".
9277 (fs_load_font): If the face has fontset, record the face ID in
9278 that fontset.
9279 (Finternal_char_font): New function.
9280 (accumulate_font_info): New function.
9281 (Ffontset_info): Rewritten for the new fontset implementation.
9282 (syms_of_fontset): Register Vdefault_fontset in the first element
9283 of Vfontset_table. Include Vdefault_fontset in
9284 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
9285 function.
9286
9287 2000-05-16 Dave Love <fx@gnu.org>
9288
9289 * m/iris5d.h: Deleted -- unused.
9290
9291 2000-05-16 Gerd Moellmann <gerd@gnu.org>
9292
9293 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
9294 `invalid' instead of `illegal'.
9295
9296 * indent.c (Fmove_to_column): When ending within a tab, insert
9297 spaces first so that markers at the end of the tab get adjusted.
9298
9299 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
9300 buffer list that wasn't selected in that frame.
9301
9302 * filelock.c (get_boot_time): To obtain an 8 char file name, which
9303 is needed on mescaline, use a 2 char prefix, and call
9304 make_temp_name with second arg non-zero.
9305
9306 * fileio.c (make_temp_name): New function, extracted from
9307 Fmake_temp_name.
9308 (Fmake_temp_name): Use it.
9309
9310 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
9311
9312 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
9313
9314 2000-05-15 Gerd Moellmann <gerd@gnu.org>
9315
9316 * Makefile.in (lisp): Add env.elc.
9317
9318 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
9319
9320 2000-05-12 Gerd Moellmann <gerd@gnu.org>
9321
9322 * search.c (Freplace_match): Handle case of `\N' in the
9323 replacement when there's no group N.
9324
9325 2000-05-11 Gerd Moellmann <gerd@gnu.org>
9326
9327 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
9328 of the message to message_dolog.
9329
9330 * keyboard.c (read_char): Don't clear current message for help
9331 events; let the code handling help events handle this. Change
9332 code detecting help events that should be ignored.
9333
9334 * xdisp.c (handle_single_display_prop): Don't try to set PT if
9335 we're interating over a string.
9336
9337 2000-05-09 Dave Love <fx@gnu.org>
9338
9339 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
9340 that offset before writing. Move gcpro region past call of
9341 Ffile_regular_p.
9342
9343 2000-05-04 Dave Love <fx@gnu.org>
9344
9345 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
9346
9347 2000-05-04 Gerd Moellmann <gerd@gnu.org>
9348
9349 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
9350 of inserted characters when BUF equals the current buffer, and PT
9351 is in front of or equal to FROM.
9352
9353 2000-05-03 Gerd Moellmann <gerd@gnu.org>
9354
9355 * xdisp.c (handle_single_display_prop): If display property value
9356 is invalid, or something not supported on the frame, restore
9357 iterator's position to what it was initially. Make sure to return
9358 0 for invalid and unsupported property values.
9359
9360 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
9361 that x_per_char_metric returns null.
9362
9363 2000-05-02 Gerd Moellmann <gerd@gnu.org>
9364
9365 * xterm.h (struct face): Add forward declaration.
9366 (struct image): Ditto.
9367 (image_ascent): Add prototype.
9368
9369 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
9370 (x_draw_image_relief, x_draw_image_foreground_1): Call function
9371 image_ascent instead of using IMAGE_ASCENT.
9372
9373 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
9374 (IMAGE_ASCENT): Removed.
9375
9376 * xfns.c (Qcenter): New variable.
9377 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
9378 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
9379 (image_ascent): New function.
9380 (lookup_image): Recognize `:ascent center'.
9381 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
9382 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
9383 (xbm_load): Don't set image's ascent here.
9384 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
9385 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
9386 check ascent values here.
9387 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
9388 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
9389 (syms_of_xfns): Initialize Qcenter.
9390
9391 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
9392 to the limits, increase the limits.
9393
9394 2000-05-01 Kenichi Handa <handa@etl.go.jp>
9395
9396 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
9397 Check Vfont_encoding_alist against the full name of the opened font.
9398
9399 2000-04-28 Gerd Moellmann <gerd@gnu.org>
9400
9401 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
9402 taller than the window.
9403
9404 2000-04-28 Kenichi Handa <handa@etl.go.jp>
9405
9406 * xfaces.c (realize_x_face): Fix the argument of the second
9407 xassert. BASE_FACE may not be a face for ASCII.
9408
9409 2000-04-27 Gerd Moellmann <gerd@gnu.org>
9410
9411 * print.c (print_object): Treat print-length < 0 as nil.
9412
9413 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
9414
9415 * s/freebsd.h (TERMCAP_OBJ): Removed.
9416 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
9417
9418 * lread.c (read1): Don't treat period followed by certain
9419 characters as symbol start.
9420
9421 * xfns.c (slurp_file): New function.
9422 (xbm_image_p): Handle case of in-memory XBM files.
9423 (xbm_scan): Rewritten to work on memory buffers instead of files.
9424 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
9425 Work on memory buffers instead of files. If DATA is null test
9426 if buffer looks like an in-memory XBM file.
9427 (xbm_load_image): Renamed from xbm_load_image_file. Work on
9428 memory buffers instead of files.
9429 (xbm_file_p): New function.
9430 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
9431
9432 * lread.c (end_of_file_error): New function.
9433 (read1): Call it instead of signaling `end-of-file' directly.
9434
9435 * print.c (print_error_message): Print data of `end-of-file'
9436 with Fprinc instead of Fprin1.
9437
9438 2000-04-26 Ken Raeburn <raeburn@gnu.org>
9439
9440 * window.c (freeze_window_start): Check that minibuffer scroll
9441 window isn't nil before extracting the window structure pointer
9442 from it.
9443
9444 * undo.c (record_delete): If we hit the end of the undo list, stop
9445 picking elements apart.
9446
9447 2000-04-26 Gerd Moellmann <gerd@gnu.org>
9448
9449 * xdisp.c (display_line): If lines are continued, restore
9450 iterator's ascent/descent information to the values before the
9451 first glyph not fitting on the line.
9452
9453 2000-04-25 Gerd Moellmann <gerd@gnu.org>
9454
9455 * xdisp.c (try_window_id) <all changes above window start>: Adjust
9456 positions in glyph matrix. Don't compute new window end positions.
9457
9458 * dispnew.c (increment_matrix_positions): Renamed from
9459 increment_glyph_matrix_buffer_positions.
9460 (increment_row_positions): Renamed from
9461 increment_glyph_row_buffer_positions.
9462
9463 * dispextern.h: Change names of renamed functions from dispnew.c
9464 in prototypes.
9465
9466 2000-04-24 Gerd Moellmann <gerd@gnu.org>
9467
9468 * fileio.c (Fdo_auto_save): Create directories for auto-save
9469 list file if necessary.
9470
9471 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
9472 from buffer or frame.
9473 (automatic_hscrolling_p): New variable.
9474 (hscroll_windows): Scroll windows horizontally only if automatic
9475 hscrolling is allowed.
9476 (syms_of_xdisp): New variable `automatic-hscrolling'.
9477
9478 * frame.h (struct frame): Add member extra_line_spacing.
9479
9480 * xfns.c (x_set_line_spacing): New function.
9481 (Fx_create_frame): Set line spacing from resources.
9482 (Qline_spacing): New variable.
9483 (syms_of_xfns): Initialize Qline_spacing.
9484
9485 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
9486
9487 * buffer.c (init_buffer_once): Handle extra_line_spacing.
9488 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
9489 (reset_buffer): Don't initialize extra2 and extra3. Initialize
9490 extra_line_spacing from default value.
9491 (init_buffer_once): Initialize default value of extra_line_spacing.
9492
9493 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
9494 and extra3.
9495
9496 * xterm.c (x_produce_glyphs): Remove reference to struct it's
9497 prompt_width. Add extra line spacing.
9498
9499 * term.c (produce_glyphs): Remove reference to struct it's
9500 prompt_width.
9501
9502 * dispextern.h (struct it): Remove member prompt_width, add
9503 extra_line_spacing.
9504
9505 2000-04-22 Gerd Moellmann <gerd@gnu.org>
9506
9507 * dispnew.c (update_frame_line): When writing a whole line, make
9508 sure cursor is in the right row afterwards, otherwise a use of
9509 capability `ch' in cmgoto might leave the cursor in the row below.
9510
9511 2000-04-21 Gerd Moellmann <gerd@gnu.org>
9512
9513 * lisp.h (struct Lisp_Buffer_Cons): Remove.
9514
9515 * keyboard.c (timer_check): Fix typo in comment.
9516
9517 2000-04-21 Kenichi Handa <handa@etl.go.jp>
9518
9519 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
9520 name change: ch -> character.
9521
9522 2000-04-20 Gerd Moellmann <gerd@gnu.org>
9523
9524 * keyboard.c (echo_message_buffer): New variable.
9525 (echo_now): Set echo_message_buffer to the echo area buffer used
9526 to display the echo.
9527 (cancel_echoing): Reset echo_message_buffer to nil.
9528 (read_char): Code rewritten that handles canceling an echo or
9529 echoing a dash, respectively.
9530
9531 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
9532 directory doesn't exist.
9533
9534 2000-04-19 Dave Love <fx@gnu.org>
9535
9536 * fns.c (syms_of_fns): Defsubr mapc.
9537 (concat): Don't allow numeric args.
9538 (Fconcat): Doc change.
9539
9540 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
9541
9542 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
9543 instead define end_match(1|2) more carefully.
9544 Use GET_CHAR_BEFORE_2 for `begline'.
9545
9546 2000-04-19 Gerd Moellmann <gerd@gnu.org>
9547
9548 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
9549 on 64-bit systems where NULL is defined as `0'.
9550
9551 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
9552 the `variable argument list' to make it work on Alpha.
9553
9554 * m/alpha.h (_LP64) [!_LP64]: Define.
9555 (ORDINARY_LINK): Define for NetBSD.
9556
9557 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
9558
9559 2000-04-19 Dave Love <fx@gnu.org>
9560
9561 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
9562 change.
9563
9564 * Makefile.in (LIBS): Don't use.
9565 (GETLOADAVG_OBJ): Define again.
9566 (otherobj): Add GETLOADAVG_OBJ.
9567
9568 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
9569
9570 2000-04-18 Gerd Moellmann <gerd@gnu.org>
9571
9572 * lread.c (read_filtered_event): Cancel and start busy cursor.
9573
9574 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
9575 that the per-character metrics may be null.
9576
9577 2000-04-17 Gerd Moellmann <gerd@gnu.org>
9578
9579 * buffer.c (clone_per_buffer_values): New function.
9580 (Fmake_indirect_buffer): Add optional argument CLONE. Call
9581 clone_per_buffer_values if CLONE is not nil.
9582
9583 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
9584
9585 2000-04-16 Dave Love <fx@gnu.org>
9586
9587 * Makefile.in: Remove obsolete localcpp stuff.
9588 (GETLOADAVG_OBJ): Don't define.
9589 (obj): Move LIBOBJS...
9590 (otherobj): ... to here.
9591 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
9592 whitespace-only lines after the continuation (Irix).
9593
9594 2000-04-14 Gerd Moellmann <gerd@gnu.org>
9595
9596 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
9597
9598 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
9599
9600 2000-04-14 Dave Love <fx@gnu.org>
9601
9602 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
9603 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
9604 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
9605 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
9606 NLIST_STRUCT.
9607
9608 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
9609 autoconfiscated HAVE_GETLOADAVG.
9610
9611 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
9612 BROKEN_MKTIME.
9613
9614 2000-04-14 Gerd Moellmann <gerd@gnu.org>
9615
9616 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
9617 (fill_in_lock_file_name): Avoid existing files that aren't links.
9618
9619 2000-04-14 Dave Love <fx@gnu.org>
9620
9621 * Makefile.in (LIBS, LIBOBJS): New variable.
9622 (INTERVAL_SRC): Convert to make variable.
9623 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
9624 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
9625 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
9626 add LIBOBJS.
9627 (SOME_MACHINE_OBJECTS): Remove interval stuff.
9628 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
9629 (shortlisp): Add facemenu, float-sup, frame.
9630 (SOME_MACHINE_LISP): Remove them from here.
9631 (LIBES): Change unused LDLIBS to autoconf LIBS.
9632
9633 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
9634
9635 2000-04-14 Kenichi Handa <handa@etl.go.jp>
9636
9637 * composite.c (update_compositions): If FROM and TO are not in a
9638 valid range, do nothing.
9639
9640 2000-04-13 Gerd Moellmann <gerd@gnu.org>
9641
9642 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
9643
9644 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
9645
9646 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
9647 as TERMCAP_OBJ.
9648
9649 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
9650
9651 * fileio.c (a_write): Remove redundant semi-colons.
9652 (e_write): Return -1 if failed to write all the data.
9653 This fixes the changes made at 1999-12-15.
9654
9655 2000-04-12 Dave Love <fx@gnu.org>
9656
9657 * fns.c (mapcar1): Test for null vals to support mapc.
9658 (Fmapc): New function.
9659
9660 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
9661
9662 * msdos.c (NUM_MOUSE_BUTTONS): Define.
9663 (IT_frame_up_to_date): Support the buffer local value of
9664 cursor-type, if defined.
9665
9666 2000-04-10 Dave Love <fx@gnu.org>
9667
9668 * editfns.c (preceding-char, following-char): Doc fix.
9669
9670 2000-04-10 Ken Raeburn <raeburn@gnu.org>
9671
9672 * Makefile.in (temacs): Revert 2000-03-12 change.
9673
9674 2000-04-10 Jason Rumney <jasonr@gnu.org>
9675
9676 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
9677
9678 2000-04-10 Gerd Moellmann <gerd@gnu.org>
9679
9680 * xdisp.c (setup_echo_area_for_printing): Choose an echo
9681 area buffer, if it's not set up yet.
9682
9683 * indent.c (compute_motion): Set immediate_quit.
9684
9685 2000-04-09 Gerd Moellmann <gerd@gnu.org>
9686
9687 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
9688 (realize_tty_face): Suppress boldness if colors are the inverse of
9689 the default colors, and tty_suppress_bold_inverse_default_colors_p
9690 is set.
9691 (Ftty_suppress_bold_inverse_default_colors): New function.
9692 (syms_of_xfaces): Defsubr it.
9693
9694 * buffer.c (Frestore_buffer_modified_p): New function.
9695 (syms_of_buffer): Defsubr it.
9696
9697 2000-04-08 Ken Raeburn <raeburn@gnu.org>
9698
9699 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
9700 charset id (int) argument, not a charset (Lisp_Object).
9701
9702 * coding.h (code_convert_string): Declare.
9703 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
9704 object, as the fourth argument to code_convert_string.
9705
9706 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
9707 (Fset_fontset_font): Use EQ to compare lisp objects.
9708
9709 2000-04-05 Ken Raeburn <raeburn@gnu.org>
9710
9711 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
9712 a pointer that looks like a lisp object.
9713 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
9714 zero, instead see whether it's an integer object, since they can't
9715 have intervals.
9716 (GET_INTERVAL_OBJECT): Simply assign to the destination.
9717
9718 * dispnew.c (allocate_matrices_for_frame_redisplay)
9719 (direct_output_forward_char): Use X(U)INT and make_number as needed
9720 to convert between (unsigned) int values and lisp integers.
9721 * keyboard.c (read_key_sequence): Likewise.
9722 * lread.c (substitute_object_recurse): Likewise.
9723 * fns.c (concat, hash_lookup, hash_remove): Likewise.
9724 * minibuf.c (do_completion, Fminibuffer_complete_word)
9725 (Fminibuffer_completion_help): Likewise.
9726 * term.c (produce_special_glyphs): Likewise.
9727
9728 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
9729 * print.c (print_preprocess, print_object): Likewise.
9730
9731 * search.c (compile_pattern): Use NILP when checking for nil.
9732
9733 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
9734 __OPTIMIZE__]: Provide a GNU C macro version that handles
9735 lisp-object unions.
9736 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
9737 field, to better cope with ENABLE_CHECKING and calls that modify a
9738 Lisp_Object using its old value.
9739
9740 2000-04-04 Gerd Moellmann <gerd@gnu.org>
9741
9742 * window.c (compare_window_configurations): Signal an error
9743 if parameters C1 or C2 aren't window configurations.
9744
9745 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
9746 AFTER_POTENTIAL_GC calls around calls to functions that can
9747 signal an error and thus invoke the debugger.
9748
9749 2000-04-03 Gerd Moellmann <gerd@gnu.org>
9750
9751 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
9752 an error if decoding fails.
9753
9754 * keyboard.c (lispy_mouse_names): Variable removed.
9755 (Vlispy_mouse_stem): New variable.
9756 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
9757 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
9758 for any mouse button number. Increase size of mouse_syms and
9759 button_down_location as needed. Call modify_event_symbol with
9760 different arguments.
9761 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
9762 Call modify_event_symbol with different arguments.
9763 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
9764 for any button number. Call modify_event_symbol with different
9765 arguments.
9766 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
9767 Accept a string for NAME_ALIST_OR_STEM.
9768
9769 * lisp.h (larger_vector): Add prototype.
9770
9771 * fns.c (larger_vector): Make externally visible.
9772
9773 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
9774
9775 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
9776
9777 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
9778 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
9779 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
9780 we are between str1 and str2.
9781 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
9782 (PATFETCH): Use `TRANSLATE'.
9783 (PATFETCH_RAW): Fetch multibyte char if applicable.
9784 (PATUNFETCH): Remove.
9785 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
9786 When writing a char, write it directly into the pattern buffer rather
9787 than going needlessly through a temp char-array.
9788 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
9789 multibyte magic and remove the useless `#ifdef emacs'.
9790 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
9791 buffer.
9792
9793 * regex.h (struct re_pattern_buffer): Make field `multibyte'
9794 conditional on `emacs'.
9795
9796 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
9797
9798 2000-04-01 Ken Raeburn <raeburn@gnu.org>
9799
9800 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
9801 non-union-type versions of XMARK and friends here, because XMARK
9802 and friends won't work on an integer field if NO_UNION_TYPE is not
9803 defined.
9804 (make_number): Define as a function if it's not defined as a macro.
9805
9806 * composite.c (run_composite_function): Use NILP when checking for nil.
9807 (syms_of_composite): Delete local var NARGS, pass an int as first
9808 argument to Fmake_hash_table.
9809
9810 * editfns.c (text_property_stickiness): Use NILP to test
9811 Lisp_Object boolean value.
9812 (Fmessage_or_box): Don't use NILP to test int variable.
9813 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
9814 problems reading from and changing the same lisp value in an
9815 XSETSTRING call.
9816
9817 2000-04-01 Gerd Moellmann <gerd@gnu.org>
9818
9819 * term.c (TN_no_color_video): New variable.
9820 (term_init): Intitialize TN_no_color_video.
9821 (enum no_color_bit): New enumeration.
9822 (MAY_USE_WITH_COLORS_P): New macro.
9823 (turn_on_face): Use it to determine if attributes may be used
9824 combined with colors.
9825
9826 2000-04-01 Ken Raeburn <raeburn@gnu.org>
9827
9828 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
9829 with int lvalues via casts; instead, just yield lisp object lvalues.
9830 (enlarge_window): Variable sizep now points to Lisp_Object. Use
9831 proper accessor macros.
9832 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
9833 (grow_mini_window): Fix typo getting int value of root->height.
9834
9835 * xdisp.c (compute_string_pos): Fix order of arguments to
9836 string_pos_nchars_ahead.
9837 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
9838 count arg to variable-arg routines like Frun_hook_with_args and
9839 Fformat.
9840 (back_to_previous_visible_line_start)
9841 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
9842 fixed-arg routines like Fget_char_property and Fmake_string.
9843 (reconsider_clip_changes): Use XINT when comparing integer lisp
9844 objects, or passing them as int arguments.
9845 (mark_window_display_accurate, insert_left_trunc_glyphs)
9846 (append_space, extend_face_to_end_of_line): Use make_number when
9847 storing or passing integer values as lisp objects.
9848 (set_cursor_from_row, highlight_trailing_whitespace): Use
9849 INTEGERP, not implicit test against zero, for glyph object.
9850 (try_window_id): Don't use make_number when we want an int value.
9851
9852 * xfaces.c (xlfd_symbolic_value): Make last argument a
9853 Lisp_Object, to be consistent with callers.
9854 (Fbitmap_spec_p): Use XINT to get numeric value of height.
9855 (lface_hash): Apply XFASTINT to lisp values before folding in.
9856
9857 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
9858 fill in window width and height. Pass an int, not a lisp object,
9859 as first arg to Finsert.
9860
9861 2000-04-01 Gerd Moellmann <gerd@gnu.org>
9862
9863 * xfaces.c (realize_basic_faces): Block input while realizing
9864 the faces.
9865
9866 * keyboard.c (lispy_mouse_names): Add additional mouse names.
9867
9868 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
9869
9870 2000-03-31 Gerd Moellmann <gerd@gnu.org>
9871
9872 * xterm.c (x_produce_glyphs): When displaying unibyte text
9873 or ASCII, handle case that per-char metric is null.
9874
9875 2000-03-30 Ken Raeburn <raeburn@gnu.org>
9876
9877 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
9878
9879 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
9880 (XSUBR, XBUFFER): Verify correct object type before returning
9881 pointer, using eassert.
9882 * frame.h (XFRAME): Likewise.
9883
9884 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
9885 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
9886 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
9887 * data.c (set_internal): Likewise.
9888 * dispextern.h (WINDOW_WANTS_MODELINE_P)
9889 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
9890 * fileio.c (auto_save_1): Likewise.
9891 * insdel.c (check_markers): Likewise.
9892 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
9893 * undo.c (record_insert): Likewise.
9894 * vmsproc.c (child_sig): Likewise.
9895 * window.c (unshow_buffer, window_loop): Likewise.
9896 * xterm.c (x_erase_phys_cursor): Likewise.
9897
9898 2000-03-30 Gerd Moellmann <gerd@gnu.org>
9899
9900 * xfns.c (free_image_cache): Free the cache structure itself
9901 last, after all its members have been freed.
9902
9903 * lisp.h (xstrdup): Add prototype.
9904
9905 * alloc.c (xstrdup): Moved here from xfaces.c.
9906 (allocating_for_lisp): Variable removed.
9907 (lisp_malloc): Block input around the calls to malloc and mem_insert.
9908
9909 * xfaces.c (realize_tty_face): Use find_symbol_value instead
9910 of Fsymbol_value.
9911 (xstrdup): Moved to alloc.c.
9912
9913 2000-03-29 Ken Raeburn <raeburn@gnu.org>
9914
9915 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
9916
9917 * emacs.c (main): Fix sense of no-loadup test.
9918
9919 * config.in (ENABLE_CHECKING): Undef.
9920
9921 * lisp.h (struct interval): Replace "parent" field with a union of
9922 interval pointer and Lisp_Object; add new bitfield to use as
9923 discriminant. Change other flag fields to bitfields.
9924 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
9925 is defined and the supplied test fails, print a message and abort.
9926 (eassert): New macro. Use CHECK to provide an assert-like facility.
9927
9928 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
9929 pointers; abort if the value looks like a lisp object.
9930 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
9931 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
9932 Modify for new interval parent definition.
9933
9934 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
9935 (UNMARK_BALANCE_INTERVALS): Update references that need an
9936 addressable lisp object in the interval structure.
9937 (die): New function.
9938 (suppress_checking): New variable.
9939
9940 * intervals.c (interval_start_pos): Just return 0 if there's no
9941 parent object.
9942
9943 2000-03-29 Gerd Moellmann <gerd@gnu.org>
9944
9945 * lread.c (read1): Accept `.' (period) as symbol start like in CL
9946 and earlier Emacs versions.
9947
9948 * keyboard.c (Ftop_level): Cancel busy-cursor.
9949
9950 * eval.c (call_debugger): Cancel busy-cursor.
9951
9952 2000-03-29 Kenichi Handa <handa@etl.go.jp>
9953
9954 * search.c (Freplace_match): Adjust multibyteness of the current
9955 buffer and NEWTEXT. Free allocated memory before signaling an error.
9956
9957 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
9958
9959 * regex.c (analyse_first): New function obtained by ripping out most
9960 of re_compile_fastmap and generalizing it a little bit so that it
9961 can also just return whether a given (sub)pattern can match the empty
9962 string or not.
9963 (regex_compile): Use `analyse_first' to decide whether the loop-check
9964 needs to be done or not for *, +, *? and +? (the loop check is costly
9965 for non-greedy repetition).
9966 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
9967
9968 2000-03-28 Dave Love <fx@gnu.org>
9969
9970 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
9971
9972 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
9973
9974 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
9975
9976 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
9977 an expression.
9978 (enum re_opcode_t): Update description of succeed_n.
9979 (PATFETCH): Always define.
9980 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
9981 operators, char classes, shy-groups and intervals).
9982 Optimize special cases of intervals so as to only use succeed_n and
9983 jump_n when really needed.
9984 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
9985 that we don't have to handle the special cases any more.
9986 Simplify on_failure_jump handling as well.
9987
9988 2000-03-28 Jason Rumney <jasonr@gnu.org>
9989
9990 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
9991
9992 2000-03-27 Gerd Moellmann <gerd@gnu.org>
9993
9994 * s/freebsd.h (GC_SETJMP_WORKS): Define.
9995
9996 * s/msdos.h (GC_SETJMP_WORKS): Define.
9997
9998 * alloc.c (mark_maybe_object): New function.
9999 (mark_memory): Use it.
10000 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
10001 (setjmp_tested_p, longjmp_done): New variables.
10002 (test_setjmp): New function.
10003 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
10004 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
10005
10006 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
10007 to DEC_TEXT_POS and INC_TEXT_POS.
10008
10009 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
10010 with parameter MULTIBYTE_P.
10011
10012 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
10013
10014 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
10015 buffers because it looks for multibyte character byte sequences
10016 which don't exist in unibyte text.
10017
10018 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
10019
10020 * xfaces.c (register_color, unregister_color, unregister_colors)
10021 [DEBUG_X_COLORS]: New functions.
10022 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
10023
10024 * xfns.c (x_set_cursor_color): Get color reference counts right.
10025
10026 * xterm.c (x_copy_color): New function.
10027 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
10028
10029 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
10030 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
10031 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
10032 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
10033 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
10034 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
10035 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
10036 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
10037 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
10038 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
10039
10040 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
10041 names for handling per-buffer variables.
10042
10043 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
10044 instead of MAX_BUFFER_LOCAL_VARS.
10045 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
10046
10047 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
10048
10049 * xfns.c (x_specified_cursor_type): New function.
10050 (x_set_cursor_type): Use it.
10051
10052 * buffer.h (struct buffer): Add cursor_type.
10053
10054 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
10055
10056 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
10057 (print_partial_compiled_pattern, re_compile_fastmap):
10058 Handle new opcode.
10059 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
10060 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
10061 executing it as well as when popping it off the stack to find infinite
10062 loops in non-greedy repetition operators.
10063
10064 2000-03-26 Gerd Moellmann <gerd@gnu.org>
10065
10066 * doc.c (Qfunction_documentation): New variable.
10067 (syms_of_doc): Initialize Qfunction_documentation.
10068 (Fdocumentation): If FUNCTION is a symbol with non-nil
10069 `function-documentation' property, return a documentation derived
10070 from that.
10071
10072 * buffer.c (syms_of_buffer): Add default-cursor-type.
10073 (init_buffer_once): Don't let cursor_type have a local value
10074 in every buffer.
10075
10076 * xterm.c (x_display_and_set_cursor): Choose cursor depending
10077 on buffer-local value of cursor_type.
10078 (x_draw_bar_cursor): Add parameter WIDTH.
10079
10080 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
10081 (init_buffer_once): Set default cursor_type value to t.
10082 Mark cursor_type as local everywhere.
10083 (syms_of_buffer): New per-buffer variable cursor-type.
10084
10085 * buffer.h (struct buffer): Remove member local_var_flags,
10086 add local_flags.
10087 (MAX_BUFFER_LOCAL_VARS): New macro.
10088 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
10089 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
10090 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
10091 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
10092
10093 * print.c (print_object): Use new macros for per-buffer variables.
10094
10095 * category.c (Fset_category_table): Use new macros for per-buffer
10096 variables.
10097
10098 * buffer.c (buffer_permanent_local_flags): Make a char array.
10099 (max_buffer_local_idx): New variable.
10100 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
10101 for new handling of per-buffer variables.
10102 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
10103 (init_buffer_once): Initialize per-buffer vars differently.
10104 Set max_buffer_local_idx.
10105
10106 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
10107 variables.
10108
10109 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
10110
10111 * data.c (do_symval_forwarding, store_symval_forwarding)
10112 (find_symbol_value, set_internal, default_value, Fset_default)
10113 (Fkill_local_variable, Flocal_variable_p): Use new macros for
10114 per-buffer variables.
10115
10116 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
10117
10118 2000-03-24 Gerd Moellmann <gerd@gnu.org>
10119
10120 * xterm.c (x_term_init): Unblock input around call1 of
10121 Qvendor_specific_keysyms.
10122
10123 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
10124 (find_defun_start): Consider an open parenthesis in column 0
10125 a defun start only if open_paren_in_column_0_is_defun_start is set.
10126 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
10127
10128 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
10129
10130 * eval.c (Fautoload): Add entry in load-history (if after dump).
10131 * lread.c (load-history): Update docstring.
10132
10133 2000-03-24 Gerd Moellmann <gerd@gnu.org>
10134
10135 * indent.c (Fvertical_motion): Always use the current buffer.
10136 Temporarily change the window's buffer, if necessary.
10137
10138 2000-03-23 Gerd Moellmann <gerd@gnu.org>
10139
10140 * xterm.c (fast_find_position): Make sure not to consider rows
10141 not visible in the window.
10142
10143 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
10144
10145 * regex.c (enum syntaxcode): Provide default for non-Emacs.
10146 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
10147
10148 2000-03-22 Jason Rumney <jasonr@gnu.org>
10149
10150 * w32menu.c (single_submenu): Set help string to NULL if none.
10151 (w32_menu_show): Set help string correctly.
10152 (add-menu-item): Set help string in MIIM_DATA for menu item.
10153 Load SetMenuItemInfoA explicitly.
10154 (w32_menu_display_help): New function.
10155
10156 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
10157 (QCdata): Moved to xdisp.c.
10158
10159 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
10160 (Vw32_charset_to_codepage_alist): Removed.
10161 (Vw32_charset_info_alist): New variable.
10162 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
10163 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
10164 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
10165 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
10166 with TODO comment.
10167 (w32_codepage_for_font): Use Vw32_charset_info_alist.
10168 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
10169 Define Vw32_charset_info_alist and w32_charset symbols.
10170
10171 2000-03-22 Jason Rumney <jasonr@gnu.org>
10172
10173 * makefile.nt (w32bdf.obj): Update dependencies.
10174
10175 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
10176
10177 * w32fns.c: Include fontset.h after dispextern.h.
10178 (Fx_create_frame): Do not create fontset.
10179 (w32_load_system_font): Doc fix.
10180 (Fx_close_connection): Free full_name if it is not shared.
10181
10182 * w32term.c: Include fontset.h after dispextern.h.
10183 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
10184 Callers updated.
10185 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
10186 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
10187 (w32_font_is_double_byte): New function, needs body.
10188 (x_append_glyph): Set glyph->glyph_not_available_p.
10189 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
10190 it->charset. If it->multibyte_p is zero and it->c is a multibyte
10191 character, convert it to a unibyte character.
10192 (struct glyph_string): Delete member `charset'.
10193 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
10194 calculating it is found.
10195 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
10196 the case that per char metric is not available correctly.
10197 (x_fill_glyph_string): Handle the case that the specific glyph is
10198 not available correctly.
10199 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
10200 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
10201 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
10202 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
10203 fontset. Don't call FS_LOAD_FONT.
10204
10205 2000-03-22 Ken Raeburn <raeburn@gnu.org>
10206
10207 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
10208 (INT_LISPLIKE): New macro.
10209 (NULL_INTERVAL_P): Use it.
10210 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
10211 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
10212 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
10213
10214 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
10215 explicit references to "parent" field of struct interval and
10216 associated unclean type conversions.
10217 * intervals.c (create_root_interval, root_interval, rotate_right)
10218 (rotate_left, balance_possible_root_interval, split_interval_right)
10219 (split_interval_left, interval_start_pos, find_interval)
10220 (next_interval, previous_interval, update_interval)
10221 (adjust_intervals_for_insertion, delete_node, delete_interval)
10222 (adjust_intervals_for_deletion, merge_interval_right)
10223 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
10224 (copy_intervals_to_string): Likewise.
10225 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
10226 Likewise.
10227 * syntax.c (update_syntax_table): Likewise.
10228
10229 * intervals.c (reproduce_tree_obj): New function, like
10230 reproduce_tree but takes a Lisp_Object for the parent. Declare
10231 with prototype.
10232 (graft_intervals_into_buffer): Use it when appropriate.
10233 (reproduce_tree): Declare with prototype.
10234 (balance_possible_root_interval): Check that the parent is a lisp
10235 object before trying to examine its type.
10236
10237 2000-03-22 Gerd Moellmann <gerd@gnu.org>
10238
10239 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
10240 as strings only if both are known to be strings.
10241
10242 * s/openbsd.h (LIBS_TERMCAP): Undef.
10243
10244 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
10245
10246 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
10247 definitions for non-Emacs compilation.
10248 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
10249 outside of `#ifdef emacs'.
10250 (print_partial_compiled_pattern): Update.
10251 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
10252 (re_compile_fastmap): Merge handling of charset and charset_not (for
10253 emacs and non-emacs compilation as well).
10254 Similarly for (not)categoryspec and (not)syntaxspec.
10255 Don't use the fastmap when reaching `anychar' since the added
10256 complexity is not justified.
10257 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
10258 and (not)syntaxspec. Merge (not)categoryspec.
10259
10260 2000-03-22 Kenichi Handa <handa@etl.go.jp>
10261
10262 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
10263 (FACE_FOR_CHAR): Define them differently for the configuration of
10264 --without-x.
10265
10266 2000-03-21 Dave Love <fx@gnu.org>
10267
10268 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
10269 doc string.
10270
10271 2000-03-21 Gerd Moellmann <gerd@gnu.org>
10272
10273 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
10274 (lface_fully_specified_p): Don't check contents of
10275 LFACE_FONT_INDEX because that attribute is optional.
10276 (realize_x_face): Remove now unwarranted xassert.
10277
10278 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
10279
10280 The following changes are to make font selection based on
10281 characters, not charset. In addition, they recover fontset
10282 facilities while utilizing the new font selection mechanism.
10283
10284 * Makefile.in (fontset.o): Depend on dispextern.h.
10285
10286 * alloc.c (mark_face_cache): Don't mark face->registry.
10287
10288 * dispextern.h (struct glyph): New member glyph_not_available_p.
10289 Use 22 bits for face_id.
10290 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
10291 (struct face): Delete member registry, new member ascii_face.
10292 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
10293 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
10294 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
10295 (struct it): Delete member charset, new member glyph_not_available_p.
10296
10297 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
10298 (struct fontset_info, struct fontset_data): Structs removed.
10299 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
10300 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
10301 (fs_load_font, fs_query_fontset): Adjusted for new argument.
10302 (fs_free_face_fontset, fontset_font_pattern)
10303 (face_suitable_for_char_p, face_for_char)
10304 (make_fontset_for_ascii_face): Extern them.
10305 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
10306 (FS_LOAD_FACE_FONT): New macro.
10307
10308 * fontset.c: All codes rewritten or adjusted for the change of
10309 fontset implementation. Now fontset is represented by char table.
10310 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
10311 Variables removed.
10312 (my_strcasecmp): Function removed.
10313 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
10314 (AREF, ASIZE): New macros.
10315 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
10316 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
10317 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
10318 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
10319 (fontset_id_valid_p, font_family_registry, fontset_name)
10320 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
10321 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
10322 New functions.
10323 (fs_load_font): New arg FACE. Caller changed.
10324 (fs_query_fontset): Argument changed. Caller changed.
10325 (Fquery_fontset): call fs_query_fontset.
10326 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
10327 Functions removed.
10328 (clear_fontset_elements, check_registry_encoding)
10329 (check_fontset_name): New functions.
10330 (syms_of_fontset): Set char-table-extra-slots property of fontset
10331 to 3. Staticpro and initialize Vfontset_table and
10332 Vdefault_fontset. Defsubr fontset_font and fontset_list.
10333
10334 * frame.h (struct frame): Member `fontset_data' removed.
10335 (FRAME_FONTSET_DATA): Macro removed.
10336
10337 * frame.c (make_frame): Don't allocate f->fontset_data.
10338 (Fdelete_frame): Don't free f->fontset_data.
10339
10340 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
10341
10342 * xdisp.c (charset_at_position): Function removed.
10343 (init_iterator): Don't set member charset of struct `it'.
10344 (handle_face_prop, reseat_to_string, set_iterator_to_next)
10345 (next_element_from_display_vector, insert_left_trunc_glyphs):
10346 Likewise.
10347 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
10348 FACE_FOR_CHARSET.
10349 (get_next_display_element, append_space)
10350 (extend_face_to_end_of_line): Likewise.
10351
10352 * xfaces.c (Qx_charset_registry, Vface_default_registry):
10353 Variables removed.
10354 (clear_font_table, frame_update_line_height, load_face_font):
10355 Adjusted for the change of fontset implementation.
10356 (load_face_fontset_font): Function removed.
10357 (pixel_point_size): New function.
10358 (font_list): Argument type changed. Caller changed.
10359 (LFACE_FONT): New macro.
10360 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
10361 (set_lface_from_font_name): Type of arg FONTNAME is changed to
10362 Lisp_Object. Determine the font name by actually loading a font
10363 by the specified pattern. Set LFACE_FONT (lface) to the specified
10364 pattern. Even if a font is not found, don't try alternatives.
10365 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
10366 (set_font_frame_param): If `font' is specified in lface, use it.
10367 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
10368 (lface_same_font_attributes_p): Likewise.
10369 (make_realized_face): Arguent changed. Caller changed. Set
10370 face->ascii_face to face itself.
10371 (free_realized_face): Free face->fontset if face is for ASCII.
10372 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
10373 (deduce_unibyte_registry, x_charset_registry): Functions removed.
10374 (free_realized_multibyte_face): New function.
10375 (lookup_face, lookup_named_face, lookup_derived_face): Argument
10376 changed. Caller changed.
10377 (try_font_list): Argument type changed.
10378 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
10379 (choose_face_font): Argument changed. Handle fontset properly.
10380 (choose_face_fontset_font): Function removed.
10381 (realize_default_face, realize_named_face): Don't remove the
10382 former face here.
10383 (realize_face): Argument changed. Caller changed. Remove face
10384 with the arg former_face_id in advance. Load font for the new face.
10385 (realize_x_face): Argument changed. Caller changed. For a
10386 multibyte character, share fontset with base_face. For a single
10387 byte character, make a new realized fontset. Don't load a font here.
10388 (realize_tty_face): Argument changed. Caller changed.
10389 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
10390 (face_at_buffer_position): Don't check multibyte_p for returning
10391 DEFAULT_FACE_ID.
10392 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
10393 FACE_SUITABLE_FOR_CHARSET_P.
10394 (syms_of_xfaces): Remove code for Qx_charset_registry and
10395 Vface_default_registry.
10396
10397 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
10398 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
10399 (x_per_char_metric): Don't try FONT->default_char. Even if
10400 pcm->width is zero, glyph bits may exist.
10401 (x_encode_char): Always initialize char2b->byte1.
10402 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
10403 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
10404 (x_append_glyph): Set glyph->glyph_not_available_p.
10405 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
10406 it->charset. Handle the case that per char metric is not
10407 available. If it->multibyte_p is zero and it->c is a multibyte
10408 character, convert it to a unibyte character.
10409 (struct glyph_string): Delete member `charset'.
10410 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
10411 the case that per char metric is not available correctly.
10412 (x_fill_glyph_string): Handle the case that the specific glyph is
10413 not available correctly.
10414 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
10415 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
10416 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
10417 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
10418 fontset. Don't call FS_LOAD_FONT.
10419
10420 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
10421 (x_create_tip_frame): Likewise.
10422 (Fx_close_connection): Free full_name of font_info.
10423
10424 * fns.c (optimize_sub_char_table): New function.
10425 (Foptimize_char_table): New function.
10426 (syms_of_fns): Defsubr Soptimize_char_table.
10427
10428 2000-03-20 Gerd Moellmann <gerd@gnu.org>
10429
10430 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
10431 only if buffer is displayed in some window.
10432
10433 * xdisp.c (handle_single_display_prop): Initialize local `value'.
10434 (try_window_reusing_current_matrix): Don't call scroll run
10435 function if run's current and desired position are the same;
10436 this prevents cursor flickering.
10437
10438 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
10439
10440 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
10441
10442 * regex.c (RE_STRING_CHAR): New macro.
10443 (GET_CHAR_AFER_2): Remove.
10444 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
10445 (enum re_opcode_t): Remove on_failure_jump_exclusive.
10446 (print_partial_compiled_pattern, re_compile_fastmap)
10447 (re_match_2_internal): Remove on_failure_jump_exclusive.
10448 (regex_compile): Turn optimizable P+ loops into PP*, so that the
10449 optimization only need to work for * (ie. can use of_keep_string_jump).
10450 Remove the special case for .*\n since it is now covered by the general
10451 optimization.
10452 (re_search_2): Don't bother with `room'.
10453 (skip_one_char): New function.
10454 (skip_noops): Simplify since `memory' is not needed any more.
10455 (mutually_exclusive_p): Restructure slightly to use `switch' and
10456 add handling for "all" remaining cases.
10457 (re_match_2_internal): Change on_failure_jump_smart to use
10458 on_failure_keep_string_jump (and redirect the end-of-loop jump)
10459 rather than on_failure_jump_exclusive.
10460
10461 2000-03-19 Gerd Moellmann <gerd@gnu.org>
10462
10463 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
10464 number of bits per RGB because it's everywhere used as the depth
10465 of the visual.
10466
10467 * term.c (calculate_costs): Remove code dealing with X frames.
10468
10469 2000-03-19 Richard M. Stallman <rms@gnu.org>
10470
10471 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
10472
10473 2000-03-18 Gerd Moellmann <gerd@gnu.org>
10474
10475 * lread.c (read_integer): Unread the last char not consumed.
10476
10477 2000-03-17 Gerd Moellmann <gerd@gnu.org>
10478
10479 * xterm.c (x_update_window_cursor): Don't update in frames
10480 which are in the process of being deleted.
10481
10482 2000-03-16 Gerd Moellmann <gerd@gnu.org>
10483
10484 * Makefile.in (mostlyclean): Add `*.core'.
10485 (clean): Add `bootstrap-emacs'.
10486
10487 * lread.c (read_integer): New function.
10488 (read1): Support read syntax #o, #x, #b, #r.
10489
10490 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
10491
10492 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
10493 make sure POINTER_TO_OFFSET gives the same value before and after
10494 PREFETCH. Use `dfail' to guarantee "atomic" matching.
10495 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
10496 (debug): Now only active if > 0 rather than if != 0.
10497 (DEBUG_*): Update for the new meaning of `debug'.
10498 (print_partial_compiled_pattern): Add missing `succeed' case. Use
10499 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
10500 in `succeed_n', `jump_n' and `set_number_at'.
10501 (store_op1, store_op2, insert_op1, insert_op2)
10502 (at_begline_loc_p, at_endline_loc_p): Add prototype.
10503 (group_in_compile_stack): Move to after its arg's types are
10504 declared and add a prototype.
10505 (PATFETCH): Define in terms of PATFETCH_RAW.
10506 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
10507 (QUIT): Redefine as a nop except for NTemacs.
10508 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
10509 indentation of the greedy-op and shy-group code.
10510 (at_(beg|end)line_loc_p): Fix argument's types.
10511 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
10512 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
10513 (MATCHING_IN_FIRST_STRING): Remove.
10514 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
10515 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
10516 QUIT unconditionally.
10517
10518 2000-03-15 Gerd Moellmann <gerd@gnu.org>
10519
10520 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
10521 a sole completion.
10522
10523 * process.c (send_process): Add a hint that the function
10524 can call Lisp code to its comment.
10525
10526 * lread.c (load_dangerous_libraries): New variable.
10527 (Vbytecomp_version_regexp): New variable.
10528 (safe_to_load_p): New function.
10529 (Fload): Handle files not compiled with Emacs specially.
10530 (syms_of_lread): New Lisp variable load-dangerous-libraries.
10531
10532 2000-03-14 Gerd Moellmann <gerd@gnu.org>
10533
10534 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
10535
10536 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
10537 support functions only if HAVE_X11R6_XIM is defined.
10538 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
10539
10540 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
10541
10542 * xfns.c (X_I18N_INHIBITED): Don't define.
10543 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
10544 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
10545
10546 * config.in (HAVE_X_I18N): Moved here from xterm.h.
10547 (HAVE_X11R6_XIM): Define.
10548
10549 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
10550
10551 * xterm.c (x_term_init): Add support for X resource `synchronous'.
10552 If set, call XSynchronize.
10553
10554 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
10555
10556 * regex.c: Declare a new type `re_char' used throughout the code
10557 for the string char type. It's `const unsigned char' to match the
10558 rest of Emacs. Consistently make sure all pointers to strings use
10559 it and make sure all pointers into the pattern use `unsigned char'.
10560 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
10561 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
10562 code duplication.
10563
10564 * charset.h (GET_CHAR_AFTER_2): Remove.
10565 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
10566
10567 2000-03-12 Ken Raeburn <raeburn@gnu.org>
10568
10569 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
10570 variable before the invocation of YMF_PASS_LDFLAGS, in case both
10571 of them try to use backquotes.
10572
10573 2000-03-12 Dave Love <fx@gnu.org>
10574
10575 * unexelf.c: Restore changes of 1999-10-19.
10576 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
10577 fix its type and alignment; copy it from current process.
10578
10579 2000-03-12 Gerd Moellmann <gerd@gnu.org>
10580
10581 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
10582 has been found. Fix bug not computing timer's predecessor.
10583
10584 * fileio.c (Fread_file_name): Handle case that DIR contains a
10585 file name.
10586
10587 * window.c (Fsave_window_excursion): Doc fix.
10588
10589 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
10590
10591 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
10592
10593 * msdos.c (vga_installed): New function, code moved from
10594 dos_set_window_size.
10595 (Qbar, Qcursor_type, outside_cursor): New variables.
10596 (syms_of_msdos): Intern and staticpro them.
10597 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
10598 shape used outside Emacs when called for the first time.
10599 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
10600 cursor shape used outside Emacs.
10601 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
10602 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
10603 type has changed.
10604 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
10605 parameters specify the cursor. Make qreverse a global
10606 variable (renamed to Qreverse).
10607
10608 2000-03-09 Gerd Moellmann <gerd@gnu.org>
10609
10610 * fns.c (Fy_or_n_p): Cancel busy-cursor.
10611
10612 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
10613
10614 This is a big redesign of failure-stack and register handling, prompted
10615 by bugs revealed when trying to add shy-groups. Overall, what happened
10616 is that loops are now structured a little differently, groups can be
10617 shy and the code is a little simpler.
10618
10619 * regex.h: Update the copyright.
10620 (RE_SHY_GROUPS): New value.
10621 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
10622 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
10623
10624 * regex.c (enum re_opcode_t): Remove jump_past_alt,
10625 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
10626 on_failure_jump_(exclusive, loop and smart). Also fix the comment
10627 for (start|stop)_memory since they now only take one argument (the
10628 second has becomes unnecessary).
10629 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
10630 (print_compiled_pattern): Use %ld to printf long ints and flush to
10631 make debugging a little easier.
10632 (union fail_stack_elt): Make the integer unsigned.
10633 (struct fail_stack_type): Add a `frame' element.
10634 (INIT_FAIL_STACK): Init `frame' as well.
10635 (POP_PATTERN_OP): New macro for re_compile_fastmap.
10636 (DEBUG_PUSH, DEBUG_POP): Remove.
10637 (NUM_REG_ITEMS): Remove.
10638 (NUM_NONREG_ITEMS): Adjust.
10639 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
10640 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
10641 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
10642 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
10643 New macros.
10644 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
10645 address pushed is not the destination of the jump but the source
10646 of it instead.
10647 (NUM_FAILURE_ITEMS): Remove.
10648 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
10649 registers before the actual failure point). Don't hardcode any
10650 meaning for str==NULL anymore.
10651 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
10652 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
10653 Remove.
10654 (REG_UNSET_VALUE): Use NULL (why not?).
10655 (compile_range): Remove declaration since it doesn't exist.
10656 (struct compile_stack_elt_t): Remove inner_group_offset.
10657 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
10658 (regex_grow_registers): Remove dead code.
10659 (FIXUP_ALT_JUMP): New macro.
10660 (regex_compile): Add shy-groups Change loops to use
10661 on_failure_jump_smart&jump instead of
10662 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
10663 initial (dummy_failure_)jump. Remove c1_base (looks like unused
10664 variable to me). Use `jump' instead of `jump_past_alt' and don't
10665 bother with push_dummy_failure in alternatives since it is now
10666 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
10667 emacs' for (re)allocating the stack.
10668 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
10669 from loop when bufp->can_be_null rather than jumping to `done'.
10670 Avoid jumping backwards so as to ensure termination. Use
10671 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
10672 backreferences. Remove dead code in handling of `anychar'.
10673 (skip_noops, mutually_exclusive_p): New functions taken from the
10674 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
10675 improve mutually_exclusive_p to handle ".+\n".
10676 (lowest_active_reg, highest_active_reg)
10677 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
10678 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
10679 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
10680 variables. Push register (in `start_memory') on the stack rather
10681 than storing it in old_reg(start|end). Remove the cycle detection
10682 from `stop_memory', replaced by the use of on_failure_jump_loop
10683 for greedy loops. Add code for the new on_failure_jump_<foo>.
10684 Remove ad-hoc code in `on_failure_jump' to push more registers in
10685 the case of a loop. Take out code from `maybe_pop_jump' into
10686 separate functions and adapt it to the semantics of
10687 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
10688 and push_dummy_failure. Remove dummy_failure handling and
10689 handling of `failures to jump to on_failure_jump' (this last one
10690 was already dead code, it seems).
10691 (group_match_null_string_p, alt_match_null_string_p)
10692 (common_op_match_null_string_p): Remove.
10693
10694 2000-03-08 Dave Love <fx@gnu.org>
10695
10696 * config.in: Don't depend on __STDC__ for volatile.
10697 Add POINTER_TYPE, PTR, PROTOTYPES.
10698
10699 * hftctl.c, strftime.c: Use PROTOTYPES.
10700 * eval.c (find_handler_clause): Likewise.
10701
10702 * mem-limits.h: Use POINTER_TYPE.
10703
10704 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
10705 (memory_warnings): Declare using POINTER_TYPE.
10706
10707 2000-03-08 Gerd Moellmann <gerd@gnu.org>
10708
10709 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
10710
10711 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
10712
10713 * xfns.c: Remove obsolete code in #if 0.
10714 (Fx_focus_frame): New function.
10715
10716 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10717
10718 * coding.c (coding_category_name): Add coding-category-utf-8,
10719 coding-category-utf-16-be, coding-category-utf-16-le.
10720 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
10721 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
10722 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
10723 (detect_coding_utf_8): New function.
10724 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
10725 UTF_16_LOW_SURROGATE_P): New macros.
10726 (detect_coding_utf_16): New function
10727 (detect_coding_mask): When priorities are specified, skip any
10728 categories that have `nil' coding-system. Fix bug of returning
10729 wrong mask when PRIORITIES is specified and detect_coding_XXX()
10730 returns a mask not set in PRIORITIES.
10731 (detect_eol_type_in_2_octet_form): New function.
10732 (detect_eol): selects detect_eol_type_XXX to call according to
10733 cooding->category_idx.
10734 (detect_coding_system): Remove `nil' coding-system in the result.
10735 (Fupdate_coding_systems_internal): Update all coding-categories.
10736
10737 * coding.h (CODING_CATEGORY_IDX_UTF_8)
10738 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
10739 New macros.
10740 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
10741 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
10742 (CODING_CATEGORY_IDX_UTF_16_LE)
10743 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
10744 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
10745 (CODING_CATEGORY_MASK_ANY): Include the above macros.
10746 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
10747
10748 2000-03-07 Gerd Moellmann <gerd@gnu.org>
10749
10750 * doc.c (Fdocumentation_property): If value is not a string,
10751 and doesn't refer to etc/DOC, evaluate it to obtain a string.
10752
10753 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
10754 close the display with XtCloseDisplay. This caused a bus error
10755 on OpenWindows.
10756
10757 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
10758 complete but not unique.
10759
10760 2000-03-06 Gerd Moellmann <gerd@gnu.org>
10761
10762 * process.c (send_process): Remove local variable `procname' that
10763 might become invalid when a GC happens. Instead, access the
10764 process name slot directly.
10765
10766 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
10767 orig_height if set.
10768
10769 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
10770 orig_height if set.
10771
10772 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
10773
10774 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
10775 glyph matrices have been freed.
10776
10777 2000-03-05 Gerd Moellmann <gerd@gnu.org>
10778
10779 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
10780 (bootstrap-temacs): Set LC_ALL to C like for temacs.
10781
10782 * xfns.c (QCdata): Moved to xdisp.c.
10783
10784 * xdisp.c (QCdata): Moved here from xfns.c.
10785 (syms_of_xdisp): Initialize QCdata.
10786
10787 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
10788
10789 * window.c (coordinates_in_window): Use
10790 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
10791 FRAME_INTERNAL_BORDER_WIDTH.
10792
10793 * xdisp.c (try_window_id): Recompute unchanged information if
10794 it is obviously invalid.
10795
10796 * xterm.c (x_term_init): Create a colormap if not using the
10797 default visual.
10798
10799 * xterm.h (select_visual): Change prototype.
10800
10801 * xfns.c (select_visual): Rewritten. Recognize user-specified
10802 visual classes.
10803 (visual_classes): New variable.
10804
10805 2000-03-04 Gerd Moellmann <gerd@gnu.org>
10806
10807 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
10808 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
10809 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
10810 (x_decode_color): Don't handle allocation of white and black specially.
10811 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
10812 XtNcolormap resources.
10813 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
10814 (Fx_create_frame): Initialize color members of x_output structure.
10815 (xpm_load): Pass colormap to XPM lib.
10816
10817 * xfaces.c (x_free_colors): Access colormap of frame using
10818 FRAME_X_COLORMAP. Be paranoid about freeing black and white
10819 when default colormap is used.
10820
10821 * xterm.c (x_term_init): Set Colormap member of x_display_info
10822 structure. Copy colormap if resource `privateColormap' is
10823 specified (PseudoColor only).
10824 (x_setup_relief_color): Access colormap of frame using
10825 FRAME_X_COLORMAP.
10826
10827 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
10828 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
10829
10830 2000-03-04 Jason Rumney <jasonr@gnu.org>
10831
10832 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
10833 other non-platform-specific equivalents.
10834 [WINDOWSNT]: Include w32term.h, fontset.h and define X
10835 specific functions and macros as their w32 equivalents where
10836 non-platform-specifics are not available.
10837 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
10838 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
10839 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
10840 (frame_update_line_height): Use macros to access f->output_data.
10841 (defined_color): Remove FIXME comments; fixed.
10842 (x_face_list_fonts, prepare_face_for_display): Put X specifics
10843 into #ifdef blocks. Add WINDOWSNT blocks.
10844 (Fx_list_fonts): Use macros for accessing font data.
10845 (set_lface_from_font_name): Different default fonts for X and
10846 WINDOWSNT.
10847 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
10848 scalable for backward compatibility.
10849 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
10850 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
10851
10852 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
10853 syms_of_w32faces.
10854
10855 * makefile.nt (w32faces.obj): Remove.
10856 (xfaces.obj): Add.
10857
10858 2000-03-03 Jason Rumney <jasonr@gnu.org>
10859
10860 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
10861 correct parameters.
10862
10863 2000-03-03 Ken Raeburn <raeburn@gnu.org>
10864
10865 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
10866 standard ELF definitions here if the system header does not.
10867
10868 2000-03-03 Gerd Moellmann <gerd@gnu.org>
10869
10870 * xterm.c (PER_CHAR_METRIC): Removed.
10871 (x_per_char_metric_1, x_default_char): New functions.
10872 (x_per_char_metric): If font's default char is invalid, return
10873 metrics of a suitably chosen usable default char.
10874 (x_draw_glyph_string_foreground): If font has an invalid default
10875 char, replace occurrences of unprintable chars with a suitably
10876 chosen usable default char.
10877
10878 2000-03-02 Gerd Moellmann <gerd@gnu.org>
10879
10880 * xterm.c (note_mouse_highlight): Return quickly if frame's
10881 glyph matrices have been freed.
10882
10883 * dispnew.c (free_glyphs): Block input while freeing matrices.
10884
10885 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
10886
10887 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
10888 Use x_free_colors.
10889
10890 * dispextern.h (x_free_colors): Add prototype.
10891
10892 * xfaces.c (x_free_colors): New function.
10893 (unload_color, free_face_colors): Use it.
10894
10895 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
10896
10897 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
10898
10899 * window.c [MSDOS]: Include msdos.h.
10900
10901 2000-03-02 Dave Love <fx@gnu.org>
10902
10903 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
10904
10905 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
10906 set C_OPTIMIZE_SWITCH for gcc.
10907
10908 2000-03-02 Kenichi Handa <handa@etl.go.jp>
10909
10910 * coding.c (coding_save_composition): Be sure to allocate
10911 composition data area in coding even if there's no composition in
10912 the current run.
10913
10914 2000-03-01 Jason Rumney <jasonr@gnu.org>
10915
10916 * w32term.c: Equivalent changes to those made to xterm.c on
10917 2000-02-25 and 2000-02-24.
10918
10919 * w32fns.c: Equivalent changes to those made to xfns.c on
10920 2000-02-25 and 2000-02-21.
10921
10922 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
10923 correct line-end convention is followed.
10924
10925 * w32menu.c [HAVE_BOXES]: Remove #undef.
10926 (single_keymap_panes): Remove code for simulating checkmarks.
10927 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
10928 Remove code for drawing simulated checkmarks.
10929 (w32_menu_show): make unibyte help string correctly.
10930 (add_menu_item): draw standard Windows checkmarks. Draw radio
10931 buttons as radio buttons if possible.
10932
10933 2000-03-01 Gerd Moellmann <gerd@gnu.org>
10934
10935 * sysdep.c (start_of_text): Don't define this function for NetBSD
10936 with ELF.
10937
10938 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
10939 Don't define.
10940 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
10941 (LINKER): Don't undef if __NetBSD__ is defined.
10942
10943 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
10944
10945 * fileio.c [__NetBSD__]: Define `unix'.
10946
10947 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
10948
10949 2000-02-29 Gerd Moellmann <gerd@gnu.org>
10950
10951 * atimer.c (start_atimer): Don't abort when timers are stopped.
10952 (append_atimer_lists): New function.
10953 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
10954 arbitrary lists of stopped and running atimers.
10955
10956 * atimer.c (cancel_atimer): Handle canceling an atimer when
10957 some timers are stopped.
10958
10959 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
10960 after canceling it.
10961
10962 * fns.c (maybe_resize_hash_table): Handle case of new size
10963 coming out as being the same as old size.
10964
10965 2000-02-27 Jason Rumney <jasonr@gnu.org>
10966
10967 * makefile.nt: Add atimer.h to dependencies.
10968 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
10969 * w32console.c: Only disable window system features for dispextern.h
10970 (initialize_w32_display): Build a display info for the console.
10971 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
10972 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
10973 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
10974 as 2 button mice.
10975 * w32gui.h (struct W32FontStruct): Revert last change after change
10976 to xdisp.c.
10977 * w32menu.c (single_submenu): Set up help string.
10978 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
10979 (w32_dialog_show): Set up help string.
10980 * w32term.c (w32_display_info_for_display): Remove unused function.
10981 (w32_draw_bitmap): Use pre-built bitmaps.
10982 (w32_initialize_display_info): New function to initialize parts of
10983 display info that are common to both GUI and console frames.
10984 (w32_term_init): Use w32_initialize_display_info. Do not set
10985 Vw32_num_mouse_buttons here, as it is not called for console
10986 frames. Build bitmaps for indicating truncated lines etc.
10987 (x_delete_display): Destroy pre-built bitmaps.
10988 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
10989 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
10990
10991 2000-02-27 Dave Love <fx@gnu.org>
10992
10993 * lisp.h: Add a bunch of prototypes.
10994
10995 2000-02-26 Kenichi Handa <handa@etl.go.jp>
10996
10997 * keyboard.c (read_char): Set `usec' correctly.
10998
10999 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
11000
11001 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
11002 `lambda', set reg[RRR] to the map index.
11003 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
11004 reg[RRR] to 0. Otherwise, set it to -1.
11005
11006 2000-02-25 Gerd Moellmann <gerd@gnu.org>
11007
11008 * emacs.c (main): Remove code snippet commented out with `//'.
11009
11010 2000-02-25 Richard M. Stallman <rms@gnu.org>
11011
11012 * fileio.c (Ffile_symlink_p): If result starts with a `/'
11013 and contains a `:', prepend `/:'.
11014
11015 * window.c (select_window_1): If selected_window is nil,
11016 don't "swap out" the buffer's point.
11017 (Fset_window_configuration): Set selected_window to nil
11018 before calling Fselect_window.
11019 (unshow_buffer): Don't set point in buffer from window's point
11020 if another more recently selected window also shows the buffer.
11021
11022 2000-02-25 Gerd Moellmann <gerd@gnu.org>
11023
11024 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
11025
11026 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
11027 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
11028 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
11029 New variables.
11030 (DEFAULT_BUSY_CURSOR_DELAY): New define.
11031 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
11032 (hide_busy_cursor): New functions.
11033 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
11034
11035 * minibuf.c (read_minibuf): Cancel busy-cursor.
11036
11037 * keyboard.c (command_loop_1): Call start_busy_cursor before
11038 Fcommand_execute and cancel_busy_cursor after it.
11039 (timer_check): Remove busy-cursor code.
11040 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
11041 cursor timer.
11042
11043 * process.c (wait_reading_process_input): Remove busy-cursor code.
11044
11045 * eval.c (Fsignal): Call cancel_busy_cursor instead of
11046 Fx_hide_busy_cursor.
11047
11048 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
11049 Remove prototyoes.
11050 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
11051
11052 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
11053
11054 * xterm.c (XTread_socket): Remove busy-cursor code.
11055
11056 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
11057 (build_frame_matrix_from_leaf_window): Put code handling
11058 glyph row's not being a slice of a frame row in #if 0.
11059 (sync_window_with_frame_matrix_rows): New function.
11060 (frame_row_to_window): New function.
11061 (mirror_line_dance): Handle copies between windows.
11062
11063 * lread.c (Fload): Use `xfree' instead of `free'.
11064 (init_obarray): Use `xmalloc' instead of `malloc'.
11065
11066 * window.c (Fset_window_buffer): Set WINDOW to the window
11067 after decoding.
11068 (coordinates_in_window): Take frame's internal border width
11069 into account.
11070
11071 2000-02-24 Gerd Moellmann <gerd@gnu.org>
11072
11073 * xterm.c (x_display_and_set_cursor): Display cursor of
11074 non-selected windows depending on the setting of
11075 cursor_in_non_selected_windows.
11076
11077 * xdisp.c (cursor_in_non_selected_windows): New variable.
11078 (syms_of_xdisp): DEFVAR_BOOL it.
11079
11080 2000-02-23 Gerd Moellmann <gerd@gnu.org>
11081
11082 * data.c (Fstring_to_number): If number is greater than what
11083 fits into an integer, return a float.
11084
11085 * eval.c (specbind): Remove references to
11086 keyword_symbols_constant_flag.
11087
11088 * data.c (keyword_symbols_constant_flag): Removed.
11089 (Fmakunbound, set_internal, syms_of_data): Remove references to
11090 keyword_symbols_constant_flag.
11091
11092 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
11093
11094 2000-02-23 Kenichi Handa <handa@etl.go.jp>
11095
11096 * syntax.c (multibyte_syntax_as_symbol): New variable.
11097 (syms_of_syntax): Declare it as a Lisp variable.
11098 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
11099 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
11100 nonzero, treat all multibyte characters as symbol.
11101 (init_syntax_once): Give syntax `word' to all multibyte characters.
11102
11103 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
11104
11105 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
11106 a deleted frame.
11107
11108 2000-02-21 Gerd Moellmann <gerd@gnu.org>
11109
11110 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
11111
11112 * xfns.c (x_window_to_frame, x_any_window_to_frame)
11113 (x_non_menubar_window_to_frame): Check the busy-cursor window.
11114
11115 2000-02-21 Dave Love <fx@gnu.org>
11116
11117 * frame.c (Vmouse_position_function): New variable.
11118 (Fmouse_position): Use it.
11119 (syms_of_frame): Install it.
11120
11121 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
11122
11123 2000-02-20 Gerd Moellmann <gerd@gnu.org>
11124
11125 * fileio.c (Finsert_file_contents): Unbind the binding of
11126 standard-output done by temp_output_buffer_setup.
11127
11128 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
11129 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
11130 (specbind, unbind_to): Handle most common case of non-constant
11131 symbol with trivial value specially.
11132
11133 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
11134
11135 2000-02-20 Richard M. Stallman <rms@gnu.org>
11136
11137 * data.c (Fmake_variable_buffer_local): Doc fix.
11138 Init found_for_buffer to 0.
11139 (Fmake_variable_frame_local): If the variable has already
11140 been buffer-local, set the check_frame field.
11141
11142 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
11143
11144 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
11145 produced for CODING_MODE_LAST_BLOCK requires.
11146
11147 2000-02-18 Dave Love <fx@gnu.org>
11148
11149 * keyboard.c (echo_keystrokes): Remove declaration.
11150 (Vecho_keystrokes) New variable.
11151 (read_char, record_menu_key, read_key_sequence): Use it to allow
11152 use of float value.
11153 (syms_of_keyboard): Change Vecho_keystrokes declaration.
11154
11155 * lread.c: Undef feature selection macros before defining.
11156
11157 2000-02-18 Gerd Moellmann <gerd@gnu.org>
11158
11159 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
11160 for symbols other than the symbol in question.
11161
11162 2000-02-17 Dave Love <fx@gnu.org>
11163
11164 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
11165
11166 2000-02-17 Gerd Moellmann <gerd@gnu.org>
11167
11168 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
11169
11170 * alloc.c (enum mem_type): Compile unconditionally.
11171
11172 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
11173
11174 * xfaces.c (tty_defined_color): Don't return faulire indication
11175 for unspecified-fg and unspecified-bg pseudo-colors.
11176
11177 2000-02-17 Gerd Moellmann <gerd@gnu.org>
11178
11179 * alloc.c (mark_object): Don't mark symbol names in pure space.
11180 (gc_sweep): Don't unmark symbol names in pure space.
11181
11182 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
11183 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
11184 [GC_MARK_STACK]: New defines.
11185 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
11186 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
11187
11188 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
11189
11190 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
11191 allocate_buffer instead of xmalloc.
11192
11193 * alloc.c (toplevel): Include setjmp.h.
11194 (PURE_POINTER_P): New define.
11195 (enum mem_type) [GC_MARK_STACK]: New enumeration.
11196 (Vdead) [GC_MARK_STACK]: New variable.
11197 (lisp_malloc): Add parameter TYPE, call mem_insert if
11198 GC_MARK_STACK is defined.
11199 (allocate_buffer): New function.
11200 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
11201 (free_float) [GC_MARK_STACK]: Set type to Vdead.
11202 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
11203 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
11204 (MEM_NIL) [GC_MARK_STACK]: New define.
11205 (struct mem_node) [GC_MARK_STACK]: New structure.
11206 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
11207 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
11208 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
11209 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
11210 (mark_stack) [GC_MARK_STACK]: New functions.
11211 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
11212 (clear_marks): Removed.
11213 (gc_sweep): Set free conses' car, free floats' type, free
11214 symbols' function to Vdead. Use lisp_free to free buffers.
11215 (init_alloc_once): Initialize Vdead.
11216 (survives_gc_p): Return non-zero for pure objects.
11217
11218 * alloc.c: Add comments throughout the file.
11219
11220 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
11221 that unblocks alarms.
11222
11223 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
11224 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
11225 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
11226
11227 * frame.c (make_frame): Set frame initiallly to `garbaged'.
11228
11229 2000-02-17 Kenichi Handa <handa@etl.go.jp>
11230
11231 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
11232 avoid infinite error signaling. Allocate sufficient memory for
11233 eol_str in the case that eoltype is Lisp_Int.
11234
11235 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
11236
11237 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
11238 depends on the previous behavior.
11239
11240 2000-02-16 Gerd Moellmann <gerd@gnu.org>
11241
11242 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
11243
11244 2000-02-15 Gerd Moellmann <gerd@gnu.org>
11245
11246 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
11247
11248 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
11249 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
11250 write(2).
11251
11252 2000-02-15 Richard M. Stallman <rms@gnu.org>
11253
11254 * data.c (set_internal): Don't make variable buffer-local
11255 if within a let-binding for the same buffer.
11256 (let_shadows_buffer_binding_p): New function.
11257
11258 * eval.c (specbind): For buffer-local value,
11259 record the current buffer also.
11260 (unbind_to): Cope with that change.
11261
11262 2000-02-15 Gerd Moellmann <gerd@gnu.org>
11263
11264 * window.c (Fsave_window_excursion): Doc fix.
11265
11266 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
11267
11268 * syntax.c (back_comment): Make sure we only consider comment-starters
11269 of the relevant style and return -1 in case of a failure to find the
11270 beginning of the comment.
11271 (Fforward_comment): If back_comment fails, go back to the position just
11272 after the comment-end.
11273 (scan_lists): Add comment describing a very minor bug.
11274
11275 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
11276
11277 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
11278 `completion-regexp-list' in the docstring.
11279
11280 2000-02-14 Dave Love <fx@gnu.org>
11281
11282 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
11283
11284 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
11285
11286 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
11287 to Emacs' syntax. Also fix the comment about set/not-set meanings
11288 since Emacs syntax is not the value 0 any more.
11289 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
11290 since it's now part of RE_SYNTAX_EMACS.
11291
11292 2000-02-12 Dave Love <fx@gnu.org>
11293
11294 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
11295
11296 2000-02-12 Gerd Moellmann <gerd@gnu.org>
11297
11298 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
11299
11300 2000-02-12 Dave Love <fx@gnu.org>
11301
11302 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
11303
11304 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
11305 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
11306 * s/hpux.h: Don't define HAVE_VFORK.
11307
11308 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
11309
11310 * s/nextstep.h: Don't define HAVE_ALLOCA.
11311
11312 * config.in: Add vfork bits.
11313
11314 2000-02-12 Gerd Moellmann <gerd@gnu.org>
11315
11316 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
11317 unwind function to undo the effect of stopping atimers.
11318
11319 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
11320
11321 * atimer.c (stopped_atimers): New variable.
11322 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
11323 New functions.
11324
11325 * atimer.h (stop_other_atimers, run_all_atimers)
11326 (unwind_stop_other_atimers): Add function prototypes.
11327
11328 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
11329
11330 2000-02-11 Ken Raeburn <raeburn@gnu.org>
11331
11332 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
11333 library may depend on jpeg.
11334 (atimer.o): Depends on atimer.c.
11335
11336 2000-02-11 Kenichi Handa <handa@etl.go.jp>
11337
11338 * insdel.c (del_range_1): Call update_compositions.
11339 (del_range_both): Call update_compositions just once..
11340
11341 2000-02-10 Dave Love <fx@gnu.org>
11342
11343 * xfns.c (create_frame_xic): Fix initialization of automatic
11344 aggregates for pcc.
11345
11346 2000-02-09 Kenichi Handa <handa@etl.go.jp>
11347
11348 * ccl.c (CCL_MAKE_CHAR): New macro.
11349 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
11350 registers by CCL_MAKE_CHAR before calling translate_char.
11351 <CCL_TranslateCharacterConstTbl> Likewise.
11352
11353 2000-02-08 Dave Love <fx@gnu.org>
11354
11355 * lread.c (__EXTENSIONS__): Define.
11356
11357 2000-02-08 Gerd Moellmann <gerd@gnu.org>
11358
11359 * puresize.h (BASE_PURESIZE): Increase to 650000.
11360
11361 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
11362
11363 * msdos.c (XMenuActivate): Turn off the cursor after displaying
11364 the help message.
11365
11366 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
11367
11368 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
11369 md, mh, mb, mr, and me to the fake termcap entry.
11370
11371 2000-02-06 Ken Raeburn <raeburn@gnu.org>
11372
11373 * sound.c (sound_cleanup): Don't call device close routine if the
11374 function pointer is null.
11375
11376 2000-02-06 Andrew Innes <andrewi@gnu.org>
11377
11378 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
11379 around image definitions and prototypes.
11380 (gamma_correct) [WINDOWSNT]: New prototype.
11381
11382 * w32term.c (x_make_frame_visible): Replace call to
11383 input_poll_signal with poll_for_input.
11384
11385 * window.c [WINDOWSNT]: Include w32term.h.
11386
11387 * xdisp.c [WINDOWSNT]: Include w32term.h.
11388
11389 * makefile.nt: Add dependencies on w32gui.h.
11390 (OBJ1): Include atimer.obj.
11391 ($(BLD)\atimer.obj): New dependency rule.
11392
11393 * w32.c (sigmask): New function (does nothing).
11394 (sigunblock): Ditto.
11395
11396 * frame.c [WINDOWSNT]: Include w32term.h.
11397
11398 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
11399
11400 * lread.c (syms_of_lread): Fix literal newlines.
11401
11402 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
11403 the string constant limit (2048 bytes) in MSVC.
11404 (main): Ditto.
11405
11406 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
11407
11408 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
11409 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
11410 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
11411 dispatch the event.
11412
11413 2000-02-04 Dave Love <fx@gnu.org>
11414
11415 * fileio.c: Remove some unused vars.
11416 (_GNU_SOURCE): Define (for euidaccess).
11417
11418 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
11419
11420 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
11421 gcpro1, gcpro2.
11422 (read_minibuf): Deal with allow_props correctly.
11423
11424 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
11425
11426 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
11427
11428 2000-02-03 Ken Raeburn <raeburn@gnu.org>
11429
11430 * search.c (compile_pattern): If a cache entry has a nil regexp,
11431 fill in that entry instead of clobbering a previously cached
11432 string regexp.
11433
11434 2000-02-02 Ken Raeburn <raeburn@gnu.org>
11435
11436 * puresize.h (BASE_PURESIZE): Increase to 610000.
11437
11438 2000-02-02 Gerd Moellmann <gerd@gnu.org>
11439
11440 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
11441 can GC.
11442
11443 2000-02-02 Kenichi Handa <handa@etl.go.jp>
11444
11445 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
11446 instead of incrementing ic directly.
11447 <CCL_WriteExprConst> Likewise.
11448 <ccl_set_expr>: Set ic to jump_address.
11449
11450 * fileio.c (e_write): Fix the handling of
11451 CODING_FINISH_INSUFFICIENT_SRC.
11452
11453 2000-02-01 Dave Love <fx@gnu.org>
11454
11455 * editfns.c (Fpropertize): Doc fix.
11456
11457 * process.c (Fstart_process): Doc fix.
11458
11459 * eval.c: Fix various doc strings not to duplicate information
11460 from help-manyarg-func-alist.
11461
11462 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
11463
11464 * doc.c (Vhelp_manyarg_func_alist): New variable.
11465 (Fdocumentation): Use it.
11466 (syms_of_doc): Define it.
11467
11468 2000-01-31 Gerd Moellmann <gerd@gnu.org>
11469
11470 * xterm.c (xim_open_dpy): Remove unused local variable.
11471
11472 * emacs.c (USAGE): Use term `display options' instead of `X options'.
11473
11474 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
11475 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
11476
11477 * fns.c (sweep_weak_table): New function.
11478 (sweep_weak_hash_tables): Use it. Keep on marking until there
11479 is no more change.
11480
11481 2000-01-30 Gerd Moellmann <gerd@gnu.org>
11482
11483 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
11484 that XTread_socket does not crash by trying to call XNoOp on a
11485 closed display.
11486
11487 2000-01-30 Jason Rumney <jasonr@gnu.org>
11488
11489 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11490 Change selected_frame to SELECTED_FRAME ().
11491 (w32_console_mouse_position): Remove #ifndef MULE from around
11492 `insist' parameter.
11493
11494 * makefile.nt: Remove dosfns.obj.
11495
11496 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
11497
11498 * w32fns.c (w32_defined_color): Check for valid frame before
11499 applying gamma correction. Eliminate dependency on frame elsewhere.
11500 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
11501 (w32_to_x_font): Use resx and resy not height_in and width_in.
11502 (x_to_w32_font): Doc fix.
11503 (xlfd_strip_height): New function to strip and return font height.
11504 (w32_font_match): Compare height separately from rest of xlfd
11505 spec, using xlfd_strip_height.
11506
11507 * w32term.c (w32_term_init): Swap resx and height_in, resy and
11508 width_in. Use w32_defined_color in place of defined_color.
11509
11510 * w32faces.c: Merge more of DOS and X specifics in preparation for
11511 merge with xfaces.c.
11512 (defined_color): Remove FIXME comment.
11513 (tty_color_name): Provide w32-specific function.
11514 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
11515
11516 * w32console.c (turn_on_face, turn_off_face): Removed.
11517 (w32_face_attributes): New function.
11518 (Global_variables): Reduce scope where possible.
11519 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
11520 fill attribute.
11521 (hl_mode): Don't modify text attributes.
11522 (write_glyphs): Don't do anything if len <= 0. Use
11523 w32_face_attributes to get attributes for drawing. Write
11524 terminating codes using char_attr_normal.
11525 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
11526 (update_begin, update_end): Likewise.
11527 (vga_stdcolor_name): New function.
11528 (initialize_w32_display): Remove char_attr_reverse and char_attr.
11529 (Fset_screen_color): Remove char_attr_reverse.
11530
11531 2000-01-29 Gerd Moellmann <gerd@gnu.org>
11532
11533 * xfns.c (xic_set_preeditarea): Take window parameter and
11534 window-relative pixel-positions.
11535
11536 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
11537 is its frame's selected window.
11538 (xim_instantiate_callback): Likewise.
11539
11540 * xfns.c (x_create_im): Removed.
11541 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
11542 (supported_xim_styles): Renamed from supported_styles.
11543 (best_xim_style): Renamed from best_style.
11544 (create_frame_xic): Renamed from xic_create_frame.
11545 (free_frame_xic): Renamed from xic_destroy_frame.
11546
11547 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
11548
11549 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
11550 our frames, call XFilterEvent with 2nd parameter `None'.
11551 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
11552 returning XBufferOverflow.
11553 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
11554 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
11555 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
11556 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
11557 (xim_initialize, xim_close)
11558 [HAVE_X_I18N && HAVE_X11R6]: New functions.
11559 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
11560 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
11561 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
11562
11563 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
11564 and `xim_styles'.
11565 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
11566 `xic_style' and `xic_xfs'.
11567 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
11568 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
11569 (FRAME_XIM): Removed.
11570
11571 * xfns.c (supported_styles): New variable.
11572 (DEFAULT_STYLE, DEFAULT_FONT): New macros
11573 (xic_create_xfontset, best_style, xic_create_frame)
11574 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
11575 (xic_set_xfontset): New functions.
11576
11577 2000-01-28 Dave Love <fx@gnu.org>
11578
11579 * s/irix6-5.h: Revert last change after change to irix5-0.h.
11580
11581 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
11582
11583 2000-01-28 Gerd Moellmann <gerd@gnu.org>
11584
11585 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
11586 for *scratch* if it already existed.
11587
11588 * emacs.c (USAGE): New macro.
11589 (main): Use it to display usage information.
11590
11591 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
11592
11593 Support for the menu-help feature:
11594
11595 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
11596
11597 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
11598 part of the line to the termscript file.
11599 (IT_clear_to_end): Clear the entire line, not just its beginning.
11600 (menu_help_message, prev_menu_help_message): New variables.
11601 (IT_menu_make_room): Make room for the help_text member.
11602 (IT_menu_display): New argument disp_help; all callers changed.
11603 If disp_help is non-zero, store the help text of the active menu
11604 item in menu_help_message.
11605 (XMenuAddPane): Initialize the help_text member to NULL.
11606 (XMenuAddSelection): New argument help_text. Store it in the
11607 XMenu structure.
11608 (XMenuActivate): New argument help_callback. If the value of
11609 menu_help_message has changed since the last time, display the
11610 menu help message text while waiting for the mouse to move. Clear
11611 the echo area before exiting.
11612 (XMenuDestroy): Free the help_text member.
11613
11614 2000-01-27 Gerd Moellmann <gerd@gnu.org>
11615
11616 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
11617 XMenuAddSelection. Pass help callback to XMenuActivate.
11618 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
11619
11620 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
11621
11622 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
11623 and EMACS_SET_USECS.
11624
11625 2000-01-26 Dave Love <fx@gnu.org>
11626
11627 * editfns.c (Fchar_after, Fchar_before): Doc fix.
11628
11629 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
11630 an error may be signalled.
11631
11632 2000-01-26 Gerd Moellmann <gerd@gnu.org>
11633
11634 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
11635 LD_SWITCH_SYSTEM inherited from irix5-0.h.
11636
11637 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
11638
11639 2000-01-25 Gerd Moellmann <gerd@gnu.org>
11640
11641 * charset.c (Fstring): If there is a multibyte char among
11642 the args, always return a multibyte string.
11643
11644 2000-01-25 Gerd Moellmann <gerd@gnu.org>
11645
11646 * sysdep.c (sys_select): Turn atimers off and on instead of
11647 recording and restoring old alarm handler
11648
11649 * process.c (toplevel): Include atimer.h.
11650 (create_process_1): Rewritten.
11651 (create_process): Use atimers instead of alarm.
11652 (wait_reading_process_input) [hpux]: Turn atimers off instead
11653 of turning off SIGALRM.
11654 (wait_reading_process_input): Turn off atimers instead off
11655 calling stop_polling.
11656
11657 * emacs.c (main): Call init_atimer.
11658
11659 * keyboard.c (toplevel): Include systime.h and atimer.h.
11660 (polling_for_input): Removed because unused.
11661 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
11662 (poll_timer): New variable.
11663 (poll_for_input, poll_for_input_1): New functions.
11664 (start_polling, stop_polling): Rewritten.
11665
11666 * keyboard.h (polling_for_input): Removed.
11667
11668 * atimer.h, atimer.c: New files.
11669
11670 * Makefile.in (obj): Add atimer.o.
11671 (atimer.o): New target.
11672
11673 * blockinput.h (pending_atimers): Add extern declaration.
11674 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
11675
11676 * lisp.h (popup_activated_flag): Add extern declaration.
11677
11678 * xmenu.c (popup_activated_flag): Make externally visible.
11679 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
11680 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
11681
11682 * xterm.c (toplevel): Include atimer.h.
11683 (toolkit_scroll_bar_interaction): New variable.
11684 (Fxt_process_timeouts): Removed.
11685 (x_process_timeouts): New function.
11686 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
11687 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
11688 (x_make_frame_visible): Call poll_for_input_1 instead of
11689 input_poll_signal. Don't call alarm.
11690 (x_initialize): Install timer calling x_process_timeouts.
11691
11692 2000-01-24 Dave Love <fx@gnu.org>
11693
11694 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
11695 Don't use -cckr -- apparently not now necessary.
11696
11697 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
11698
11699 * msdos.c (IT_menu_display): Truncate long menu lines at the right
11700 screen boundary.
11701
11702 2000-01-23 Jason Rumney <jasonr@gnu.org>
11703
11704 * w32fns.c (w32_defined_color): Apply gamma correction before
11705 trying to map to the palette.
11706 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
11707 to w32_clear_rect.
11708
11709 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
11710 here. Callers changed to always pass real device context.
11711 (w32_draw_bitmap): Likewise.
11712 (w32_get_glyph_overhangs): Likewise.
11713 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
11714 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
11715 pfnSetScrollInfo and SetScrollRange.
11716 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
11717 back into MULE characters after decoding them.
11718 (x_get_glyph_face_and_encoding): Likewise.
11719 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
11720 GetCharABCWidthsW fails, since this is defined on Windows 9x.
11721 (x_produce_glyphs): Calculate per char metrics for a character
11722 that we know exists in default font when font_not_found_p is true.
11723
11724 2000-01-22 Jason Rumney <jasonr@gnu.org>
11725
11726 * makefile.nt (intervals.obj, composite.obj): New modules.
11727 (composite.h): Added as dependency where appropriate.
11728
11729 * w32gui.h (XGCValue): New struct for emulating X GCs.
11730
11731 * w32term.h (XCharStruct): New struct for emulating X.
11732
11733 * w32console.c (turn_on_face, turn_off_face): New functions.
11734 (change_line_highlight): New prototype for new redisplay.
11735 (write_glyphs): Support multibyte text. Support faces.
11736
11737 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
11738
11739 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
11740 throughout. struct frame * in place of FRAME_PTR.
11741 Skeleton support for images, toolbars, tooltips from xfns.c.
11742 (Fx_create_frame): Use system default for default scroll bar width.
11743 (w32_get_arg): Renamed from x_get_arg.
11744 (Fx_file_dialog): New function.
11745 (w32_list_fonts): Check cache before asking system.
11746 (Vw32_enable_synthesized_fonts): New variable.
11747 (Vw32_enable_italics): Obsolete, removed.
11748
11749 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11750 Use SELECTED_FRAME macro.
11751
11752 * w32menu.c: Add skeleton support for help strings on menus.
11753 (add_menu_item): Native checkbox and radio support added, but not
11754 yet enabled due to bugs.
11755 (push_menu_item): Add parameters type, selection and help.
11756 Callers updated.
11757 Formatting changes to reduce unnecessary diffs with xmenu.c.
11758
11759 * w32select.c (Fw32_set_clipboard_data): Update call to
11760 find_charset_in_str.
11761
11762 * w32term.c: Complete rewrite for new redisplay based on new
11763 xterm.c with necessary sections merged back in from old w32term.c.
11764
11765 2000-01-21 Richard M. Stallman <rms@gnu.org>
11766
11767 * data.c (set_internal): Further fix in same criterion.
11768
11769 2000-01-20 Richard M. Stallman <rms@gnu.org>
11770
11771 * data.c (set_internal): Fix the criteria for whether
11772 to swap out the old cached binding.
11773
11774 2000-01-19 Dave Love <fx@gnu.org>
11775
11776 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
11777
11778 2000-01-18 Kenichi Handa <handa@etl.go.jp>
11779
11780 * regex.c (re_compile_fastmap): While checking a range table for
11781 `charset', skip flag bits for a character class correctly.
11782
11783 2000-01-17 Gerd Moellmann <gerd@gnu.org>
11784
11785 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
11786
11787 * xfns.c (x_window): Call lw_create_widget with new parameter list.
11788
11789 * widget.c (EmacsFrameSetCharSize): Change size of children first
11790 because of problems with main window geometry management under Lesstif.
11791
11792 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
11793 MENU_ITEMS_ITEM_.*.
11794 (MENU_ITEMS_ITEM_HELP): New enumerator.
11795 (push_menu_item): Add parameter HELP. Record help in menu_items.
11796 (single_menu_item, single_submenu, list_of_items): Call
11797 push_menu_item with new parameter.
11798 (single_submenu): Set help string in widget value.
11799 (menu_highlight_callback): New function.
11800 (set_frame_menubar): Call lw_create_widget with new
11801 parameter list.
11802 (xmenu_show, xdialog_show): Ditto.
11803
11804 2000-01-13 Gerd Moellmann <gerd@gnu.org>
11805
11806 * sound.c (Fplay_sound): Improve doc string.
11807
11808 2000-01-11 Richard M. Stallman <rms@gnu.org>
11809
11810 * lisp.h (set_internal): Enter the new arg.
11811
11812 * eval.c (specbind): Record buffer-local variables specially,
11813 indicating which buffer's binding was saved.
11814 (unbind_to): Restore buffer-local variables specially
11815 in the proper buffer.
11816
11817 * data.c (set_internal): New arg BUF.
11818
11819 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
11820 * data.c (Fset): Pass new arg to set_internal.
11821 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
11822
11823 2000-01-11 Gerd Moellmann <gerd@gnu.org>
11824
11825 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
11826
11827 2000-01-11 Richard M. Stallman <rms@gnu.org>
11828
11829 * minibuf.c (Ftry_completion): Doc fix.
11830
11831 2000-01-11 Gerd Moellmann <gerd@gnu.org>
11832
11833 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
11834 vector, too.
11835
11836 2000-01-11 Andreas Schwab <schwab@suse.de>
11837
11838 * coding.c (code_convert_region): Initialize total_skip.
11839
11840 2000-01-08 Dave Love <fx@gnu.org>
11841
11842 * eval.c (Fuser_variable_p): Check customizability too.
11843
11844 2000-01-07 Gerd Moellmann <gerd@gnu.org>
11845
11846 * minibuf.c (Fcompleting_read): Doc fix.
11847
11848 2000-01-05 Gerd Moellmann <gerd@gnu.org>
11849
11850 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
11851 -L /usr/local/lib.
11852
11853 * xfns.c (x_create_im): New function to set IM and IC of a frame.
11854 Check that input style is supported before trying to create an
11855 IC for it.
11856 (x_window): Call x_create_im.
11857
11858 2000-01-04 Gerd Moellmann <gerd@gnu.org>
11859
11860 * xfns.c (current_gif_memory_src): New variable.
11861 (gif_load): Record the address of the current memory source
11862 in current_gif_memory_src.
11863 (gif_read_from_memory): Use current_gif_memory_src.
11864
11865 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
11866 macros statement form.
11867
11868 * sound.c (struct sound): Renamed from struct sound_file.
11869 (struct sound): Add members `data' and `header_size'.
11870 (enum sound_attr): Add SOUND_DATA.
11871 (current_sound, current_sound_device): Variables renamed from
11872 sound_file and sound_device.
11873 (parse_sound): Parse :data.
11874 (parse_sound): Handle sound data in strings.
11875 (find_sound_type): Function renamed from find_sound_file_type.
11876 (wav_init, au_init): Fail if sound's header_size is smaller than
11877 needed header size.
11878 (wav_play, au_play): Play sounds from string data.
11879
11880 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
11881
11882 * lisp.h: Add prototype for allocate_string_data.
11883
11884 * alloc.c (Fgarbage_collect): Return number of live and free strings.
11885
11886 * alloc.c (mark_buffer): Remove code in #if 0.
11887 (gc_sweep): Ditto.
11888 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
11889 (strings_consed): New variable.
11890 (allocate_string): Set it.
11891 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
11892 (Fmemory_use_counts): Return strings_consed. Use Flist.
11893
11894 * alloc.c: General cleanup in comments etc. Remove conditional
11895 compilation for `standalone'.
11896
11897 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
11898
11899 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
11900 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
11901 (DONT_COPY_FLAG): Removed.
11902 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
11903 (struct sdata, struct sblock): New
11904 (struct string_block): Rewritten.
11905 (STRINGS_IN_STRING_BLOCK): New macro.
11906 (oldest_sblock, current_sblock, total_strings, total_free_strings)
11907 (large_sblocks, string_blocks, string_free_list): New variables.
11908 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
11909 (init_strings): Rewritten.
11910 (allocate_string, allocate_string_data, compact_small_strings)
11911 (free_large_strings, sweep_strings): New functions.
11912 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
11913 (struct string_block_head, current_string_block)
11914 (first_string_block, large_string_blocks, STRING_FULLSIZE)
11915 (STRING_PAD): Removed.
11916 (make_uninit_multibyte_string, make_pure_string): Rewritten.
11917 (Fgarbage_collect): Don't set mark bit in large strings.
11918 (mark_object): Mark strings differently. Mark symbol names
11919 differently.
11920 (survives_gc_p): Test marked strings differently.
11921 (gc_sweep): Sweep strings differently, unmark strings in
11922 symbol names.
11923 (compact_strings): Removed.
11924
11925 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
11926
11927 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
11928 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
11929
11930 2000-01-04 Kenichi Handa <handa@etl.go.jp>
11931
11932 * fileio.c (Finsert_file_contents): Signal error if visiting file
11933 in a non-empty buffer.
11934
11935 * term.c (encode_terminal_code): Fix the previous change.
11936
11937 2000-01-03 Gerd Moellmann <gerd@gnu.org>
11938
11939 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
11940 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
11941
11942 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
11943
11944 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11945
11946 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
11947 need to test for MSDOS frames.
11948
11949 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11950
11951 * dosfns.c (unspecified_colors): Remove.
11952 (msdos_stdcolor_idx): Use global variables unspecified_fg and
11953 unspecified_bg.
11954 (msdos_stdcolor_name): Return strings for unspecified fore- and
11955 back-ground colors.
11956
11957 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
11958 (syms_of_xfaces): Remove their staticpro's.
11959 (tty_color_name): Return Lisp strings for unspecified fore- and
11960 back-ground colors.
11961 (Finternal_set_lisp_face_attribute): Remove the special treatment
11962 for Qunspecified_{f,b}g.
11963 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
11964
11965 2000-01-03 Gerd Moellmann <gerd@gnu.org>
11966
11967 * xdisp.c (reseat_at_next_visible_line_start): Position before
11968 newline only if ending up on a newline.
11969 (next_element_from_ellipsis): Return success. Handle case of
11970 displaying no ellipsis. Fix case of ellipsis defined in display table.
11971 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
11972 returns 0.
11973
11974 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11975
11976 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
11977 (Fcolor_supported_p): Renamed from face-color-supported-p.
11978
11979 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11980
11981 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
11982 list of colors renamed to tty-defined-color-alist.
11983 (tty_color_name): Pass the frame to tty-color-by-index.
11984 (realize_tty_face): tty-color-alist is now a function which
11985 accepts the frame as argument.
11986
11987 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
11988
11989 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11990
11991 * term.c (insert_glyphs): Pass glyph, not &glyph, to
11992 encode_terminal_code.
11993
11994 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11995
11996 * dispnew.c (mode_line_string): Support termcap frames as well.
11997
11998 2000-01-01 Gerd Moellmann <gerd@gnu.org>
11999
12000 * syntax.c (Fforward_word): Undo previous change.
12001
12002 * editfns.c (Fconstrain_to_field): Don't constrain if
12003 inhibit-field-text-motion is non-nil.
12004 (Fline_beginning_position): Undo previous change.
12005 (Fline_end_position): Ditto.
12006
12007 * syntax.c (Fforward_word): Notice field boundaries only if
12008 inhibit-field-text-motion is nil.
12009
12010 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
12011
12012 * editfns.c (Vinhibit_field_text_motion): New variable.
12013 (inhibit-field-text-motion): New DEFVAR_LISP.
12014 (Fline_beginning_position, Fline_end_position): Notice field
12015 boundaries only if inhibit-field-text-motion is nil.
12016
12017 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
12018 All calls adjusted.
12019 (x_build_heuristic_mask): Likewise.
12020 (xbm_load_image_from_file): Change error output.
12021 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
12022 (gif_load, gs_load, x_kill_gs_process): Ditto.
12023
12024 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
12025 color indices when accessing raster pixels.
12026 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
12027 one of :file or :data.
12028 (enum pbm_keyword_index): Add PBM_DATA.
12029 (pbm_format): Add :data.
12030 (pbm_image_p): Allow either :file or :data.
12031 (pbm_read_file): New function.
12032 (pbm_scan_number): Rewritten to read from string.
12033 (pbm_load): Support :data.
12034
12035 See ChangeLog.8 for earlier changes.
12036
12037 ;; Local Variables:
12038 ;; coding: iso-2022-7bit
12039 ;; End: