Trailing whitespace deleted.
[bpt/emacs.git] / src / ChangeLog
1 2003-02-04 Richard M. Stallman <rms@gnu.org>
2
3 * keyboard.c (echo_now): Update before_command_echo_length.
4 (Freset_this_command_lengths): Reset this_command_key_count etc.
5 immediately rather than arranging to do it later.
6 (before_command_key_count_1, before_command_echo_length_1)
7 (before_command_restore_flag): Vars deleted.
8 (add_command_key): Don't handle before_command_restore_flag.
9 (read_char, record_menu_key): Don't update before_command_key_count or
10 before_command_echo_length.
11 (read_char): Don't handle before_command_restore_flag.
12
13 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
14 in direct-output clauses if it wouldn't be called in the ordinary case.
15
16 2003-02-04 Kim F. Storm <storm@cua.dk>
17
18 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
19
20 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21
22 * gtkutil.c (remove_from_container): Copying list is not needed.
23 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
24 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
25 on list returned from gtk_container_get_children to avoid memory leak.
26
27 2003-02-01 Jason Rumney <jasonr@gnu.org>
28
29 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
30 local malloc.
31 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
32 definitions in xpm.h.
33 (init_xpm_functions): New function.
34 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
35 (init_external_image_libraries): Try to load libXpm.dll.
36
37 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
38 timestamp.
39
40 2003-01-31 Dave Love <fx@gnu.org>
41
42 * syntax.c (Fskip_chars_forward)
43 (open-paren-in-column-0-is-defun-start): Doc fix.
44
45 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
46
47 * fileio.c: Support // at start of name for Cygwin (just added proper
48 preprocessor tests).
49
50 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
51
52 * Makefile.in: Use @EXEEXT@ for Cygwin.
53
54 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
55
56 * s/cygwin.h: Added for Cygwin port.
57
58 2003-01-31 Juanma Barranquero <lektu@terra.es>
59
60 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
61 when including gif_lib.h.
62 (init_gif_functions, init_tiff_functions): New functions.
63 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
64 Windows. Disable color table lookups. Call library functions
65 through pointers determined at runtime.
66 (init_external_image_libraries): Try to load libungif.dll and
67 libtiff.dll.
68
69 2003-01-31 Kenichi Handa <handa@m17n.org>
70
71 * xdisp.c (SKIP_GLYPHS): New macro.
72 (set_cursor_from_row): Skip all glyphs that comes from overlay
73 string.
74
75 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
76
77 * gtkutil.c (free_frame_tool_bar): Removed debug printf.
78
79 2003-01-30 Dave Love <fx@gnu.org>
80
81 * alloc.c (Vgc_elapsed, gcs_done): New variables.
82 (Fgarbage_collect): Use them.
83 (init_alloc, syms_of_alloc): Set them up.
84
85 2003-01-30 Juanma Barranquero <lektu@terra.es>
86
87 * w32fns.c (init_external_image_libraries): Add missing operator.
88
89 2003-01-29 Jason Rumney <jasonr@gnu.org>
90
91 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
92 an alternative name for jpeg.dll.
93
94 2003-01-29 Kenichi Handa <handa@m17n.org>
95
96 * xdisp.c (set_cursor_from_row): Pay attention to string display
97 properties.
98
99 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
100
101 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
102 <escape>.
103 (keycode_to_xkeysym_table): Reformat and add more comments.
104 (XTread_socket): Drop special case for backspace.
105
106 2003-01-28 Andrew Choi <akochoi@shaw.ca>
107
108 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
109 values in old-style RGB specs.
110
111 2003-01-27 Juanma Barranquero <lektu@terra.es>
112
113 * w32fns.c (init_external_image_libraries): Try alternate names for the
114 jpeg dll.
115
116 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
117
118 * gtkutil.c (create_dialog, xg_separator_p)
119 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
120 before calling strcmp or strlen.
121
122 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
123
124 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
125 and handle image load failure.
126
127 2003-01-26 Jason Rumney <jasonr@gnu.org>
128
129 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
130 New functions.
131 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
132 Disable color table lookups. Call jpeg library functions
133 through pointers determined at runtime.
134 (init_external_image_libraries): Try to load jpeg.dll.
135
136 2003-01-25 Richard M. Stallman <rms@gnu.org>
137
138 * lisp.h: Declare format2 instead of format1.
139
140 * fileio.c (barf_or_query_if_file_exists):
141 Call format2 instead of format1.
142
143 * editfns.c (format2): New function, replaces format1
144 but takes exactly two Lisp Objects as format args.
145
146 * buffer.c (Fkill_buffer): Call format2 instead of format1.
147
148 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
149
150 * xterm.h: Change to return value of x_dispatch_event to int.
151
152 * xterm.c (x_filter_event): New function.
153 (event_handler_gdk, XTread_socket): Call x_filter_event.
154 (x_dispatch_event): Change to return value of finish.
155 (event_handler_gdk): Use return value from x_dispatch_event.
156
157 * xfns.c (x_window): Call create_frame_xic for GTK version to
158 initialize input methods.
159
160 * gtkutil.h: Add (void) prototypes.
161
162 * gtkutil.c (create_menus): Remove code that puts the help menu to
163 the right.
164
165 2003-01-25 Jason Rumney <jasonr@gnu.org>
166
167 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
168 [HAVE_PNG]: Sync with xfns.c version.
169 (png_load): Adjust colors for Windows. Use Windows
170 bitmaps. Disable color table lookups.
171 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
172 (init_png_functions): New function.
173 (png_read_from_memory, png_load): Call png library functions
174 through pointers determined at runtime.
175 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
176 (init_external_image_libraries): New function.
177 (init_xfns): Call it.
178
179 2003-01-24 Andreas Schwab <schwab@suse.de>
180
181 * minibuf.c (Fminibuffer_message): Verify type of parameter.
182
183 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
184
185 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
186 of static initializer.
187
188 2003-01-24 Dave Love <fx@gnu.org>
189
190 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
191 architectures.
192
193 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
194 Use __alignof__.
195
196 2003-01-24 Kenichi Handa <handa@m17n.org>
197
198 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
199 It it is nonzero, don't pretend that an invisible area doesn't
200 exist.
201 (command_loop_1): Call adjust_point_for_property with proper
202 second arg.
203
204 2003-01-22 Jason Rumney <jasonr@gnu.org>
205
206 Sync changes with xterm.c and xfns.c.
207
208 * w32term.c (x_draw_glyph_string_foreground)
209 (x_draw_composite_glyph_string_foreground): Implement overstriking.
210
211 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
212 phys_cursor's hpos is overwritten. This is still not completely
213 correct, as it doesn't really make sense to use hpos at all to
214 get the cursor glyph (as that is relative to the width of the
215 characters on the line, which may have changed during the update).
216
217 * w32term.c (notice_overwritten_cursor): Handle the special case
218 of the cursor being in the first blank non-text line at the
219 end of a window.
220
221 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
222 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
223 Compute from the x position returned by x_draw_glyphs.
224
225 (x_display_and_set_cursor): Don't set phys_cursor_width here,
226 except for NO_CURSOR and system caret, to make phys_cursor_width
227 contain what its name suggests.
228 (notice_overwritten_cursor): Consider the cursor image erased if
229 the output area intersects the cursor image in y-direction.
230
231 * w32term.c (note_mode_line_or_margin_highlight): Renamed from
232 note_mode_line_highlight and extended.
233
234 * w32term.c (last_window): New variable.
235 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
236 (note_mouse_movement): Remove reimplemented code in #if 0.
237
238 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
239 not update_mode_lines, and always set it to 1.
240
241 2003-01-21 Jason Rumney <jasonr@gnu.org>
242
243 * w32fns.c (IDC_HAND): Define it if system headers don't.
244
245 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
246
247 * w32term.h (struct w32_output): New member hand_cursor.
248 (WM_EMACS_SETCURSOR): New message definition.
249
250 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
251 function w32_define_cursor.
252 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
253 position, change member name output_data.x to output_data.w32 and
254 add function w32_define_cursor.
255 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
256 and change member name output_data.x to output_data.w32.
257 (w32_initialize_display_info): Setup
258 dpyinfo->vertical_scroll_bar_cursor.
259
260 * w32fns.c (Vx_hand_shape): New variable.
261 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
262 WM_EMACS_SETCURSOR.
263 (x-create-frame): Setup Cursor types.
264
265 2003-01-21 David Ponce <david@dponce.com>
266
267 * w32term.c (w32_encode_char): For DIM=1 charset, set
268 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
269 x_encode_char change by Kenichi Handa <handa@m17n.org> on
270 2002-09-30.)
271 (w32_draw_relief_rect): Declare all args.
272 (w32_define_cursor): New.
273
274 * w32fns.c (w32_load_cursor): New function.
275 (w32_init_class): Use it.
276 (x_put_x_image): Declare all args.
277
278 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
279
280 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
281
282 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
283
284 * gtkutil.c: Must include stdio.h before termhooks.h
285
286 2003-01-21 Dave Love <fx@gnu.org>
287
288 * alloc.c (Fgc_status): Print zombie list.
289 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
290 Fix assignment of zombies.
291 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
292 Don't take car of non-cons.
293
294 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
295
296 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
297
298 2003-01-20 David Ponce <david@dponce.com>
299
300 * w32menu.c (digest_single_submenu): Declare all args.
301
302 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
303 changes in xmenu.c:
304
305 (parse_single_submenu): Use individual keymap's prompt
306 string as pane name, if there is one.
307 (set_frame_menubar): Save menu_items_n_panes from each call to
308 parse_single_submenu and use it when calling digest_single_submenu.
309
310 2003-01-20 Steven Tamm <steventamm@mac.com>
311
312 * macterm.c (XTread_socket): Checks for valid, visible window
313 before sending a scroll-wheel event.
314
315 2003-01-20 Richard M. Stallman <rms@gnu.org>
316
317 * xdisp.c (redisplay_window): If mini window's buffer is not
318 a minibuffer, then redisplay it like other windows.
319
320 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
321
322 * gtkutil.c (xg_create_frame_widgets): Check if there is an
323 external tool bar before setting tool bar height.
324
325 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
326
327 * xterm.c (handle_one_xevent): Surround popup_activated
328 with #ifdef:s for non-toolkit version.
329
330 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
331 (gtkutil.o): New file.
332 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
333 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
334
335 * gtkutil.c: New file for GTK version.
336
337 * gtkutil.h: New file for GTK version.
338
339 * xterm.h: Add xt_or_gtk_widget.
340 Include gtk files for USE_GTK.
341 (struct x_output): Add toolbar_height.
342 (struct x_output): Add GTK widgets and Gdk size_hints.
343 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
344 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
345 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
346
347 * xterm.c: Include gtkutil.h for USE_GTK.
348 Declare extern void free_frame_menubar for USE_GTK.
349 (note_mouse_highlight): Check popup_activated for USE_GTK.
350 (xt_action_hook): Don't compile if USE_GTK.
351 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
352 (xg_scroll_callback): New function.
353 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
354 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
355 for USE_GTK.
356 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
357 xg_show_scroll_bar for USE_GTK.
358 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
359 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
360 (event_handler_gdk): New function for USE_GTK.
361 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
362 (handle_one_xevent): Make sure widget is mapped before
363 calling x_real_positions for USE_GTK.
364 (XTread_socket): Add GTK event loop for USE_GTK.
365 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
366 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
367 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
368 (x_iconify_frame): Add code for USE_GTK.
369 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
370 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
371 is in gtkutil.c.
372 (x_term_init): Add initialization for GTK.
373 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
374
375 * xmenu.c: Include gtkutil.h for USE_GTK.
376 (Fx_popup_menu): Use current position if x and y is NIL.
377 (single_menu_item, single_menu_item, Fx_popup_dialog): Check
378 for USE_GTK.
379 (popup_widget_loop): New function for USE_GTK.
380 (x_activate_menubar): Add code for USE_GTK.
381 (popup_activate_callback, popup_deactivate_callback)
382 (menu_highlight_callback, menubar_selection_callback): USE_GTK versions
383 added.
384 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
385 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
386 (free_frame_menubar): Only compile if not USE_GTK. GTK version
387 is in gtkutil.c.
388 (popup_selection_callback): New version for USE_GTK.
389 (create_and_show_popup_menu): New fuction, one USE_GTK version and
390 one USE_X_TOOLKIT version.
391 (xmenu_show): Call create_and_show_popup_menu.
392 (dialog_selection_callback): New version for USE_GTK.
393 (create_and_show_dialog): New fuction, one USE_GTK version and
394 one USE_X_TOOLKIT version.
395 (xdialog_show): Call create_and_show_dialog.
396
397 * xfns.c: Include gtkutil for USE_GTK.
398 (x_window_to_frame, x_any_window_to_frame)
399 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
400 (x_top_window_to_frame): Add code for USE_GTK.
401 (x_set_background_color): Call xg_set_background_color for GTK.
402 (x_set_menu_bar_lines): Check for USE_GTK.
403 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
404 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
405 (x_window): Call xg_create_frame_widgets for USE_GTK.
406 (Fx_create_frame): Check for USE_GTK
407 (Fx_file_dialog): New implementation for USE_GTK.
408
409 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
410 (update_menu_bar): Add check for USE_GTK.
411 (update_tool_bar): Add check for USE_GTK and external tool bar.
412 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
413 (redisplay_internal): Add check for USE_GTK and popup_activated.
414 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
415 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
416 (display_menu_bar): Add check for USE_GTK
417
418 * lisp.h: Declare Vx_resource_name extern.
419
420 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
421 for USE_GTK.
422 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
423
424 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
425 (FRAME_EXTERNAL_TOOL_BAR): New macro.
426 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
427
428 * fileio.c (Fread_file_name): Add check for USE_GTK.
429
430 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Add
431 check for USE_GTK.
432
433 * config.in: Added HAVE_GTK
434
435 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
436
437 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
438
439 * charset.h (Funibyte_char_to_multibyte): Export.
440
441 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
442
443 * xmenu.c (mouse_position_for_popup): New function.
444 (Fx_popup_menu): Call mouse_position_for_popup for X and
445 mouse_position_hook for others.
446
447 2003-01-17 Kim F. Storm <storm@cua.dk>
448
449 * editfns.c (Finsert): Mention `string-make-multibyte' and
450 `string-as-multibyte' in doc string.
451
452 2003-01-17 Kenichi Handa <handa@m17n.org>
453
454 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
455
456 * editfns.c (Fformat): Convert an unibyte char argument that is
457 formatted by "%c" to multibyte if the total result must be a
458 multibyte string.
459
460 2003-01-16 Kim F. Storm <storm@cua.dk>
461
462 * process.c (set-process-filter): Document unibyte/multibyte-ness
463 of string argument.
464
465 2003-01-16 Kenichi Handa <handa@m17n.org>
466
467 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
468
469 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
470 (re_search_2): Likewise.
471
472 2003-01-15 Kenichi Handa <handa@m17n.org>
473
474 * xdisp.c (message_dolog): Fix bug of the case that *Message*
475 buffer is unibyte.
476
477 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
478
479 * fns.c (Fsubstring): Clarify doc string.
480
481 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
482 (Fprevious_char_property_change)
483 (Fnext_single_char_property_change)
484 (Fprevious_single_char_property_change, Fnext_property_change)
485 (Fnext_single_property_change, Fprevious_property_change)
486 (Fprevious_single_property_change, Fadd_text_properties)
487 (Fput_text_property, Fset_text_properties)
488 (Fremove_text_properties, Fremove_list_of_text_properties)
489 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
490
491 2003-01-14 Kim F. Storm <storm@cua.dk>
492
493 * process.h (struct Lisp_Process): New member plist replaces old
494 member private_vars. All uses changed.
495
496 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
497 (QCplist): Renamed from QCvars. All uses changed.
498 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
499 (Fset_process_plist): Replaces Fset_process_variable. Simplified.
500 (syms_of_process): Intern, staticpro, defsubr these.
501 (Fmake_network_process): Describe :plist arg. Removed :vars arg.
502
503 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
504
505 * m/delta.h: Removed (obsolete).
506
507 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
508
509 * fileio.c (Fdelete_directory, Fdelete_file): Document the
510 behaviour in front of symlinks.
511 (Fdelete_file): Raise an error on directories.
512
513 2003-01-13 Dave Love <fx@gnu.org>
514
515 * fns.c (Freverse): Use QUIT.
516
517 2003-01-13 Richard M. Stallman <rms@gnu.org>
518
519 * minibuf.c (minibuffer_completion_contents):
520 Error if point is inside prompt.
521
522 * keyboard.c (command_loop_1): Don't redisplay directly
523 if there's a post-command-hook.
524
525 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
526 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
527
528 2003-01-12 Kim F. Storm <storm@cua.dk>
529
530 * process.h (struct Lisp_Process): New member private_vars.
531
532 * process.c (QCvars): New variable.
533 (syms_of_process): Intern and staticpro it.
534 (Fset_process_contact): Removed function.
535 (Fprocess_variable, Fset_process_variable): New functions.
536 (syms_of_process): Defsubr them.
537 (Fstart_process): Initialize private_vars plist to nil.
538 (Fmake_network_process): New arg :vars to setup the private
539 variables for new network process.
540 (server_accept_connection): Copy server's private variables to
541 client process.
542
543 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
544 crashes). Code rewritten and simplified. Now directly aligns the
545 pointer and recalculates pure_bytes_used, rather than aligning the
546 size and adjusting the pointer.
547
548 2003-01-11 Kim F. Storm <storm@cua.dk>
549
550 * process.c (Fset_process_contact): New function.
551 (syms_of_process): defsubr it.
552 (make-network-process): Update doc.
553
554 2003-01-10 Andreas Schwab <schwab@suse.de>
555
556 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
557 Reported by Berthold Gunreben <b.gunreben@web.de>.
558
559 2003-01-10 Dave Love <fx@gnu.org>
560
561 * composite.c (syms_of_composite): Make composition_hash_table weak.
562
563 2003-01-09 Kim F. Storm <storm@cua.dk>
564
565 * process.c (Fmake_network_process): Convert new port number
566 to host byte order for `:service t' case. From Mario Lang.
567
568 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
569
570 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
571 instead of XtAppProcessEvent.
572
573 * xterm.c (handle_one_xevent): New function.
574 (x_dispatch_event): New function.
575 (XTread_socket): Call handle_one_xevent.
576
577 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
578
579 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
580 call XQueryPointer to get coordinates.
581 (popup_get_selection): Do not set popup_activated_flag to zero,
582 let popup_deactivate_callback do that. Needed for Motif.
583 Call x_dispatch_event instead of XtDispatchEvent.
584 (xmenu_show): Calculate root coordinate from frame top/left position.
585
586 2003-01-08 Kim F. Storm <storm@cua.dk>
587
588 * process.c (server_accept_connection): Fixed recording of new
589 connection's local address in :local property of contact info.
590 (Fmake_network_process): Record local network address for new
591 client processes in :local property of contact info.
592 (format-network-address): Added arg OMIT-PORT. Callers changed.
593
594 2003-01-07 Dave Love <fx@gnu.org>
595
596 * Makefile.in (fns.o): Depend on coding.h.
597
598 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
599
600 * minibuf.c (Fread_variable): Doc fix.
601
602 * eval.c (Fuser_variable_p): Doc change. For custom variables,
603 use the same test as for custom-variable-p.
604
605 2003-01-05 Richard M. Stallman <rms@gnu.org>
606
607 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
608 Count LAST_LINE_MISFIT in scroll margin for end of window.
609 Move label too_near_end before setting SCROLL_MARGIN_POS.
610 Set LAST_LINE_MISFIT before jumping there.
611
612 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
613 scroll_conservatively case. If scrolling that much doesn't change
614 STARTP, move it down one line.
615
616 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
617 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
618
619 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
620 selected frame.
621
622 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
623 (syms_of_keymap): staticpro them.
624 (Fapropos_internal): Initialize them and clear them out.
625 Don't GCPRO them.
626
627 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
628 Doc fixes.
629
630 * lisp.h: New misc type Lisp_Save_Value.
631 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
632 (XSAVE_VALUE): New macro.
633 (struct Lisp_Save_Value): New data type.
634 (union Lisp_Misc): Add u_save_value alternative.
635 (make_save_value): Declared.
636
637 * alloc.c (make_save_value): New function.
638
639 * xterm.c (x_catch_errors): Save dpy using make_save_value.
640 (x_catch_errors_unwind): Call XSync.
641
642 2003-01-01 Richard M. Stallman <rms@gnu.org>
643
644 * window.c (window_scroll_pixel_based): Partially undo last change.
645
646 * keyboard.c (command_loop_1): Call adjust_point_for_property
647 in direct action cases for Qforward_char and Qbackward_char.
648 Set already_adjusted so it won't be done twice.
649
650 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
651
652 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
653 type definition of size_t.
654
655 2003-01-02 Steven Tamm <steventamm@mac.com>
656
657 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
658 distinguish Carbon GUI builds from X11 builds on darwin.
659
660 2002-12-30 Steven Tamm <steventamm@mac.com>
661
662 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
663 to default to t.
664
665 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
666
667 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
668
669 2002-12-28 Steven Tamm <steventamm@mac.com>
670
671 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
672 allow building in a different directory than source. Uses some
673 GNU Make extensions, but there is no other make on Mac OS X.
674
675 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
676
677 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
678 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
679 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
680 (Fstring_to_number): Mention the returned value in the doc strings.
681
682 2002-12-23 Richard M. Stallman <rms@gnu.org>
683
684 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
685 <scroll-down-aggressively>: Doc fix.
686
687 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
688 string as pane name, if there is one.
689 (set_frame_menubar): Save menu_items_n_panes from each call to
690 parse_single_submenu and use it when calling digest_single_submenu.
691
692 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
693 Don't try to make last line fully visible if it is past end of window.
694
695 2002-12-22 Steven Tamm <steventamm@mac.com>
696
697 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
698 (mac_menu_show): Add support for hierarchical popup menus.
699 (add_menu_item): Remove indentation support.
700 (fill_submenu, fill_menu): Create hierarchical menus
701 instead of using indentation.
702
703 2002-12-22 Richard M. Stallman <rms@gnu.org>
704
705 * xdisp.c (try_cursor_movement): Don't call try_window here.
706 (redisplay_window): Never redisplay minibuffer when inactive.
707
708 * window.c (select_window_1): Undo 9/21 change.
709
710 2002-12-22 Steven Tamm <steventamm@mac.com>
711
712 * macterm.c (XTread_socket): Call KeyTranslate for control and
713 meta to deal correctly shifted non-alpha characters, like C-S-5
714 being treated like C-%. Does not look for shift key to deal
715 with masking off control-key with mac-reverse-ctrl-meta.
716
717 2002-12-21 Richard M. Stallman <rms@gnu.org>
718
719 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
720 If it is non-nil, run timers. Use an unwind-protect to requeue
721 the events that were read ahead.
722 (popup_get_selection_unwind): New subroutine.
723 (popup_get_selection_queue): File-scope variable now holds that queue.
724 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
725 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
726 Use an unwind-protect to pop down the dialog box.
727 (xdialog_show_unwind): New subroutine implements that.
728
729 * xdisp.c (row_containing_pos): Change exit test using last_y.
730 (try_window_id): Abort if row_containing_pos returns null.
731
732 * lread.c (load_error_handler): New function.
733 (Fload): Handle errors in Fsubstitute_in_file_name.
734 Don't expect Fsignal to return.
735
736 * eval.c: Errors and throws work right with interrupt blocking.
737 (struct catchtag): New elt interrupt_input_blocked.
738 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
739 (internal_catch, Fcondition_case, internal_condition_case)
740 (internal_condition_case_1, internal_condition_case_2): Save it.
741 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
742
743 * editfns.c (Fformat): Add parens.
744
745 * dired.c (file_name_completion): Fix that change.
746 Delete special quit-handling code; just use QUIT.
747
748 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
749
750 * dired.c (file_name_completion): Close directory on error
751 just as in directory_files_internal.
752
753 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
754
755 * window.c (Fset_window_configuration): Set old_point to correct
756 value when new_current_buffer == current_buffer.
757
758 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
759
760 Revisited my earlier fix for the following entry in etc/PROBLEMS:
761 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
762 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
763
764 These changes were in part based upon suggestions made by Peter
765 'Luna' Runestig [peter@runestig.com].
766
767 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
768 g_b_init_get_token_information, g_b_init_lookup_account_sid,
769 g_b_init_get_sid_identifier_authority ): Added several static
770 global variables.
771
772 * w32.c (globals_of_w32): New function. Used to initialize those
773 global variables that must always be initialized on startup even
774 when the global variable initialized is non zero. Its primary
775 purpose at this time is to set the global variables
776 g_b_init_is_windows_9x, g_b_init_open_process_token,
777 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
778 g_b_init_get_sid_identifier_authority to 0 on startup.
779 Called from main.
780
781 * w32.c (is_windows_9x): Perform initialization only if
782 g_b_init_is_windows_9x is equal to 0. On initialization set
783 g_b_init_is_windows_9x equal to 1.
784
785 * w32.c (open_process_token): Perform initialization only if
786 g_b_init_open_process_token is equal to 0. On initialization set
787 g_b_init_open_process_token equal to 1.
788
789 * w32.c (get_token_information): Perform initialization only if
790 g_b_init_get_token_information is equal to 0. On initialization
791 set g_b_init_get_token_information equal to 1.
792
793 * w32.c (lookup_account_sid): Perform initialization only if
794 g_b_init_lookup_account_sid is equal to 0. On initialization
795 set g_b_init_lookup_account_sid equal to 1.
796
797 * w32.c (get_sid_identifier_authority): Perform initialization
798 only if g_b_init_get_sid_identifier_authority is equal to 0.
799 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
800
801 * w32fns.c (globals_of_w32fns): New function. Used to initialize
802 those global variables that must always be initialized on startup
803 even when the global variable initialized is non zero.
804 Its primary purpose at this time is to initialize the global variable
805 track_mouse_event_fn.
806
807 * w32fns.c (w32_wnd_proc): Remove initialization of
808 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
809
810 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
811
812 * w32menu.c (globals_of_w32menu): New function. Used to
813 initialize those global variables that must always be initialized
814 on startup even when the global variable initialized is non zero.
815 Its primary purpose at this time is to initialize the global
816 variables get_menu_item_info and set_menu_item_info.
817
818 * w32menu.c (initialize_frame_menubar): Remove initialization of
819 get_menu_item_info and set_menu_item_info.
820
821 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
822
823 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
824 Declare them.
825
826 * emacs.c (main): Call globals_of_w32 prior to calling
827 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
828 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
829 is defined.
830
831 * w32term.c (x_update_window_begin): Fix Windows API error
832 detected by BoundsChecker. Test to determine if
833 w32_system_caret_hwnd is NULL prior to attempting to use
834 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
835
836 * w32term.c (x_update_window_end): Fix Windows API error
837 detected by BoundsChecker. Test to determine if
838 w32_system_caret_hwnd is NULL prior to attempting to use
839 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
840
841 2002-12-17 Kenichi Handa <handa@m17n.org>
842
843 * coding.c (coding_system_require_warning): New variable.
844 (syms_of_coding): DEFVAR it.
845
846 * coding.h (coding_system_require_warning): Extern it.
847
848 * fileio.c (choose_write_coding_system): Even if
849 Vcoding_system_for_write is non-nil, if
850 coding_system_require_warning is nonzero, call
851 Vselect_safe_coding_system_function.
852
853 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
854
855 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
856 (lisp): Add font-core.
857
858 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
859
860 * textprop.c (text_read_only): New arg `propval'.
861 (get_char_property_and_overlay): Remove unused var `next_overlay'.
862 (verify_interval_modification): Use text_read_only's new arg.
863
864 2002-12-13 Kenichi Handa <handa@m17n.org>
865
866 * coding.c (Funencodable_char_position): Set pend correctly.
867
868 2002-12-12 Jason Rumney <jasonr@gnu.org>
869
870 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
871 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
872 Be more careful about when help_events are generated.
873
874 2002-12-12 Steven Tamm <steventamm@mac.com>
875
876 * macterm.c (mac_check_for_quit_char): Correctly set the
877 modifiers of the event to 0.
878 * mac.c (sys_select): Duplicate rfds before calling select to
879 ensure that rfds survive the while loop.
880
881 2002-12-11 Kim F. Storm <storm@cua.dk>
882
883 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
884 row_containing_pos returned NULL.
885
886 2002-12-10 Steven Tamm <steventamm@mac.com>
887
888 * mac.c (sys_read): Fixed sys_read to not call select if IO is
889 non-blocking.
890 (sys_select): Fixed sys_select to not use a timeout larger than
891 the one given.
892
893 2002-12-10 Juanma Barranquero <lektu@terra.es>
894
895 * editfns.c (Fformat): Use alloca, not _alloca.
896
897 2002-12-09 Richard M. Stallman <rms@gnu.org>
898
899 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
900 as the last thing.
901
902 2002-12-09 Dave Love <fx@gnu.org>
903
904 * s/sol2-8.h: Removed. (Not necessary.)
905
906 2002-12-09 Matthew Swift <swift@alum.mit.edu>
907
908 * editfns.c (Fformat): Handle precision in string conversion
909 specifiers like libc functions do (ie, print at most that many
910 characters).
911
912 2002-12-08 Richard M. Stallman <rms@gnu.org>
913
914 * xdisp.c (row_containing_pos): Check more carefully
915 whether charpos is really in the row before returning it.
916
917 2002-12-07 Steven Tamm <steventamm@mac.com>
918
919 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
920
921 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
922 each stack frame. This may change as it could be time consuming.
923
924 * macterm.c (mac_check_for_quit_char, quit_char_comp)
925 (init_quit_char_handler, mac_determine_quit_char_modifiers)
926 (mac_initialize): Added code to check for pressing of quit_char
927 in the OS event queue.
928
929 * mac.c (sys_select): Call mac_check_for_quit_char every second
930 while blocking on select.
931
932 * mac.c (sys_read): Use sys_select to test for input first
933 before calling read, to allow C-g to break.
934
935 2002-12-07 Richard M. Stallman <rms@gnu.org>
936
937 * minibuf.c (Fcompleting_read): Doc fix.
938
939 * lread.c (syms_of_lread) <load-history>: Doc fix.
940
941 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
942
943 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
944 autoload.
945
946 * data.c (Fdefalias): Record in load-history redefining an autoload.
947
948 * alloca.c: Undo ifdef change accidentally made on 12-04.
949
950 2002-12-06 Francesco Potorti` <pot@gnu.org>
951
952 * xfns.c (png_load): Avoid double gamma correction for PNG images.
953
954 2002-12-04 Richard M. Stallman <rms@gnu.org>
955
956 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
957
958 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
959
960 * alloca.c: Don't use #error.
961
962 2002-12-03 Dave Love <fx@gnu.org>
963
964 * buffer.c (Qucs_set_table_for_input): New.
965 (Fget_buffer_create): Use it.
966 (Qset_buffer_major_mode_hook): Deleted.
967 (Fset_buffer_major_mode): Revert previous change.
968 (init_buffer_once): Intern ucs-set-table-for-input.
969 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
970 Add &Qucs_set_table_for_input.
971
972 2002-12-03 Andreas Schwab <schwab@suse.de>
973
974 * callint.c (Fcall_interactively): Use next_event only if less
975 than key_count.
976
977 2002-12-02 Andrew Choi <akochoi@shaw.ca>
978
979 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
980 names to 255 characters.
981
982 * macterm.c (XTread_socket): If all frames have been collapsed,
983 expand the first one before handling drag-and-drop events.
984
985 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
986 which is detected by autoconf.
987
988 2002-12-01 Steven Tamm <steventamm@mac.com>
989
990 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
991 offset in two hints table to allow prebinding to be redone and
992 allow the executable to be stripped.
993
994 2002-11-29 Dave Love <fx@gnu.org>
995
996 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
997 already provided.
998
999 2002-11-29 Richard M. Stallman <rms@gnu.org>
1000
1001 * xdisp.c (start_display): Check more intelligently for
1002 whether the line is continued.
1003 (move_it_vertically_backward): Clear it->continuation_lines_width.
1004
1005 2002-11-28 Dave Love <fx@gnu.org>
1006
1007 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
1008 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
1009
1010 2002-11-27 Steven Tamm <steventamm@mac.com>
1011
1012 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
1013 more descriptive error output from lread.c:Fload upon most require
1014 cycles during boostrapping.
1015
1016 2002-11-27 Jason Rumney <jasonr@gnu.org>
1017
1018 * fileio.c (Finsert_file_contents): Give a more appropriate error
1019 for files bigger than 2Gb when off_t is 32 bit.
1020
1021 * dired.c (Ffile_attributes): Don't return negative file sizes for
1022 files bigger than 2Gb when off_t is 32 bit.
1023
1024 2002-11-27 Dave Love <fx@gnu.org>
1025
1026 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
1027
1028 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
1029 Test GETPGRP_VOID instead.
1030 [BSD_TERMIOS]: Remove definitions (never used).
1031
1032 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
1033 Don't define.
1034 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
1035
1036 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
1037
1038 2002-11-25 Jason Rumney <jasonr@gnu.org>
1039
1040 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
1041 supported.
1042
1043 2002-11-25 Dave Love <fx@gnu.org>
1044
1045 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
1046
1047 * Makefile.in (TEMACS_LDFLAGS): Update last change.
1048
1049 2002-11-25 Andreas Schwab <schwab@suse.de>
1050
1051 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
1052
1053 2002-11-24 Steven Tamm <steventamm@mac.com>
1054
1055 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
1056 determine the size of pointers alloced in unexed space instead
1057 of using possibly invalid emacs_zone pointers. This fixes the
1058 binary incompatibility problems caused by updates to libSystem.B.
1059
1060 2002-11-24 Richard M. Stallman <rms@gnu.org>
1061
1062 * search.c (Fstring_match): Doc fix.
1063
1064 * callint.c (Fcall_interactively): If a command fails because
1065 `*' detects a read-only buffer, but RECORD_FLAG is set,
1066 record it anyway if the args don't actually do tty input.
1067
1068 2002-11-22 Dave Love <fx@gnu.org>
1069
1070 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
1071
1072 * keyboard.c (interrupt_signal): Provide forward declaration.
1073 (kbd_buffer_store_event): Don't declare interrupt_signal.
1074
1075 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
1076
1077 2002-11-21 Richard M. Stallman <rms@gnu.org>
1078
1079 * eval.c (interactive_p): Skip any number of bytecode
1080 and special form frames, in any order.
1081
1082 2002-11-20 Jason Rumney <jasonr@gnu.org>
1083
1084 * w32fns.c (convert_mono_to_color_image): New function.
1085 (xbm_load, xbm_load_image): Use it when foreground or background
1086 is explicitly set.
1087
1088 2002-11-19 Dave Love <fx@gnu.org>
1089
1090 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
1091
1092 2002-11-18 Jason Rumney <jasonr@gnu.org>
1093
1094 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
1095 (XPutPixel): Swap blue and red.
1096 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
1097 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
1098 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
1099 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1100
1101 2002-11-18 Dave Love <fx@gnu.org>
1102
1103 * m/orion105.h (HAVE_ALLOCA): Don't define.
1104
1105 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
1106
1107 * m/intel386.h: Don't include alloca.h or define alloca.
1108
1109 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
1110 malloc, realloc, calloc.
1111
1112 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
1113 (bcmp): Don't define.
1114
1115 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
1116
1117 * m/amdahl.h: Don't define LIB_STANDARD.
1118
1119 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
1120
1121 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
1122
1123 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
1124 Don't include alloca.h.
1125
1126 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1127
1128 * regex.c (_GNU_SOURCE): Don't define.
1129
1130 * process.c (_GNU_SOURCE): Don't define.
1131
1132 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
1133
1134 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
1135
1136 * s/sol2-8.h: Include sol2-6.h.
1137
1138 2002-11-18 Miles Bader <miles@gnu.org>
1139
1140 * dispextern.h (struct face): Add `overstrike' field.
1141 * xterm.c (x_draw_glyph_string_foreground)
1142 (x_draw_composite_glyph_string_foreground): Implement overstriking.
1143 * xfaces.c (load_face_font): Set `face->overstrike' based on
1144 result from choose_face_font.
1145 (best_matching_font, choose_face_font): Add `needs_overstrike'
1146 argument, and use it to return whether overstriking is desirable
1147 for this face/font combo.
1148 (set_font_frame_param: Pass new argument to choose_face_font.
1149
1150 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
1151
1152 This change is my fix for the following entry in etc/PROBLEMS:
1153 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
1154 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
1155
1156 * w32.c: Added wrapper functions around the win32 API functions
1157 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
1158 GetSidIdentifierAuthority. These wrapper functions serve two
1159 purposes:
1160 1. They ensure that the wrapped function can never be called
1161 when Emacs is running on an operating system on which they are
1162 not supported (Microsoft Windows 95 / 98 / ME).
1163 2. They call the wrapped functions via function pointers rather
1164 than calling them directly. This avoids taking advantage of the
1165 undocumented fact that although these functions are not supported
1166 in the 9x branch of Microsoft Windows, the functions do exist in
1167 the version of advapi32.dll that is found in the 9x branch of
1168 Microsoft Windows.
1169
1170 * w32.c (init_user_info): Replaced the calls to the win32 API
1171 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
1172 and GetSidIdentifierAuthority with calls to the newly added
1173 wrapper functions.
1174
1175 * w32.h: Added extern declarations for the following functions:
1176 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
1177 syms_of_w32menu, and void syms_of_fontset.
1178
1179 * w32fns.c (w32_wnd_proc): Added code to reinitialize the
1180 function pointer track_mouse_event_fn in the handler for the
1181 WM_SETFOCUS message.
1182
1183 * w32menu.c (initialize_frame_menubar): Added code to
1184 reinitialize the function pointers set_menu_item_info and
1185 get_menu_item_info.
1186
1187 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
1188
1189 * sound.c: Added a partial implementation of play-sound-internal
1190 for Microsoft Windows. Added various #ifdef / #else / #endif
1191 code blocks to separate the code that will compile under
1192 Microsoft Windows from the code that is specific to Gnu/Linux.
1193 Moved several blocks of code around to make this separation of code
1194 into Windows compatible and Gnu/Linux compatible code blocks easier.
1195
1196 * makefile.w32-in: Include sound.c and link with WinMM.lib.
1197
1198 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
1199 added support for play-sound-internal under Windows would be
1200 included in the build of Emacs.
1201
1202 2002-11-16 Jason Rumney <jasonr@gnu.org>
1203
1204 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
1205
1206 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
1207
1208 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
1209
1210 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
1211 (adjust_point_for_property): Move out of display and invisible even if
1212 we were already inside before (in case a property was added while
1213 we weren't looking). Be more careful when handling invisible props.
1214 Skip invisible text as if it really wasn't there at all.
1215
1216 2002-11-15 Jason Rumney <jasonr@gnu.org>
1217
1218 * w32term.c (x_draw_image_foreground)
1219 (w32_draw_image_foreground_1): Use standard copy and invert
1220 operations to draw images.
1221
1222 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
1223 depth of 1.
1224 (xbm_read_bitmap_data): Invert bits as xbm is read in.
1225 (XPutPixel): Don't invert bits here.
1226
1227 2002-11-15 Jason Rumney <jasonr@gnu.org>
1228
1229 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
1230 (w32_draw_image_foreground_1): Handle image masks.
1231 (x_draw_image_glyph_string): Don't BitBlt transparently.
1232
1233 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
1234 (x_from_xcolors): Adjust RGB values for W32.
1235 (image_background, image_background_transparent)
1236 (postprocess_image, x_to_xcolors, x_disable_image)
1237 (x_build_heuristic_mask): Adapt for W32 and enable.
1238 (x_create_x_image_and_pixmap): Mark images with palettes as such.
1239 (xbm_load): Remove unused variable.
1240
1241 2002-11-14 Richard M. Stallman <rms@gnu.org>
1242
1243 * buffer.c (syms_of_buffer): Doc fix.
1244
1245 2002-11-14 Dave Love <fx@gnu.org>
1246
1247 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
1248
1249 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
1250 * xmenu.c (unuse_menu_items, digest_single_submenu):
1251 * xfns.c (x_put_x_image):
1252 * xdisp.c (message2_nolog, set_message):
1253 * undo.c (record_point):
1254 * terminfo.c (tparam):
1255 * syntax.c (scan_sexps_forward):
1256 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
1257 * composite.c (update_compositions):
1258 * cm.c (calccost, cmgoto):
1259 * charset.c (c_string_width): Declare all args (per C99).
1260
1261 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
1262
1263 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
1264 Don't declare.
1265
1266 * emacs.c (main) [!VMS]: Avoid third arg.
1267
1268 * fns.c (Fcopy_sequence): Doc fix.
1269 (Fmap_char_table): Cast `call2'.
1270
1271 2002-11-14 Francesco Potorti` <pot@gnu.org>
1272
1273 * s/sol2-8.h: New file.
1274
1275 2002-11-14 Kim F. Storm <storm@cua.dk>
1276
1277 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
1278 dependency on `risky-local-variable' and the :propertize form.
1279
1280 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
1281
1282 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
1283
1284 * syntax.c (scan_sexps_forward): Undo last patch.
1285 Use a more obvious fix: check eob before updating the syntax table.
1286
1287 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
1288
1289 * syntax.c (scan_sexps_forward): Update syntax table before reading
1290 a char rather than after so we don't update the table past eob.
1291
1292 2002-11-09 Dave Love <fx@gnu.org>
1293
1294 * buffer.c (Fset_buffer_major_mode): Fix last change.
1295
1296 * regex.c (regexec): Fix pmatch declaration.
1297
1298 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
1299
1300 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
1301 to self-inserting characters.
1302 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
1303
1304 * coding.c (Vtranslation_table_for_input): New.
1305 (syms_of_coding): DEFVAR it.
1306
1307 2002-11-08 Juanma Barranquero <lektu@terra.es>
1308
1309 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
1310 window.
1311
1312 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1313
1314 * process.c (Fformat_network_address): Removed unused locals p,
1315 cp, and i.
1316
1317 2002-11-06 Dave Love <fx@gnu.org>
1318
1319 * buffer.c (Qset_buffer_major_mode_hook): New.
1320 (Fset_buffer_major_mode): Use it.
1321
1322 2002-11-06 Richard M. Stallman <rms@gnu.org>
1323
1324 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
1325 and stop_polling.
1326
1327 * process.c (wait_reading_process_input):
1328 Test POLLING_PROBLEM_IN_SELECT, not hpux.
1329 Avoid initialization for auto Lisp_Object var.
1330
1331 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
1332
1333 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
1334
1335 2002-11-05 Richard M. Stallman <rms@gnu.org>
1336
1337 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
1338
1339 * callint.c (Fcall_interactively): New local filter_specs.
1340 (Fcall_interactively): Check for progn as well as let.
1341 Add a gcpro.
1342 (Qprogn): New variable.
1343 (syms_of_callint): Staticpro and init Qprogn.
1344
1345 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
1346
1347 * lread.c (Feval_buffer): Doc fix.
1348
1349 2002-11-04 Dave Love <fx@gnu.org>
1350
1351 * keyboard.c (read_char): Always translate iff
1352 Vkeyboard_translate_table is a char table and c is valid.
1353
1354 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
1355 and fix C types.
1356
1357 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
1358
1359 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
1360
1361 * editfns.c (get_pos_property): Don't hardcode Qfield.
1362
1363 * keyboard.c (adjust_point_for_property): Handle `display' prop on
1364 overlays. Also handle `invisible' prop.
1365
1366 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
1367
1368 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
1369 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
1370
1371 2002-11-01 Andreas Schwab <schwab@suse.de>
1372
1373 * editfns.c (Fmessage): Revert last change to properly handle %%.
1374
1375 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
1376
1377 * xmenu.c (unuse_menu_items): New fun.
1378 (menu_items_inuse): New var.
1379 (syms_of_xmenu): Initialize it.
1380 (init_menu_items): Use it to detect re-entrance.
1381 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
1382 (Fx_popup_menu): Remove spurious XSETFRAME.
1383
1384 * editfns.c (find_field): Make an exception for nil fields.
1385
1386 2002-11-01 Dave Love <fx@gnu.org>
1387
1388 * m/gec63.h: Deleted.
1389
1390 2002-10-31 Dave Love <fx@gnu.org>
1391
1392 * xterm.c (XTread_socket): Fix last change.
1393 (xaw_scroll_callback): Cast call_data to long to avoid warning.
1394
1395 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
1396
1397 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
1398
1399 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
1400
1401 * editfns.c (overlays_around, get_pos_property): New funs.
1402 (find_field): Use them.
1403 Also be careful not to modify POS before its last use.
1404 (Fmessage): Don't Fformat if there's nothing to format.
1405
1406 2002-10-30 Dave Love <fx@gnu.org>
1407
1408 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
1409 [HAVE_PTY_H]; Include pty.h.
1410
1411 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
1412
1413 * xterm.c (Qeql): Declare.
1414 (Vx_keysym_table): New.
1415 (syms_of_xterm): Initialize it.
1416 (XTread_socket): Use it. Deal with ASCII keysyms.
1417 (XSetIMValues) [HAVE_X11R6]: Prototype.
1418
1419 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
1420 (lispy_kana_keys): Comment out.
1421 (make_lispy_event) [XK_kana_A]: Comment out.
1422 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
1423 Fix sprintf call.
1424
1425 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
1426 regexp.h change).
1427 (TERMINFO, LIBS_TERMCAP): Define.
1428
1429 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
1430 (bcmp): Define conditional on HAVE_BCMP.
1431 (NO_SIOCTL_H): Don't define.
1432 (TIOCSIGSEND): Don't make conditional on IRIX6.
1433
1434 * s/sol2-5.h: Don't include strings.h.
1435 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
1436
1437 * s/irix6-0.h (IRIX6): Don't define.
1438 (bcopy, bcmp, bzero): Don't undef.
1439
1440 * s/irix6-5.h: Don't include strings.h.
1441 (IRIX6): Don't define.
1442 (bcopy, bcmp, bzero): Don't undef.
1443
1444 * syntax.c (Fforward_comment): Doc fix.
1445
1446 2002-10-29 Kim F. Storm <storm@cua.dk>
1447
1448 * process.c (Fsignal_process): Allow PROCESS to be specified by
1449 name in addition to pid (as integer or string).
1450
1451 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
1452
1453 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
1454 environments.
1455
1456 2002-10-27 Kim F. Storm <storm@cua.dk>
1457
1458 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
1459
1460 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
1461
1462 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
1463
1464 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
1465
1466 2002-10-26 Richard M. Stallman <rms@gnu.org>
1467
1468 * editfns.c (Fformat): Detect invalid format letters for floats.
1469
1470 2002-10-25 Kenichi Handa <handa@m17n.org>
1471
1472 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
1473 (x_set_title): Likewise.
1474
1475 2002-10-25 Juanma Barranquero <lektu@terra.es>
1476
1477 * macgui.h:
1478 * w32gui.h: Remove definition of XColor.
1479
1480 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
1481
1482 2002-10-24 Kim F. Storm <storm@cua.dk>
1483
1484 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
1485 Callers changed (supply dummy arg).
1486
1487 * lisp.h (get_window_cursor_type): Update prototype.
1488
1489 * w32term.c (x_display_and_set_cursor): Get active_cursor from
1490 get_window_cursor_type to track system caret.
1491
1492 2002-10-24 Kim F. Storm <storm@cua.dk>
1493
1494 * process.c (Fformat_network_address): New function.
1495 (syms_of_process): Defsubr it.
1496 (list_processes_1): Use it to format :local/:remote address if
1497 service/host is not set; before emacs would crash in that case.
1498 (Fmake_network_process): Don't use Ffind_operation_coding_system
1499 to setup coding system if host or service is not set.
1500
1501 2002-10-23 Juanma Barranquero <lektu@terra.es>
1502
1503 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
1504
1505 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
1506 COLORREF.
1507
1508 * macgui.h:
1509 * w32gui.h: Add definition of XColor.
1510
1511 * macfns.c:
1512 * w32fns.c:
1513 * xfaces.c: Remove definition of XColor.
1514
1515 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
1516
1517 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
1518
1519 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
1520 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
1521 window if it is dedicated.
1522 (Fshrink_window): Add preserve_before as was done for enlarge_window.
1523 (Vspecial_display_function): Update docstring.
1524
1525 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
1526 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
1527 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
1528
1529 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
1530
1531 * casefiddle.c (casify_region): Don't treat a prefix char as part
1532 of a word when at the beginning.
1533
1534 2002-10-17 Juanma Barranquero <lektu@terra.es>
1535
1536 * lread.c (syms_of_lread): Fix typos.
1537
1538 2002-10-17 Dave Love <fx@gnu.org>
1539
1540 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
1541
1542 2002-10-16 Richard M. Stallman <rms@gnu.org>
1543
1544 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
1545
1546 2002-10-14 Juanma Barranquero <lektu@terra.es>
1547
1548 * w16select.c (syms_of_win16select): Fix docstring for
1549 `selection-coding-system'.
1550
1551 * w32select.c (syms_of_w32select): Likewise.
1552
1553 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
1554
1555 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
1556 a backslash-quoted char.
1557 (scan_lists, scan_sexps_forward): Pacify the compiler.
1558
1559 2002-10-13 Richard M. Stallman <rms@gnu.org>
1560
1561 * window.c (window_scroll): Set immediate_quit.
1562
1563 * print.c (print): When backquote form is the car of a list,
1564 output in old style. Use old_backquote_output to output all
1565 comma forms inside it in old style too.
1566
1567 * buffer.h (struct buffer): Move `undo_list' down below `name'.
1568
1569 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
1570
1571 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
1572 batch mode).
1573
1574 * lread.c (Fload): Doc fix (load-suffixes).
1575
1576 2002-10-10 Steven Tamm <steventamm@mac.com>
1577
1578 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
1579 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
1580 Also switch the default to Qnil from Qt.
1581
1582 2002-10-08 Kenichi Handa <handa@m17n.org>
1583
1584 * coding.c (code_convert_region): When we need more GAP for
1585 conversion, pay attention to the case that coding->produced is not
1586 greater than coding->consumed.
1587
1588 2002-10-07 Richard M. Stallman <rms@gnu.org>
1589
1590 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
1591
1592 2002-10-06 Andrew Choi <akochoi@shaw.ca>
1593
1594 * macmenu.c (mac_menu_show): Add j to count menu items; match
1595 menu_item_selection to it to find selected item.
1596
1597 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1598
1599 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
1600 cases. The correct fix is to pass ReparentNotify to Xt.
1601 The shell widget interprets ConfigureNotify differently depending
1602 on if it has been reparented or not.
1603
1604 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
1605
1606 * editfns.c (Fformat_time_string): Doc fix.
1607
1608 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
1609
1610 * fns.c (Flength): Doc fix.
1611
1612 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
1613
1614 * keyboard.c (keyremap): New struct.
1615 (read_key_sequence): Use it: globally replace keytran_foo with
1616 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
1617 keytran_next and fkey_next to just `next'.
1618
1619 2002-10-04 Steven Tamm <steventamm@mac.com>
1620
1621 * macterm.c (keycode_to_xkeysym_table): Change return to be
1622 treated like an X keysym.
1623
1624 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1625
1626 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
1627 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
1628 This is to also handle x/y changes that occur because of a resize.
1629
1630 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
1631
1632 * frame.c (Vdelete_frame_functions): New variable.
1633 (syms_of_frame): Initialize and defvar it.
1634 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
1635 it when frame's `tooltip' parameter is non-nil.
1636
1637 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
1638
1639 * w32fns.c (x_create_tip_frame): Likewise.
1640
1641 * macfns.c (x_create_tip_frame): Likewise.
1642
1643 2002-09-30 Kenichi Handa <handa@m17n.org>
1644
1645 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
1646 -1 before calling ccl_driver.
1647
1648 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
1649 Only when it is non-nil, handle composition sequence.
1650 (setup_coding_system) <0>: Don't force composition handling.
1651
1652 * Makefile.in (lisp, shortlisp): Add utf-16.elc
1653
1654 2002-09-29 Richard M. Stallman <rms@gnu.org>
1655
1656 * search.c (Freplace_match): Adjust match data for the substitution
1657 just made in the buffer.
1658
1659 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
1660 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
1661
1662 2002-09-27 Richard M. Stallman <rms@gnu.org>
1663
1664 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
1665 (read_char): Use them. Do all exits thru the end of the function.
1666
1667 2002-09-27 Kenichi Handa <handa@etl.go.jp>
1668
1669 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
1670 is nil.
1671
1672 2002-09-26 Richard M. Stallman <rms@gnu.org>
1673
1674 * regex.h (__restrict_arr): Don't define if already defined.
1675
1676 * coding.c (run_pre_post_conversion_on_str):
1677 Save and restore Vdeactivate_mark.
1678
1679 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
1680
1681 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
1682
1683 2002-09-26 Kenichi Handa <handa@etl.go.jp>
1684
1685 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
1686 nonzero, try face's family at first. Otherwise try FAMILY at first.
1687 (choose_face_font): If C is a single byte char or latin-1, call
1688 try_font_list with PREFER_FACE_FAMILY 1.
1689
1690 2002-09-21 Richard M. Stallman <rms@gnu.org>
1691
1692 * window.c (select_window_1): Don't select frame.
1693 Set frame's selected window only when frame itself is selected.
1694 (Fselect_window): Doc fix.
1695
1696 2002-09-18 Kim F. Storm <storm@cua.dk>
1697
1698 * process.c (make-network-process): Doc fix (there is no
1699 network-server-log-function hook).
1700
1701 2002-09-18 Richard M. Stallman <rms@gnu.org>
1702
1703 * print.c (print): Clear out the unused parts of Vprint_number_table.
1704 (syms_of_print): Doc fix for `print-number-table'.
1705
1706 * unexelf.c (unexec): Undo previous change.
1707
1708 2002-09-17 Andreas Schwab <schwab@suse.de>
1709
1710 * m/alpha.h [LINUX]: Don't define DATA_START.
1711
1712 2002-09-16 Dave Love <fx@gnu.org>
1713
1714 * unexelf.c (unexec): Deal with .got, reinstating change from
1715 25-08-1999.
1716
1717 2002-09-13 Richard M. Stallman <rms@gnu.org>
1718
1719 * s/sol2-6.h (UNEXEC): Comment out definition.
1720
1721 * unexsol.c (unexec): Don't downcase first letter of error msg.
1722
1723 * xfaces.c (Fcolor_supported_p): Just one arg is required.
1724
1725 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
1726
1727 * unexsol.c: Include buffer.h, charset.h, coding.h.
1728
1729 2002-09-11 Richard M. Stallman <rms@gnu.org>
1730
1731 * unexsol.c: Don't use report_file_error; do it by hand
1732 using dlerror.
1733
1734 * process.c (wait_reading_process_input, both versions):
1735 Before calling turn_on_atimers, call stop_polling.
1736
1737 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
1738
1739 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
1740 we go to too_near_end, call clear_glyph_matrix.
1741 (redisplay_window): After make_cursor_line_fully_visible,
1742 call clear_glyph_matrix and bypass `goto done'.
1743
1744 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
1745 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
1746
1747 2002-09-10 Richard M. Stallman <rms@gnu.org>
1748
1749 * fileio.c (Fdo_auto_save): Catch error making directory.
1750 Only call push_message if we need to.
1751 At the same time, make an unwind-protect to pop it.
1752 Rename local message_p to old_message_p.
1753 (do_auto_save_make_dir, do_auto_save_eh): New functions.
1754 (do_auto_save_unwind): Don't call pop_message.
1755
1756 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
1757
1758 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
1759
1760 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
1761
1762 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
1763
1764 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
1765
1766 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
1767 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
1768 (re_match_2_internal): Be more careful with infinite loops.
1769
1770 2002-09-10 Kim F. Storm <storm@cua.dk>
1771
1772 * macros.c (end_kbd_macro): New function.
1773 (Fend_kbd_macro): Use it.
1774
1775 * macros.h (end_kbd_macro): Declare extern.
1776
1777 * keyboard.c (Fdiscard_input): If defining keyboard macro,
1778 end and save it instead of discarding it.
1779
1780 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
1781
1782 * s/sol2-6.h: Fix typo. Add comment.
1783
1784 2002-09-09 Richard M. Stallman <rms@gnu.org>
1785
1786 * regex.c (regnum_t): Use signed int, not unsigned int.
1787
1788 * s/sol2-6.h: New file.
1789
1790 * s/sol2-5.h (UNEXEC): Definition deleted.
1791
1792 2002-09-08 Kim F. Storm <storm@cua.dk>
1793
1794 * macros.c (executing_macro_index): Change type to EMACS_INT.
1795 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
1796
1797 * macros.h (executing_macro_index): Change type to EMACS_INT.
1798
1799 2002-09-06 Richard M. Stallman <rms@gnu.org>
1800
1801 * casetab.c (set_case_table): Make canon table point to eqv table.
1802
1803 2002-09-06 Juanma Barranquero <lektu@terra.es>
1804
1805 * coding.c (syms_of_coding): Fix spacing.
1806
1807 * composite.c (Fcompose_region_internal)
1808 (Fcompose_string_internal): Likewise.
1809
1810 * data.c (Flsh): Likewise.
1811
1812 * fontset.c (Fset_fontset_font): Likewise.
1813
1814 * macfns.c (Fx_server_max_request_size): Likewise.
1815
1816 * w16select.c (syms_of_win16select): Likewise.
1817
1818 * w32select.c (syms_of_w32select): Likewise.
1819
1820 * xselect.c (syms_of_xselect): Likewise.
1821
1822 2002-09-05 Richard M. Stallman <rms@gnu.org>
1823
1824 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
1825 call EXTEND_RANGE_TABLE and return a proper value.
1826 (set_image_of_range): Don't call set_image_of_range_1
1827 if no TRANSLATE or if range includes all of Latin-1.
1828 Only call it for the Latin-1 part of the range.
1829 For other cases, make two separate ranges,
1830 one for the original specified characters and one for
1831 their case-conversions.
1832
1833 2002-09-04 Richard M. Stallman <rms@gnu.org>
1834
1835 * s/sol2-5.h (UNEXEC): Use unexsol.o.
1836
1837 * window.c (displayed_window_lines): Correct for one-off bug
1838 in HEIGHT on non-window displays.
1839
1840 * regex.c (set_image_of_range_1): New function.
1841 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
1842 Return a value to indicate running out of memory.
1843 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
1844 (extend_range_table_work_area): New subroutine.
1845 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
1846 Different calling conventions, and used from set_image_of_range{,_1}.
1847 (IMMEDIATE_QUIT_CHECK): Definitions moved.
1848
1849 2002-09-04 Juanma Barranquero <lektu@terra.es>
1850
1851 * makefile.w32-in: All dependencies updated.
1852
1853 2002-09-01 Richard M. Stallman <rms@gnu.org>
1854
1855 * unexsol.c: New file.
1856
1857 * xfns.c (Qbox): Declare external, don't define.
1858
1859 * xdisp.c (redisplay_window) <force-start case>:
1860 If point is on semi-visible last line, reposition
1861 it at previous line.
1862
1863 * alloc.c (display_malloc_warning): Use display-warning.
1864 (malloc_warning_1): Function deleted.
1865
1866 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
1867
1868 * lread.c (read1): Handle #! by skipping the line.
1869
1870 2002-08-31 Richard M. Stallman <rms@gnu.org>
1871
1872 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
1873 Don't include LDFLAGS.
1874 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
1875
1876 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
1877
1878 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
1879 member of x_display_info unless we compile for some window system.
1880
1881 2002-08-31 Kim F. Storm <storm@cua.dk>
1882
1883 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
1884 (get_window_cursor_type): Don't use them.
1885 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
1886
1887 2002-08-30 Kenichi Handa <handa@etl.go.jp>
1888
1889 * xdisp.c (get_next_display_element): Fix previous change.
1890
1891 2002-08-30 Andrew Choi <akochoi@shaw.ca>
1892
1893 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
1894 (expose_window): Use it to fix the display of overlapping
1895 rows (merge code from xterm.c).
1896
1897 * macfns.c (Qbox): Add extern declaration.
1898
1899 2002-08-30 Juanma Barranquero <lektu@terra.es>
1900
1901 * w32fns.c (Qbox): Make extern.
1902 (syms_of_w32fns): Remove initialization of Qbox.
1903
1904 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
1905
1906 * xfns.c (Fx_open_connection): Fix error message.
1907
1908 2002-08-30 Kim F. Storm <storm@cua.dk>
1909
1910 The following changes consolidates the handling of the cursor
1911 type in xdisp.c, moving duplicate code and functionality from
1912 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
1913
1914 * frame.h (enum text_cursor_kinds): Consolidated here.
1915 Added DEFAULT_CURSOR value.
1916 (struct frame) <desired_cursor, cursor_width>
1917 <blink_off_cursor, blink_off_cursor_width>: New fields.
1918 Consolidated from output_x, output_w32 and output_mac structs.
1919 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
1920 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
1921
1922 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
1923 Variables consolidated here.
1924 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
1925 (Vcursor_in_non_selected_windows): Renamed from
1926 cursor_in_non_selected_windows and changed to Lisp_Object.
1927 (syms_of_xdisp): Define and staticpro new and moved variables.
1928 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
1929 consolidated here. Recognize Qhollow setting.
1930 (set_frame_cursor_types): New function to set frame cursor types
1931 based on the frame parameters.
1932 (get_window_cursor_type): New function to calculate new cursor
1933 type and width for the specified window. Based on duplicated
1934 code consolidated here.
1935 Enhancements: cursor-in-non-selected-windows may be a cursor type,
1936 check buffer-local alternate-cursor-type and blink-cursor-alist
1937 before using built-in blink off methods.
1938
1939 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
1940
1941 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
1942 (get_specified_cursor_type, get_window_cursor_type)
1943 (set_frame_cursor_types): Added prototypes.
1944
1945 * macfns.c (x_specified_cursor_type): Removed.
1946 (x_set_cursor_type): Use set_frame_cursor_types.
1947 (Qbar, Qbox): Removed.
1948 (syms_of_macfns): Don't intern or staticpro them.
1949
1950 * macterm.c (x_specified_cursor_type): Remove prototype.
1951 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
1952 (x_display_and_set_cursor): Use get_window_cursor_type.
1953 Remove unused local variables cursor_non_selected, active_cursor.
1954 Redraw cursor if hbar cursor width changes.
1955 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
1956
1957 * macterm.h (enum text_cursor_kinds): Removed.
1958 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
1959 <blink_off_cursor, blink_off_cursor_width>: Members removed.
1960 (FRAME_DESIRED_CURSOR): Macro removed.
1961
1962 * w32fns.c (Vblink_cursor_alist): Removed.
1963 (Qbar, Qhbar, Qbox, Qhollow): Removed.
1964 (syms_of_w32fns): Don't intern, staticpro, or define them.
1965 (x_specified_cursor_type): Removed.
1966 (x_set_cursor_type): Use set_frame_cursor_types.
1967
1968 * w32term.c (x_specified_cursor_type): Remove prototype.
1969 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
1970 (x_display_and_set_cursor): Use get_window_cursor_type.
1971 Remove unused local variables cursor_off_state.
1972 Redraw cursor if hbar cursor width changes.
1973 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
1974
1975 * w32term.h (enum text_cursor_kinds): Removed.
1976 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
1977 <blink_off_cursor, blink_off_cursor_width>: Members removed.
1978 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
1979 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
1980 (struct w32_display_info) <x_highlight_frame>: Renamed member from
1981 w32_highlight_frame.
1982
1983 * xfns.c (Vblink_cursor_alist): Removed.
1984 (Qbar, Qhbar, Qbox, Qhollow): Removed.
1985 (syms_of_xfns): Don't intern, staticpro, or define them.
1986 (x_specified_cursor_type): Removed.
1987 (x_set_cursor_type): Use set_frame_cursor_types.
1988
1989 * xterm.c (x_specified_cursor_type): Remove prototype.
1990 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
1991 (x_display_and_set_cursor): Use get_window_cursor_type.
1992 Remove unused local variables cursor_off_state.
1993 Redraw cursor if hbar cursor width changes.
1994
1995 * xterm.h (enum text_cursor_kinds): Removed.
1996 (struct output_x) <current_cursor, desired_cursor, cursor_width>
1997 <blink_off_cursor, blink_off_cursor_width>: Members removed.
1998 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
1999 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
2000 (x_specified_cursor_type): Remove prototype.
2001
2002 2002-08-28 Richard M. Stallman <rms@gnu.org>
2003
2004 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
2005 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
2006 (Vblink_cursor_alist): New variable.
2007 (syms_of_w32fns): Initialize and defvar it.
2008 (x_specified_cursor_type): Recognize Qbox for filled box.
2009 Exceptions are hollow boxes.
2010 (Qbox, Qhollow): New variables.
2011 (syms_of_w32fns): Initialize and staticpro them.
2012
2013 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
2014 New macros.
2015 (struct w32_output): New fields blink_off_cursor,
2016 blink_off_cursor_width.
2017 (FRAME_CURSOR_WIDTH): New macro.
2018
2019 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
2020 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
2021
2022 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
2023 for bar cursor.
2024
2025 * w32term.c (expose_overlaps): New function.
2026 (expose_window): Use it to fix the display of overlapping rows.
2027
2028 2002-08-28 Simon Josefsson <jas@extundo.com>
2029
2030 * xfns.c (Fx_open_connection): Improve help when X connection
2031 fails, xhost is insecure and xauth is better.
2032
2033 2002-08-28 Juanma Barranquero <lektu@terra.es>
2034
2035 * makefile.w32-in: Add missing dependencies on w32term.h and
2036 composite.h.
2037
2038 * emacs.c (USAGE1): Add missing newline.
2039
2040 2002-08-27 Andrew Choi <akochoi@shaw.ca>
2041
2042 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
2043
2044 2002-08-27 Richard M. Stallman <rms@gnu.org>
2045
2046 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
2047 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
2048 (Vblink_cursor_alist): New variable.
2049 (syms_of_xfns): Initialize and defvar it.
2050 (x_specified_cursor_type): Recognize Qbox for filled box.
2051 Exceptions are hollow boxes.
2052 (Qbox, Qhollow): New variables.
2053 (syms_of_xfns): Initialize and staticpro them.
2054
2055 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
2056 New macros.
2057 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
2058
2059 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
2060 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
2061
2062 * emacs.c (main): Handle --script.
2063 (USAGE1): Mention --script.
2064 (standard_args): Define sort order for --script.
2065
2066 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
2067
2068 * xdisp.c (redisplay_updating_p): Variable removed.
2069 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
2070 New variables.
2071 (init_iterator): Don't free realized faces if
2072 inhibit_free_realized_faces is set.
2073 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
2074 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
2075 initialize Qinhibit_free_realized_faces.
2076
2077 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
2078 when iterator is adding glyphs to a glyph matrix.
2079
2080 2002-08-27 Kenichi Handa <handa@etl.go.jp>
2081
2082 * xdisp.c (get_next_display_element): In unibyte case, don't use
2083 octal form for such eight-bit characters that can be converted to
2084 multibyte char.
2085
2086 2002-08-26 Kim F. Storm <storm@cua.dk>
2087
2088 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
2089 and background colors. From Joe Buehler (tiny change).
2090
2091 2002-08-26 Miles Bader <miles@gnu.org>
2092
2093 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
2094
2095 2002-08-25 Andrew Choi <akochoi@shaw.ca>
2096
2097 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
2098 defined instead of MAC_OSX.
2099
2100 * s/darwin.h (select): Define select to sys_select only if
2101 HAVE_CARBON is defined.
2102 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
2103 (DONT_REOPEN_PTY): #def it.
2104
2105 * macterm.c (XTread_socket): Remove code to call
2106 SendEventToEventTarget for keys with command modifiers when
2107 mac_command_key_is_meta is nil.
2108
2109 2002-08-24 Andreas Schwab <schwab@suse.de>
2110
2111 * eval.c (Fdefvar): Fix last change.
2112
2113 2002-08-23 Richard M. Stallman <rms@gnu.org>
2114
2115 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
2116 Record variables in load history as (defvar . VAR).
2117 (Fdefvar): Don't record in load history if no initial value.
2118 (Qdefvar): New variable.
2119 (syms_of_eval): Init and staticpro it.
2120
2121 * lread.c (syms_of_lread): Doc fix.
2122 (build_load_history): Use Fmember to see if a definition
2123 is already in the Vload_history element.
2124
2125 * process.c (Fstart_process): Remove /: from program name.
2126
2127 * emacs.c (decode_env_path): Don't add /: if file name handler
2128 has a `safe-magic' property.
2129
2130 * callproc.c (Fcall_process): Remove /: from program name.
2131
2132 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
2133
2134 * regex.c (PATFETCH): Remove the translating fetch.
2135 (PATFETCH_RAW): Rename to PATFETCH.
2136 (set_image_of_range): New fun.
2137 (SET_RANGE_TABLE_WORK_AREA): Use it.
2138 (regex_compile): Don't translate the pattern chars so eagerly.
2139 Only do it when inserting an `exactn' bytecode or when handling
2140 a char-range.
2141 (mutually_exclusive_p): Avoid empty statement.
2142
2143 2002-08-22 Kim F. Storm <storm@cua.dk>
2144
2145 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
2146 end up on a partially visible line; this reverts a specific part
2147 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
2148 display error which has been reported several times now.
2149 However it introduces the problem that changes was supposed to fix.
2150 See my comments in the source if you want to debug this further.
2151
2152 2002-08-20 Kenichi Handa <handa@etl.go.jp>
2153
2154 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
2155
2156 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
2157
2158 * msdos.c (croak): Add `void' to definition.
2159
2160 * sysdep.c [MSDOS] (request_sigio, unrequest_sigio):
2161 Don't define them, they are defined in msdos.c.
2162
2163 * mem-limits.h [MSDOS]: Declare etext.
2164
2165 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
2166 `const' since CORRECT_DIR_SEPS modifies its target.
2167
2168 2002-08-19 Kim F. Storm <storm@cua.dk>
2169
2170 * keyboard.c (Fclear_this_command_keys): Added optional arg
2171 KEEP-RECORD to avoid clearing lossage when we just want to clear
2172 the current key sequence (kmacro needs this).
2173
2174 2002-08-19 Kenichi Handa <handa@localhost>
2175
2176 * composite.c (run_composition_function): Call FUNC if it is fboundp.
2177
2178 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
2179 cons, return Qnil.
2180
2181 2002-08-17 Richard M. Stallman <rms@gnu.org>
2182
2183 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
2184
2185 * sysdep.c [!VMS]: Include sys/files.h.
2186
2187 * editfns.c (save_restriction_restore): Defend from unchained marker.
2188
2189 * buffer.c (overlays_at): Handle extending vec uniformly.
2190 (overlays_in): Handle extending vec from length 0 as in overlays_at.
2191
2192 2002-08-15 Andrew Choi <akochoi@shaw.ca>
2193
2194 * mac.c (init_mac_osx_environment): New function.
2195
2196 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
2197
2198 2002-08-14 Kim F. Storm <storm@cua.dk>
2199
2200 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
2201 executing macro before appending to it (when used from Lisp).
2202 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
2203 which is called prior to each iteration of macro (for kmacro.el).
2204 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
2205
2206 * lisp.h (Fexecute_kbd_macro): Update prototype.
2207
2208 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
2209
2210 2002-08-14 Kenichi Handa <handa@etl.go.jp>
2211
2212 * xselect.c (QUTF8_STRING): New variable.
2213 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
2214 (x_atom_to_symbol): Likewise.
2215 (x_get_local_selection): New argument local_request. If it is
2216 nonzero, call handler_fn with the second arg nil.
2217 (x_handle_selection_request): Call x_get_local_selection with
2218 local_request 0.
2219 (lisp_data_to_selection_data): Don't encode the string here.
2220 (Fx_get_selection_internal): Call x_get_local_selection with
2221 local_request 1.
2222 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
2223
2224 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
2225
2226 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
2227
2228 2002-08-13 Richard M. Stallman <rms@gnu.org>
2229
2230 * minibuf.c (Fminibufferp): New function.
2231 (syms_of_minibuf): Defsubr it.
2232 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
2233
2234 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
2235
2236 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
2237
2238 2002-08-12 Richard M. Stallman <rms@gnu.org>
2239
2240 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
2241 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
2242 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
2243 already.
2244
2245 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
2246
2247 2002-08-11 Andrew Choi <akochoi@shaw.ca>
2248
2249 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
2250 (Vmac_pass_command_to_system): New variable.
2251 (Vmac_pass_control_to_system): New variable.
2252 (do_mouse_moved): Check wp with is_emacs_window.
2253 (XTread_socket): Check window_ptr with is_emacs_window.
2254 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
2255 events back to Mac Toolbox for processing, depending on values of
2256 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
2257 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
2258 Vmac_pass_control_to_system.
2259
2260 2002-08-10 Kenichi Handa <handa@etl.go.jp>
2261
2262 * coding.c (unencodable_char_position): New function.
2263 (Funencodable_char_position): New function.
2264 (syms_of_coding): Defsubr Funencodable_char_position.
2265
2266 2002-08-10 Andrew Choi <akochoi@shaw.ca>
2267
2268 * mac.c (sys_select) [MAC_OSX]: New function.
2269
2270 * macterm.c (MakeMeTheFrontProcess): New function.
2271 (mac_initialize): Call MakeMeTheFrontProcess.
2272
2273 * s/darwin.h: Define select to sys_select.
2274
2275 2002-08-09 Richard M. Stallman <rms@gnu.org>
2276
2277 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
2278
2279 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
2280
2281 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
2282 end of the buffer.
2283
2284 2002-08-08 Ken Raeburn <raeburn@mit.edu>
2285
2286 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
2287
2288 * puresize.h (BASE_PURESIZE): Increase to 910000.
2289
2290 2002-08-08 Kenichi Handa <handa@etl.go.jp>
2291
2292 * coding.c (Ffind_operation_coding_system): For write-region, if
2293 VISIT is a filename, make it the target.
2294
2295 2002-08-07 Richard M. Stallman <rms@gnu.org>
2296
2297 * alloc.c (mark_object): Detect long lists for debugging.
2298 (mark_object_loop_halt): New variable.
2299
2300 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
2301
2302 * data.c (Fmake_variable_frame_local): Doc fix.
2303
2304 2002-08-01 David Ponce <david@dponce.com>
2305
2306 * w32menu.c (local_heap, local_alloc, local_free): New macros.
2307 (malloc_widget_value, free_widget_value)
2308 (w32_free_submenu_strings): Use them.
2309
2310 (push_submenu_start, push_submenu_end, push_left_right_boundary)
2311 (push_menu_pane, push_menu_item, single_keymap_panes)
2312 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
2313 (single_submenu, set_frame_menubar)
2314 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
2315
2316 (Fx_popup_menu): Don't show pop up menu until preceding one is
2317 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
2318
2319 * w32menu.c: Changes adapted from xmenu.c
2320 (set_frame_menubar): First parse all submenus,
2321 then make widget_value trees from them.
2322 Don't allocate any widget_value objects
2323 until we are done with the parsing.
2324 (parse_single_submenu): New function.
2325 (digest_single_submenu): New function.
2326 (single_submenu): Function deleted, replaced by those two.
2327
2328 2002-08-04 Andrew Choi <akochoi@shaw.ca>
2329
2330 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
2331 returns a valid window pointer before proceeding for keyDown and
2332 autoKey events.
2333
2334 2002-08-03 Andrew Choi <akochoi@shaw.ca>
2335
2336 * macterm.c (USE_CARBON_EVENTS): New macro.
2337 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
2338 (x_iconify_frame): Call CollapseWindow.
2339 (Vmac_reverse_ctrl_meta): New variable.
2340 (Vmac_wheel_button_is_mouse_2): New variable.
2341 (init_mac_drag_n_drop): New function.
2342 (mac_do_receive_drag): New function.
2343 (mac_handle_service_event): New function.
2344 (init_service_handler): New function.
2345 (mac_to_emacs_modifiers): New function.
2346 (mac_event_to_emacs_modifiers): New function.
2347 (mac_get_mouse_btn): New function.
2348 (mac_convert_event_ref): New function.
2349 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
2350 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
2351 mac_get_mouse_btn.
2352 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
2353
2354 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
2355 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
2356 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
2357 TOOL_BAR_EVENT for MAC_OS as well.
2358 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
2359 as for WINDOWS_NT.
2360 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
2361
2362 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
2363
2364 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
2365
2366 * xdisp.c (forward_to_next_line_start): Fix a condition that
2367 lead to a newline being skipped.
2368
2369 2002-08-02 Andrew Choi <akochoi@shaw.ca>
2370
2371 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
2372
2373 2002-08-01 Richard M. Stallman <rms@gnu.org>
2374
2375 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
2376
2377 2002-07-31 Andrew Choi <akochoi@shaw.ca>
2378
2379 * macfns.c: #undef init_process before #define-ing it.
2380
2381 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
2382 HAVE_CARBON is defined.
2383
2384 2002-07-31 Richard M. Stallman <rms@gnu.org>
2385
2386 * xmenu.c (set_frame_menubar): First parse all submenus,
2387 then make widget_value trees from them.
2388 Don't allocate any widget_value objects
2389 until we are done with the parsing.
2390 (parse_single_submenu): New function.
2391 (digest_single_submenu): New function.
2392 (single_submenu): Function deleted, replaced by those two.
2393
2394 2002-07-30 Juanma Barranquero <lektu@terra.es>
2395
2396 * w32proc.c (syms_of_ntproc): Fix docstring of
2397 `w32-get-true-file-attributes'.
2398
2399 2002-07-28 Richard M. Stallman <rms@gnu.org>
2400
2401 * s/hpux8.h (HPUX8): Define this before including hpux.h.
2402 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
2403
2404 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
2405
2406 * keyboard.c (make_lispy_event):
2407 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
2408 Explicitly clear up_modifier in event->modifiers.
2409
2410 2002-07-27 Richard M. Stallman <rms@gnu.org>
2411
2412 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
2413
2414 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
2415 for bar cursor.
2416
2417 2002-07-26 Kenichi Handa <handa@etl.go.jp>
2418
2419 * coding.c (detect_coding_iso2022): While checking a byte sequence
2420 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
2421 it in the normal loop.
2422
2423 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
2424
2425 * xterm.c (expose_overlaps): New function.
2426 (expose_window): Use it to fix the display of overlapping rows.
2427
2428 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
2429
2430 2002-07-23 Ken Raeburn <raeburn@gnu.org>
2431
2432 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
2433 since it only depends on XUINT.
2434
2435 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
2436 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
2437 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
2438 Macros deleted.
2439
2440 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
2441 its value over other approaches.
2442 * sysdep.c (start_of_data): Don't define the function if a macro
2443 form has been defined.
2444
2445 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
2446
2447 * xdisp.c (redisplay_updating_p): New variable.
2448 (init_iterator): Don't free realized faces when
2449 redisplay_updating_p is set.
2450 (redisplay_internal): Set redisplay_updating_p while updating
2451 the display.
2452
2453 2002-07-23 Richard M. Stallman <rms@gnu.org>
2454
2455 * editfns.c (Fmessage): Treat "" like nil.
2456
2457 2002-07-23 Kenichi Handa <handa@etl.go.jp>
2458
2459 * xdisp.c (face_before_or_after_it_pos):
2460 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
2461
2462 2002-07-22 Juanma Barranquero <lektu@terra.es>
2463
2464 * callproc.c (init_callproc) [DOS_NT]:
2465 Initialize Vshared_game_score_directory to nil.
2466 (syms_of_callproc) [DOS_NT]: Likewise.
2467
2468 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
2469
2470 * xdisp.c (display_line): Replace an abort with xassert.
2471
2472 2002-07-21 Richard M. Stallman <rms@gnu.org>
2473
2474 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
2475 and END_UNCHANGED when setting buffer_unchanged_p.
2476 Use current_matrix_up_to_date_p to decide whether to use
2477 try_cursor_movement.
2478
2479 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
2480
2481 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
2482
2483 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
2484 Set to nil if dir does not exist.
2485 (syms_of_callproc): Init unconditionally and simply.
2486
2487 * buffer.c (Fbuffer_list): Doc fix.
2488
2489 2002-07-21 Ken Raeburn <raeburn@gnu.org>
2490
2491 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
2492
2493 * buffer.c (mmap_realloc): When shrinking, make sure number of
2494 pages to unmap is rounded towards zero.
2495
2496 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
2497 (XSETINT): Deleted.
2498
2499 * m/att3b.h (XINT): Don't define.
2500 (VALBITS, VALMASK, XTYPE): Deleted.
2501 (DATA_SEG_BITS): Define.
2502 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
2503 ARRAY_MARK_FLAG): Deleted.
2504 (DATA_SEG_BITS): Define.
2505 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
2506 (DATA_SEG_BITS): Define.
2507
2508 2002-07-20 Richard M. Stallman <rms@gnu.org>
2509
2510 * print.c (print_error_message): New args CONTEXT and CALLER.
2511 Calls changed.
2512
2513 * lisp.h (print_error_message): Declare new args.
2514
2515 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
2516 and CONTEXT to print_error_message, don't print them here.
2517 For a Quit, don't use Vsignaling_function.
2518 Call message_log_maybe_newline.
2519
2520 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
2521
2522 2002-07-20 Kim F. Storm <storm@cua.dk>
2523
2524 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
2525
2526 2002-07-19 Ken Raeburn <raeburn@gnu.org>
2527
2528 * bytecode.c (struct byte_stack): Pointers into byte string now
2529 point to const.
2530 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
2531 const.
2532 * charset.h (BCOPY_SHORT): Source pointer now points to const.
2533 * coding.c (encode_eol, detect_coding, detect_eol):
2534 (decode_coding, encode_coding, detect_coding_system):
2535 Source strings now treated as const.
2536 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
2537 modify Lisp string contents.
2538 * coding.h (decode_coding, encode_coding, detect_coding,
2539 detect_eol): Declarations updated.
2540 * composite.c (compose_chars_in_text): Treat Lisp string contents
2541 as const.
2542 * dispnew.c (safe_bcopy): Source pointer now points to const.
2543 * lisp.h (STRING_COPYIN): New macro.
2544 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
2545 (internal_with_output_to_temp_buffer): Declarations updated.
2546 * print.c (temp_output_buffer_setup):
2547 (internal_with_output_to_temp_buffer): Buffer name argument is now
2548 pointer to const.
2549 * sound.c (struct sound_device): Function pointer field "write"
2550 buffer argument now points to const.
2551 (vox_write): Buffer argument points to const.
2552 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
2553 contents as const.
2554 * sysdep.c (emacs_write): Buffer pointer now const.
2555 * term.c (encode_terminal_code): Buffer pointer now const.
2556 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
2557 (x_face_list_fonts, x_update_menu_appearance):
2558 (hash_string_case_insensitive): Treat Lisp string contents as const.
2559
2560 2002-07-19 Juanma Barranquero <lektu@terra.es>
2561
2562 * fileio.c (Ffile_name_as_directory): Fix argument name in docstring.
2563 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
2564
2565 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
2566
2567 * fileio.c (syms_of_fileio): Likewise.
2568
2569 2002-07-18 Richard M. Stallman <rms@gnu.org>
2570
2571 * data.c (Fdefalias): Doc fix.
2572
2573 2002-07-17 Dave Love <fx@gnu.org>
2574
2575 * intervals.h (text_property_stickiness): Use P_.
2576
2577 * ccl.c: Remove `emacs' conditionals.
2578 (ccl_backtrace_table): Fix size spec.
2579 (ccl_driver): Fix type errors.
2580
2581 2002-07-16 Ken Raeburn <raeburn@gnu.org>
2582
2583 * alloc.c (xstrdup, make_string, make_unibyte_string)
2584 (make_multibyte_string, build_string): String pointer args now
2585 point to const.
2586 * charset.c (find_charset_in_text, c_string_width):
2587 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
2588 * fileio.c (report_file_error):
2589 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
2590 (count_combining_before, count_combining_after, insert_1_both):
2591 (insert, insert_and_inherit, insert_string):
2592 (insert_before_markers, insert_before_markers_and_inherit):
2593 * lread.c (intern, oblookup, hash_string):
2594 * minibuf.c (temp_echo_area_glyphs):
2595 * search.c (fast_c_string_match_ignore_case):
2596 * sysdep.c (emacs_open, set_file_times):
2597 * xfaces.c (xstricmp):
2598 * xdisp.c (store_frame_title, string_char_and_length):
2599 (message_dolog, message2, message2_nolog, set_message): Likewise.
2600 (set_message_1): Cast message string argument to const pointer.
2601 * editfns.c (general_insert_function): Insertion function now
2602 takes pointer to const for input data.
2603 * charset.h (find_charset_in_text, c_string_width):
2604 (parse_str_as_multibyte): Declarations updated.
2605 * dispextern.h (xstricmp): Declaration updated.
2606 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
2607 (count_size_as_multibyte, count_combining_before):
2608 (count_combining_after, insert_1, insert_1_both, message_dolog):
2609 (insert, insert_and_inherit, insert_before_markers)
2610 (insert_before_markers_and_inherit, set_message, message2):
2611 (message2_dolog, build_string, make_string, make_unibyte_string):
2612 (make_multibyte_string, intern, oblookup, report_file_error):
2613 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
2614 (emacs_open, xstrdup): Declarations updated.
2615 * systime.h (set_file_times): Declaration updated.
2616
2617 * charset.c (find_charset_in_text, lisp_string_width): Use const
2618 for pointer to lisp string data.
2619 * charset.h (FETCH_STRING_CHAR_ADVANCE):
2620 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
2621 * coding.c (Ffind_coding_systems_region_interval):
2622 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
2623 (Fmake_directory_internal, Fdelete_directory):
2624 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
2625 * fontset.c (font_family_registry, fs_query_fontset):
2626 (list_fontsets):
2627 * frame.c (Fframe_parameter):
2628 * keyboard.c (cmd_error_internal):
2629 * keymap.c (Fdescribe_buffer_bindings):
2630 * lread.c (complete_filename_p, openp):
2631 * minibuf.c (Fminibuffer_complete_word):
2632 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
2633 (face_before_or_after_it_pos, next_element_from_string):
2634 (get_overlay_arrow_glyph_row, display_mode_element):
2635 (decode_mode_spec_coding):
2636 * xterm.c (same_x_server): Likewise.
2637
2638 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
2639 settings of non-existent fields.
2640
2641 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
2642 copy a lisp value.
2643
2644 * lread.c (Fintern_soft): Use string macros instead of
2645 Lisp_String fields.
2646 * keyboard.c (echo_char, parse_modifiers_uncached):
2647 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
2648 * textprop.c (validate_interval_range, interval_of): Likewise.
2649
2650 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
2651
2652 * charset.h (FETCH_STRING_CHAR_ADVANCE)
2653 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
2654 XSTRING()->size_byte.
2655
2656 * lisp.h (SDATA, SREF): Produce rvalue.
2657 (SSET): New macro.
2658 * alloc.c (make_event_array): Use SSET for storing into a string.
2659 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
2660 a string.
2661 * casefiddle.c (casify_object): Use SSET.
2662 * charset.h (FETCH_STRING_CHAR_ADVANCE)
2663 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
2664 address of string contents.
2665 * data.c (Faref): Use SDATA.
2666 (Faset): Use SDATA, SSET.
2667 * dired.c (directory_files_internal): Use SSET.
2668 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
2669 (Fread_file_name): Use SREF, SSET.
2670 * fns.c (concat): Use SSET.
2671 (concat, Fdelete): Use SDATA.
2672 * insdel.c (insert_from_string_1): Use SDATA.
2673 * keyboard.c (Fevent_convert_list): Use SREF.
2674 * lread.c (Fload): Use SDATA, SSET.
2675 * macfns.c (validate_x_resource_name): Use SSET.
2676 * process.c (status_message): Use SSET.
2677 * search.c (wordify): Use SDATA.
2678 (Freplace_match): Use SREF.
2679 * w32fns.c (validate_x_resource_name): Use SSET.
2680 * xfns.c (validate_x_resource_name): Use SSET.
2681 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
2682
2683 2002-07-16 Richard M. Stallman <rms@gnu.org>
2684
2685 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
2686
2687 * xdisp.c (reconsider_clip_changes):
2688 Don't test prevent_redisplay_optimizations_p.
2689 (redisplay_internal): Test prevent_redisplay_optimizations_p
2690 along with clip_changed in some cases.
2691 (try_window_id): Likewise.
2692 (redisplay_window): New local var buffer_unchanged_p.
2693
2694 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
2695
2696 * process.c (create_process): Test USG_SUBTTY_WORKS.
2697 (process_send_signal): Clean up handling of GID.
2698 Detect errors in ioctls meant to set GID.
2699
2700 * window.c (temp_output_buffer_show):
2701 Don't set prevent_redisplay_optimizations_p.
2702
2703 2002-07-15 Juanma Barranquero <lektu@terra.es>
2704
2705 * eval.c (Fdefvaralias): Add docstring argument.
2706
2707 2002-07-15 Ken Raeburn <raeburn@gnu.org>
2708
2709 * lisp.h (STRING_INTERVALS): Produce rvalue.
2710 (STRING_SET_INTERVALS): New macro.
2711 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
2712 * fns.c (Fstring_as_multibyte): Likewise.
2713 * intervals.c (balance_possible_root_interval, delete_interval)
2714 (create_root_interval, copy_intervals_to_string): Likewise.
2715 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
2716 instead of 0.
2717
2718 2002-07-14 Ken Raeburn <raeburn@gnu.org>
2719
2720 * lisp.h (STRING_SET_CHARS): New macro.
2721 (SCHARS, SBYTES): Produce rvalues.
2722 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
2723 * fns.c (concat): Likewise.
2724 * lread.c (read_vector): Likewise.
2725
2726 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
2727 (STRING_SET_UNIBYTE): New macro.
2728 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
2729 length of -1) changed to use STRING_SET_UNIBYTE.
2730 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
2731 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
2732 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
2733 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
2734 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
2735 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
2736 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
2737 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
2738 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
2739 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
2740 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
2741 STRING_BYTES or indirection changed to SCHARS, SBYTES,
2742 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
2743 unchanged for now.
2744
2745 2002-07-13 Kim F. Storm <storm@cua.dk>
2746
2747 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
2748
2749 2002-07-12 Richard M. Stallman <rms@gnu.org>
2750
2751 * fileio.c (Fwrite_region): Doc fix.
2752
2753 * print.c (print_error_message): Don't handle Vsignaling_function here.
2754
2755 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
2756 (command_loop_1): Avoid certain actions after memory-full error.
2757
2758 * eval.c (Fsignal): Don't call cancel_hourglass.
2759 For a memory-full error, don't call Vsignal_hook_function
2760 and don't set Vsignaling_function.
2761
2762 * process.c (process_send_signal): Add abort call.
2763
2764 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
2765
2766 * keymap.c (Fkey_binding): Fix typo.
2767
2768 2002-07-11 Richard M. Stallman <rms@gnu.org>
2769
2770 * alloc.c (Vmemory_full): New variable.
2771 (Vmemory_signal_data): Renamed from memory_signal_data.
2772 Uses changed.
2773 (syms_of_alloc): Defvar them.
2774 (memory_full, buffer_memory_full): Set Vmemory_full.
2775
2776 * lisp.h (Vmemory_full): Add declaration.
2777 (current_column, indented_beyond_p): Change declaration.
2778
2779 * indent.c (last_known_column): Declare as double, not float.
2780 (current_column, current_column_1, string_display_width)
2781 (position_indentation): Return `double'.
2782 (indented_beyond_p): Arg `column' is `double'. Callers changed.
2783
2784 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
2785 (back_to_previous_visible_line_start)
2786 (reseat_at_next_visible_line_start, next_element_from_buffer):
2787 Use `double', not `float', when calling indented_beyond_p.
2788
2789 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
2790
2791 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
2792
2793 2002-07-11 Juanma Barranquero <lektu@terra.es>
2794
2795 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
2796 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
2797 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
2798 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
2799 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
2800 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
2801
2802 2002-07-10 Juanma Barranquero <lektu@terra.es>
2803
2804 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE. All callers
2805 changed.
2806
2807 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
2808
2809 * data.c (Fdefalias): Add an optional `docstring' argument.
2810 (set_internal, Fsetq_default): Use XCAR/XCDR.
2811
2812 * composite.c (HASH_VALUE, HASH_KEY):
2813 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
2814
2815 2002-07-09 Kenichi Handa <handa@etl.go.jp>
2816
2817 * callproc.c (Fcall_process): Fix previous change.
2818
2819 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
2820
2821 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
2822 Add support for hash-tables.
2823 (Ftry_completion): Return t even if the string appears multiple times.
2824
2825 * fns.c (Fnconc): Use XCDR.
2826 (Fprovide): Use CONSP and XCDR.
2827 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
2828 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
2829 (Fmake_hash_table): Accept `:size nil'.
2830 (Fmakehash): Delete: moved to subr.el.
2831 (syms_of_fns): Don't defsubr makehash.
2832
2833 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
2834 (HASH_TABLE_SIZE): Move from fns.c.
2835
2836 2002-07-07 Richard M. Stallman <rms@gnu.org>
2837
2838 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
2839 Instead just return 0 when there is something to be done.
2840 (try_scrolling): If make_cursor_line_fully_visible returns 0,
2841 retry scrolling as if cursor were off the bottom.
2842 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
2843 return CURSOR_MOVEMENT_MUST_SCROLL.
2844 (redisplay_window): If make_cursor_line_fully_visible returns 0,
2845 go to try_to_scroll.
2846
2847 * buffer.c (Fbuffer_local_value): Store current value into its binding
2848 so we get the up-to-date value for the binding that is loaded.
2849
2850 * eval.c (Fdefmacro): Doc fix.
2851
2852 2002-07-05 Dave Love <fx@gnu.org>
2853
2854 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
2855 correctly.
2856
2857 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
2858 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
2859 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
2860 CCL_LookupCharConstTbl.
2861 (syms_of_ccl): Defvar translation-hash-table-vector.
2862
2863 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2864
2865 * xdisp.c: Remove unused variable `face'.
2866
2867 2002-07-04 Juanma Barranquero <lektu@terra.es>
2868
2869 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
2870 obsolescence information.
2871
2872 2002-07-03 Andrew Choi <akochoi@shaw.ca>
2873
2874 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
2875 pattern. Search cache first.
2876 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
2877 for Japanese font.
2878 (XLoadQueryFont): Use it.
2879
2880 2002-07-02 Richard M. Stallman <rms@gnu.org>
2881
2882 * keymap.c (Fdefine_key): Doc fix.
2883
2884 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
2885
2886 2002-07-02 Juanma Barranquero <lektu@terra.es>
2887
2888 * keymap.c (syms_of_keymap): Fix typo.
2889
2890 2002-07-01 Andrew Choi <akochoi@shaw.ca>
2891
2892 * s/darwin.h: Define POSIX_SIGNALS.
2893
2894 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
2895 and FSRefMakePath to convert FSSpec returned with Apple Event to
2896 Posix pathname.
2897 (mac_initialize) [TARGET_API_MAC_CARBON]:
2898 Call init_required_apple_events and disable the `Quit' menu item
2899 provided automatically by the Carbon Toolbox.
2900
2901 2002-07-01 Dave Love <fx@gnu.org>
2902
2903 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
2904 for K&R.
2905
2906 * xterm.c: Fix prototype for K&R.
2907
2908 * term.c (costs_set): Declare static, non-initialized for pcc.
2909
2910 2002-07-01 Richard M. Stallman <rms@gnu.org>
2911
2912 * keyboard.c (timer_last_idleness_start_time): New variable.
2913 (timer_start_idle): Set that.
2914 (read_key_sequence): Use that to reset timer_idleness_start_time
2915 to previous value.
2916
2917 * window.c (Frecenter): With arg, set optional_new_start.
2918
2919 * xdisp.c (redisplay_internal): Make optional_new_start really work.
2920
2921 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
2922 buffer for completion.
2923
2924 2002-06-29 Ken Raeburn <raeburn@gnu.org>
2925
2926 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
2927
2928 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2929
2930 * keyboard.c (readable_filtered_events): New function that filters
2931 FOCUS_IN_EVENT depending on parameter.
2932 (readable_events): Calls readable_filtered_events, not filtering
2933 FOCUS_IN_EVENT.
2934 (get_filtered_input_pending): New function, filtering parameter passed
2935 to readable_filtered_events.
2936 (get_input_pending): Calls get_filtered_input_pending, not filtering
2937 FOCUS_IN_EVENT.
2938 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
2939 FOCUS_IN_EVENT.
2940
2941 * xterm.h (struct x_output): Add focus_state.
2942
2943 * xterm.c (x_focus_changed): New function.
2944 (x_detect_focus_change): New function.
2945 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
2946 EnterNotify and LeaveNotify to track X focus changes.
2947
2948 2002-06-28 Andreas Schwab <schwab@suse.de>
2949
2950 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
2951
2952 2002-06-27 Kim F. Storm <storm@cua.dk>
2953
2954 * xdisp.c: (mode_line_string_list, mode_line_string_face)
2955 (mode_line_string_face_prop): New variables.
2956 (store_mode_line_string): New function.
2957 (display_mode_element): Use store_mode_line_string to
2958 add mode-line string elements to mode_line_string_list
2959 when mode_line_string_list is non-nil.
2960 (Fformat_mode_line): Now returns propertized string by
2961 default. New arg NO-PROPS to ignore properties.
2962 (decode_mode_spec): Only add two dashes for %- in propertized
2963 mode-line string.
2964 (syms_of_xdisp): Init and staticpro mode_line_string_list.
2965
2966 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
2967
2968 * minibuf.c (minibuffer_completion_contents): Add return type.
2969
2970 2002-06-27 Juanma Barranquero <lektu@terra.es>
2971
2972 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
2973
2974 2002-06-26 Juanma Barranquero <lektu@terra.es>
2975
2976 * fileio.c (read_file_name_cleanup): Add missing return.
2977
2978 2002-06-26 Richard M. Stallman <rms@gnu.org>
2979
2980 * window.c (Frecenter): Don't set force_start flag.
2981
2982 * minibuf.c (do_completion, Fminibuffer_complete_word)
2983 (Fminibuffer_completion_help): Complete just the text before point.
2984 (minibuffer_completion_contents): New function.
2985
2986 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
2987
2988 * frame.c (frames_bury_buffer): Function deleted.
2989
2990 2002-06-25 Miles Bader <miles@gnu.org>
2991
2992 * callint.c (Fcall_interactively): When checking to see if doprnt hit
2993 the end of callint_message, allow for a terminating '\0'.
2994
2995 2002-06-24 Juanma Barranquero <lektu@terra.es>
2996
2997 * w32select.c: Include composite.h
2998
2999 * w16select.c: Likewise.
3000
3001 2002-06-24 Kenichi Handa <handa@etl.go.jp>
3002
3003 * callproc.c (Fcall_process): If code detection is necessary,
3004 call detect_coding directly here.
3005
3006 * coding.c (detect_eol): Preserve coding->cmp_data.
3007
3008 * w16select.c (Fw16_get_clipboard_data):
3009 * w32fns.c (w32_to_x_font):
3010 * w32select.c (Fw32_get_clipboard_data):
3011 * xselect.c (selection_data_to_lisp_data):
3012 * xterm.c (XTread_socket): Disable composition handling.
3013
3014 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
3015
3016 * print.c (temp_output_buffer_setup): Kill all local variables.
3017
3018 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
3019
3020 * lread.c (Fread): Remove redundant and imprecise declaration.
3021
3022 * xfns.c (check_x_display_info): Use check_x_frame.
3023
3024 * .gdbinit (xprintsym): Use the new `xname' field.
3025 (xsymbol): Use it.
3026
3027 2002-06-22 Jason Rumney <jasonr@gnu.org>
3028
3029 * w32fns.c (file_dialog_callback): New function.
3030 (Fx_file_dialog): Allow selecting directories as well as files.
3031
3032 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3033
3034 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
3035 OpenBSD. Add support for mipseb-*-netbsd* machines.
3036
3037 2002-06-17 Andrew Choi <akochoi@shaw.ca>
3038
3039 * macterm.c (mac_scroll_area): Set foreground and backcolor to
3040 black and white before scrolling. Restore frame background and
3041 foreground color after scrolling.
3042 (do_window_update): Call XClearWindow before calling expose_frame.
3043 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
3044 FRAME_FOREGROUND_PIXEL of frame.
3045
3046 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
3047 test Mac command key as <ALT> key.
3048
3049 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
3050
3051 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
3052
3053 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
3054 Lookup keys in function-key-map immediately so that key-translation-map
3055 can be applied earlier.
3056 Remove function_key_possible and key_translation_possible, replaced
3057 by checking `keytran_start < t'.
3058
3059 * .gdbinit (xsymbol): Use the new `xname' field.
3060
3061 2002-06-17 Andrew Choi <akochoi@shaw.ca>
3062
3063 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
3064 test Mac command key as <ALT> key.
3065
3066 * mac.c (do_applescript): Call initialize_applescript if necessary
3067 when first called. Dispose of result_desc only when there is no error.
3068 (Fdo_applescript): Use %d format specifier instead of %ld.
3069
3070 2002-06-16 Andrew Choi <akochoi@shaw.ca>
3071
3072 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
3073 of FrontWindow for cases keyDown and autoKey.
3074
3075 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
3076 Vdefault_fontset to Monaco with mac-roman coding.
3077
3078 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
3079 init_process before and after inclusion of Carbon/Carbon.h, resp.
3080
3081 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
3082 cursor_gc.
3083 (add_font_name_table_entry): New function.
3084 (init_font_name_table): Use add_font_name_table_entry; add italic,
3085 bold, and bold-italic entries for truetype fonts.
3086
3087 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
3088 for Mac too.
3089 (try_font_list) [MAC_OS]: If no font matches given registry, try
3090 fonts with any registry matching face_family.
3091 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
3092
3093 * s/darwin.h: If autoconf detects the Ncurses library, define
3094 LIBS_TERMCAP to -lncurses to use it.
3095
3096 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
3097
3098 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
3099
3100 2002-06-15 Richard M. Stallman <rms@gnu.org>
3101
3102 * window.c (Fset_window_configuration): Explicitly preserve
3103 the point value that new_current_buffer had at the start.
3104
3105 2002-06-14 Juanma Barranquero <lektu@terra.es>
3106
3107 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
3108 Fix typos.
3109
3110 2002-06-14 Kim F. Storm <storm@cua.dk>
3111
3112 * insdel.c (insert_1_both, insert_from_string_1)
3113 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
3114 insert happened in the end_unchanged region. Otherwise, the
3115 redisplay may be confused and duplicate the last line in the
3116 buffer [seen after save-buffer when require-final-newline==t].
3117
3118 2002-06-13 Jason Rumney <jasonr@gnu.org>
3119
3120 * w32.c (init_environment): Remove EMACSLOCKDIR.
3121 (stat): Swap _S_IFDIR and _S_IFREG.
3122
3123 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3124
3125 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
3126 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
3127 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
3128 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
3129 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
3130 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
3131 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
3132 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
3133 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
3134 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
3135 SELECTION_REQUEST_EVENT, selection_clear_event to
3136 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
3137 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
3138 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
3139 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
3140 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
3141 no_event to NO_EVENT.
3142
3143 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3144
3145 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
3146
3147 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
3148
3149 * intervals.c (textget): Don't forget to `return'.
3150 (lookup_char_property): Use XCAR/XCDR.
3151
3152 2002-06-12 Juanma Barranquero <lektu@terra.es>
3153
3154 * xdisp.c (Fformat_mode_line): Fix typo.
3155
3156 2002-06-12 Kim F. Storm <storm@cua.dk>
3157
3158 * xdisp.c (Fformat_mode_line): New function.
3159 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
3160 (store_frame_title_char, store_frame_title): Use unconditionally.
3161 (init_xdisp): Defsubr Fformat_mode_line.
3162 Initialize frame_title_buf etc. unconditionally.
3163
3164 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
3165
3166 * keyboard.c (read_key_sequence):
3167 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
3168 things through those maps after downcasing events.
3169 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
3170 applies after function-key-map.
3171 Make sure that keytran can be done in the middle in the sequence.
3172 Be careful not to throw away events past the one we downcase.
3173
3174 * lread.c (read_integer): Remove unused var `tem'.
3175 (read1): Fix int/Lisp_Object mixup.
3176
3177 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
3178
3179 2002-06-11 Richard M. Stallman <rms@gnu.org>
3180
3181 * keyboard.c (readable_events): Ignore any number of
3182 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
3183
3184 2002-06-09 Miles Bader <miles@gnu.org>
3185
3186 * xfaces.c (Ftty_supports_face_attributes_p): New function.
3187 (parse_rgb_list, tty_lookup_color): New functions.
3188 (tty_defined_color): Use `tty_lookup_color' to do all the work.
3189 (color_distance, Fcolor_distance): New functions.
3190 (TTY_SAME_COLOR_THRESHOLD): New macro.
3191 (Qtty_color_standard_values): New variable.
3192 (syms_of_xfaces): Initialize new vars & functions.
3193
3194 2002-06-08 Colin Walters <walters@verbum.org>
3195
3196 * textprop.c (Vchar_property_alias_alist): New variable.
3197 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
3198
3199 * intervals.c (lookup_char_property): New function for looking up
3200 overlay and text properties, created from textget.
3201 (textget): Use it.
3202
3203 * intervals.h (lookup_char_property): Declare.
3204 (Vchar_property_alias_alist): Declare.
3205
3206 * buffer.c (Foverlay_get): Use lookup_char_property.
3207
3208 2002-06-07 Sam Steingold <sds@gnu.org>
3209
3210 * xselect.c (lisp_data_to_selection_data): Fix last change:
3211 *data_ret is not a Lisp string, while unibyte_string is.
3212
3213 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
3214
3215 * xselect.c (lisp_data_to_selection_data): Fix last change:
3216 set size_ret.
3217
3218 2002-06-07 Andreas Schwab <schwab@suse.de>
3219
3220 * m/amdx86-64.h: New file.
3221
3222 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
3223
3224 * fns.c (Fstring_make_unibyte): Doc fix.
3225
3226 * xselect.c (lisp_data_to_selection_data): If the requested type
3227 is STRING, call string_make_unibyte to encode the selected text
3228 as a string.
3229
3230 * window.c (Fset_window_hscroll): Doc fix.
3231
3232 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3233
3234 * fileio.c (choose_write_coding_system):
3235 Call select-safe-coding-system properly.
3236
3237 2002-06-03 Richard M. Stallman <rms@gnu.org>
3238
3239 * xdisp.c (message_with_string): Error if STRING is not a string.
3240
3241 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
3242
3243 * fileio.c (choose_write_coding_system): Pass FILE arg to
3244 Vselect_safe_coding_system_function.
3245
3246 2002-06-03 Ken Raeburn <raeburn@gnu.org>
3247
3248 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
3249
3250 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
3251
3252 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
3253 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
3254 * keymap.c (describe_command): Likewise.
3255 * minibuf.c (read_minibuf): Likewise.
3256
3257 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
3258 Cast `current_column' return value to int.
3259 (back_to_previous_visible_line_start)
3260 (reseat_at_next_visible_line_start, next_element_from_buffer):
3261 Cast `indented_beyond_p' 3rd arg to float.
3262
3263 * indent.c (last_known_column): Now a float.
3264 (current_column_1, position_indentation, current_column)
3265 (string_display_width): Return float.
3266 (Fcurrent_column): Cast `current_column' return value to int.
3267 (Fcurrent_indentation): Cast `position_indentation' retval to int.
3268 (indented_beyond_p): Third arg now a float.
3269 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
3270
3271 * lisp.h (current_column): Now returns float.
3272 (indented_beyond_p): 3rd arg now a float.
3273
3274 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
3275
3276 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
3277 is Qcompound_text_with_extensions.
3278
3279 * xselect.c (lisp_data_to_selection_data): Always set selection
3280 type as string if x_encode_text returns streingp non-NULL.
3281
3282 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
3283
3284 2002-05-30 Richard M. Stallman <rms@gnu.org>
3285
3286 * window.c (Fset_window_configuration): Correct the handling
3287 of point in current buffer, to work with multiple windows.
3288
3289 2002-05-29 Colin Walters <walters@verbum.org>
3290
3291 * lread.c (Fread_from_string): Don't depend on order of evaluation
3292 for C function parameters.
3293
3294 2002-05-28 Richard M. Stallman <rms@gnu.org>
3295
3296 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
3297 way for blinked-off state and for a nonselected window.
3298
3299 * window.c (window_scroll_pixel_based): Don't call Fbolp;
3300 instead, see if the new start pos is at beginning of line.
3301
3302 * fileio.c (Fwrite_region): If START is a string, don't
3303 make any annotations.
3304
3305 * eval.c (syms_of_eval): Doc fix.
3306
3307 2002-05-28 Colin Walters <walters@debian.org>
3308
3309 * emacs.c (USAGE1): Add --no-splash.
3310 (standard_args): Ditto.
3311
3312 2002-05-28 Colin Walters <walters@gnu.org>
3313
3314 * lread.c (readchar_count): New variable.
3315 (readchar): Increment it.
3316 (unreadchar): Decrement it.
3317 (read_multibyte): Decrement it.
3318 (Vread_with_symbol_positions): New variable.
3319 (Vread_symbol_positions_list): New variable.
3320 (read_internal_start): New function, created from Fread and
3321 Fread_from_string. Handle Vread_symbol_positions_list and
3322 Vread_with_symbol_positions.
3323 (readevalloop, Fread, Fread_from_string): Use it.
3324 (read1): Use readchar_count to add symbol positions to
3325 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
3326 (syms_of_lread): DEFVAR_LISP and initialize them.
3327
3328 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
3329 (substitute_object_recurse, substitute_object_in_subtree)
3330 (substitute_in_interval): Prototype.
3331 (read_multibyte): Return c if it's less than zero.
3332
3333 2002-05-28 Kim F. Storm <storm@cua.dk>
3334
3335 * fileio.c (Fread_file_name_internal): Added brute-force
3336 speed up for using predicate file-directory-p.
3337
3338 2002-05-28 Kim F. Storm <storm@cua.dk>
3339
3340 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
3341 New variables.
3342 (syms_of_fileio): DEFVAR_LISP them.
3343 (read_file_name_cleanup): New unwind function.
3344 (Fread_file_name_internal): Only return completions satifying
3345 Vread_file_name_predicate. Temporarily unwind protect and rebind
3346 default-directory while checking completions against the predicate.
3347 (Fread_file_name): Added PREDICATE argument. Specbind it to
3348 Vread_file_name_predicate during completion.
3349 Call Vread_file_name_function to read the file name if non-nil.
3350
3351 * lisp.h (Fread_file_name): Now has 6 args.
3352
3353 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
3354 predicate for Fread_file_name when reading directory name.
3355 Supply Qnil for predicate in other calls to Fread_file_name.
3356
3357 2002-05-26 Miles Bader <miles@gnu.org>
3358
3359 * term.c (tty_capable_p): New function.
3360 * dispextern.h (tty_capable_p): New function declaration.
3361 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
3362 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
3363
3364 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
3365
3366 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
3367 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
3368 (Vwrite_region_annotate_functions): Docstring fix.
3369
3370 2002-05-23 Kim F. Storm <storm@cua.dk>
3371
3372 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
3373 phys_cursor's hpos is overwritten. This is still not completely
3374 correct, as it doesn't really make sense to use hpos at all to
3375 get the cursor glyph (as that is relative to the width of the
3376 characters on the line, which may have changed during the update).
3377
3378 2002-05-22 Jason Rumney <jasonr@gnu.org>
3379
3380 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
3381 Lisp_Object.
3382 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
3383 Use modified enumfont_t struct.
3384
3385 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
3386
3387 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
3388 Handle the `hbar' cursor type.
3389 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
3390
3391 * w32fns.c (Qhbar): New variable.
3392 (x_specified_cursor_type): Use it.
3393
3394 2002-05-21 Ken Raeburn <raeburn@gnu.org>
3395
3396 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
3397 now, when the address is needed.
3398
3399 2002-05-21 Colin Walters <walters@gnu.org>
3400
3401 * Makefile.in (shortlisp): Add font-core.el.
3402
3403 2002-05-20 Richard M. Stallman <rms@gnu.org>
3404
3405 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
3406
3407 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
3408 equivalent key bindings here.
3409
3410 2002-05-20 Ken Raeburn <raeburn@gnu.org>
3411
3412 Change symbol structure to contain a lisp object for the symbol
3413 name:
3414 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
3415 object field named "xname".
3416 (SYMBOL_NAME): New macro.
3417 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
3418 name field.
3419 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
3420 (mark_object, gc_sweep): Use symbol xname field and XSTRING
3421 instead of name field.
3422 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
3423 SYMBOL_NAME instead of XSYMBOL and name field.
3424 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
3425 instead of XSYMBOL and name field.
3426 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
3427 and SYMBOL_NAME instead of XSYMBOL and name field.
3428 * coding.c (Fread_coding_system, code_convert_region1)
3429 (code_convert_string1, code_convert_string_norecord)
3430 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
3431 XSYMBOL and name field.
3432 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
3433 (Fmake_variable_buffer_local, Fmake_local_variable)
3434 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
3435 of XSYMBOL and name field.
3436 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
3437 XSYMBOL and name field.
3438 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
3439 instead of XSYMBOL and name field.
3440 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
3441 XSYMBOL and name field.
3442 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
3443 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
3444 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
3445 instead of XSYMBOL and name field.
3446 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
3447 (parse_modifiers, apply_modifiers, Fevent_convert_list)
3448 (parse_solitary_modifier, Fexecute_extended_command):
3449 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
3450 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
3451 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
3452 of XSYMBOL and name field.
3453 (describe_command, describe_translation): Use SYMBOL_NAME and
3454 assignment instead of XSYMBOL and name field and XSETSTRING.
3455 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
3456 instead of XSYMBOL and name field.
3457 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
3458 name field and XSETSTRING.
3459 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
3460 of XSYMBOL and name field.
3461 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
3462 assignment instead of XSYMBOL and name field and XSETSTRING.
3463 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
3464 XSTRING instead of XSYMBOL and name field.
3465 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
3466 and XSTRING instead of XSYMBOL and name field.
3467 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
3468 and XSTRING instead of XSYMBOL and name field.
3469 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
3470 XSTRING instead of XSYMBOL and name field.
3471 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
3472 of XSYMBOL and name field.
3473 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
3474 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
3475
3476 2002-05-19 Ken Raeburn <raeburn@gnu.org>
3477
3478 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
3479 and XCDR real rvalues in most configurations.
3480
3481 * buffer.c (fix_overlays_in_range, fix_overlays_before):
3482 Don't take the address of the cdr part of a cons cell; instead, track
3483 the parent cell and call XSETCDR, or set the variable for the head
3484 of the list if we haven't started down the list yet.
3485
3486 2002-05-19 Richard M. Stallman <rms@gnu.org>
3487
3488 * doc.c (reread_doc_file): Don't ask for confirmation.
3489
3490 2002-05-18 Jason Rumney <jasonr@gnu.org>
3491
3492 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
3493 (xbm_load_image): Use it.
3494 (xbm_load): Ditto.
3495 (xbm_read_bitmap_data): Reverted to xfns.c version.
3496 From David Ponce <david@dponce.com>.
3497
3498 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
3499
3500 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
3501 2.02 and later.
3502
3503 2002-05-16 Juanma Barranquero <lektu@terra.es>
3504
3505 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
3506
3507 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
3508
3509 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
3510 meaningful test.
3511 (read_char_minibuf_menu_prompt): Fix typo.
3512
3513 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
3514
3515 * eval.c (Fcommandp): Doc fix.
3516
3517 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
3518
3519 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
3520 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
3521 (Fset_keymap_parent): Gcpro a bit more.
3522 (access_keymap): Gcpro around meta_map call and around the main loop.
3523 (get_keyelt): Gcpro when following indirect references.
3524 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
3525 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
3526 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
3527 Remove useless ad-hoc remap code.
3528
3529 2002-05-13 Richard M. Stallman <rms@gnu.org>
3530
3531 * search.c (search_buffer): Give up boyer moore search if inverse
3532 translation change charset_base.
3533
3534 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
3535
3536 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
3537 characters is carried over from the previous block of text, adjust
3538 coding->produced to account for the extra character.
3539
3540 2002-05-11 Andreas Schwab <schwab@suse.de>
3541
3542 * coding.c (intersection): Keep the elements of the returned list
3543 in the same order as in the first list.
3544
3545 2002-05-11 Kim F. Storm <storm@cua.dk>
3546
3547 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
3548 only update cmm_size if realloc actually succeeds.
3549 Testing with initial size of 2 elements revealed that using
3550 realloc on GNU/Linux would cause a random trap in xmalloc
3551 later on, so I rewrote the code to use malloc/bcopy/free instead
3552 of realloc.
3553
3554 2002-05-10 Jason Rumney <jasonr@gnu.org>
3555
3556 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
3557
3558 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
3559
3560 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
3561 parens, to ensure correct evaluation order.
3562
3563 2002-05-10 Kim F. Storm <storm@cua.dk>
3564
3565 * keymap.c (Vemulation_mode_map_alists): New variable.
3566 (syms_of_keymap): DEFVAR_LISP it.
3567 (current_minor_maps): Process keymap alists in that list before
3568 minor-mode-overriding-map-alist and minor-mode-map-alist.
3569
3570 2002-05-09 Richard M. Stallman <rms@gnu.org>
3571
3572 * search.c (Freplace_match): Doc fix.
3573
3574 2002-05-09 Kim F. Storm <storm@cua.dk>
3575
3576 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
3577 Enlarge cursor rectangle drawn around image with non-zero relief.
3578
3579 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
3580 Enlarge cursor rectangle drawn around image with non-zero relief.
3581
3582 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
3583 Enlarge cursor rectangle drawn around image with non-zero relief.
3584
3585 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
3586
3587 * xselect.c (lisp_data_to_selection_data): Don't set selection
3588 type if comes from the Lisp object's car. If the selection
3589 contains a pure ASCII text, always return QSTRING as its type.
3590
3591 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3592
3593 * mac.c (mac-cut-function): Doc fix.
3594
3595 2002-05-05 Richard M. Stallman <rms@gnu.org>
3596
3597 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
3598
3599 2002-05-04 Jason Rumney <jasonr@gnu.org>
3600
3601 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
3602 for event-click-count.
3603
3604 * process.c (init_process): Only add server subfeature if we can
3605 use non-blocking I/O.
3606
3607 2002-05-04 Andrew Choi <akochoi@shaw.ca>
3608
3609 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
3610 repeatedly.
3611
3612 2002-05-03 Jason Rumney <jasonr@gnu.org>
3613
3614 * process.c (Fmake_network_process): Only support server sockets
3615 when we can make them non-blocking.
3616
3617 * s/ms-w32.h (HAVE_SELECT): Define.
3618
3619 * w32.h (FILE_NDELAY): New flag.
3620
3621 * w32.c (sys_getpeername, fcntl): New functions.
3622 (_sys_read_ahead): Temporarily block on non-blocking sockets.
3623
3624 * w32proc.c: include sys/file.h.
3625
3626 2002-05-03 Colin Walters <walters@verbum.org>
3627
3628 * callproc.c (Vgame_score_directory): Renamed to
3629 Vshared_game_score_directory.
3630
3631 2002-04-30 Richard M. Stallman <rms@gnu.org>
3632
3633 * s/gnu.h [emacs]: Include stdio.h.
3634 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
3635
3636 * eval.c (do_autoload): Error if called while preparing to dump.
3637
3638 * fns.c (Frequire): Error if need to load while preparing to dump.
3639
3640 2002-04-28 Colin Walters <walters@verbum.org>
3641
3642 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
3643 Default to "~/.emacs.d/games".
3644
3645 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
3646
3647 * lread.c (openp): Change arg exec_only to predicate.
3648 (build_load_history): Use XCAR/XCDR.
3649 (Flocate_file_internal): New fun.
3650 (syms_of_lread): Defsubr it.
3651 (Fload): Update call to openp.
3652
3653 * lisp.h (openp): Update prototype.
3654
3655 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
3656 * w32proc.c (sys_spawnve):
3657 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
3658 * w32.c (check_windows_init_file):
3659 * sound.c (Fplay_sound_internal):
3660 * process.c (Fstart_process):
3661 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
3662 * mac.c (run_mac_command):
3663 * emacs.c (init_cmdargs):
3664 * callproc.c (Fcall_process): Update call to openp.
3665
3666 * textprop.c (remove_properties): Don't use XCAR without CONSP.
3667
3668 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
3669
3670 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3671
3672 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
3673 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
3674
3675 2002-04-28 Richard M. Stallman <rms@gnu.org>
3676
3677 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
3678
3679 * eval.c (Fcommandp): New arg for_call_interactively.
3680 * lisp.h (Fcommandp): Declare new arg.
3681
3682 2002-04-28 Jason Rumney <jasonr@gnu.org>
3683
3684 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
3685
3686 * w32.c (stat, fstat): Use file index information to generate
3687 inodes for directories where available.
3688
3689 2002-04-26 Andrew Choi <akochoi@shaw.ca>
3690
3691 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
3692 [HAVE_CARBON]: Include Mac object files.
3693
3694 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
3695 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
3696 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
3697 MAC_OSX, and MAC_OS instead of macintosh.
3698
3699 * editfns.c [MAC_OS8]: Include stdio.h.
3700
3701 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
3702
3703 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
3704 Apple Monaco.
3705
3706 * process.c: Declare QCfamily and QCfilter as extern.
3707 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
3708 calling select.
3709
3710 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
3711
3712 * tparam.c [MAC_OSX]: Don't define BC and UP.
3713
3714 * config.in [HAVE_CARBON]: Add.
3715
3716 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
3717 Move here from mac/src and mac/inc.
3718
3719 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
3720
3721 2002-04-26 Gerd Moellmann <gerd@gnu.org>
3722
3723 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
3724 Compute phys_cursor_width from the x position returned
3725 by x_draw_glyhs, which is cheaper.
3726 (x_display_and_set_cursor): Compute the buffer-local value
3727 of `cursor-in-non-selected-windows' only when needed.
3728
3729 2002-04-25 Gerd Moellmann <gerd@gnu.org>
3730
3731 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
3732 cursor on a stretch glyph has a width that depends on
3733 x_stretch_cursor_p.
3734
3735 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3736
3737 * abbrev.c (abbrev-start-location): Doc fix.
3738
3739 * indent.c (Fvertical_motion): Fix last change.
3740
3741 2002-04-25 Gerd Moellmann <gerd@gnu.org>
3742
3743 * indent.c (Fvertical_motion): Move to the start of the line
3744 containing PT before moving up or down.
3745
3746 2002-04-24 Gerd Moellmann <gerd@gnu.org>
3747
3748 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
3749 case of writing a whole row, more or less analogous to the case of
3750 writing only parts of a row.
3751
3752 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
3753 0 for NO_CURSOR.
3754
3755 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
3756
3757 2002-04-23 Colin Walters <walters@verbum.org>
3758
3759 * buffer.c (syms_of_buffer): Doc fix.
3760
3761 2002-04-23 Gerd Moellmann <gerd@gnu.org>
3762
3763 * xterm.c (notice_overwritten_cursor): Handle the special case
3764 of the cursor being in the first blank non-text line at the
3765 end of a window.
3766
3767 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
3768 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
3769 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
3770 bar cursors only, to make phys_cursor_width contain what its name
3771 suggests.
3772 (notice_overwritten_cursor): Consider the cursor image erased if
3773 the output area intersects the cursor image in y-direction.
3774
3775 2002-04-23 Simon Marshall <simon@gnu.org>
3776
3777 * xfns.c (x_set_mouse_color): Change default for cross_cursor
3778 to XC_hand2.
3779
3780 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3781
3782 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
3783
3784 2002-04-22 Kim F. Storm <storm@cua.dk>
3785
3786 * textprop.c (remove_properties): Fixed trap for malformed plist.
3787
3788 2002-04-22 Richard M. Stallman <rms@gnu.org>
3789
3790 * cmds.c (Fend_of_line): Handle intangible text in mid line.
3791
3792 * window.c (make_window): Initialize height_fixed_p,
3793 last_cursor_off_p, and p->cursor_off_p slots.
3794
3795 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3796
3797 * fns.c (use-dialog-box): Doc fix.
3798
3799 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3800
3801 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
3802 variables `row', `i' and `area'.
3803 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
3804 toolkit library.
3805
3806 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
3807
3808 * xfaces.c (clear_font_table): Don't free the default font of
3809 a frame even if it's on another display.
3810 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
3811 that could be Qt.
3812
3813 2002-04-19 Juanma Barranquero <lektu@terra.es>
3814
3815 * indent.c (Fmove_to_column): Remove unused local variable
3816 `next_boundary_byte'.
3817 (current_column_1): Likewise.
3818
3819 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
3820
3821 * msdos.c (Qhbar): New variable.
3822 (syms_of_msdos): Intern and staticpro it.
3823 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
3824 cursor type.
3825
3826 2002-04-19 Dave Lambert <dlambert@acm.org>
3827
3828 Theses change implement an underscore-like (`hbar') cursor.
3829
3830 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
3831
3832 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
3833 Handle the `hbar' cursor type.
3834 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
3835
3836 * xfns.c (Qhbar): New variable.
3837 (syms_of_xfns): Intern and staticpro it.
3838 (x_specified_cursor_type): Handle `hbar' cursor.
3839
3840 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
3841 not defined.
3842
3843 2002-04-18 Richard M. Stallman <rms@gnu.org>
3844
3845 * textprop.c (remove_properties): New arg LIST allows scanning
3846 either a list or a plist.
3847 (interval_has_some_properties_list): New function, like
3848 interval_has_some_properties using list instead of plist.
3849 All callers changed.
3850 (Fremove_list_of_text_properties): New function.
3851 (syms_of_textprop): Defsubr it.
3852
3853 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
3854
3855 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
3856
3857 2002-04-17 Juanma Barranquero <lektu@terra.es>
3858
3859 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
3860
3861 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
3862
3863 * window.c (coordinates_in_window): Don't report on margin area
3864 if its width is zero.
3865
3866 2002-04-16 Jason Rumney <jasonr@gnu.org>
3867
3868 * w32fns.c (Fx_file_dialog): Decode file name before using.
3869
3870 * w32term.c (construct_drag_n_drop): Likewise.
3871
3872 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
3873
3874 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
3875 store load-history in pure space.
3876
3877 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
3878
3879 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
3880
3881 * xterm.c (Qlatin_1, Qutf_8): New vars.
3882 (syms_of_xterm): Initialize them.
3883 (XTread_socket): Eliminate incorrect optimization that tried to avoid
3884 decoding the output of X*LookupString.
3885 Always use latin-1 to decode the output of XLookupString.
3886 Try Xutf8LookupString if XmbLookupString failed.
3887
3888 * region-cache.c (new_region_cache): Use BEG.
3889
3890 2002-04-16 Gerd Moellmann <gerd@gnu.org>
3891
3892 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
3893 configuration files.
3894 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
3895 returns 0.
3896
3897 2002-04-15 Andreas Schwab <schwab@suse.de>
3898
3899 * config.in: Regenerated using autoheader.
3900
3901 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
3902 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
3903 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
3904 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
3905 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
3906 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
3907 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
3908 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
3909 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
3910 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
3911 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
3912 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
3913 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
3914 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
3915 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
3916 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
3917 STACK_DIRECTION, now set by autoconf.
3918
3919 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3920
3921 * dispnew.c (marginal_area_string): Sort arguments.
3922
3923 * dispextern.h (marginal_area_string): Add prototype.
3924
3925 2002-04-13 Richard M. Stallman <rms@gnu.org>
3926
3927 * fileio.c (Finsert_file_contents):
3928 Don't call temp_output_buffer_setup--do just part, by hand.
3929
3930 * coding.c (run_pre_post_conversion_on_str):
3931 Don't call temp_output_buffer_setup--do just part, by hand.
3932
3933 * keyboard.c (command_loop_1): Don't call start_hourglass
3934 or cancel_hourglass when executing a macro.
3935
3936 * marker.c (count_markers): New function.
3937
3938 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
3939 grow without limit. Move recently used elements to the front.
3940
3941 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
3942
3943 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
3944
3945 2002-04-12 Gerd Moellmann <gerd@gnu.org>
3946
3947 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
3948 rows marginal areas.
3949 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
3950 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
3951
3952 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
3953
3954 2002-04-12 Dave Love <fx@gnu.org>
3955
3956 * dispnew.c (marginal_area_string): New.
3957
3958 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
3959 (Qleft_margin, Qright_margin): Declare.
3960 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
3961
3962 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
3963 note_mode_line_highlight and extended.
3964
3965 * keyboard.c (Qleft_margin, Qright_margin): Declare.
3966 (make_lispy_event): Deal with mouse events in margins.
3967
3968 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
3969
3970 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
3971
3972 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
3973 than deactivating the mark if tmm is set to `lambda'.
3974 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
3975 Use a single event for HELP_EVENT.
3976 (Fexecute_extended_command): Save last_point_position.
3977
3978 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3979
3980 * lisp.h (Fpropertize): Add prototype.
3981
3982 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
3983
3984 2002-04-10 Colin Walters <walters@verbum.org>
3985
3986 * config.in: Add HAVE_SHARED_GAME_DIR.
3987
3988 * callproc.c: (Vgame_score_directory): New variable.
3989 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
3990
3991 2002-04-10 Richard M. Stallman <rms@gnu.org>
3992
3993 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
3994
3995 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
3996
3997 * minibuf.c (read_minibuf): Use empty_string.
3998 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
3999 Short-circuit the search as soon as it "failed".
4000 (Fall_completions): Allow lambda forms and lists of strings for alist.
4001 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
4002 when require_match is nil.
4003 (Ftest_completion): Rename from `test_completion' and export to elisp.
4004 Call the predicate also when alist is a list.
4005 Obey Vcompletion_regexp_list.
4006 (do_completion, Fminibuffer_complete_and_exit): Use it.
4007 (Fassoc_string): Rename from `assoc_for_completion'.
4008 Allow list of strings as well and export to elisp.
4009
4010 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
4011
4012 * puresize.h (BASE_PURESIZE): Increase to 900KB.
4013
4014 2002-04-08 Juanma Barranquero <lektu@terra.es>
4015
4016 * w32.c (sys_accept): Don't hide variable `s'.
4017
4018 2002-04-05 Gerd Moellmann <gerd@gnu.org>
4019
4020 * callint.c (Fcall_interactively): Use INTEGERP instead of
4021 NUMBERP for checking Vhistory_length.
4022
4023 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4024
4025 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
4026 Doc fix to reflect it.
4027
4028 2002-04-04 Richard M. Stallman <rms@gnu.org>
4029
4030 * xdisp.c (display_mode_element): New arg RISKY.
4031 Disregard text props found or specified within a variable
4032 that isn't marked risky-local-variable.
4033 (Qrisky_local_variable): New variable.
4034 (syms_of_xdisp): Init and staticpro it.
4035
4036 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
4037
4038 * undo.c (record_point): New fun.
4039 (record_delete, record_insert): Use it.
4040
4041 2002-04-03 Juanma Barranquero <lektu@terra.es>
4042
4043 * doc.c (Fdocumentation): Add missing parentheses.
4044 (Fdocumentation_property): Likewise.
4045
4046 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
4047
4048 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
4049 data is 0, just return nil.
4050
4051 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
4052
4053 * msdos.c (syms_of_msdos): Fix last change with
4054 mouse_autoselect_window.
4055
4056 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4057
4058 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
4059 mouse_autoselect_window.
4060
4061 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
4062
4063 * keyboard.c (make_lispy_event): Handle unknown keysyms together
4064 with system-specific keysyms. Use it also for unknown function keys.
4065
4066 * doc.c (reread_doc_file): Return whether reload was attempted.
4067 (Fdocumentation, Fdocumentation_property): Don't try to reload
4068 if the doc is 0 and only ask once.
4069
4070 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
4071
4072 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
4073
4074 * keyboard.c (read_char): If the event was Qselect_window,
4075 restore timer_idleness_start_time to its previous value.
4076
4077 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
4078
4079 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
4080
4081 * region-cache.c (new_region_cache): Use BEG.
4082
4083 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
4084 Use BEG and BEG_BYTE.
4085
4086 * doc.c (get_doc_string): Return nil if the location is wrong.
4087 (reread_doc_file): New fun.
4088 (Fdocumentation, Fdocumentation_property):
4089 Call it if get_doc_string fails.
4090 (Fsnarf_documentation): Make it work for a dumped Emacs.
4091
4092 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
4093 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
4094
4095 * charset.c (Fstring): Allow 0 arguments.
4096
4097 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
4098
4099 * process.c (DATAGRAM_CONN_P, list_processes_1)
4100 (Fprocess_datagram_address, Fset_process_datagram_address)
4101 (Fset_network_process_options, server_accept_connection):
4102 Fix some int/Lisp_Object confusions (thank you union types).
4103
4104 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4105
4106 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
4107
4108 * w32term.c: Likewise.
4109 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
4110
4111 * keyboard.c (Qselect_window): New symbol.
4112 (head_table): Use it.
4113 (keys_of_keyboard): Bound select-window event to handle-select-window.
4114 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
4115
4116 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
4117 (last_window): New variable.
4118 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
4119 (note_mouse_movement): Remove reimplemented code in #if 0.
4120 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
4121 Emacs windows.
4122
4123 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
4124
4125 2002-03-31 Gerd Moellmann <gerd@gnu.org>
4126
4127 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
4128 Callers changed.
4129
4130 2002-03-30 Richard M. Stallman <rms@gnu.org>
4131
4132 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
4133 loop whenever it stops making progress.
4134
4135 * widget.c (set_frame_size): Don't call change_frame_size.
4136
4137 2002-03-30 Gerd Moellmann <gerd@gnu.org>
4138
4139 * dispnew.c (direct_output_for_insert):
4140 Call mark_window_display_accurate.
4141
4142 2002-03-29 Jason Rumney <jasonr@gnu.org>
4143
4144 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
4145
4146 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
4147
4148 * Makefile.in (lread.o): Depend on coding.h.
4149
4150 * lread.c (openp, Fload): Encode the file name before passing it
4151 to `stat', `access', and `emacs_open'.
4152 (openp): GCPRO the encoded file name. Don't recompute Lisp
4153 strings unnecessarily.
4154
4155 2002-03-29 Kim F. Storm <storm@cua.dk>
4156
4157 * fns.c (Flax_plist_put): Doc fix.
4158
4159 2002-03-28 Miles Bader <miles@gnu.org>
4160
4161 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
4162
4163 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4164
4165 * process.c (set-network-process-options): Add usage.
4166 (make-network-process): Doc fix.
4167
4168 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
4169
4170 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
4171
4172 2002-03-26 Richard M. Stallman <rms@gnu.org>
4173
4174 * fns.c (Fsubstring_no_properties): New function.
4175 (Flax_plist_get, Flax_plist_put): New functions.
4176 (syms_of_fns): defsubr them.
4177
4178 * xdisp.c (update_menu_bar): Test only update_mode_lines;
4179 don't test or alter w->update_mode_line.
4180
4181 * window.c (Fdisplay_buffer): Doc fix.
4182
4183 2002-03-24 Richard M. Stallman <rms@gnu.org>
4184
4185 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
4186
4187 2002-03-24 Gerd Moellmann <gerd@gnu.org>
4188
4189 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
4190 (Fdefmacro): Handle `(declare ...)'.
4191 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
4192 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
4193
4194 2002-03-24 Jason Rumney <jasonr@gnu.org>
4195
4196 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
4197 (xbm_file_p): Add prototypes.
4198 (xbm_format, xbm_image_p): Sync with xfns.c.
4199 (reflect_byte): New function.
4200 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
4201 (xbm_load_image): Create bitmaps with a depth of 1.
4202 (init_xfns): Enable XBM images.
4203
4204 2002-03-23 Jason Rumney <jasonr@gnu.org>
4205
4206 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
4207 correctly. Do not pass up_modifier to keyboard buffer.
4208
4209 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
4210
4211 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
4212
4213 * Makefile.in (bootstrapclean): New target.
4214 (bootstrap-temacs, bootstrap-doc): Remove.
4215 (bootstrap-emacs): Use a bog-standard `temacs'.
4216 Don't bother to build a DOC file.
4217
4218 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
4219
4220 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
4221 in temacs even if !CANNOT_DUMP.
4222 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
4223
4224 * alloc.c (check_pure_size): Only output a warning.
4225
4226 2002-03-22 Jason Rumney <jasonr@gnu.org>
4227
4228 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
4229 supported.
4230
4231 * w32term.c (zv_bits): Declare as short, for word alignment.
4232 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
4233 (syms_of_w32term): Define x-use-underline-position-properties.
4234
4235 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
4236 (clear_image_cache): Block input, fix logic, clear matrices in
4237 all frames that share this cache.
4238
4239 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
4240
4241 * emacs.c (main): Update the Copyright year in the blurb printed
4242 by "emacs --version".
4243
4244 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
4245
4246 * xterm.c (XTread_socket): If XK_ISO_Lock and
4247 XK_ISO_Last_Group_Lock are defined, handle keysyms between
4248 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
4249
4250 2002-03-21 Kim F. Storm <storm@cua.dk>
4251
4252 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
4253 menu-bar bindings in keymap and local-map properties _are_ used.
4254 But try keymap property first in accordance with 2002-01-03 patch.
4255 Added comment describing why this is not always reliable.
4256 (tool_bar_items): Ditto for tool-bar.
4257
4258 2002-03-21 Jason Rumney <jasonr@gnu.org>
4259
4260 * w32fns.c (x_clear_image_1): Disable color table code.
4261
4262 2002-03-21 Kim F. Storm <storm@cua.dk>
4263
4264 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
4265 removed the wrong version of the DEFUN macro; fixed it.
4266
4267 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
4268 Fmember rather than Fmemq).
4269 (Fprovide): Check that subfeatures is a list.
4270
4271 * process.c (QCfeature, QCdatagram): Removed variables.
4272 (QCtype, Qdatagram): New variables.
4273 (network_process_featurep): Removed function.
4274 (Fmake_network_process): Removed :feature check.
4275 Use :type 'datagram instead of :datagram t to create a datagram
4276 socket. This allows us to add other connection types (e.g. raw
4277 sockets) later in a consistent manner.
4278 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
4279 supported subfeatures for feature make-network-process.
4280 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
4281 Intern and staticpro QCtype and Qdatagram.
4282 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
4283
4284 * xfns.c: (QCtype): Remove duplicate declaration and
4285 initialization (is now declared in process.c).
4286
4287 * w32fns.c: (QCtype): Remove duplicate declaration and
4288 initialization (is now declared in process.c).
4289
4290 2002-03-21 Richard M. Stallman <rms@gnu.org>
4291
4292 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
4293 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
4294 when jumping to `fail' to avoid undoing reg changes in the
4295 last iteration of the loop.
4296 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
4297
4298 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
4299 Depend on process.h.
4300
4301 2002-03-20 Jason Rumney <jasonr@gnu.org>
4302
4303 Most of the following changes are still conditional on HAVE_IMAGES
4304 which is not set by default on Windows.
4305
4306 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
4307
4308 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
4309 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
4310 (four_corners_best, x_clear_image_1, x_clear_image)
4311 (x_alloc_image_color, postprocess_image)
4312 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
4313 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
4314 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
4315
4316 * w32gui.h (struct XImage): Define.
4317
4318 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
4319 extract mouse co-ordinates.
4320
4321 2002-03-20 Jason Rumney <jasonr@gnu.org>
4322
4323 * w32.c (init_winsock): Dynamically load new server and UDP
4324 socket functions.
4325 (socket_to_fd): New function.
4326 (sys_socket): Use it.
4327 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
4328 (sys_recvfrom, sys_sendto): New wrapper functions.
4329
4330 * process.c (QCfamily, QCfilter): Remove duplicate declaration
4331 and initialization.
4332
4333 * makefile.w32-in (LIBS): Remove $(WSOCK32).
4334
4335 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
4336
4337 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
4338 Don't use "sun" as a variable, it's a predefined constant on Sun
4339 machines.
4340
4341 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4342
4343 * bytecode.c (Fbyte_code): Revert last change.
4344
4345 2002-03-19 Kim F. Storm <storm@cua.dk>
4346
4347 * makefile.w32-in (LIBS): Add $(WSOCK32).
4348 From David Ponce <dponce@voila.fr>.
4349
4350 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4351
4352 * process.c (wait_reading_process_input): Move variables `pname'
4353 and `pnamelen' down where they are used.
4354
4355 * bytecode.c (Fbyte_code): Discard unused computed value to
4356 prevent gcc warning.
4357
4358 * lisp.h (Fplist_member): Add prototype.
4359
4360 2002-03-18 Kim F. Storm <storm@cua.dk>
4361
4362 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
4363 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
4364
4365 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
4366 Remove explicit GNU_LINUX settings for datagram support.
4367
4368 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4369
4370 * process.c (Fmake_network_process): Remove unused variable `sa'.
4371 Doc fix. Add usage:.
4372 (set_socket_options): Remove unused variables `optnum' and `opttype'.
4373
4374 2002-03-17 Richard M. Stallman <rms@gnu.org>
4375
4376 * xdisp.c (cursor_type_changed): New variable.
4377 (redisplay_internal): Redisplay all windows if cursor_type_changed.
4378 Clear it when clearing windows_or_buffers_changed.
4379 (try_cursor_movement, redisplay_window, try_window_id)
4380 (try_window_reusing_current_matrix): Test cursor_type_changed
4381 along with windows_or_buffers_changed.
4382
4383 * window.h (cursor_type_changed): New variable.
4384
4385 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
4386 not update_mode_lines, and always set it to 1.
4387
4388 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
4389 if no frames needed redrawing.
4390
4391 2002-03-17 Kim F. Storm <storm@cua.dk>
4392
4393 The following changes add support for network server processes,
4394 datagram connections, and local (unix) sockets.
4395
4396 * process.h (struct Lisp_Process): New member log.
4397 Doc fix: Member command used to indicate stopped network process.
4398 Doc fix: Member childp contains plist for network process.
4399 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
4400
4401 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
4402 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
4403 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
4404 New variables.
4405 (NETCONN1_P): New macro.
4406 (DATAGRAM_SOCKETS): New conditional symbol.
4407 (datagram_address): New array.
4408 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
4409 (status_message): Use concat3.
4410 (Fprocess_status): Add `listen' status to doc string. Return `stop'
4411 for a stopped network process.
4412 (Fset_process_buffer): Update contact plist for network process.
4413 (Fset_process_filter): Ditto. Don't enable input for stopped
4414 network processes. Server must listen, even if filter is t.
4415 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
4416 New functions.
4417 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
4418 (Fprocess_contact): Added KEY argument. Handle datagrams.
4419 (list_processes_1): Optionally show only processes with the query
4420 on exit flag set. Dynamically adjust column widths. Omit tty
4421 column if not needed. Report stopped network processes.
4422 Identify server and datagram network processes.
4423 (Flist_processes): New optional arg `query-only'.
4424 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
4425 (conv_lisp_to_sockaddr, set_socket_options)
4426 (network_process_featurep, unwind_request_sigio): New helper functions.
4427 (Fprocess_datagram_address, Fset_process_datagram_address):
4428 (Fset_network_process_options): New lisp functions.
4429 (Fopen_network_stream): Removed. Now defined in simple.el.
4430 (Fmake_network_process): New lisp function. Code is based on previous
4431 Fopen_network_stream, but heavily reworked with new property list based
4432 argument list, support for datagrams, server processes, and local
4433 sockets in addition to old client-only functionality.
4434 (server_accept_connection): New function.
4435 (wait_reading_process_input): Use it to handle incoming connects.
4436 Do not enable input on a new connection if process is stopped.
4437 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
4438 (send_process): Handle datagram sockets.
4439 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
4440 network process is indicated by setting command field to t .
4441 (Fprocess_send_eof): No-op if datagram connection.
4442 (Fstatus_notify): Don't read input for a stream server socket or a
4443 stopped network process.
4444 (init_process): Initialize datagram_address array.
4445 (syms_of_process): Intern and staticpro new variables, defsubr new
4446 functions.
4447
4448 2002-03-16 Jason Rumney <jasonr@gnu.org>
4449
4450 * w32fns.c (w32_to_all_x_charsets): Return correct type in
4451 startup case.
4452
4453 2002-03-16 Richard M. Stallman <rms@gnu.org>
4454
4455 * xdisp.c (redisplay_internal, redisplay_windows):
4456 Use list_of_error to call internal_condition_case_1.
4457 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
4458 so as to catch all errors with no possibility of debugger redisplay.
4459 (list_of_error): New variable.
4460 (syms_of_xdisp): Init and staticpro it.
4461
4462 * print.c (print_object): Delete `\ ' from printed rep of frame.
4463
4464 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
4465
4466 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
4467 until its implementation is fixed.
4468
4469 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4470
4471 * xfns.c (png_load): Remove unused variable `gamma_str'.
4472
4473 2002-03-14 Richard M. Stallman <rms@gnu.org>
4474
4475 * xfns.c (x_real_positions): Handle failure in XQueryTree.
4476
4477 2002-03-14 Miles Bader <miles@gnu.org>
4478
4479 * intervals.c (adjust_for_invis_intang): New function.
4480 (set_point_both): Use `adjust_for_invis_intang' to do most of the
4481 work for dealing with invisible+intangible regions. Do so before
4482 and after both forward and backward movements, to handle both
4483 front-sticky and rear-sticky cases.
4484 * textprop.c (text_property_stickiness): Function moved here from
4485 `editfns.c'.
4486 * intervals.h (text_property_stickiness): New declaration.
4487 * editfns.c (char_property_eq): Function removed.
4488 (text_property_stickiness): Function moved to `textprop.c'.
4489
4490 2002-03-13 Jason Rumney <jasonr@gnu.org>
4491
4492 * config.in: Add STRFTIME_NO_POSIX2.
4493
4494 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
4495 and %OX when underlying strftime does not.
4496
4497 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
4498
4499 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
4500 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
4501 line) to avoid annoying flicker.
4502 (xm_scroll_callback): Get rid of the now unnecessary kludge.
4503 (XTread_socket): Mark it static.
4504
4505 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
4506
4507 2002-03-13 Kim F. Storm <storm@cua.dk>
4508
4509 * puresize.h (BASE_PURESIZE): Increase to 775000.
4510
4511 2002-03-12 Juanma Barranquero <lektu@terra.es>
4512
4513 * editfns.c (syms_of_editfns): Fix typo.
4514
4515 2002-03-12 Gerd Moellmann <gerd@gnu.org>
4516
4517 * xsmfns.c: Include stdio.h because termhooks.h needs it.
4518 Include termopt.h for interrupt_input.
4519
4520 2002-03-11 Andreas Schwab <schwab@suse.de>
4521
4522 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
4523
4524 2002-03-11 Gerd Moellmann <gerd@gnu.org>
4525
4526 * xterm.c (note_mouse_movement): Put code for
4527 x_autoselect_window_p in #if 0.
4528
4529 * lread.c (Fload): Don't assume that message_with_string uses the
4530 string it is given like a C string.
4531
4532 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4533
4534 * xterm.h (x_session_check_input, x_session_initialize): Declared.
4535
4536 * xterm.c: (XTread_socket): Add call to x_session_check_input and
4537 x_session_have_connection.
4538 (x_initialize): Add call to x_session_initialize.
4539
4540 * termhooks.h (enum event_kind): Add save_session_event.
4541
4542 * keyboard.c: Add Emacs event save_session_event.
4543
4544 * emacs.c (main): Add call to syms_of_xsmfns.
4545
4546 * lisp.h: Declare syms_of_xsmfns as extern.
4547
4548 * config.in: Add HAVE_X_SM.
4549
4550 * Makefile.in (LIBXT): Add -lSM -lICE
4551 if HAVE_X_SM and not USE_X_TOOLKIT.
4552 (XOBJ): New file xsmfns.c added.
4553
4554 * xsmfns.c: New file for X session management.
4555
4556 2002-03-09 Jason Rumney <jasonr@gnu.org>
4557
4558 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
4559 read-only when setting modified time.
4560
4561 2002-03-08 Gerd Moellmann <gerd@gnu.org>
4562
4563 * xdisp.c (move_it_vertically_backward): At the end of the function,
4564 when moving forward by lines, treat terminal frames specially.
4565
4566 * keyboard.c (echo_char): Make sure to add a separator between
4567 keys even if echo_dash hasn't been called.
4568
4569 * xdisp.c: Use new string macros.
4570 (update_echo_area): Pass number of bytes to message3 instead of
4571 number of chars.
4572 (set_message_1): Don't access a string's size_byte directly.
4573 (decode_mode_spec_coding): Use number of bytes of eoltype string
4574 instead number of chars.
4575
4576 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
4577
4578 2002-03-08 Juanma Barranquero <lektu@terra.es>
4579
4580 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
4581 24-bit.
4582
4583 2002-03-06 Jason Rumney <jasonr@gnu.org>
4584
4585 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
4586
4587 2002-03-06 Gerd Moellmann <gerd@gnu.org>
4588
4589 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
4590 (cancel_echoing, echo_length, echo_truncate): Changed to
4591 work with new kboard definition.
4592 (echo_now): Use message3_nolog instead of message2_nolog.
4593
4594 * alloc.c (mark_kboards): Mark echo_string.
4595
4596 * keyboard.h (ECHOBUFSIZE): Removed.
4597 (struct kboard): Member echoptr removed, member echobuf renamed
4598 to echo_string.
4599
4600 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
4601 message3 instead of message2 to display the message using STRING's
4602 text properties.
4603
4604 2002-03-05 Andreas Schwab <schwab@suse.de>
4605
4606 * xdisp.c (hscroll_margin): Change to EMACS_INT.
4607
4608 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
4609
4610 * frame.c (default-frame-alist): Explain that setting it doesn't
4611 affect existing frames.
4612
4613 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
4614
4615 * indent.c (skip_invisible): Fix my brain fart.
4616
4617 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
4618
4619 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
4620
4621 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
4622 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
4623 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
4624 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
4625 and variables to use EMACS_INT instead of just int.
4626
4627 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
4628
4629 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
4630
4631 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
4632 environment, pass it down with corrected value.
4633
4634 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4635
4636 * lread.c (read_filtered_event): Do not call start_hourglass
4637 before returning.
4638
4639 2002-03-04 Juanma Barranquero <lektu@terra.es>
4640
4641 * w32term.c (x_display_and_set_cursor): Fix typo.
4642
4643 2002-03-03 Richard M. Stallman <rms@gnu.org>
4644
4645 * fileio.c (Fmake_temp_name): Doc fix.
4646
4647 2002-03-03 Gary Wong <gtw@gnu.org>
4648
4649 * termcap.c [!emacs]: Replace ospeed for building standalone
4650 libtermcap, for binary compatibility.
4651
4652 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
4653
4654 2002-03-03 Richard M. Stallman <rms@gnu.org>
4655
4656 * xrdb.c (file_p): Rename arg `path' to `filename'.
4657
4658 * abbrev.c (Fexpand_abbrev): Increment plist as use count
4659 only if it is an integer.
4660
4661 * xfns.c (png_load): Set screen_gamma based on f->gamma.
4662 If png_get_sRGB gives an answer, call png_set_gamma
4663 using the default image gamma value.
4664
4665 * lread.c (read1): When reading from a file, default string to
4666 multibyte only if it has some multibyte characters.
4667
4668 * print.c (print_object): Output multibyte chars 128...255
4669 using \x even if ! print_escape_multibyte.
4670
4671 * xdisp.c (display_mode_element): Move the places where
4672 bytepos, charpos, this, and lisp_string are set.
4673 Use lisp_string to set bytepos.
4674
4675 * xdisp.c (redisplay_internal):
4676 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
4677
4678 * xdisp.c (display_mode_element): Merge properties specified with
4679 :propertize onto those that come with the string.
4680
4681 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
4682
4683 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
4684 automatic-hscrolling. Users changed.
4685 <hscroll-margin>: Renamed from automatic-hscroll-margin.
4686 Users changed.
4687 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
4688
4689 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
4690
4691 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
4692
4693 2002-03-02 Kim F. Storm <storm@cua.dk>
4694
4695 * window.c (Fminibuffer_selected_window): New function.
4696 (syms_of_window): Defsubr it.
4697
4698 2002-03-01 Kim F. Storm <storm@cua.dk>
4699
4700 * window.h (struct window): New member phys_cursor_width.
4701
4702 * window.c (make_window, replace_window): Init phys_cursor_width.
4703
4704 * xterm.c (x_display_and_set_cursor): Blink box cursor using
4705 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
4706
4707 * w32term.c (x_display_and_set_cursor): Blink box cursor using
4708 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
4709
4710 * lisp.h (GCPRO6): New macro.
4711
4712 * process.c (Fopen_network_stream): Use GCPRO6.
4713
4714 2002-03-01 Kim F. Storm <storm@cua.dk>
4715
4716 * process.c (Qconnect, Qfailed): New variables.
4717 (syms_of_process): Intern and staticpro them.
4718 (Fprocess_status): Document connect and failed return values.
4719 [NON_BLOCKING_CONNECT]: New conditional.
4720 (connect_wait_mask, num_pending_connects): New variables.
4721 (status_message): Convert Qfailed status.
4722 (Fopen_network_stream): Added support for non-blocking connect.
4723 New optional args: filter, sentinel, non_blocking. Doc updated.
4724 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
4725 (deactivate_process): Handle pending non-blocking connect.
4726 (wait_reading_process_input): Poll for status of non-blocking
4727 connects. Exec sentinel directly when connect succeeds.
4728 (status_notify): Don't read process output if not yet connected.
4729
4730 2002-02-28 Kim F. Storm <storm@cua.dk>
4731
4732 * window.c: (minibuf_selected_window): Renamed from
4733 Vminibuf_selected_window. Users changed.
4734 (syms_of_window): Staticpro it.
4735
4736 2002-02-26 Kim F. Storm <storm@cua.dk>
4737
4738 The following changes add a new Vminibuf_selected_window variable
4739 which is similar to Vminibuf_scroll_window, but which is only set
4740 on entry to the minibuffer (from a non-minibuffer window):
4741
4742 * window.c: (Vminibuf_selected_window): New variable.
4743 (struct save_window_data): New member minibuf_selected_window.
4744 (Fset_window_configuration): Restore Vminibuf_selected_window.
4745 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
4746 Set minibuf_scroll_window member to nil if minibuf_level is 0.
4747 (compare_window_configurations): Compare minibuf_selected_window.
4748
4749 * window.h: (Vminibuf_selected_window): Declare extern.
4750
4751 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
4752 entry to minibuffer or on entry from a non-minibuffer window.
4753
4754 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
4755 Vminibuf_selected_window instead of Vminibuf_scroll_window.
4756
4757 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
4758 instead of Vminibuf_scroll_window when deciding in which window
4759 the region should be highlighted. Consequently, the region remains
4760 highlighteded even when a completion buffer is also displayed.
4761
4762 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
4763
4764 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
4765
4766 * xselect.c (Qcompound_text_with_extensions): Renamed from
4767 Qcompound_text_no_extensions.
4768 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
4769
4770 2002-02-26 Juanma Barranquero <lektu@terra.es>
4771
4772 * w32proc.c (syms_of_ntproc): Doc fix.
4773
4774 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4775
4776 * intervals.h: Include "dispextern.h" unconditionally.
4777
4778 2002-02-24 Jason Rumney <jasonr@gnu.org>
4779
4780 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
4781 and disp-table.elc.
4782 (lisp): Add emacs-lisp/backquote.elc.
4783
4784 2002-02-24 Kim F. Storm <storm@cua.dk>
4785
4786 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
4787 The validation of the event type was too strict as it didn't
4788 allow string events; buffer names are used in bindings for
4789 menu-bar-select-buffer (see `menu-bar-update-buffers').
4790
4791 2002-02-23 Kim F. Storm <storm@cua.dk>
4792
4793 The following changes rework my patch of 2002-02-06 which
4794 added command remapping by entering the commands directly into
4795 the keymaps. Now, command remapping uses an explicit `remap'
4796 prefix in the keymaps, i.e. [remap COMMAND].
4797
4798 * keymap.c (Qremap, remap_command_vector): New variables.
4799 (is_command_symbol): Removed function.
4800 (Fdefine_key): No longer accept a symbol for KEY.
4801 Added validation of [remap COMMAND] argument for KEY.
4802 The DEF is no longer required to be a symbol when remapping a command.
4803 (Fremap_command): New function to remap command through keymaps.
4804 (Flookup_key): Perform command remapping initiated by
4805 Fremap_command directly for speed.
4806 (Fkey_binding): Use Fremap_command for command remapping.
4807 (where_is_internal): Handle new command remapping representation.
4808 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
4809 staticpro them. Defsubr Fremap_command.
4810
4811 * keymap.h (Fremap_command): Declare extern.
4812 (is_command_symbol): Remove extern.
4813
4814 * keyboard.c (command_loop_1): Use Fremap_command for command
4815 remapping; now try command remapping for all symbols.
4816
4817 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
4818
4819 * coding.h (run_pre_post_conversion_on_str): Add prototype.
4820
4821 2002-02-23 Jason Rumney <jasonr@gnu.org>
4822
4823 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
4824 on the string before encoding it.
4825 (Fw32_get_clipboard_data): Run post-read-conversion on the string
4826 after decoding it.
4827
4828 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
4829
4830 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4831
4832 * w32term.c (enter_timestamp): Remove unused static variable to
4833 prevent warning.
4834
4835 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
4836
4837 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
4838
4839 * w16select.c (Fw16_get_clipboard_data): Fix last change.
4840
4841 * xselect.c (selection_data_to_lisp_data): Fix last change.
4842
4843 2002-02-22 Jason Rumney <jasonr@gnu.org>
4844
4845 * w32term.h (struct w32_output): New member menu_command_in_progress.
4846
4847 * w32menu.c (menubar_selection_callback): Free the menu and
4848 clear the menu_command_in_progress flag.
4849
4850 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
4851 (menu_free_timer): New variable.
4852 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
4853 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
4854 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
4855 menu command is in progress.
4856 <WM_COMMAND>: Set the menu_command_in_progress flag.
4857 Kill any menu_free_timer that is running.
4858
4859 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
4860 Call ExtTextOutA rather than ExtTextOut.
4861
4862 2002-02-22 Eli Zaretskii <eliz@gnu.org>
4863
4864 * puresize.h (BASE_PURESIZE): Increase to 755000.
4865
4866 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
4867
4868 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
4869 on the string before encoding it.
4870 (Fw16_get_clipboard_data): Run post-read-conversion on the string
4871 after decoding it.
4872
4873 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
4874
4875 Support for ICCCM Extended Segments in X selections:
4876
4877 * xselect.c <Qcompound_text_no_extensions>: New variable.
4878 (syms_of_xselect): Intern and staticpro it.
4879 (selection_data_to_lisp_data): Run post-read-conversion on decoded
4880 selection text.
4881 (lisp_data_to_selection_data): If next-selection-coding-system is
4882 compound-text-no-extensions, set the type of selection to be
4883 compound-text.
4884
4885 * xterm.h (x_encode_text): Update prototype.
4886
4887 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
4888 callers changed. If SELECTIONP is non-zero, run the
4889 pre-write-conversion function before encoding the selection text.
4890
4891 2002-02-21 Kim F. Storm <storm@cua.dk>
4892
4893 * frame.c (syms_of_frame): Change mouse-highlight default to t.
4894
4895 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
4896 Correct composing of language-change event.
4897
4898 2002-02-20 Kim F. Storm <storm@cua.dk>
4899
4900 * keyboard.c (menu_bar_items): Don't include keymap or local-map
4901 bindings at PT when building menu (the menu is not updated often
4902 enough for this to work reliable).
4903 (tool_bar_items): Likewise.
4904 (current_active_maps): Removed unused (and buggy) function.
4905
4906 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4907
4908 * xfns.c (gif_load): Use correct width and height for GIF images.
4909
4910 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
4911
4912 * floatfns.c (Fatan): Accept an optional second arg and call
4913 atan2 if passed 2 args.
4914
4915 2002-02-18 Jason Rumney <jasonr@gnu.org>
4916
4917 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
4918
4919 2002-02-17 Jason Rumney <jasonr@gnu.org>
4920
4921 * w32term.c (x_autoselect_window_p): New variable.
4922 (syms_of_w32term): DEFVAR_BOOL and initialize it.
4923 (note_mouse_movement): Use it.
4924
4925 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
4926
4927 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
4928
4929 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
4930 New variables.
4931 (syms_of_w32fns): Intern and staticpro them.
4932 (x_frame_parms) <"fullscreen">: New parameter.
4933 (x_fullscreen_move, x_set_fullscreen): New functions.
4934 (x_set_frame_parameters): Support Qfullscreen.
4935 (x_real_positions): Save x/y_pixels_diff frame params.
4936 (x_figure_window_size): Support full-screen frames.
4937 (Fx_create_frame): Default the fullscreen parameter.
4938
4939 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
4940 (x_fullscreen_adjust): New functions.
4941 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
4942 fullscreen. Call x_check_fullscreen_move, and set the
4943 want_fullscreen member of output_data.w32
4944 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
4945
4946 * w32term.h: New enum for FULLSCREEN_* constants.
4947 (struct w32_output): New members want_fullscreen, x_pixels_diff,
4948 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
4949 (x-fullscreen-adjust): New prototype.
4950
4951 2002-02-17 Kim F. Storm <storm@cua.dk>
4952
4953 * frame.c: (Vmouse_highlight): New variable.
4954 (syms_of_frame): DEFVAR_LISP it.
4955
4956 * frame.h: (Vmouse_highlight): Declare extern.
4957
4958 * xterm.h (struct x_display_info): Add mouse_face_hidden.
4959
4960 * xterm.c (disable_mouse_highlight): Removed variable.
4961 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
4962 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
4963 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
4964 and on after keyboard input.
4965 (x_term_init): Initialize mouse_face_hidden.
4966
4967 * msdos.h (struct display_info): Add mouse_face_hidden.
4968
4969 * msdos.c (disable_mouse_highlight): Removed variable.
4970 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
4971 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
4972 (internal_terminal_init): Initialize mouse_face_hidden.
4973 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
4974 and on after keyboard input.
4975
4976 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4977
4978 * w32term.c (disable_mouse_highlight): Removed variable.
4979 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
4980 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
4981 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
4982 and on after keyboard input.
4983 (w32_initialize_display_info): Initialize mouse_face_hidden.
4984
4985 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4986
4987 * msdos.c (last_mouse_window): New variable.
4988 (dos_rawgetc): Fix last change--if the mouse is in the same window
4989 as recorded in last_mouse_window, don't select this window.
4990
4991 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
4992
4993 * msdos.c (x_autoselect_window_p): New variable.
4994 (syms_of_msdos): Defvar it.
4995 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
4996 which the last mouse movement occured, unless it is already selected.
4997
4998 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
4999 New variables.
5000 (syms_of_xdisp): DEVFAR them.
5001 (hscroll_window_tree): Use automatic_hscroll_margin and
5002 Vautomatic_hscroll_step to compute the amount of window scrolling.
5003
5004 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5005
5006 * xterm.c (x-autoselect-window): New variable.
5007 (note_mouse_movement): Use it.
5008
5009 * keyboard.c: Do not include "systime.h" twice.
5010
5011 2002-02-15 Andreas Schwab <schwab@suse.de>
5012
5013 * puresize.h (BASE_PURESIZE): Increase to 9/5.
5014
5015 * alloc.c (NSTATICS): Increase to 1280.
5016
5017 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
5018
5019 * alloc.c (NSTATICS): Bump to 1026.
5020
5021 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
5022 (Vx_super_keysym): New variables.
5023 (syms_of_xterm): DEFVAR_LISP them.
5024 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
5025 variables to determine which keys to use for the various modifiers.
5026
5027 2002-02-13 Kim F. Storm <storm@cua.dk>
5028
5029 * window.c: (Vmode_line_in_non_selected_windows): Removed.
5030 (mode_line_in_non_selected_windows): New variable.
5031 (syms_of_window): DEFVAR_BOOL it.
5032
5033 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
5034 Use mode_line_in_non_selected_windows.
5035 (mode_line_in_non_selected_windows): Declare extern.
5036 (Vmode_line_in_non_selected_windows): Removed extern.
5037
5038 2002-02-13 Richard M. Stallman <rms@gnu.org>
5039
5040 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
5041 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
5042 (Fclear_this_command_keys): Doc fixes.
5043
5044 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
5045 (update_face_from_frame_parameter): Increment face_change_count
5046 and windows_or_buffers_changed to force redisplay using changed faces.
5047
5048 * xdisp.c (QCpropertize): New variable.
5049 (mode_line_proptrans_alist): New variable.
5050 (display_mode_element): New arg PROPS; all calls changed.
5051 Implement this, for strings.
5052 Handle literal output of strings by sharing the
5053 main-line code for strings, using local var `literal'.
5054 Handle :propertize feature.
5055 (syms_of_xdisp): Initialze and staticpro QCpropertize and
5056 mode_line_proptrans_alist.
5057
5058 2002-02-11 Kim F. Storm <storm@cua.dk>
5059
5060 * window.c: (Vmode_line_in_non_selected_windows): New variable.
5061 (syms_of_window): DEFVAR_LISP it.
5062
5063 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
5064 (CURRENT_MODE_LINE_FACE_ID): Use it.
5065 (Vmode_line_in_non_selected_windows): Declare extern.
5066
5067 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
5068 to get mode line face.
5069
5070 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
5071
5072 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
5073 variables; cus-start.el doesn't need them anymore.
5074
5075 2002-02-09 Kim F. Storm <storm@cua.dk>
5076
5077 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
5078 reduction. This fixes a display problem where stray newlines were
5079 inserted in the window (corrected by C-l). Clarified code (IMHO).
5080
5081 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
5082
5083 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
5084
5085 * xdisp.c (display_mode_lines): Fix last change.
5086
5087 2002-02-09 Jason Rumney <jasonr@gnu.org>
5088
5089 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
5090 match each other.
5091 (w32_load_system_font): Prevent Cleartype fonts from loading.
5092 (Fx_show_tip): Ensure tip frames are above other topmost windows.
5093
5094 2002-02-09 Kim F. Storm <storm@cua.dk>
5095
5096 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
5097 (CURRENT_MODE_LINE_HEIGHT): Use it.
5098 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
5099
5100 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
5101 (pos_visible_p, handle_face_prop): Likewise.
5102 (display_mode_lines): Likewise, but for the real selected window.
5103 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
5104
5105 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
5106 in non-selected windows.
5107 (realize_basic_faces): Realize it.
5108 (syms_of_term): Intern and staticpro it.
5109
5110 2002-02-08 Kim F. Storm <storm@cua.dk>
5111
5112 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
5113 Changed mail addresses to emacs-devel@gnu.org.
5114
5115 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
5116
5117 * fileio.c (Fsubstitute_in_file_name): If the file name includes
5118 ~user, and there's no such user, don't discard everything before ~user.
5119
5120 * floatfns.c (Fround): Doc fix.
5121
5122 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5123
5124 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
5125
5126 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
5127
5128 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
5129
5130 2002-02-07 Kim F. Storm <storm@cua.dk>
5131
5132 * keymap.c (where_is_internal): Only check whether definition is
5133 remapped if it fulfills is_command_symbol.
5134
5135 2002-02-07 Andreas Schwab <schwab@suse.de>
5136
5137 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
5138
5139 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
5140
5141 2002-02-06 Kim F. Storm <storm@cua.dk>
5142
5143 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
5144 defining command remapping. Doc updated.
5145 (Flookup_key): Remap command through keymap if KEY is a symbol.
5146 (is_command_symbol): New function.
5147 (Fkey_binding): Use it. New optional argument NO-REMAP.
5148 Doc updated. Callers changed. Perform command remapping via
5149 recursive call unless that arg is non-nil.
5150 (where_is_internal): New argument no_remap. Callers changed.
5151 Call recursively to find original key bindings for a remapped
5152 comand unless that arg is non-nil.
5153 (Fwhere_is_internal): New optional argument NO-REMAP.
5154 Doc updated. Callers changed. Pass arg to where_is_internal.
5155
5156 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
5157 (is_command_symbol): Added prototype.
5158
5159 * keyboard.c (Vthis_original_command): New variable.
5160 (syms_of_keyboard): DEFVAR_LISP it.
5161 (command_loop_1): Set it, and perform command remapping.
5162
5163 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5164
5165 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
5166
5167 2002-02-06 Jason Rumney <jasonr@gnu.org>
5168
5169 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
5170
5171 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
5172
5173 * charset.c (get_charset_id): Use if-else instead of ?:.
5174
5175 2002-02-06 Richard M. Stallman <rms@gnu.org>
5176
5177 * filelock.c (S_ISLNK): Define if not defined.
5178
5179 2002-02-03 Richard M. Stallman <rms@gnu.org>
5180
5181 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
5182
5183 * lread.c (read1): Redesign strategy for force_multibyte and
5184 force_singlebyte. Now is_multibyte records whether read_buffer
5185 is multibyte. Encountering any multibyte character makes it so.
5186
5187 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
5188
5189 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
5190 with the same sequence, map that sequence to f10 rather than f0.
5191
5192 2002-02-03 Andreas Schwab <schwab@suse.de>
5193
5194 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
5195 latter never being defined on GNU/Linux.
5196
5197 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
5198
5199 * xfaces.c (realize_default_face): Don't set the weight and slant of
5200 the default face to Qnormal, unless these attributes are unspecified.
5201
5202 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5203
5204 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
5205 Call cancel_hourglass unconditionally.
5206
5207 * eval.c (Fsignal): Remove duplicated declaration of
5208 the variable `display_hourglass_p'.
5209
5210 2002-01-31 Richard M. Stallman <rms@gnu.org>
5211
5212 * editfns.c (region_limit): Nicer error message.
5213
5214 * coding.c (decode_composition_emacs_mule):
5215 Give up if NCOMPONENT gets too large to index `component'.
5216
5217 * callint.c (check_mark): New arg to specify clearer error message.
5218 Callers changed.
5219
5220 2002-01-27 Richard M. Stallman <rms@gnu.org>
5221
5222 * minibuf.c (Fcompleting_read): Doc fix.
5223
5224 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5225
5226 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
5227 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
5228 Fix doc-strings.
5229
5230 2002-01-26 Richard M. Stallman <rms@gnu.org>
5231
5232 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
5233
5234 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
5235 and scroll_up_aggressively.
5236
5237 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5238
5239 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
5240
5241 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
5242
5243 * textprop.c (Fnext_property_change, Fnext_single_property_change)
5244 (Fprevious_property_change, Fprevious_single_property_change):
5245 Stay within the narrowed-buffer boundaries.
5246
5247 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
5248
5249 * term.c (Ftty_display_color_cells): New function.
5250 (syms_of_term): Defsubr it.
5251 (Ftty_display_color_cells, Ftty_display_color_p): Change the
5252 argument name to DISPLAY. Doc fix.
5253
5254 * dispextern.h: Add prototype for set_tty_color_mode and
5255 tty_setup_colors.
5256
5257 2002-01-24 Jason Rumney <jasonr@gnu.org>
5258
5259 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
5260 If region left to draw is not what was expected, mark the frame as
5261 garbaged.
5262
5263 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
5264 Combine the regions returned by BeginPaint and GetUpdateRect.
5265
5266 2002-01-23 Jason Rumney <jasonr@gnu.org>
5267
5268 * w32term.c (x_update_window_begin): Only hide caret if
5269 w32_use_visible_system_caret is set.
5270 (x_update_window_end): Only show caret if
5271 w32_use_visible_system_caret is set.
5272 (syms_of_w32term): Handle SystemParametersInfo call failing.
5273
5274 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
5275
5276 2002-01-22 Richard M. Stallman <rms@gnu.org>
5277
5278 * unexelf.c (unexec): Define n so as to cause compilation error
5279 for the code where people have often written n instead of nn.
5280
5281 * .gdbinit (hookpost-run): Defined.
5282
5283 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5284
5285 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
5286
5287 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5288
5289 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
5290 if fullscreen is being set.
5291
5292 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5293
5294 * minibuf.c (Fminibuffer_contents)
5295 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
5296 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
5297
5298 2002-01-21 Richard M. Stallman <rms@gnu.org>
5299
5300 * window.c (check_frame_size): Fix minimum height calculation.
5301
5302 2002-01-20 Ken Raeburn <raeburn@gnu.org>
5303
5304 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
5305 height before comparison.
5306 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
5307
5308 2002-01-20 Jason Rumney <jasonr@gnu.org>
5309
5310 * w32term.c (w32_system_caret_width): Remove.
5311 (w32_use_visible_system_caret): New user flag.
5312 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
5313 Windows reports a screen reader running.
5314 (x_update_window_begin): Hide the system caret.
5315 (x_update_window_end): Show the system caret.
5316 (x_display_and_set_cursor): Don't draw a cursor when
5317 w32_use_visible_system_caret is set. Do not adjust width.
5318
5319 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
5320 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
5321 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
5322 the user requests it. Use system default width when creating.
5323 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
5324
5325 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
5326 New window messages.
5327
5328 2002-01-20 Richard M. Stallman <rms@gnu.org>
5329
5330 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
5331
5332 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5333
5334 * doprnt.c (doprnt1): Fix typos in error call.
5335
5336 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
5337
5338 * unexelf.c (unexec) [__sgi]: Support the .got sections.
5339
5340 2002-01-20 Jason Rumney <jasonr@gnu.org>
5341
5342 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
5343 that Windows returns. If a double check fails, try to guess how
5344 ExtTextOut is going to act.
5345
5346 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
5347 in place of stricmp.
5348 (w32_list_synthesized_fonts): Removed.
5349 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
5350 (struct enumfont_t): New element; list.
5351 (enum_font_cb2): List all style and charset variations of a font.
5352 (Fw32_select_font): New optional argument; include_proportional.
5353 Exclude vertical fonts. Exclude proportional fonts unless
5354 include_proportional is non-nil.
5355 (w32_enable_synthesized_fonts): Change to a boolean.
5356 (Fw32_send_sys_command): Doc fix.
5357
5358 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5359
5360 * dispnew.c (update_frame): Move the variable `tem' to the block
5361 where it is used.
5362
5363 2002-01-19 Jason Rumney <jasonr@gnu.org>
5364
5365 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
5366 call to face-set-after-frame-default.
5367
5368 2002-01-18 Richard M. Stallman <rms@gnu.org>
5369
5370 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
5371 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
5372
5373 2002-01-17 Richard M. Stallman <rms@gnu.org>
5374
5375 * window.c (enlarge_window): When exceeding size of parent,
5376 directly delete all the siblings instead of trying to resize it.
5377
5378 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5379
5380 * term.c (set_tty_color_mode): Remove unused variable `tem'.
5381
5382 2002-01-16 Henrik Enberg <henrik@enberg.org>
5383
5384 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
5385
5386 2002-01-16 Kim F. Storm <storm@cua.dk>
5387
5388 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
5389 is invisible. This can happen if cursor is on top line of a
5390 window, and we switch to a buffer with a header line.
5391
5392 * w32term.c (x_erase_phys_cursor): Ditto.
5393
5394 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5395
5396 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
5397 `dont_resize' only when used.
5398
5399 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
5400
5401 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
5402
5403 * xdisp.c (display_mode_element): When computing charpos, depend
5404 on multibyteness of elt, not the text in field.
5405
5406 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5407
5408 * buffer.c (Fkill_all_local_variables):
5409 Increment `update_mode_lines' only once.
5410
5411 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5412
5413 * lisp.h (adjust_after_replace_noundo)
5414 (Fupdate_coding_systems_internal): Add prototypes.
5415
5416 * sound.c (Fplay_sound): Initialize header_size also for :data case.
5417
5418 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
5419
5420 Support for the --color command-line argument and tty-color-mode
5421 frame parameter:
5422
5423 * term.c (tty_default_color_capabilities, tty_setup_colors)
5424 (set_tty_color_mode): New functions.
5425 (term_init): Call tty_default_color_capabilities.
5426 (Qtty_color_mode_alist): New variable.
5427 (syms_of_term): Intern and staticpro it.
5428
5429 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
5430 frames.
5431 (do_switch_frame): For termcap frames, switch the tty
5432 color mode as specified by the frame's parameters.
5433 (Qtty_color_mode): New variable.
5434 (syms_of_frame): Intern and staticpro it.
5435
5436 * emacs.c (USAGE2): Add the --color option.
5437 (standard_args): Ditto.
5438
5439 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5440
5441 * xterm.h (struct x_output): New members want_fullscreen,
5442 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
5443 y_pixels_outer_diff.
5444 New enum for FULLSCREEN_* constants.
5445 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
5446 is NULL.
5447 (x_fullscreen_adjust): Add prototype.
5448
5449 * emacs.c (USAGE2): Add the new full-screen arguments.
5450 (standard_args): Ditto.
5451
5452 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
5453 New variables.
5454 (syms_of_xfns): Intern and staticpro them.
5455 (x_frame_parms) <"fullscreen">: New parameter.
5456 (x_fullscreen_move, x_set_fullscreen): New functions.
5457 (x_set_frame_parameters): Support for Qfullscreen.
5458 (x_real_positions): More accurate computation of the frame position.
5459 (x_figure_window_size): Support full-screen frames.
5460 (Fx_create_frame): Default the fullscreen parameter.
5461
5462 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
5463 (XTread_socket) <Expose>: Call x_check_fullscreen.
5464 <ConfigureNotify>: Don't resize to fullscreen.
5465 Call x_check_fullscreen_move, and set the want_fullscreen member of
5466 output_data.x.
5467
5468 2002-01-13 Jason Rumney <jasonr@gnu.org>
5469
5470 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
5471 for mice with more than 3 buttons.
5472
5473 * w32term.c (parse_button): New parameter xbutton. Callers changed.
5474 (w32_read_socket): Handle new "XBUTTON" messages.
5475
5476 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
5477 (syms_of_w32fns): DEFVAR_BOOL it.
5478 (w32_wnd_proc): Handle new "XBUTTON" messages.
5479
5480 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5481
5482 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
5483
5484 2002-01-13 Andreas Schwab <schwab@suse.de>
5485
5486 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
5487
5488 2002-01-12 Andreas Schwab <schwab@suse.de>
5489
5490 * .gdbinit (xbuffer): Remove address operator since data is now a
5491 pointer.
5492
5493 2002-01-11 Richard M. Stallman <rms@gnu.org>
5494
5495 * insdel.c (adjust_after_replace_noundo): New function.
5496
5497 * coding.c (code_convert_region): Don't copy old text if undo disabled.
5498
5499 2002-01-09 Jason Rumney <jasonr@gnu.org>
5500
5501 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
5502 when checking for multiple frames.
5503
5504 2002-01-08 Richard M. Stallman <rms@gnu.org>
5505
5506 * window.c (delete_window): Rewrite the code for changing the
5507 selected window to handle the case where WINDOW is not a leaf.
5508
5509 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
5510
5511 * process.c (send_process): Set src_multibyte to 1 after the call
5512 top setup_coding_system, not before the call.
5513
5514 2002-01-07 Jason Rumney <jasonr@gnu.org>
5515
5516 * xmenu.c (set_frame_menubar, xmenu_show):
5517 (xdialog_show): Initialize wv->help to Qnil.
5518
5519 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
5520 (w32_dialog_show): Initialize wv->help to Qnil.
5521
5522 2002-01-06 Jason Rumney <jasonr@gnu.org>
5523
5524 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
5525
5526 * w32menu.c (w32_menu_display_help): Revert last change.
5527
5528 * xmenu.c (menu_highlight_callback): Revert last change.
5529
5530 2002-01-06 Andreas Schwab <schwab@suse.de>
5531
5532 * insdel.c (make_gap_larger): Make sure buffer size does not
5533 overflow range of int.
5534
5535 2002-01-05 Jason Rumney <jasonr@gnu.org>
5536
5537 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
5538 OVERLAPS_P.
5539
5540 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
5541
5542 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
5543 to the left or to the right of the pointer, put it against
5544 the left screen edge.
5545 (x_frame_parms): Add missing braces around initializer.
5546
5547 * w32term.c (x_setup_relief_colors): Don't compute an image's
5548 background color if it doesn't have a Pixmap.
5549 (notice_overwritten_cursor): Don't depend on
5550 output_cursor and updated_area. Compare pixel coordinates with
5551 window's cursor pixel coordinates.
5552 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
5553 Call notice_overwritten_cursor with new arg list.
5554 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
5555 unconditionally.
5556 (x_draw_image_relief): Use predefined macro instead of
5557 constant when the value of `tool_bar_button_relief' is negative.
5558
5559 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
5560
5561 2002-01-04 Richard M. Stallman <rms@gnu.org>
5562
5563 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
5564
5565 2002-01-03 Richard M. Stallman <rms@gnu.org>
5566
5567 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
5568 (Fkey_binding): Try the `keymap' property map first.
5569 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
5570 minor mode bindings.
5571
5572 2002-01-03 Kim F. Storm <storm@cua.dk>
5573
5574 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
5575
5576 2002-01-02 Richard M. Stallman <rms@gnu.org>
5577
5578 * keyboard.c (read_key_sequence): Handle the keymap property
5579 before minor mode maps.
5580
5581 * editfns.c (Fformat): Update thissize from field_width
5582 based on the actual width, in the string case.
5583
5584 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5585
5586 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
5587 when used as truth value to prevent gcc warnings.
5588
5589 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
5590 * w32proc.c: Include <config.h>.
5591
5592 2002-01-01 Andreas Schwab <schwab@suse.de>
5593
5594 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
5595 not EMACS_INT, to make them compatible with DEFVAR_INT.
5596 * lisp.h (max_specpdl_size): Adjust declaration.
5597
5598 2002-01-01 Richard M. Stallman <rms@gnu.org>
5599
5600 * print.c (print_object): Test print_escape_nonascii only for
5601 unibyte strings.
5602 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
5603 when outputting to a multibyte buffer.
5604
5605 2001-12-29 Richard M. Stallman <rms@gnu.org>
5606
5607 * print.c (print_object): In multibyte string, use hex escapes.
5608 Use octal only for unibyte strings.
5609 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
5610
5611 * lread.c (read_escape): New arg BYTEREP for reporting whether
5612 escape forces unibyte or multibyte.
5613 (read1): When reading a string, take note of that info.
5614
5615 2001-12-29 Ken Raeburn <raeburn@gnu.org>
5616
5617 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
5618 comparison to test lisp value returned by Fget.
5619
5620 2001-12-29 Richard M. Stallman <rms@gnu.org>
5621
5622 * lisp.h (max_specpdl_size): Add declaration.
5623
5624 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
5625
5626 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
5627 Handle modifier bits. Correct typo in error message.
5628
5629 2001-12-28 Richard M. Stallman <rms@gnu.org>
5630
5631 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
5632 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
5633 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
5634 Update calls to Fdefine_abbrev.
5635 (write_abbrev): Update for changed data format.
5636 Don't list "system" abbrevs.
5637 (Fexpand_abbrev): Update use count with new data format.
5638 (describe_abbrev): Update for changed data format.
5639 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
5640
5641 * config.in (HAVE_MBSINIT): Add #undef.
5642
5643 * strftime.c (mbsinit): Define as no-op if not available.
5644
5645 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
5646 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
5647
5648 * keymap.c (Flookup_key): Error message if key has wrong data type.
5649 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
5650 (exclude_key): New variable.
5651
5652 2001-12-28 Gerd Moellmann <gerd@gnu.org>
5653
5654 * xterm.c (x_setup_relief_colors): Don't compute an image's
5655 background color if it doesn't have a Pixmap.
5656
5657 * xterm.c (notice_overwritten_cursor): Don't depend on
5658 output_cursor and updated_area. Compare pixel coordinates with
5659 window's cursor pixel coordinates.
5660 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
5661 Call notice_overwritten_cursor with new arg list.
5662 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
5663 unconditionally.
5664
5665 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
5666 height of the cursor line to the amount to scroll.
5667
5668 2001-12-27 Richard M. Stallman <rms@gnu.org>
5669
5670 * intervals.c (set_point_both): The position after an invisible,
5671 intangible character is not an acceptable stopping point.
5672
5673 2001-12-27 Ken Raeburn <raeburn@gnu.org>
5674
5675 * window.c (enlarge_window): In new preserve_before code, convert
5676 CURBEG from lisp object to integer before doing arithmetic.
5677
5678 2001-12-27 Richard M. Stallman <rms@gnu.org>
5679
5680 * bytecode.c (Fbyte_code): Undo previous change.
5681
5682 2001-12-26 Kim F. Storm <storm@cua.dk>
5683
5684 * keyboard.c (record_char): Ignore duplicate help-echo events only
5685 separated by mouse-movement. When tracking mouse, only record
5686 first and last mouse-movement event in same window.
5687 Don't record mouse-movement events in keyboard macros.
5688
5689 2001-12-25 Richard M. Stallman <rms@gnu.org>
5690
5691 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
5692 (Fenlarge_window): New arg PRESERVE_BEFORE.
5693
5694 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
5695 instead of Fstring_as_unibyte.
5696
5697 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5698
5699 The following changes remove mocklisp support:
5700
5701 * mocklisp.h, mocklisp.c: Files removed.
5702
5703 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
5704 `Qmocklisp' and `Qmocklisp_arguments'.
5705 Remove prototype of syms_of_mocklisp.
5706
5707 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
5708
5709 * callint.c: Do not include mocklisp.h.
5710 (Fcall_interactively): Do not test for mocklisp case.
5711
5712 * eval.c: Remove variables `Qmocklisp_arguments',
5713 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
5714 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
5715 Do not test for mocklisp case.
5716 (Fwhile): Remove unused variable `tem'.
5717 (syms_of_eval): Remove variable `moclisp-arguments'.
5718
5719 * data.c (wrong_type_argument): Remove mocklisp case.
5720
5721 * doc.c (Fdocumentation): Remove mocklisp case.
5722
5723 * emacs.c (main): Do not call syms_of_mocklisp.
5724
5725 2001-12-21 Richard M. Stallman <rms@gnu.org>
5726
5727 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
5728 to the left or to the right of the pointer, put it against
5729 the left screen edge.
5730
5731 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
5732
5733 * Makefile.in (distclean): Remove .gdbinit if we are building
5734 outside the source tree.
5735
5736 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5737
5738 * w32.c (emacs_root_dir): New function.
5739
5740 * msdos.c (emacs_root_dir): New function.
5741
5742 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
5743 of the current drive as the fallback for default_directory.
5744
5745 * dired.c (file_name_completion): Run the elements of
5746 completion-ignored-extensions through ENCODE_FILE.
5747
5748 * lisp.h (scmp): Remove prototype, since it's now a static
5749 function private to dired.c.
5750
5751 2001-12-18 Richard M. Stallman <rms@gnu.org>
5752
5753 * dired.c (scmp): Function moved from minibuf.c.
5754 Delete multibyte handling--used only on encoded strings.
5755
5756 * minibuf.c (scmp): Function moved to dired.c.
5757
5758 * fns.c (merge): Add QUIT call.
5759
5760 2001-12-18 Dave Love <fx@gnu.org>
5761
5762 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
5763 language/georgian.el.
5764
5765 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5766
5767 * Makefile.in (lisp, shortlisp): Synchronize with changes to
5768 lisp/Makefile.in:DONTCOMPILE.
5769
5770 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5771
5772 * xdisp.c (window_box_height): Do not return negative values.
5773 From Gerd Moellmann <gerd@gnu.org>.
5774
5775 * keyboard.c (head_table): Add missing braces around initializer.
5776
5777 * term.c (keys): Likewise.
5778
5779 * xfns.c (x_frame_parms, visual_classes): Likewise.
5780
5781 2001-12-17 Sam Steingold <sds@gnu.org>
5782
5783 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
5784 patch (COMPOSING_P, not COMPOSING).
5785
5786 2001-12-17 Richard M. Stallman <rms@gnu.org>
5787
5788 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
5789
5790 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
5791 before calling decode_coding.
5792
5793 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
5794
5795 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
5796 instead of only for COMPOSITION_DISABLED.
5797
5798 2001-12-16 Richard M. Stallman <rms@gnu.org>
5799
5800 * alloc.c (pure_alloc): After overflow, allocate just a small block.
5801
5802 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
5803
5804 * buffer.h (struct buffer): New field `display_error_modiff'.
5805 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
5806
5807 * window.c (Frecenter): Clear display_error_modiff field.
5808
5809 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
5810 Call redisplay_window, but not if display_error_modiff field says no.
5811 (redisplay_window_error): New function.
5812 (displayed_buffer): New variable.
5813 (redisplay_internal, redisplay_windows): Call the new functions
5814 instead of redisplay_window directly.
5815
5816 2001-12-15 Richard M. Stallman <rms@gnu.org>
5817
5818 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
5819
5820 2001-12-14 Andrew Innes <andrewi@gnu.org>
5821
5822 * makefile.w32-in (EMACSLOADPATH): Define.
5823 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
5824 (bootstrap-temacs): Remove dependency on bootstrap-clean.
5825
5826 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
5827
5828 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
5829 parameter have a numeric value all the time.
5830
5831 * w32fns.c (x_report_frame_params): Likewise.
5832
5833 2001-12-12 Richard M. Stallman <rms@gnu.org>
5834
5835 * fileio.c (Fwrite_region): Doc fix.
5836
5837 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
5838 (redisplay_internal): Call clear_image_cache only for window terminals.
5839
5840 2001-12-12 Gerd Moellmann <gerd@gnu.org>
5841
5842 * xdisp.c (move_it_vertically_backward): Change heuristic
5843 for the case that we didn't move far enough initially.
5844
5845 * window.c (Frecenter): Simplify computation in the case of window
5846 system frames and ARG < 0; use window_box_height.
5847
5848 2001-12-11 Richard M. Stallman <rms@gnu.org>
5849
5850 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
5851 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
5852
5853 2001-12-11 Andrew Innes <andrewi@gnu.org>
5854
5855 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
5856 arg is negative.
5857
5858 2001-12-11 Richard M. Stallman <rms@gnu.org>
5859
5860 * m/hp800.h: Split the __hpux conditional into the parts
5861 that are right for GNU/Linux too and the parts that are not.
5862 Use the former if GNU_LINUX.
5863 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
5864
5865 * s/gnu-linux.h (GNU_LINUX): Defined.
5866
5867 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5868
5869 * macros.c, msdos.c, w16select.c: Change doc-string comments to
5870 `new style' [w/`doc:' keyword].
5871
5872 2001-12-10 Jason Rumney <jasonr@gnu.org>
5873
5874 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
5875 before using.
5876
5877 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5878
5879 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
5880 keyword].
5881
5882 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
5883
5884 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
5885
5886 * s/hpux10.h (srand48): Don't undefine.
5887
5888 2001-12-09 Jason Rumney <jasonr@gnu.org>
5889
5890 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
5891 Add comment to explain where the struct came from.
5892 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
5893 (add_menu_item): Process pop-up menus first to avoid memory leak.
5894 (add_menu_item, w32_menu_display_help): Use `help' field as
5895 Lisp_Object.
5896 (w32_free_submenu_strings): Only free owner-drawn strings.
5897
5898 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5899
5900 * COPYING: Moved back.
5901
5902 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
5903 Add parentheses around && within ||.
5904
5905 * indent.c (compute_motion): Likewise.
5906
5907 * intervals.c (merge_properties_sticky): Likewise.
5908
5909 * coding.c (setup_coding_system, shrink_encoding_region)
5910 (Fdecode_sjis_char): Likewise.
5911
5912 2001-12-07 Andreas Schwab <schwab@suse.de>
5913
5914 * xdisp.c (display_mode_element): Don't read past end of string if
5915 it ends with '%'.
5916
5917 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
5918 can hold.
5919
5920 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
5921 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
5922 type changed to Lisp_Object.
5923 (syms_of_data): DEFVAR_LISP them.
5924
5925 2001-12-07 Richard M. Stallman <rms@gnu.org>
5926
5927 * callproc.c (init_callproc): Set Vdata_directory based on the source
5928 location whenever Emacs was run uninstalled.
5929
5930 2001-12-06 Paul Eggert <eggert@twinsun.com>
5931
5932 * config.in (HAVE_WORKING_VFORK): New #undefs.
5933 * process.c (create_process):
5934 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
5935 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
5936 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
5937 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
5938 * m/intel386.h (HAVE_VFORK): Likewise.
5939 * m/mips-siemens.h (HAVE_VFORK): Likewise.
5940 * m/mips.h (HAVE_VFORK): Likewise.
5941 * s/freebsd.h (vfork): Remove #define.
5942 * s/lynxos.h (HAVE_VFORK): Remove #undef.
5943 * s/usg5-4-2.h: Fix comment about vfork.
5944
5945 2001-12-06 Richard M. Stallman <rms@gnu.org>
5946
5947 * s/hpux10.h (random): Add undef.
5948 (HAVE_RANDOM): Define it just once.
5949
5950 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
5951
5952 * eval.c: Undo last change: the standard syntax is not wanted.
5953
5954 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
5955
5956 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
5957 scroll bars of the frame before deleting the frame itself. If the
5958 frame has a widget, delete the frame with XtDestroyWidget, and do
5959 not call XDestroyWindow before that.
5960
5961 2001-12-06 Kim F. Storm <storm@cua.dk>
5962
5963 * xfns.c (x_report_frame_params): Return actual fringe widths.
5964
5965 * w32fns.c (x_report_frame_params): Return actual fringe widths.
5966
5967 2001-12-05 Andrew Innes <andrewi@gnu.org>
5968
5969 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
5970 excessively large.
5971
5972 * insdel.c (make_gap_larger): New function.
5973 (make_gap_smaller): New function.
5974 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
5975 Call make_gap_smaller if arg is negative.
5976
5977 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
5978
5979 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
5980 Pass a dummy argument when calling interrupt_signal.
5981 (parse_menu_item): Mark disabled items before checking for empty def.
5982 (read_char_minibuf_menu_prompt): Make safety more visible.
5983 (read_key_sequence): Add a `first_unbound' variable.
5984 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
5985 unbound prefix as soon as we can detect it.
5986
5987 * doc.c (Fsnarf_documentation): Add prototype.
5988 (get_doc_string): Handle negative arguments.
5989 (Fdocumentation): Use AREF and ASIZE.
5990 Move the calls to get_doc_string to a single place.
5991 Don't confuse an interactive-spec for a docstring reference.
5992 (Fdocumentation_property): Take advantage of the fact that
5993 get_doc_string now ignores the sign of the docstring position.
5994
5995 * eval.c: Use standard syntax for usage in docstrings.
5996
5997 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5998
5999 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
6000
6001 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6002
6003 * xterm.c (x_draw_image_relief): Use predefined macro instead of
6004 constant when the value of `tool_bar_button_relief' is negative.
6005
6006 2001-12-02 Richard M. Stallman <rms@gnu.org>
6007
6008 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
6009 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
6010
6011 * fileio.c (read_non_regular): Delete Fsignal call.
6012
6013 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
6014
6015 * lisp.h (run_hook_list_with_args): Undo last change.
6016
6017 2001-12-01 Gerd Moellmann <gerd@gnu.org>
6018
6019 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
6020
6021 2001-12-01 Jason Rumney <jasonr@gnu.org>
6022
6023 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
6024
6025 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
6026 [!WM_MOUSELEAVE]: Define.
6027
6028 * w32menu.c (current_popup_menu, get_menu_item_info):
6029 (set_menu_item_info): New vars.
6030 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
6031 (w32_menu_show): Set current_popup_menu.
6032 (add_menu_item): Allocate new strings for owner-drawn menu items
6033 and help strings.
6034 Use owner-draw for disabled menu items again.
6035 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
6036 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
6037
6038 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
6039 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
6040 <WM_EXITMENULOOP>: Free menu strings.
6041 <WM_MOUSELEAVE>: Stop tracking mouse.
6042 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
6043
6044 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
6045 and mouse face.
6046
6047 2001-12-01 Kim F. Storm <storm@cua.dk>
6048
6049 The following changes add left-fringe and right-fringe
6050 frame parameters to adjust fringe widths, or remove one or
6051 both fringes.
6052
6053 * frame.h (struct frame): Remove trunc_area_pixel_width and
6054 trunc_area_cols fields.
6055 (Qleft_fringe, Qright_fringe): Declare.
6056 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
6057
6058 * frame.c (Qleft_fringe, Qright_fringe): New vars.
6059 (syms_of_frame): Initialize them.
6060
6061 * window.c (coordinates_in_window): Handle separate left and right
6062 fringe widths.
6063
6064 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
6065 and fringe_cols fields.
6066 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
6067 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
6068 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
6069 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
6070 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
6071 (x_compute_fringe_widths): Add prototype.
6072
6073 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
6074 fill fringe evenly with small dashes.
6075 (x_draw_fringe_bitmap): Clear background if necessary. Align and
6076 clip the new ZV bitmap to avoid jitter between rows.
6077 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
6078 background. Don't draw fringe bitmaps if fringe width is zero.
6079 (x_compute_fringe_widths): New function.
6080 (x_new_font, x_set_window_size_1): Use it.
6081
6082 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
6083 (x_set_frame_parameters): Process `font' parameter before other
6084 parameters as fringe widths depend on it.
6085 (x_set_fringe_width): New function.
6086 (x_figure_window_size): Use x_compute_fringe_widths.
6087 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
6088 parameters.
6089
6090 * widget.c (set_frame_size): Use x_compute_fringe_widths.
6091 (EmacsFrameSetCharSize): Ditto.
6092
6093 * w32term.h: Merged changes from xterm.h.
6094 * w32term.c: Merged changes from xterm.c.
6095 * w32fns.c: Merged changes from xfns.c.
6096
6097 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6098
6099 * COPYING: Removed.
6100
6101 2001-11-29 Dave Love <fx@gnu.org>
6102
6103 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
6104 extra extra slot.
6105 (detect_coding_mask): Fix call of detect_coding_iso2022.
6106
6107 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6108
6109 * fileio.c (file-name-coding-system)
6110 (default-file-name-coding-system): Doc fix (links to referenced
6111 variables added).
6112
6113 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
6114
6115 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
6116 Add dummy uses of gcproN variables.
6117
6118 * category.c (describe_category, describe_category_1)
6119 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
6120 (syms_of_category): Don't defsubr Sdescribe_categories.
6121
6122 2001-11-28 Richard M. Stallman <rms@gnu.org>
6123
6124 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
6125
6126 * Makefile.in (lispdir): New variable, referring to build dir.
6127 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
6128
6129 2001-11-28 Andrew Innes <andrewi@gnu.org>
6130
6131 * w32menu.c (w32_menu_display_help): Actually add the new argument
6132 OWNER.
6133
6134 2001-11-28 Jason Rumney <jasonr@gnu.org>
6135
6136 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
6137 menu items. From David Ponce <dponce@wanadoo.fr>.
6138 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
6139 conditionally.
6140 (w32_menu_display_help): New argument OWNER. Rewritten to store a
6141 help event in the owner frame's keyboard buffer.
6142
6143 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
6144 (Fx_show_tip): Don't subtract last width from row width.
6145
6146 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
6147 (w32_read_socket): Use EQ to compare frames.
6148
6149 2001-11-28 Gerd Moellmann <gerd@gnu.org>
6150
6151 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
6152 OVERLAPS_P.
6153
6154 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6155
6156 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
6157 `gcpro3' and `gcpro4'.
6158
6159 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
6160
6161 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
6162
6163 * ccl.c: Use AREF and ASIZE.
6164
6165 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
6166
6167 * lisp.h (run_hook_list_with_args): Remove.
6168 (LIST_END_P): Fix call to wrong_type_argument.
6169 (make_fixnum_or_float): Use EMACS_INT rather than int.
6170
6171 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
6172
6173 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
6174 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
6175
6176 * eval.c: Use AREF and ASIZE.
6177 (Ffetch_bytecode): Add the file name to the error message.
6178
6179 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
6180 which match the end of the file-name.
6181 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
6182 is not a valid env var, but leave it as is instead.
6183
6184 * keymap.c (access_keymap): Handle t bindings like nil bindings.
6185 Make nil bindings in char-tables transparent.
6186 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
6187
6188 2001-11-26 Richard M. Stallman <rms@gnu.org>
6189
6190 * textprop.c (set_text_properties_1): Allow START, END in either order.
6191 Do nothing if range is empty.
6192
6193 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
6194
6195 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
6196 (clean): Not here.
6197
6198 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
6199
6200 * textprop.c (set_text_properties_1): Clearly mark that the
6201 interval should not be empty.
6202
6203 * intervals.c (graft_intervals_into_buffer):
6204 Don't call set_text_properties_1 on an empty interval.
6205
6206 2001-11-25 Richard M. Stallman <rms@gnu.org>
6207
6208 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
6209
6210 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
6211 don't lose the data in it.
6212
6213 2001-11-25 Juanma Barranquero <lektu@terra.es>
6214
6215 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
6216
6217 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
6218
6219 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
6220
6221 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
6222
6223 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
6224
6225 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
6226
6227 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
6228 Niemitalo <kon@iki.fi>.
6229
6230 2001-11-25 Jason Rumney <jasonr@gnu.org>
6231
6232 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
6233
6234 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
6235 (Fx_show_tip): Block input during frame creation.
6236 (Fx_show_tip, Fx_hide_tip): Enable.
6237
6238 2001-11-24 Richard M. Stallman <rms@gnu.org>
6239
6240 * lread.c (Fload): Detect recursive load error for more than 3
6241 nestings of the same file.
6242 (Vrecursive_load_depth_limit): Variable deleted.
6243 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
6244
6245 2001-11-24 Jason Rumney <jasonr@gnu.org>
6246
6247 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
6248 mouse position if either left or top is not specified.
6249
6250 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
6251 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
6252 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
6253 (my_create_tip_window): Assign tip_window.
6254 (x_create_tip_frame): Use same defaults as X.
6255 (compute_tip_xy): Remove unused variable. Use full screen width.
6256 (Fx_show_tip): Do not double height. Call ShowWindow directly.
6257
6258 * w32term.c (x_after_update_window_line): Doc fix.
6259 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
6260 frames.
6261 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
6262
6263 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
6264 for all Windowed systems.
6265
6266 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
6267
6268 * msdos.c (IT_clear_screen): If the frame's faces are not yet
6269 realized, use the initial screen colors to clear the screen.
6270
6271 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6272
6273 * textprop.c (Fset_text_properties): Remove unused variables
6274 `unchanged', `prev_changed', `s' and `len'.
6275
6276 * search.c (Freplace_match): Remove unused variable `inslen'.
6277
6278 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
6279
6280 2001-11-22 Jason Rumney <jasonr@gnu.org>
6281
6282 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
6283 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
6284 (my_create_tip_window): New function.
6285 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
6286 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
6287
6288 2001-11-20 Jason Rumney <jasonr@gnu.org>
6289
6290 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
6291 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
6292
6293 * w32fns.c (Vw32_system_coding_system): Remove.
6294 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
6295
6296 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
6297
6298 * fileio.c (Fwrite_region): Move choose_write_coding_system to
6299 after build_annotations.
6300
6301 * syntax.c (describe_syntax): Add dummy arg.
6302 (describe_syntax_1): Update call to describe_vector.
6303
6304 * category.c (describe_category): Add dummy arg.
6305 (describe_category_1): Update call to describe_vector.
6306
6307 * keymap.c (Fdescribe_vector): Add `describer' parameter.
6308 (describe_command, describe_translation): Add dummy second param.
6309 (describe_map): Call elt_describer with two arguments.
6310 (describe_vector_princ): Add `fun' parameter.
6311 Call it instead of the hardcoded `princ'.
6312 (describe_vector): Add arg `args'.
6313 Pass it as a new second argument to elt_describer.
6314
6315 * keymap.h (describe_vector): Update prototype.
6316
6317 * frame.c: Don't include keymap.h any more.
6318 (keys_of_frame): Remove.
6319
6320 * lisp.h (keys_of_frame): Remove declaration.
6321
6322 * emacs.c (main): Don't call `keys_of_frame' any more.
6323
6324 2001-11-14 Andreas Schwab <schwab@suse.de>
6325
6326 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
6327 if defined, 0 otherwise.
6328 (MAP_FAILED): Define if not defined and use it to test mmap failure.
6329 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
6330
6331 2001-11-19 Richard M. Stallman <rms@gnu.org>
6332
6333 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
6334
6335 2001-11-18 Jason Rumney <jasonr@gnu.org>
6336
6337 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
6338 (x_draw_bar_cursor): If the background color of the glyph under
6339 the cursor equals the frame's cursor color, use the glyph's
6340 foreground color for drawing the bar cursor.
6341 (x_after_update_window_line): Clear internal border in different
6342 circumstances.
6343 (w32_set_vertical_scroll_bar): Check for width and height > 0.
6344 (w32_draw_relief_rect): Correct relief by 1 pixel.
6345 (x_set_glyph_string_background_width):
6346 Set extends_to_end_of_line_p if the row's fill_line_p is set and
6347 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
6348 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
6349 if cursor_in_non_selected_windows is false.
6350 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
6351 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
6352 Notice if cursor gets overwritten.
6353 (notice_overwritten_cursor): Renamed from
6354 note_overwritten_text_cursor. Rewritten to take glyph widths
6355 into account, and to take X positions as parameters.
6356 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
6357 around call to x_draw_glyphs.
6358 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
6359 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
6360 color to use for image glyph reliefs.
6361 (x_draw_image_relief): Accept zero tool_bar_button_relief.
6362 (glyph_rect): Remove unused variable `area'.
6363
6364 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
6365 some items.
6366 (x_set_internal_border_width): Set frame garbaged when window
6367 doesn't exist yet.
6368 (Fx_create_frame): Accept zero tool_bar_button_relief.
6369 (x_clear_image_1, four_corners_best, image_background)
6370 (image_background_transparent): New functions.
6371 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
6372 (gs_format): Add `:background' entry.
6373 (lookup_image): Set IMG's background color if specified.
6374 (pbm_load, xbm_load_image, png_load): Set IMG's background field
6375 when appropriate.
6376 (x_clear_image_1): Reset `background_valid' and
6377 `background_transparent_valid' fields.
6378 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
6379 calculating it here. Set IMG's background_transparent field.
6380 (enum xpm_keyword_index): Add XPM_BACKGROUND.
6381 (enum png_keyword_index): Add PNG_BACKGROUND.
6382 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
6383 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
6384 (enum gif_keyword_index): Add GIF_BACKGROUND.
6385 (enum gs_keyword_index): Add GS_BACKGROUND.
6386 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
6387 Pre-calculate image background color where necessary.
6388 (x_create_x_image_and_pixmap, xbm_load, gs_load):
6389 Use display info's n_cbits entry for screen depth.
6390 (Fx_show_tip): Remove unused variables `buffer', `top',
6391 `left', `max_width' and `max_height'.
6392
6393 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
6394
6395 2001-11-18 Gerd Moellmann <gerd@gnu.org>
6396
6397 * puresize.h (BASE_PURESIZE): Increase to 750000.
6398
6399 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6400
6401 * frame.c (Fframe_live_p): Doc fix.
6402
6403 2001-11-18 Richard M. Stallman <rms@gnu.org>
6404
6405 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
6406 (message_dolog_marker3): New static variables hold three markers.
6407 (syms_of_xdisp): Initialize and staticpro them.
6408 (message_dolog): Use message_dolog_marker1..3 instead of
6409 allocating markers each time. Unchain them when done.
6410
6411 2001-11-17 Richard M. Stallman <rms@gnu.org>
6412
6413 * doc.c (Fsnarf_documentation): Doc fix.
6414
6415 2001-11-17 Andreas Schwab <schwab@suse.de>
6416
6417 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
6418
6419 2001-11-17 Richard M. Stallman <rms@gnu.org>
6420
6421 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
6422
6423 2001-11-17 Jason Rumney <jasonr@gnu.org>
6424
6425 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
6426
6427 2001-11-17 Gerd Moellmann <gerd@gnu.org>
6428
6429 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
6430 with invalid position.
6431
6432 2001-11-16 Richard M. Stallman <rms@gnu.org>
6433
6434 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
6435
6436 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
6437 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
6438 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
6439
6440 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
6441
6442 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
6443
6444 * fileio.c (build_annotations): Split off the tail.
6445 (build_annotations_2): New fun. Extracted from build_annotations.
6446 (Fwrite_region): Split the call to build_annotations into two
6447 calls to build_annotations and build_annotations_2.
6448
6449 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6450
6451 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
6452 clear_waiting_for_input with argument.
6453
6454 * xterm.h (x_update_cursor): Remove duplicated prototype.
6455
6456 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
6457
6458 * xterm.c (waiting_for_input): Remove unnecessary declaration.
6459
6460 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
6461
6462 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
6463
6464 * fileio.c (choose_write_coding_system): New fun, extracted
6465 from Fwrite_region.
6466 (Fwrite_region): Use it.
6467
6468 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
6469 (funcall_lambda, run_hook_with_args): Make static and add prototype.
6470 (ml_apply, find_handler_clause): Add prototype.
6471
6472 2001-11-16 Eli Zaretskii <eliz@gnu.org>
6473
6474 * config.in: Add #undef HAVE_COFF_H.
6475
6476 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
6477 Required for ISC 4.1.
6478
6479 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
6480
6481 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
6482 Andrew Wiseman <a.wiseman@btclick.com>.
6483
6484 2001-11-16 Kim F. Storm <storm@cua.dk>
6485
6486 The following changes are made to clean up the various internal
6487 references to the fringes to actually use the term `fringe' for
6488 them. Previously, they were called `flags areas', `bitmap areas',
6489 `left/right side of windows', or implicitly as `flags' or
6490 `bitmaps':
6491
6492 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
6493 Comments fixed. Use renamed symbols.
6494
6495 * dispnew.c: Comment fix. Use renamed symbols.
6496
6497 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
6498 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
6499 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
6500
6501 * msdos.c: Comment fix.
6502
6503 * w32fns.c: Use renamed symbols.
6504
6505 * w32term.c: Comment fixes. Use renamed symbols.
6506 (fringe_bitmap_type): Renamed from bitmap_type.
6507 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
6508 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
6509 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
6510
6511 * w32term.h: Comment fixes. Use renamed symbols.
6512 (fringes_extra): Renamed from flags_areas_extra.
6513 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
6514 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
6515 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
6516 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
6517 (FRAME_X_LEFT_FRINGE_WIDTH):
6518 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
6519 (FRAME_X_RIGHT_FRINGE_WIDTH):
6520 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
6521
6522 * widget.c: Use renamed symbols.
6523
6524 * window.c: Comment fixes. Use renamed symbols.
6525 (coordinates-in-window-p): Doc fix.
6526
6527 * xdisp.c: Comment fixes. Use renamed symbols.
6528
6529 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
6530
6531 * xfns.c: Use renamed symbols.
6532
6533 * xterm.c: Comment fixes. Use renamed symbols.
6534 (fringe_bitmap_type): Renamed from bitmap_type.
6535 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
6536 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
6537 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
6538
6539 * xterm.h: Comment fixes. Use renamed symbols.
6540 (fringes_extra): Renamed from flags_areas_extra.
6541 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
6542 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
6543 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
6544 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
6545 (FRAME_X_LEFT_FRINGE_WIDTH):
6546 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
6547 (FRAME_X_RIGHT_FRINGE_WIDTH):
6548 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
6549
6550 2001-11-15 Jason Rumney <jasonr@gnu.org>
6551
6552 * w32menu.c (add-menu-item): Make help_echo and radio buttons
6553 work for most menu items. From David Ponce
6554 <david.ponce@wanadoo.fr>.
6555
6556 2001-11-15 Gerd Moellmann <gerd@gnu.org>
6557
6558 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
6559 Some x_set_* function expect to be called even if old and new
6560 value are equal.
6561
6562 * xdisp.c (build_desired_tool_bar_string): Accept zero
6563 tool_bar_button_relief.
6564
6565 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
6566
6567 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
6568
6569 * xterm.c (x_draw_bar_cursor): If the background color of the
6570 glyph under the cursor equals the frame's cursor color, use
6571 the glyph's foreground color for drawing the bar cursor.
6572
6573 * dispnew.c (direct_output_forward_char): Fix character/byte
6574 position comparison.
6575
6576 2001-11-15 Miles Bader <miles@gnu.org>
6577
6578 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
6579 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
6580 Update arguments to find_field.
6581 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
6582 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
6583 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
6584 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
6585
6586 2001-11-14 Richard M. Stallman <rms@gnu.org>
6587
6588 * editfns.c (Fpropertize): Allow call with 1 arg.
6589
6590 * dispextern.h (image_background, image_background_transparent):
6591 Conditionalize on HAVE_X_WINDOWS.
6592
6593 2001-11-13 Richard M. Stallman <rms@gnu.org>
6594
6595 * print.c (Fprin1_to_string): Doc fix.
6596
6597 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
6598
6599 * floatfns.c (Fceiling, Ffloor): Doc fixes.
6600
6601 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
6602
6603 * fileio.c (Ffile_accessible_directory_p): Doc fix.
6604
6605 * eval.c (syms_of_eval): Doc fix.
6606
6607 * coding.c (syms_of_coding): Doc fix.
6608
6609 * doc.c (Fsnarf_documentation): Doc fix.
6610
6611 * dispnew.c (syms_of_display): Doc fix.
6612
6613 * category.c (Fget_unused_category): Doc fix.
6614
6615 * buffer.c (syms_of_buffer): Doc fixes.
6616
6617 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
6618
6619 * print.c (prin1, print): Doc fix.
6620
6621 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6622
6623 * fontset.h: Remove declarations of variables
6624 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
6625
6626 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
6627 `Vclip_large_size_font'.
6628
6629 2001-11-13 Jason Rumney <jasonr@gnu.org>
6630
6631 * w32fns.c: Doc fix.
6632
6633 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6634
6635 * xfaces.c (Fface_attributes_as_vector): Doc fix.
6636
6637 * fns.c: Doc fix.
6638
6639 * emacs.c: Doc fix.
6640
6641 * coding.c: Doc fix.
6642
6643 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
6644 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
6645 `new style' [w/`doc:' keyword].
6646
6647 2001-11-12 Richard M. Stallman <rms@gnu.org>
6648
6649 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
6650 LeaveNotify events. Only FocusIn and FocusOut do that now.
6651 (x_display_and_set_cursor): Do display hollow cursors in active
6652 minibuffer windows when they are not selected.
6653
6654 2001-11-12 Jason Rumney <jasonr@gnu.org>
6655
6656 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
6657 * w32term.c: Change doc-string comments to `new style'.
6658 [w/`doc:' keyword]. Doc fixes.
6659
6660 * w32fns.c: Don't define max.
6661 (Fx_open_connection): Only execute once.
6662
6663 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6664
6665 * ccl.c: Change macros to use do-while block instead of if-else.
6666 Use braces to follow GNU Coding Standards.
6667
6668 2001-11-11 Richard M. Stallman <rms@gnu.org>
6669
6670 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
6671
6672 * lread.c (read_escape): Use end_of_file_error for reporting eof.
6673
6674 * insdel.c (replace_range): Use adjust_markers_for_replace
6675 instead of adjust_markers_for_delete and adjust_markers_for_insert.
6676
6677 * intervals.h: Declare set_text_properties and set_text_properties_1.
6678
6679 * textprop.c (set_text_properties_1): New subroutine
6680 broken out of set_text_properties.
6681 (set_text_properties): Use set_text_properties_1.
6682
6683 * intervals.c (graft_intervals_into_buffer):
6684 Use set_text_properties_1 to clear out properties.
6685
6686 * search.c (Freplace_match): Use replace_range to insert
6687 and delete. Don't request property inheritance from
6688 surrounding text.
6689
6690 2001-11-10 Jason Rumney <jasonr@gnu.org>
6691
6692 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
6693 vertical fonts. Allow them if face name is explicitly specified.
6694 Do not give up if we find a font that cannot be converted to an xlfd.
6695
6696 2001-11-10 Gerd Moellmann <gerd@gnu.org>
6697
6698 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
6699 instead of malloc/free.
6700
6701 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6702
6703 * xfaces.c (merge_face_vectors): Use braces to follow GNU
6704 Coding Standards.
6705 (Finternal_set_lisp_face_attribute): Likewise.
6706
6707 * buffer.c (Fbury_buffer): Likewise.
6708
6709 * indent.c (current_column_1): Remove unused variable `prev_col'.
6710
6711 * coding.c (encode_coding): Use precomputed value of `src'.
6712 (encode_coding): Remove unused variable `src_end'.
6713 (code_convert_region): Remove unused variables `count'.
6714
6715 2001-11-07 Jason Rumney <jasonr@gnu.org>
6716
6717 * w32term.c (x_display_and_set_cursor): Do not move system caret
6718 if cursor_glyph is NULL.
6719
6720 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6721
6722 * keymap.c (access_keymap): Fix compilation error.
6723
6724 2001-11-07 Miles Bader <miles@gnu.org>
6725
6726 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
6727
6728 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6729
6730 * intervals.c (graft_intervals_into_buffer):
6731 Remove #ifdef'd-out code.
6732 (graft_intervals_into_buffer): Remove unused variable `middle'.
6733
6734 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
6735 code (eval-current-buffer).
6736 Change doc-string comments to `new style' [w/`doc:' keyword].
6737
6738 2001-11-06 Richard M. Stallman <rms@gnu.org>
6739
6740 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
6741
6742 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
6743
6744 * lread.c (read1): Fix behavior with nested backquoting.
6745
6746 * keyboard.c (make_lispy_event): Check integerness and fix
6747 Lisp_Object/int mixup.
6748
6749 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6750
6751 * fns.c (copy_hash_table): Remove unused variable `v'.
6752
6753 * fontset.c (fontset_font_pattern): Remove unused variable
6754 `family_registry'.
6755
6756 * indent.c (current_column_1): Remove unused variable `prev_col'.
6757
6758 2001-11-05 Richard M. Stallman <rms@gnu.org>
6759
6760 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
6761
6762 * buffer.c (Fkill_buffer): Don't delete auto save file
6763 if buffer is modified.
6764
6765 2001-11-05 Andrew Innes <andrewi@gnu.org>
6766
6767 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
6768 CHECK_NUMBER_CDR.
6769
6770 2001-11-05 Richard M. Stallman <rms@gnu.org>
6771
6772 * unexelf.c (unexec): Minor changes; clean up comments.
6773
6774 2001-11-05 Sam Steingold <sds@gnu.org>
6775
6776 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6777
6778 2001-11-05 Andreas Schwab <schwab@suse.de>
6779
6780 * sound.c (sound_perror): Save errno from being clobbered.
6781
6782 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
6783
6784 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
6785 the program image directly.
6786
6787 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6788
6789 * buffer.h (Fbuffer_local_value): Add prototype.
6790
6791 2001-11-04 Richard M. Stallman <rms@gnu.org>
6792
6793 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
6794 and CHECK_BUFFER.
6795
6796 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
6797 (record_char): Likewise.
6798
6799 * keyboard.c (make_lispy_event): Don't insist a drag event must
6800 move to a different buffer position. Instead, check for moving at
6801 least double_click_fuzz.
6802
6803 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
6804
6805 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
6806
6807 * indent.c (current_column_1, Fmove_to_column): Separate the code
6808 for display-table glyphs from the code for buffer text, to fix
6809 bugs in the former.
6810
6811 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
6812
6813 * buffer.c (Fbuffer_local_value): New function.
6814 (syms_of_buffer): Defsubr it.
6815
6816 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
6817 value of `cursor-in-non-selected-windows'.
6818
6819 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
6820 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
6821 (syms_of_xdisp): Initialize it.
6822
6823 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6824
6825 * xfns.c (Fx_create_frame): Doc fix.
6826
6827 * coding.c: Change doc-string comments to `new style' [w/`doc:'
6828 keyword].
6829
6830 * eval.c (top_level_value, top_level_set): Remove commented and
6831 #ifdef'd-out code.
6832 (Fdefvar): Fix usage in doc-string.
6833
6834 2001-11-03 Richard M. Stallman <rms@gnu.org>
6835
6836 * xfns.c: Include unistd.h, if it exists.
6837
6838 * editfns.c: Move the include of ctype.h after unistd.h.
6839
6840 * gmalloc.c: Test BROKEN_PROTOTYPES.
6841
6842 2001-11-03 Ken Raeburn <raeburn@gnu.org>
6843
6844 * lisp.h (CHECK_STRING_CAR): New macro.
6845 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
6846 treating XCAR and XCDR as lvalues.
6847 (openp): Use CHECK_STRING_CAR.
6848 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
6849
6850 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6851
6852 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
6853 (SIGMASKTYPE): Define.
6854
6855 * syssignal.h (sigunblock): Don't define if already defined.
6856
6857 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6858
6859 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
6860 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
6861 Fix typos in comments.
6862
6863 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
6864 and #ifdef'd-out code.
6865 Fix and reindent comments.
6866
6867 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6868
6869 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
6870 argument `i' in macros.
6871
6872 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
6873 `i' in macros.
6874
6875 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
6876 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
6877 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
6878 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
6879 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
6880 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
6881 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
6882 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
6883 in macros.
6884
6885 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
6886 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
6887 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
6888 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
6889 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
6890 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
6891 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
6892 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
6893 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
6894 (remove unused second argument).
6895
6896 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
6897
6898 * syntax.c (describe_syntax): New wrapper.
6899 (Finternal_describe_syntax_value): Rename from describe_syntax.
6900 Don't insert space at front and \n at the end.
6901 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
6902
6903 * regex.c (re_wctype): Try to fix some warnings.
6904 (regcomp, regexec): Don't forget the __restrict.
6905
6906 2001-11-02 Richard M. Stallman <rms@gnu.org>
6907
6908 * textprop.c (Fget_char_property): Doc fix.
6909
6910 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6911
6912 * process.c (Fstart_process): Add usage to doc-string.
6913
6914 * data.c (Fsetq_default): Ditto.
6915
6916 * callint.c (Finteractive): Ditto.
6917
6918 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
6919
6920 * macros.c: Don't include keymap.h any more.
6921
6922 2001-11-01 Richard M. Stallman <rms@gnu.org>
6923
6924 * data.c (Fmake_local_variable): Doc fix.
6925
6926 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
6927 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
6928
6929 * keymap.c (Fdescribe_buffer_bindings): Print character property
6930 bindings along with or instead of the buffer local map.
6931 Make the overriding maps override what they should.
6932
6933 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6934
6935 * window.c (grow_mini_window): Fix typo in comment.
6936
6937 2001-11-01 Gerd Moellmann <gerd@gnu.org>
6938
6939 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
6940 (XTset_vertical_scroll_bar): Likewise.
6941
6942 * xfns.c (x_build_heuristic_mask): Use four_corners_best
6943 instead of IMAGE_BACKGROUND.
6944
6945 * xfns.c (four_corners_best): Reindent.
6946
6947 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
6948 Handle :box so that it is possible to specify sexprs.
6949
6950 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
6951
6952 * s/hpux11.h: New file.
6953
6954 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6955
6956 * emacs.c (USAGE1): Show command line option --no-window-system
6957 instead of --no-windows in usage.
6958 (standard_args): Rename --no-windows to --no-window-system.
6959 (bug_reporting_address): Follow Emacs coding conventions.
6960
6961 * eval.c (Fcommandp): Doc fix.
6962 Change doc-string comments to `new style' [w/`doc:' keyword].
6963
6964 * frame.c (Fframe_live_p): Doc fix.
6965
6966 * buffer.c (selective-display-ellipses): Doc fix.
6967
6968 2001-10-31 Gerd Moellmann <gerd@gnu.org>
6969
6970 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
6971
6972 * xfaces.c (realize_x_face): If C is not a single-byte character,
6973 set the face's colors_copied_bitwise_p instead of the defaulted_p
6974 members which have a different meaning.
6975 (free_face_colors): Do nothing for a face whose colors have been
6976 copied bitwise.
6977
6978 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
6979
6980 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6981
6982 * marker.c, mocklisp.c: Change doc-string comments to `new style'
6983 [w/`doc:' keyword].
6984
6985 2001-10-31 Gerd Moellmann <gerd@gnu.org>
6986
6987 * fns.c (require_unwind): Return Lisp_Object.
6988
6989 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6990
6991 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
6992 (last-input-char): Revert doc-string to be the same as the
6993 doc-string of `last-input-event'.
6994
6995 * xdisp.c: Fix typos in comments.
6996
6997 2001-10-31 Gerd Moellmann <gerd@gnu.org>
6998
6999 * window.c (grow_mini_window): Handle case that the root
7000 window is already smaller than the nominal mininum height.
7001
7002 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
7003
7004 * emacs.c (main): Don't call keys_of_macros any more.
7005
7006 * lisp.h (keys_of_macros): Remove.
7007
7008 * macros.c (keys_of_macros): Remove.
7009
7010 * xfaces.c (Fface_attribute_relative_p): Declare args.
7011
7012 2001-10-30 Jason Rumney <jasonr@gnu.org>
7013
7014 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
7015 (enum_font_cb2): Ignore fonts with vertical orientation.
7016
7017 2001-10-30 Richard M. Stallman <rms@gnu.org>
7018
7019 * keyboard.c (Finput_pending_p): Doc fix.
7020
7021 2001-10-30 Gerd Moellmann <gerd@gnu.org>
7022
7023 * xterm.c (x_after_update_window_line): Don't run the code
7024 clearing in borders for rows whose visible height is 0.
7025
7026 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
7027 resized_p flag is set. If not set, use the much less flickering
7028 method previously used.
7029
7030 * dispnew.c (change_frame_size_1): Set frame's resized_p.
7031
7032 * frame.h (struct frame) <resized_p>: New member.
7033
7034 * lread.c (to_multibyte): Ensure read_buffer is at least twice
7035 as large as the number of bytes to convert.
7036
7037 * lread.c (to_multibyte): New function.
7038 (read1): Use it.
7039
7040 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
7041
7042 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
7043
7044 2001-10-30 Gerd Moellmann <gerd@gnu.org>
7045
7046 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
7047 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
7048 if the row's fill_line_p is set and drawing the last glyph with
7049 DRAW_IMAGE_{RAISED,SUNKEN}.
7050
7051 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
7052
7053 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
7054
7055 * xmenu.c: Include coding.h and charset.h.
7056 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
7057 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
7058 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
7059 Explicitly set wv->help. Use `TRUE' rather than `True'.
7060 (menu_help_callback): Use empty_string.
7061
7062 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
7063 (Fx_popup_dialog): Explicitly init f.
7064 (w32_menu_display_help): Use empty_string.
7065
7066 2001-10-29 Richard M. Stallman <rms@gnu.org>
7067
7068 * fns.c (Frequire): Detect recursive try to require the same
7069 feature 3 or more levels deep, and get error.
7070 (require_unwind): New subroutine.
7071 (require_nesting_list): New variable.
7072 (syms_of_fns): Init and staticpro it.
7073
7074 * print.c (print_object): Clarify indication of insertion type.
7075
7076 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
7077
7078 * coding.c (syms_of_coding): Document that locale-coding-system is
7079 used for decoding input on X.
7080
7081 * window.c (Fscroll_left, Fscroll_right): Doc fix.
7082
7083 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7084
7085 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
7086 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
7087
7088 2001-10-29 Gerd Moellmann <gerd@gnu.org>
7089
7090 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
7091 use NO_CURSOR if cursor_in_non_selected_windows is false.
7092
7093 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
7094 the slant attribute if FRAME is t.
7095
7096 * xfns.c (x_set_internal_border_width): Set frame garbaged
7097 when X window doesn't exist yet.
7098
7099 * xterm.c (x_after_update_window_line): Clear internal border
7100 in different circumstances.
7101
7102 * xterm.c (XTread_socket) <KeyPress>: Don't use
7103 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
7104 <handa@etl.go.jp>.
7105
7106 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
7107
7108 * m/ibms390.h: New file. From Adam Thornton
7109 <athornton@sinenomine.net>.
7110
7111 2001-10-28 Gerd Moellmann <gerd@gnu.org>
7112
7113 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
7114
7115 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
7116 a loop counter.
7117
7118 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7119
7120 * emacs.c: Use argv[0] instead of emacs when -t was specified.
7121
7122 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
7123 keyword].
7124 Fix typos in comments.
7125
7126 * emacs.c (bug_reporting_address): New function.
7127 Use it when displaying usage message.
7128
7129 * minibuf.c (read_minibuf): Remove unused external declaration of
7130 variable `Qread_only'.
7131
7132 * keymap.c (access_keymap): Remove unused variable `charset'.
7133
7134 2001-10-28 Miles Bader <miles@gnu.org>
7135
7136 * xfaces.c (merge_face_heights): Handle TO being relative as well.
7137 Remove #ifdef'd-out code.
7138 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
7139 (syms_of_xfaces): Initialize them.
7140
7141 2001-10-27 Jason Rumney <jasonr@gnu.org>
7142
7143 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
7144 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
7145 position using the system caret.
7146
7147 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
7148 (w32_system_caret_height, w32_system_caret_x)
7149 (w32_system_caret_y): New variables for tracking system caret.
7150 (w32_initialize): Initialize them.
7151 (x_display_and_set_cursor): Make system caret follow the active cursor.
7152
7153 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
7154 New messages types.
7155
7156 * w32term.c (note_mouse_highlight): Clear old help_echo.
7157
7158 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7159
7160 * xterm.c: Fix typo in a comment.
7161
7162 * emacs.c: Fix typos in comments.
7163 Remove unnecessary spaces.
7164 Change doc-string comments to `new style' [w/`doc:' keyword].
7165 (USAGE2): Fix typos in usage string.
7166
7167 * xterm.c: Fix typo in a comment.
7168
7169 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
7170 emacs.c.
7171
7172 2001-10-27 Gerd Moellmann <gerd@gnu.org>
7173
7174 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
7175 instead of 1/2 line_height in the heuristic for skipping
7176 farther backward when target_y was not reached.
7177
7178 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
7179 Display errno only if non-zero.
7180 (sound_warning): New function.
7181 (vox_configure): Don't treat failing to set sample rate as error.
7182 (various places): Improve error messages.
7183
7184 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
7185
7186 * fileio.c (Faccess_file): Run the argument filename through
7187 Fexpand_file_name, before using it.
7188
7189 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
7190 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
7191
7192 2001-10-26 Gerd Moellmann <gerd@gnu.org>
7193
7194 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
7195
7196 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
7197 Fix clearing in the case of scroll bars on the right.
7198
7199 2001-10-26 Juanma Barranquero <lektu@terra.es>
7200
7201 * w32gui.h (XImage): Add a dummy typedef.
7202
7203 2001-10-26 Gerd Moellmann <gerd@gnu.org>
7204
7205 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
7206
7207 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
7208
7209 * frame.c (Fframe_parameter): Fix last change.
7210
7211 * fileio.c: Revert last change (which removed old commented-out
7212 version of expand-file-name). Add a comment that explains why
7213 this old version should not be removed.
7214
7215 2001-10-25 Gerd Moellmann <gerd@gnu.org>
7216
7217 * frame.c (Fframe_parameter): Fix a bug whereby some
7218 ``artificial'' frame parameters, like `minibuffer' were not
7219 obtained by calling Fframe_parameters.
7220
7221 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
7222 cursor differently.
7223
7224 * xdisp.c (move_it_vertically_backward): Compute line height
7225 differently. Add heuristic to try to be more compatible to 20.x.
7226
7227 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
7228
7229 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
7230
7231 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
7232 boolean.
7233
7234 2001-10-25 Miles Bader <miles@gnu.org>
7235
7236 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
7237 BG is a pointer to a structure, not a structure.
7238 (gif_format, png_format): Add missing commas.
7239
7240 2001-10-24 Richard M. Stallman <rms@gnu.org>
7241
7242 * xfaces.c (Fface_attributes_as_vector): New function.
7243 (syms_of_xfaces): Defsubr it.
7244
7245 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7246
7247 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
7248 variable `area'.
7249
7250 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7251
7252 * search.c (scan_newline): Remove unused variable `selective_display'.
7253
7254 2001-10-25 Miles Bader <miles@gnu.org>
7255
7256 * dispextern.h (struct image): Add `background',
7257 `background_valid', and `background_transparent' fields.
7258 (image_background, image_background_transparent): New declarations.
7259 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
7260 * xfns.c (image_background, image_background_transparent)
7261 (four_corners_best): New functions.
7262 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
7263 (gs_format): Add `:background' entry.
7264 (lookup_image): Set IMG's background color if specified.
7265 (pbm_load, xbm_load_image, png_load): Set IMG's background field
7266 when appropriate.
7267 (x_clear_image_1): Reset `background_valid' and
7268 `background_transparent_valid' fields.
7269 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
7270 calculating it here. Set IMG's background_transparent field.
7271 (enum xpm_keyword_index): Add XPM_BACKGROUND.
7272 (enum png_keyword_index): Add PNG_BACKGROUND.
7273 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
7274 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
7275 (enum gif_keyword_index): Add GIF_BACKGROUND.
7276 (enum gs_keyword_index): Add GS_BACKGROUND.
7277 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
7278 Pre-calculate image background color where necessary.
7279 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
7280 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
7281 color to use for image glyph reliefs.
7282
7283 2001-10-24 Gerd Moellmann <gerd@gnu.org>
7284
7285 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
7286 in full-width rows.
7287
7288 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
7289 Fix clearing of area not covered by scroll bar.
7290
7291 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7292
7293 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
7294 and `real_start'.
7295 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
7296 (glyph_rect): Remove unused variable `area'.
7297
7298 2001-10-24 Gerd Moellmann <gerd@gnu.org>
7299
7300 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
7301
7302 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
7303 (row_containing_pos): Take additional argument DY.
7304 Treat rows ending in middle of char differently.
7305 (display_line): Handle tabs on window systems differently.
7306
7307 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
7308 with additional argument.
7309
7310 * dispextern.h (row_containing_pos): Adjust prototype.
7311
7312 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
7313 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
7314 (try_window_id, try_window_reusing_current_matrix)
7315 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
7316 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
7317
7318 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7319
7320 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
7321 gnuemacs).
7322 (HAVE_BOXES): Fix typo in comment.
7323 (push_menu_pane): Fix typo in comment.
7324
7325 * xdisp.c: (display_prop_string_p): Remove unused local declaration
7326 of `Qwhen'.
7327 (single_display_prop_string_p): Remove unused local declarations
7328 of `Qwhen' and `Qmargin'.
7329 (string_buffer_position): Remove unused variable `around'.
7330 (store_frame_title): Remove unused variable `width'.
7331
7332 * window.c: Don't define max.
7333 (coordinates_in_window): Remove unused variable `uy'.
7334
7335 * widget.c: Don't define max.
7336
7337 * process.c: Don't define max.
7338 (create_process): Remove unused variable `buffer'.
7339
7340 2001-10-23 Gerd Moellmann <gerd@gnu.org>
7341
7342 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
7343
7344 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
7345
7346 * xfaces.c (Finternal_set_lisp_face_attribute)
7347 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
7348 frame is on a windowed display.
7349
7350 2001-10-23 Gerd Moellmann <gerd@gnu.org>
7351
7352 * dispnew.c (sync_window_with_frame_matrix_rows):
7353 Fix handling of windows which aren't full-width, fix handling
7354 of marginal areas.
7355
7356 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
7357
7358 2001-10-23 Andreas Schwab <schwab@suse.de>
7359
7360 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
7361 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
7362
7363 2001-10-23 Gerd Moellmann <gerd@gnu.org>
7364
7365 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
7366 REAL_END. Notice if cursor gets overwritten.
7367 (notice_overwritten_cursor): Take X positions as parameters.
7368 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
7369 around call to x_draw_glyphs.
7370
7371 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7372
7373 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
7374 instead of C) and usage.
7375
7376 * editfns.c (char-to-string): Fix argument names (use CHAR instead
7377 of C) and usage.
7378
7379 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
7380 `left', `max_width' and `max_height'.
7381
7382 2001-10-23 Gerd Moellmann <gerd@gnu.org>
7383
7384 * xdisp.c (display_line): For a tab continued to the next line,
7385 set row's ends_in_middle_of_char_p.
7386
7387 2001-10-22 Gerd Moellmann <gerd@gnu.org>
7388
7389 * xdisp.c (display_line): Fix computation of continuation lines
7390 width for TABs.
7391
7392 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7393
7394 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
7395 `Qlaplace'.
7396
7397 * fileio.c: Remove unused code.
7398
7399 2001-10-22 Miles Bader <miles@gnu.org>
7400
7401 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
7402 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
7403 Remove `DOC_STRINGS_IN_COMMENTS' cases.
7404
7405 2001-10-21 Jason Rumney <jasonr@gnu.org>
7406
7407 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
7408
7409 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
7410
7411 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
7412 (Finsert_string): Avoid the multi-line string literals warning.
7413
7414 2001-10-22 Miles Bader <miles@gnu.org>
7415
7416 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
7417 (Fdocumentation): Don't use it.
7418 (syms_of_doc): Don't initialize it.
7419
7420 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
7421 * print.c (Fwith_output_to_temp_buffer): Likewise.
7422 * window.c (Fsave_window_excursion): Likewise.
7423 * editfns.c (Fsave_excursion, Fsave_current_buffer)
7424 (Fsave_restriction): Likewise.
7425 * eval.c (Frun_hooks, Frun_hook_with_args)
7426 (Frun_hook_with_args_until_failure)
7427 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
7428 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
7429 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
7430 (Funwind_protect, Fcondition_case): Likewise.
7431 * coding.c (Ffind_operation_coding_system): Likewise.
7432 * keyboard.c (Ftrack_mouse): Likewise.
7433
7434 2001-10-21 Miles Bader <miles@gnu.org>
7435
7436 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
7437 (Fmake_hash_table): Add usage: string to doc string.
7438 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
7439 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
7440 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
7441 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
7442 (Fml_prefix_argument_loop): Likewise.
7443
7444 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7445
7446 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
7447
7448 * sysdep.c (init_sys_modes): Change doc-string comments to `new
7449 style' [w/`doc:' keyword].
7450
7451 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
7452 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
7453 comments to `new style' [w/`doc:' keyword].
7454
7455 2001-10-21 Jason Rumney <jasonr@gnu.org>
7456
7457 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
7458
7459 * w32term.c (remember_mouse_glyph): New function.
7460 (w32_mouse_position): Use it.
7461 (note_mouse_movement): If the mouse moved off the glyph, remember
7462 its new position.
7463
7464 * w32term.h (struct w32_output): Correct spelling of x_compatible.
7465 (w32_display_info): Add mouse_face_overlay.
7466
7467 * w32term.c (notice_overwritten_cursor): Renamed from
7468 note_overwritten_text_cursor. Rewritten to take glyph widths into
7469 account.
7470 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
7471 (fast_find_string_pos): New function.
7472 (fast_find_position): Return the correct vpos. Add parameter
7473 STOP. In the final row, stop before glyphs having STOP as object.
7474 Don't consider glyphs that are not from a buffer.
7475 (fast_find_position) [0]: Add a presumably more correct version
7476 for after 21.1.
7477 (expose_window_tree, expose_frame): Don't compute intersections here.
7478 (expose_window): Do it here instead.
7479 (expose_window_tree, expose_window, expose_line): Return 1 when
7480 overwriting mouse-face.
7481 (expose_window): If W is the window currently being updated, mark
7482 the frame garbaged.
7483 (expose_frame): If mouse-face was overwritten, redo it.
7484 (x_use_underline_position_properties): New variable.
7485 (syms_of_xterm): DEFVAR_BOOL it.
7486 (x_draw_glyph_string): Add comment to use it in future.
7487 (x_draw_glyph_string): Restore clipping after drawing box.
7488 Fix a computation of the underline position.
7489 (w32_get_glyph_string_clip_rect): Minor cleanup.
7490 (x_fill_stretch_glyph_string): Remove an assertion.
7491 (x_produce_glyphs): Don't convert multibyte characters
7492 to unibyte characters in unibyte buffers.
7493 (cursor_in_mouse_face_p): New function.
7494 (x_draw_stretch_glyph_string): Use it to choose a different GC
7495 when drawing a cursor within highlighted text. Don't draw
7496 background again if it has already been drawn.
7497 (x_draw_glyph_string_box): Don't draw a full-width
7498 box just because the glyph row's full_width_p flag is set.
7499 (x_draw_glyphs): Fix computation of rightmost x for
7500 full-width rows.
7501 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
7502 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
7503 change bottom shadow accordingly. Some cleanup.
7504 (x_update_window_end): Handle overwritten mouse face
7505 also for tool bar windows.
7506 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
7507 DRAW is DRAW_IMAGE_RAISED.
7508 (clear_mouse_face): Return 1 if text with mouse face was
7509 actually redrawn. Make the function static.
7510 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
7511 optimize away highlighting if we pass over that same overlay again.
7512 (note_mouse_highlight): Call mouse_face_overlay_overlaps
7513 to detect a case where we have to highlight a different region
7514 despite not having left the currently highlighted region.
7515 Set mouse_face_overlay in the x_display_info. Avoid changing the
7516 mouse pointer shape when show_mouse_face has already done it, or
7517 there is no need. Handle mouse-face and help-echo in strings.
7518 (glyph_rect): New function.
7519 (w32_mouse_position): Use it to raise the threshold for mouse
7520 movement event generation.
7521 (w32_initialize_display_info): Initialize the x_display_info's
7522 mouse_face_overlay.
7523 (w32_set_vertical_scroll_bar): Don't clear a zero height
7524 or width area.
7525 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
7526 a widget to zero height.
7527
7528 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
7529 Protect unibyte strings created by replacing their multibyte
7530 equivalents in menu_items.
7531 (w32_menu_show): Don't overwrite an item's name with its key
7532 description in case the description is a multibyte string.
7533 (single_submenu): Some cleanup.
7534
7535 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
7536 (postprocess_image): New function.
7537 (lookup_image): Call it for all image types except PostScript.
7538 (x_kill_gs_process): Call postprocess_image.
7539 (tiff_error_handler, tiff_warning_handler): New functions.
7540 (tiff_load): Install them as handlers.
7541 (x_kill_gs_process): Recognize if someone has cleared the image
7542 cache under us.
7543 (valid_image_p): Protect better against invalid image
7544 specifications. Previous code could signal an error.
7545 (Fx_hide_tip, Fshow_tip): Doc fix.
7546 (Fv_max_tooltip_size): New variable.
7547 (syns_of_xfns): DEFVAR_LISP it.
7548 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
7549 window buffer to *tip* right after creating the frame. Set frame's
7550 window_width. Use a maximum tooltip size specified by
7551 Vx_max_tooltip_size, if that has valid contents.
7552 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
7553 Make sure the tooltip is completely visible.
7554 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
7555 (Fx_create_frame): Adjust the frame's height for presence
7556 of the tool bar before calling x_figure_window_size.
7557 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
7558 when the window gets smaller.
7559 (x_set_foreground_color): Set frame's cursor_pixel.
7560 (x_set_foreground_color, x_set_background_color): Cleaned up.
7561 (x_set_font): Handle case of x_new_fontset returning the same name
7562 as before, although there was a change in fontsets.
7563
7564 2001-10-21 Miles Bader <miles@gnu.org>
7565
7566 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
7567 (Flogxor): Add usage: string to doc string.
7568 * charset.c (Fstring): Likewise.
7569 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
7570 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
7571
7572 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7573
7574 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
7575
7576 * alloc.c: Reindent DEFUNs with doc: keywords.
7577
7578 * abbrev.c (Finsert_abbrev_table_description): Reindent.
7579
7580 * frame.c: Change doc-string comments to `new style' [w/`doc:'
7581 keyword].
7582
7583 See ChangeLog.9 for earlier changes.
7584
7585 ;; Local Variables:
7586 ;; coding: iso-2022-7bit
7587 ;; End:
7588
7589 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
7590 Copying and distribution of this file, with or without modification,
7591 are permitted provided the copyright notice and this notice are preserved.