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