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