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