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