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