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