* configure.in (HAVE_GTK_MULTIDISPLAY): Check if GTK can handle
[bpt/emacs.git] / src / ChangeLog
CommitLineData
810f2256
JD
12003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2
a32e9bfd
JD
3 * config.in: Regenerate.
4
810f2256
JD
5 * xfns.c (x_window_to_frame, x_any_window_to_frame)
6 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
7 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
8 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
9 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
10
11 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
12
13 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
14 (XTmouse_position, handle_one_xevent): Pass Display* to
15 x_window_to_scroll_bar.
16 (x_window_to_scroll_bar): Take a Display* argument.
17 Check that display for frame is equal to Display* argument.
18 (event_handler_gdk): current_dpyinfo removed. Get dpyinfo from
19 x_display_info_for_display instead. Use Display in xev instead
20 of GDK_DISPLAY.
21 (x_dispatch_event): Call x_display_info_for_display.
22 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
23 (x_connection_closed): Call xg_display_close for GTK.
24 (x_term_init): Call xg_display_open for additional displays.
25 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
26 for GTK.
27
28 * xmenu.c (single_menu_item, mouse_position_for_popup)
29 (x_activate_menubar): Formatting adjustments.
30
31 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
32 adjustments.
33
34 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
35 (xg_display_close, xg_create_default_cursor)
36 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
37 handling.
38 (xg_left_ptr_cursor): Removed.
39 (xg_set_cursor): cursor changed to GdkCursor*. Do not create
40 cursor here.
41 (xg_win_to_widget): Take Display* argument, call
42 gdk_xid_table_lookup_for_display.
43 (xg_create_frame_widgets, xg_get_file_name, create_menus)
44 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
45 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
46 in FRAME_X_DISPLAY_INFO.
47 (xg_get_scroll_id_for_window): Take Display* argument.
48 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
49 (xg_initialize): xg_left_ptr_cursor removed.
50
51 * gtkutil.h: xg_get_scroll_id_for_window, xg_win_to_widget takes
52 Display* argument also. Declare xg_display_open,
53 xg_display_close, xg_create_default_cursor.
54
0b03cc78
JD
552003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
56
57 * xterm.c (x_detect_focus_change): Do not change focus frame for
58 Enter/LeaveNotify if the current focus frame has explicit focus.
59
77e688fa
KS
602003-11-14 Kim F. Storm <storm@cua.dk>
61
62 * dispnew.c (update_text_area): Fix redisplay error when hscroll
63 is active and first glyph is only partially visible.
64
dd429b03
KH
652003-11-13 Kenichi Handa <handa@m17n.org>
66
67 * xdisp.c (select_frame_for_redisplay): New function.
68 (redisplay_internal): Record also selected_frame for
69 unwind_redisplay. Call select_frame_for_redisplay before
70 redrawing each frame.
71 (unwind_redisplay): Argument changed to a cons.
72
6d9266f4
LT
732003-11-12 Luc Teirlinck <teirllm@auburn.edu>
74
75 * fns.c (Fstring_to_multibyte): Doc fix.
76
80060eb3
KH
772003-11-11 Kenichi Handa <handa@m17n.org>
78
79 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
80
74305183
JD
812003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
82
83 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
84 program specified positions.
85
cfda993e
JD
862003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
87
88 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
89
df211069
KH
902003-11-08 Kenichi Handa <handa@m17n.org>
91
92 * Makefile.in (lisp): Add kannada.el.
93 (shortlisp): Likewise.
94
4307d534
KH
952003-11-07 Kenichi Handa <handa@m17n.org>
96
97 * coding.c (coding_allocate_composition_data): Reset
98 coding->composing to COMPOSITION_NO.
99 (coding_restore_composition): Detect invalid composition data.
100 Give Fstring and Fvector a Lispy integer, not C int.
101
d04103a1
JD
1022003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
103
104 * xterm.c (x_term_init): Fix formatting.
105
da18b5ac
JD
1062003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
107
108 * gtkutil.h: Declare xg_have_tear_offs, remove xg_keep_popup
109 and xg_did_tearoff.
110
111 * gtkutil.c: Remove variable xg_did_tearoff.
112 (xg_have_tear_offs): New function.
113 (tearoff_remove): Just decrease xg_detached_menus.
114 (tearoff_activate): Increase xg_detached_menus and call
115 tearoff_remove when tearoff is removed.
116 (xg_keep_popup): Removed function.
117 (create_menus): Give add_tearoff_p as argument to recursive
118 call to create_menus.
119 (xg_create_widget): Use variables instead of multiple
120 strcmp. Tell create_menus to create tear off only for
121 menu bar menus.
122 (xg_update_menubar): Change title for a detached menu also.
123 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
124 of deep_p.
125 (xg_initialize): Initialize xg_detached_menus, remove
126 initialization of xg_did_tearoff.
127
128 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
129 xg_have_tear_offs returns non-zero.
130 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
131 call to xg_keep_popup.
132
64d4923e
AC
1332003-11-01 Andrew Choi <akochoi@shaw.ca>
134
135 * macterm.c (XTread_socket): Handle menubar selection and grow
136 window only for mouseDown events.
137
6cc8bc07
JD
1382003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
139
140 * xterm.c (x_term_init): For GTK part, increase x_initialized
141 to check for more than one display. Use error instead of return 0.
142
043131c4
AC
1432003-10-31 Andrew Choi <akochoi@shaw.ca>
144
145 * unexmacosx.c (unrelocate): New function (contributed by Nozomu
146 Ando).
147 (copy_dysymtab): Call it.
148
bdda99a1
LT
1492003-10-31 Luc Teirlinck <teirllm@auburn.edu>
150
151 * eval.c (Fdefvaralias): Doc fix.
152
800f42ff 1532003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
154
155 * data.c (Fsetplist): Doc fix.
156
ef35b389
LK
1572003-10-14 Lute Kamstra <lute@gnu.org>
158
159 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 160
ef35b389 1612003-10-14 Kim F. Storm <storm@cua.dk>
07107abc
KS
162 * window.c (Fset_window_margins): Simplify arg checking.
163
f7005886
RS
1642003-10-13 Richard M. Stallman <rms@gnu.org>
165
166 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
167 (print_partial_compiled_pattern): Replace assert with a printout.
168 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
169
170 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
171
172 * window.c (Fset_window_margins): Allow only integers as args.
173 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
174 Doc fixes.
175
9c0c2af5
LK
1762003-10-13 Lute Kamstra <lute@gnu.org>
177
178 * window.c (Fset_window_fringes): Elaborate docstring.
179
3f080e4e
AC
1802003-10-12 Andrew Choi <akochoi@shaw.ca>
181
a4887377
AC
182 * macterm.c (XTread_socket): Call DragWindow only for mouseDown
183 events.
184
3f080e4e
AC
185 * s/darwin.h (GC_MARK_STACK): Define.
186
0aa513ed
JD
1872003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
188
189 * window.c (shrink_windows): New function.
190 (size_window): Call shrink_windows to calculate window sizes when
191 shrinking frame with more than one window.
192
6aa8858a
KS
1932003-10-12 Kim F. Storm <storm@cua.dk>
194
195 * xdisp.c (compute_fringe_widths): Doc fix.
196
c2164d91
KH
1972003-10-08 Kenichi Handa <handa@m17n.org>
198
199 * coding.c (Fcoding_system_p): Return t for auto-loading coding
200 system.
201
f82ac129
KH
2022003-10-07 Kenichi Handa <handa@m17n.org>
203
204 * coding.c (Qcoding_system_define_form): New variable.
205 (syms_of_coding): Intern and staticpro it.
206 (Fcheck_coding_system): Try to autoload the definition of
207 CODING-SYSTEM.
208
9296c947
LT
2092003-10-05 Luc Teirlinck <teirllm@auburn.edu>
210
211 * fns.c (Frequire): Doc fix.
212
c1f0671a
JD
2132003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
214
3d8c3826
JD
215 * xfns.c (Fx_send_client_event): New function as a base for
216 manipulating extended window manager hints.
6dc15d98 217 (Fx_send_client_event): Remove unused variable s.
3d8c3826 218
068ae0fd
JD
219 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
220 that function is removed.
221
222 * xterm.c (x_set_offset): Use move_offset_left/top instead of
223 x/y_pixels_outer_diff.
224 (x_check_expected_move): Calculate move_offset_left/top.
225
226 * xterm.h (struct x_output): New members: move_offset_top/left.
227
228 * frame.c (x_set_frame_parameters): x_fullscreen_move removed,
229 call x_set_offset directly.
230
231 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
232
96f09305
JD
233 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
234
235 * xterm.c (x_delete_display): Free font names and font_encoder
236 in dpyinfo->font_table.
237
238 * xfns.c (Fx_close_connection): Only call XFreeFont here. xfree
239 of font names moved to x_delete_display.
240
c1f0671a
JD
241 * xterm.h (struct x_display_info): New member, wm_type.
242 (struct x_output): New members, expected_top/left and
243 check_expected_move.
244
245 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
246 is received.
247 (handle_one_xevent): x_check_expected_move renamed from
248 x_check_fullscreen_move
249 (x_set_offset): Only add WM decoration sizes to modified_top/left
250 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
251 (x_check_expected_move): Renamed from x_check_fullscreen_move.
252 Removed fullscreen specific code. Use check_expected_move,
253 expected_left/top instead. Also, set wm_type.
254 (x_term_init): Initialize wm_type to unknown.
255
256 * frame.c (x_fullscreen_move): Remove addition of WM decoration
257 sizes to move_x/y.
258
be2fdba9
KH
2592003-10-03 Kenichi Handa <handa@m17n.org>
260
261 * macterm.c (x_load_font): Clear all members of FONTP before start
262 filling them.
263
2642003-10-02 Kenichi Handa <handa@m17n.org>
265
266 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
267 before calling find_ccl_program_func. Call find_ccl_program_func
268 only when fontp->font_encoder is not NULL.
269
270 * xterm.c (x_load_font): Clear all members of FONTP before start
271 filling them.
272
26a6e439
JPW
2732003-10-03 John Paul Wallington <jpw@gnu.org>
274
275 * keymap.c (map_keymap): Don't abort when binding is a vector.
276
0d4c2dc2
JR
2772003-10-02 Jason Rumney <jasonr@gnu.org>
278
a63cf46f
JR
279 * makefile.w32-in (emacs.o, coding.o, bytecode.o): Sync
280 dependancies with Makefile.in.
281 (alloca.o): Remove.
282
0d4c2dc2
JR
283 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
284 filling them.
285
286 * w32bdf.c (w32_load_bdf_font): Likewise.
287
ab8f7d5c
RS
2882003-09-30 Richard M. Stallman <rms@gnu.org>
289
290 * term.c (set_tty_color_mode): Calculate current_mode_spec
291 regardless of value of VAL.
292
293 * intervals.c (graft_intervals_into_buffer):
294 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
295 Handle over_used when splitting UNDER.
296
2972003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
298
299 * regex.c (regex_compile): Free the stack when returning from function.
300
3413f972
KH
3012003-09-28 Kenichi Handa <handa@m17n.org>
302
303 * fontset.c (Finternal_char_font): Change return value to
304 cons (FONT-NAME . GLYPH-CODE).
305
40409f05
EZ
3062003-09-28 Eli Zaretskii <eliz@elta.co.il>
307
308 * term.c (tty_setup_colors): Treat any negative argument as -1.
309
f98ddc99
KH
3102003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
311
312 * process.c (send_process): Delete unused temp_buf.
313
66c8f1a8
DL
3142003-09-26 Dave Love <fx@gnu.org>
315
316 * xterm.c (x_bitmap_mask): Declare.
317
ca716c26
DL
3182003-09-25 Dave Love <fx@gnu.org>
319
320 * Makefile.in (fns.o): Depend on md5.h.
321
fbe57420
KS
3222003-09-25 Kim F. Storm <storm@cua.dk>
323
324 * window.c (set_window_buffer): Fix redisplay problems when
325 switching between buffers with different display margin widths.
326
ef6ae4ff
KS
3272003-09-23 Kim F. Storm <storm@cua.dk>
328
329 * process.c (set_socket_option): Fix :bindtodevice option.
330 (Fset_network_process_option): Update process contact list when
331 setting option succeeds.
332 (Fmake_network_process): Doc fix.
333
68e03c1c
DL
3342003-09-23 Dave Love <fx@gnu.org>
335
7146d1c1 336 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 337
2f809aae
EZ
3382003-09-22 Eli Zaretskii <eliz@elta.co.il>
339
340 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
341 color mode is an integer number (it could be -1).
342
8fe7d8c8
RS
3432003-09-22 Richard M. Stallman <rms@gnu.org>
344
345 * intervals.c (graft_intervals_into_buffer): Correct the main loop
346 in the case where OVER is longer than UNDER.
347
2f71b5ea
MY
3482003-09-22 Masatake YAMATO <jet@gyve.org>
349
7146d1c1 350 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 351 `vertical_type'.
7146d1c1 352
0c4da023
KS
3532003-09-21 Kim F. Storm <storm@cua.dk>
354
355 * frame.c (Vdefault_frame_scroll_bars): New variable.
356 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
357 (syms_of_frame): DEFVAR_LISP it, and initialize according to
358 window-system default scroll bar position.
359
b648413b
KS
360 * window.c (Fwindow_scroll_bars): Doc fix.
361
8f5b9e34
JD
3622003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
363
364 * xterm.c (x_set_offset): Take window manager decorations
365 into account.
366
b0f23edf
RS
3672003-09-19 Richard M. Stallman <rms@gnu.org>
368
369 * atimer.h: Don't include lisp.h.
370 (P_): Define it here (as well as elsewhere).
371
372 * print.c (Fprin1_to_string): Move the PRINTPREPARE
373 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
374
375 * data.c (Fvariable_binding_locus): New function.
376 (syms_of_data): defsubr it.
377 (Flocal_variable_p): Delete duplicate call to indirect_variable.
378
e1283999
DL
3792003-09-18 Dave Love <fx@gnu.org>
380
ad5f3636
DL
381 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
382
e1283999
DL
383 * process.c (Fnetwork_interface_info): Fix type error.
384 (Fnetwork_interface_list): Doc fix.
385 (read_process_output, read_process_output): Delete unused var.
386
b8c7fd71
KS
3872003-09-17 Kim F. Storm <storm@cua.dk>
388
389 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
390 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
391 (Fnetwork_interface_info): Check that ifreq struct has required
392 fields before accessing them; this requires that those fields are
393 defined as macros, which may be too restrictive on some platforms,
394 but it is better than failing on other platforms.
395 (syms_of_process): Only defsubr above fns when included.
396
11e0a411
DL
3972003-09-17 Dave Love <fx@gnu.org>
398
399 * unexalpha.c: Don't include varargs.h.
400
e9c50801
KS
4012003-09-17 Kim F. Storm <storm@cua.dk>
402
403 * process.c (Fset_process_sentinel): Add sentinel to childp plist
404 for network process.
405 (socket_options): Add `:' prefix to option names. Add optbit field.
406 (set_socket_option): Remove no_error arg and special handling of s < 0.
407 Return 1<<optbit for known option, 0 for unknown.
408 Do not interpret 0 as false for boolean option (only nil).
409 Pass failed option and value to report_file_error.
7146d1c1 410 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
411 (Fset_network_process_option): New function to set just one option.
412 (Fmake_network_process): Allow :coding arg to be a cons.
413 Allow :server arg to be an integer specifying backlog size.
414 Remove :options arg, and allow options to be specified directly
415 as :KEY, VALUE pairs. Parse these options before binding socket.
416 As before, :reuseaddr t is default for a server process, but this
417 can now be disabled by specifying :reuseaddr nil.
418 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
419 (init_process): Availability of network options is now checked with
420 simpler syntax (featurep 'make-network-process :OPTION); use loop to
421 setup features.
422 (syms_of_process): Fix defsubr's for the replaced functions.
423
a0fc3644
DL
4242003-09-16 Dave Love <fx@gnu.org>
425
426 * Makefile.in: Depend on coding.h.
427
6df2a645
KS
4282003-09-14 Kim F. Storm <storm@cua.dk>
429
430 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
431 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
432 (syms_of_process): Defsubr them.
433
434 * config.in: Regenerate.
7146d1c1
SM
435
4362003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
437
438 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
439 * m/news-r6.h (XUNMARK): Remove.
440 * m/mips.h (XUNMARK): Remove.
441 * m/mips-siemens.h (XUNMARK): Remove.
442 * m/iris4d.h (XUNMARK): Remove.
443 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
444
0930c1a1
SM
4452003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
446
31003b9e
SM
447 * lisp.h (VALBITS): Don't remove 1 for the markbit.
448 (union Lisp_Object): Use unsigned int for types. Remove markbit.
449 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
450 (XTYPE): Use unsigned right-shift.
451 (XMARKBIT, XMARK, XUNMARK): Remove.
452
0930c1a1
SM
453 * alloc.c (init_intervals, init_symbol, init_marker):
454 Don't preallocate anything.
455 (Fgarbage_collect, mark_object): Ignore the markbit.
456
457 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
458
19bb0fcd 4592003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
460
461 * xdisp.c (pint2hrstr): New function.
462 (decode_mode_spec): Add `%i' and `%I' specs.
463 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
464 for `mode-line-format'.
465
03bb6a06
AS
4662003-09-07 Andreas Schwab <schwab@suse.de>
467
468 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
469 avoid warning.
470
2063d89c
EZ
4712003-09-07 Eli Zaretskii <eliz@elta.co.il>
472
0930c1a1 473 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 474
ed159bbf
KS
4752003-09-03 Kim F. Storm <storm@cua.dk>
476
477 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
478 change (superseded by 2002-08-30 change); the default blink-off
479 cursor is now again "no cursor".
480
fe64a394
JR
4812003-09-01 Jason Rumney <jasonr@gnu.org>
482
483 * makefile.w32-in (alloca.o): Remove.
484 (coding.o): Depend on intervals.h
485 (emacs.o, bytecode.o): Depend on window.h
486
c0175e24
DL
4872003-09-01 Dave Love <fx@gnu.org>
488
489 * Makefile.in (alloca.o): Remove commands.
490 (coding.o): Depend on intervals.h composite.h window.h.
491 (emacs.o): Depend on window.h keyboard.h keymap.h.
492 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
493 (bytecode.o): Depend on window.h.
494
a24d4cb2
JR
4952003-08-31 Jason Rumney <jasonr@gnu.org>
496
4bc2315e
JR
497 * w32term.c (w32_per_char_metric): Allow cached metrics to be
498 returned even when font_type is unknown.
499
a24d4cb2
JR
500 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
501
9d35adc7
JD
5022003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
503
504 * xterm.c (x_term_init): Initialize new fields in x_display_info.
505
506 * xterm.h (struct x_display_info): Add red/green/blue_bits and
507 *_offset.
508
509 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
510 calculate pixel value.
511
6f68b035
GM
5122003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
513
0930c1a1
SM
514 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
515 Don't tell redisplay display is accurate when it's actually been
516 paused for pending input.
6f68b035 517
4828b4d7
RS
5182003-08-29 Richard M. Stallman <rms@gnu.org>
519
520 * dispnew.c (adjust_glyph_matrix): Call window_box
521 whenever W is nonzero.
522
523 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
524 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 525 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
526 Use indirect_variable to trace thru variable aliases.
527
528 * config.in: Updated.
529
530 * callint.c (Fcall_interactively): Save and restore
531 Vthis_command, Vthis_original_command, real_this_command,
532 and current_kboard->Vlast_command.
533
534 * abbrev.c (Fexpand_abbrev): Insert before deleting.
535
e019878d
GM
5362003-08-29 Gerd Moellmann <gerd@gnu.org>
537
538 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
539
85478bc6
KH
5402003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
541
0930c1a1 542 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
543 (decode_coding_sjis_big5): Likewise.
544
07ce82d3
JR
5452003-08-27 Jason Rumney <jasonr@gnu.org>
546
d3703de3
JR
547 * w32.c (sys_pipe): Protect against file descriptor overflow.
548
ee4a01d1
JR
549 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
550
07ce82d3
JR
551 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
552
72d19c66
LK
5532003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
554
555 * xfns.c (Vgtk_version_string): New variable.
556 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
557
5459e42a
EZ
5582003-08-24 Eli Zaretskii <eliz@elta.co.il>
559
0930c1a1 560 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 561
5459e42a
EZ
562 * Makefile.in (msdos.o): Depend on intervals.h.
563
0930c1a1 564 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 565
231d6cfb
JD
5662003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
567
568 * xterm.h (struct x_display_info): New fields: client_leader_window
569 and Xatom_wm_client_leader.
570
571 * xterm.c (x_initialize): Move call to x_session_initialize to ...
572 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
573
574 * xsmfns.c (create_client_leader_window): New function.
575 (x_session_initialize): Call create_client_leader_window, take
576 dpyinfo as argument.
577
578 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
579
580 * Makefile.in (xsmfns.o): Add more depenedencies.
581
afa88464
DL
5822003-08-21 Dave Love <fx@gnu.org>
583
584 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
585
f730033e
KH
5862003-08-21 Kenichi Handa <handa@m17n.org>
587
588 * term.c (term_init): Fix previous change; don't rely on the
589 length of `buffer' if TERMINFO is defined.
590
6dca786c
DL
5912003-08-20 Dave Love <fx@gnu.org>
592
593 * atimer.h: Include lisp.h.
594
595 * lisp.h (EMACS_LISP_H): New.
596 (popup_activated_flag): Don't declare.
597
598 * alloca.c: Some merging with gnulib. Change logic and doc
599 concerning (x)malloc/(x)free -- no longer Emacs-specific.
600 [DO_BLOCK_INPUT]: Don't include lisp.h.
601 (xmalloc, xfree): Declare.
602 (malloc): Don't declare.
603
0930c1a1 604 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
605 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
606 atimer.h, blockinput.h.
607
608 * alloc.c (lisp_align_malloc): Change type of `aligned'.
609
610 * alloca.s: Removed.
611
3a06a6d9
RS
6122003-08-19 Gerd Moellmann <gerd@gnu.org>
613
614 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
615 use -lncurses.
616
617 * term.c (term_init): Use a buffer of size 4096 for tgetent since
618 FreeBSD returns something longer than 2044. Abort if the end of
619 the buffer is overwritten.
620
27eeee55
MB
6212003-08-19 Miles Bader <miles@gnu.org>
622
623 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
624
2f297815
GM
6252003-08-19 Gerd Moellmann <gerd@gnu.org>
626
f4446bbf
GM
627 * alloc.c (lisp_align_malloc): Check for memory full when
628 allocating ablocks, which also avoids freeing a pointer into an
629 ablocks structure.
630
631 * puresize.h (BASE_PURESIZE): Increase to 1100000.
632
0930c1a1 633 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 634
0e7d7aae
RS
6352003-08-16 Richard M. Stallman <rms@gnu.org>
636
637 * editfns.c (Fencode_time): Doc fix.
638
6392003-08-16 David Ponce <david@dponce.com>
640
641 * fileio.c (Fwrite_region): Fix conditional expression to issue
642 the right message.
643
6442003-08-16 Juri Linkov <juri@jurta.org> (tiny change)
645
646 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 647 Set default value to 1.
0e7d7aae 648
5d551295
KH
6492003-08-15 Kenichi Handa <handa@m17n.org>
650
651 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
652 what autoscaled.
653 (best_matching_font): Once we find a better scalable font, set
654 non_scalable_has_exact_height_p to 1.
655 (try_font_list): Call try_alternative_families to try any family
656 with the given registry.
657
1661e56b
AS
6582003-08-09 Andreas Schwab <schwab@suse.de>
659
f29181dc
AS
660 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
661
1661e56b
AS
662 * print.c (print_string): Fix printing of multibyte string with
663 nontrivial printcharfun.
664
465aa50a
JD
6652003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
666
667 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
668
669 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
670
e430e5ba
KH
6712003-07-31 Kenichi Handa <handa@m17n.org>
672
673 * process.c (read_process_output): Return the actually read bytes
674 instead of the result of decoding.
675
97e7188e
KH
6762003-07-31 Kenichi Handa <handa@m17n.org>
677
678 * xterm.h (struct x_bitmap_record): New member have_mask.
679
680 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
681 to 0.
682 (x_create_bitmap_from_file): Likewise.
683 (x_destroy_bitmap): Check have_mask member before freeing a mask.
684 (x_destroy_all_bitmaps): Likewise.
685 (x_create_bitmap_mask): Set have_mask member to 1.
686
b53094d6
RS
6872003-07-30 Richard M. Stallman <rms@gnu.org>
688
689 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
690
631f2082
JD
6912003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
692
693 * gtkutil.c (xg_mark_data): Update calls to mark_object.
694
c855f2ca
RS
6952003-07-29 Richard M. Stallman <rms@gnu.org>
696
697 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
698 Conditionalize XIM code on HAVE_XIM.
699
700 * fns.c (Fclear_string): New function.
701 (syms_of_fns): defsubr it.
702
17e6d491
KH
7032003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
704
0930c1a1 705 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 706
29ea8ae9
SM
7072003-07-22 Stefan Monnier <monnier@cs.yale.edu>
708
709 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
710
711 * buffer.c (delete_all_overlays): New function.
712 * buffer.h (delete_all_overlays): Declare.
713 * coding.c (run_pre_post_conversion_on_str):
714 * print.c (temp_output_buffer_setup):
715 * fileio.c (Finsert_file_contents):
716 * minibuf.c (get_minibuffer): Use it.
717
1dd7ccf2
AC
7182003-07-22 Andrew Choi <akochoi@shaw.ca>
719
720 * unexmacosx.c (unexec_regions_sort_compare):
721 (unexec_regions_merge): New functions. Sort and merge unexec
722 regions before dumping them.
723
f57bd967
DL
7242003-07-22 Dave Love <fx@gnu.org>
725
726 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
727
7cdee936
SM
7282003-07-21 Stefan Monnier <monnier@cs.yale.edu>
729
730 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
731 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
732 MARKBIT as the gcmarkbit for strings.
733
e50886d3
RS
7342003-07-21 Richard M. Stallman <rms@gnu.org>
735
736 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
737
29ea8ae9 738 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
739 (syms_of_fns): Corresponding change.
740
741 * alloc.c (syms_of_alloc): Doc fixes.
742
7432003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
744
745 * s/netbsd.h: Use -Wl syntax.
746
fdc39b59
RS
7472003-07-17 Richard M. Stallman <rms@gnu.org>
748
749 * xterm.c (xim_initialize): Redo 6/24 change.
750
9c53385f
SM
7512003-07-15 Stefan Monnier <monnier@cs.yale.edu>
752
753 * buffer.c (copy_overlays): Use EMACS_INT for positions.
754 (Fswitch_to_buffer): Don't signal an error when switching to the same
755 buffer in a dedicated window.
756
757 * alloc.c: Use bitmaps for cons, as was done for floats.
758 (init_float, init_cons): Let the normal code allocate the first block.
759 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
760 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
761 New macros.
762 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
763 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
764 (live_cons_p): Check the pointer is not past the `conses' array.
765 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
766 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
767 (survives_gc_p): Use CONS_MARKED_P and simplify.
768 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
769
dde13196
PE
7702003-07-13 Paul Eggert <eggert@twinsun.com>
771
772 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
773 puts it into BSS instead, at least on Solaris 8 and 9.
774 This is a valid optimization, and it may occur on other platforms,
775 so Emacs should not assume that initializing a static variable to
776 zero puts it into data.
777 * alloc.c (pure, staticvec):
778 Initialize these arrays to nonzero, so that they're not
779 put into BSS by that optimization.
780
a801bc34
SM
7812003-07-13 Stefan Monnier <monnier@cs.yale.edu>
782
783 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
784 (lisp_align_malloc): Use posix_memalign is available.
785 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
786 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
787 for consistency. Update users.
788
0c8b2afa
RS
7892003-07-13 Richard M. Stallman <rms@gnu.org>
790
791 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
792
668c2ab0
JB
7932003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
794
795 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
796 and use the Gtk+ function gtk_window_icon_from_file if available.
797
798 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
799 handle mask of bitmaps.
800 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
801 mask property.
802 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
803
804 * xterm.h (xg_set_icon): New function.
805
800bebe3
RS
8062003-07-12 Paul Eggert <eggert@twinsun.com>
807
808 * unexelf.c (unexec): Consider a section to precede the .bss
809 section if its addresses overlap that of .bss.
810
69e38995
RS
8112003-07-12 Richard M. Stallman <rms@gnu.org>
812
813 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
814
815 * config.in (HAVE_CRTIN): Add #undef.
816 (INLINE): Really inline only if OPTIMIZE is defined.
817
818 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
819 END_FILES_1.
820 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 821 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
822
823 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
824 (TERMINFO): Define.
825 (LIBS_TERMCAP): Define.
826 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
827
828 * xfns.c: Include libpng/png.h instead of png.h.
829
f1d0c238
AS
8302003-07-11 Andreas Schwab <schwab@suse.de>
831
832 * buffer.c (modify_overlay): Update prototype.
833 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
834 Likewise.
835
5f6bf5fe
SM
8362003-07-09 Stefan Monnier <monnier@cs.yale.edu>
837
838 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
839 (struct interval): Move to intervals.h.
840 (struct Lisp_Marker): Use EMACS_INT for position info.
841 (forward_point): Remove prototype of defunct function.
842 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
843 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
844 (syms_of_textprop, set_text_properties): Remove prototypes that are
845 already in intervals.h.
846
847 * intervals.h (struct interval): Move from lisp.h.
848 Use EMACS_INT for position and size info.
849
850 * coding.c: Include intervals.h for Fset_text_properties.
851
852 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
853 position and length information.
854
2765b457
SM
8552003-07-09 Stefan Monnier <monnier@cs.yale.edu>
856
857 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
858 position and length information.
859
2410d73a
SM
8602003-07-09 Stefan Monnier <monnier@cs.yale.edu>
861
862 Change overlays_after and overlays_before so the overlays themselves
863 are linked into lists, rather than using cons cells. After all each
864 Lisp_Misc already occupies 5 words, so we can add a `next' field to
865 Lisp_Overlay for free and save up one cons cell per overlay (not
866 to mention one indirection when traversing the list of overlay).
867
868 * lisp.h (struct Lisp_Overlay): New field `next'.
869
870 * buffer.h (struct buffer): Change overlays_before and overlays_after
871 from Lisp lists of overlays to pointers to overlays.
872
873 * buffer.c (overlay_strings, recenter_overlay_lists):
874 Fix typo in eassert in last commit.
875 (unchain_overlay): New function.
876 (add_overlay_mod_hooklist): Use AREF.
877 (copy_overlays, reset_buffer, overlays_at, overlays_in)
878 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
879 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
880 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
881 (report_overlay_modification, evaporate_overlays, init_buffer_once):
882 Adjust to new type of overlays_(before|after).
883
884 * alloc.c (mark_object): Mark the new `next' field of overlays.
885 (mark_buffer): Manually mark the overlays_(after|before) fields.
886
887 * coding.c (run_pre_post_conversion_on_str):
888 * editfns.c (overlays_around):
889 * xdisp.c (load_overlay_strings):
890 * fileio.c (Finsert_file_contents):
891 * indent.c (current_column):
892 * insdel.c (signal_before_change, signal_after_change):
893 * intervals.c (set_point_both):
894 * print.c (temp_output_buffer_setup): Use new type for
895 overlays_(before|after).
896
04812929
SM
8972003-07-08 Stefan Monnier <monnier@cs.yale.edu>
898
899 * buffer.c (report_overlay_modification): Don't run hooks while
900 traversing the list of overlays.
901
902 * buffer.h (struct buffer): Use an int for overlay_center.
903 (overlays_at, evaporate_overlays, recenter_overlay_lists)
904 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
905
906 * buffer.c (reset_buffer, recenter_overlay_lists)
907 (adjust_overlays_for_insert, adjust_overlays_for_delete)
908 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
909 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
910 (overlays_at, evaporate_overlays, recenter_overlay_lists)
911 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
912
913 * xdisp.c (fast_find_position): Remove unused var.
914
915 * cmds.c (Qexpand_abbrev): New sym.
916 (syms_of_cmds): Initialize it.
917 (internal_self_insert): Use it to call expand-abbrev.
918
2e7ecf15
KS
9192003-07-09 Kim F. Storm <storm@cua.dk>
920
921 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if emacs
922 was configured with --without-xim.
42f81f64 923 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 924
c6de56a0
RS
9252003-07-07 Richard M. Stallman <rms@gnu.org>
926
927 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
928
929 * alloc.c (Fgarbage_collect): Doc fix.
930
b93fb365
KH
9312003-07-07 Nozomu Ando <nand@mac.com> (tiny change)
932
933 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
934
bfe1a3f7
SM
9352003-07-06 Stefan Monnier <monnier@cs.yale.edu>
936
04812929
SM
937 * minibuf.c (read_minibuf): UNGCPRO before returning.
938 (Ftry_completion, Fall_completions): Doc fix.
939
bfe1a3f7
SM
940 * alloc.c (live_float_p): Check that p is not past the `floats' array,
941 now that `floats' is not the last element of the struct any more.
942
ee79d1aa
JR
9432003-07-06 Jason Rumney <jasonr@gnu.org>
944
945 * w32term.h (ClipboardSequence_Proc): New type.
946
947 * w32fns.c (clipboard_sequence_fn): New variable.
948 (globals_of_w32fns): Initialize it.
949
950 * w32select.c (last_clipboard_sequence_number): New variable.
951 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
952 number if possible.
953
49723c04
SM
9542003-07-06 Stefan Monnier <monnier@cs.yale.edu>
955
4698665f
SM
956 * m/amdx86-64.h (MARKBIT):
957 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
958 MARKBIT and ARRAY_MARK_FLAG any more.
959
960 * m/hp800.h (XSETMARKBIT):
961 * m/sr2k.h (XSETMARKBIT):
962 * lisp.h (XSETMARKBIT): Remove unused macro.
963
49723c04
SM
964 * lisp.h (mark_object): Change prototype.
965
966 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
967 (last_marked): Change accordingly.
968 (mark_interval, mark_maybe_object, mark_maybe_pointer)
969 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
970 (mark_buffer): Update calls to mark_object.
971
972 * bytecode.c (mark_byte_stack):
973 * fns.c (sweep_weak_table):
974 * keyboard.c (mark_kboards): Update calls to mark_object.
975
1d660eca
JR
9762003-07-06 Jason Rumney <jasonr@gnu.org>
977
978 * alloc.c (struct ablock): Only include padding when there is some.
979
618b5ae4
SM
9802003-07-04 Stefan Monnier <monnier@cs.yale.edu>
981
982 * alloc.c (ALIGN): Add casts to simplify usage.
983 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
984 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
985 (struct ablock, struct ablocks): New types.
986 (free_ablock): New global var.
987 (lisp_align_malloc, lisp_align_free): New functions.
988 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
989 (struct float_block): Reorder and add gcmarkbits.
990 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
991 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
992 (init_float, make_float): Use lisp_align_malloc.
993 (free_float, live_float_p): Don't use `type' any more.
994 (make_float): Use FLOAT_UNMARK to access to mark bit.
995 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
996 Use FLOAT_MARKED_P to access the mark bit.
997 (pure_alloc): Simplify use of ALIGN.
998 (mark_object): Use FLOAT_MARK to access the mark bit.
999 (gc_sweep): Use new macros to access the float's mark bit.
1000 (init_alloc_once): Init free_ablock.
1001
1002 * lisp.h (struct Lisp_Float): Remove unused field `type'.
1003
3ef06d12
SM
10042003-06-27 Stefan Monnier <monnier@cs.yale.edu>
1005
1006 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
1007 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
1008 (allocate_buffer): Move.
1009 (string_bytes): Don't mask markbit of `size_byte'.
1010 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
1011 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
1012 Use the `size' field of buffers (rather than the `name' field) for
1013 the mark bit, as is done for all other vectorlike objects.
1014 Use the new macros to access the mark bit of vectorlike objects.
1015
e81043aa
RS
10162003-06-26 Richard M. Stallman <rms@gnu.org>
1017
1018 * puresize.h (BASE_PURESIZE): Increment base size.
1019
1020 * xdisp.c (fast_find_position): Enable Gerd's new definition.
1021
1022 * xterm.c (xim_initialize): Undo previous change.
1023
2d0834cc
SM
10242003-06-26 Stefan Monnier <monnier@cs.yale.edu>
1025
1026 * alloc.c (survives_gc_p): Simplify.
1027
1028 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
1029
1030 * window.c (Fset_window_dedicated_p): Simplify.
1031 (display_buffer_1): Don't raise the win from which minibuf was entered.
1032 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
1033 (Fminibuffer_selected_window): Simplify.
1034
1035 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
1036
1037 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
1038 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
1039
1040 * insdel.c (check_markers, adjust_markers_for_delete)
1041 (adjust_markers_for_insert, adjust_markers_for_replace)
1042 (prepare_to_modify_buffer, RESTORE_VALUE):
1043 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
1044 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
1045 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
1046 * alloc.c (Fmake_marker, free_marker, gc_sweep):
1047 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
1048 * editfns.c (save_excursion_restore, transpose_markers):
1049 * window.c (delete_window):
1050 * xdisp.c (message_dolog): Update for new types.
1051
d54ae3d8
JD
10522003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1053
a5f696ac
JD
1054 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
1055 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 1056 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
1057
1058 * frame.c (make_frame): Initialize default_face_done_p.
1059
1060 * frame.h (struct frame): Add default_face_done_p.
1061
d54ae3d8
JD
1062 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
1063 will be defined.
1064
2336fe58
SM
10652003-06-25 Stefan Monnier <monnier@cs.yale.edu>
1066
1067 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
1068 Initialize the new field `gcmarkbit'.
1069 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
1070 (mark_interval_tree): Don't mark the tree separately from the nodes.
1071 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
1072 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
1073 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
1074
1075 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
1076 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
1077 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
1078 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
1079 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
1080
bcea31c2
DL
10812003-06-24 Dave Love <fx@gnu.org>
1082
1083 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
1084
1085 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
1086 from gnulib.
1087
2601f59e
RS
10882003-06-21 Richard M. Stallman <rms@gnu.org>
1089
1090 * fileio.c (Fwrite_region): Alternate messages
1091 for append and partial write.
1092
1093 * keyboard.c (read_key_sequence): When converting upcase fn key to
1094 downcase, update fkey and keytran so `backspace' gets translated.
1095
1096 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
1097
1098 * process.c (wait_reading_process_input): Don't signal SIGIO
1099 in batch mode.
1100
b5d2c621
KH
11012003-06-17 Kenichi Handa <handa@m17n.org>
1102
1103 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
1104 composite.h.
1105
1106 * xselect.c: Don't include charset.h, coding.h, composite.h.
1107 (Qforeign_selection): New variable.
1108 (syms_of_xselect): Intern and static it.
1109 (selection_data_to_lisp_data): Return a unibyte string made from
1110 data with `foreign-selection' text property.
1111
6793bc63
SM
11122003-06-15 Stefan Monnier <monnier@cs.yale.edu>
1113
1114 * termhooks.h (EVENT_INIT): New macro.
1115
1116 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
1117
1118 * alloc.c (mark_kboards): Move to keyboard.c.
1119
1120 * keyboard.c (record_asynch_buffer_change, read_avail_input):
1121 * xterm.c (x_dispatch_event):
1122 * xmenu.c (find_and_call_menu_selection):
1123 * xdisp.c (handle_tool_bar_click):
1124 * w32menu.c (menubar_selection_callback):
1125 * sysdep.c (kbd_input_ast, read_input_waiting):
1126 * msdos.c (dos_rawgetc):
1127 * macterm.c (mac_check_for_quit_char):
1128 * macmenu.c (menubar_selection_callback):
1129 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
1130 data to kbd_buffer_store_event.
1131
b3ea810c
KS
11322003-06-15 Kim F. Storm <storm@cua.dk>
1133
1134 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 1135 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 1136
b8f75eda
KG
11372003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
1138
1139 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
1140
ba92ce48
KH
11412003-06-12 Kenichi Handa <handa@m17n.org>
1142
1143 * fileio.c (Fwrite_region): Save and restore restriction.
1144
b80263be
DL
11452003-06-12 Dave Love <fx@gnu.org>
1146
1147 * alloca.c (alloca): Declare arg as size_t.
1148
6793bc63
SM
1149 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
1150 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 1151
b23c0a83
DL
11522003-06-11 Dave Love <fx@gnu.org>
1153
1154 * search.c (shrink_regexp_cache): Use xrealloc.
1155 (syms_of_search): Use xmalloc.
1156
700e47c2
KS
11572003-06-10 Kim F. Storm <storm@cua.dk>
1158
1159 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
1160 Adjust phys_cursor.x to be relative to window box, rather than
1161 text area before checking -- to ensure cursor is redrawn when
1162 exposing window.
1163 Note: This also fixes a similar (older) bug if display margins
1164 are present.
1165
f11aa0b2
KH
11662003-06-06 Kenichi Handa <handa@m17n.org>
1167
1168 * coding.c (encoding_buffer_size): If coding->type is
1169 coding_type_ccl, double magnification on CRLF encoding.
1170
3d143690
JR
11712003-06-06 Jason Rumney <jasonr@gnu.org>
1172
1173 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
1174 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
1175
1176 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
1177 Mac too.
1178
f16205ca
DL
11792003-06-05 Dave Love <fx@gnu.org>
1180
b23c0a83
DL
1181 * strftime.c: Merge changes from gnulib.
1182
f16205ca
DL
1183 * mktime.c (__mktime_internal): Merge changes from gnulib
1184 involving year 69 and dst2.
1185
1186 Changes to merge with gnulib version and be consistent with the
1187 autoconf test:
1188
6793bc63
SM
1189 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
1190 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
1191 [HAVE_LOCALE_H]: Include locale.h.
1192 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
1193
9b87a0bc
KS
11942003-06-05 Kim F. Storm <storm@cua.dk>
1195
1196 * window.c (coordinates_in_window): Convert X and Y to window
1197 relative coordinates inside mode-line and header-line parts.
1198 Convert X and Y to margin area relative coordinates inside left
1199 and right display margin parts.
1200
5a8a15ec
JR
12012003-06-05 Jason Rumney <jasonr@gnu.org>
1202
1203 * w32fns.c (add_system_logical_colors_to_map): New function.
1204 (Fx_open_connection): Use it.
1205
01ed8ff1
SM
12062003-06-04 Stefan Monnier <monnier@cs.yale.edu>
1207
1208 * process.c (allocate_pty): Revert part of the previous patch.
1209 (Faccept_process_output): Simplify.
1210
b427b65d
JR
12112003-06-04 Jason Rumney <jasonr@gnu.org>
1212
1213 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
1214
1215 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
1216 (lispy_mouse_wheel_names): Remove.
1217 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
1218 Always define drag_and_drop_syms.
1219
1220 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
1221 WHEEL_EVENT events.
1222
914a8c47
SM
12232003-06-03 Stefan Monnier <monnier@cs.yale.edu>
1224
01ed8ff1
SM
1225 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
1226
914a8c47
SM
1227 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
1228
adcb132c
JD
12292003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1230
1231 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
1232 menu item label.
1233
be781fa7
RS
12342003-06-03 Richard M. Stallman <rms@gnu.org>
1235
1236 * window.c (Fwindow_edges): Doc fix.
1237 (Fwindow_pixel_edges, Fwindow_inside_edges)
1238 (Fwindow_inside_pixel_edges): New functions.
1239 (syms_of_window): defsubr them.
1240
1241 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
1242 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
1243
914a8c47
SM
12442003-06-02 Stefan Monnier <monnier@cs.yale.edu>
1245
1246 * dispnew.c (Fsit_for): Don't lie about the number of args.
1247
5b07197a
DL
12482003-06-02 Dave Love <fx@gnu.org>
1249
1250 * callproc.c: Use HAVE_FCNTL_H, not USG5.
1251 (syms_of_callproc) <process-environment>: Doc fix.
1252
1253 * doc.c: Use HAVE_FCNTL_H, not USG5.
1254
1255 * xfaces.c (font_rescale_ratio): Fix for K&R.
1256
1257 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
1258
1259 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
1260
1261 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
1262
1263 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
1264 (xg_create_frame_widgets): Use ENCODE_UTF_8.
1265
1266 * xterm.c (Qutf_8): Moved to coding.c
1267
1268 * xmenu.c (ENCODE_MENU_STRING): New.
1269 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
1270 Use it.
1271
1272 * coding.h (ENCODE_UTF_8): New.
1273 (Qutf_8): Declare.
1274
1275 * coding.c (Qutf_8): New.
1276 (syms_of_coding): Intern it.
1277
1278 * fns.c: Doc fixes.
1279
7335b336
KH
12802003-06-02 Kenichi Handa <handa@m17n.org>
1281
1282 * buffer.c (Fset_buffer_multibyte): Fix previous change.
1283
914a8c47
SM
12842003-06-01 Stefan Monnier <monnier@cs.yale.edu>
1285
1286 * lread.c (openp): Make sure STR is a string.
1287
9862c135
JR
12882003-06-01 David Ponce <david@dponce.com>
1289
1290 * termhooks.h (enum event_kind): Added new WHEEL_EVENT event.
1291 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
1292
1293 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
1294 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
1295 (discard_mouse_events): Discard WHEEL_EVENT events too.
1296 (lispy_wheel_names, wheel_syms): New.
1297 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
1298 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX
1299 defined.
914a8c47 1300 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
1301
1302 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
1303 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
1304 WHEEL_EVENT events.
1305
f984e73e
JPW
13062003-05-31 John Paul Wallington <jpw@gnu.org>
1307
1308 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
1309 timer are in lisp/emacs-lisp.
1310
1efcd78f
KH
13112003-05-31 Kenichi Handa <handa@m17n.org>
1312
458c8af4
KH
1313 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
1314 region when a buffer is changed to unibyte.
1315
1efcd78f
KH
1316 * charset.h (VALID_LEADING_CODE_P): New macro.
1317 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
1318
778e2804
KH
1319 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
1320 is nonzero, accept multibyte form of eight-bit-control chars.
1321 (decode_composition_emacs_mule): Likewise.
1322 (decode_coding_emacs_mule): Likewise.
1323 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
1324 multibyte form of eight-bit-control chars.
1325
1326 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
1327 (Finsert_file_contents): If coding-system-for-read is bound to
1328 Qauto_save_coding, use the coding system emacs-mule with special
1329 setting for recovering a file.
1330 (choose_write_coding_system): On auto saving, use the coding
1331 system emacs-mule with special setting for auto saving.
1332 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
1333
034060e4
KH
13342003-05-30 Kenichi Handa <handa@m17n.org>
1335
1336 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
1337 properly before calling ccl_driver.
1338
778e2804 1339 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4
KH
1340
1341 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
1342 nonzero.
1343 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
1344 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
1345
595f5aa5
GM
13462003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
1347
1348 * xfaces.c (realize_default_face): Do not abort if lface is
1349 non-existent - reverts change from 2003-05-19.
1350
103e0180
KH
13512003-05-29 Kenichi Handa <handa@m17n.org>
1352
1353 * coding.c (decode_coding_iso2022): Pay attention to the byte
1354 sequence of CTEXT extended segment, and retain those bytes as is.
1355
13562003-05-28 Kenichi Handa <handa@m17n.org>
1357
1358 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
1359 of CODING_REPLACEMENT_CHARACTER.
1360 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
1361 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
1362 check this flag on encoding.
1363 (encode_coding_sjis_big5): Check
1364 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
1365 (Fset_terminal_coding_system_internal): Set
1366 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
1367 instead of setting CODING_FLAG_ISO_SAFE flag in
1368 terminal_coding.flags.
1369
1370 * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
1371 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
1372 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
1373
ff6a3bfb 13742003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 1375
ff6a3bfb
RS
1376 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
1377
1378 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 1379
1963c428
KS
13802003-05-28 Kim F. Storm <storm@cua.dk>
1381
1382 * xdisp.c (expose_window): Fix error in calculation of
1383 window relative coordinates of area to redisplay.
1384
2b5d4601
JR
13852003-05-27 Jason Rumney <jasonr@gnu.org>
1386
1387 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
1388
1c64a4a2
JB
13892003-05-27 David Ponce <david@dponce.com>
1390
1391 Handle W32 mouse wheel events as mouse click events, like in X.
1392
1393 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
1394 MOUSE_WHEEL_EVENT anymore.
1395
1396 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
1397 Scrolling down/up the mouse wheel is respectively mapped to mouse
1398 button 4 and 5.
1399 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
1400 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
1401 WM_MOUSEWHEEL events.
1402
2d031b89
AS
14032003-05-27 Andreas Schwab <schwab@suse.de>
1404
20464fdf
AS
1405 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
1406
2d031b89
AS
1407 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
1408 partially visible line.
1409
1410 * alloc.c (Fgarbage_collect): Fix last change.
1411
97bc76d4
JPW
14122003-05-26 John Paul Wallington <jpw@gnu.org>
1413
1414 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
1415
56613f06
SM
14162003-05-25 Stefan Monnier <monnier@cs.yale.edu>
1417
1418 * window.c (Fset_window_buffer): Add type of `keep_margins'.
1419 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
1420
1421 * window.h (window_box_text_cols): Declare.
1422
1423 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
1424 (x_draw_vertical_border): Remove unused var `f'.
1425
1426 * xfaces.c (build_scalable_font_name): Remove `unused var
1427 pixel_size' warning.
1428
1429 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
1430
1431 * unexelf.c (unexec): Remove `unused var n' warning.
1432
1433 * strftime.c (my_strftime_localtime_r): Remove `defined but
1434 unused' warning.
1435
1436 * process.c (allocate_pty): Remove `unused var stb' and
1437 `cp might be used uninitialized' warnings.
1438
1439 * dispnew.c (mode_line_string): Remove unused var `f'.
1440
1441 * coding.c (find_safe_codings): Remove unused var `i'.
1442
1443 * bytecode.c (Fbyte_code): Remove `unused val' warning.
1444
1445 * buffer.c (Fkill_buffer): Remove unused var `list'.
1446
1447 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
1448
93421a1f
JD
14492003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1450
1451 * frame.c (make_frame): Condition want_fullscreen with
1452 HAVE_WINDOW_SYSTEM.
1453
c4b8aebc
JB
14542003-05-25 Juanma Barranquero <lektu@terra.es>
1455
1456 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
1457 (Fwindow_scroll_bars): Fix typo in docstring.
1458
0416870b
KS
14592003-05-24 Kim F. Storm <storm@cua.dk>
1460
1461 The following changes serve several purposes:
1462
1463 1) Swap the position of fringes and display margins in windows, i.e.
1464 the fringes are now displayed between the margins and the text area
1465 (by default).
1466
1467 2) Allow fringe and scroll bar parameters to be set per-buffer and
1468 per-window (like display margins). Such settings are now stored
1469 in window configurations, preserved when frames are resized, and
9018a88e 1470 copied when windows are split vertically or horizontally.
0416870b
KS
1471 Several bugs related to display margins have been fixed.
1472
1473 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 1474
0416870b
KS
1475 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
1476 rather than FRAME_WIDTH (FRAME_FONT (f)).
1477
1478 5) Introduce a consistent naming of variables, members and macros
1479 depending on whether their value is measured in pixels or in
1480 canonical columns/lines. Pixel dimensions are named *_width and
1481 *_height, while canonical columns/lines are named *_cols and
1482 *_lines. Pixel positions are named *_x and *_y, while column/line
1483 positions are named *_col and *_line.
1484
1485 6) Consolidate more of the X, W32, and MAC gui code by moving
1486 common data into struct frame, and generalize it for the non-gui
1487 case by using suitable defaults.
1488
1489 7) Cleanup and consolidate the macros controlling frame and window
1490 layout into frame.h and window.h, and generalize the use of the
1491 various window_box_* functions (enhanced to handle the new fringe
1492 position and the per-window fringe and scroll bar settings).
1493
1494 * frame.h (struct frame): Rename members height to text_lines,
1495 width to text_cols, window_height to total_lines, window_width to
1496 total_cols, new_height to new_text_lines, new_width to
1497 new_text_cols. All uses changed.
1498 (struct frame): New members which consolidate common members of
1499 x_output, w32_output, and mac_output structures: left_pos,
1500 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
1501 win_gravity, size_hint_flags, border_width, internal_border_width,
1502 line_height, fringe_cols, left_fringe_width, right_fringe_width,
1503 want_fullscreen. All uses changed.
1504 (struct frame): New member column_width contaning the canonical
1505 column width, analogue to line_height. All uses changed.
1506 (struct frame): Rename members scroll_bar_pixel_width to
1507 config_scroll_bar_width, and scroll_bar_cols to
1508 config_scroll_bar_cols. All uses changed.
1509 (struct frame): New member scroll_bar_actual_width which
1510 consolidates and renames the vertical_scroll_bar_extra member of
1511 x_output, w32_output, and mac_output structures. All uses changed.
1512 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
1513 from x/w32/macterm.h files. All uses changed. Also change code
1514 which referred to f->output_data...->pixel_height.
1515 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
1516 from x/w32/macterm.h files. All uses changed. Also change code
1517 which referred to f->output_data...->pixel_width.
1518 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
1519 Also change code which referred to f->height.
1520 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
1521 Also change code which referred to f->width.
1522 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
1523 to update new_text_lines and new_text_cols members directly.
1524 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
1525 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
1526 (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
1527 FRAME_SCROLL_BAR_COLS. All uses changed.
1528 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
1529 Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
1530 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
1531 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
1532 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
1533 (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
1534 (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
1535 (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
1536 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
1537 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
1538 (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT. Unconditionally
1539 return line_height member (it now has proper value also for
1540 non-window frames).
1541 (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT. Unconditionally
1542 return new column_width member (rather than the default font width).
1543 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
1544 (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
1545 from x/w32/macterm.h files. Unconditionally return corresponding
1546 member of frame structure (they now have proper values also for
1547 non-window frames).
1548 (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
1549 Calculate return value from left and right widths.
1550 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
1551 internal_border_width member (has proper value for non-window frame).
1552 (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
1553 (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
1554 (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
1555 (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
1556 (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
1557 consolidated from xterm.h, macterm.h, and w32term.h.
1558 (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
1559 consolidated from xterm.h, macterm.h, and w32term.h.
1560 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
1561 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
1562 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
1563 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
1564 (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
1565 consolidated from x/mac/w32term.h.
1566 (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
1567 consolidated from x/mac/w32term.h.
1568 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
1569 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
1570 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
1571 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
1572
1573 * window.h (struct window): Rename members left to left_col,
1574 top to top_line, height to total_lines, width to total_cols,
1575 left_margin_width to left_margin_cols, right_margin_width to
1576 right_margin_cols, orig_height to orig_total_lines, orig_top to
1577 orig_top_line. All uses changed.
1578 (struct window): New members left_fringe_width, right_fringe_width,
1579 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
1580 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
1581 New macros primarily used to simplify other macros.
1582 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
1583 referred to XINT (w->width).
1584 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
1585 referred to XINT (w->height).
1586 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
1587 referred to XINT (w->width) * canon_x_unit.
1588 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
1589 referred to XINT (w->height) * canon_y_unit.
1590 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
1591 referred to XINT (w->left).
1592 (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE. Change
1593 all uses and code that referred to XINT (w->left) + XINT (w->width).
1594 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
1595 referred to XINT (w->top).
1596 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
1597 referred to XINT (w->top) + XINT (w->height).
1598 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
1599 referred to XINT (w->left) * canon_x_unit.
1600 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
1601 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
1602 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
1603 referred to XINT (w->top) * canon_y_unit.
1604 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
1605 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
1606 (WINDOW_LEFTMOST_P): New macro.
1607 (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
1608 All uses changed.
1609 (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
1610 All uses changed.
1611 (WINDOW_BOX_LEFT_EDGE_X): Renamed from
1612 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
1613 Do not exclude left fringe width.
1614 (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
1615 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
1616 Do not exclude fringe widths.
1617 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
1618 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
1619 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
1620 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
1621 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
1622 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
1623 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
1624 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
1625 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
1626 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
1627 New macros. Change code which referenced corresponding
1628 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
1629 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
1630 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
1631 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
1632 allow per-window scroll-bar settings.
1633 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
1634 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
1635 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
1636 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
1637 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
1638 FRAME_SCROLL_BAR_WIDTH.
1639 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 1640 (WINDOW_SCROLL_BAR_AREA_X): New macros.
0416870b
KS
1641 (WINDOW_HEADER_LINE_HEIGHT): Renamed from
1642 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
1643 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
1644 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
1645 (WINDOW_BOX_TEXT_HEIGHT): Renamed from
1646 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
1647 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
1648 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
1649 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
1650 (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
1651 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
1652 (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
1653 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
1654 (window_from_coordinates): Update prototype.
1655 (Fset_window_buffer): Update EXFUN.
1656 (set_window_buffer): Update prototype.
9018a88e 1657
0416870b 1658 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 1659 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
1660 changed.
1661 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
1662 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
1663 internal_border_width is now set to 0 for non-window frames.
1664 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
1665 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
1666 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
1667 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
1668 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
1669 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
1670 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
1671 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
1672 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 1673 Move to window.h and renamed [see window.h changes].
0416870b
KS
1674 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
1675 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
1676 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
1677 Use WINDOW_TOTAL_LINES.
0416870b
KS
1678 (frame_update_line_height): Remove prototype.
1679
1680 * buffer.h (struct buffer): Rename members measured in columns:
1681 left_margin_width to left_margin_cols, right_margin_width to
1682 right_margin_cols. All uses changed.
1683 New members left_fringe_width, right_fringe_width,
1684 fringes_outside_margins for per-buffer fringe settings.
1685 New members scroll_bar_width and vertical_scroll_bar_type for
1686 per-buffer scroll bar settings.
1687
1688 * buffer.c (init_buffer_once): Set buffer_defaults and
1689 buffer_local_flags for new buffer-local variables
1690 left_fringe_width, right_fringe_width, fringes_outside_margins,
1691 scroll_bar_width, and vertical_scroll_bar_type.
1692 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
1693 default-* variables for them.
1694
1695 * dispnew.c: Make (many) trivial substitutions for renamed and
1696 new macros in dispextern.h, frame.h and window.h.
1697 (mode_line_string): No need to adjust width for mode lines, as it
1698 is already adjusted by the caller.
1699 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 1700
0416870b
KS
1701 * frame.c: Make (many) trivial substitutions for renamed and
1702 new macros in dispextern.h, frame.h and window.h.
1703 (make_frame): Initialize left_fringe_width, right_fringe_width,
1704 fringe_cols, scroll_bar_actual_width, border_width,
1705 internal_border_width, column_width, line_height, x_pixels_diff,
1706 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
1707 members with values suitable for a non-window frames.
1708
1709 * gtkutil.c: Make (many) trivial substitutions for renamed and
1710 new macros in dispextern.h, frame.h and window.h.
9018a88e 1711
0416870b
KS
1712 * indent.c: Make (few) trivial substitutions for renamed and
1713 new macros in dispextern.h, frame.h and window.h.
1714
1715 * keyboard.c: Make (many) trivial substitutions for renamed and
1716 new macros in dispextern.h, frame.h and window.h.
1717 (make_lispy_event): Use window positions returned from
1718 window_from_coordinates when constructing the lisp event for
1719 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
1720 (incorrect) values locally.
1721 (make_lispy_movement): Use window positions returned from
1722 window_from_coordinates when constructing the lisp event, rather
1723 than calculating (incorrect) values locally.
1724
1725 * scroll.c: Make (some) trivial substitutions for renamed and
1726 new macros in dispextern.h, frame.h and window.h.
1727
1728 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
1729 scroll-bars.
1730
1731 * sysdep.c: Make (few) trivial substitutions for renamed and
1732 new macros in dispextern.h, frame.h and window.h.
1733
1734 * term.c: Make (some) trivial substitutions for renamed and
1735 new macros in dispextern.h, frame.h and window.h.
1736
1737 * widget.c: Make (few) trivial substitutions for renamed and
1738 new macros in dispextern.h, frame.h and window.h.
1739
1740 * window.c: Make (many) trivial substitutions for renamed and
1741 new macros in dispextern.h, frame.h and window.h.
1742 (make_window): Initialize new members
1743 left_margin_cols, right_margin_cols, left_fringe_width,
1744 right_fringe_width, fringes_outside_margins, scroll_bar_width,
1745 and vertical_scroll_bar_type.
1746 (coordinates_in_window): Adapted to new fringe/margin positions
9018a88e 1747 and per-window fringes and scroll-bars.
0416870b 1748 Fix bug related to incorrectly adjusting coordinates by
9018a88e 1749 frame's internal_border_width (the effect normally negible since
0416870b
KS
1750 the internal_border_width is typically 0 or 1 pixel, but very
1751 noticeable for an internal_border_width of e.g. 25 pixels).
1752 Upon successful return (other than ON_NOTHING), the coordinates
1753 are now always properly converted to window relative for the
1754 given display element.
1755 (window_from_coordinates): Add new parameters wx and wy to
1756 return the window relative x and y position in the returned
1757 window and part. A null arg means, don't return the position.
1758 All callers changed.
1759 (adjust_window_margins): New function which may reduce the width
1760 of the display margins if a window's text area is too small after
1761 resizing or splitting windows.
1762 (size_window): Fix bug that did not account for display margin
1763 widths when checking the minimum width of a window; use
1764 adjust_window_margins.
1765 (set_window_buffer): Call Fset_window_fringes and
1766 Fset_window_scroll_bars to setup per-window elements.
1767 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
1768 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
1769 (e.g. after splitting a window or resizing the frame).
1770 All callers changed.
0416870b
KS
1771 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
1772 (Fsplit_window): Duplicate original window's display margin,
1773 fringe, and scroll-bar settings; then call Fset_window_buffer with
1774 KEEP_MARGINS non-nil. This fixes a bug which caused a split
1775 window to only preserve the display margins in one of the windows.
c4b8aebc 1776 When splitting horizontally, call adjust_window_margins on both
0416870b
KS
1777 windows to ensure that the text area of the new windows is non too
1778 narrow. This fixes a bug which could cause emacs to trap if the
1779 width of the split window was less than the width of the display
1780 margins.
9018a88e
SM
1781 (window_box_text_cols): Renamed from window_internal_width.
1782 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
1783 Fix bug that caused vertical separator to be subtracted also on
1784 window frames. Fix another bug that did not reduce the returned
1785 value by the columns used for display margins.
1786 (window_scroll_line_based): Fix bug related to scrolling too much
1787 when display margins are present (implicitly fixed by the fix to
1788 window_box_text_cols).
1789 (scroll_left, scroll_right): Fix bug related to scrolling too far
1790 by default when display margins are present (implicitly fixed by
1791 the fix to window_box_text_cols).
1792 (struct saved_window): Rename members left to left_col, top to
1793 top_line, width to total_cols, height to total_lines, orig_top to
1794 orig_top_line, orig_height to orig_total_lines. All uses changed.
1795 New members left_margin_cols, right_margin_cols,
1796 left_fringe_width, right_fringe_width, fringes_outside_margins,
1797 scroll_bar_width, and vertical_scroll_bar_type for saving
1798 per-window display elements.
1799 (Fset_window_configuration): Restore display margins, fringes,
1800 and scroll bar settings. This fixes a bug which caused display
1801 margins to be discarded when saving and restoring a window
1802 configuration.
1803 (save_window_save): Save display margins, fringes, and scroll bar
1804 settings. This fixes a bug which caused display margins to be
1805 discarded when saving and restoring a window configuration.
1806 (Fset_window_margins): Do nothing if display margins are not
1807 really changed. Otherwise, call adjust_window_margins to ensure
1808 the text area doesn't get too narrow. This fixes a bug which
1809 could cause emacs to trap if setting display margins wider than
1810 the width of the window.
1811 (Fset_window_fringes): New defun to allow user to specifically set
1812 this window's fringe widths and position vs. display margins.
1813 (Fwindow_fringes): New defun to return window's actual fringe
1814 settings.
1815 (Fset_window_scroll_bars): New defun to allow user to specifically
1816 set this window's scroll bar width and position.
1817 (Fwindow_scroll_bars): New defun to return window's actual scroll
1818 bar settings.
1819 (compare_window_configurations): Also compare display margins,
1820 fringes, and scroll bar settings.
1821 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
1822
1823 * xdisp.c: Make (many) trivial substitutions for renamed and
1824 new macros in dispextern.h, frame.h and window.h.
1825 (window_box_width): Adapt to per-window fringes and scroll bars,
1826 and new fringe vs. display margin position. Note that returned
1827 value is no longer guaranteed to be a whole multiple of the frame
1828 column width, since per-window fringes may now be any width.
1829 (window_box_left_offset): New function like window_box_left, but
1830 value is relative to left border of window (rather than frame).
1831 (window_box_right_offset): New function like window_box_right,
1832 but value is relative to left border of window.
1833 (window_box_left): Adapt to per-window fringes and scroll bars,
1834 and new fringe vs. display margin position. Simplify by using
1835 WINDOW_LEFT_EDGE_X and window_box_left_offset.
1836 (window_box): Allow null args for unnecessary return values;
1837 change/simplify relevant callers.
1838 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
1839 and new fringe vs. display margin position.
1840 Use window_box_left_offset and window_box_right_offset
0416870b 1841 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
1842 scroll bars, and new fringe vs. display margin position.
1843 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
1844 (draw_fringe_bitmap): Rework to handle per-window fringes and new
1845 fringe vs. display margin position.
1846 (hscroll_window_tree): Use window_box_width instead of window_box.
1847 (redisplay_window): Adapt to per-window scroll bars.
1848 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
1849 bars, and new fringe vs. display margin position.
1850 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
0416870b
KS
1851 (x_clear_end_of_line): Adapt to per-window fringes and scroll
1852 bars, and new fringe vs. display margin position. Fix bug which
1853 increased total width of full_width rows by width of scroll bars
1854 although window's total width already includes that.
1855 (x_fix_overlapping_area): Simplify using window_box_left_offset.
1856 (expose_area): Simplify using window_box_left_offset.
1857 (x_draw_vertical_border): Handle per-window scroll bar settings,
1858 mixing windows with left, right and no scroll bars.
1859
1860 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
1861 where it's used in x_list_fonts (for clarity).
1862 (frame_update_line_height): Remove unused function; functionality
1863 is now done directly when setting the default font in x_set_font.
1864
1865 * xfns.c: Make (many) trivial substitutions for renamed and
1866 new macros in dispextern.h, frame.h and window.h.
1867
1868 * xmenu.c: Make (some) trivial substitutions for renamed and
1869 new macros in dispextern.h, frame.h and window.h.
1870
1871 * xterm.h (struct x_output): Move members left_pos, top_pos,
1872 border_width, pixel_height, pixel_width, line_height,
1873 internal_border_width, vertical_scroll_bar_extra,
1874 left_fringe_width, right_fringe_width, fringe_cols,
1875 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
1876 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
1877 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
1878 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
1879 (PIXEL_WIDTH, PIXEL_HEIGHT)
1880 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
1881 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
1882 frame.h and renamed [see frame.h changes].
1883 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
1884 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
1885 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
1886 and renamed [see frame.h changes].
9018a88e 1887
0416870b
KS
1888 * xterm.c: Make (several) trivial substitutions for renamed and
1889 new macros in dispextern.h, frame.h and window.h.
1890 (x_draw_glyph_string_box): Adapt to per-window fringes and
1891 scroll-bars.
1892 (scroll_run): Adapt to new fringe position.
1893 (glyph_rect): Use window coordinates returned from
1894 window_from_coordinates rather than frame_to_window_pixel_xy.
1895 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
1896 scroll-bars.
1897 (handle_one_xevent): Simplify a USE_GTK conditional.
1898 (x_clip_to_row): Remove superfluous whole_line_p arg and code
1899 (fringes are now inside margins, i.e. always in the clipping area).
1900 All callers changed.
1901 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
1902 directly, then call compute_fringe_widths. Don't call
1903 frame_update_line_height.
1904
1905 * w32term.h (struct w32_output): Move members left_pos, top_pos,
1906 border_width, pixel_height, pixel_width, line_height,
1907 internal_border_width, vertical_scroll_bar_extra,
1908 left_fringe_width, right_fringe_width, fringe_cols,
1909 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
1910 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
1911 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
1912 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
1913 (PIXEL_WIDTH, PIXEL_HEIGHT)
1914 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
1915 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
1916 frame.h and renamed [see frame.h changes].
1917 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
1918 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
1919 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
1920 and renamed [see frame.h changes].
9018a88e 1921
0416870b
KS
1922 * w32term.c: Make (several) trivial substitutions for renamed and
1923 new macros in dispextern.h, frame.h and window.h.
1924 (x_draw_glyph_string_box): Adapt to per-window fringes and
1925 scroll-bars.
1926 (glyph_rect): Use window coordinates returned from
1927 window_from_coordinates rather than frame_to_window_pixel_xy.
1928 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
1929 scroll-bars.
1930 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
1931 (fringes are now inside margins, i.e. always in the clipping area).
1932 All callers changed.
1933 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
1934 directly, then call compute_fringe_widths. Don't call
1935 frame_update_line_height.
1936
1937 * w32console.c: Make (few) trivial substitutions for renamed and
1938 new macros in dispextern.h, frame.h and window.h.
1939
1940 * w32fns.c: Make (many) trivial substitutions for renamed and
1941 new macros in dispextern.h, frame.h and window.h.
1942
1943 * w32menu.c: Make (few) trivial substitutions for renamed and
1944 new macros in dispextern.h, frame.h and window.h.
1945
1946 * macterm.h (struct mac_output): Move members left_pos, top_pos,
1947 border_width, pixel_height, pixel_width, line_height,
1948 internal_border_width, vertical_scroll_bar_extra,
1949 left_fringe_width, right_fringe_width, fringe_cols,
1950 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
1951 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
1952 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
1953 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
1954 (PIXEL_WIDTH, PIXEL_HEIGHT)
1955 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
1956 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
1957 frame.h and renamed [see frame.h changes].
1958 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
1959 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
1960 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
1961 and renamed [see frame.h changes].
9018a88e 1962
0416870b
KS
1963 * macterm.c: Make (several) trivial substitutions for renamed and
1964 new macros in dispextern.h, frame.h and window.h.
1965 (x_draw_glyph_string_box): Adapt to per-window fringes and
1966 scroll-bars.
1967 (glyph_rect): Use window coordinates returned from
1968 window_from_coordinates rather than frame_to_window_pixel_xy.
1969 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
1970 scroll-bars.
1971 (x_clip_to_row): Remove superfluous whole_line_p arg and code
1972 (fringes are now inside margins, i.e. always in the clipping area).
1973 All callers changed.
1974 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
1975 directly, then call compute_fringe_widths. Don't call
1976 frame_update_line_height.
1977
1978 * macfns.c: Make (several) trivial substitutions for renamed and
1979 new macros in dispextern.h, frame.h and window.h.
9018a88e 1980 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
1981
1982 * macmenu.c: Make (few) trivial substitutions for renamed and
1983 new macros in dispextern.h, frame.h and window.h.
1984
1985 * msdos.h (struct x_output): Remove members left_pos, top_pos,
1986 and line_height, and use corresponding new members in struct
1987 frame. All uses changed.
1988 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
1989 superseeded by corresponding macros in frame.h.
1990
1991 * msdos.c: Make (several) trivial substitutions for renamed and
1992 new macros in dispextern.h, frame.h and window.h.
1993 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 1994 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
1995 (internal_terminal_init): No need to initialize line_height here;
1996 it now defaults to 1.
1997
9018a88e
SM
19982003-05-24 Stefan Monnier <monnier@cs.yale.edu>
1999
2000 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
2001 dropping `down' events.
2002
016bd3c0
AS
20032003-05-24 Andreas Schwab <schwab@suse.de>
2004
2005 * coding.c (find_safe_codings): Fix last change.
2006
4dacadcc
TTN
20072003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
2008
2009 * xfns.c (x_window): Fix typo from 2003-05-21 change.
2010
319830ce
SM
20112003-05-23 Stefan Monnier <monnier@cs.yale.edu>
2012
9018a88e
SM
2013 * xdisp.c (display_mode_element): Increase max depth.
2014 Simplify the error handling code. Use a different error string
2015 for the case where we hit the depth limit.
2016
319830ce
SM
2017 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
2018
2019 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
2020
20212003-05-21 Stefan Monnier <monnier@cs.yale.edu>
2022
2023 * intervals.c (get_local_map): Don't get char-property of previous
2024 point any more: get_pos_property already does it and better.
2025
c67de8ba
DL
20262003-05-21 Dave Love <fx@gnu.org>
2027
2028 [Merged from unicode branch.]
2029
2030 * xfns.c (x_window, x_window): Use use_xim.
2031
2032 * xterm.c (use_xim): Initialize.
2033 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
2034 (x_term_init): Maybe set use_xim.
2035
2036 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
2037
edd3ff1d
JR
20382003-05-21 Jason Rumney <jasonr@gnu.org>
2039
2040 * unexw32.c (_start): Remove _fmode initialization.
2041
2042 * emacs.c (main) [WINDOWSNT]: Move it here.
2043
463f55ee
DL
20442003-05-20 Dave Love <fx@gnu.org>
2045
2046 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
2047
af253914
RS
20482003-05-19 Richard M. Stallman <rms@gnu.org>
2049
2050 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
2051 as value for QCfont attribute.
2052 (realize_default_face): lface should already exist; crash if not.
2053 Specify 0 for FORCE_P when calling set_lface_from_font_name.
2054
2055 * frame.c (Fignore_event): Doc fix.
2056
1d211019
KH
20572003-05-19 Kenichi Handa <handa@m17n.org>
2058
2059 * coding.c (decode_coding_string): Handle post-read-conversion
2060 even if the coding doesn't require decoding.
2061
4dd68254
RS
20622003-05-18 Richard M. Stallman <rms@gnu.org>
2063
2064 * callproc.c (Fcall_process_region): Doc fix.
2065
14d87dc9
SM
20662003-05-17 Stefan Monnier <monnier@cs.yale.edu>
2067
deca5d96
SM
2068 * lread.c (Fload): Print a message if package is obsolete.
2069
14d87dc9
SM
2070 * window.c (Fselect_window): Add optional `norecord' arg.
2071 (select_window_1): Fold into Fselect_window.
2072 (select_window_norecord): New function.
2073 (temp_output_buffer_show): Use it. Preserve current buffer.
2074
2075 * window.h (Fselect_window): Update declaration.
2076
2077 * window.c (delete_window, Fother_window, Fset_window_configuration):
2078 * minibuf.c (read_minibuf):
2079 * macterm.c (x_new_focus_frame):
2080 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
2081 * callint.c (Fcall_interactively):
2082 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
2083
2084 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
2085
78f52183
DK
20862003-05-17 David Kastrup <dak@gnu.org>
2087
2088 * process.c (read_process_output): Back out change from 2003-03-09.
2089
14d87dc9
SM
20902003-05-17 Stefan Monnier <monnier@cs.yale.edu>
2091
2092 * editfns.c (get_pos_property): Don't assume that `object' = nil.
2093
2094 * textprop.c (text_property_stickiness): New arg `buffer'.
2095
2096 * intervals.h (text_property_stickiness): New arg `buffer'.
2097 (get_pos_property): Declare.
2098
2099 * intervals.c (get_local_map): Use get_pos_property, to obey
2100 stickiness and empty overlays.
2101 (create_root_interval, graft_intervals_into_buffer): Use BEG.
2102 (merge_properties, intervals_equal, merge_properties_sticky):
2103 Use XCAR, XCDR.
2104 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
2105
1fd1cc2f
RS
21062003-05-17 Richard M. Stallman <rms@gnu.org>
2107
4f9f637a
RS
2108 * minibuf.c (read_minibuf): If buffer is empty, record the default
2109 in the history.
2110 (Fminibuffer_complete_word): When deleting the overlap, take account
2111 of its real position.
2112
2113 * fns.c (map_char_table): Fix previous change.
2114
1fd1cc2f
RS
2115 * syntax.c (find_defun_start):
2116 When open_paren_in_column_0_is_defun_start,
2117 return beginning of buffer.
2118
2119 * lisp.h (map_char_table): Declare added arg.
2120
2121 * fns.c (map_char_table): New arg TABLE gets the master table.
2122 All calls changed.
2123 Process default and inheritance, resorting to Faref if necessary.
2124
2125 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
2126 (Faccessible_keymaps): Pass new arg to map_char_table.
2127
2128 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
2129
2130 * casetab.c (set_case_table): Pass new arg to map_char_table.
2131
2132 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
2133
2134 * lisp.h (specbinding_func): New typedef.
2135 (struct specbinding): Use specbinding_func, to put the `volatile'
2136 in the right place.
2137
2138 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
2139 to avoid GCC warning.
14d87dc9 2140
b4bd27c5
RS
21412003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org> (tiny change)
2142
14d87dc9 2143 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 2144
35fb885d
SM
21452003-05-15 Stefan Monnier <monnier@cs.yale.edu>
2146
2147 * keyboard.c (apply_modifiers): Don't fill the other cache.
2148
9a274fbd
SM
21492003-05-14 Stefan Monnier <monnier@cs.yale.edu>
2150
c55b5fad
SM
2151 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
2152
9a274fbd
SM
2153 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
2154 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
2155 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
2156 (Fset_window_configuration, Fcurrent_window_configuration)
2157 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
2158 (Fpos_visible_in_window_p, mark_window_cursors_off)
2159 (window_internal_height, window_internal_width, Frecenter)
2160 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
2161 (replace_buffer_in_all_windows, init_window_once, init_window)
2162 (syms_of_window, keys_of_window): Move from lisp.h.
2163 * lisp.h: Move window.c declarations to window.h.
2164
2165 * bytecode.c: Include window.h.
2166 * emacs.c: Include window.h.
2167
14d87dc9 2168 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
2169 (keyremap): Add `parent' field.
2170 (keyremap_step): Use it. Remove `parent' argument.
2171 (read_key_sequence): Setup and use the new `parent' field.
2172
fd93e331
SM
21732003-05-11 Stefan Monnier <monnier@cs.yale.edu>
2174
2175 * keyboard.c (adjust_point_for_property): Ensure termination.
2176
1c4001a1
SM
21772003-05-10 Stefan Monnier <monnier@cs.yale.edu>
2178
2179 * keyboard.c (follow_key): Remove dead variable `did_meta'.
2180 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
2181 duplicated handling of function-key-map and key-translation-map
2182 in read_key_sequence.
2183 (read_key_sequence): Use them.
2184
2185 * keyboard.c (adjust_point_for_property): Try harder to move point
2186 to the non-sticky end of an invisible property.
2187
2188 * xdisp.c (single_display_prop_intangible_p): Make `space' display
2189 property intangible as well.
2190
780379b1
AS
21912003-05-10 Andreas Schwab <schwab@suse.de>
2192
2193 * xmenu.c (single_menu_item): Change last parameter to void* to
2194 avoid warning.
2195
ca2de342
RS
21962003-05-09 Richard M. Stallman <rms@gnu.org>
2197
2198 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
2199 Bind Qinhibit_modification_hooks to t so there will be no GC.
2200 Rename local `tem' to `save_deactivate_mark'.
2201
2202 * eval.c (specpdl_ptr): Declare volatile.
2203 (unbind_to): Copy the whole binding and decrement specpdl_ptr
2204 before doing the work of unbinding it.
2205
2206 * lisp.h (struct specbinding): Declare elements volatile.
2207 (specpdl_ptr): Declare volatile.
2208
2209 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
2210
2211 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
2212 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
2213
347003be
DL
22142003-05-08 Dave Love <fx@gnu.org>
2215
2216 * coding.c (Vlast_coding_system_used): Doc fix.
2217
5adcec23
JR
22182003-05-07 Jason Rumney <jasonr@gnu.org>
2219
2220 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
2221 when system does not support them.
2222
5fe3b8a4
SM
22232003-05-05 Stefan Monnier <monnier@cs.yale.edu>
2224
2225 * fileio.c (Qwrite_region_annotate_functions): New var.
2226 (build_annotations): Use it to process the global part of the hook.
2227 (syms_of_fileio): Init and staticpro it.
2228
2229 * keyboard.c (safe_run_hooks_error): Display a message instead of
2230 silently ignoring the error.
2231
22322003-05-03 Stefan Monnier <monnier@cs.yale.edu>
2233
2234 * keyboard.c (input_available_signal): Mark static.
2235 (menu_bar_items): Use map_keymap.
2236 (menu_bar_one_keymap): Remove.
2237 (menu_bar_item): Adjust arglist (for use in map_keymap).
2238 Properly hide a second binding when not both are keymaps.
2239
2240 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
2241 (single_keymap_panes): Use it and map_keymap.
2242 (single_menu_item): Use skp as well.
2243
2244 * keymap.h (map_keymap_function_t): New type.
2245 (map_keymap): Declare.
2246
2247 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
2248 (map_keymap_call, Fmap_keymap): New functions.
2249 (syms_of_keymap): Defsubr map-keymap.
2250
4b1b4443
JD
22512003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2252
2253 * gtkutil.c (create_dialog, make_widget_for_menu_item)
2254 (make_menu_item, create_menus, xg_update_menu_item): Don't call
2255 ..._with_mnemonic functions for menu items.
2256
1f816871
KH
22572003-05-01 Kenichi Handa <handa@m17n.org>
2258
2259 * coding.c (coding_system_accept_latin_extra_p): Delete this
2260 function.
2261 (find_safe_codings): Pay attention to
2262 the property tranlsation-table-for-encode of each codings.
2263 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
2264
5ed6ba5b
SM
22652003-05-01 Stefan Monnier <monnier@cs.yale.edu>
2266
2267 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
2268
32c06229
SM
22692003-04-30 Stefan Monnier <monnier@cs.yale.edu>
2270
2271 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
2272
2273 * lisp.h (CHECK): Wrap args in parenthesis.
2274 (specbind): Fix doc: symbol = Qnil is not supported any more.
2275
2276 * bytecode.c (Fbyte_code) <unwind-protect>:
2277 Use Fprogn rather than 0 and Qnil.
2278
2279 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
2280 `double', and `triple' modifiers as well.
2281
ed3c3314
RS
22822003-04-30 Richard M. Stallman <rms@gnu.org>
2283
2284 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
2285
2286 * alloc.c (abort_on_gc): New variable.
2287 (Fgarbage_collect): Abort if abort_on_gc is set.
2288
2289 * lisp.h (abort_on_gc): Add decl.
2290
2291 * eval.c (Fsignal): Clear abort_on_gc.
2292
2293 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 2294 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
2295
2296 * xdisp.c (move_it_vertically_backward): Do the final big else
2297 even if nlines is 0.
2298
2299 * xdisp.c (redisplay_internal): Finish the per-frame loop
2300 even if redisplay is suspended by input.
2301
0b325c12
AC
23022003-04-24 Andrew Choi <akochoi@shaw.ca>
2303
2304 * macterm.c (x_list_fonts): Return all fonts that match if
2305 maxnames = -1.
2306
4e837cd0
KH
23072003-04-25 Kenichi Handa <handa@m17n.org>
2308
2309 * syntax.c (skip_chars): Fix previous change.
2310
9af7511a
KH
23112003-04-24 Kenichi Handa <handa@m17n.org>
2312
2313 * syntax.c (skip_chars): Make the code faster by using the common
2314 technique of *p, *stop, and *endp.
2315
e3b2c21f
JD
23162003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2317
2318 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 2319 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
2320 being updated.
2321
32c06229
SM
23222003-04-19 Stefan Monnier <monnier@cs.yale.edu>
2323
2324 * eval.c (Fapply): Undo last change and add a comment about why.
2325
c6464167
MB
23262003-04-18 Miles Bader <miles@gnu.org>
2327
2328 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
2329 pickier PARSE_MULTIBYTE_SEQ.
2330
e509f168
SM
23312003-04-17 Stefan Monnier <monnier@cs.yale.edu>
2332
2333 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
2334 Use XCDR, XCAR, CONSP.
2335 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
2336 (Fapply): Remove unnecessary GCPRO.
2337
2338 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
2339
2340 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
2341
2342 * buffer.h: Don't hardcode BEG==1.
2343
2344 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
2345
5ceea398
RS
23462003-04-16 Richard M. Stallman <rms@gnu.org>
2347
2348 * xdisp.c (try_window, try_window_reusing_current_matrix):
2349 When at end of window, set window_end_pos to Z-ZV.
2350
2351 * buffer.c (Foverlay_recenter): Doc fix.
2352
e509f168
SM
23532003-04-14 Stefan Monnier <monnier@cs.yale.edu>
2354
2355 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
2356
d243e605
AC
23572003-04-14 Andrew Choi <akochoi@shaw.ca>
2358
2359 * macterm.c (mac_check_for_quit_char): Don't check more often than
2360 once a second.
2361
6901b111
SM
23622003-04-11 Stefan Monnier <monnier@cs.yale.edu>
2363
2364 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
2365 specially, so that they can't hide an implicit switch-frame event.
2366 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
2367 (head_table): Use switch-frame as event_kind for select-window.
2368 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
2369
2370 * editfns.c (Fformat): Lisp_Object/int mixup.
2371 (format2): Remove unused var numargs.
2372
e301806f 23732003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 2374
6901b111 2375 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
2376 (Qafter_insert_file_set_coding): New variable.
2377 (syms_of_fileio): Initialize and staticpro it. Delete declaration
2378 for after-insert-file-adjust-coding-function.
2379 (Finsert_file_contents): Call Qafter_insert_file_set_coding
2380 instead of Vafter_insert_file_adjust_coding_function.
2381
38914424
KH
23822003-04-11 Kenichi Handa <handa@m17n.org>
2383
2384 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
2385
2386 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
2387 string. Callers changed.
2388
23892003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 2390
6901b111 2391 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 2392 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
2393 (Finsert_file_contents):
2394 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
2395 decode-format.
2396
f979dc05
JD
23972003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2398
2399 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
2400 get GtkAdjustment as widget now is a GtkRange.
2401
2402 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
2403 GtkRange to avoid memory leak.
2404
f8c6b4c2 24052003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 2406
50ebc53d
KH
2407 * xfaces.c (Vface_font_rescale_alist): New variable.
2408 (struct font_name): New member rescale_ratio.
2409 (font_rescale_ratio): New function.
6901b111 2410 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
2411 (better_font_p): On comparing point sized, pay attention to
2412 recale_ratio member of fonts.
2413 (build_scalable_font_name): Reflect font->rescale_ratio in the
2414 font name.
6901b111 2415 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 2416
cb98871c
KH
2417 * lread.c (read1): Before calling index, check if the 2nd
2418 arguemnt is in ASCII range.
2419
4773b8ca
RS
24202003-04-08 Richard M. Stallman <rms@gnu.org>
2421
b0ada147
RS
2422 * fileio.c (Ffile_symlink_p): Doc fix.
2423
2424 * editfns.c (Fformat): Translate positions of text properties
2425 in the format string to apply them to the result.
2426
4773b8ca
RS
2427 * fileio.c (Finsert_file_contents): Doc fix.
2428 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
2429
24302003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 2431
4773b8ca
RS
2432 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
2433
e8f25745 24342003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 2435
e8f25745
ST
2436 * mac.c (init_mac_osx_environment): Switch libexec and bin so
2437 that self-contained application finds libexec files.
2438
f8c6b4c2 24392003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 2440
6901b111
SM
2441 * coding.c (code_convert_region_unwind):
2442 Set Vlast_coding_system_used to the argument.
2310d84c
KH
2443 (code_convert_region): If post-read-conversion function changed
2444 the value of last-coding-sytem, keep the new value in
2445 coding->symbol so that it won't be overridden.
2446 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
2447 (coding_system_accept_latin_extra_p): New function.
2448 (find_safe_codings): Pay attention to characters registered in
2449 latin-extra-code-table.
2310d84c 2450
39c9a034
TTN
24512003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
2452
2453 * Makefile.in (md5.o): Add missing dependency info.
2454
eb67c5d6
RS
24552003-04-06 Richard M. Stallman <rms@gnu.org>
2456
2457 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
2458
2459 * marker.c (verify_bytepos): New function.
2460
2461 * intervals.c (set_intervals_multibyte_1): When becoming
2462 multibyte, adjust right and left child sizes to a whole set of
2463 characters. If an interval gets zero total-length, delete it.
2464 If an interval consists of just its children, delete one of them.
2465
2466 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
2467 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 2468
eb67c5d6
RS
2469 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
2470 All calls deleted.
2471 (lisp_malloc): Do the work here directly.
2472
b1f81fc5
JB
24732003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
2474
2475 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
2476 char tables.
2477
24782003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
2479
2480 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
2481 destructively change "%S" to "%s".
2482
774666fb
MB
24832003-04-03 Miles Bader <miles@gnu.org>
2484
2485 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
2486 always set.
2487
19c37f01
DL
24882003-04-01 Dave Love <fx@gnu.org>
2489
2490 * xfns.c (xpm_lookup_color): Grok "opaque".
2491
2f4b24c3
AC
24922003-03-31 Andrew Choi <akochoi@shaw.ca>
2493
2494 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
2495 parent window ID.
2496
2497 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
2498
2499 * macterm.h (struct mac_output): Define x_pixels_diff and
2500 y_pixels_diff.
b1f81fc5 2501
9443fcf6
JB
25022003-03-31 Juanma Barranquero <lektu@terra.es>
2503
2504 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
2505 blockinput.h and files included from it.
2506
e072891b
KS
25072003-03-31 Kim F. Storm <storm@cua.dk>
2508
2509 The following changes consolidates the common code related to
2510 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
2511 files into frame.c.
9443fcf6 2512
e072891b
KS
2513 * frame.c: Include blockinput.h.
2514 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
2515 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
2516 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
2517 related vars here.
2518 (struct frame_parm_table, frame_parms): New table for describing
2519 frame parameters and their associated Q-variable.
2520 The order of the parameters corresponds to the sequence of the
2521 frame_parm_handlers table in redisplay_interface.
2522 (x_fullscreen_move, x_set_frame_parameters)
2523 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
2524 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
2525 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
2526 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
2527 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
2528 Generic functions for processing of frame parameters.
2529 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
2530 (display_x_get_resource, x_get_resource_string): Functions for
2531 generic access to X resources.
2532 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2533 (x_default_parameter, Fx_parse_geometry): Functions for generic
2534 access to frame parameters.
6901b111
SM
2535 (x_figure_window_size): Generic calculation of frame size.
2536 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
2537 (syms_of_frame): Intern and staticpro frame parameter variables.
2538 Defvar_lisp Vx_resource_class and Vx_resource_name here.
2539 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 2540
e072891b
KS
2541 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
2542 parameter related vars defined in frame.c.
2543 (EMACS_CLASS): Define here.
2544 (enum FULLSCREEN_*): Define here.
2545 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
2546 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
2547 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
2548 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
2549 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
2550 (x_set_visibility, x_set_autoraise, x_set_autolower)
2551 (x_set_unsplittable, x_set_vertical_scroll_bars)
2552 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
2553 (x_figure_window_size): Add prototypes.
2554
2555 * dispextern.h (frame_parm_handler): New typedef.
2556 (struct redisplay_interface): New member frame_parm_handlers.
2557 (enum resource_types): Move declaration here.
2558 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2559 (x_default_parameter): Add prototypes.
2560
2561 * window.c: Remove extern decl for frame parameter vars.
2562 (change_window_heights): New generic function;
2563 replaces x_change_window_heights. All users changed.
2564
2565 * window.h (change_window_heights): Add prototype.
2566
2567 * xfaces.c: Remove extern decl for frame parameter vars.
2568
2569 * xterm.h (EMACS_CLASS): Remove. Use generic define.
2570 (struct w32_display_info): Fix type of xrdb member.
2571 (enum FULLSCREEN_*): Remove.
2572 Remove prototypes for generic functions (in frame.h).
2573
2574 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
2575 parameters now defined in frame.h and frame.c.
2576 (Vx_resource_name): Remove. Use generic var.
2577 (enum x_frame_parms): Remove (bogus, unused enum).
2578 (check_x_display_info): Make non-static (for frame.c).
2579 (struct x_frame_parm_table, x_frame_parms): Remove.
2580 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
2581 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
2582 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
2583 (x_change_window_heights, x_set_autoraise, x_set_autolower)
2584 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
2585 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
2586 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
2587 Remove. Use generic functions instead.
2588 (enum resource_types): Remove.
2589 (x_set_scroll_bar_default_width): New global function (for frame.c).
2590 (Fx_create_frame): Depend on x_figure_window_size to add space for
2591 toolbar and setup size_hint_flags.
2592 (x_frame_parm_handlers): New table for redisplay_interface.
2593 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 2594
e072891b
KS
2595 * xterm.c: Remove unnecessary extern declarations.
2596 (x_fullscreen_adjust): Remove. Use generic instead.
2597 (x_redisplay_interface): Add x_frame_parm_handlers member.
2598
2599 * w32gui.h (XrmDatabase): New (dummy) typedef.
2600
2601 * w32term.h (EMACS_CLASS): Remove. Use generic define.
2602 (struct w32_display_info): Fix type of xrdb member.
2603 (enum FULLSCREEN_*): Remove.
2604 (x_fullscreen_adjust): Remove prototype.
2605
2606 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
2607 parameters now defined in frame.h and frame.c.
2608 (Vx_resource_name): Remove. Use generic var.
2609 (enum x_frame_parms): Remove (bogus, unused enum).
2610 (check_x_display_info): Make non-static (for frame.c).
2611 (struct x_frame_parm_table, x_frame_parms): Remove.
2612 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
2613 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
2614 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
2615 (x_change_window_heights, x_set_autoraise, x_set_autolower)
2616 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
2617 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
2618 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
2619 Remove. Use generic functions instead.
2620 (enum resource_types): Remove.
2621 (x_set_scroll_bar_default_width): New global function (for frame.c).
2622 (Fx_create_frame): Depend on x_figure_window_size to add space for
2623 toolbar and setup size_hint_flags.
2624 (w32_frame_parm_handlers): New table for redisplay_interface.
2625 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 2626
e072891b
KS
2627 * w32term.c: Remove unnecessary extern declarations.
2628 (x_fullscreen_adjust): Remove. Use generic instead.
2629 (x_redisplay_interface): Add w32_frame_parm_handlers member.
2630
2631 * w32reg.c (x_get_string_resource): Use XrmDatabase.
2632
2633 * macgui.h (XrmDatabase): New (dummy) typedef.
2634
2635 * macterm.h (EMACS_CLASS): Remove.
2636 (struct mac_display_info): Add xrdb member.
2637 (struct mac_output): Add want_fullscreen member.
2638
2639 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
2640 parameters now defined in frame.h and frame.c.
2641 (Vx_resource_name): Remove. Use generic var.
2642 (check_x_display_info): Make non-static (for frame.c).
2643 (struct x_frame_parm_table, x_frame_parms): Remove.
2644 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
2645 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
2646 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
2647 (x_change_window_heights, x_set_autoraise, x_set_autolower)
2648 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
2649 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
2650 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
2651 Remove. Use generic functions instead.
2652 (enum resource_types): Remove.
2653 (x_set_scroll_bar_default_width): New global function (for frame.c).
2654 (mac_frame_parm_handlers): New table for redisplay_interface.
2655 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 2656
e072891b
KS
2657 * macterm.c: Remove unnecessary extern declarations.
2658 (x_redisplay_interface): Add mac_frame_parm_handlers member.
2659
3e6a560b
KS
2660 * Makefile.in (frame.o): Add dependency on blockinput.h and files
2661 included from it (atimer.h and systime.h).
2662
7b7b454e
AS
26632003-03-30 Andreas Schwab <schwab@suse.de>
2664
2665 * xdisp.c (x_insert_glyphs): Fix swapped width and height
2666 parameters for shift_glyphs_for_insert.
2667
2668 * macterm.c (x_redisplay_interface): Add missing entry for
2669 draw_vertical_window_border.
2670
beb402de
KG
26712003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
2672
2673 * fileio.c (Fexpand_file_name): In the no-handler case, after
2674 expanding, look again for a handler and invoke it. This is needed
2675 for filenames like "/foo/../user@host:/bar/../baz" -- the first
2676 expansion produces "/user@host:/bar/../baz" which needs to be
2677 expanded again for the finame result "/user@host:/baz".
2678
b676f356
JD
26792003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2680
2681 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
2682 of area to be redrawn for better performance.
2683
3c671a56
SM
26842003-03-28 Stefan Monnier <monnier@cs.yale.edu>
2685
2686 * xterm.c (take_vertical_position_into_account): Remove.
2687 (xt_action_hook): Call set_vertical_scroll_bar if needed.
2688 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
2689 (xm_scroll_callback, x_create_toolkit_scroll_bar)
2690 (x_set_toolkit_scroll_bar_thumb): Simplify.
2691 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
2692 (XTread_socket): Remove unused var.
2693 (x_make_frame_invisible): Replace goto with else.
2694
2695 * xdisp.c (set_vertical_scroll_bar): New fun.
2696 (redisplay_window): Use it.
2697
84f2e615
RS
26982003-03-26 Richard M. Stallman <rms@gnu.org>
2699
2700 * xdisp.c (update_tool_bar): Recompute tool bar if
2701 update_mode_lines is set. Set w->update_mode_line
2702 only if the tool bar contents actually change.
2703 (update_menu_bar): Undo previous change.
2704
70b6104c
JD
27052003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2706
5fd6f727
JD
2707 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
2708 (xg_frame_set_char_size): Calculate scroll bar width before frame
2709 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
2710 (xg_separator_p): Check for all documented separator types.
2711 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
2712 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
2713
70b6104c
JD
2714 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
2715 so tool bar gets updated.
2716
d9b36d19
SM
27172003-03-26 Stefan Monnier <monnier@cs.yale.edu>
2718
2719 * data.c (store_symval_forwarding): Re-instate part of the code
2720 that was deleted with too much enthusiasm.
2721
27222003-03-25 Stefan Monnier <monnier@cs.yale.edu>
2723
2724 * data.c (store_symval_forwarding): Delete special read-only
2725 hack for type == -1, since we now use ->constant instead.
2726 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
2727
2728 * buffer.c (overlays_in): Declare static.
2729 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
2730 `constant' field rather than the variable's `type' field.
2731
365fa1b3
AC
27322003-03-24 Andrew Choi <akochoi@shaw.ca>
2733
2734 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
2735
2736 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
2737
2738 * fns.c [MAC_OSX]: Do not redefine vector.
2739
2740 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
2741
2742 * macgui.h: Remove definition of No_Cursor.
2743
d9b36d19 2744 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
2745
2746 * xdisp.c: Define No_Cursor.
2747 (x_write_glyphs, notice_overwritten_cursor)
2748 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
2749 (note_mouse_highlight): Remove Mac-specific code.
2750 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 2751
c0bcce6f
JPW
27522003-03-24 John Paul Wallington <jpw@gnu.org>
2753
2754 * xdisp.c (redisplay_window): If mini window's buffer is not
2755 empty, then redisplay it like other windows.
2756
a526b96c
KS
27572003-03-23 Kim F. Storm <storm@cua.dk>
2758
2759 * w32term.c (w32_draw_window_cursor): Fix last change.
2760
37ab321e
KH
27612003-03-23 Kenichi Handa <handa@m17n.org>
2762
a526b96c
KS
2763 * alloc.c (make_string_from_bytes, make_specified_string):
2764 Add `const' for the arg CONTENTS.
37ab321e
KH
2765
2766 * lisp.h (make_string_from_bytes, make_specified_string):
2767 Prototypes adjusted.
2768
7863d625
JD
27692003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2770
a526b96c 2771 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 2772
7863d625
JD
2773 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
2774 (XG_SB_RANGE): New define.
2775
2776 * gtkutil.c (xg_fixed_handle_expose): New function.
2777 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
2778 expose events.
2779 (xg_update_scrollbar_pos): Take two more arguments, left and width
2780 of scroll bar including borders.
2781 Clear left and right part outside scroll bar separately as some
2782 themes have bars that are not an even number of pixels.
d9b36d19 2783 Don't set reallocate_redraws, don't call
7863d625
JD
2784 gdk_window_process_all_updates.
2785 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
2786 so no need to change it. Calculate size and value with XG_SB_RANGE.
2787
d9b36d19
SM
2788 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
2789 Pass left and width of scroll bar including borders to
7863d625
JD
2790 xg_update_scrollbar_pos.
2791
af0ad939
TTN
27922003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
2793
2794 * Makefile.in: Make sure space precedes end-of-line backslashes.
2795
b22139fd
KS
27962003-03-22 Kim F. Storm <storm@cua.dk>
2797
2798 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
2799 Add generic versions here. Remove system specific versions
2800 defined elsewhere.
2801
2802 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
2803 Add prototypes.
2804
6e6410cf
KS
2805 * xterm.h (STORE_NATIVE_RECT): New macro.
2806
5c9cc435
KS
28072003-03-21 Kim F. Storm <storm@cua.dk>
2808
00c64fab
SM
2809 * xdisp.c (get_glyph_string_clip_rect):
2810 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
2811
2812 * dispextern.h (struct redisplay_interface): Add active_p
2813 argument to draw_window_cursor member. All uses changed.
2814
acd37560
KS
28152003-03-21 Kim F. Storm <storm@cua.dk>
2816
2817 The following changes consolidate code related to writing and
2818 inserting glyphs, exposing frame, the tool bar, the mouse face,
2819 the output cursor, and help echo from xterm.c, w32term.c and
2820 macterm.c into xdisp.c. It also generalizes the use of the
2821 window_part enum instead of using numeric values throughout.
af0ad939 2822
acd37560
KS
2823 * xdisp.c: Consolidate gui-independent code here.
2824 Include keymap.h.
2825 (Qhelp_echo): Import.
2826 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
2827 (help_echo_string, help_echo_window, help_echo_object)
2828 (previous_help_echo_string, help_echo_pos): Declare here.
2829 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
2830 (estimate_mode_line_height): Define here. Handle windowing
2831 systems directly (without using estimate_mode_line_height_hook).
2832 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
2833 (update_window_cursor, update_cursor_in_window_tree)
2834 (fast_find_position, fast_find_string_pos)
2835 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
2836 (expose_area, expose_line, expose_overlaps, expose_window)
2837 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
2838 declared static as they are only used locally in xdisp.c.
2839 (draw_glyphs): Rename from x_draw_glyphs and make static.
2840 (tool_bar_item_info, notice_overwritten_cursor): Make static.
2841 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
2842 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 2843 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
2844 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
2845 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
2846 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
2847 (note_mouse_highlight, x_clear_window_mouse_face)
2848 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
2849 (x_intersect_rectangles): New generic functions for use by xdisp.c
2850 and GUI front-ends.
2851 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
2852 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
2853
2854 * dispextern.h (Display_Info): Generic typedef for *_display_info.
2855 (NativeRectangle): Generic typedef for rectangle type.
2856 (enum window_part): Move here from window.c.
2857 (struct redisplay_interface): New members flush_display_optional,
2858 define_frame_cursor, clear_frame_area, draw_window_cursor,
2859 draw_vertical_window_border, shift_glyphs_for_insert.
2860 Rename member clear_mouse_face to clear_window_mouse_face.
2861 (estimate_mode_line_height_hook): Remove hook.
2862 (auto_raise_tool_bar_buttons_p): Don't declare extern.
2863 (tool_bar_item_info): Remove prototype.
2864 (help_echo_string, help_echo_window, help_echo_object)
2865 (previous_help_echo_string, help_echo_pos)
2866 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
2867 (x_stretch_cursor_p, output_cursor): Declare extern.
2868 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
2869 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
2870 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
2871 (display_and_set_cursor, set_output_cursor, x_cursor_to)
2872 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
2873 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
2874 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
2875 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
2876 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
2877 Add prototypes.
2878 (mode_line_string, marginal_area_string): Fix prototypes.
2879
2880 * window.c (enum window_part): Move to dispextern.h.
2881 (coordinates_in_window): Use enum window_part member names
2882 instead of numbers to describe return value.
2883 (struct check_window_data): Change part member to window_part.
2884 (check_window_containing): Return window_part unaltered.
2885 (window_from_coordinates): Change part arg from int to enum
2886 window_part. Allow part arg to be null. All users changed.
2887
2888 * window.h (window_from_coordinates): Fix prototype.
2889
2890 * term.c (estimate_mode_line_height): Move to xdisp.c.
2891
2892 * keyboard.c (make_lispy_event): Use enum window_part.
2893
2894 * dispnew.c (mode_line_string, marginal_area_string): Use enum
2895 window_part instead of int in arg list. Users changed.
2896
2897 * xterm.h (No_Cursor): Declare as None for X.
2898 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 2899
acd37560
KS
2900 * xterm.c: Remove consolidated defines and code.
2901 (BETWEEN): Remove unused macro.
2902 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
2903 (x_define_frame_cursor, x_clear_frame_area)
2904 (x_draw_window_cursor): New X-specific functions for RIF.
2905 (x_redisplay_interface): Add new members.
2906
2907 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
2908
2909 * w32term.h (struct w32_output): Remove cross_cursor member.
2910
2911 * w32term.c: Remove consolidated defines and code.
2912 (BETWEEN): Remove unused macro.
2913 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
2914 (w32_define_frame_cursor, w32_clear_frame_area)
2915 (w32_draw_window_cursor): New W32-specific functions for RIF.
2916 (w32_redisplay_interface): Add new members.
2917
2918 * w32gui.h (No_Cursor): Define as 0 for W32.
2919 (XRectangle): Add X compatible rectangle type.
2920 (NativeRectangle): Declare as RECT for W32.
2921 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
2922
2923 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
2924
2925 * w32console.c: Remove consolidated defines and code.
af0ad939 2926
acd37560
KS
2927 * msdos.h (Display_Info): Add generic typedef.
2928
2929 * msdos.c: Remove consolidated defines and code.
2930 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
2931
2932 * macterm.h (struct mac_output): Replace member cross_cursor by
2933 hand_cursor.
2934 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
2935
2936 * macterm.c: Remove consolidated defines and code.
2937 (BETWEEN): Remove unused macro.
2938 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
2939 (mac_define_frame_cursor, mac_clear_frame_area)
2940 (mac_draw_window_cursor): New Mac-specific functions for RIF.
2941 (x_redisplay_interface): Add new members.
2942
2943 * macgui.h (No_Cursor): Define as 0 for Mac.
2944 (XRectangle): Add X compatible rectangle type.
2945 (NativeRectangle): Declare as Rect for Mac.
2946 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
2947
204ccab1
KS
2948 * macfns.c (x_set_mouse_color): Setup hand_cursor.
2949 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 2950
9443fcf6 2951 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
2952 included from it. Add dependency on keymap.h.
2953
2954 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
2955
8ba01a70 29562003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
2957
2958 * fileio.c (Fexpand_file_name): Fix previous change.
2959
8ba01a70 29602003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
2961
2962 * fileio.c (Ffile_name_directory): Reconstruct file name by
2963 make_specified_string.
2964 (Ffile_name_nondirectory, Ffile_name_as_directory)
2965 (Fdirectory_file_name, Fexpand_file_name)
2966 (Fsubstitute_in_file_name): Likewise.
2967 (Fread_file_name): Compare decoded homedir with DIR and
2968 DEFAULT_FILENAME.
2969
2970 * alloc.c (make_specified_string): If NCHARS is negative, count
2971 the number of characters.
2972
19536747
JD
29732003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2974
de38ae5a
JD
2975 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
2976 all widgets.
2977
19536747
JD
2978 * gtkutil.h: Removed xg_ignore_next_thumb.
2979
37ab321e 29802003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
2981
2982 * coding.c (Vchar_coding_system_table): Remove this variable.
2983 (Vcoding_system_safe_chars): New variable.
2984 (intersection): Remove this function.
2985 (find_safe_codings): Don't use Vchar_coding_system_table, but try
2986 all codings in SAFE_CODINGS.
00c64fab 2987 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
2988 find_safe_codings. Get generic coding systems from
2989 Vcoding_system_safe_chars.
2990 (Fdefine_coding_system_internal): New function.
2991 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
2992 Initialize and staticpro Vcoding_system_safe_chars.
2993
17097258
JD
29942003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2995
2a2071c3
JD
2996 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
2997 equal old values before updating.
2998
17097258
JD
2999 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
3000
3001 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
3002
30032003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3004
3005 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
3006 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
3007 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
3008 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
3009 (xg_create_scroll_bar): Pass bar to button event callback.
3010 (xg_find_top_left_in_fixed): New function.
3011 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
3012 whole scroll bar area. Get old position with
3013 xg_find_top_left_in_fixed, calculate and only clear needed areas.
3014 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
3015 dragging is in progress. Calculate whole as for Motif.
3016 Remove code that saved last values. Call gtk_range functions to
3017 set scroll bar sizes.
3018
3019 * gtkutil.h: Removed xg_ignore_next_thumb.
3020
8cb9dfbf
JB
30212003-03-17 Juanma Barranquero <lektu@terra.es>
3022
3023 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
3024 and files included from it.
3025
00c64fab
SM
30262003-03-18 Stefan Monnier <monnier@cs.yale.edu>
3027
3028 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
3029 multiple occurrences of the same keymap under different prefixes.
3030 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
3031
c45bb3b2
JR
30322003-03-16 Jason Rumney <jasonr@gnu.org>
3033
3034 * w32gui.h: Use HDC for Display.
3035
3036 * w32term.c (w32_encode_char): Prevent double-byte chars from
3037 crashing Emacs.
3038
3039 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
3040 as binary.
3041
2a6d0874
JB
30422003-03-16 Juanma Barranquero <lektu@terra.es>
3043
3044 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
3045
03eb5fab
KS
30462003-03-16 Kim F. Storm <storm@cua.dk>
3047
3048 The following changes consolidate some of the gui-independent
3049 parts of the processing and drawing of "glyph strings" from
3050 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 3051
03eb5fab
KS
3052 * dispextern.h (struct glyph): Reduce face_id member from 22 to
3053 21 bits (this reduces number of faces from 4M to 2M).
3054 Replace W32 specific w32_font_type member (2 bits) by generic
3055 font_type member (3 bits) for portability.
3056 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
3057 (enum draw_glyphs_face): Define here.
3058 (struct glyph_string): Define here. Merge W32 and X versions.
3059 (struct redisplay_interface): New members per_char_metric,
3060 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
3061 (VCENTER_BASELINE_OFFSET): Define here.
3062 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
3063 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
3064
3065 * xdisp.c: Consolidate gui-independent "glyph string" code here.
3066 (dump_glyph_string): Moved here.
3067 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
3068 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
3069 (fill_composite_glyph_string, fill_glyph_string)
3070 (fill_image_glyph_string, fill_stretch_glyph_string)
3071 (left_overwritten, left_overwriting, right_overwritten)
3072 (right_overwriting, get_char_face_and_encoding)
3073 (set_glyph_string_background_width, compute_overhangs_and_x)
3074 (append_glyph, append_composite_glyph, produce_image_glyph)
3075 (take_vertical_position_into_account, append_stretch_glyph)
3076 (produce_stretch_glyph): New generic functions (based on X version).
3077 Call platform specific functions through rif.
3078 (INIT_GLYPH_STRING): New macro, hides W32 details.
3079 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
3080 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
3081 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
3082 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
3083 (notice_overwritten_cursor):
3084 Generic functions exported to platform modules. Users changed.
3085
3086 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
3087 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
3088 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 3089 New macros for consolidated code.
2a6d0874 3090
03eb5fab
KS
3091 * xterm.c: Remove consolidated defines and code.
3092 (x_per_char_metric, x_encode_char)
3093 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
3094 (x_redisplay_interface): Add new members.
3095
3096 * w32gui.h (Display): Add dummy typedef for consolidation.
3097 (XChar2b): Define alias for wchar_t for consolidation.
3098 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
3099
3100 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 3101 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
3102 New macros for consolidation.
3103
fad49844 3104 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
3105 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
3106 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
3107 (w32_per_char_metric): Change font_type arg to int for RIF.
3108 (w32_encode_char): Return int according to RIF requirements.
3109 (w32_compute_glyph_string_overhangs): Adapt to RIF.
3110 (w32_get_glyph_overhangs): New function for RIF. Uses generic
3111 x_get_glyph_overhangs.
3112 (w32_redisplay_interface): Add new members.
3113
3114 * macgui.h (XChar2b): Move typedef here for consolidation.
3115 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
3116
3117 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
3118 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
3119 consolidation.
3120
3121 * macterm.c: Remove consolidated defines and code.
3122 (mac_per_char_metric): New function for RIF.
00c64fab 3123 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
3124 (mac_compute_glyph_string_overhangs): Adapt for RIF.
3125 (x_redisplay_interface): Add new members.
3126
00c64fab
SM
31272003-03-15 Stefan Monnier <monnier@cs.yale.edu>
3128
3129 * keymap.c (Vmenu_events): New var.
3130 (syms_of_keymap): Initialize it.
3131 (where_is_internal): Check more carefully what is a menu event.
3132
225c7a07
RS
31332003-03-14 Richard M. Stallman <rms@gnu.org>
3134
3135 * lread.c (read1): After #!, exit loop on eof.
3136
cea9be54
JD
31372003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3138
9ea0e54d
JD
3139 * gtkutil.h: Add declaration for xg_frame_cleared.
3140
0cb35f4e
JD
3141 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
3142
cea9be54
JD
3143 * gtkutil.c (struct xg_last_sb_pos): New structure.
3144 (handle_fixed_child): New function.
3145 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
3146 and force a redraw on them.
3147 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
3148 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
3149 so we can avoid unneeded redraws.
3150 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
3151 and force a redraw on the scroll bar.
3152 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
3153 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 3154 (xg_frame_cleared): New function.
cea9be54 3155
20b853f3
KH
31562003-03-13 Kenichi Handa <handa@m17n.org>
3157
3158 * coding.c (Fdetect_coding_region): Fix docstring.
3159 (Fdetect_coding_string): Fix docstring.
3160
7a555aff
AS
31612003-03-13 Andreas Schwab <schwab@suse.de>
3162
25cc0080
AS
3163 * gtkutil.c: Add prototype for create_menus.
3164
30225431
AS
3165 * data.c (long_to_cons): Fix type of top.
3166
3167 * xselect.c (selection_data_to_lisp_data): Use int instead of
3168 long for an integer of size 4.
3169
7a555aff 3170 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 3171 (xg_tool_bar_help_callback): Likewise.
7a555aff 3172
a3e4741f
AS
31732003-03-12 Andreas Schwab <schwab@suse.de>
3174
3175 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
3176
9668be7c
KS
31772003-03-12 Kim F. Storm <storm@cua.dk>
3178
03eb5fab 3179 The following changes consolidate the fringe handling from
9668be7c 3180 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 3181
9668be7c
KS
3182 * xdisp.c: Consolidate fringe handling code here.
3183 (left_bits, right_bits, continued_bits, continuation_bits)
3184 (ov_bits, zv_bits): Define fringe bitmaps.
3185 (fringe_bitmaps): New array holding fringe bitmaps.
3186 (draw_fringe_bitmap): Draw a specific bitmap; call display
3187 specific drawing routine via rif->draw_fringe_bitmap.
3188 (draw_row_fringe_bitmaps): Generic replacement for
3189 x_draw_row_fringe_bitmaps; all callers changed.
3190 (compute_fringe_widths): Generic replacement for
3191 x_compute_fringe_widths; all callers changed.
3192
3193 * dispextern.h (enum fringe_bitmap_type): Define here.
3194 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
3195 (fringe_bitmaps): Declare extern.
3196 (struct redisplay_interface): New member draw_fringe_bitmap.
3197 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
3198
3199 * xterm.c: Remove generic fringe code.
3200 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
3201 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
3202
3203 * w32term.c: Remove generic fringe code.
3204 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
3205 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 3206
9668be7c
KS
3207 * macterm.c: Remove generic fringe code.
3208 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
3209 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
3210
00a88f32
SM
32112003-03-11 Stefan Monnier <monnier@cs.yale.edu>
3212
3213 * print.c (Fprin1_to_string): Return unibyte string if possible.
3214
1d1de695
DK
32152003-03-09 David Kastrup <dak@gnu.org>
3216
3217 * process.c (read_process_output): We have allocated enough space
3218 for readmax and carryover, so actually use the alloted space.
3219
257f40f2
JD
32202003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3221
3222 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
3223 toolkit scrollbar click.
3224
3225 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
3226 for USE_GTK.
3227 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
3228 also.
3229 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
3230 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 3231
257f40f2
JD
3232 * gtkutil.h: Declare xg_get_scroll_id_for_window.
3233
3234 * gtkutil.c (xg_get_scroll_id_for_window): New function.
3235 (xg_tool_bar_item_expose_callback): New function.
3236 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
3237 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
3238 on the tool bar widget.
3239 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
3240 to expose on the tool bar item widgets.
3241
15213141
JD
32422003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3243
26b74a0b 3244 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 3245 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
3246 deleted from the image cache).
3247
15213141
JD
3248 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
3249 the event isn't for a frame (i.e. for dialogs).
3250
20b853f3 32512003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
3252
3253 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
3254 composition components reaches the limit, terminate composing.
3255 (COMPOSITION_OK): New macro.
00a88f32 3256 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
3257 composition is found.
3258 (coding_restore_composition): Adjust the number of composition
3259 components if it is not sane.
3260
c9029fe5
JB
32612003-03-06 Juanma Barranquero <lektu@terra.es>
3262
3263 * w32term.h (struct w32_display_info): Add xrdb member to support
3264 passing resources via -xrm on Windows.
3265
3266 * w32term.c (w32_make_rdb): New function.
3267 (w32_term_init): Use it to initialize xrdb member of w32_display_info
3268 struct. Delete leftover code.
3269
3270 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
3271 for resources passed on the command line.
3272
3273 * w32reg.c (w32_get_rdb_resource): New function.
3274 (x_get_string_resource): Use it, so resources passed with -xrm
3275 supercede the ones in the registry.
3276
9d00001f
JD
32772003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3278
3279 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
3280 instead of x_top_window_to_frame.
3281
ca2417b9
JD
32822003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3283
3284 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
3285 when restarting Emacs.
3286
5b20caf0
RS
32872003-03-03 Richard M. Stallman <rms@gnu.org>
3288
3289 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
3290 to run kill-buffer-query-functions.
3291 (Qkill_buffer_query_functions): New var.
3292 (syms_of_buffer): Init and staticpro it.
3293
58e91b77
JD
32942003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3295
3296 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
3297
932357b4
KS
32982003-02-25 Kim F. Storm <storm@cua.dk>
3299
3300 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
3301 If centering point failed to make whole line visible and vscroll
3302 is non-zero, disable vscroll and try centering point again.
3303
3304 * lread.c (read1): Accept `single space' syntax like (? x).
3305
bb8db7e1
JD
33062003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3307
3308 * keyboard.c (cancel_hourglass_unwind): Surround with
3309 #ifdef HAVE_X_WINDOWS
3310
47d77aab
KH
33112003-02-25 Kenichi Handa <handa@m17n.org>
3312
3313 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
3314 process only when "subprocesses" is defined.
3315
6a097c0c
SM
33162003-02-24 Stefan Monnier <monnier@cs.yale.edu>
3317
3318 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
3319
0b063c27
JB
33202003-02-24 Juanma Barranquero <lektu@terra.es>
3321
d1135afc
JB
3322 * callint.c (fix_command): Declare as static void and move before
3323 Fcall_interactively.
3324
0b063c27
JB
3325 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
3326 (syms_of_xdisp): Don't initialize Qwhen.
3327
0af912f0
JD
33282003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3329
3330 * keyboard.c (cancel_hourglass_unwind): New function.
3331 (command_loop_1): Cancel hourglass with unwind-protect.
3332
120d0a23
RS
33332003-02-23 Richard M. Stallman <rms@gnu.org>
3334
3335 * callint.c (fix_command): New subroutine, from Fcall_interactively.
3336 Detect (when ... (region-beginning)) etc.
3337 (Fcall_interactively): Call fix_command.
3338 (Qif, Qwhen): New variables.
3339 (syms_of_callint): Init and staticpro them.
0b063c27 3340
120d0a23
RS
3341 * regex.c (print_partial_compiled_pattern): Output to stderr.
3342
4ece81a6
KG
33432003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
3344
3345 * dired.c (directory_files_internal): Don't expand directory.
3346 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
3347 instead. From Lars Hansen <larsh@math.ku.dk>.
3348
e52bd6b7
SM
33492003-02-22 Stefan Monnier <monnier@cs.yale.edu>
3350
3351 * fns.c (string_to_multibyte): Remove unused var i.
3352 (Flanginfo): Fix int/Lisp_Object mixup.
3353 (void_call2): New fun.
3354 (Fmap_char_table): Use it in place of call2.
3355
3356 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
3357
3358 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
3359
3360 * keymap.c (copy_keymap_1): Make it static.
3361
3362 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
3363
c33ef7c4
JB
33642003-02-22 David Ponce <david@dponce.com>
3365
3366 * lread.c (Fload): Don't check STRING_MULTIBYTE.
3367
16782258
JD
33682003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3369
3370 * process.h: Removed subtty field from struct Lisp_Process.
3371
3372 * process.c (create_process): Remove setting of subtty.
3373 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
3374 (Fprocess_running_child_p, process_send_signal):
3375 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
3376 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
3377
3abeca61
KG
33782003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
3379
3380 * keymap.c (Fdefine_key): Doc fix.
3381
92a8ce63
JB
33822003-02-21 Juanma Barranquero <lektu@terra.es>
3383
3384 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
3385
3386 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
3387 POLLING_PROBLEM_IN_SELECT.
3388
3389 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
3390 Delete #undef of POLLING_PROBLEM_IN_SELECT.
3391
3392 * s/hpux10-20.h: New file.
3393
e52bd6b7
SM
3394 * process.c (wait_reading_process_input):
3395 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 3396
20f1ef2e
KH
33972003-02-20 Kenichi Handa <handa@m17n.org>
3398
32d0a9dc
KH
3399 * fontset.c (check_fontset_name): If NAME is nil, return the
3400 default fontset.
3401 (override_font_info): New function.
e52bd6b7 3402 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
3403 (Ffontset_info): If FONTSET is not the default fontset, merge
3404 FONTSET onto the copy of the default fontset, and work on that
3405 copy. Document that NAME nil means the default fontset.
3406 (Ffontset_font): Document that NAME nil means the default fontset.
3407
20f1ef2e
KH
3408 * process.c (setup_process_coding_systems): If the process's
3409 in/out descriptor is -1, do nothing.
3410
77d1daf2
AS
34112003-02-19 Andreas Schwab <schwab@suse.de>
3412
e52bd6b7
SM
3413 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
3414 Add prototypes.
77d1daf2 3415
f9a45bb3
KH
34162003-02-19 Kenichi Handa <handa@m17n.org>
3417
3418 * xfaces.c (try_alternative_families): Try all scalable fonts if
3419 Vscalable_fonts_allowed is not Qt.
3420
72ecb43c
JD
34212003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3422
3423 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
3424
ee5be7c3
JD
34252003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3426
3427 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
3428 names.
3429
3430 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 3431 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
3432 x_face_list_fonts.
3433 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
3434 (Fx_list_fonts): Set maxnames to -1 to get all font names.
3435
4cd519a7
KS
34362003-02-18 Kim F. Storm <storm@cua.dk>
3437
068f9882
KS
3438 * lread.c (read1): Fix last change.
3439 "`" is not always special. Allow "?" after a character constant.
4cd519a7 3440
7290a344
AC
34412003-02-18 Andrew Choi <akochoi@shaw.ca>
3442
3443 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
3444
1f7fa69b
AS
34452003-02-18 Andreas Schwab <schwab@suse.de>
3446
3447 * window.c (window_scroll_pixel_based): Move outside a
3448 multi-glyph character before setting new window start.
3449
3450 * xdisp.c (in_display_vector_p): New function.
3451 * dispextern.h (in_display_vector_p): Declare.
3452
23e21195
KS
34532003-02-18 Kim F. Storm <storm@cua.dk>
3454
3455 * lread.c (read1): Fix and relax read syntax.
3456 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
3457 Only recognize "," after dotted-pair dot if inside backquote.
3458 Never include "`" or "," (inside backquote) in a symbol.
3459 Allow dotted-pair dot after a character constant.
3460 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 3461
f098b121
JD
34622003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3463
3464 * gtkutil.c (xg_tool_bar_expose_callback): New function.
3465 (xg_create_tool_bar): Force style of tool bar to be horizontal with
3466 icons. Set name of tool bar to emacs-toolbar.
3467 (update_frame_tool_bar): Connect expose event to
3468 xg_tool_bar_expose_callback.
3469
63020c46
RS
34702003-02-17 Richard M. Stallman <rms@gnu.org>
3471
3472 * keyboard.c (this_command_key_count_reset): New variable.
3473 Initiatize to 0 where this_command_key_count is set.
3474 (read_char): Save and restore this_command_key_count_reset
3475 around input method code.
3476 (read_char): If this_command_key_count_reset, echo reread commands.
3477 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
3478
fb4452cc
KH
34792003-02-17 Kenichi Handa <handa@m17n.org>
3480
3481 * fns.c (string_to_multibyte): Always return a multibyte string.
3482
bd11cc09
JR
34832003-02-16 Jason Rumney <jasonr@gnu.org>
3484
e52bd6b7
SM
3485 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
3486 Negative max_fonts parameter means list all.
bd11cc09 3487
4cdf4bde
DL
34882003-02-14 Dave Love <fx@gnu.org>
3489
3490 * fns.c (Flanginfo): Doc fix.
3491
023b93f6
KS
34922003-02-13 Kim F. Storm <storm@cua.dk>
3493
37cd4238
KS
3494 * lread.c (read_escape): Interpret \s as a SPACE character, except
3495 for \s-X in a character constant which still is the super modifier.
3496 (read1): Signal an `invalid read syntax' error if a character
3497 constant is immediately followed by a digit or symbol character.
3498
140a6b7e
KS
3499 * search.c (Fmatch_data): Doc fix. Explicitly state that
3500 match-data is undefined if last search failed.
3501
023b93f6
KS
3502 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
3503 All uses changed.
3504
7d5c86e5
JB
35052003-02-12 Juanma Barranquero <lektu@terra.es>
3506
3507 * eval.c (Fdefmacro): Fix typo.
3508
295fff2c
KS
35092003-02-12 Kim F. Storm <storm@cua.dk>
3510
3511 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
3512 macro is a string, convert meta modifiers in string when copying
3513 the string into a vector.
3514
60f3202d
KS
35152003-02-11 Kim F. Storm <storm@cua.dk>
3516
3517 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
3518
61cb0b53
KH
35192003-02-11 Kenichi Handa <handa@m17n.org>
3520
3521 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
3522
7392e23c
KS
35232003-02-10 Kim F. Storm <storm@cua.dk>
3524
3525 * process.c: Doc fixes.
3526 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
3527
ce4254bd
KH
35282003-02-10 Kenichi Handa <handa@m17n.org>
3529
9c7a329a
KH
3530 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
3531
ce4254bd
KH
3532 * process.c (QCfilter_multibyte): New variable.
3533 (setup_process_coding_systems): New function.
e52bd6b7
SM
3534 (Fset_process_buffer, Fset_process_filter):
3535 Call setup_process_coding_systems.
ce4254bd
KH
3536 (Fstart_process): Initialize the member `filter_multibyte' of
3537 struct Lisp_Process.
3538 (create_process): Call setup_process_coding_systems.
3539 (Fmake_network_process): New keyward `:filter-multibyte'.
3540 Initialize the member `filter_multibyte' of struct Lisp_Process.
3541 Call setup_process_coding_systems.
3542 (server_accept_connection): Call setup_process_coding_systems.
3543 (read_process_output): If the process has a filter, decide the
3544 multibyteness of a string to given to the filter by
3545 `filter_multibyte' member of the process. If the process doesn't
3546 have a filter and the result of conversion is unibyte, use
3547 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
3548 multibyte form.
3549 (Fset_process_coding_system): Call setup_process_coding_systems.
3550 (Fset_process_filter_multibyte): New function.
3551 (Fprocess_filter_multibyte_p): New function.
3552 (syms_of_process): Intern and staticpro QCfilter_multibyte.
3553 Defsubr Sset_process_filter_multibyte and
3554 Sprocess_filter_multibyte_p.
3555
3556 * process.h (struct Lisp_Process): New member filter_multibyte.
3557
3558 * lisp.h (setup_process_coding_systems): Add prototype.
3559
3560 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
3561 process, update coding systems for the process.
3562
b08d5f59
KH
35632003-02-09 Kenichi Handa <handa@m17n.org>
3564
3565 * fns.c (string_to_multibyte): New function.
3566 (Fstring_to_multibyte): New function.
3567 (syms_of_fns): Defsubr it.
3568
0dfd93c0
AS
35692003-02-08 Andreas Schwab <schwab@suse.de>
3570
3571 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
3572 instead of the substitution.
3573
7b76ca1c
JD
35742003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3575
3576 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
3577
3578 * xmenu.c (menu_position_func): Adjust menu popup position so that
3579 the menu is fully visible.
7b76ca1c 3580
2436a4e4
JD
35812003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3582
3583 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
3584 (x_make_frame_invisible, x_wm_set_icon_position):
3585 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
3586
3587 * xfns.c (x_set_name, x_set_title): Ditto.
3588
37d1e680
RS
35892003-02-04 Richard M. Stallman <rms@gnu.org>
3590
3591 * keyboard.c (echo_now): Update before_command_echo_length.
3592 (Freset_this_command_lengths): Reset this_command_key_count etc.
3593 immediately rather than arranging to do it later.
3594 (before_command_key_count_1, before_command_echo_length_1)
3595 (before_command_restore_flag): Vars deleted.
3596 (add_command_key): Don't handle before_command_restore_flag.
3597 (read_char, record_menu_key): Don't update before_command_key_count or
3598 before_command_echo_length.
3599 (read_char): Don't handle before_command_restore_flag.
3600
3601 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
3602 in direct-output clauses if it wouldn't be called in the ordinary case.
3603
578846a3
KS
36042003-02-04 Kim F. Storm <storm@cua.dk>
3605
3606 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
3607
49853a4d
JD
36082003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3609
3610 * gtkutil.c (remove_from_container): Copying list is not needed.
3611 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
3612 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
3613 on list returned from gtk_container_get_children to avoid memory leak.
3614
8b53dc06
JR
36152003-02-01 Jason Rumney <jasonr@gnu.org>
3616
5d54d177
JR
3617 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
3618 local malloc.
3619 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
3620 definitions in xpm.h.
3621 (init_xpm_functions): New function.
3622 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
3623 (init_external_image_libraries): Try to load libXpm.dll.
3624
8b53dc06
JR
3625 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
3626 timestamp.
3627
b222e415
DL
36282003-01-31 Dave Love <fx@gnu.org>
3629
3630 * syntax.c (Fskip_chars_forward)
3631 (open-paren-in-column-0-is-defun-start): Doc fix.
3632
c60ee5e7
JB
36332003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
3634
3635 * fileio.c: Support // at start of name for Cygwin (just added proper
3636 preprocessor tests).
3637
3638 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
3639
3640 * Makefile.in: Use @EXEEXT@ for Cygwin.
3641
3642 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
3643
3644 * s/cygwin.h: Added for Cygwin port.
3645
53b37591
JB
36462003-01-31 Juanma Barranquero <lektu@terra.es>
3647
3648 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
3649 when including gif_lib.h.
fe929957
JB
3650 (init_gif_functions, init_tiff_functions): New functions.
3651 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
3652 Windows. Disable color table lookups. Call library functions
53b37591 3653 through pointers determined at runtime.
fe929957
JB
3654 (init_external_image_libraries): Try to load libungif.dll and
3655 libtiff.dll.
53b37591 3656
45415a8f
KH
36572003-01-31 Kenichi Handa <handa@m17n.org>
3658
3659 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 3660 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 3661
a97e4138
JD
36622003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3663
e52bd6b7 3664 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 3665
6eed9bed
DL
36662003-01-30 Dave Love <fx@gnu.org>
3667
3668 * alloc.c (Vgc_elapsed, gcs_done): New variables.
3669 (Fgarbage_collect): Use them.
3670 (init_alloc, syms_of_alloc): Set them up.
3671
100dcd40
JB
36722003-01-30 Juanma Barranquero <lektu@terra.es>
3673
3674 * w32fns.c (init_external_image_libraries): Add missing operator.
3675
fbd852af
JR
36762003-01-29 Jason Rumney <jasonr@gnu.org>
3677
3678 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
3679 an alternative name for jpeg.dll.
3680
8a2d8020
KH
36812003-01-29 Kenichi Handa <handa@m17n.org>
3682
3683 * xdisp.c (set_cursor_from_row): Pay attention to string display
3684 properties.
3685
058c18c7
AC
36862003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
3687
3688 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
3689 <escape>.
3690 (keycode_to_xkeysym_table): Reformat and add more comments.
3691 (XTread_socket): Drop special case for backspace.
3692
385f11cf
AC
36932003-01-28 Andrew Choi <akochoi@shaw.ca>
3694
3695 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
3696 values in old-style RGB specs.
3697
c922a224
JB
36982003-01-27 Juanma Barranquero <lektu@terra.es>
3699
3700 * w32fns.c (init_external_image_libraries): Try alternate names for the
3701 jpeg dll.
3702
0a1d6de0
JD
37032003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3704
3705 * gtkutil.c (create_dialog, xg_separator_p)
3706 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
3707 before calling strcmp or strlen.
3708
a97e4138 37092003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
3710
3711 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
3712 and handle image load failure.
3713
28908312
JR
37142003-01-26 Jason Rumney <jasonr@gnu.org>
3715
3716 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
3717 New functions.
3718 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
3719 Disable color table lookups. Call jpeg library functions
3720 through pointers determined at runtime.
3721 (init_external_image_libraries): Try to load jpeg.dll.
3722
84e47416
RS
37232003-01-25 Richard M. Stallman <rms@gnu.org>
3724
3725 * lisp.h: Declare format2 instead of format1.
3726
3727 * fileio.c (barf_or_query_if_file_exists):
3728 Call format2 instead of format1.
3729
3730 * editfns.c (format2): New function, replaces format1
3731 but takes exactly two Lisp Objects as format args.
3732
3733 * buffer.c (Fkill_buffer): Call format2 instead of format1.
3734
a97e4138 37352003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
3736
3737 * xterm.h: Change to return value of x_dispatch_event to int.
3738
3739 * xterm.c (x_filter_event): New function.
3740 (event_handler_gdk, XTread_socket): Call x_filter_event.
3741 (x_dispatch_event): Change to return value of finish.
3742 (event_handler_gdk): Use return value from x_dispatch_event.
3743
3744 * xfns.c (x_window): Call create_frame_xic for GTK version to
3745 initialize input methods.
3746
3747 * gtkutil.h: Add (void) prototypes.
3748
3749 * gtkutil.c (create_menus): Remove code that puts the help menu to
3750 the right.
3751
54eefef1
JR
37522003-01-25 Jason Rumney <jasonr@gnu.org>
3753
3754 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
3755 [HAVE_PNG]: Sync with xfns.c version.
3756 (png_load): Adjust colors for Windows. Use Windows
3757 bitmaps. Disable color table lookups.
c262430d
JR
3758 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
3759 (init_png_functions): New function.
3760 (png_read_from_memory, png_load): Call png library functions
3761 through pointers determined at runtime.
3762 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
3763 (init_external_image_libraries): New function.
3764 (init_xfns): Call it.
54eefef1 3765
1a9e275b
AS
37662003-01-24 Andreas Schwab <schwab@suse.de>
3767
3768 * minibuf.c (Fminibuffer_message): Verify type of parameter.
3769
a97e4138 37702003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
3771
3772 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
3773 of static initializer.
3774
422eec7e
DL
37752003-01-24 Dave Love <fx@gnu.org>
3776
3777 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
3778 architectures.
3779
3780 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
3781 Use __alignof__.
3782
2a026b04
KH
37832003-01-24 Kenichi Handa <handa@m17n.org>
3784
3785 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 3786 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
3787 (command_loop_1): Call adjust_point_for_property with proper
3788 second arg.
3789
a18bb28d
JR
37902003-01-22 Jason Rumney <jasonr@gnu.org>
3791
3792 Sync changes with xterm.c and xfns.c.
3793
3794 * w32term.c (x_draw_glyph_string_foreground)
3795 (x_draw_composite_glyph_string_foreground): Implement overstriking.
3796
3797 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
3798 phys_cursor's hpos is overwritten. This is still not completely
3799 correct, as it doesn't really make sense to use hpos at all to
3800 get the cursor glyph (as that is relative to the width of the
3801 characters on the line, which may have changed during the update).
3802
3803 * w32term.c (notice_overwritten_cursor): Handle the special case
3804 of the cursor being in the first blank non-text line at the
3805 end of a window.
3806
3807 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
3808 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
3809 Compute from the x position returned by x_draw_glyphs.
3810
3811 (x_display_and_set_cursor): Don't set phys_cursor_width here,
3812 except for NO_CURSOR and system caret, to make phys_cursor_width
3813 contain what its name suggests.
3814 (notice_overwritten_cursor): Consider the cursor image erased if
3815 the output area intersects the cursor image in y-direction.
3816
6a097c0c
SM
3817 * w32term.c (note_mode_line_or_margin_highlight): Rename from
3818 note_mode_line_highlight and extend.
a18bb28d
JR
3819
3820 * w32term.c (last_window): New variable.
3821 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
3822 (note_mouse_movement): Remove reimplemented code in #if 0.
3823
3824 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
3825 not update_mode_lines, and always set it to 1.
3826
ac6e47ef
JR
38272003-01-21 Jason Rumney <jasonr@gnu.org>
3828
3829 * w32fns.c (IDC_HAND): Define it if system headers don't.
3830
38312003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
3832
3833 * w32term.h (struct w32_output): New member hand_cursor.
3834 (WM_EMACS_SETCURSOR): New message definition.
3835
3836 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
3837 function w32_define_cursor.
3838 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
3839 position, change member name output_data.x to output_data.w32 and
3840 add function w32_define_cursor.
3841 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
3842 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
3843 (w32_initialize_display_info):
3844 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
3845
3846 * w32fns.c (Vx_hand_shape): New variable.
3847 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
3848 WM_EMACS_SETCURSOR.
3849 (x-create-frame): Setup Cursor types.
3850
ceb39a17
JB
38512003-01-21 David Ponce <david@dponce.com>
3852
ac6e47ef
JR
3853 * w32term.c (w32_encode_char): For DIM=1 charset, set
3854 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
3855 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 3856 2002-09-30.)
ac6e47ef
JR
3857 (w32_draw_relief_rect): Declare all args.
3858 (w32_define_cursor): New.
3859
3860 * w32fns.c (w32_load_cursor): New function.
3861 (w32_init_class): Use it.
3862 (x_put_x_image): Declare all args.
3863
46cf0bed
JB
38642003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
3865
3866 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
3867
a97e4138 38682003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
3869
3870 * gtkutil.c: Must include stdio.h before termhooks.h
3871
83fc9c63
DL
38722003-01-21 Dave Love <fx@gnu.org>
3873
3874 * alloc.c (Fgc_status): Print zombie list.
3875 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
3876 Fix assignment of zombies.
3877 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
3878 Don't take car of non-cons.
3879
3880 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
3881
3882 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
3883
fe04b8c8
JR
38842003-01-20 David Ponce <david@dponce.com>
3885
3886 * w32menu.c (digest_single_submenu): Declare all args.
3887
3888 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
3889 changes in xmenu.c:
3890
3891 (parse_single_submenu): Use individual keymap's prompt
3892 string as pane name, if there is one.
3893 (set_frame_menubar): Save menu_items_n_panes from each call to
3894 parse_single_submenu and use it when calling digest_single_submenu.
3895
539e69a9
ST
38962003-01-20 Steven Tamm <steventamm@mac.com>
3897
3898 * macterm.c (XTread_socket): Checks for valid, visible window
3899 before sending a scroll-wheel event.
3900
675d000f
RS
39012003-01-20 Richard M. Stallman <rms@gnu.org>
3902
3903 * xdisp.c (redisplay_window): If mini window's buffer is not
3904 a minibuffer, then redisplay it like other windows.
3905
a97e4138 39062003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
3907
3908 * gtkutil.c (xg_create_frame_widgets): Check if there is an
3909 external tool bar before setting tool bar height.
3910
048addec
JD
39112003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3912
3913 * xterm.c (handle_one_xevent): Surround popup_activated
3914 with #ifdef:s for non-toolkit version.
3915
3916 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
3917 (gtkutil.o): New file.
3918 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
3919 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
3920
3921 * gtkutil.c: New file for GTK version.
3922
3923 * gtkutil.h: New file for GTK version.
3924
3925 * xterm.h: Add xt_or_gtk_widget.
3926 Include gtk files for USE_GTK.
3927 (struct x_output): Add toolbar_height.
3928 (struct x_output): Add GTK widgets and Gdk size_hints.
3929 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
3930 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
3931 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
3932
3933 * xterm.c: Include gtkutil.h for USE_GTK.
3934 Declare extern void free_frame_menubar for USE_GTK.
3935 (note_mouse_highlight): Check popup_activated for USE_GTK.
3936 (xt_action_hook): Don't compile if USE_GTK.
3937 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
3938 (xg_scroll_callback): New function.
3939 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
3940 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
3941 for USE_GTK.
3942 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
3943 xg_show_scroll_bar for USE_GTK.
3944 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
3945 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
3946 (event_handler_gdk): New function for USE_GTK.
3947 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
3948 (handle_one_xevent): Make sure widget is mapped before
3949 calling x_real_positions for USE_GTK.
3950 (XTread_socket): Add GTK event loop for USE_GTK.
3951 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
3952 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
3953 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
3954 (x_iconify_frame): Add code for USE_GTK.
3955 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
3956 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
3957 is in gtkutil.c.
3958 (x_term_init): Add initialization for GTK.
3959 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
3960
3961 * xmenu.c: Include gtkutil.h for USE_GTK.
3962 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
3963 (single_menu_item, single_menu_item, Fx_popup_dialog):
3964 Check for USE_GTK.
048addec
JD
3965 (popup_widget_loop): New function for USE_GTK.
3966 (x_activate_menubar): Add code for USE_GTK.
3967 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
3968 (menu_highlight_callback, menubar_selection_callback):
3969 Add USE_GTK versions.
048addec
JD
3970 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
3971 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
3972 (free_frame_menubar): Only compile if not USE_GTK. GTK version
3973 is in gtkutil.c.
3974 (popup_selection_callback): New version for USE_GTK.
3975 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 3976 one USE_X_TOOLKIT version.
048addec
JD
3977 (xmenu_show): Call create_and_show_popup_menu.
3978 (dialog_selection_callback): New version for USE_GTK.
3979 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 3980 one USE_X_TOOLKIT version.
048addec
JD
3981 (xdialog_show): Call create_and_show_dialog.
3982
3983 * xfns.c: Include gtkutil for USE_GTK.
3984 (x_window_to_frame, x_any_window_to_frame)
3985 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
3986 (x_top_window_to_frame): Add code for USE_GTK.
3987 (x_set_background_color): Call xg_set_background_color for GTK.
3988 (x_set_menu_bar_lines): Check for USE_GTK.
3989 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
3990 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
3991 (x_window): Call xg_create_frame_widgets for USE_GTK.
3992 (Fx_create_frame): Check for USE_GTK
3993 (Fx_file_dialog): New implementation for USE_GTK.
3994
3995 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
3996 (update_menu_bar): Add check for USE_GTK.
3997 (update_tool_bar): Add check for USE_GTK and external tool bar.
3998 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
3999 (redisplay_internal): Add check for USE_GTK and popup_activated.
4000 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
4001 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
4002 (display_menu_bar): Add check for USE_GTK
4003
4004 * lisp.h: Declare Vx_resource_name extern.
4005
4006 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
4007 for USE_GTK.
4008 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
4009
4010 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
4011 (FRAME_EXTERNAL_TOOL_BAR): New macro.
4012 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
4013
4014 * fileio.c (Fread_file_name): Add check for USE_GTK.
4015
6bdb309a
SM
4016 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
4017 Add check for USE_GTK.
048addec
JD
4018
4019 * config.in: Added HAVE_GTK
4020
4021 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
4022
40232003-01-18 Stefan Monnier <monnier@cs.yale.edu>
4024
4025 * charset.h (Funibyte_char_to_multibyte): Export.
4026
40272003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4028
4029 * xmenu.c (mouse_position_for_popup): New function.
4030 (Fx_popup_menu): Call mouse_position_for_popup for X and
4031 mouse_position_hook for others.
4032
40332003-01-17 Kim F. Storm <storm@cua.dk>
4034
4035 * editfns.c (Finsert): Mention `string-make-multibyte' and
4036 `string-as-multibyte' in doc string.
4037
40382003-01-17 Kenichi Handa <handa@m17n.org>
4039
4040 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 4041
048addec
JD
4042 * editfns.c (Fformat): Convert an unibyte char argument that is
4043 formatted by "%c" to multibyte if the total result must be a
4044 multibyte string.
cd7df9c0 4045
048addec 40462003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 4047
048addec
JD
4048 * process.c (set-process-filter): Document unibyte/multibyte-ness
4049 of string argument.
56210ecd 4050
048addec 40512003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 4052
048addec 4053 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 4054
048addec
JD
4055 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
4056 (re_search_2): Likewise.
6df8b9fe 4057
048addec 40582003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 4059
048addec
JD
4060 * xdisp.c (message_dolog): Fix bug of the case that *Message*
4061 buffer is unibyte.
292ddc31 4062
048addec 40632003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 4064
048addec 4065 * fns.c (Fsubstring): Clarify doc string.
292ddc31 4066
048addec
JD
4067 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
4068 (Fprevious_char_property_change)
4069 (Fnext_single_char_property_change)
4070 (Fprevious_single_char_property_change, Fnext_property_change)
4071 (Fnext_single_property_change, Fprevious_property_change)
4072 (Fprevious_single_property_change, Fadd_text_properties)
4073 (Fput_text_property, Fset_text_properties)
4074 (Fremove_text_properties, Fremove_list_of_text_properties)
4075 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 4076
048addec 40772003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 4078
048addec
JD
4079 * process.h (struct Lisp_Process): New member plist replaces old
4080 member private_vars. All uses changed.
63e4e4c6 4081
048addec 4082 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 4083 (QCplist): Rename from QCvars. Change all uses.
048addec 4084 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 4085 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 4086 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 4087 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 4088
048addec 40892003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 4090
6bdb309a 4091 * m/delta.h: Remove (obsolete).
e833850f 4092
048addec 40932003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 4094
048addec
JD
4095 * fileio.c (Fdelete_directory, Fdelete_file): Document the
4096 behaviour in front of symlinks.
4097 (Fdelete_file): Raise an error on directories.
817cb127 4098
048addec 40992003-01-13 Dave Love <fx@gnu.org>
817cb127 4100
048addec 4101 * fns.c (Freverse): Use QUIT.
3e8cf2ea 4102
048addec 41032003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 4104
048addec
JD
4105 * minibuf.c (minibuffer_completion_contents):
4106 Error if point is inside prompt.
3e8cf2ea 4107
048addec
JD
4108 * keyboard.c (command_loop_1): Don't redisplay directly
4109 if there's a post-command-hook.
3e8cf2ea 4110
048addec
JD
4111 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
4112 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 4113
048addec 41142003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 4115
048addec 4116 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 4117
048addec
JD
4118 * process.c (QCvars): New variable.
4119 (syms_of_process): Intern and staticpro it.
4120 (Fset_process_contact): Removed function.
4121 (Fprocess_variable, Fset_process_variable): New functions.
4122 (syms_of_process): Defsubr them.
4123 (Fstart_process): Initialize private_vars plist to nil.
4124 (Fmake_network_process): New arg :vars to setup the private
4125 variables for new network process.
4126 (server_accept_connection): Copy server's private variables to
4127 client process.
2c10f029 4128
048addec
JD
4129 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
4130 crashes). Code rewritten and simplified. Now directly aligns the
4131 pointer and recalculates pure_bytes_used, rather than aligning the
4132 size and adjusting the pointer.
b8a76c6c 4133
048addec 41342003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 4135
048addec
JD
4136 * process.c (Fset_process_contact): New function.
4137 (syms_of_process): defsubr it.
4138 (make-network-process): Update doc.
3a8d0899 4139
048addec 41402003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 4141
048addec
JD
4142 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
4143 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 4144
048addec 41452003-01-10 Dave Love <fx@gnu.org>
4abc7470 4146
048addec 4147 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 4148
048addec 41492003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 4150
048addec
JD
4151 * process.c (Fmake_network_process): Convert new port number
4152 to host byte order for `:service t' case. From Mario Lang.
bf338245 4153
048addec 41542003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 4155
048addec
JD
4156 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
4157 instead of XtAppProcessEvent.
bf338245 4158
048addec
JD
4159 * xterm.c (handle_one_xevent): New function.
4160 (x_dispatch_event): New function.
4161 (XTread_socket): Call handle_one_xevent.
bf338245 4162
048addec 4163 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 4164
048addec
JD
4165 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
4166 call XQueryPointer to get coordinates.
4167 (popup_get_selection): Do not set popup_activated_flag to zero,
4168 let popup_deactivate_callback do that. Needed for Motif.
4169 Call x_dispatch_event instead of XtDispatchEvent.
4170 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 4171
048addec 41722003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 4173
6bdb309a 4174 * process.c (server_accept_connection): Fix recording of new
048addec
JD
4175 connection's local address in :local property of contact info.
4176 (Fmake_network_process): Record local network address for new
4177 client processes in :local property of contact info.
6bdb309a 4178 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 4179
048addec 41802003-01-07 Dave Love <fx@gnu.org>
00e3ab56 4181
048addec 4182 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 4183
048addec 41842003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 4185
048addec 4186 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 4187
048addec
JD
4188 * eval.c (Fuser_variable_p): Doc change. For custom variables,
4189 use the same test as for custom-variable-p.
8c6d74c6 4190
048addec 41912003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 4192
048addec
JD
4193 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
4194 Count LAST_LINE_MISFIT in scroll margin for end of window.
4195 Move label too_near_end before setting SCROLL_MARGIN_POS.
4196 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 4197
048addec
JD
4198 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
4199 scroll_conservatively case. If scrolling that much doesn't change
4200 STARTP, move it down one line.
e833850f 4201
048addec
JD
4202 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
4203 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 4204
048addec
JD
4205 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
4206 selected frame.
8c6d74c6 4207
048addec
JD
4208 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
4209 (syms_of_keymap): staticpro them.
4210 (Fapropos_internal): Initialize them and clear them out.
4211 Don't GCPRO them.
8c6d74c6 4212
048addec
JD
4213 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
4214 Doc fixes.
8c6d74c6 4215
048addec
JD
4216 * lisp.h: New misc type Lisp_Save_Value.
4217 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
4218 (XSAVE_VALUE): New macro.
4219 (struct Lisp_Save_Value): New data type.
4220 (union Lisp_Misc): Add u_save_value alternative.
4221 (make_save_value): Declared.
8c6d74c6 4222
048addec 4223 * alloc.c (make_save_value): New function.
8c6d74c6 4224
048addec
JD
4225 * xterm.c (x_catch_errors): Save dpy using make_save_value.
4226 (x_catch_errors_unwind): Call XSync.
8c6d74c6 4227
048addec 42282003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 4229
048addec 4230 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 4231
048addec
JD
4232 * keyboard.c (command_loop_1): Call adjust_point_for_property
4233 in direct action cases for Qforward_char and Qbackward_char.
4234 Set already_adjusted so it won't be done twice.
8c6d74c6 4235
048addec 42362002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
8c6d74c6 4237
048addec
JD
4238 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
4239 type definition of size_t.
8c609cff 4240
048addec 42412003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 4242
048addec
JD
4243 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
4244 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 4245
048addec 42462002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 4247
048addec
JD
4248 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
4249 to default to t.
fa634a5e 4250
048addec 42512002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 4252
048addec 4253 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 4254
048addec 42552002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 4256
048addec
JD
4257 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
4258 allow building in a different directory than source. Uses some
4259 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 4260
048addec 42612002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 4262
048addec
JD
4263 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
4264 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
4265 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
4266 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 4267
048addec 42682002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 4269
048addec
JD
4270 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
4271 <scroll-down-aggressively>: Doc fix.
2155ecf3 4272
048addec
JD
4273 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
4274 string as pane name, if there is one.
4275 (set_frame_menubar): Save menu_items_n_panes from each call to
4276 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 4277
048addec
JD
4278 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
4279 Don't try to make last line fully visible if it is past end of window.
61f1d295 4280
048addec 42812002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 4282
048addec
JD
4283 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
4284 (mac_menu_show): Add support for hierarchical popup menus.
4285 (add_menu_item): Remove indentation support.
4286 (fill_submenu, fill_menu): Create hierarchical menus
4287 instead of using indentation.
0b17a217 4288
048addec 42892002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 4290
048addec
JD
4291 * xdisp.c (try_cursor_movement): Don't call try_window here.
4292 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 4293
048addec 4294 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 4295
048addec 42962002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 4297
048addec
JD
4298 * macterm.c (XTread_socket): Call KeyTranslate for control and
4299 meta to deal correctly shifted non-alpha characters, like C-S-5
4300 being treated like C-%. Does not look for shift key to deal
4301 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 4302
048addec 43032002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 4304
048addec
JD
4305 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
4306 If it is non-nil, run timers. Use an unwind-protect to requeue
4307 the events that were read ahead.
4308 (popup_get_selection_unwind): New subroutine.
4309 (popup_get_selection_queue): File-scope variable now holds that queue.
4310 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
4311 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
4312 Use an unwind-protect to pop down the dialog box.
4313 (xdialog_show_unwind): New subroutine implements that.
f02cac82 4314
048addec
JD
4315 * xdisp.c (row_containing_pos): Change exit test using last_y.
4316 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 4317
048addec
JD
4318 * lread.c (load_error_handler): New function.
4319 (Fload): Handle errors in Fsubstitute_in_file_name.
4320 Don't expect Fsignal to return.
f02cac82 4321
048addec
JD
4322 * eval.c: Errors and throws work right with interrupt blocking.
4323 (struct catchtag): New elt interrupt_input_blocked.
4324 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
4325 (internal_catch, Fcondition_case, internal_condition_case)
4326 (internal_condition_case_1, internal_condition_case_2): Save it.
4327 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 4328
048addec 4329 * editfns.c (Fformat): Add parens.
f02cac82 4330
048addec
JD
4331 * dired.c (file_name_completion): Fix that change.
4332 Delete special quit-handling code; just use QUIT.
f02cac82 4333
048addec 43342002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
f02cac82 4335
048addec
JD
4336 * dired.c (file_name_completion): Close directory on error
4337 just as in directory_files_internal.
1a590729 4338
048addec 43392002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 4340
048addec
JD
4341 * window.c (Fset_window_configuration): Set old_point to correct
4342 value when new_current_buffer == current_buffer.
f02cac82 4343
048addec 43442002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 4345
048addec
JD
4346 Revisited my earlier fix for the following entry in etc/PROBLEMS:
4347 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
4348 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 4349
048addec
JD
4350 These changes were in part based upon suggestions made by Peter
4351 'Luna' Runestig [peter@runestig.com].
9785d95b 4352
048addec
JD
4353 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
4354 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 4355 g_b_init_get_sid_identifier_authority ): Add several static
048addec 4356 global variables.
9785d95b 4357
048addec
JD
4358 * w32.c (globals_of_w32): New function. Used to initialize those
4359 global variables that must always be initialized on startup even
4360 when the global variable initialized is non zero. Its primary
4361 purpose at this time is to set the global variables
4362 g_b_init_is_windows_9x, g_b_init_open_process_token,
4363 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
4364 g_b_init_get_sid_identifier_authority to 0 on startup.
4365 Called from main.
9785d95b 4366
048addec
JD
4367 * w32.c (is_windows_9x): Perform initialization only if
4368 g_b_init_is_windows_9x is equal to 0. On initialization set
4369 g_b_init_is_windows_9x equal to 1.
2308af15 4370
048addec
JD
4371 * w32.c (open_process_token): Perform initialization only if
4372 g_b_init_open_process_token is equal to 0. On initialization set
4373 g_b_init_open_process_token equal to 1.
2308af15 4374
048addec
JD
4375 * w32.c (get_token_information): Perform initialization only if
4376 g_b_init_get_token_information is equal to 0. On initialization
4377 set g_b_init_get_token_information equal to 1.
9785d95b 4378
048addec
JD
4379 * w32.c (lookup_account_sid): Perform initialization only if
4380 g_b_init_lookup_account_sid is equal to 0. On initialization
4381 set g_b_init_lookup_account_sid equal to 1.
9785d95b 4382
048addec
JD
4383 * w32.c (get_sid_identifier_authority): Perform initialization
4384 only if g_b_init_get_sid_identifier_authority is equal to 0.
4385 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 4386
048addec
JD
4387 * w32fns.c (globals_of_w32fns): New function. Used to initialize
4388 those global variables that must always be initialized on startup
4389 even when the global variable initialized is non zero.
4390 Its primary purpose at this time is to initialize the global variable
4391 track_mouse_event_fn.
9785d95b 4392
048addec
JD
4393 * w32fns.c (w32_wnd_proc): Remove initialization of
4394 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 4395
048addec 4396 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 4397
048addec
JD
4398 * w32menu.c (globals_of_w32menu): New function. Used to
4399 initialize those global variables that must always be initialized
4400 on startup even when the global variable initialized is non zero.
4401 Its primary purpose at this time is to initialize the global
4402 variables get_menu_item_info and set_menu_item_info.
9785d95b 4403
048addec
JD
4404 * w32menu.c (initialize_frame_menubar): Remove initialization of
4405 get_menu_item_info and set_menu_item_info.
9785d95b 4406
048addec 4407 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 4408
048addec
JD
4409 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
4410 Declare them.
9785d95b 4411
048addec
JD
4412 * emacs.c (main): Call globals_of_w32 prior to calling
4413 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
4414 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
4415 is defined.
9785d95b 4416
048addec
JD
4417 * w32term.c (x_update_window_begin): Fix Windows API error
4418 detected by BoundsChecker. Test to determine if
4419 w32_system_caret_hwnd is NULL prior to attempting to use
4420 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 4421
048addec
JD
4422 * w32term.c (x_update_window_end): Fix Windows API error
4423 detected by BoundsChecker. Test to determine if
4424 w32_system_caret_hwnd is NULL prior to attempting to use
4425 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 4426
048addec 44272002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 4428
048addec
JD
4429 * coding.c (coding_system_require_warning): New variable.
4430 (syms_of_coding): DEFVAR it.
b6da19ef 4431
048addec 4432 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 4433
048addec
JD
4434 * fileio.c (choose_write_coding_system): Even if
4435 Vcoding_system_for_write is non-nil, if
4436 coding_system_require_warning is nonzero, call
4437 Vselect_safe_coding_system_function.
bfcf6dbe 4438
048addec 44392002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 4440
048addec
JD
4441 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
4442 (lisp): Add font-core.
2c568af5 4443
048addec 44442002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 4445
048addec
JD
4446 * textprop.c (text_read_only): New arg `propval'.
4447 (get_char_property_and_overlay): Remove unused var `next_overlay'.
4448 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 4449
048addec 44502002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 4451
048addec 4452 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 4453
048addec 44542002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 4455
048addec
JD
4456 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
4457 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
4458 Be more careful about when help_events are generated.
96720f09 4459
048addec 44602002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 4461
048addec
JD
4462 * macterm.c (mac_check_for_quit_char): Correctly set the
4463 modifiers of the event to 0.
4464 * mac.c (sys_select): Duplicate rfds before calling select to
4465 ensure that rfds survive the while loop.
e5ae1c49 4466
048addec 44672002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 4468
048addec
JD
4469 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
4470 row_containing_pos returned NULL.
2eb46b2d 4471
048addec 44722002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 4473
6bdb309a 4474 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 4475 non-blocking.
6bdb309a 4476 (sys_select): Fix sys_select to not use a timeout larger than
048addec 4477 the one given.
b11f1d8a 4478
048addec 44792002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 4480
048addec 4481 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 4482
048addec 44832002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 4484
048addec
JD
4485 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
4486 as the last thing.
a4ac5b17 4487
048addec 44882002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 4489
048addec 4490 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 4491
048addec 44922002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 4493
048addec
JD
4494 * editfns.c (Fformat): Handle precision in string conversion
4495 specifiers like libc functions do (ie, print at most that many
4496 characters).
85cce843 4497
048addec 44982002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 4499
048addec
JD
4500 * xdisp.c (row_containing_pos): Check more carefully
4501 whether charpos is really in the row before returning it.
0d4d26a7 4502
048addec 45032002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 4504
048addec 4505 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 4506
048addec
JD
4507 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
4508 each stack frame. This may change as it could be time consuming.
0d4d26a7 4509
048addec
JD
4510 * macterm.c (mac_check_for_quit_char, quit_char_comp)
4511 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 4512 (mac_initialize): Add code to check for pressing of quit_char
048addec 4513 in the OS event queue.
b11f1d8a 4514
048addec
JD
4515 * mac.c (sys_select): Call mac_check_for_quit_char every second
4516 while blocking on select.
0d4d26a7 4517
048addec
JD
4518 * mac.c (sys_read): Use sys_select to test for input first
4519 before calling read, to allow C-g to break.
9252f7bc 4520
048addec 45212002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 4522
048addec 4523 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 4524
048addec 4525 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 4526
048addec 4527 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 4528
048addec
JD
4529 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
4530 autoload.
9252f7bc 4531
048addec 4532 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 4533
048addec 4534 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 4535
048addec 45362002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 4537
048addec 4538 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 4539
048addec 45402002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 4541
048addec 4542 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 4543
048addec 4544 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 4545
048addec 4546 * alloca.c: Don't use #error.
02d588e2 4547
048addec 45482002-12-03 Dave Love <fx@gnu.org>
02d588e2 4549
048addec
JD
4550 * buffer.c (Qucs_set_table_for_input): New.
4551 (Fget_buffer_create): Use it.
4552 (Qset_buffer_major_mode_hook): Deleted.
4553 (Fset_buffer_major_mode): Revert previous change.
4554 (init_buffer_once): Intern ucs-set-table-for-input.
4555 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
4556 Add &Qucs_set_table_for_input.
451e2697 4557
048addec 45582002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 4559
048addec
JD
4560 * callint.c (Fcall_interactively): Use next_event only if less
4561 than key_count.
72742a99 4562
048addec 45632002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 4564
048addec
JD
4565 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
4566 names to 255 characters.
72742a99 4567
048addec
JD
4568 * macterm.c (XTread_socket): If all frames have been collapsed,
4569 expand the first one before handling drag-and-drop events.
72742a99 4570
048addec
JD
4571 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
4572 which is detected by autoconf.
40e6ff95 4573
048addec 45742002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 4575
048addec
JD
4576 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
4577 offset in two hints table to allow prebinding to be redone and
4578 allow the executable to be stripped.
c02138c6 4579
048addec 45802002-11-29 Dave Love <fx@gnu.org>
c02138c6 4581
048addec
JD
4582 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
4583 already provided.
0e47bbf7 4584
048addec 45852002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 4586
048addec
JD
4587 * xdisp.c (start_display): Check more intelligently for
4588 whether the line is continued.
4589 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 4590
048addec 45912002-11-28 Dave Love <fx@gnu.org>
44129dcb 4592
048addec
JD
4593 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
4594 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 4595
048addec 45962002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 4597
048addec
JD
4598 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
4599 more descriptive error output from lread.c:Fload upon most require
4600 cycles during boostrapping.
1637fd2c 4601
048addec 46022002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 4603
048addec
JD
4604 * fileio.c (Finsert_file_contents): Give a more appropriate error
4605 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 4606
048addec
JD
4607 * dired.c (Ffile_attributes): Don't return negative file sizes for
4608 files bigger than 2Gb when off_t is 32 bit.
540c2788 4609
048addec 46102002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 4611
048addec 4612 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 4613
048addec
JD
4614 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
4615 Test GETPGRP_VOID instead.
4616 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 4617
048addec
JD
4618 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
4619 Don't define.
4620 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 4621
048addec 4622 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 4623
048addec 46242002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 4625
048addec
JD
4626 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
4627 supported.
4042a81a 4628
048addec 46292002-11-25 Dave Love <fx@gnu.org>
4042a81a 4630
048addec 4631 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 4632
048addec 4633 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 4634
048addec 46352002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 4636
048addec 4637 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 4638
048addec 46392002-11-24 Steven Tamm <steventamm@mac.com>
82122254 4640
048addec
JD
4641 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
4642 determine the size of pointers alloced in unexed space instead
4643 of using possibly invalid emacs_zone pointers. This fixes the
4644 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 4645
048addec 46462002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 4647
048addec 4648 * search.c (Fstring_match): Doc fix.
c1ee53bc 4649
048addec
JD
4650 * callint.c (Fcall_interactively): If a command fails because
4651 `*' detects a read-only buffer, but RECORD_FLAG is set,
4652 record it anyway if the args don't actually do tty input.
5598c32e 4653
048addec 46542002-11-22 Dave Love <fx@gnu.org>
5598c32e 4655
048addec 4656 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 4657
048addec
JD
4658 * keyboard.c (interrupt_signal): Provide forward declaration.
4659 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 4660
048addec 4661 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 4662
048addec 46632002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 4664
048addec
JD
4665 * eval.c (interactive_p): Skip any number of bytecode
4666 and special form frames, in any order.
516eea8e 4667
048addec 46682002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 4669
048addec
JD
4670 * w32fns.c (convert_mono_to_color_image): New function.
4671 (xbm_load, xbm_load_image): Use it when foreground or background
4672 is explicitly set.
04dbfa08 4673
048addec 46742002-11-19 Dave Love <fx@gnu.org>
04dbfa08 4675
048addec 4676 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 4677
048addec 46782002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 4679
048addec
JD
4680 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
4681 (XPutPixel): Swap blue and red.
4682 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
4683 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
4684 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
4685 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 4686
048addec 46872002-11-18 Dave Love <fx@gnu.org>
d824beee 4688
048addec 4689 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 4690
048addec 4691 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 4692
048addec 4693 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 4694
048addec
JD
4695 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
4696 malloc, realloc, calloc.
d824beee 4697
048addec
JD
4698 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
4699 (bcmp): Don't define.
d824beee 4700
048addec 4701 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 4702
048addec 4703 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 4704
048addec 4705 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 4706
048addec 4707 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 4708
048addec
JD
4709 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
4710 Don't include alloca.h.
d824beee 4711
048addec 4712 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 4713
048addec 4714 * regex.c (_GNU_SOURCE): Don't define.
1998560a 4715
048addec 4716 * process.c (_GNU_SOURCE): Don't define.
1998560a 4717
048addec 4718 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 4719
048addec 47202002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 4721
048addec 4722 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 4723
048addec 47242002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 4725
048addec
JD
4726 * dispextern.h (struct face): Add `overstrike' field.
4727 * xterm.c (x_draw_glyph_string_foreground)
4728 (x_draw_composite_glyph_string_foreground): Implement overstriking.
4729 * xfaces.c (load_face_font): Set `face->overstrike' based on
4730 result from choose_face_font.
4731 (best_matching_font, choose_face_font): Add `needs_overstrike'
4732 argument, and use it to return whether overstriking is desirable
4733 for this face/font combo.
4734 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 4735
048addec 47362002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 4737
048addec
JD
4738 This change is my fix for the following entry in etc/PROBLEMS:
4739 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
4740 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 4741
048addec
JD
4742 * w32.c: Added wrapper functions around the win32 API functions
4743 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
4744 GetSidIdentifierAuthority. These wrapper functions serve two
4745 purposes:
4746 1. They ensure that the wrapped function can never be called
4747 when Emacs is running on an operating system on which they are
4748 not supported (Microsoft Windows 95 / 98 / ME).
4749 2. They call the wrapped functions via function pointers rather
4750 than calling them directly. This avoids taking advantage of the
4751 undocumented fact that although these functions are not supported
4752 in the 9x branch of Microsoft Windows, the functions do exist in
4753 the version of advapi32.dll that is found in the 9x branch of
4754 Microsoft Windows.
f60ae425 4755
6bdb309a 4756 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
4757 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
4758 and GetSidIdentifierAuthority with calls to the newly added
4759 wrapper functions.
f60ae425 4760
048addec
JD
4761 * w32.h: Added extern declarations for the following functions:
4762 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
4763 syms_of_w32menu, and void syms_of_fontset.
f60ae425 4764
6bdb309a 4765 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
4766 function pointer track_mouse_event_fn in the handler for the
4767 WM_SETFOCUS message.
3582b6a3 4768
6bdb309a 4769 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
4770 reinitialize the function pointers set_menu_item_info and
4771 get_menu_item_info.
f60ae425 4772
048addec 47732002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 4774
048addec
JD
4775 * sound.c: Added a partial implementation of play-sound-internal
4776 for Microsoft Windows. Added various #ifdef / #else / #endif
4777 code blocks to separate the code that will compile under
4778 Microsoft Windows from the code that is specific to Gnu/Linux.
4779 Moved several blocks of code around to make this separation of code
4780 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 4781
048addec 4782 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 4783
048addec
JD
4784 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
4785 added support for play-sound-internal under Windows would be
4786 included in the build of Emacs.
517f42a0 4787
048addec 47882002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 4789
048addec 4790 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 4791
048addec 4792 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 4793
048addec 47942002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 4795
048addec
JD
4796 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
4797 (adjust_point_for_property): Move out of display and invisible even if
4798 we were already inside before (in case a property was added while
4799 we weren't looking). Be more careful when handling invisible props.
4800 Skip invisible text as if it really wasn't there at all.
aab83f91 4801
048addec 48022002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 4803
048addec
JD
4804 * w32term.c (x_draw_image_foreground)
4805 (w32_draw_image_foreground_1): Use standard copy and invert
4806 operations to draw images.
aab83f91 4807
048addec
JD
4808 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
4809 depth of 1.
4810 (xbm_read_bitmap_data): Invert bits as xbm is read in.
4811 (XPutPixel): Don't invert bits here.
a4478a76 4812
048addec 48132002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 4814
048addec
JD
4815 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
4816 (w32_draw_image_foreground_1): Handle image masks.
4817 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 4818
048addec
JD
4819 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
4820 (x_from_xcolors): Adjust RGB values for W32.
4821 (image_background, image_background_transparent)
4822 (postprocess_image, x_to_xcolors, x_disable_image)
4823 (x_build_heuristic_mask): Adapt for W32 and enable.
4824 (x_create_x_image_and_pixmap): Mark images with palettes as such.
4825 (xbm_load): Remove unused variable.
03670a65 4826
048addec 48272002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 4828
048addec 4829 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 4830
048addec 48312002-11-14 Dave Love <fx@gnu.org>
59daa29a 4832
048addec 4833 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 4834
048addec
JD
4835 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
4836 * xmenu.c (unuse_menu_items, digest_single_submenu):
4837 * xfns.c (x_put_x_image):
4838 * xdisp.c (message2_nolog, set_message):
4839 * undo.c (record_point):
4840 * terminfo.c (tparam):
4841 * syntax.c (scan_sexps_forward):
4842 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
4843 * composite.c (update_compositions):
4844 * cm.c (calccost, cmgoto):
4845 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 4846
048addec 4847 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 4848
048addec
JD
4849 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
4850 Don't declare.
59daa29a 4851
048addec 4852 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 4853
048addec
JD
4854 * fns.c (Fcopy_sequence): Doc fix.
4855 (Fmap_char_table): Cast `call2'.
3947677c 4856
048addec
JD
48572002-11-14 Francesco Potorti` <pot@gnu.org>
4858
4859 * s/sol2-8.h: New file.
4860
48612002-11-14 Kim F. Storm <storm@cua.dk>
4862
4863 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
4864 dependency on `risky-local-variable' and the :propertize form.
4865
48662002-11-12 Stefan Monnier <monnier@cs.yale.edu>
4867
4868 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
4869
4870 * syntax.c (scan_sexps_forward): Undo last patch.
4871 Use a more obvious fix: check eob before updating the syntax table.
4872
48732002-11-09 Stefan Monnier <monnier@cs.yale.edu>
4874
4875 * syntax.c (scan_sexps_forward): Update syntax table before reading
4876 a char rather than after so we don't update the table past eob.
4877
48782002-11-09 Dave Love <fx@gnu.org>
4879
4880 * buffer.c (Fset_buffer_major_mode): Fix last change.
4881
4882 * regex.c (regexec): Fix pmatch declaration.
4883
4884 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
4885
4886 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
4887 to self-inserting characters.
4888 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
4889
4890 * coding.c (Vtranslation_table_for_input): New.
4891 (syms_of_coding): DEFVAR it.
4892
48932002-11-08 Juanma Barranquero <lektu@terra.es>
4894
4895 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
4896 window.
4897
48982002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4899
6bdb309a 4900 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
4901 cp, and i.
4902
49032002-11-06 Dave Love <fx@gnu.org>
4904
4905 * buffer.c (Qset_buffer_major_mode_hook): New.
4906 (Fset_buffer_major_mode): Use it.
4907
49082002-11-06 Richard M. Stallman <rms@gnu.org>
4909
4910 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
4911 and stop_polling.
4912
4913 * process.c (wait_reading_process_input):
4914 Test POLLING_PROBLEM_IN_SELECT, not hpux.
4915 Avoid initialization for auto Lisp_Object var.
4916
4917 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
4918
4919 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
4920
49212002-11-05 Richard M. Stallman <rms@gnu.org>
4922
4923 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
4924
4925 * callint.c (Fcall_interactively): New local filter_specs.
4926 (Fcall_interactively): Check for progn as well as let.
4927 Add a gcpro.
4928 (Qprogn): New variable.
4929 (syms_of_callint): Staticpro and init Qprogn.
4930
49312002-11-04 John Paul Wallington <jpw@shootybangbang.com>
4932
4933 * lread.c (Feval_buffer): Doc fix.
4934
49352002-11-04 Dave Love <fx@gnu.org>
4936
4937 * keyboard.c (read_char): Always translate iff
4938 Vkeyboard_translate_table is a char table and c is valid.
4939
4940 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
4941 and fix C types.
4942
49432002-11-03 Stefan Monnier <monnier@cs.yale.edu>
4944
4945 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
4946
4947 * editfns.c (get_pos_property): Don't hardcode Qfield.
4948
4949 * keyboard.c (adjust_point_for_property): Handle `display' prop on
4950 overlays. Also handle `invisible' prop.
4951
49522002-11-02 Stefan Monnier <monnier@cs.yale.edu>
4953
4954 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
4955 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
4956
49572002-11-01 Andreas Schwab <schwab@suse.de>
4958
4959 * editfns.c (Fmessage): Revert last change to properly handle %%.
4960
49612002-11-01 Stefan Monnier <monnier@cs.yale.edu>
4962
4963 * xmenu.c (unuse_menu_items): New fun.
4964 (menu_items_inuse): New var.
4965 (syms_of_xmenu): Initialize it.
4966 (init_menu_items): Use it to detect re-entrance.
4967 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
4968 (Fx_popup_menu): Remove spurious XSETFRAME.
4969
4970 * editfns.c (find_field): Make an exception for nil fields.
4971
49722002-11-01 Dave Love <fx@gnu.org>
4973
4974 * m/gec63.h: Deleted.
4975
49762002-10-31 Dave Love <fx@gnu.org>
4977
4978 * xterm.c (XTread_socket): Fix last change.
4979 (xaw_scroll_callback): Cast call_data to long to avoid warning.
4980
49812002-10-31 Stefan Monnier <monnier@cs.yale.edu>
4982
4983 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
4984
49852002-10-30 Stefan Monnier <monnier@cs.yale.edu>
4986
4987 * editfns.c (overlays_around, get_pos_property): New funs.
4988 (find_field): Use them.
4989 Also be careful not to modify POS before its last use.
4990 (Fmessage): Don't Fformat if there's nothing to format.
4991
49922002-10-30 Dave Love <fx@gnu.org>
4993
4994 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
4995 [HAVE_PTY_H]; Include pty.h.
4996
4997 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
4998
4999 * xterm.c (Qeql): Declare.
5000 (Vx_keysym_table): New.
5001 (syms_of_xterm): Initialize it.
5002 (XTread_socket): Use it. Deal with ASCII keysyms.
5003 (XSetIMValues) [HAVE_X11R6]: Prototype.
5004
5005 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
5006 (lispy_kana_keys): Comment out.
5007 (make_lispy_event) [XK_kana_A]: Comment out.
5008 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
5009 Fix sprintf call.
5010
5011 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
5012 regexp.h change).
5013 (TERMINFO, LIBS_TERMCAP): Define.
5014
5015 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
5016 (bcmp): Define conditional on HAVE_BCMP.
5017 (NO_SIOCTL_H): Don't define.
5018 (TIOCSIGSEND): Don't make conditional on IRIX6.
5019
5020 * s/sol2-5.h: Don't include strings.h.
5021 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
5022
5023 * s/irix6-0.h (IRIX6): Don't define.
5024 (bcopy, bcmp, bzero): Don't undef.
5025
5026 * s/irix6-5.h: Don't include strings.h.
5027 (IRIX6): Don't define.
5028 (bcopy, bcmp, bzero): Don't undef.
5029
5030 * syntax.c (Fforward_comment): Doc fix.
5031
50322002-10-29 Kim F. Storm <storm@cua.dk>
5033
5034 * process.c (Fsignal_process): Allow PROCESS to be specified by
5035 name in addition to pid (as integer or string).
5036
50372002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
5038
5039 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
5040 environments.
5041
50422002-10-27 Kim F. Storm <storm@cua.dk>
5043
5044 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
5045
5046 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
5047
5048 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
5049
5050 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
5051
50522002-10-26 Richard M. Stallman <rms@gnu.org>
5053
5054 * editfns.c (Fformat): Detect invalid format letters for floats.
5055
50562002-10-25 Kenichi Handa <handa@m17n.org>
5057
5058 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
5059 (x_set_title): Likewise.
5060
50612002-10-25 Juanma Barranquero <lektu@terra.es>
5062
5063 * macgui.h:
5064 * w32gui.h: Remove definition of XColor.
5065
5066 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
5067
50682002-10-24 Kim F. Storm <storm@cua.dk>
5069
5070 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
5071 Callers changed (supply dummy arg).
5072
5073 * lisp.h (get_window_cursor_type): Update prototype.
5074
5075 * w32term.c (x_display_and_set_cursor): Get active_cursor from
5076 get_window_cursor_type to track system caret.
5077
50782002-10-24 Kim F. Storm <storm@cua.dk>
5079
5080 * process.c (Fformat_network_address): New function.
5081 (syms_of_process): Defsubr it.
5082 (list_processes_1): Use it to format :local/:remote address if
5083 service/host is not set; before emacs would crash in that case.
5084 (Fmake_network_process): Don't use Ffind_operation_coding_system
5085 to setup coding system if host or service is not set.
5086
50872002-10-23 Juanma Barranquero <lektu@terra.es>
5088
5089 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
5090
5091 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
5092 COLORREF.
5093
5094 * macgui.h:
5095 * w32gui.h: Add definition of XColor.
5096
5097 * macfns.c:
5098 * w32fns.c:
5099 * xfaces.c: Remove definition of XColor.
5100
51012002-10-22 Stefan Monnier <monnier@cs.yale.edu>
5102
5103 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
5104
5105 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
5106 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
5107 window if it is dedicated.
5108 (Fshrink_window): Add preserve_before as was done for enlarge_window.
5109 (Vspecial_display_function): Update docstring.
5110
5111 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
5112 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
5113 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
5114
51152002-10-21 Stefan Monnier <monnier@cs.yale.edu>
5116
5117 * casefiddle.c (casify_region): Don't treat a prefix char as part
5118 of a word when at the beginning.
5119
51202002-10-17 Juanma Barranquero <lektu@terra.es>
5121
5122 * lread.c (syms_of_lread): Fix typos.
5123
51242002-10-17 Dave Love <fx@gnu.org>
5125
5126 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
5127
51282002-10-16 Richard M. Stallman <rms@gnu.org>
5129
5130 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
5131
51322002-10-14 Juanma Barranquero <lektu@terra.es>
5133
5134 * w16select.c (syms_of_win16select): Fix docstring for
5135 `selection-coding-system'.
5136
5137 * w32select.c (syms_of_w32select): Likewise.
5138
51392002-10-14 Stefan Monnier <monnier@cs.yale.edu>
5140
5141 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
5142 a backslash-quoted char.
5143 (scan_lists, scan_sexps_forward): Pacify the compiler.
5144
51452002-10-13 Richard M. Stallman <rms@gnu.org>
5146
5147 * window.c (window_scroll): Set immediate_quit.
5148
5149 * print.c (print): When backquote form is the car of a list,
5150 output in old style. Use old_backquote_output to output all
5151 comma forms inside it in old style too.
5152
5153 * buffer.h (struct buffer): Move `undo_list' down below `name'.
5154
51552002-10-11 Markus Rost <rost@math.ohio-state.edu>
5156
5157 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
5158 batch mode).
5159
5160 * lread.c (Fload): Doc fix (load-suffixes).
5161
51622002-10-10 Steven Tamm <steventamm@mac.com>
5163
5164 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
5165 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
5166 Also switch the default to Qnil from Qt.
5167
51682002-10-08 Kenichi Handa <handa@m17n.org>
5169
5170 * coding.c (code_convert_region): When we need more GAP for
5171 conversion, pay attention to the case that coding->produced is not
5172 greater than coding->consumed.
5173
51742002-10-07 Richard M. Stallman <rms@gnu.org>
5175
5176 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
5177
51782002-10-06 Andrew Choi <akochoi@shaw.ca>
5179
5180 * macmenu.c (mac_menu_show): Add j to count menu items; match
5181 menu_item_selection to it to find selected item.
5182
51832002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5184
5185 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
5186 cases. The correct fix is to pass ReparentNotify to Xt.
5187 The shell widget interprets ConfigureNotify differently depending
5188 on if it has been reparented or not.
5189
51902002-10-05 Markus Rost <rost@math.ohio-state.edu>
5191
5192 * editfns.c (Fformat_time_string): Doc fix.
5193
51942002-10-05 John Paul Wallington <jpw@shootybangbang.com>
5195
5196 * fns.c (Flength): Doc fix.
5197
51982002-10-04 Stefan Monnier <monnier@cs.yale.edu>
5199
5200 * keyboard.c (keyremap): New struct.
5201 (read_key_sequence): Use it: globally replace keytran_foo with
5202 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
5203 keytran_next and fkey_next to just `next'.
5204
52052002-10-04 Steven Tamm <steventamm@mac.com>
5206
5207 * macterm.c (keycode_to_xkeysym_table): Change return to be
5208 treated like an X keysym.
5209
52102002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5211
5212 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
5213 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
5214 This is to also handle x/y changes that occur because of a resize.
5215
52162002-10-02 John Paul Wallington <jpw@shootybangbang.com>
5217
5218 * frame.c (Vdelete_frame_functions): New variable.
5219 (syms_of_frame): Initialize and defvar it.
5220 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
5221 it when frame's `tooltip' parameter is non-nil.
5222
5223 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
5224
5225 * w32fns.c (x_create_tip_frame): Likewise.
5226
5227 * macfns.c (x_create_tip_frame): Likewise.
5228
52292002-09-30 Kenichi Handa <handa@m17n.org>
5230
5231 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
5232 -1 before calling ccl_driver.
5233
5234 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
5235 Only when it is non-nil, handle composition sequence.
5236 (setup_coding_system) <0>: Don't force composition handling.
5237
5238 * Makefile.in (lisp, shortlisp): Add utf-16.elc
5239
52402002-09-29 Richard M. Stallman <rms@gnu.org>
5241
5242 * search.c (Freplace_match): Adjust match data for the substitution
5243 just made in the buffer.
5244
5245 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
5246 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
5247
52482002-09-27 Richard M. Stallman <rms@gnu.org>
5249
5250 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
5251 (read_char): Use them. Do all exits thru the end of the function.
5252
52532002-09-27 Kenichi Handa <handa@etl.go.jp>
5254
5255 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
5256 is nil.
5257
52582002-09-26 Richard M. Stallman <rms@gnu.org>
5259
5260 * regex.h (__restrict_arr): Don't define if already defined.
5261
5262 * coding.c (run_pre_post_conversion_on_str):
5263 Save and restore Vdeactivate_mark.
5264
52652002-09-26 John Paul Wallington <jpw@shootybangbang.com>
5266
5267 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
5268
52692002-09-26 Kenichi Handa <handa@etl.go.jp>
5270
5271 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
5272 nonzero, try face's family at first. Otherwise try FAMILY at first.
5273 (choose_face_font): If C is a single byte char or latin-1, call
5274 try_font_list with PREFER_FACE_FAMILY 1.
5275
52762002-09-21 Richard M. Stallman <rms@gnu.org>
5277
5278 * window.c (select_window_1): Don't select frame.
5279 Set frame's selected window only when frame itself is selected.
5280 (Fselect_window): Doc fix.
5281
52822002-09-18 Kim F. Storm <storm@cua.dk>
5283
5284 * process.c (make-network-process): Doc fix (there is no
5285 network-server-log-function hook).
5286
52872002-09-18 Richard M. Stallman <rms@gnu.org>
5288
5289 * print.c (print): Clear out the unused parts of Vprint_number_table.
5290 (syms_of_print): Doc fix for `print-number-table'.
5291
5292 * unexelf.c (unexec): Undo previous change.
5293
52942002-09-17 Andreas Schwab <schwab@suse.de>
5295
5296 * m/alpha.h [LINUX]: Don't define DATA_START.
5297
52982002-09-16 Dave Love <fx@gnu.org>
5299
5300 * unexelf.c (unexec): Deal with .got, reinstating change from
5301 25-08-1999.
5302
53032002-09-13 Richard M. Stallman <rms@gnu.org>
5304
5305 * s/sol2-6.h (UNEXEC): Comment out definition.
5306
5307 * unexsol.c (unexec): Don't downcase first letter of error msg.
5308
5309 * xfaces.c (Fcolor_supported_p): Just one arg is required.
5310
53112002-09-12 Markus Rost <rost@math.ohio-state.edu>
5312
5313 * unexsol.c: Include buffer.h, charset.h, coding.h.
5314
53152002-09-11 Richard M. Stallman <rms@gnu.org>
5316
5317 * unexsol.c: Don't use report_file_error; do it by hand
5318 using dlerror.
5319
5320 * process.c (wait_reading_process_input, both versions):
5321 Before calling turn_on_atimers, call stop_polling.
5322
5323 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
5324
5325 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
5326 we go to too_near_end, call clear_glyph_matrix.
5327 (redisplay_window): After make_cursor_line_fully_visible,
5328 call clear_glyph_matrix and bypass `goto done'.
5329
5330 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
5331 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
5332
53332002-09-10 Richard M. Stallman <rms@gnu.org>
5334
5335 * fileio.c (Fdo_auto_save): Catch error making directory.
5336 Only call push_message if we need to.
5337 At the same time, make an unwind-protect to pop it.
5338 Rename local message_p to old_message_p.
5339 (do_auto_save_make_dir, do_auto_save_eh): New functions.
5340 (do_auto_save_unwind): Don't call pop_message.
5341
5342 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
5343
5344 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
5345
5346 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
5347
5348 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
5349
53502002-09-10 Stefan Monnier <monnier@cs.yale.edu>
5351
5352 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
5353 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
5354 (re_match_2_internal): Be more careful with infinite loops.
5355
53562002-09-10 Kim F. Storm <storm@cua.dk>
5357
5358 * macros.c (end_kbd_macro): New function.
5359 (Fend_kbd_macro): Use it.
5360
5361 * macros.h (end_kbd_macro): Declare extern.
5362
5363 * keyboard.c (Fdiscard_input): If defining keyboard macro,
5364 end and save it instead of discarding it.
5365
53662002-09-09 Markus Rost <rost@math.ohio-state.edu>
5367
5368 * s/sol2-6.h: Fix typo. Add comment.
5369
53702002-09-09 Richard M. Stallman <rms@gnu.org>
5371
5372 * regex.c (regnum_t): Use signed int, not unsigned int.
5373
5374 * s/sol2-6.h: New file.
5375
5376 * s/sol2-5.h (UNEXEC): Definition deleted.
5377
53782002-09-08 Kim F. Storm <storm@cua.dk>
5379
5380 * macros.c (executing_macro_index): Change type to EMACS_INT.
5381 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
5382
5383 * macros.h (executing_macro_index): Change type to EMACS_INT.
5384
53852002-09-06 Richard M. Stallman <rms@gnu.org>
5386
5387 * casetab.c (set_case_table): Make canon table point to eqv table.
5388
53892002-09-06 Juanma Barranquero <lektu@terra.es>
5390
5391 * coding.c (syms_of_coding): Fix spacing.
5392
5393 * composite.c (Fcompose_region_internal)
5394 (Fcompose_string_internal): Likewise.
5395
5396 * data.c (Flsh): Likewise.
5397
5398 * fontset.c (Fset_fontset_font): Likewise.
5399
5400 * macfns.c (Fx_server_max_request_size): Likewise.
5401
5402 * w16select.c (syms_of_win16select): Likewise.
5403
5404 * w32select.c (syms_of_w32select): Likewise.
5405
5406 * xselect.c (syms_of_xselect): Likewise.
5407
54082002-09-05 Richard M. Stallman <rms@gnu.org>
5409
5410 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
5411 call EXTEND_RANGE_TABLE and return a proper value.
5412 (set_image_of_range): Don't call set_image_of_range_1
5413 if no TRANSLATE or if range includes all of Latin-1.
5414 Only call it for the Latin-1 part of the range.
5415 For other cases, make two separate ranges,
5416 one for the original specified characters and one for
5417 their case-conversions.
5418
54192002-09-04 Richard M. Stallman <rms@gnu.org>
5420
5421 * s/sol2-5.h (UNEXEC): Use unexsol.o.
5422
5423 * window.c (displayed_window_lines): Correct for one-off bug
5424 in HEIGHT on non-window displays.
5425
5426 * regex.c (set_image_of_range_1): New function.
5427 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
5428 Return a value to indicate running out of memory.
5429 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
5430 (extend_range_table_work_area): New subroutine.
5431 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
5432 Different calling conventions, and used from set_image_of_range{,_1}.
5433 (IMMEDIATE_QUIT_CHECK): Definitions moved.
5434
54352002-09-04 Juanma Barranquero <lektu@terra.es>
5436
5437 * makefile.w32-in: All dependencies updated.
5438
54392002-09-01 Richard M. Stallman <rms@gnu.org>
5440
5441 * unexsol.c: New file.
5442
5443 * xfns.c (Qbox): Declare external, don't define.
5444
5445 * xdisp.c (redisplay_window) <force-start case>:
5446 If point is on semi-visible last line, reposition
5447 it at previous line.
5448
5449 * alloc.c (display_malloc_warning): Use display-warning.
5450 (malloc_warning_1): Function deleted.
5451
5452 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
5453
5454 * lread.c (read1): Handle #! by skipping the line.
5455
54562002-08-31 Richard M. Stallman <rms@gnu.org>
5457
5458 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
5459 Don't include LDFLAGS.
5460 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
5461
54622002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
5463
5464 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
5465 member of x_display_info unless we compile for some window system.
5466
54672002-08-31 Kim F. Storm <storm@cua.dk>
5468
5469 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
5470 (get_window_cursor_type): Don't use them.
5471 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
5472
54732002-08-30 Kenichi Handa <handa@etl.go.jp>
5474
5475 * xdisp.c (get_next_display_element): Fix previous change.
5476
54772002-08-30 Andrew Choi <akochoi@shaw.ca>
5478
5479 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
5480 (expose_window): Use it to fix the display of overlapping
5481 rows (merge code from xterm.c).
5482
5483 * macfns.c (Qbox): Add extern declaration.
5484
54852002-08-30 Juanma Barranquero <lektu@terra.es>
5486
5487 * w32fns.c (Qbox): Make extern.
5488 (syms_of_w32fns): Remove initialization of Qbox.
5489
54902002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
5491
5492 * xfns.c (Fx_open_connection): Fix error message.
5493
54942002-08-30 Kim F. Storm <storm@cua.dk>
5495
5496 The following changes consolidates the handling of the cursor
5497 type in xdisp.c, moving duplicate code and functionality from
5498 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
5499
5500 * frame.h (enum text_cursor_kinds): Consolidated here.
5501 Added DEFAULT_CURSOR value.
5502 (struct frame) <desired_cursor, cursor_width>
5503 <blink_off_cursor, blink_off_cursor_width>: New fields.
5504 Consolidated from output_x, output_w32 and output_mac structs.
5505 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
5506 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
5507
5508 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
5509 Variables consolidated here.
5510 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
5511 (Vcursor_in_non_selected_windows): Renamed from
5512 cursor_in_non_selected_windows and changed to Lisp_Object.
5513 (syms_of_xdisp): Define and staticpro new and moved variables.
5514 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
5515 consolidated here. Recognize Qhollow setting.
5516 (set_frame_cursor_types): New function to set frame cursor types
5517 based on the frame parameters.
5518 (get_window_cursor_type): New function to calculate new cursor
5519 type and width for the specified window. Based on duplicated
5520 code consolidated here.
5521 Enhancements: cursor-in-non-selected-windows may be a cursor type,
5522 check buffer-local alternate-cursor-type and blink-cursor-alist
5523 before using built-in blink off methods.
5524
5525 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
5526
5527 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
5528 (get_specified_cursor_type, get_window_cursor_type)
5529 (set_frame_cursor_types): Added prototypes.
5530
5531 * macfns.c (x_specified_cursor_type): Removed.
5532 (x_set_cursor_type): Use set_frame_cursor_types.
5533 (Qbar, Qbox): Removed.
5534 (syms_of_macfns): Don't intern or staticpro them.
5535
5536 * macterm.c (x_specified_cursor_type): Remove prototype.
5537 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
5538 (x_display_and_set_cursor): Use get_window_cursor_type.
5539 Remove unused local variables cursor_non_selected, active_cursor.
5540 Redraw cursor if hbar cursor width changes.
5541 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
5542
5543 * macterm.h (enum text_cursor_kinds): Removed.
5544 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
5545 <blink_off_cursor, blink_off_cursor_width>: Members removed.
5546 (FRAME_DESIRED_CURSOR): Macro removed.
5547
5548 * w32fns.c (Vblink_cursor_alist): Removed.
5549 (Qbar, Qhbar, Qbox, Qhollow): Removed.
5550 (syms_of_w32fns): Don't intern, staticpro, or define them.
5551 (x_specified_cursor_type): Removed.
5552 (x_set_cursor_type): Use set_frame_cursor_types.
5553
5554 * w32term.c (x_specified_cursor_type): Remove prototype.
5555 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
5556 (x_display_and_set_cursor): Use get_window_cursor_type.
5557 Remove unused local variables cursor_off_state.
5558 Redraw cursor if hbar cursor width changes.
5559 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
5560
5561 * w32term.h (enum text_cursor_kinds): Removed.
5562 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
5563 <blink_off_cursor, blink_off_cursor_width>: Members removed.
5564 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
5565 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
5566 (struct w32_display_info) <x_highlight_frame>: Renamed member from
5567 w32_highlight_frame.
5568
5569 * xfns.c (Vblink_cursor_alist): Removed.
5570 (Qbar, Qhbar, Qbox, Qhollow): Removed.
5571 (syms_of_xfns): Don't intern, staticpro, or define them.
5572 (x_specified_cursor_type): Removed.
5573 (x_set_cursor_type): Use set_frame_cursor_types.
5574
5575 * xterm.c (x_specified_cursor_type): Remove prototype.
5576 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
5577 (x_display_and_set_cursor): Use get_window_cursor_type.
5578 Remove unused local variables cursor_off_state.
5579 Redraw cursor if hbar cursor width changes.
5580
5581 * xterm.h (enum text_cursor_kinds): Removed.
5582 (struct output_x) <current_cursor, desired_cursor, cursor_width>
5583 <blink_off_cursor, blink_off_cursor_width>: Members removed.
5584 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
5585 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
5586 (x_specified_cursor_type): Remove prototype.
5587
55882002-08-28 Richard M. Stallman <rms@gnu.org>
5589
5590 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
5591 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
5592 (Vblink_cursor_alist): New variable.
5593 (syms_of_w32fns): Initialize and defvar it.
5594 (x_specified_cursor_type): Recognize Qbox for filled box.
5595 Exceptions are hollow boxes.
5596 (Qbox, Qhollow): New variables.
5597 (syms_of_w32fns): Initialize and staticpro them.
5598
5599 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
5600 New macros.
5601 (struct w32_output): New fields blink_off_cursor,
5602 blink_off_cursor_width.
5603 (FRAME_CURSOR_WIDTH): New macro.
5604
5605 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
5606 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
5607
5608 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
5609 for bar cursor.
5610
5611 * w32term.c (expose_overlaps): New function.
5612 (expose_window): Use it to fix the display of overlapping rows.
5613
56142002-08-28 Simon Josefsson <jas@extundo.com>
5615
5616 * xfns.c (Fx_open_connection): Improve help when X connection
5617 fails, xhost is insecure and xauth is better.
5618
56192002-08-28 Juanma Barranquero <lektu@terra.es>
5620
5621 * makefile.w32-in: Add missing dependencies on w32term.h and
5622 composite.h.
5623
5624 * emacs.c (USAGE1): Add missing newline.
5625
56262002-08-27 Andrew Choi <akochoi@shaw.ca>
5627
5628 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
5629
56302002-08-27 Richard M. Stallman <rms@gnu.org>
5631
5632 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
5633 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
5634 (Vblink_cursor_alist): New variable.
5635 (syms_of_xfns): Initialize and defvar it.
5636 (x_specified_cursor_type): Recognize Qbox for filled box.
5637 Exceptions are hollow boxes.
5638 (Qbox, Qhollow): New variables.
5639 (syms_of_xfns): Initialize and staticpro them.
5640
5641 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
5642 New macros.
5643 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
5644
5645 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
5646 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
5647
5648 * emacs.c (main): Handle --script.
5649 (USAGE1): Mention --script.
5650 (standard_args): Define sort order for --script.
5651
56522002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
5653
5654 * xdisp.c (redisplay_updating_p): Variable removed.
5655 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
5656 New variables.
5657 (init_iterator): Don't free realized faces if
5658 inhibit_free_realized_faces is set.
5659 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
5660 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
5661 initialize Qinhibit_free_realized_faces.
5662
5663 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
5664 when iterator is adding glyphs to a glyph matrix.
5665
56662002-08-27 Kenichi Handa <handa@etl.go.jp>
5667
5668 * xdisp.c (get_next_display_element): In unibyte case, don't use
5669 octal form for such eight-bit characters that can be converted to
5670 multibyte char.
5671
56722002-08-26 Kim F. Storm <storm@cua.dk>
5673
5674 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
5675 and background colors. From Joe Buehler (tiny change).
5676
56772002-08-26 Miles Bader <miles@gnu.org>
5678
5679 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
5680
56812002-08-25 Andrew Choi <akochoi@shaw.ca>
5682
5683 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
5684 defined instead of MAC_OSX.
5685
5686 * s/darwin.h (select): Define select to sys_select only if
5687 HAVE_CARBON is defined.
5688 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
5689 (DONT_REOPEN_PTY): #def it.
5690
5691 * macterm.c (XTread_socket): Remove code to call
5692 SendEventToEventTarget for keys with command modifiers when
5693 mac_command_key_is_meta is nil.
5694
56952002-08-24 Andreas Schwab <schwab@suse.de>
5696
5697 * eval.c (Fdefvar): Fix last change.
5698
56992002-08-23 Richard M. Stallman <rms@gnu.org>
5700
5701 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
5702 Record variables in load history as (defvar . VAR).
5703 (Fdefvar): Don't record in load history if no initial value.
5704 (Qdefvar): New variable.
5705 (syms_of_eval): Init and staticpro it.
5706
5707 * lread.c (syms_of_lread): Doc fix.
5708 (build_load_history): Use Fmember to see if a definition
5709 is already in the Vload_history element.
5710
5711 * process.c (Fstart_process): Remove /: from program name.
5712
5713 * emacs.c (decode_env_path): Don't add /: if file name handler
5714 has a `safe-magic' property.
5715
5716 * callproc.c (Fcall_process): Remove /: from program name.
5717
57182002-08-23 Stefan Monnier <monnier@cs.yale.edu>
5719
5720 * regex.c (PATFETCH): Remove the translating fetch.
5721 (PATFETCH_RAW): Rename to PATFETCH.
5722 (set_image_of_range): New fun.
5723 (SET_RANGE_TABLE_WORK_AREA): Use it.
5724 (regex_compile): Don't translate the pattern chars so eagerly.
5725 Only do it when inserting an `exactn' bytecode or when handling
5726 a char-range.
5727 (mutually_exclusive_p): Avoid empty statement.
5728
57292002-08-22 Kim F. Storm <storm@cua.dk>
5730
5731 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
5732 end up on a partially visible line; this reverts a specific part
5733 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
5734 display error which has been reported several times now.
5735 However it introduces the problem that changes was supposed to fix.
5736 See my comments in the source if you want to debug this further.
5737
57382002-08-20 Kenichi Handa <handa@etl.go.jp>
5739
5740 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
5741
57422002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
5743
5744 * msdos.c (croak): Add `void' to definition.
5745
5746 * sysdep.c [MSDOS] (request_sigio, unrequest_sigio):
5747 Don't define them, they are defined in msdos.c.
5748
5749 * mem-limits.h [MSDOS]: Declare etext.
5750
5751 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
5752 `const' since CORRECT_DIR_SEPS modifies its target.
5753
57542002-08-19 Kim F. Storm <storm@cua.dk>
5755
5756 * keyboard.c (Fclear_this_command_keys): Added optional arg
5757 KEEP-RECORD to avoid clearing lossage when we just want to clear
5758 the current key sequence (kmacro needs this).
5759
57602002-08-19 Kenichi Handa <handa@localhost>
5761
5762 * composite.c (run_composition_function): Call FUNC if it is fboundp.
5763
5764 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
5765 cons, return Qnil.
5766
57672002-08-17 Richard M. Stallman <rms@gnu.org>
5768
5769 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
5770
5771 * sysdep.c [!VMS]: Include sys/files.h.
5772
5773 * editfns.c (save_restriction_restore): Defend from unchained marker.
5774
5775 * buffer.c (overlays_at): Handle extending vec uniformly.
5776 (overlays_in): Handle extending vec from length 0 as in overlays_at.
5777
57782002-08-15 Andrew Choi <akochoi@shaw.ca>
5779
5780 * mac.c (init_mac_osx_environment): New function.
5781
5782 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
5783
57842002-08-14 Kim F. Storm <storm@cua.dk>
5785
5786 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
5787 executing macro before appending to it (when used from Lisp).
5788 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
5789 which is called prior to each iteration of macro (for kmacro.el).
5790 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
5791
5792 * lisp.h (Fexecute_kbd_macro): Update prototype.
5793
5794 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
5795
57962002-08-14 Kenichi Handa <handa@etl.go.jp>
5797
5798 * xselect.c (QUTF8_STRING): New variable.
5799 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
5800 (x_atom_to_symbol): Likewise.
5801 (x_get_local_selection): New argument local_request. If it is
5802 nonzero, call handler_fn with the second arg nil.
5803 (x_handle_selection_request): Call x_get_local_selection with
5804 local_request 0.
5805 (lisp_data_to_selection_data): Don't encode the string here.
5806 (Fx_get_selection_internal): Call x_get_local_selection with
5807 local_request 1.
5808 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
5809
5810 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
5811
5812 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
5813
58142002-08-13 Richard M. Stallman <rms@gnu.org>
5815
5816 * minibuf.c (Fminibufferp): New function.
5817 (syms_of_minibuf): Defsubr it.
5818 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
5819
58202002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
5821
5822 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
5823
58242002-08-12 Richard M. Stallman <rms@gnu.org>
5825
5826 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
5827 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
5828 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
5829 already.
5830
5831 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
5832
58332002-08-11 Andrew Choi <akochoi@shaw.ca>
5834
5835 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
5836 (Vmac_pass_command_to_system): New variable.
5837 (Vmac_pass_control_to_system): New variable.
5838 (do_mouse_moved): Check wp with is_emacs_window.
5839 (XTread_socket): Check window_ptr with is_emacs_window.
5840 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
5841 events back to Mac Toolbox for processing, depending on values of
5842 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
5843 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
5844 Vmac_pass_control_to_system.
5845
58462002-08-10 Kenichi Handa <handa@etl.go.jp>
5847
5848 * coding.c (unencodable_char_position): New function.
5849 (Funencodable_char_position): New function.
5850 (syms_of_coding): Defsubr Funencodable_char_position.
5851
58522002-08-10 Andrew Choi <akochoi@shaw.ca>
5853
5854 * mac.c (sys_select) [MAC_OSX]: New function.
5855
5856 * macterm.c (MakeMeTheFrontProcess): New function.
5857 (mac_initialize): Call MakeMeTheFrontProcess.
5858
5859 * s/darwin.h: Define select to sys_select.
5860
58612002-08-09 Richard M. Stallman <rms@gnu.org>
5862
5863 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
5864
58652002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
5866
5867 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
5868 end of the buffer.
5869
58702002-08-08 Ken Raeburn <raeburn@mit.edu>
5871
5872 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
5873
5874 * puresize.h (BASE_PURESIZE): Increase to 910000.
5875
58762002-08-08 Kenichi Handa <handa@etl.go.jp>
5877
5878 * coding.c (Ffind_operation_coding_system): For write-region, if
5879 VISIT is a filename, make it the target.
5880
58812002-08-07 Richard M. Stallman <rms@gnu.org>
5882
5883 * alloc.c (mark_object): Detect long lists for debugging.
5884 (mark_object_loop_halt): New variable.
5885
5886 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
5887
5888 * data.c (Fmake_variable_frame_local): Doc fix.
5889
58902002-08-01 David Ponce <david@dponce.com>
5891
5892 * w32menu.c (local_heap, local_alloc, local_free): New macros.
5893 (malloc_widget_value, free_widget_value)
5894 (w32_free_submenu_strings): Use them.
5895
5896 (push_submenu_start, push_submenu_end, push_left_right_boundary)
5897 (push_menu_pane, push_menu_item, single_keymap_panes)
5898 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
5899 (single_submenu, set_frame_menubar)
5900 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
5901
5902 (Fx_popup_menu): Don't show pop up menu until preceding one is
5903 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
5904
5905 * w32menu.c: Changes adapted from xmenu.c
5906 (set_frame_menubar): First parse all submenus,
5907 then make widget_value trees from them.
5908 Don't allocate any widget_value objects
5909 until we are done with the parsing.
5910 (parse_single_submenu): New function.
5911 (digest_single_submenu): New function.
5912 (single_submenu): Function deleted, replaced by those two.
5913
59142002-08-04 Andrew Choi <akochoi@shaw.ca>
5915
5916 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
5917 returns a valid window pointer before proceeding for keyDown and
5918 autoKey events.
5919
59202002-08-03 Andrew Choi <akochoi@shaw.ca>
5921
5922 * macterm.c (USE_CARBON_EVENTS): New macro.
5923 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
5924 (x_iconify_frame): Call CollapseWindow.
5925 (Vmac_reverse_ctrl_meta): New variable.
5926 (Vmac_wheel_button_is_mouse_2): New variable.
5927 (init_mac_drag_n_drop): New function.
5928 (mac_do_receive_drag): New function.
5929 (mac_handle_service_event): New function.
5930 (init_service_handler): New function.
5931 (mac_to_emacs_modifiers): New function.
5932 (mac_event_to_emacs_modifiers): New function.
5933 (mac_get_mouse_btn): New function.
5934 (mac_convert_event_ref): New function.
5935 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
5936 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
5937 mac_get_mouse_btn.
5938 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
5939
5940 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
5941 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
5942 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
5943 TOOL_BAR_EVENT for MAC_OS as well.
5944 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
5945 as for WINDOWS_NT.
5946 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
5947
5948 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
5949
59502002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
5951
5952 * xdisp.c (forward_to_next_line_start): Fix a condition that
5953 lead to a newline being skipped.
5954
59552002-08-02 Andrew Choi <akochoi@shaw.ca>
5956
5957 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
5958
59592002-08-01 Richard M. Stallman <rms@gnu.org>
5960
5961 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
5962
59632002-07-31 Andrew Choi <akochoi@shaw.ca>
5964
5965 * macfns.c: #undef init_process before #define-ing it.
5966
5967 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
5968 HAVE_CARBON is defined.
5969
59702002-07-31 Richard M. Stallman <rms@gnu.org>
5971
5972 * xmenu.c (set_frame_menubar): First parse all submenus,
5973 then make widget_value trees from them.
5974 Don't allocate any widget_value objects
5975 until we are done with the parsing.
5976 (parse_single_submenu): New function.
5977 (digest_single_submenu): New function.
5978 (single_submenu): Function deleted, replaced by those two.
5979
59802002-07-30 Juanma Barranquero <lektu@terra.es>
5981
5982 * w32proc.c (syms_of_ntproc): Fix docstring of
5983 `w32-get-true-file-attributes'.
5984
59852002-07-28 Richard M. Stallman <rms@gnu.org>
5986
5987 * s/hpux8.h (HPUX8): Define this before including hpux.h.
5988 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
5989
5990 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
5991
5992 * keyboard.c (make_lispy_event):
5993 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
5994 Explicitly clear up_modifier in event->modifiers.
5995
59962002-07-27 Richard M. Stallman <rms@gnu.org>
5997
5998 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
5999
6000 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
6001 for bar cursor.
6002
60032002-07-26 Kenichi Handa <handa@etl.go.jp>
6004
6005 * coding.c (detect_coding_iso2022): While checking a byte sequence
6006 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
6007 it in the normal loop.
6008
60092002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
6010
6011 * xterm.c (expose_overlaps): New function.
6012 (expose_window): Use it to fix the display of overlapping rows.
6013
6014 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
6015
60162002-07-23 Ken Raeburn <raeburn@gnu.org>
6017
6018 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
6019 since it only depends on XUINT.
6020
6021 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
6022 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
6023 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
6024 Macros deleted.
3947677c 6025
77d1daf2
AS
6026 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
6027 its value over other approaches.
6028 * sysdep.c (start_of_data): Don't define the function if a macro
6029 form has been defined.
8a8e19a3 6030
048addec
JD
60312002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
6032
6033 * xdisp.c (redisplay_updating_p): New variable.
6034 (init_iterator): Don't free realized faces when
6035 redisplay_updating_p is set.
6036 (redisplay_internal): Set redisplay_updating_p while updating
6037 the display.
6038
60392002-07-23 Richard M. Stallman <rms@gnu.org>
6040
6041 * editfns.c (Fmessage): Treat "" like nil.
6042
60432002-07-23 Kenichi Handa <handa@etl.go.jp>
6044
6045 * xdisp.c (face_before_or_after_it_pos):
6046 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
6047
60482002-07-22 Juanma Barranquero <lektu@terra.es>
6049
6050 * callproc.c (init_callproc) [DOS_NT]:
6051 Initialize Vshared_game_score_directory to nil.
6052 (syms_of_callproc) [DOS_NT]: Likewise.
6053
60542002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
6055
6056 * xdisp.c (display_line): Replace an abort with xassert.
6057
60582002-07-21 Richard M. Stallman <rms@gnu.org>
6059
6060 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
6061 and END_UNCHANGED when setting buffer_unchanged_p.
6062 Use current_matrix_up_to_date_p to decide whether to use
6063 try_cursor_movement.
6064
6065 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
6066
6067 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
6068
6069 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
6070 Set to nil if dir does not exist.
6071 (syms_of_callproc): Init unconditionally and simply.
6072
6073 * buffer.c (Fbuffer_list): Doc fix.
6074
60752002-07-21 Ken Raeburn <raeburn@gnu.org>
6076
6077 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
6078
6079 * buffer.c (mmap_realloc): When shrinking, make sure number of
6080 pages to unmap is rounded towards zero.
6081
6082 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
6083 (XSETINT): Deleted.
6084
6085 * m/att3b.h (XINT): Don't define.
6086 (VALBITS, VALMASK, XTYPE): Deleted.
6087 (DATA_SEG_BITS): Define.
6088 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
6089 ARRAY_MARK_FLAG): Deleted.
6090 (DATA_SEG_BITS): Define.
6091 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
6092 (DATA_SEG_BITS): Define.
6093
60942002-07-20 Richard M. Stallman <rms@gnu.org>
6095
6096 * print.c (print_error_message): New args CONTEXT and CALLER.
6097 Calls changed.
6098
6099 * lisp.h (print_error_message): Declare new args.
6100
6101 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
6102 and CONTEXT to print_error_message, don't print them here.
6103 For a Quit, don't use Vsignaling_function.
6104 Call message_log_maybe_newline.
6105
6106 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
6107
61082002-07-20 Kim F. Storm <storm@cua.dk>
6109
6110 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
6111
61122002-07-19 Ken Raeburn <raeburn@gnu.org>
6113
6114 * bytecode.c (struct byte_stack): Pointers into byte string now
6115 point to const.
6116 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
6117 const.
6118 * charset.h (BCOPY_SHORT): Source pointer now points to const.
6119 * coding.c (encode_eol, detect_coding, detect_eol):
6120 (decode_coding, encode_coding, detect_coding_system):
6121 Source strings now treated as const.
6122 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
6123 modify Lisp string contents.
6124 * coding.h (decode_coding, encode_coding, detect_coding,
6125 detect_eol): Declarations updated.
6126 * composite.c (compose_chars_in_text): Treat Lisp string contents
6127 as const.
6128 * dispnew.c (safe_bcopy): Source pointer now points to const.
6129 * lisp.h (STRING_COPYIN): New macro.
6130 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
6131 (internal_with_output_to_temp_buffer): Declarations updated.
6132 * print.c (temp_output_buffer_setup):
6133 (internal_with_output_to_temp_buffer): Buffer name argument is now
6134 pointer to const.
6135 * sound.c (struct sound_device): Function pointer field "write"
6136 buffer argument now points to const.
6137 (vox_write): Buffer argument points to const.
6138 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
6139 contents as const.
6140 * sysdep.c (emacs_write): Buffer pointer now const.
6141 * term.c (encode_terminal_code): Buffer pointer now const.
6142 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
6143 (x_face_list_fonts, x_update_menu_appearance):
6144 (hash_string_case_insensitive): Treat Lisp string contents as const.
6145
61462002-07-19 Juanma Barranquero <lektu@terra.es>
6147
6148 * fileio.c (Ffile_name_as_directory): Fix argument name in docstring.
6149 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
6150
6151 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
6152
6153 * fileio.c (syms_of_fileio): Likewise.
6154
61552002-07-18 Richard M. Stallman <rms@gnu.org>
6156
6157 * data.c (Fdefalias): Doc fix.
6158
61592002-07-17 Dave Love <fx@gnu.org>
6160
6161 * intervals.h (text_property_stickiness): Use P_.
6162
6163 * ccl.c: Remove `emacs' conditionals.
6164 (ccl_backtrace_table): Fix size spec.
6165 (ccl_driver): Fix type errors.
6166
61672002-07-16 Ken Raeburn <raeburn@gnu.org>
6168
6169 * alloc.c (xstrdup, make_string, make_unibyte_string)
6170 (make_multibyte_string, build_string): String pointer args now
6171 point to const.
6172 * charset.c (find_charset_in_text, c_string_width):
6173 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
6174 * fileio.c (report_file_error):
6175 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
6176 (count_combining_before, count_combining_after, insert_1_both):
6177 (insert, insert_and_inherit, insert_string):
6178 (insert_before_markers, insert_before_markers_and_inherit):
6179 * lread.c (intern, oblookup, hash_string):
6180 * minibuf.c (temp_echo_area_glyphs):
6181 * search.c (fast_c_string_match_ignore_case):
6182 * sysdep.c (emacs_open, set_file_times):
6183 * xfaces.c (xstricmp):
6184 * xdisp.c (store_frame_title, string_char_and_length):
6185 (message_dolog, message2, message2_nolog, set_message): Likewise.
6186 (set_message_1): Cast message string argument to const pointer.
6187 * editfns.c (general_insert_function): Insertion function now
6188 takes pointer to const for input data.
6189 * charset.h (find_charset_in_text, c_string_width):
6190 (parse_str_as_multibyte): Declarations updated.
6191 * dispextern.h (xstricmp): Declaration updated.
6192 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
6193 (count_size_as_multibyte, count_combining_before):
6194 (count_combining_after, insert_1, insert_1_both, message_dolog):
6195 (insert, insert_and_inherit, insert_before_markers)
6196 (insert_before_markers_and_inherit, set_message, message2):
6197 (message2_dolog, build_string, make_string, make_unibyte_string):
6198 (make_multibyte_string, intern, oblookup, report_file_error):
6199 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
6200 (emacs_open, xstrdup): Declarations updated.
6201 * systime.h (set_file_times): Declaration updated.
6202
6203 * charset.c (find_charset_in_text, lisp_string_width): Use const
6204 for pointer to lisp string data.
6205 * charset.h (FETCH_STRING_CHAR_ADVANCE):
6206 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
6207 * coding.c (Ffind_coding_systems_region_interval):
6208 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
6209 (Fmake_directory_internal, Fdelete_directory):
6210 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
6211 * fontset.c (font_family_registry, fs_query_fontset):
6212 (list_fontsets):
6213 * frame.c (Fframe_parameter):
6214 * keyboard.c (cmd_error_internal):
6215 * keymap.c (Fdescribe_buffer_bindings):
6216 * lread.c (complete_filename_p, openp):
6217 * minibuf.c (Fminibuffer_complete_word):
6218 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
6219 (face_before_or_after_it_pos, next_element_from_string):
6220 (get_overlay_arrow_glyph_row, display_mode_element):
6221 (decode_mode_spec_coding):
6222 * xterm.c (same_x_server): Likewise.
6223
6224 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
6225 settings of non-existent fields.
6226
6227 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
6228 copy a lisp value.
6229
6230 * lread.c (Fintern_soft): Use string macros instead of
6231 Lisp_String fields.
6232 * keyboard.c (echo_char, parse_modifiers_uncached):
6233 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
6234 * textprop.c (validate_interval_range, interval_of): Likewise.
6235
6236 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
6237
6238 * charset.h (FETCH_STRING_CHAR_ADVANCE)
6239 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
6240 XSTRING()->size_byte.
6241
6242 * lisp.h (SDATA, SREF): Produce rvalue.
6243 (SSET): New macro.
6244 * alloc.c (make_event_array): Use SSET for storing into a string.
6245 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
6246 a string.
6247 * casefiddle.c (casify_object): Use SSET.
6248 * charset.h (FETCH_STRING_CHAR_ADVANCE)
6249 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
6250 address of string contents.
6251 * data.c (Faref): Use SDATA.
6252 (Faset): Use SDATA, SSET.
6253 * dired.c (directory_files_internal): Use SSET.
6254 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
6255 (Fread_file_name): Use SREF, SSET.
6256 * fns.c (concat): Use SSET.
6257 (concat, Fdelete): Use SDATA.
6258 * insdel.c (insert_from_string_1): Use SDATA.
6259 * keyboard.c (Fevent_convert_list): Use SREF.
6260 * lread.c (Fload): Use SDATA, SSET.
6261 * macfns.c (validate_x_resource_name): Use SSET.
6262 * process.c (status_message): Use SSET.
6263 * search.c (wordify): Use SDATA.
6264 (Freplace_match): Use SREF.
6265 * w32fns.c (validate_x_resource_name): Use SSET.
6266 * xfns.c (validate_x_resource_name): Use SSET.
6267 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
6268
62692002-07-16 Richard M. Stallman <rms@gnu.org>
6270
6271 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
6272
6273 * xdisp.c (reconsider_clip_changes):
6274 Don't test prevent_redisplay_optimizations_p.
6275 (redisplay_internal): Test prevent_redisplay_optimizations_p
6276 along with clip_changed in some cases.
6277 (try_window_id): Likewise.
6278 (redisplay_window): New local var buffer_unchanged_p.
6279
6280 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
6281
6282 * process.c (create_process): Test USG_SUBTTY_WORKS.
6283 (process_send_signal): Clean up handling of GID.
6284 Detect errors in ioctls meant to set GID.
6285
6286 * window.c (temp_output_buffer_show):
6287 Don't set prevent_redisplay_optimizations_p.
6288
62892002-07-15 Juanma Barranquero <lektu@terra.es>
6290
6291 * eval.c (Fdefvaralias): Add docstring argument.
6292
62932002-07-15 Ken Raeburn <raeburn@gnu.org>
6294
6295 * lisp.h (STRING_INTERVALS): Produce rvalue.
6296 (STRING_SET_INTERVALS): New macro.
6297 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
6298 * fns.c (Fstring_as_multibyte): Likewise.
6299 * intervals.c (balance_possible_root_interval, delete_interval)
6300 (create_root_interval, copy_intervals_to_string): Likewise.
6301 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
6302 instead of 0.
6303
63042002-07-14 Ken Raeburn <raeburn@gnu.org>
6305
6306 * lisp.h (STRING_SET_CHARS): New macro.
6307 (SCHARS, SBYTES): Produce rvalues.
6308 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
6309 * fns.c (concat): Likewise.
6310 * lread.c (read_vector): Likewise.
6311
6312 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
6313 (STRING_SET_UNIBYTE): New macro.
6314 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
6315 length of -1) changed to use STRING_SET_UNIBYTE.
6316 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
6317 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
6318 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
6319 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
6320 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
6321 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
6322 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
6323 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
6324 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
6325 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
6326 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
6327 STRING_BYTES or indirection changed to SCHARS, SBYTES,
6328 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
6329 unchanged for now.
6330
63312002-07-13 Kim F. Storm <storm@cua.dk>
6332
6333 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
6334
63352002-07-12 Richard M. Stallman <rms@gnu.org>
6336
6337 * fileio.c (Fwrite_region): Doc fix.
6338
6339 * print.c (print_error_message): Don't handle Vsignaling_function here.
6340
6341 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
6342 (command_loop_1): Avoid certain actions after memory-full error.
6343
6344 * eval.c (Fsignal): Don't call cancel_hourglass.
6345 For a memory-full error, don't call Vsignal_hook_function
6346 and don't set Vsignaling_function.
6347
6348 * process.c (process_send_signal): Add abort call.
6349
63502002-07-11 Markus Rost <rost@math.ohio-state.edu>
6351
6352 * keymap.c (Fkey_binding): Fix typo.
6353
63542002-07-11 Richard M. Stallman <rms@gnu.org>
6355
6356 * alloc.c (Vmemory_full): New variable.
6357 (Vmemory_signal_data): Renamed from memory_signal_data.
6358 Uses changed.
6359 (syms_of_alloc): Defvar them.
6360 (memory_full, buffer_memory_full): Set Vmemory_full.
6361
6362 * lisp.h (Vmemory_full): Add declaration.
6363 (current_column, indented_beyond_p): Change declaration.
6364
6365 * indent.c (last_known_column): Declare as double, not float.
6366 (current_column, current_column_1, string_display_width)
6367 (position_indentation): Return `double'.
6368 (indented_beyond_p): Arg `column' is `double'. Callers changed.
6369
6370 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
6371 (back_to_previous_visible_line_start)
6372 (reseat_at_next_visible_line_start, next_element_from_buffer):
6373 Use `double', not `float', when calling indented_beyond_p.
6374
6375 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
6376
6377 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
6378
63792002-07-11 Juanma Barranquero <lektu@terra.es>
6380
6381 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
6382 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
6383 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
6384 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
6385 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
6386 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
6387
63882002-07-10 Juanma Barranquero <lektu@terra.es>
6389
6390 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE. All callers
6391 changed.
6392
63932002-07-09 Stefan Monnier <monnier@cs.yale.edu>
6394
6395 * data.c (Fdefalias): Add an optional `docstring' argument.
6396 (set_internal, Fsetq_default): Use XCAR/XCDR.
6397
6398 * composite.c (HASH_VALUE, HASH_KEY):
6399 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
6400
64012002-07-09 Kenichi Handa <handa@etl.go.jp>
6402
6403 * callproc.c (Fcall_process): Fix previous change.
6404
64052002-07-07 Stefan Monnier <monnier@cs.yale.edu>
6406
6407 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
6408 Add support for hash-tables.
6409 (Ftry_completion): Return t even if the string appears multiple times.
6410
6411 * fns.c (Fnconc): Use XCDR.
6412 (Fprovide): Use CONSP and XCDR.
6413 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
6414 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
6415 (Fmake_hash_table): Accept `:size nil'.
6416 (Fmakehash): Delete: moved to subr.el.
6417 (syms_of_fns): Don't defsubr makehash.
6418
6419 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
6420 (HASH_TABLE_SIZE): Move from fns.c.
6421
64222002-07-07 Richard M. Stallman <rms@gnu.org>
6423
6424 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
6425 Instead just return 0 when there is something to be done.
6426 (try_scrolling): If make_cursor_line_fully_visible returns 0,
6427 retry scrolling as if cursor were off the bottom.
6428 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
6429 return CURSOR_MOVEMENT_MUST_SCROLL.
6430 (redisplay_window): If make_cursor_line_fully_visible returns 0,
6431 go to try_to_scroll.
6432
6433 * buffer.c (Fbuffer_local_value): Store current value into its binding
6434 so we get the up-to-date value for the binding that is loaded.
6435
6436 * eval.c (Fdefmacro): Doc fix.
6437
64382002-07-05 Dave Love <fx@gnu.org>
6439
6440 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
6441 correctly.
6442
6443 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
6444 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
6445 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
6446 CCL_LookupCharConstTbl.
6447 (syms_of_ccl): Defvar translation-hash-table-vector.
6448
64492002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6450
6451 * xdisp.c: Remove unused variable `face'.
6452
64532002-07-04 Juanma Barranquero <lektu@terra.es>
6454
6455 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
6456 obsolescence information.
6457
64582002-07-03 Andrew Choi <akochoi@shaw.ca>
6459
6460 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
6461 pattern. Search cache first.
6462 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
6463 for Japanese font.
6464 (XLoadQueryFont): Use it.
6465
64662002-07-02 Richard M. Stallman <rms@gnu.org>
6467
6468 * keymap.c (Fdefine_key): Doc fix.
6469
6470 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
6471
64722002-07-02 Juanma Barranquero <lektu@terra.es>
6473
6474 * keymap.c (syms_of_keymap): Fix typo.
6475
64762002-07-01 Andrew Choi <akochoi@shaw.ca>
6477
6478 * s/darwin.h: Define POSIX_SIGNALS.
6479
6480 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
6481 and FSRefMakePath to convert FSSpec returned with Apple Event to
6482 Posix pathname.
6483 (mac_initialize) [TARGET_API_MAC_CARBON]:
6484 Call init_required_apple_events and disable the `Quit' menu item
6485 provided automatically by the Carbon Toolbox.
6486
64872002-07-01 Dave Love <fx@gnu.org>
6488
6489 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
6490 for K&R.
6491
6492 * xterm.c: Fix prototype for K&R.
6493
6494 * term.c (costs_set): Declare static, non-initialized for pcc.
6495
64962002-07-01 Richard M. Stallman <rms@gnu.org>
6497
6498 * keyboard.c (timer_last_idleness_start_time): New variable.
6499 (timer_start_idle): Set that.
6500 (read_key_sequence): Use that to reset timer_idleness_start_time
6501 to previous value.
6502
6503 * window.c (Frecenter): With arg, set optional_new_start.
6504
6505 * xdisp.c (redisplay_internal): Make optional_new_start really work.
6506
6507 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
6508 buffer for completion.
6509
65102002-06-29 Ken Raeburn <raeburn@gnu.org>
6511
6512 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
6513
65142002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6515
6516 * keyboard.c (readable_filtered_events): New function that filters
6517 FOCUS_IN_EVENT depending on parameter.
6518 (readable_events): Calls readable_filtered_events, not filtering
6519 FOCUS_IN_EVENT.
6520 (get_filtered_input_pending): New function, filtering parameter passed
6521 to readable_filtered_events.
6522 (get_input_pending): Calls get_filtered_input_pending, not filtering
6523 FOCUS_IN_EVENT.
6524 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
6525 FOCUS_IN_EVENT.
6526
6527 * xterm.h (struct x_output): Add focus_state.
6528
6529 * xterm.c (x_focus_changed): New function.
6530 (x_detect_focus_change): New function.
6531 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
6532 EnterNotify and LeaveNotify to track X focus changes.
6533
65342002-06-28 Andreas Schwab <schwab@suse.de>
6535
6536 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
6537
65382002-06-27 Kim F. Storm <storm@cua.dk>
6539
6540 * xdisp.c: (mode_line_string_list, mode_line_string_face)
6541 (mode_line_string_face_prop): New variables.
6542 (store_mode_line_string): New function.
6543 (display_mode_element): Use store_mode_line_string to
6544 add mode-line string elements to mode_line_string_list
6545 when mode_line_string_list is non-nil.
6546 (Fformat_mode_line): Now returns propertized string by
6547 default. New arg NO-PROPS to ignore properties.
6548 (decode_mode_spec): Only add two dashes for %- in propertized
6549 mode-line string.
6550 (syms_of_xdisp): Init and staticpro mode_line_string_list.
6551
65522002-06-27 Stefan Monnier <monnier@cs.yale.edu>
6553
6554 * minibuf.c (minibuffer_completion_contents): Add return type.
6555
65562002-06-27 Juanma Barranquero <lektu@terra.es>
6557
6558 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
6559
65602002-06-26 Juanma Barranquero <lektu@terra.es>
6561
6562 * fileio.c (read_file_name_cleanup): Add missing return.
6563
65642002-06-26 Richard M. Stallman <rms@gnu.org>
6565
6566 * window.c (Frecenter): Don't set force_start flag.
6567
6568 * minibuf.c (do_completion, Fminibuffer_complete_word)
6569 (Fminibuffer_completion_help): Complete just the text before point.
6570 (minibuffer_completion_contents): New function.
6571
6572 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
6573
6574 * frame.c (frames_bury_buffer): Function deleted.
6575
65762002-06-25 Miles Bader <miles@gnu.org>
6577
6578 * callint.c (Fcall_interactively): When checking to see if doprnt hit
6579 the end of callint_message, allow for a terminating '\0'.
6580
65812002-06-24 Juanma Barranquero <lektu@terra.es>
6582
6583 * w32select.c: Include composite.h
6584
6585 * w16select.c: Likewise.
6586
65872002-06-24 Kenichi Handa <handa@etl.go.jp>
6588
6589 * callproc.c (Fcall_process): If code detection is necessary,
6590 call detect_coding directly here.
6591
6592 * coding.c (detect_eol): Preserve coding->cmp_data.
6593
6594 * w16select.c (Fw16_get_clipboard_data):
6595 * w32fns.c (w32_to_x_font):
6596 * w32select.c (Fw32_get_clipboard_data):
6597 * xselect.c (selection_data_to_lisp_data):
6598 * xterm.c (XTread_socket): Disable composition handling.
6599
66002002-06-24 Stefan Monnier <monnier@cs.yale.edu>
6601
6602 * print.c (temp_output_buffer_setup): Kill all local variables.
6603
66042002-06-22 Stefan Monnier <monnier@cs.yale.edu>
6605
6606 * lread.c (Fread): Remove redundant and imprecise declaration.
6607
6608 * xfns.c (check_x_display_info): Use check_x_frame.
6609
6610 * .gdbinit (xprintsym): Use the new `xname' field.
6611 (xsymbol): Use it.
6612
66132002-06-22 Jason Rumney <jasonr@gnu.org>
6614
6615 * w32fns.c (file_dialog_callback): New function.
6616 (Fx_file_dialog): Allow selecting directories as well as files.
6617
66182002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6619
6620 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
6621 OpenBSD. Add support for mipseb-*-netbsd* machines.
6622
66232002-06-17 Andrew Choi <akochoi@shaw.ca>
6624
6625 * macterm.c (mac_scroll_area): Set foreground and backcolor to
6626 black and white before scrolling. Restore frame background and
6627 foreground color after scrolling.
6628 (do_window_update): Call XClearWindow before calling expose_frame.
6629 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
6630 FRAME_FOREGROUND_PIXEL of frame.
6631
6632 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
6633 test Mac command key as <ALT> key.
6634
66352002-06-17 Stefan Monnier <monnier@cs.yale.edu>
6636
6637 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
6638
6639 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
6640 Lookup keys in function-key-map immediately so that key-translation-map
6641 can be applied earlier.
6642 Remove function_key_possible and key_translation_possible, replaced
6643 by checking `keytran_start < t'.
6644
6645 * .gdbinit (xsymbol): Use the new `xname' field.
6646
66472002-06-17 Andrew Choi <akochoi@shaw.ca>
6648
6649 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
6650 test Mac command key as <ALT> key.
6651
6652 * mac.c (do_applescript): Call initialize_applescript if necessary
6653 when first called. Dispose of result_desc only when there is no error.
6654 (Fdo_applescript): Use %d format specifier instead of %ld.
6655
66562002-06-16 Andrew Choi <akochoi@shaw.ca>
6657
6658 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
6659 of FrontWindow for cases keyDown and autoKey.
6660
6661 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
6662 Vdefault_fontset to Monaco with mac-roman coding.
6663
6664 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
6665 init_process before and after inclusion of Carbon/Carbon.h, resp.
6666
6667 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
6668 cursor_gc.
6669 (add_font_name_table_entry): New function.
6670 (init_font_name_table): Use add_font_name_table_entry; add italic,
6671 bold, and bold-italic entries for truetype fonts.
6672
6673 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
6674 for Mac too.
6675 (try_font_list) [MAC_OS]: If no font matches given registry, try
6676 fonts with any registry matching face_family.
6677 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
6678
6679 * s/darwin.h: If autoconf detects the Ncurses library, define
6680 LIBS_TERMCAP to -lncurses to use it.
6681
66822002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
6683
6684 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
6685
66862002-06-15 Richard M. Stallman <rms@gnu.org>
6687
6688 * window.c (Fset_window_configuration): Explicitly preserve
6689 the point value that new_current_buffer had at the start.
6690
66912002-06-14 Juanma Barranquero <lektu@terra.es>
6692
6693 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
6694 Fix typos.
6695
66962002-06-14 Kim F. Storm <storm@cua.dk>
6697
6698 * insdel.c (insert_1_both, insert_from_string_1)
6699 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
6700 insert happened in the end_unchanged region. Otherwise, the
6701 redisplay may be confused and duplicate the last line in the
6702 buffer [seen after save-buffer when require-final-newline==t].
6703
67042002-06-13 Jason Rumney <jasonr@gnu.org>
6705
6706 * w32.c (init_environment): Remove EMACSLOCKDIR.
6707 (stat): Swap _S_IFDIR and _S_IFREG.
6708
67092002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6710
6711 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
6712 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
6713 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
6714 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
6715 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
6716 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
6717 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
6718 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
6719 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
6720 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
6721 SELECTION_REQUEST_EVENT, selection_clear_event to
6722 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
6723 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
6724 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
6725 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
6726 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
6727 no_event to NO_EVENT.
6728
67292002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6730
6731 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
6732
67332002-06-12 Stefan Monnier <monnier@cs.yale.edu>
6734
6735 * intervals.c (textget): Don't forget to `return'.
6736 (lookup_char_property): Use XCAR/XCDR.
6737
67382002-06-12 Juanma Barranquero <lektu@terra.es>
6739
6740 * xdisp.c (Fformat_mode_line): Fix typo.
6741
67422002-06-12 Kim F. Storm <storm@cua.dk>
6743
6744 * xdisp.c (Fformat_mode_line): New function.
6745 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
6746 (store_frame_title_char, store_frame_title): Use unconditionally.
6747 (init_xdisp): Defsubr Fformat_mode_line.
6748 Initialize frame_title_buf etc. unconditionally.
6749
67502002-06-11 Stefan Monnier <monnier@cs.yale.edu>
6751
6752 * keyboard.c (read_key_sequence):
6753 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
6754 things through those maps after downcasing events.
6755 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
6756 applies after function-key-map.
6757 Make sure that keytran can be done in the middle in the sequence.
6758 Be careful not to throw away events past the one we downcase.
6759
6760 * lread.c (read_integer): Remove unused var `tem'.
6761 (read1): Fix int/Lisp_Object mixup.
6762
6763 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
6764
67652002-06-11 Richard M. Stallman <rms@gnu.org>
6766
6767 * keyboard.c (readable_events): Ignore any number of
6768 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
6769
67702002-06-09 Miles Bader <miles@gnu.org>
6771
6772 * xfaces.c (Ftty_supports_face_attributes_p): New function.
6773 (parse_rgb_list, tty_lookup_color): New functions.
6774 (tty_defined_color): Use `tty_lookup_color' to do all the work.
6775 (color_distance, Fcolor_distance): New functions.
6776 (TTY_SAME_COLOR_THRESHOLD): New macro.
6777 (Qtty_color_standard_values): New variable.
6778 (syms_of_xfaces): Initialize new vars & functions.
6779
67802002-06-08 Colin Walters <walters@verbum.org>
6781
6782 * textprop.c (Vchar_property_alias_alist): New variable.
6783 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
6784
6785 * intervals.c (lookup_char_property): New function for looking up
6786 overlay and text properties, created from textget.
6787 (textget): Use it.
6788
6789 * intervals.h (lookup_char_property): Declare.
6790 (Vchar_property_alias_alist): Declare.
6791
6792 * buffer.c (Foverlay_get): Use lookup_char_property.
6793
67942002-06-07 Sam Steingold <sds@gnu.org>
6795
6796 * xselect.c (lisp_data_to_selection_data): Fix last change:
6797 *data_ret is not a Lisp string, while unibyte_string is.
6798
67992002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
6800
6801 * xselect.c (lisp_data_to_selection_data): Fix last change:
6802 set size_ret.
6803
68042002-06-07 Andreas Schwab <schwab@suse.de>
6805
6806 * m/amdx86-64.h: New file.
6807
68082002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
6809
6810 * fns.c (Fstring_make_unibyte): Doc fix.
6811
6812 * xselect.c (lisp_data_to_selection_data): If the requested type
6813 is STRING, call string_make_unibyte to encode the selected text
6814 as a string.
6815
6816 * window.c (Fset_window_hscroll): Doc fix.
6817
68182002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6819
6820 * fileio.c (choose_write_coding_system):
6821 Call select-safe-coding-system properly.
6822
68232002-06-03 Richard M. Stallman <rms@gnu.org>
6824
6825 * xdisp.c (message_with_string): Error if STRING is not a string.
6826
6827 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
6828
6829 * fileio.c (choose_write_coding_system): Pass FILE arg to
6830 Vselect_safe_coding_system_function.
6831
68322002-06-03 Ken Raeburn <raeburn@gnu.org>
6833
6834 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
6835
68362002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
6837
6838 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
6839 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
6840 * keymap.c (describe_command): Likewise.
6841 * minibuf.c (read_minibuf): Likewise.
6842
6843 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
6844 Cast `current_column' return value to int.
6845 (back_to_previous_visible_line_start)
6846 (reseat_at_next_visible_line_start, next_element_from_buffer):
6847 Cast `indented_beyond_p' 3rd arg to float.
6848
6849 * indent.c (last_known_column): Now a float.
6850 (current_column_1, position_indentation, current_column)
6851 (string_display_width): Return float.
6852 (Fcurrent_column): Cast `current_column' return value to int.
6853 (Fcurrent_indentation): Cast `position_indentation' retval to int.
6854 (indented_beyond_p): Third arg now a float.
6855 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
6856
6857 * lisp.h (current_column): Now returns float.
6858 (indented_beyond_p): 3rd arg now a float.
6859
68602002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
6861
6862 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
6863 is Qcompound_text_with_extensions.
6864
6865 * xselect.c (lisp_data_to_selection_data): Always set selection
6866 type as string if x_encode_text returns streingp non-NULL.
6867
6868 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
6869
68702002-05-30 Richard M. Stallman <rms@gnu.org>
6871
6872 * window.c (Fset_window_configuration): Correct the handling
6873 of point in current buffer, to work with multiple windows.
6874
68752002-05-29 Colin Walters <walters@verbum.org>
6876
6877 * lread.c (Fread_from_string): Don't depend on order of evaluation
6878 for C function parameters.
6879
68802002-05-28 Richard M. Stallman <rms@gnu.org>
6881
6882 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
6883 way for blinked-off state and for a nonselected window.
6884
6885 * window.c (window_scroll_pixel_based): Don't call Fbolp;
6886 instead, see if the new start pos is at beginning of line.
6887
6888 * fileio.c (Fwrite_region): If START is a string, don't
6889 make any annotations.
6890
6891 * eval.c (syms_of_eval): Doc fix.
6892
68932002-05-28 Colin Walters <walters@debian.org>
6894
6895 * emacs.c (USAGE1): Add --no-splash.
6896 (standard_args): Ditto.
6897
68982002-05-28 Colin Walters <walters@gnu.org>
6899
6900 * lread.c (readchar_count): New variable.
6901 (readchar): Increment it.
6902 (unreadchar): Decrement it.
6903 (read_multibyte): Decrement it.
6904 (Vread_with_symbol_positions): New variable.
6905 (Vread_symbol_positions_list): New variable.
6906 (read_internal_start): New function, created from Fread and
6907 Fread_from_string. Handle Vread_symbol_positions_list and
6908 Vread_with_symbol_positions.
6909 (readevalloop, Fread, Fread_from_string): Use it.
6910 (read1): Use readchar_count to add symbol positions to
6911 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
6912 (syms_of_lread): DEFVAR_LISP and initialize them.
6913
6914 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
6915 (substitute_object_recurse, substitute_object_in_subtree)
6916 (substitute_in_interval): Prototype.
6917 (read_multibyte): Return c if it's less than zero.
6918
69192002-05-28 Kim F. Storm <storm@cua.dk>
6920
6921 * fileio.c (Fread_file_name_internal): Added brute-force
6922 speed up for using predicate file-directory-p.
6923
69242002-05-28 Kim F. Storm <storm@cua.dk>
6925
6926 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
6927 New variables.
6928 (syms_of_fileio): DEFVAR_LISP them.
6929 (read_file_name_cleanup): New unwind function.
6930 (Fread_file_name_internal): Only return completions satifying
6931 Vread_file_name_predicate. Temporarily unwind protect and rebind
6932 default-directory while checking completions against the predicate.
6933 (Fread_file_name): Added PREDICATE argument. Specbind it to
6934 Vread_file_name_predicate during completion.
6935 Call Vread_file_name_function to read the file name if non-nil.
6936
6937 * lisp.h (Fread_file_name): Now has 6 args.
6938
6939 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
6940 predicate for Fread_file_name when reading directory name.
6941 Supply Qnil for predicate in other calls to Fread_file_name.
6942
69432002-05-26 Miles Bader <miles@gnu.org>
6944
6945 * term.c (tty_capable_p): New function.
6946 * dispextern.h (tty_capable_p): New function declaration.
6947 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
6948 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
6949
69502002-05-23 Stefan Monnier <monnier@cs.yale.edu>
6951
6952 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
6953 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
6954 (Vwrite_region_annotate_functions): Docstring fix.
6955
69562002-05-23 Kim F. Storm <storm@cua.dk>
6957
6958 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
6959 phys_cursor's hpos is overwritten. This is still not completely
6960 correct, as it doesn't really make sense to use hpos at all to
6961 get the cursor glyph (as that is relative to the width of the
6962 characters on the line, which may have changed during the update).
6963
69642002-05-22 Jason Rumney <jasonr@gnu.org>
6965
6966 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
6967 Lisp_Object.
6968 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
6969 Use modified enumfont_t struct.
6970
6971 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
6972
6973 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
6974 Handle the `hbar' cursor type.
6975 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
6976
6977 * w32fns.c (Qhbar): New variable.
6978 (x_specified_cursor_type): Use it.
6979
69802002-05-21 Ken Raeburn <raeburn@gnu.org>
6981
6982 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
6983 now, when the address is needed.
6984
69852002-05-21 Colin Walters <walters@gnu.org>
6986
6987 * Makefile.in (shortlisp): Add font-core.el.
6988
69892002-05-20 Richard M. Stallman <rms@gnu.org>
6990
6991 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
6992
6993 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
6994 equivalent key bindings here.
6995
69962002-05-20 Ken Raeburn <raeburn@gnu.org>
6997
6998 Change symbol structure to contain a lisp object for the symbol
6999 name:
7000 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
7001 object field named "xname".
7002 (SYMBOL_NAME): New macro.
7003 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
7004 name field.
7005 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
7006 (mark_object, gc_sweep): Use symbol xname field and XSTRING
7007 instead of name field.
7008 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
7009 SYMBOL_NAME instead of XSYMBOL and name field.
7010 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
7011 instead of XSYMBOL and name field.
7012 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
7013 and SYMBOL_NAME instead of XSYMBOL and name field.
7014 * coding.c (Fread_coding_system, code_convert_region1)
7015 (code_convert_string1, code_convert_string_norecord)
7016 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
7017 XSYMBOL and name field.
7018 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
7019 (Fmake_variable_buffer_local, Fmake_local_variable)
7020 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
7021 of XSYMBOL and name field.
7022 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
7023 XSYMBOL and name field.
7024 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
7025 instead of XSYMBOL and name field.
7026 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
7027 XSYMBOL and name field.
7028 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
7029 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
7030 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
7031 instead of XSYMBOL and name field.
7032 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
7033 (parse_modifiers, apply_modifiers, Fevent_convert_list)
7034 (parse_solitary_modifier, Fexecute_extended_command):
7035 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
7036 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
7037 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
7038 of XSYMBOL and name field.
7039 (describe_command, describe_translation): Use SYMBOL_NAME and
7040 assignment instead of XSYMBOL and name field and XSETSTRING.
7041 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
7042 instead of XSYMBOL and name field.
7043 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
7044 name field and XSETSTRING.
7045 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
7046 of XSYMBOL and name field.
7047 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
7048 assignment instead of XSYMBOL and name field and XSETSTRING.
7049 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
7050 XSTRING instead of XSYMBOL and name field.
7051 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
7052 and XSTRING instead of XSYMBOL and name field.
7053 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
7054 and XSTRING instead of XSYMBOL and name field.
7055 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
7056 XSTRING instead of XSYMBOL and name field.
7057 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
7058 of XSYMBOL and name field.
7059 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
7060 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
7061
70622002-05-19 Ken Raeburn <raeburn@gnu.org>
7063
7064 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
7065 and XCDR real rvalues in most configurations.
7066
7067 * buffer.c (fix_overlays_in_range, fix_overlays_before):
7068 Don't take the address of the cdr part of a cons cell; instead, track
7069 the parent cell and call XSETCDR, or set the variable for the head
7070 of the list if we haven't started down the list yet.
7071
70722002-05-19 Richard M. Stallman <rms@gnu.org>
7073
7074 * doc.c (reread_doc_file): Don't ask for confirmation.
7075
70762002-05-18 Jason Rumney <jasonr@gnu.org>
7077
7078 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
7079 (xbm_load_image): Use it.
7080 (xbm_load): Ditto.
7081 (xbm_read_bitmap_data): Reverted to xfns.c version.
7082 From David Ponce <david@dponce.com>.
7083
70842002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
7085
7086 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
7087 2.02 and later.
7088
70892002-05-16 Juanma Barranquero <lektu@terra.es>
7090
7091 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
7092
70932002-05-15 Stefan Monnier <monnier@cs.yale.edu>
7094
7095 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
7096 meaningful test.
7097 (read_char_minibuf_menu_prompt): Fix typo.
7098
70992002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
7100
7101 * eval.c (Fcommandp): Doc fix.
7102
71032002-05-13 Stefan Monnier <monnier@cs.yale.edu>
7104
7105 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
7106 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
7107 (Fset_keymap_parent): Gcpro a bit more.
7108 (access_keymap): Gcpro around meta_map call and around the main loop.
7109 (get_keyelt): Gcpro when following indirect references.
7110 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
7111 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
7112 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
7113 Remove useless ad-hoc remap code.
7114
71152002-05-13 Richard M. Stallman <rms@gnu.org>
7116
7117 * search.c (search_buffer): Give up boyer moore search if inverse
7118 translation change charset_base.
7119
71202002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
7121
7122 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
7123 characters is carried over from the previous block of text, adjust
7124 coding->produced to account for the extra character.
7125
71262002-05-11 Andreas Schwab <schwab@suse.de>
7127
7128 * coding.c (intersection): Keep the elements of the returned list
7129 in the same order as in the first list.
7130
71312002-05-11 Kim F. Storm <storm@cua.dk>
7132
7133 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
7134 only update cmm_size if realloc actually succeeds.
7135 Testing with initial size of 2 elements revealed that using
7136 realloc on GNU/Linux would cause a random trap in xmalloc
7137 later on, so I rewrote the code to use malloc/bcopy/free instead
7138 of realloc.
7139
71402002-05-10 Jason Rumney <jasonr@gnu.org>
7141
7142 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
7143
71442002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
7145
7146 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
7147 parens, to ensure correct evaluation order.
7148
71492002-05-10 Kim F. Storm <storm@cua.dk>
7150
7151 * keymap.c (Vemulation_mode_map_alists): New variable.
7152 (syms_of_keymap): DEFVAR_LISP it.
7153 (current_minor_maps): Process keymap alists in that list before
7154 minor-mode-overriding-map-alist and minor-mode-map-alist.
7155
71562002-05-09 Richard M. Stallman <rms@gnu.org>
7157
7158 * search.c (Freplace_match): Doc fix.
7159
71602002-05-09 Kim F. Storm <storm@cua.dk>
7161
7162 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
7163 Enlarge cursor rectangle drawn around image with non-zero relief.
7164
7165 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
7166 Enlarge cursor rectangle drawn around image with non-zero relief.
7167
7168 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
7169 Enlarge cursor rectangle drawn around image with non-zero relief.
7170
71712002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
7172
7173 * xselect.c (lisp_data_to_selection_data): Don't set selection
7174 type if comes from the Lisp object's car. If the selection
7175 contains a pure ASCII text, always return QSTRING as its type.
7176
71772002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7178
7179 * mac.c (mac-cut-function): Doc fix.
7180
71812002-05-05 Richard M. Stallman <rms@gnu.org>
7182
7183 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
7184
71852002-05-04 Jason Rumney <jasonr@gnu.org>
7186
7187 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
7188 for event-click-count.
7189
7190 * process.c (init_process): Only add server subfeature if we can
7191 use non-blocking I/O.
7192
71932002-05-04 Andrew Choi <akochoi@shaw.ca>
7194
7195 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
7196 repeatedly.
7197
71982002-05-03 Jason Rumney <jasonr@gnu.org>
7199
7200 * process.c (Fmake_network_process): Only support server sockets
7201 when we can make them non-blocking.
7202
7203 * s/ms-w32.h (HAVE_SELECT): Define.
7204
7205 * w32.h (FILE_NDELAY): New flag.
7206
7207 * w32.c (sys_getpeername, fcntl): New functions.
7208 (_sys_read_ahead): Temporarily block on non-blocking sockets.
7209
7210 * w32proc.c: include sys/file.h.
7211
72122002-05-03 Colin Walters <walters@verbum.org>
7213
7214 * callproc.c (Vgame_score_directory): Renamed to
7215 Vshared_game_score_directory.
7216
72172002-04-30 Richard M. Stallman <rms@gnu.org>
7218
7219 * s/gnu.h [emacs]: Include stdio.h.
7220 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
7221
7222 * eval.c (do_autoload): Error if called while preparing to dump.
7223
7224 * fns.c (Frequire): Error if need to load while preparing to dump.
7225
72262002-04-28 Colin Walters <walters@verbum.org>
7227
7228 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
7229 Default to "~/.emacs.d/games".
7230
72312002-04-29 Stefan Monnier <monnier@cs.yale.edu>
7232
7233 * lread.c (openp): Change arg exec_only to predicate.
7234 (build_load_history): Use XCAR/XCDR.
7235 (Flocate_file_internal): New fun.
7236 (syms_of_lread): Defsubr it.
7237 (Fload): Update call to openp.
7238
7239 * lisp.h (openp): Update prototype.
7240
7241 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
7242 * w32proc.c (sys_spawnve):
7243 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
7244 * w32.c (check_windows_init_file):
7245 * sound.c (Fplay_sound_internal):
7246 * process.c (Fstart_process):
7247 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
7248 * mac.c (run_mac_command):
7249 * emacs.c (init_cmdargs):
7250 * callproc.c (Fcall_process): Update call to openp.
7251
7252 * textprop.c (remove_properties): Don't use XCAR without CONSP.
7253
7254 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
7255
72562002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7257
7258 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
7259 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
7260
72612002-04-28 Richard M. Stallman <rms@gnu.org>
7262
7263 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
7264
7265 * eval.c (Fcommandp): New arg for_call_interactively.
7266 * lisp.h (Fcommandp): Declare new arg.
7267
72682002-04-28 Jason Rumney <jasonr@gnu.org>
7269
7270 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
7271
7272 * w32.c (stat, fstat): Use file index information to generate
7273 inodes for directories where available.
7274
72752002-04-26 Andrew Choi <akochoi@shaw.ca>
7276
7277 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
7278 [HAVE_CARBON]: Include Mac object files.
7279
7280 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
7281 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
7282 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
7283 MAC_OSX, and MAC_OS instead of macintosh.
7284
7285 * editfns.c [MAC_OS8]: Include stdio.h.
7286
7287 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
7288
7289 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
7290 Apple Monaco.
7291
7292 * process.c: Declare QCfamily and QCfilter as extern.
7293 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
7294 calling select.
7295
7296 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
7297
7298 * tparam.c [MAC_OSX]: Don't define BC and UP.
7299
7300 * config.in [HAVE_CARBON]: Add.
7301
7302 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
7303 Move here from mac/src and mac/inc.
7304
7305 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
7306
73072002-04-26 Gerd Moellmann <gerd@gnu.org>
7308
7309 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
7310 Compute phys_cursor_width from the x position returned
7311 by x_draw_glyhs, which is cheaper.
7312 (x_display_and_set_cursor): Compute the buffer-local value
7313 of `cursor-in-non-selected-windows' only when needed.
7314
73152002-04-25 Gerd Moellmann <gerd@gnu.org>
7316
7317 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
7318 cursor on a stretch glyph has a width that depends on
7319 x_stretch_cursor_p.
7320
73212002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7322
7323 * abbrev.c (abbrev-start-location): Doc fix.
7324
7325 * indent.c (Fvertical_motion): Fix last change.
7326
73272002-04-25 Gerd Moellmann <gerd@gnu.org>
7328
7329 * indent.c (Fvertical_motion): Move to the start of the line
7330 containing PT before moving up or down.
7331
73322002-04-24 Gerd Moellmann <gerd@gnu.org>
7333
7334 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
7335 case of writing a whole row, more or less analogous to the case of
7336 writing only parts of a row.
7337
7338 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
7339 0 for NO_CURSOR.
7340
7341 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
7342
73432002-04-23 Colin Walters <walters@verbum.org>
7344
7345 * buffer.c (syms_of_buffer): Doc fix.
7346
73472002-04-23 Gerd Moellmann <gerd@gnu.org>
7348
7349 * xterm.c (notice_overwritten_cursor): Handle the special case
7350 of the cursor being in the first blank non-text line at the
7351 end of a window.
7352
7353 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
7354 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
7355 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
7356 bar cursors only, to make phys_cursor_width contain what its name
7357 suggests.
7358 (notice_overwritten_cursor): Consider the cursor image erased if
7359 the output area intersects the cursor image in y-direction.
7360
73612002-04-23 Simon Marshall <simon@gnu.org>
7362
7363 * xfns.c (x_set_mouse_color): Change default for cross_cursor
7364 to XC_hand2.
7365
73662002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7367
7368 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
7369
73702002-04-22 Kim F. Storm <storm@cua.dk>
7371
7372 * textprop.c (remove_properties): Fixed trap for malformed plist.
7373
73742002-04-22 Richard M. Stallman <rms@gnu.org>
7375
7376 * cmds.c (Fend_of_line): Handle intangible text in mid line.
7377
7378 * window.c (make_window): Initialize height_fixed_p,
7379 last_cursor_off_p, and p->cursor_off_p slots.
7380
73812002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7382
7383 * fns.c (use-dialog-box): Doc fix.
7384
73852002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7386
7387 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
7388 variables `row', `i' and `area'.
7389 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
7390 toolkit library.
7391
73922002-04-19 Stefan Monnier <monnier@cs.yale.edu>
7393
7394 * xfaces.c (clear_font_table): Don't free the default font of
7395 a frame even if it's on another display.
7396 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
7397 that could be Qt.
7398
73992002-04-19 Juanma Barranquero <lektu@terra.es>
7400
7401 * indent.c (Fmove_to_column): Remove unused local variable
7402 `next_boundary_byte'.
7403 (current_column_1): Likewise.
7404
74052002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7406
7407 * msdos.c (Qhbar): New variable.
7408 (syms_of_msdos): Intern and staticpro it.
7409 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
7410 cursor type.
7411
74122002-04-19 Dave Lambert <dlambert@acm.org>
7413
7414 Theses change implement an underscore-like (`hbar') cursor.
7415
7416 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
7417
7418 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
7419 Handle the `hbar' cursor type.
7420 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
7421
7422 * xfns.c (Qhbar): New variable.
7423 (syms_of_xfns): Intern and staticpro it.
7424 (x_specified_cursor_type): Handle `hbar' cursor.
7425
7426 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
7427 not defined.
7428
74292002-04-18 Richard M. Stallman <rms@gnu.org>
7430
7431 * textprop.c (remove_properties): New arg LIST allows scanning
7432 either a list or a plist.
7433 (interval_has_some_properties_list): New function, like
7434 interval_has_some_properties using list instead of plist.
7435 All callers changed.
7436 (Fremove_list_of_text_properties): New function.
7437 (syms_of_textprop): Defsubr it.
7438
74392002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
7440
7441 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
7442
74432002-04-17 Juanma Barranquero <lektu@terra.es>
7444
7445 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
7446
74472002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
7448
7449 * window.c (coordinates_in_window): Don't report on margin area
7450 if its width is zero.
7451
74522002-04-16 Jason Rumney <jasonr@gnu.org>
7453
7454 * w32fns.c (Fx_file_dialog): Decode file name before using.
7455
7456 * w32term.c (construct_drag_n_drop): Likewise.
7457
74582002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
7459
7460 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
7461 store load-history in pure space.
7462
7463 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
7464
74652002-04-16 Stefan Monnier <monnier@cs.yale.edu>
7466
7467 * xterm.c (Qlatin_1, Qutf_8): New vars.
7468 (syms_of_xterm): Initialize them.
7469 (XTread_socket): Eliminate incorrect optimization that tried to avoid
7470 decoding the output of X*LookupString.
7471 Always use latin-1 to decode the output of XLookupString.
7472 Try Xutf8LookupString if XmbLookupString failed.
7473
7474 * region-cache.c (new_region_cache): Use BEG.
7475
74762002-04-16 Gerd Moellmann <gerd@gnu.org>
7477
7478 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
7479 configuration files.
7480 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
7481 returns 0.
7482
74832002-04-15 Andreas Schwab <schwab@suse.de>
7484
7485 * config.in: Regenerated using autoheader.
7486
7487 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
7488 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
7489 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
7490 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
7491 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
7492 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
7493 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
7494 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
7495 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
7496 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
7497 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
7498 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
7499 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
7500 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
7501 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
7502 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
7503 STACK_DIRECTION, now set by autoconf.
7504
75052002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7506
7507 * dispnew.c (marginal_area_string): Sort arguments.
7508
7509 * dispextern.h (marginal_area_string): Add prototype.
7510
75112002-04-13 Richard M. Stallman <rms@gnu.org>
7512
7513 * fileio.c (Finsert_file_contents):
7514 Don't call temp_output_buffer_setup--do just part, by hand.
7515
7516 * coding.c (run_pre_post_conversion_on_str):
7517 Don't call temp_output_buffer_setup--do just part, by hand.
7518
7519 * keyboard.c (command_loop_1): Don't call start_hourglass
7520 or cancel_hourglass when executing a macro.
7521
7522 * marker.c (count_markers): New function.
7523
7524 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
7525 grow without limit. Move recently used elements to the front.
7526
75272002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
7528
7529 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
7530
75312002-04-12 Gerd Moellmann <gerd@gnu.org>
7532
7533 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
7534 rows marginal areas.
7535 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
7536 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
7537
7538 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
7539
75402002-04-12 Dave Love <fx@gnu.org>
7541
7542 * dispnew.c (marginal_area_string): New.
7543
7544 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
7545 (Qleft_margin, Qright_margin): Declare.
7546 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
7547
7548 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
7549 note_mode_line_highlight and extended.
7550
7551 * keyboard.c (Qleft_margin, Qright_margin): Declare.
7552 (make_lispy_event): Deal with mouse events in margins.
7553
75542002-04-12 Stefan Monnier <monnier@cs.yale.edu>
7555
7556 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
7557
7558 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
7559 than deactivating the mark if tmm is set to `lambda'.
7560 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
7561 Use a single event for HELP_EVENT.
7562 (Fexecute_extended_command): Save last_point_position.
7563
75642002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7565
7566 * lisp.h (Fpropertize): Add prototype.
7567
7568 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
7569
75702002-04-10 Colin Walters <walters@verbum.org>
7571
7572 * config.in: Add HAVE_SHARED_GAME_DIR.
7573
7574 * callproc.c: (Vgame_score_directory): New variable.
7575 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
7576
75772002-04-10 Richard M. Stallman <rms@gnu.org>
7578
7579 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
7580
75812002-04-09 Stefan Monnier <monnier@cs.yale.edu>
7582
7583 * minibuf.c (read_minibuf): Use empty_string.
7584 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
7585 Short-circuit the search as soon as it "failed".
7586 (Fall_completions): Allow lambda forms and lists of strings for alist.
7587 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
7588 when require_match is nil.
7589 (Ftest_completion): Rename from `test_completion' and export to elisp.
7590 Call the predicate also when alist is a list.
7591 Obey Vcompletion_regexp_list.
7592 (do_completion, Fminibuffer_complete_and_exit): Use it.
7593 (Fassoc_string): Rename from `assoc_for_completion'.
7594 Allow list of strings as well and export to elisp.
7595
75962002-04-08 Stefan Monnier <monnier@cs.yale.edu>
7597
7598 * puresize.h (BASE_PURESIZE): Increase to 900KB.
7599
76002002-04-08 Juanma Barranquero <lektu@terra.es>
7601
7602 * w32.c (sys_accept): Don't hide variable `s'.
7603
76042002-04-05 Gerd Moellmann <gerd@gnu.org>
7605
7606 * callint.c (Fcall_interactively): Use INTEGERP instead of
7607 NUMBERP for checking Vhistory_length.
7608
76092002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7610
7611 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
7612 Doc fix to reflect it.
7613
76142002-04-04 Richard M. Stallman <rms@gnu.org>
7615
7616 * xdisp.c (display_mode_element): New arg RISKY.
7617 Disregard text props found or specified within a variable
7618 that isn't marked risky-local-variable.
7619 (Qrisky_local_variable): New variable.
7620 (syms_of_xdisp): Init and staticpro it.
7621
76222002-04-04 Stefan Monnier <monnier@cs.yale.edu>
7623
7624 * undo.c (record_point): New fun.
7625 (record_delete, record_insert): Use it.
7626
76272002-04-03 Juanma Barranquero <lektu@terra.es>
7628
7629 * doc.c (Fdocumentation): Add missing parentheses.
7630 (Fdocumentation_property): Likewise.
7631
76322002-04-03 Stefan Monnier <monnier@cs.yale.edu>
7633
7634 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
7635 data is 0, just return nil.
7636
76372002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
7638
7639 * msdos.c (syms_of_msdos): Fix last change with
7640 mouse_autoselect_window.
7641
76422002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7643
7644 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
7645 mouse_autoselect_window.
7646
76472002-04-02 Stefan Monnier <monnier@cs.yale.edu>
7648
7649 * keyboard.c (make_lispy_event): Handle unknown keysyms together
7650 with system-specific keysyms. Use it also for unknown function keys.
7651
7652 * doc.c (reread_doc_file): Return whether reload was attempted.
7653 (Fdocumentation, Fdocumentation_property): Don't try to reload
7654 if the doc is 0 and only ask once.
7655
7656 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
7657
76582002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
7659
7660 * keyboard.c (read_char): If the event was Qselect_window,
7661 restore timer_idleness_start_time to its previous value.
7662
7663 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
7664
76652002-04-01 Stefan Monnier <monnier@cs.yale.edu>
7666
7667 * region-cache.c (new_region_cache): Use BEG.
7668
7669 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
7670 Use BEG and BEG_BYTE.
7671
7672 * doc.c (get_doc_string): Return nil if the location is wrong.
7673 (reread_doc_file): New fun.
7674 (Fdocumentation, Fdocumentation_property):
7675 Call it if get_doc_string fails.
7676 (Fsnarf_documentation): Make it work for a dumped Emacs.
7677
7678 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
7679 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
7680
7681 * charset.c (Fstring): Allow 0 arguments.
7682
7683 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
7684
7685 * process.c (DATAGRAM_CONN_P, list_processes_1)
7686 (Fprocess_datagram_address, Fset_process_datagram_address)
7687 (Fset_network_process_options, server_accept_connection):
7688 Fix some int/Lisp_Object confusions (thank you union types).
7689
76902002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7691
7692 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
7693
7694 * w32term.c: Likewise.
7695 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
7696
7697 * keyboard.c (Qselect_window): New symbol.
7698 (head_table): Use it.
7699 (keys_of_keyboard): Bound select-window event to handle-select-window.
7700 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
7701
7702 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
7703 (last_window): New variable.
7704 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
7705 (note_mouse_movement): Remove reimplemented code in #if 0.
7706 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
7707 Emacs windows.
7708
7709 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
7710
77112002-03-31 Gerd Moellmann <gerd@gnu.org>
7712
7713 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
7714 Callers changed.
7715
77162002-03-30 Richard M. Stallman <rms@gnu.org>
7717
7718 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
7719 loop whenever it stops making progress.
7720
7721 * widget.c (set_frame_size): Don't call change_frame_size.
7722
77232002-03-30 Gerd Moellmann <gerd@gnu.org>
7724
7725 * dispnew.c (direct_output_for_insert):
7726 Call mark_window_display_accurate.
7727
77282002-03-29 Jason Rumney <jasonr@gnu.org>
7729
7730 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
7731
77322002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
7733
7734 * Makefile.in (lread.o): Depend on coding.h.
7735
7736 * lread.c (openp, Fload): Encode the file name before passing it
7737 to `stat', `access', and `emacs_open'.
7738 (openp): GCPRO the encoded file name. Don't recompute Lisp
7739 strings unnecessarily.
7740
77412002-03-29 Kim F. Storm <storm@cua.dk>
7742
7743 * fns.c (Flax_plist_put): Doc fix.
7744
77452002-03-28 Miles Bader <miles@gnu.org>
7746
7747 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
7748
77492002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7750
7751 * process.c (set-network-process-options): Add usage.
7752 (make-network-process): Doc fix.
7753
77542002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
7755
7756 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
7757
77582002-03-26 Richard M. Stallman <rms@gnu.org>
7759
7760 * fns.c (Fsubstring_no_properties): New function.
7761 (Flax_plist_get, Flax_plist_put): New functions.
7762 (syms_of_fns): defsubr them.
7763
7764 * xdisp.c (update_menu_bar): Test only update_mode_lines;
7765 don't test or alter w->update_mode_line.
7766
7767 * window.c (Fdisplay_buffer): Doc fix.
7768
77692002-03-24 Richard M. Stallman <rms@gnu.org>
7770
7771 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
7772
77732002-03-24 Gerd Moellmann <gerd@gnu.org>
7774
7775 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
7776 (Fdefmacro): Handle `(declare ...)'.
7777 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
7778 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
7779
77802002-03-24 Jason Rumney <jasonr@gnu.org>
7781
7782 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
7783 (xbm_file_p): Add prototypes.
7784 (xbm_format, xbm_image_p): Sync with xfns.c.
7785 (reflect_byte): New function.
7786 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
7787 (xbm_load_image): Create bitmaps with a depth of 1.
7788 (init_xfns): Enable XBM images.
7789
77902002-03-23 Jason Rumney <jasonr@gnu.org>
7791
7792 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
7793 correctly. Do not pass up_modifier to keyboard buffer.
7794
7795 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
7796
77972002-03-22 Stefan Monnier <monnier@cs.yale.edu>
7798
7799 * Makefile.in (bootstrapclean): New target.
7800 (bootstrap-temacs, bootstrap-doc): Remove.
7801 (bootstrap-emacs): Use a bog-standard `temacs'.
7802 Don't bother to build a DOC file.
7803
7804 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
7805
7806 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
7807 in temacs even if !CANNOT_DUMP.
7808 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
7809
7810 * alloc.c (check_pure_size): Only output a warning.
7811
78122002-03-22 Jason Rumney <jasonr@gnu.org>
7813
7814 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
7815 supported.
7816
7817 * w32term.c (zv_bits): Declare as short, for word alignment.
7818 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
7819 (syms_of_w32term): Define x-use-underline-position-properties.
7820
7821 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
7822 (clear_image_cache): Block input, fix logic, clear matrices in
7823 all frames that share this cache.
7824
78252002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
7826
7827 * emacs.c (main): Update the Copyright year in the blurb printed
7828 by "emacs --version".
7829
7830 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
7831
7832 * xterm.c (XTread_socket): If XK_ISO_Lock and
7833 XK_ISO_Last_Group_Lock are defined, handle keysyms between
7834 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
7835
78362002-03-21 Kim F. Storm <storm@cua.dk>
7837
7838 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
7839 menu-bar bindings in keymap and local-map properties _are_ used.
7840 But try keymap property first in accordance with 2002-01-03 patch.
7841 Added comment describing why this is not always reliable.
7842 (tool_bar_items): Ditto for tool-bar.
7843
78442002-03-21 Jason Rumney <jasonr@gnu.org>
7845
7846 * w32fns.c (x_clear_image_1): Disable color table code.
7847
78482002-03-21 Kim F. Storm <storm@cua.dk>
7849
7850 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
7851 removed the wrong version of the DEFUN macro; fixed it.
7852
7853 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
7854 Fmember rather than Fmemq).
7855 (Fprovide): Check that subfeatures is a list.
7856
7857 * process.c (QCfeature, QCdatagram): Removed variables.
7858 (QCtype, Qdatagram): New variables.
7859 (network_process_featurep): Removed function.
7860 (Fmake_network_process): Removed :feature check.
7861 Use :type 'datagram instead of :datagram t to create a datagram
7862 socket. This allows us to add other connection types (e.g. raw
7863 sockets) later in a consistent manner.
7864 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
7865 supported subfeatures for feature make-network-process.
7866 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
7867 Intern and staticpro QCtype and Qdatagram.
7868 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
7869
7870 * xfns.c: (QCtype): Remove duplicate declaration and
7871 initialization (is now declared in process.c).
7872
7873 * w32fns.c: (QCtype): Remove duplicate declaration and
7874 initialization (is now declared in process.c).
7875
78762002-03-21 Richard M. Stallman <rms@gnu.org>
7877
7878 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
7879 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
7880 when jumping to `fail' to avoid undoing reg changes in the
7881 last iteration of the loop.
7882 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
7883
7884 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
7885 Depend on process.h.
7886
78872002-03-20 Jason Rumney <jasonr@gnu.org>
7888
7889 Most of the following changes are still conditional on HAVE_IMAGES
7890 which is not set by default on Windows.
7891
7892 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
7893
7894 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
7895 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
7896 (four_corners_best, x_clear_image_1, x_clear_image)
7897 (x_alloc_image_color, postprocess_image)
7898 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
7899 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
7900 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
7901
7902 * w32gui.h (struct XImage): Define.
7903
7904 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
7905 extract mouse co-ordinates.
7906
79072002-03-20 Jason Rumney <jasonr@gnu.org>
7908
7909 * w32.c (init_winsock): Dynamically load new server and UDP
7910 socket functions.
7911 (socket_to_fd): New function.
7912 (sys_socket): Use it.
7913 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
7914 (sys_recvfrom, sys_sendto): New wrapper functions.
7915
7916 * process.c (QCfamily, QCfilter): Remove duplicate declaration
7917 and initialization.
7918
7919 * makefile.w32-in (LIBS): Remove $(WSOCK32).
7920
79212002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
7922
7923 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
7924 Don't use "sun" as a variable, it's a predefined constant on Sun
7925 machines.
7926
79272002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7928
7929 * bytecode.c (Fbyte_code): Revert last change.
7930
79312002-03-19 Kim F. Storm <storm@cua.dk>
7932
7933 * makefile.w32-in (LIBS): Add $(WSOCK32).
7934 From David Ponce <dponce@voila.fr>.
7935
79362002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7937
7938 * process.c (wait_reading_process_input): Move variables `pname'
7939 and `pnamelen' down where they are used.
7940
7941 * bytecode.c (Fbyte_code): Discard unused computed value to
7942 prevent gcc warning.
7943
7944 * lisp.h (Fplist_member): Add prototype.
7945
79462002-03-18 Kim F. Storm <storm@cua.dk>
7947
7948 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
7949 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
7950
7951 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
7952 Remove explicit GNU_LINUX settings for datagram support.
7953
79542002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7955
7956 * process.c (Fmake_network_process): Remove unused variable `sa'.
7957 Doc fix. Add usage:.
7958 (set_socket_options): Remove unused variables `optnum' and `opttype'.
7959
79602002-03-17 Richard M. Stallman <rms@gnu.org>
7961
7962 * xdisp.c (cursor_type_changed): New variable.
7963 (redisplay_internal): Redisplay all windows if cursor_type_changed.
7964 Clear it when clearing windows_or_buffers_changed.
7965 (try_cursor_movement, redisplay_window, try_window_id)
7966 (try_window_reusing_current_matrix): Test cursor_type_changed
7967 along with windows_or_buffers_changed.
7968
7969 * window.h (cursor_type_changed): New variable.
7970
7971 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
7972 not update_mode_lines, and always set it to 1.
7973
7974 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
7975 if no frames needed redrawing.
7976
79772002-03-17 Kim F. Storm <storm@cua.dk>
7978
7979 The following changes add support for network server processes,
7980 datagram connections, and local (unix) sockets.
7981
7982 * process.h (struct Lisp_Process): New member log.
7983 Doc fix: Member command used to indicate stopped network process.
7984 Doc fix: Member childp contains plist for network process.
7985 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
7986
7987 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
7988 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
7989 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
7990 New variables.
7991 (NETCONN1_P): New macro.
7992 (DATAGRAM_SOCKETS): New conditional symbol.
7993 (datagram_address): New array.
7994 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
7995 (status_message): Use concat3.
7996 (Fprocess_status): Add `listen' status to doc string. Return `stop'
7997 for a stopped network process.
7998 (Fset_process_buffer): Update contact plist for network process.
7999 (Fset_process_filter): Ditto. Don't enable input for stopped
8000 network processes. Server must listen, even if filter is t.
8001 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
8002 New functions.
8003 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
8004 (Fprocess_contact): Added KEY argument. Handle datagrams.
8005 (list_processes_1): Optionally show only processes with the query
8006 on exit flag set. Dynamically adjust column widths. Omit tty
8007 column if not needed. Report stopped network processes.
8008 Identify server and datagram network processes.
8009 (Flist_processes): New optional arg `query-only'.
8010 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
8011 (conv_lisp_to_sockaddr, set_socket_options)
8012 (network_process_featurep, unwind_request_sigio): New helper functions.
8013 (Fprocess_datagram_address, Fset_process_datagram_address):
8014 (Fset_network_process_options): New lisp functions.
8015 (Fopen_network_stream): Removed. Now defined in simple.el.
8016 (Fmake_network_process): New lisp function. Code is based on previous
8017 Fopen_network_stream, but heavily reworked with new property list based
8018 argument list, support for datagrams, server processes, and local
8019 sockets in addition to old client-only functionality.
8020 (server_accept_connection): New function.
8021 (wait_reading_process_input): Use it to handle incoming connects.
8022 Do not enable input on a new connection if process is stopped.
8023 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
8024 (send_process): Handle datagram sockets.
8025 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
8026 network process is indicated by setting command field to t .
8027 (Fprocess_send_eof): No-op if datagram connection.
8028 (Fstatus_notify): Don't read input for a stream server socket or a
8029 stopped network process.
8030 (init_process): Initialize datagram_address array.
8031 (syms_of_process): Intern and staticpro new variables, defsubr new
8032 functions.
8033
80342002-03-16 Jason Rumney <jasonr@gnu.org>
8035
8036 * w32fns.c (w32_to_all_x_charsets): Return correct type in
8037 startup case.
8038
80392002-03-16 Richard M. Stallman <rms@gnu.org>
8040
8041 * xdisp.c (redisplay_internal, redisplay_windows):
8042 Use list_of_error to call internal_condition_case_1.
8043 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
8044 so as to catch all errors with no possibility of debugger redisplay.
8045 (list_of_error): New variable.
8046 (syms_of_xdisp): Init and staticpro it.
8047
8048 * print.c (print_object): Delete `\ ' from printed rep of frame.
8049
80502002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
8051
8052 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
8053 until its implementation is fixed.
8054
80552002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8056
8057 * xfns.c (png_load): Remove unused variable `gamma_str'.
8058
80592002-03-14 Richard M. Stallman <rms@gnu.org>
8060
8061 * xfns.c (x_real_positions): Handle failure in XQueryTree.
8062
80632002-03-14 Miles Bader <miles@gnu.org>
8064
8065 * intervals.c (adjust_for_invis_intang): New function.
8066 (set_point_both): Use `adjust_for_invis_intang' to do most of the
8067 work for dealing with invisible+intangible regions. Do so before
8068 and after both forward and backward movements, to handle both
8069 front-sticky and rear-sticky cases.
8070 * textprop.c (text_property_stickiness): Function moved here from
8071 `editfns.c'.
8072 * intervals.h (text_property_stickiness): New declaration.
8073 * editfns.c (char_property_eq): Function removed.
8074 (text_property_stickiness): Function moved to `textprop.c'.
8075
80762002-03-13 Jason Rumney <jasonr@gnu.org>
8077
8078 * config.in: Add STRFTIME_NO_POSIX2.
8079
8080 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
8081 and %OX when underlying strftime does not.
8082
80832002-03-13 Stefan Monnier <monnier@cs.yale.edu>
8084
8085 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
8086 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
8087 line) to avoid annoying flicker.
8088 (xm_scroll_callback): Get rid of the now unnecessary kludge.
8089 (XTread_socket): Mark it static.
8090
8091 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
8092
80932002-03-13 Kim F. Storm <storm@cua.dk>
8094
8095 * puresize.h (BASE_PURESIZE): Increase to 775000.
8096
80972002-03-12 Juanma Barranquero <lektu@terra.es>
8098
8099 * editfns.c (syms_of_editfns): Fix typo.
8100
81012002-03-12 Gerd Moellmann <gerd@gnu.org>
8102
8103 * xsmfns.c: Include stdio.h because termhooks.h needs it.
8104 Include termopt.h for interrupt_input.
8105
81062002-03-11 Andreas Schwab <schwab@suse.de>
8107
8108 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
8109
81102002-03-11 Gerd Moellmann <gerd@gnu.org>
8111
8112 * xterm.c (note_mouse_movement): Put code for
8113 x_autoselect_window_p in #if 0.
8114
8115 * lread.c (Fload): Don't assume that message_with_string uses the
8116 string it is given like a C string.
8117
81182002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8119
8120 * xterm.h (x_session_check_input, x_session_initialize): Declared.
8121
8122 * xterm.c: (XTread_socket): Add call to x_session_check_input and
8123 x_session_have_connection.
8124 (x_initialize): Add call to x_session_initialize.
8125
8126 * termhooks.h (enum event_kind): Add save_session_event.
8127
8128 * keyboard.c: Add Emacs event save_session_event.
8129
8130 * emacs.c (main): Add call to syms_of_xsmfns.
8131
8132 * lisp.h: Declare syms_of_xsmfns as extern.
8133
8134 * config.in: Add HAVE_X_SM.
8135
8136 * Makefile.in (LIBXT): Add -lSM -lICE
8137 if HAVE_X_SM and not USE_X_TOOLKIT.
8138 (XOBJ): New file xsmfns.c added.
8139
8140 * xsmfns.c: New file for X session management.
8141
81422002-03-09 Jason Rumney <jasonr@gnu.org>
8143
8144 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
8145 read-only when setting modified time.
8146
81472002-03-08 Gerd Moellmann <gerd@gnu.org>
8148
8149 * xdisp.c (move_it_vertically_backward): At the end of the function,
8150 when moving forward by lines, treat terminal frames specially.
8151
8152 * keyboard.c (echo_char): Make sure to add a separator between
8153 keys even if echo_dash hasn't been called.
8154
8155 * xdisp.c: Use new string macros.
8156 (update_echo_area): Pass number of bytes to message3 instead of
8157 number of chars.
8158 (set_message_1): Don't access a string's size_byte directly.
8159 (decode_mode_spec_coding): Use number of bytes of eoltype string
8160 instead number of chars.
8161
8162 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
8163
81642002-03-08 Juanma Barranquero <lektu@terra.es>
8165
8166 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
8167 24-bit.
8168
81692002-03-06 Jason Rumney <jasonr@gnu.org>
8170
8171 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
8172
81732002-03-06 Gerd Moellmann <gerd@gnu.org>
8174
8175 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
8176 (cancel_echoing, echo_length, echo_truncate): Changed to
8177 work with new kboard definition.
8178 (echo_now): Use message3_nolog instead of message2_nolog.
8179
8180 * alloc.c (mark_kboards): Mark echo_string.
8181
8182 * keyboard.h (ECHOBUFSIZE): Removed.
8183 (struct kboard): Member echoptr removed, member echobuf renamed
8184 to echo_string.
8185
8186 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
8187 message3 instead of message2 to display the message using STRING's
8188 text properties.
8189
81902002-03-05 Andreas Schwab <schwab@suse.de>
8191
8192 * xdisp.c (hscroll_margin): Change to EMACS_INT.
8193
81942002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
8195
8196 * frame.c (default-frame-alist): Explain that setting it doesn't
8197 affect existing frames.
8198
81992002-03-05 Stefan Monnier <monnier@cs.yale.edu>
8200
8201 * indent.c (skip_invisible): Fix my brain fart.
8202
8203 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
8204
82052002-03-04 Stefan Monnier <monnier@cs.yale.edu>
8206
8207 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
8208 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
8209 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
8210 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
8211 and variables to use EMACS_INT instead of just int.
8212
8213 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
8214
82152002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
8216
8217 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
8218 environment, pass it down with corrected value.
8219
82202002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8221
8222 * lread.c (read_filtered_event): Do not call start_hourglass
8223 before returning.
8224
82252002-03-04 Juanma Barranquero <lektu@terra.es>
8226
8227 * w32term.c (x_display_and_set_cursor): Fix typo.
8228
82292002-03-03 Richard M. Stallman <rms@gnu.org>
8230
8231 * fileio.c (Fmake_temp_name): Doc fix.
8232
82332002-03-03 Gary Wong <gtw@gnu.org>
8234
8235 * termcap.c [!emacs]: Replace ospeed for building standalone
8236 libtermcap, for binary compatibility.
8237
8238 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
8239
82402002-03-03 Richard M. Stallman <rms@gnu.org>
8241
8242 * xrdb.c (file_p): Rename arg `path' to `filename'.
8243
8244 * abbrev.c (Fexpand_abbrev): Increment plist as use count
8245 only if it is an integer.
8246
8247 * xfns.c (png_load): Set screen_gamma based on f->gamma.
8248 If png_get_sRGB gives an answer, call png_set_gamma
8249 using the default image gamma value.
8250
8251 * lread.c (read1): When reading from a file, default string to
8252 multibyte only if it has some multibyte characters.
8253
8254 * print.c (print_object): Output multibyte chars 128...255
8255 using \x even if ! print_escape_multibyte.
8256
8257 * xdisp.c (display_mode_element): Move the places where
8258 bytepos, charpos, this, and lisp_string are set.
8259 Use lisp_string to set bytepos.
8260
8261 * xdisp.c (redisplay_internal):
8262 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
8263
8264 * xdisp.c (display_mode_element): Merge properties specified with
8265 :propertize onto those that come with the string.
8266
82672002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
8268
8269 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
8270 automatic-hscrolling. Users changed.
8271 <hscroll-margin>: Renamed from automatic-hscroll-margin.
8272 Users changed.
8273 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
8274
82752002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
8276
8277 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
8278
82792002-03-02 Kim F. Storm <storm@cua.dk>
8280
8281 * window.c (Fminibuffer_selected_window): New function.
8282 (syms_of_window): Defsubr it.
8283
82842002-03-01 Kim F. Storm <storm@cua.dk>
8285
8286 * window.h (struct window): New member phys_cursor_width.
8287
8288 * window.c (make_window, replace_window): Init phys_cursor_width.
8289
8290 * xterm.c (x_display_and_set_cursor): Blink box cursor using
8291 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
8292
8293 * w32term.c (x_display_and_set_cursor): Blink box cursor using
8294 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
8295
8296 * lisp.h (GCPRO6): New macro.
8297
8298 * process.c (Fopen_network_stream): Use GCPRO6.
8299
83002002-03-01 Kim F. Storm <storm@cua.dk>
8301
8302 * process.c (Qconnect, Qfailed): New variables.
8303 (syms_of_process): Intern and staticpro them.
8304 (Fprocess_status): Document connect and failed return values.
8305 [NON_BLOCKING_CONNECT]: New conditional.
8306 (connect_wait_mask, num_pending_connects): New variables.
8307 (status_message): Convert Qfailed status.
8308 (Fopen_network_stream): Added support for non-blocking connect.
8309 New optional args: filter, sentinel, non_blocking. Doc updated.
8310 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
8311 (deactivate_process): Handle pending non-blocking connect.
8312 (wait_reading_process_input): Poll for status of non-blocking
8313 connects. Exec sentinel directly when connect succeeds.
8314 (status_notify): Don't read process output if not yet connected.
8315
83162002-02-28 Kim F. Storm <storm@cua.dk>
8317
8318 * window.c: (minibuf_selected_window): Renamed from
8319 Vminibuf_selected_window. Users changed.
8320 (syms_of_window): Staticpro it.
8321
83222002-02-26 Kim F. Storm <storm@cua.dk>
8323
8324 The following changes add a new Vminibuf_selected_window variable
8325 which is similar to Vminibuf_scroll_window, but which is only set
8326 on entry to the minibuffer (from a non-minibuffer window):
8327
8328 * window.c: (Vminibuf_selected_window): New variable.
8329 (struct save_window_data): New member minibuf_selected_window.
8330 (Fset_window_configuration): Restore Vminibuf_selected_window.
8331 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
8332 Set minibuf_scroll_window member to nil if minibuf_level is 0.
8333 (compare_window_configurations): Compare minibuf_selected_window.
8334
8335 * window.h: (Vminibuf_selected_window): Declare extern.
8336
8337 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
8338 entry to minibuffer or on entry from a non-minibuffer window.
8339
8340 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
8341 Vminibuf_selected_window instead of Vminibuf_scroll_window.
8342
8343 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
8344 instead of Vminibuf_scroll_window when deciding in which window
8345 the region should be highlighted. Consequently, the region remains
8346 highlighteded even when a completion buffer is also displayed.
8347
83482002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
8349
8350 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
8351
8352 * xselect.c (Qcompound_text_with_extensions): Renamed from
8353 Qcompound_text_no_extensions.
8354 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
8355
83562002-02-26 Juanma Barranquero <lektu@terra.es>
8357
8358 * w32proc.c (syms_of_ntproc): Doc fix.
8359
83602002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8361
8362 * intervals.h: Include "dispextern.h" unconditionally.
8363
83642002-02-24 Jason Rumney <jasonr@gnu.org>
8365
8366 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
8367 and disp-table.elc.
8368 (lisp): Add emacs-lisp/backquote.elc.
8369
83702002-02-24 Kim F. Storm <storm@cua.dk>
8371
8372 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
8373 The validation of the event type was too strict as it didn't
8374 allow string events; buffer names are used in bindings for
8375 menu-bar-select-buffer (see `menu-bar-update-buffers').
8376
83772002-02-23 Kim F. Storm <storm@cua.dk>
8378
8379 The following changes rework my patch of 2002-02-06 which
8380 added command remapping by entering the commands directly into
8381 the keymaps. Now, command remapping uses an explicit `remap'
8382 prefix in the keymaps, i.e. [remap COMMAND].
8383
8384 * keymap.c (Qremap, remap_command_vector): New variables.
8385 (is_command_symbol): Removed function.
8386 (Fdefine_key): No longer accept a symbol for KEY.
8387 Added validation of [remap COMMAND] argument for KEY.
8388 The DEF is no longer required to be a symbol when remapping a command.
8389 (Fremap_command): New function to remap command through keymaps.
8390 (Flookup_key): Perform command remapping initiated by
8391 Fremap_command directly for speed.
8392 (Fkey_binding): Use Fremap_command for command remapping.
8393 (where_is_internal): Handle new command remapping representation.
8394 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
8395 staticpro them. Defsubr Fremap_command.
8396
8397 * keymap.h (Fremap_command): Declare extern.
8398 (is_command_symbol): Remove extern.
8399
8400 * keyboard.c (command_loop_1): Use Fremap_command for command
8401 remapping; now try command remapping for all symbols.
8402
84032002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
8404
8405 * coding.h (run_pre_post_conversion_on_str): Add prototype.
8406
84072002-02-23 Jason Rumney <jasonr@gnu.org>
8408
8409 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
8410 on the string before encoding it.
8411 (Fw32_get_clipboard_data): Run post-read-conversion on the string
8412 after decoding it.
8413
8414 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
8415
84162002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8417
8418 * w32term.c (enter_timestamp): Remove unused static variable to
8419 prevent warning.
8420
8421 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
8422
84232002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
8424
8425 * w16select.c (Fw16_get_clipboard_data): Fix last change.
8426
8427 * xselect.c (selection_data_to_lisp_data): Fix last change.
8428
84292002-02-22 Jason Rumney <jasonr@gnu.org>
8430
8431 * w32term.h (struct w32_output): New member menu_command_in_progress.
8432
8433 * w32menu.c (menubar_selection_callback): Free the menu and
8434 clear the menu_command_in_progress flag.
8435
8436 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
8437 (menu_free_timer): New variable.
8438 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
8439 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
8440 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
8441 menu command is in progress.
8442 <WM_COMMAND>: Set the menu_command_in_progress flag.
8443 Kill any menu_free_timer that is running.
8444
8445 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
8446 Call ExtTextOutA rather than ExtTextOut.
8447
84482002-02-22 Eli Zaretskii <eliz@gnu.org>
8449
8450 * puresize.h (BASE_PURESIZE): Increase to 755000.
8451
84522002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
8453
8454 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
8455 on the string before encoding it.
8456 (Fw16_get_clipboard_data): Run post-read-conversion on the string
8457 after decoding it.
8458
84592002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
8460
8461 Support for ICCCM Extended Segments in X selections:
8462
8463 * xselect.c <Qcompound_text_no_extensions>: New variable.
8464 (syms_of_xselect): Intern and staticpro it.
8465 (selection_data_to_lisp_data): Run post-read-conversion on decoded
8466 selection text.
8467 (lisp_data_to_selection_data): If next-selection-coding-system is
8468 compound-text-no-extensions, set the type of selection to be
8469 compound-text.
8470
8471 * xterm.h (x_encode_text): Update prototype.
8472
8473 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
8474 callers changed. If SELECTIONP is non-zero, run the
8475 pre-write-conversion function before encoding the selection text.
8476
84772002-02-21 Kim F. Storm <storm@cua.dk>
8478
8479 * frame.c (syms_of_frame): Change mouse-highlight default to t.
8480
8481 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
8482 Correct composing of language-change event.
8483
84842002-02-20 Kim F. Storm <storm@cua.dk>
8485
8486 * keyboard.c (menu_bar_items): Don't include keymap or local-map
8487 bindings at PT when building menu (the menu is not updated often
8488 enough for this to work reliable).
8489 (tool_bar_items): Likewise.
8490 (current_active_maps): Removed unused (and buggy) function.
8491
84922002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8493
8494 * xfns.c (gif_load): Use correct width and height for GIF images.
8495
84962002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
8497
8498 * floatfns.c (Fatan): Accept an optional second arg and call
8499 atan2 if passed 2 args.
8500
85012002-02-18 Jason Rumney <jasonr@gnu.org>
8502
8503 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
8504
85052002-02-17 Jason Rumney <jasonr@gnu.org>
8506
8507 * w32term.c (x_autoselect_window_p): New variable.
8508 (syms_of_w32term): DEFVAR_BOOL and initialize it.
8509 (note_mouse_movement): Use it.
8510
8511 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
8512
8513 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
8514
8515 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
8516 New variables.
8517 (syms_of_w32fns): Intern and staticpro them.
8518 (x_frame_parms) <"fullscreen">: New parameter.
8519 (x_fullscreen_move, x_set_fullscreen): New functions.
8520 (x_set_frame_parameters): Support Qfullscreen.
8521 (x_real_positions): Save x/y_pixels_diff frame params.
8522 (x_figure_window_size): Support full-screen frames.
8523 (Fx_create_frame): Default the fullscreen parameter.
8524
8525 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
8526 (x_fullscreen_adjust): New functions.
8527 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
8528 fullscreen. Call x_check_fullscreen_move, and set the
8529 want_fullscreen member of output_data.w32
8530 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
8531
8532 * w32term.h: New enum for FULLSCREEN_* constants.
8533 (struct w32_output): New members want_fullscreen, x_pixels_diff,
8534 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
8535 (x-fullscreen-adjust): New prototype.
8536
85372002-02-17 Kim F. Storm <storm@cua.dk>
8538
8539 * frame.c: (Vmouse_highlight): New variable.
8540 (syms_of_frame): DEFVAR_LISP it.
8541
8542 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 8543
048addec 8544 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 8545
048addec
JD
8546 * xterm.c (disable_mouse_highlight): Removed variable.
8547 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
8548 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
8549 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
8550 and on after keyboard input.
8551 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 8552
048addec 8553 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 8554
048addec
JD
8555 * msdos.c (disable_mouse_highlight): Removed variable.
8556 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
8557 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
8558 (internal_terminal_init): Initialize mouse_face_hidden.
8559 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
8560 and on after keyboard input.
4f1b1854 8561
048addec 8562 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 8563
048addec
JD
8564 * w32term.c (disable_mouse_highlight): Removed variable.
8565 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
8566 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
8567 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
8568 and on after keyboard input.
8569 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 8570
048addec 85712002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 8572
048addec
JD
8573 * msdos.c (last_mouse_window): New variable.
8574 (dos_rawgetc): Fix last change--if the mouse is in the same window
8575 as recorded in last_mouse_window, don't select this window.
5cb6905d 8576
048addec 8577 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 8578
048addec
JD
8579 * msdos.c (x_autoselect_window_p): New variable.
8580 (syms_of_msdos): Defvar it.
8581 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
8582 which the last mouse movement occured, unless it is already selected.
437dfb9f 8583
048addec
JD
8584 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
8585 New variables.
8586 (syms_of_xdisp): DEVFAR them.
8587 (hscroll_window_tree): Use automatic_hscroll_margin and
8588 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 8589
048addec 85902002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 8591
048addec
JD
8592 * xterm.c (x-autoselect-window): New variable.
8593 (note_mouse_movement): Use it.
9f696a00 8594
048addec 8595 * keyboard.c: Do not include "systime.h" twice.
d57966d7 8596
048addec 85972002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 8598
048addec 8599 * puresize.h (BASE_PURESIZE): Increase to 9/5.
d57966d7 8600
048addec 8601 * alloc.c (NSTATICS): Increase to 1280.
74779f52 8602
048addec 86032002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 8604
048addec 8605 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 8606
048addec
JD
8607 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
8608 (Vx_super_keysym): New variables.
8609 (syms_of_xterm): DEFVAR_LISP them.
8610 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
8611 variables to determine which keys to use for the various modifiers.
a474d59c 8612
048addec 86132002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 8614
048addec
JD
8615 * window.c: (Vmode_line_in_non_selected_windows): Removed.
8616 (mode_line_in_non_selected_windows): New variable.
8617 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 8618
048addec
JD
8619 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
8620 Use mode_line_in_non_selected_windows.
8621 (mode_line_in_non_selected_windows): Declare extern.
8622 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 8623
048addec 86242002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 8625
048addec
JD
8626 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
8627 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
8628 (Fclear_this_command_keys): Doc fixes.
2d10309f 8629
048addec
JD
8630 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
8631 (update_face_from_frame_parameter): Increment face_change_count
8632 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 8633
048addec
JD
8634 * xdisp.c (QCpropertize): New variable.
8635 (mode_line_proptrans_alist): New variable.
8636 (display_mode_element): New arg PROPS; all calls changed.
8637 Implement this, for strings.
8638 Handle literal output of strings by sharing the
8639 main-line code for strings, using local var `literal'.
8640 Handle :propertize feature.
8641 (syms_of_xdisp): Initialze and staticpro QCpropertize and
8642 mode_line_proptrans_alist.
0b1e6b54 8643
048addec 86442002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 8645
048addec
JD
8646 * window.c: (Vmode_line_in_non_selected_windows): New variable.
8647 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 8648
048addec
JD
8649 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
8650 (CURRENT_MODE_LINE_FACE_ID): Use it.
8651 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 8652
048addec
JD
8653 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
8654 to get mode line face.
e17144de 8655
048addec 86562002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 8657
048addec
JD
8658 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
8659 variables; cus-start.el doesn't need them anymore.
44368f8f 8660
048addec 86612002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 8662
048addec
JD
8663 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
8664 reduction. This fixes a display problem where stray newlines were
8665 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 8666
048addec 86672002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 8668
048addec 8669 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 8670
048addec 8671 * xdisp.c (display_mode_lines): Fix last change.
453c5510 8672
048addec 86732002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 8674
048addec
JD
8675 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
8676 match each other.
8677 (w32_load_system_font): Prevent Cleartype fonts from loading.
8678 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 8679
048addec 86802002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 8681
048addec
JD
8682 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
8683 (CURRENT_MODE_LINE_HEIGHT): Use it.
8684 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 8685
048addec
JD
8686 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
8687 (pos_visible_p, handle_face_prop): Likewise.
8688 (display_mode_lines): Likewise, but for the real selected window.
8689 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 8690
048addec
JD
8691 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
8692 in non-selected windows.
8693 (realize_basic_faces): Realize it.
8694 (syms_of_term): Intern and staticpro it.
308dd672 8695
048addec 86962002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 8697
048addec
JD
8698 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
8699 Changed mail addresses to emacs-devel@gnu.org.
308dd672 8700
048addec 87012002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 8702
048addec
JD
8703 * fileio.c (Fsubstitute_in_file_name): If the file name includes
8704 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 8705
048addec 8706 * floatfns.c (Fround): Doc fix.
3c1e6b46 8707
048addec 87082002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 8709
048addec 8710 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 8711
048addec 87122002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 8713
048addec 8714 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 8715
048addec 87162002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 8717
048addec
JD
8718 * keymap.c (where_is_internal): Only check whether definition is
8719 remapped if it fulfills is_command_symbol.
0065bb74 8720
048addec 87212002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 8722
048addec 8723 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 8724
048addec 8725 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 8726
048addec 87272002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 8728
048addec
JD
8729 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
8730 defining command remapping. Doc updated.
8731 (Flookup_key): Remap command through keymap if KEY is a symbol.
8732 (is_command_symbol): New function.
8733 (Fkey_binding): Use it. New optional argument NO-REMAP.
8734 Doc updated. Callers changed. Perform command remapping via
8735 recursive call unless that arg is non-nil.
8736 (where_is_internal): New argument no_remap. Callers changed.
8737 Call recursively to find original key bindings for a remapped
8738 comand unless that arg is non-nil.
8739 (Fwhere_is_internal): New optional argument NO-REMAP.
8740 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 8741
048addec
JD
8742 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
8743 (is_command_symbol): Added prototype.
0d8466cc 8744
048addec
JD
8745 * keyboard.c (Vthis_original_command): New variable.
8746 (syms_of_keyboard): DEFVAR_LISP it.
8747 (command_loop_1): Set it, and perform command remapping.
15fff01d 8748
048addec 87492002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 8750
048addec 8751 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 8752
048addec 87532002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 8754
048addec 8755 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 8756
048addec 87572002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 8758
048addec 8759 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 8760
048addec 87612002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 8762
048addec 8763 * filelock.c (S_ISLNK): Define if not defined.
3a232704 8764
048addec 87652002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 8766
048addec 8767 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 8768
048addec
JD
8769 * lread.c (read1): Redesign strategy for force_multibyte and
8770 force_singlebyte. Now is_multibyte records whether read_buffer
8771 is multibyte. Encountering any multibyte character makes it so.
4e02881b 8772
048addec 87732002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 8774
048addec
JD
8775 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
8776 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 8777
048addec 87782002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 8779
048addec
JD
8780 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
8781 latter never being defined on GNU/Linux.
749f499f 8782
048addec 87832002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 8784
048addec
JD
8785 * xfaces.c (realize_default_face): Don't set the weight and slant of
8786 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 8787
048addec 87882002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 8789
048addec
JD
8790 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
8791 Call cancel_hourglass unconditionally.
d0fd26dd 8792
048addec
JD
8793 * eval.c (Fsignal): Remove duplicated declaration of
8794 the variable `display_hourglass_p'.
b4c45162 8795
048addec 87962002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 8797
048addec 8798 * editfns.c (region_limit): Nicer error message.
c95eaa61 8799
048addec
JD
8800 * coding.c (decode_composition_emacs_mule):
8801 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 8802
048addec
JD
8803 * callint.c (check_mark): New arg to specify clearer error message.
8804 Callers changed.
c95eaa61 8805
048addec 88062002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 8807
048addec 8808 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 8809
048addec 88102002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 8811
048addec
JD
8812 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
8813 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
8814 Fix doc-strings.
c95eaa61 8815
048addec 88162002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 8817
048addec 8818 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 8819
048addec
JD
8820 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
8821 and scroll_up_aggressively.
c95eaa61 8822
048addec 88232002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 8824
048addec 8825 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 8826
048addec 88272002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 8828
048addec
JD
8829 * textprop.c (Fnext_property_change, Fnext_single_property_change)
8830 (Fprevious_property_change, Fprevious_single_property_change):
8831 Stay within the narrowed-buffer boundaries.
e2c3786a 8832
048addec 88332002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 8834
048addec
JD
8835 * term.c (Ftty_display_color_cells): New function.
8836 (syms_of_term): Defsubr it.
8837 (Ftty_display_color_cells, Ftty_display_color_p): Change the
8838 argument name to DISPLAY. Doc fix.
bf794306 8839
048addec
JD
8840 * dispextern.h: Add prototype for set_tty_color_mode and
8841 tty_setup_colors.
bf794306 8842
048addec 88432002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 8844
048addec
JD
8845 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
8846 If region left to draw is not what was expected, mark the frame as
8847 garbaged.
62582985 8848
048addec
JD
8849 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
8850 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 8851
048addec 88522002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 8853
048addec
JD
8854 * w32term.c (x_update_window_begin): Only hide caret if
8855 w32_use_visible_system_caret is set.
8856 (x_update_window_end): Only show caret if
8857 w32_use_visible_system_caret is set.
8858 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 8859
048addec 8860 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 8861
048addec 88622002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 8863
048addec
JD
8864 * unexelf.c (unexec): Define n so as to cause compilation error
8865 for the code where people have often written n instead of nn.
1e9a6186 8866
048addec 8867 * .gdbinit (hookpost-run): Defined.
1e9a6186 8868
048addec 88692002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 8870
048addec 8871 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 8872
048addec 88732002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 8874
048addec
JD
8875 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
8876 if fullscreen is being set.
7c75be36 8877
048addec 88782002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 8879
048addec
JD
8880 * minibuf.c (Fminibuffer_contents)
8881 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
8882 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 8883
048addec 88842002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 8885
048addec 8886 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 8887
048addec 88882002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 8889
048addec
JD
8890 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
8891 height before comparison.
8892 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 8893
048addec 88942002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 8895
048addec
JD
8896 * w32term.c (w32_system_caret_width): Remove.
8897 (w32_use_visible_system_caret): New user flag.
8898 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
8899 Windows reports a screen reader running.
8900 (x_update_window_begin): Hide the system caret.
8901 (x_update_window_end): Show the system caret.
8902 (x_display_and_set_cursor): Don't draw a cursor when
8903 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 8904
048addec
JD
8905 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
8906 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
8907 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
8908 the user requests it. Use system default width when creating.
8909 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 8910
048addec
JD
8911 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
8912 New window messages.
905cc05a 8913
048addec 89142002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 8915
048addec 8916 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 8917
048addec 89182002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 8919
048addec 8920 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 8921
048addec 89222002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 8923
048addec 8924 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 8925
048addec 89262002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 8927
048addec
JD
8928 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
8929 that Windows returns. If a double check fails, try to guess how
8930 ExtTextOut is going to act.
4d0fa4f3 8931
048addec
JD
8932 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
8933 in place of stricmp.
8934 (w32_list_synthesized_fonts): Removed.
8935 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
8936 (struct enumfont_t): New element; list.
8937 (enum_font_cb2): List all style and charset variations of a font.
8938 (Fw32_select_font): New optional argument; include_proportional.
8939 Exclude vertical fonts. Exclude proportional fonts unless
8940 include_proportional is non-nil.
8941 (w32_enable_synthesized_fonts): Change to a boolean.
8942 (Fw32_send_sys_command): Doc fix.
493faf20 8943
048addec 89442002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 8945
048addec
JD
8946 * dispnew.c (update_frame): Move the variable `tem' to the block
8947 where it is used.
4971e491 8948
048addec 89492002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 8950
048addec
JD
8951 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
8952 call to face-set-after-frame-default.
4971e491 8953
048addec 89542002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 8955
048addec
JD
8956 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
8957 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 8958
048addec 89592002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 8960
048addec
JD
8961 * window.c (enlarge_window): When exceeding size of parent,
8962 directly delete all the siblings instead of trying to resize it.
201c831a 8963
048addec 89642002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 8965
048addec 8966 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 8967
048addec 89682002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 8969
048addec 8970 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 8971
048addec 89722002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 8973
048addec
JD
8974 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
8975 is invisible. This can happen if cursor is on top line of a
8976 window, and we switch to a buffer with a header line.
d77fbc16 8977
048addec 8978 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 8979
048addec 89802002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 8981
048addec
JD
8982 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
8983 `dont_resize' only when used.
61e3b944 8984
048addec 8985 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 8986
048addec 89872002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 8988
048addec
JD
8989 * xdisp.c (display_mode_element): When computing charpos, depend
8990 on multibyteness of elt, not the text in field.
8af01033 8991
048addec 89922002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 8993
048addec
JD
8994 * buffer.c (Fkill_all_local_variables):
8995 Increment `update_mode_lines' only once.
7363986a 8996
048addec 89972002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 8998
048addec
JD
8999 * lisp.h (adjust_after_replace_noundo)
9000 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 9001
048addec 9002 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 9003
048addec 90042002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 9005
048addec
JD
9006 Support for the --color command-line argument and tty-color-mode
9007 frame parameter:
f1a85b89 9008
048addec
JD
9009 * term.c (tty_default_color_capabilities, tty_setup_colors)
9010 (set_tty_color_mode): New functions.
9011 (term_init): Call tty_default_color_capabilities.
9012 (Qtty_color_mode_alist): New variable.
9013 (syms_of_term): Intern and staticpro it.
f1a85b89 9014
048addec
JD
9015 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
9016 frames.
9017 (do_switch_frame): For termcap frames, switch the tty
9018 color mode as specified by the frame's parameters.
9019 (Qtty_color_mode): New variable.
9020 (syms_of_frame): Intern and staticpro it.
3a62677f 9021
048addec
JD
9022 * emacs.c (USAGE2): Add the --color option.
9023 (standard_args): Ditto.
72244db2 9024
048addec
JD
90252002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9026
9027 * xterm.h (struct x_output): New members want_fullscreen,
9028 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
9029 y_pixels_outer_diff.
9030 New enum for FULLSCREEN_* constants.
9031 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
9032 is NULL.
9033 (x_fullscreen_adjust): Add prototype.
3a62677f 9034
048addec
JD
9035 * emacs.c (USAGE2): Add the new full-screen arguments.
9036 (standard_args): Ditto.
3a62677f 9037
048addec
JD
9038 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
9039 New variables.
9040 (syms_of_xfns): Intern and staticpro them.
9041 (x_frame_parms) <"fullscreen">: New parameter.
9042 (x_fullscreen_move, x_set_fullscreen): New functions.
9043 (x_set_frame_parameters): Support for Qfullscreen.
9044 (x_real_positions): More accurate computation of the frame position.
9045 (x_figure_window_size): Support full-screen frames.
9046 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 9047
048addec
JD
9048 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
9049 (XTread_socket) <Expose>: Call x_check_fullscreen.
9050 <ConfigureNotify>: Don't resize to fullscreen.
9051 Call x_check_fullscreen_move, and set the want_fullscreen member of
9052 output_data.x.
3a62677f 9053
048addec 90542002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 9055
048addec
JD
9056 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
9057 for mice with more than 3 buttons.
b8523839 9058
048addec
JD
9059 * w32term.c (parse_button): New parameter xbutton. Callers changed.
9060 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 9061
048addec
JD
9062 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
9063 (syms_of_w32fns): DEFVAR_BOOL it.
9064 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 9065
048addec 90662002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 9067
048addec 9068 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 9069
048addec 90702002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 9071
048addec 9072 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 9073
048addec 90742002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 9075
048addec
JD
9076 * .gdbinit (xbuffer): Remove address operator since data is now a
9077 pointer.
c93674bb 9078
048addec 90792002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 9080
048addec 9081 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 9082
048addec 9083 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 9084
048addec 90852002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 9086
048addec
JD
9087 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
9088 when checking for multiple frames.
91175673 9089
048addec 90902002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 9091
048addec
JD
9092 * window.c (delete_window): Rewrite the code for changing the
9093 selected window to handle the case where WINDOW is not a leaf.
91175673 9094
048addec 90952002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 9096
048addec
JD
9097 * process.c (send_process): Set src_multibyte to 1 after the call
9098 top setup_coding_system, not before the call.
e0fead5d 9099
048addec 91002002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 9101
048addec
JD
9102 * xmenu.c (set_frame_menubar, xmenu_show):
9103 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 9104
048addec
JD
9105 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
9106 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 9107
048addec 91082002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 9109
048addec 9110 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 9111
048addec 9112 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 9113
048addec 9114 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 9115
048addec 91162002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 9117
048addec
JD
9118 * insdel.c (make_gap_larger): Make sure buffer size does not
9119 overflow range of int.
62854fe2 9120
048addec 91212002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 9122
048addec
JD
9123 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
9124 OVERLAPS_P.
656f46bb 9125
048addec 9126 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 9127
048addec
JD
9128 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
9129 to the left or to the right of the pointer, put it against
9130 the left screen edge.
9131 (x_frame_parms): Add missing braces around initializer.
036e218d 9132
048addec
JD
9133 * w32term.c (x_setup_relief_colors): Don't compute an image's
9134 background color if it doesn't have a Pixmap.
9135 (notice_overwritten_cursor): Don't depend on
9136 output_cursor and updated_area. Compare pixel coordinates with
9137 window's cursor pixel coordinates.
9138 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
9139 Call notice_overwritten_cursor with new arg list.
9140 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
9141 unconditionally.
9142 (x_draw_image_relief): Use predefined macro instead of
9143 constant when the value of `tool_bar_button_relief' is negative.
036e218d 9144
048addec 9145 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 9146
048addec 91472002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 9148
048addec 9149 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 9150
048addec 91512002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 9152
048addec
JD
9153 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
9154 (Fkey_binding): Try the `keymap' property map first.
9155 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
9156 minor mode bindings.
90647b07 9157
048addec 91582002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 9159
048addec 9160 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 9161
048addec 91622002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 9163
048addec
JD
9164 * keyboard.c (read_key_sequence): Handle the keymap property
9165 before minor mode maps.
9fbc32aa 9166
048addec
JD
9167 * editfns.c (Fformat): Update thissize from field_width
9168 based on the actual width, in the string case.
036e218d 9169
048addec 91702002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 9171
048addec
JD
9172 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
9173 when used as truth value to prevent gcc warnings.
9fbc32aa 9174
048addec
JD
9175 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
9176 * w32proc.c: Include <config.h>.
9fbc32aa 9177
048addec 91782002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 9179
048addec
JD
9180 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
9181 not EMACS_INT, to make them compatible with DEFVAR_INT.
9182 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 9183
048addec 91842002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 9185
048addec
JD
9186 * print.c (print_object): Test print_escape_nonascii only for
9187 unibyte strings.
9188 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
9189 when outputting to a multibyte buffer.
9fbc32aa 9190
048addec 91912001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 9192
048addec
JD
9193 * print.c (print_object): In multibyte string, use hex escapes.
9194 Use octal only for unibyte strings.
9195 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 9196
048addec
JD
9197 * lread.c (read_escape): New arg BYTEREP for reporting whether
9198 escape forces unibyte or multibyte.
9199 (read1): When reading a string, take note of that info.
0142178a 9200
048addec 92012001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 9202
048addec
JD
9203 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
9204 comparison to test lisp value returned by Fget.
d4824a5d 9205
048addec 92062001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 9207
048addec 9208 * lisp.h (max_specpdl_size): Add declaration.
b1356234 9209
048addec 9210 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 9211
048addec
JD
9212 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
9213 Handle modifier bits. Correct typo in error message.
99e380ee 9214
048addec 92152001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 9216
048addec
JD
9217 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
9218 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
9219 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
9220 Update calls to Fdefine_abbrev.
9221 (write_abbrev): Update for changed data format.
9222 Don't list "system" abbrevs.
9223 (Fexpand_abbrev): Update use count with new data format.
9224 (describe_abbrev): Update for changed data format.
9225 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 9226
048addec 9227 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 9228
048addec 9229 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 9230
048addec
JD
9231 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
9232 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 9233
048addec
JD
9234 * keymap.c (Flookup_key): Error message if key has wrong data type.
9235 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
9236 (exclude_key): New variable.
59a86c99 9237
048addec 92382001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 9239
048addec
JD
9240 * xterm.c (x_setup_relief_colors): Don't compute an image's
9241 background color if it doesn't have a Pixmap.
eb77a5f4 9242
048addec
JD
9243 * xterm.c (notice_overwritten_cursor): Don't depend on
9244 output_cursor and updated_area. Compare pixel coordinates with
9245 window's cursor pixel coordinates.
9246 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
9247 Call notice_overwritten_cursor with new arg list.
9248 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
9249 unconditionally.
eb77a5f4 9250
048addec
JD
9251 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
9252 height of the cursor line to the amount to scroll.
eb77a5f4 9253
048addec 92542001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 9255
048addec
JD
9256 * intervals.c (set_point_both): The position after an invisible,
9257 intangible character is not an acceptable stopping point.
bb313871 9258
048addec 92592001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 9260
048addec
JD
9261 * window.c (enlarge_window): In new preserve_before code, convert
9262 CURBEG from lisp object to integer before doing arithmetic.
6052529b 9263
048addec 92642001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 9265
048addec 9266 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 9267
048addec 92682001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 9269
048addec
JD
9270 * keyboard.c (record_char): Ignore duplicate help-echo events only
9271 separated by mouse-movement. When tracking mouse, only record
9272 first and last mouse-movement event in same window.
9273 Don't record mouse-movement events in keyboard macros.
3ce081f5 9274
048addec 92752001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 9276
048addec
JD
9277 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
9278 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 9279
048addec
JD
9280 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
9281 instead of Fstring_as_unibyte.
9fabb2f5 9282
048addec 92832001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 9284
048addec 9285 The following changes remove mocklisp support:
9fabb2f5 9286
048addec 9287 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 9288
048addec
JD
9289 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
9290 `Qmocklisp' and `Qmocklisp_arguments'.
9291 Remove prototype of syms_of_mocklisp.
2fa0eedf 9292
048addec 9293 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 9294
048addec
JD
9295 * callint.c: Do not include mocklisp.h.
9296 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 9297
048addec
JD
9298 * eval.c: Remove variables `Qmocklisp_arguments',
9299 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
9300 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
9301 Do not test for mocklisp case.
9302 (Fwhile): Remove unused variable `tem'.
9303 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 9304
048addec 9305 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 9306
048addec 9307 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 9308
048addec 9309 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 9310
048addec 93112001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 9312
048addec
JD
9313 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
9314 to the left or to the right of the pointer, put it against
9315 the left screen edge.
6108b49c 9316
048addec 93172001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 9318
048addec
JD
9319 * Makefile.in (distclean): Remove .gdbinit if we are building
9320 outside the source tree.
5eea19a4 9321
048addec 93222001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 9323
048addec 9324 * w32.c (emacs_root_dir): New function.
5eea19a4 9325
048addec 9326 * msdos.c (emacs_root_dir): New function.
5eea19a4 9327
048addec
JD
9328 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
9329 of the current drive as the fallback for default_directory.
438e57dd 9330
048addec
JD
9331 * dired.c (file_name_completion): Run the elements of
9332 completion-ignored-extensions through ENCODE_FILE.
438e57dd 9333
048addec
JD
9334 * lisp.h (scmp): Remove prototype, since it's now a static
9335 function private to dired.c.
c88e5347 9336
048addec 93372001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 9338
048addec
JD
9339 * dired.c (scmp): Function moved from minibuf.c.
9340 Delete multibyte handling--used only on encoded strings.
59ce1461 9341
048addec 9342 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 9343
048addec 9344 * fns.c (merge): Add QUIT call.
59ce1461 9345
048addec 93462001-12-18 Dave Love <fx@gnu.org>
8727d588 9347
048addec
JD
9348 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
9349 language/georgian.el.
8727d588 9350
048addec 93512001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 9352
048addec
JD
9353 * Makefile.in (lisp, shortlisp): Synchronize with changes to
9354 lisp/Makefile.in:DONTCOMPILE.
cc63037e 9355
048addec 93562001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 9357
048addec
JD
9358 * xdisp.c (window_box_height): Do not return negative values.
9359 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 9360
048addec 9361 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 9362
048addec 9363 * term.c (keys): Likewise.
deece6f5 9364
048addec 9365 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 9366
048addec 93672001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 9368
048addec
JD
9369 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
9370 patch (COMPOSING_P, not COMPOSING).
28ff4293 9371
048addec 93722001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 9373
048addec 9374 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 9375
048addec
JD
9376 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
9377 before calling decode_coding.
9b46de40 9378
048addec 9379 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 9380
048addec
JD
9381 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
9382 instead of only for COMPOSITION_DISABLED.
9b46de40 9383
048addec 93842001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 9385
048addec 9386 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 9387
048addec 9388 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 9389
048addec
JD
9390 * buffer.h (struct buffer): New field `display_error_modiff'.
9391 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 9392
048addec 9393 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 9394
048addec
JD
9395 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
9396 Call redisplay_window, but not if display_error_modiff field says no.
9397 (redisplay_window_error): New function.
9398 (displayed_buffer): New variable.
9399 (redisplay_internal, redisplay_windows): Call the new functions
9400 instead of redisplay_window directly.
2cd23960 9401
048addec 94022001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 9403
048addec 9404 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 9405
048addec 94062001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 9407
048addec
JD
9408 * makefile.w32-in (EMACSLOADPATH): Define.
9409 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
9410 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 9411
048addec 94122001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 9413
048addec
JD
9414 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
9415 parameter have a numeric value all the time.
f6fa0866 9416
048addec 9417 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 9418
048addec 94192001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 9420
048addec 9421 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 9422
048addec
JD
9423 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
9424 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 9425
048addec 94262001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 9427
048addec
JD
9428 * xdisp.c (move_it_vertically_backward): Change heuristic
9429 for the case that we didn't move far enough initially.
91c153e2 9430
048addec
JD
9431 * window.c (Frecenter): Simplify computation in the case of window
9432 system frames and ARG < 0; use window_box_height.
65b7d3e7 9433
048addec 94342001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 9435
048addec
JD
9436 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
9437 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 9438
048addec 94392001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 9440
048addec
JD
9441 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
9442 arg is negative.
be676094 9443
048addec 94442001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 9445
048addec
JD
9446 * m/hp800.h: Split the __hpux conditional into the parts
9447 that are right for GNU/Linux too and the parts that are not.
9448 Use the former if GNU_LINUX.
9449 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 9450
048addec 9451 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 9452
048addec 94532001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 9454
048addec
JD
9455 * macros.c, msdos.c, w16select.c: Change doc-string comments to
9456 `new style' [w/`doc:' keyword].
032a857d 9457
048addec 94582001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 9459
048addec
JD
9460 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
9461 before using.
b6270150 9462
048addec 94632001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 9464
048addec
JD
9465 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
9466 keyword].
98cbb9fa 9467
048addec 94682001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 9469
048addec 9470 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 9471
048addec 9472 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 9473
048addec 94742001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 9475
048addec
JD
9476 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
9477 Add comment to explain where the struct came from.
9478 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
9479 (add_menu_item): Process pop-up menus first to avoid memory leak.
9480 (add_menu_item, w32_menu_display_help): Use `help' field as
9481 Lisp_Object.
9482 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 9483
048addec 94842001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 9485
048addec 9486 * COPYING: Moved back.
fa336b91 9487
048addec
JD
9488 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
9489 Add parentheses around && within ||.
077907d4 9490
048addec 9491 * indent.c (compute_motion): Likewise.
aa2af83a 9492
048addec 9493 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 9494
048addec
JD
9495 * coding.c (setup_coding_system, shrink_encoding_region)
9496 (Fdecode_sjis_char): Likewise.
60a653f1 9497
048addec 94982001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 9499
048addec
JD
9500 * xdisp.c (display_mode_element): Don't read past end of string if
9501 it ends with '%'.
60a653f1 9502
048addec
JD
9503 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
9504 can hold.
60a653f1 9505
048addec
JD
9506 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
9507 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
9508 type changed to Lisp_Object.
9509 (syms_of_data): DEFVAR_LISP them.
60a653f1 9510
048addec 95112001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 9512
048addec
JD
9513 * callproc.c (init_callproc): Set Vdata_directory based on the source
9514 location whenever Emacs was run uninstalled.
60a653f1 9515
048addec 95162001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 9517
048addec
JD
9518 * config.in (HAVE_WORKING_VFORK): New #undefs.
9519 * process.c (create_process):
9520 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
9521 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
9522 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
9523 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
9524 * m/intel386.h (HAVE_VFORK): Likewise.
9525 * m/mips-siemens.h (HAVE_VFORK): Likewise.
9526 * m/mips.h (HAVE_VFORK): Likewise.
9527 * s/freebsd.h (vfork): Remove #define.
9528 * s/lynxos.h (HAVE_VFORK): Remove #undef.
9529 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 9530
048addec 95312001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 9532
048addec
JD
9533 * s/hpux10.h (random): Add undef.
9534 (HAVE_RANDOM): Define it just once.
60a653f1 9535
048addec 95362001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 9537
048addec 9538 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 9539
048addec 95402001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 9541
048addec
JD
9542 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
9543 scroll bars of the frame before deleting the frame itself. If the
9544 frame has a widget, delete the frame with XtDestroyWidget, and do
9545 not call XDestroyWindow before that.
60a653f1 9546
048addec 95472001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 9548
048addec 9549 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 9550
048addec 9551 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 9552
048addec 95532001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 9554
048addec
JD
9555 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
9556 excessively large.
60a653f1 9557
048addec
JD
9558 * insdel.c (make_gap_larger): New function.
9559 (make_gap_smaller): New function.
9560 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
9561 Call make_gap_smaller if arg is negative.
60a653f1 9562
048addec 95632001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 9564
048addec
JD
9565 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
9566 Pass a dummy argument when calling interrupt_signal.
9567 (parse_menu_item): Mark disabled items before checking for empty def.
9568 (read_char_minibuf_menu_prompt): Make safety more visible.
9569 (read_key_sequence): Add a `first_unbound' variable.
9570 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
9571 unbound prefix as soon as we can detect it.
60a653f1 9572
048addec
JD
9573 * doc.c (Fsnarf_documentation): Add prototype.
9574 (get_doc_string): Handle negative arguments.
9575 (Fdocumentation): Use AREF and ASIZE.
9576 Move the calls to get_doc_string to a single place.
9577 Don't confuse an interactive-spec for a docstring reference.
9578 (Fdocumentation_property): Take advantage of the fact that
9579 get_doc_string now ignores the sign of the docstring position.
60a653f1 9580
048addec 9581 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 9582
048addec 95832001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 9584
048addec 9585 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
60a653f1 9586
048addec 95872001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 9588
048addec
JD
9589 * xterm.c (x_draw_image_relief): Use predefined macro instead of
9590 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 9591
048addec 95922001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 9593
048addec
JD
9594 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
9595 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 9596
048addec 9597 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 9598
048addec 95992001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 9600
048addec 9601 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 9602
048addec 96032001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 9604
048addec 9605 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 9606
048addec 96072001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 9608
048addec 9609 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 9610
048addec
JD
9611 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
9612 [!WM_MOUSELEAVE]: Define.
60a653f1 9613
048addec
JD
9614 * w32menu.c (current_popup_menu, get_menu_item_info):
9615 (set_menu_item_info): New vars.
9616 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
9617 (w32_menu_show): Set current_popup_menu.
9618 (add_menu_item): Allocate new strings for owner-drawn menu items
9619 and help strings.
9620 Use owner-draw for disabled menu items again.
9621 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
9622 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 9623
048addec
JD
9624 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
9625 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
9626 <WM_EXITMENULOOP>: Free menu strings.
9627 <WM_MOUSELEAVE>: Stop tracking mouse.
9628 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 9629
048addec
JD
9630 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
9631 and mouse face.
60a653f1 9632
048addec 96332001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 9634
048addec
JD
9635 The following changes add left-fringe and right-fringe
9636 frame parameters to adjust fringe widths, or remove one or
9637 both fringes.
60a653f1 9638
048addec
JD
9639 * frame.h (struct frame): Remove trunc_area_pixel_width and
9640 trunc_area_cols fields.
9641 (Qleft_fringe, Qright_fringe): Declare.
9642 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 9643
048addec
JD
9644 * frame.c (Qleft_fringe, Qright_fringe): New vars.
9645 (syms_of_frame): Initialize them.
60a653f1 9646
048addec
JD
9647 * window.c (coordinates_in_window): Handle separate left and right
9648 fringe widths.
60a653f1 9649
048addec
JD
9650 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
9651 and fringe_cols fields.
9652 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
9653 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
9654 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
9655 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
9656 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
9657 (x_compute_fringe_widths): Add prototype.
60a653f1 9658
048addec
JD
9659 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
9660 fill fringe evenly with small dashes.
9661 (x_draw_fringe_bitmap): Clear background if necessary. Align and
9662 clip the new ZV bitmap to avoid jitter between rows.
9663 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
9664 background. Don't draw fringe bitmaps if fringe width is zero.
9665 (x_compute_fringe_widths): New function.
9666 (x_new_font, x_set_window_size_1): Use it.
60a653f1 9667
048addec
JD
9668 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
9669 (x_set_frame_parameters): Process `font' parameter before other
9670 parameters as fringe widths depend on it.
9671 (x_set_fringe_width): New function.
9672 (x_figure_window_size): Use x_compute_fringe_widths.
9673 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
9674 parameters.
60a653f1 9675
048addec
JD
9676 * widget.c (set_frame_size): Use x_compute_fringe_widths.
9677 (EmacsFrameSetCharSize): Ditto.
60a653f1 9678
048addec
JD
9679 * w32term.h: Merged changes from xterm.h.
9680 * w32term.c: Merged changes from xterm.c.
9681 * w32fns.c: Merged changes from xfns.c.
60a653f1 9682
048addec 96832001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 9684
048addec 9685 * COPYING: Removed.
60a653f1 9686
048addec 96872001-11-29 Dave Love <fx@gnu.org>
60a653f1 9688
048addec
JD
9689 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
9690 extra extra slot.
9691 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 9692
048addec 96932001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 9694
048addec
JD
9695 * fileio.c (file-name-coding-system)
9696 (default-file-name-coding-system): Doc fix (links to referenced
9697 variables added).
60a653f1 9698
048addec 96992001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 9700
048addec
JD
9701 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
9702 Add dummy uses of gcproN variables.
60a653f1 9703
048addec
JD
9704 * category.c (describe_category, describe_category_1)
9705 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
9706 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 9707
048addec 97082001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 9709
048addec 9710 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 9711
048addec
JD
9712 * Makefile.in (lispdir): New variable, referring to build dir.
9713 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 9714
048addec 97152001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 9716
048addec
JD
9717 * w32menu.c (w32_menu_display_help): Actually add the new argument
9718 OWNER.
60a653f1 9719
048addec 97202001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 9721
048addec
JD
9722 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
9723 menu items. From David Ponce <dponce@wanadoo.fr>.
9724 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
9725 conditionally.
9726 (w32_menu_display_help): New argument OWNER. Rewritten to store a
9727 help event in the owner frame's keyboard buffer.
60a653f1 9728
048addec
JD
9729 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
9730 (Fx_show_tip): Don't subtract last width from row width.
9731
9732 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
9733 (w32_read_socket): Use EQ to compare frames.
60a653f1 9734
048addec 97352001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 9736
048addec
JD
9737 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
9738 OVERLAPS_P.
60a653f1 9739
048addec 97402001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 9741
048addec
JD
9742 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
9743 `gcpro3' and `gcpro4'.
60a653f1 9744
048addec 9745 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 9746
048addec 97472001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 9748
048addec 9749 * ccl.c: Use AREF and ASIZE.
60a653f1 9750
048addec 97512001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 9752
048addec
JD
9753 * lisp.h (run_hook_list_with_args): Remove.
9754 (LIST_END_P): Fix call to wrong_type_argument.
9755 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 9756
048addec 97572001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 9758
048addec
JD
9759 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
9760 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 9761
048addec
JD
9762 * eval.c: Use AREF and ASIZE.
9763 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 9764
048addec
JD
9765 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
9766 which match the end of the file-name.
9767 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
9768 is not a valid env var, but leave it as is instead.
60a653f1 9769
048addec
JD
9770 * keymap.c (access_keymap): Handle t bindings like nil bindings.
9771 Make nil bindings in char-tables transparent.
9772 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 9773
048addec 97742001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 9775
048addec
JD
9776 * textprop.c (set_text_properties_1): Allow START, END in either order.
9777 Do nothing if range is empty.
60a653f1 9778
048addec 9779 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 9780
048addec
JD
9781 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
9782 (clean): Not here.
60a653f1 9783
048addec 97842001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 9785
048addec
JD
9786 * textprop.c (set_text_properties_1): Clearly mark that the
9787 interval should not be empty.
60a653f1 9788
048addec
JD
9789 * intervals.c (graft_intervals_into_buffer):
9790 Don't call set_text_properties_1 on an empty interval.
60a653f1 9791
048addec 97922001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 9793
048addec 9794 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 9795
048addec
JD
9796 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
9797 don't lose the data in it.
60a653f1 9798
048addec 97992001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 9800
048addec 9801 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 9802
048addec 9803 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
60a653f1 9804
048addec 9805 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
60a653f1 9806
048addec 98072001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 9808
048addec 9809 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 9810
048addec 98112001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 9812
048addec
JD
9813 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
9814 Niemitalo <kon@iki.fi>.
60a653f1 9815
048addec 98162001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 9817
048addec 9818 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 9819
048addec
JD
9820 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
9821 (Fx_show_tip): Block input during frame creation.
9822 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 9823
048addec 98242001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 9825
048addec
JD
9826 * lread.c (Fload): Detect recursive load error for more than 3
9827 nestings of the same file.
9828 (Vrecursive_load_depth_limit): Variable deleted.
9829 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 9830
048addec 98312001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 9832
048addec
JD
9833 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
9834 mouse position if either left or top is not specified.
60a653f1 9835
048addec
JD
9836 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
9837 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
9838 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
9839 (my_create_tip_window): Assign tip_window.
9840 (x_create_tip_frame): Use same defaults as X.
9841 (compute_tip_xy): Remove unused variable. Use full screen width.
9842 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 9843
048addec
JD
9844 * w32term.c (x_after_update_window_line): Doc fix.
9845 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
9846 frames.
9847 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 9848
048addec
JD
9849 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
9850 for all Windowed systems.
60a653f1 9851
048addec 98522001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 9853
048addec
JD
9854 * msdos.c (IT_clear_screen): If the frame's faces are not yet
9855 realized, use the initial screen colors to clear the screen.
60a653f1 9856
048addec 98572001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 9858
048addec
JD
9859 * textprop.c (Fset_text_properties): Remove unused variables
9860 `unchanged', `prev_changed', `s' and `len'.
60a653f1 9861
048addec
JD
9862 * search.c (Freplace_match): Remove unused variable `inslen'.
9863
9864 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
9865
98662001-11-22 Jason Rumney <jasonr@gnu.org>
9867
9868 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
9869 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
9870 (my_create_tip_window): New function.
9871 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
9872 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
9873
98742001-11-20 Jason Rumney <jasonr@gnu.org>
9875
9876 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
9877 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
9878
9879 * w32fns.c (Vw32_system_coding_system): Remove.
9880 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
9881
98822001-11-19 Stefan Monnier <monnier@cs.yale.edu>
9883
9884 * fileio.c (Fwrite_region): Move choose_write_coding_system to
9885 after build_annotations.
9886
9887 * syntax.c (describe_syntax): Add dummy arg.
9888 (describe_syntax_1): Update call to describe_vector.
9889
9890 * category.c (describe_category): Add dummy arg.
9891 (describe_category_1): Update call to describe_vector.
9892
9893 * keymap.c (Fdescribe_vector): Add `describer' parameter.
9894 (describe_command, describe_translation): Add dummy second param.
9895 (describe_map): Call elt_describer with two arguments.
9896 (describe_vector_princ): Add `fun' parameter.
9897 Call it instead of the hardcoded `princ'.
9898 (describe_vector): Add arg `args'.
9899 Pass it as a new second argument to elt_describer.
60a653f1 9900
048addec 9901 * keymap.h (describe_vector): Update prototype.
60a653f1 9902
048addec
JD
9903 * frame.c: Don't include keymap.h any more.
9904 (keys_of_frame): Remove.
60a653f1 9905
048addec 9906 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 9907
048addec 9908 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 9909
048addec 99102001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 9911
048addec
JD
9912 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
9913 if defined, 0 otherwise.
9914 (MAP_FAILED): Define if not defined and use it to test mmap failure.
9915 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 9916
048addec 99172001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 9918
048addec 9919 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 9920
048addec 99212001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 9922
048addec
JD
9923 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
9924 (x_draw_bar_cursor): If the background color of the glyph under
9925 the cursor equals the frame's cursor color, use the glyph's
9926 foreground color for drawing the bar cursor.
9927 (x_after_update_window_line): Clear internal border in different
9928 circumstances.
9929 (w32_set_vertical_scroll_bar): Check for width and height > 0.
9930 (w32_draw_relief_rect): Correct relief by 1 pixel.
9931 (x_set_glyph_string_background_width):
9932 Set extends_to_end_of_line_p if the row's fill_line_p is set and
9933 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
9934 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
9935 if cursor_in_non_selected_windows is false.
9936 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
9937 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
9938 Notice if cursor gets overwritten.
9939 (notice_overwritten_cursor): Renamed from
9940 note_overwritten_text_cursor. Rewritten to take glyph widths
9941 into account, and to take X positions as parameters.
9942 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
9943 around call to x_draw_glyphs.
9944 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
9945 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
9946 color to use for image glyph reliefs.
9947 (x_draw_image_relief): Accept zero tool_bar_button_relief.
9948 (glyph_rect): Remove unused variable `area'.
60a653f1 9949
048addec
JD
9950 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
9951 some items.
9952 (x_set_internal_border_width): Set frame garbaged when window
9953 doesn't exist yet.
9954 (Fx_create_frame): Accept zero tool_bar_button_relief.
9955 (x_clear_image_1, four_corners_best, image_background)
9956 (image_background_transparent): New functions.
9957 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
9958 (gs_format): Add `:background' entry.
9959 (lookup_image): Set IMG's background color if specified.
9960 (pbm_load, xbm_load_image, png_load): Set IMG's background field
9961 when appropriate.
9962 (x_clear_image_1): Reset `background_valid' and
9963 `background_transparent_valid' fields.
9964 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
9965 calculating it here. Set IMG's background_transparent field.
9966 (enum xpm_keyword_index): Add XPM_BACKGROUND.
9967 (enum png_keyword_index): Add PNG_BACKGROUND.
9968 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
9969 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
9970 (enum gif_keyword_index): Add GIF_BACKGROUND.
9971 (enum gs_keyword_index): Add GS_BACKGROUND.
9972 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
9973 Pre-calculate image background color where necessary.
9974 (x_create_x_image_and_pixmap, xbm_load, gs_load):
9975 Use display info's n_cbits entry for screen depth.
9976 (Fx_show_tip): Remove unused variables `buffer', `top',
9977 `left', `max_width' and `max_height'.
60a653f1 9978
048addec 9979 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 9980
048addec 99812001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 9982
048addec 9983 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 9984
048addec 99852001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 9986
048addec 9987 * frame.c (Fframe_live_p): Doc fix.
60a653f1 9988
048addec 99892001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 9990
048addec
JD
9991 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
9992 (message_dolog_marker3): New static variables hold three markers.
9993 (syms_of_xdisp): Initialize and staticpro them.
9994 (message_dolog): Use message_dolog_marker1..3 instead of
9995 allocating markers each time. Unchain them when done.
60a653f1 9996
048addec 99972001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 9998
048addec 9999 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 10000
048addec 100012001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 10002
048addec 10003 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 10004
048addec 100052001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 10006
048addec 10007 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 10008
048addec 100092001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 10010
048addec 10011 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 10012
048addec 100132001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 10014
048addec
JD
10015 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
10016 with invalid position.
60a653f1 10017
048addec 100182001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 10019
048addec 10020 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 10021
048addec
JD
10022 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
10023 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
10024 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 10025
048addec 10026 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 10027
048addec 100282001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 10029
048addec
JD
10030 * fileio.c (build_annotations): Split off the tail.
10031 (build_annotations_2): New fun. Extracted from build_annotations.
10032 (Fwrite_region): Split the call to build_annotations into two
10033 calls to build_annotations and build_annotations_2.
077907d4 10034
048addec 100352001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 10036
048addec
JD
10037 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
10038 clear_waiting_for_input with argument.
1756e2fb 10039
048addec 10040 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 10041
048addec 10042 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 10043
048addec 10044 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 10045
048addec 10046 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 10047
048addec 100482001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 10049
048addec
JD
10050 * fileio.c (choose_write_coding_system): New fun, extracted
10051 from Fwrite_region.
10052 (Fwrite_region): Use it.
fa336b91 10053
048addec
JD
10054 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
10055 (funcall_lambda, run_hook_with_args): Make static and add prototype.
10056 (ml_apply, find_handler_clause): Add prototype.
fa336b91 10057
048addec 100582001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 10059
048addec 10060 * config.in: Add #undef HAVE_COFF_H.
fa336b91 10061
048addec
JD
10062 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
10063 Required for ISC 4.1.
fa336b91 10064
048addec 100652001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 10066
048addec
JD
10067 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
10068 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 10069
048addec 100702001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 10071
048addec
JD
10072 The following changes are made to clean up the various internal
10073 references to the fringes to actually use the term `fringe' for
10074 them. Previously, they were called `flags areas', `bitmap areas',
10075 `left/right side of windows', or implicitly as `flags' or
10076 `bitmaps':
fa336b91 10077
048addec
JD
10078 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
10079 Comments fixed. Use renamed symbols.
06e8f738 10080
048addec 10081 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 10082
048addec
JD
10083 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
10084 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
10085 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 10086
048addec 10087 * msdos.c: Comment fix.
9ce647f4 10088
048addec 10089 * w32fns.c: Use renamed symbols.
9b784ab8 10090
048addec
JD
10091 * w32term.c: Comment fixes. Use renamed symbols.
10092 (fringe_bitmap_type): Renamed from bitmap_type.
10093 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
10094 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
10095 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 10096
048addec
JD
10097 * w32term.h: Comment fixes. Use renamed symbols.
10098 (fringes_extra): Renamed from flags_areas_extra.
10099 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
10100 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
10101 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
10102 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
10103 (FRAME_X_LEFT_FRINGE_WIDTH):
10104 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
10105 (FRAME_X_RIGHT_FRINGE_WIDTH):
10106 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 10107
048addec 10108 * widget.c: Use renamed symbols.
9f7e52b4 10109
048addec
JD
10110 * window.c: Comment fixes. Use renamed symbols.
10111 (coordinates-in-window-p): Doc fix.
fa336b91 10112
048addec 10113 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 10114
048addec 10115 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 10116
048addec 10117 * xfns.c: Use renamed symbols.
89512fcd 10118
048addec
JD
10119 * xterm.c: Comment fixes. Use renamed symbols.
10120 (fringe_bitmap_type): Renamed from bitmap_type.
10121 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
10122 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
10123 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 10124
048addec
JD
10125 * xterm.h: Comment fixes. Use renamed symbols.
10126 (fringes_extra): Renamed from flags_areas_extra.
10127 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
10128 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
10129 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
10130 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
10131 (FRAME_X_LEFT_FRINGE_WIDTH):
10132 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
10133 (FRAME_X_RIGHT_FRINGE_WIDTH):
10134 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
10135
101362001-11-15 Jason Rumney <jasonr@gnu.org>
10137
10138 * w32menu.c (add-menu-item): Make help_echo and radio buttons
10139 work for most menu items. From David Ponce
10140 <david.ponce@wanadoo.fr>.
10141
101422001-11-15 Gerd Moellmann <gerd@gnu.org>
10143
10144 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
10145 Some x_set_* function expect to be called even if old and new
10146 value are equal.
10147
10148 * xdisp.c (build_desired_tool_bar_string): Accept zero
10149 tool_bar_button_relief.
10150
10151 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
10152
10153 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
10154
10155 * xterm.c (x_draw_bar_cursor): If the background color of the
10156 glyph under the cursor equals the frame's cursor color, use
10157 the glyph's foreground color for drawing the bar cursor.
10158
10159 * dispnew.c (direct_output_forward_char): Fix character/byte
10160 position comparison.
7d18891d 10161
048addec 101622001-11-15 Miles Bader <miles@gnu.org>
d2936d21 10163
048addec
JD
10164 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
10165 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
10166 Update arguments to find_field.
10167 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
10168 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
10169 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
10170 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 10171
048addec 101722001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 10173
048addec 10174 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 10175
048addec
JD
10176 * dispextern.h (image_background, image_background_transparent):
10177 Conditionalize on HAVE_X_WINDOWS.
7d18891d 10178
048addec 101792001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 10180
048addec 10181 * print.c (Fprin1_to_string): Doc fix.
7d18891d 10182
048addec 10183 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 10184
048addec 10185 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 10186
048addec 10187 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 10188
048addec 10189 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 10190
048addec 10191 * eval.c (syms_of_eval): Doc fix.
7d18891d 10192
048addec 10193 * coding.c (syms_of_coding): Doc fix.
7d18891d 10194
048addec 10195 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 10196
048addec 10197 * dispnew.c (syms_of_display): Doc fix.
9474c847 10198
048addec 10199 * category.c (Fget_unused_category): Doc fix.
9474c847 10200
048addec 10201 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 10202
048addec 102032001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 10204
048addec 10205 * print.c (prin1, print): Doc fix.
e3059a5d 10206
048addec 102072001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 10208
048addec
JD
10209 * fontset.h: Remove declarations of variables
10210 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 10211
048addec
JD
10212 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
10213 `Vclip_large_size_font'.
eae936e2 10214
048addec 102152001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 10216
048addec 10217 * w32fns.c: Doc fix.
ddb67bdc 10218
048addec 102192001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 10220
048addec 10221 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 10222
048addec 10223 * fns.c: Doc fix.
6e1b91d7 10224
048addec 10225 * emacs.c: Doc fix.
1c1d3d69 10226
048addec 10227 * coding.c: Doc fix.
1c1d3d69 10228
048addec
JD
10229 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
10230 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
10231 `new style' [w/`doc:' keyword].
b6f4c7ba 10232
048addec 102332001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 10234
048addec
JD
10235 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
10236 LeaveNotify events. Only FocusIn and FocusOut do that now.
10237 (x_display_and_set_cursor): Do display hollow cursors in active
10238 minibuffer windows when they are not selected.
b6f4c7ba 10239
048addec 102402001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 10241
048addec
JD
10242 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
10243 * w32term.c: Change doc-string comments to `new style'.
10244 [w/`doc:' keyword]. Doc fixes.
a89f435d 10245
048addec
JD
10246 * w32fns.c: Don't define max.
10247 (Fx_open_connection): Only execute once.
a4cd0cd7 10248
048addec 102492001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 10250
048addec
JD
10251 * ccl.c: Change macros to use do-while block instead of if-else.
10252 Use braces to follow GNU Coding Standards.
eafb659a 10253
048addec 102542001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 10255
048addec 10256 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 10257
048addec 10258 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 10259
048addec
JD
10260 * insdel.c (replace_range): Use adjust_markers_for_replace
10261 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 10262
048addec 10263 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 10264
048addec
JD
10265 * textprop.c (set_text_properties_1): New subroutine
10266 broken out of set_text_properties.
10267 (set_text_properties): Use set_text_properties_1.
91823618 10268
048addec
JD
10269 * intervals.c (graft_intervals_into_buffer):
10270 Use set_text_properties_1 to clear out properties.
91823618 10271
048addec
JD
10272 * search.c (Freplace_match): Use replace_range to insert
10273 and delete. Don't request property inheritance from
10274 surrounding text.
86928dfb 10275
048addec 102762001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 10277
048addec
JD
10278 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
10279 vertical fonts. Allow them if face name is explicitly specified.
10280 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 10281
048addec 102822001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 10283
048addec
JD
10284 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
10285 instead of malloc/free.
a78e0303 10286
048addec 102872001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 10288
048addec
JD
10289 * xfaces.c (merge_face_vectors): Use braces to follow GNU
10290 Coding Standards.
10291 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 10292
048addec 10293 * buffer.c (Fbury_buffer): Likewise.
0c99b139 10294
048addec 10295 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 10296
048addec
JD
10297 * coding.c (encode_coding): Use precomputed value of `src'.
10298 (encode_coding): Remove unused variable `src_end'.
10299 (code_convert_region): Remove unused variables `count'.
830ddd77 10300
048addec 103012001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 10302
048addec
JD
10303 * w32term.c (x_display_and_set_cursor): Do not move system caret
10304 if cursor_glyph is NULL.
55c6d645 10305
048addec 103062001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 10307
048addec 10308 * keymap.c (access_keymap): Fix compilation error.
5de38842 10309
048addec 103102001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 10311
048addec 10312 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 10313
048addec 103142001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 10315
048addec
JD
10316 * intervals.c (graft_intervals_into_buffer):
10317 Remove #ifdef'd-out code.
10318 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 10319
048addec
JD
10320 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
10321 code (eval-current-buffer).
10322 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 10323
048addec 103242001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 10325
048addec 10326 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 10327
048addec 103282001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 10329
048addec 10330 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 10331
048addec
JD
10332 * keyboard.c (make_lispy_event): Check integerness and fix
10333 Lisp_Object/int mixup.
17893c65 10334
048addec 103352001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 10336
048addec 10337 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 10338
048addec
JD
10339 * fontset.c (fontset_font_pattern): Remove unused variable
10340 `family_registry'.
d5360cc7 10341
048addec 10342 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 10343
048addec 103442001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 10345
048addec 10346 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 10347
048addec
JD
10348 * buffer.c (Fkill_buffer): Don't delete auto save file
10349 if buffer is modified.
d9d54213 10350
048addec 103512001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 10352
048addec
JD
10353 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
10354 CHECK_NUMBER_CDR.
b116830b 10355
048addec 103562001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 10357
048addec 10358 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 10359
048addec 103602001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 10361
048addec 10362 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 10363
048addec 103642001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 10365
048addec 10366 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 10367
048addec 103682001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 10369
048addec
JD
10370 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
10371 the program image directly.
982f6c7e 10372
048addec 103732001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 10374
048addec 10375 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 10376
048addec 103772001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 10378
048addec
JD
10379 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
10380 and CHECK_BUFFER.
d31053f9 10381
048addec
JD
10382 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
10383 (record_char): Likewise.
d31053f9 10384
048addec
JD
10385 * keyboard.c (make_lispy_event): Don't insist a drag event must
10386 move to a different buffer position. Instead, check for moving at
10387 least double_click_fuzz.
982f6c7e 10388
048addec 10389 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 10390
048addec 10391 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 10392
048addec
JD
10393 * indent.c (current_column_1, Fmove_to_column): Separate the code
10394 for display-table glyphs from the code for buffer text, to fix
10395 bugs in the former.
830047fd 10396
048addec 103972001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 10398
048addec
JD
10399 * buffer.c (Fbuffer_local_value): New function.
10400 (syms_of_buffer): Defsubr it.
2df5238c 10401
048addec
JD
10402 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
10403 value of `cursor-in-non-selected-windows'.
4e397688 10404
048addec
JD
10405 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
10406 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
10407 (syms_of_xdisp): Initialize it.
48b0f3ae 10408
048addec 104092001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 10410
048addec 10411 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 10412
048addec
JD
10413 * coding.c: Change doc-string comments to `new style' [w/`doc:'
10414 keyword].
3ecaf7e5 10415
048addec
JD
10416 * eval.c (top_level_value, top_level_set): Remove commented and
10417 #ifdef'd-out code.
10418 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 10419
048addec 104202001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 10421
048addec 10422 * xfns.c: Include unistd.h, if it exists.
8db2e33b 10423
048addec 10424 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 10425
048addec 10426 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 10427
048addec 104282001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 10429
048addec
JD
10430 * lisp.h (CHECK_STRING_CAR): New macro.
10431 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
10432 treating XCAR and XCDR as lvalues.
10433 (openp): Use CHECK_STRING_CAR.
10434 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 10435
048addec 104362001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 10437
048addec
JD
10438 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
10439 (SIGMASKTYPE): Define.
1b1acc13 10440
048addec 10441 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 10442
048addec 104432001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 10444
048addec
JD
10445 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
10446 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
10447 Fix typos in comments.
6cb16f95 10448
048addec
JD
10449 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
10450 and #ifdef'd-out code.
10451 Fix and reindent comments.
6cb16f95 10452
048addec 10453 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 10454
048addec
JD
10455 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
10456 argument `i' in macros.
6cb16f95 10457
048addec
JD
10458 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
10459 `i' in macros.
7e9d3c2f 10460
048addec
JD
10461 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
10462 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
10463 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
10464 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
10465 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
10466 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
10467 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
10468 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
10469 in macros.
7e9d3c2f 10470
048addec
JD
10471 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
10472 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
10473 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
10474 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
10475 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
10476 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
10477 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
10478 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
10479 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
10480 (remove unused second argument).
7e9d3c2f 10481
048addec 104822001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 10483
048addec
JD
10484 * syntax.c (describe_syntax): New wrapper.
10485 (Finternal_describe_syntax_value): Rename from describe_syntax.
10486 Don't insert space at front and \n at the end.
10487 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 10488
048addec
JD
10489 * regex.c (re_wctype): Try to fix some warnings.
10490 (regcomp, regexec): Don't forget the __restrict.
9ba48103 10491
048addec 104922001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 10493
048addec 10494 * textprop.c (Fget_char_property): Doc fix.
9ba48103 10495
048addec 104962001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 10497
048addec 10498 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 10499
048addec 10500 * data.c (Fsetq_default): Ditto.
c22e59e1 10501
048addec 10502 * callint.c (Finteractive): Ditto.
9271ed2c 10503
048addec 105042001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 10505
048addec
JD
10506 * macros.c: Don't include keymap.h any more.
10507
105082001-11-01 Richard M. Stallman <rms@gnu.org>
10509
10510 * data.c (Fmake_local_variable): Doc fix.
10511
10512 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
10513 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 10514
048addec 10515 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
10516 bindings along with or instead of the buffer local map.
10517 Make the overriding maps override what they should.
10518
f00691a3 105192001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
10520
10521 * window.c (grow_mini_window): Fix typo in comment.
10522
27188d11
GM
105232001-11-01 Gerd Moellmann <gerd@gnu.org>
10524
7b49b9d2
GM
10525 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
10526 (XTset_vertical_scroll_bar): Likewise.
10527
43f7c3ea
GM
10528 * xfns.c (x_build_heuristic_mask): Use four_corners_best
10529 instead of IMAGE_BACKGROUND.
c22e59e1 10530
b350c2e5
GM
10531 * xfns.c (four_corners_best): Reindent.
10532
c22e59e1 10533 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
10534 Handle :box so that it is possible to specify sexprs.
10535
bf00d461
EZ
105362001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
10537
10538 * s/hpux11.h: New file.
10539
f00691a3 105402001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 10541
2b209b97
PJ
10542 * emacs.c (USAGE1): Show command line option --no-window-system
10543 instead of --no-windows in usage.
10544 (standard_args): Rename --no-windows to --no-window-system.
10545 (bug_reporting_address): Follow Emacs coding conventions.
10546
9dbc9081
PJ
10547 * eval.c (Fcommandp): Doc fix.
10548 Change doc-string comments to `new style' [w/`doc:' keyword].
10549
4e10df59
PJ
10550 * frame.c (Fframe_live_p): Doc fix.
10551
10552 * buffer.c (selective-display-ellipses): Doc fix.
10553
dd387b25
GM
105542001-10-31 Gerd Moellmann <gerd@gnu.org>
10555
fe957e65
GM
10556 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
10557
dd387b25
GM
10558 * xfaces.c (realize_x_face): If C is not a single-byte character,
10559 set the face's colors_copied_bitwise_p instead of the defaulted_p
10560 members which have a different meaning.
10561 (free_face_colors): Do nothing for a face whose colors have been
10562 copied bitwise.
10563
c22e59e1 10564 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 10565
f00691a3 105662001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 10567
687784e8
PJ
10568 * marker.c, mocklisp.c: Change doc-string comments to `new style'
10569 [w/`doc:' keyword].
2e1280f8 10570
b9d9a9b9
GM
105712001-10-31 Gerd Moellmann <gerd@gnu.org>
10572
10573 * fns.c (require_unwind): Return Lisp_Object.
10574
f00691a3 105752001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 10576
fa1361cb
PJ
10577 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
10578 (last-input-char): Revert doc-string to be the same as the
10579 doc-string of `last-input-event'.
10580
6c465a15 10581 * xdisp.c: Fix typos in comments.
48400103 10582
eafa3196
GM
105832001-10-31 Gerd Moellmann <gerd@gnu.org>
10584
10585 * window.c (grow_mini_window): Handle case that the root
10586 window is already smaller than the nominal mininum height.
10587
747d3f2a
SM
105882001-10-30 Stefan Monnier <monnier@cs.yale.edu>
10589
bf9bb76f
SM
10590 * emacs.c (main): Don't call keys_of_macros any more.
10591
10592 * lisp.h (keys_of_macros): Remove.
10593
10594 * macros.c (keys_of_macros): Remove.
10595
747d3f2a
SM
10596 * xfaces.c (Fface_attribute_relative_p): Declare args.
10597
5e905a57
JR
105982001-10-30 Jason Rumney <jasonr@gnu.org>
10599
10600 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
10601 (enum_font_cb2): Ignore fonts with vertical orientation.
10602
3a426197
RS
106032001-10-30 Richard M. Stallman <rms@gnu.org>
10604
10605 * keyboard.c (Finput_pending_p): Doc fix.
10606
a742d646
GM
106072001-10-30 Gerd Moellmann <gerd@gnu.org>
10608
259cf6bc
GM
10609 * xterm.c (x_after_update_window_line): Don't run the code
10610 clearing in borders for rows whose visible height is 0.
10611
3f99f948
GM
10612 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
10613 resized_p flag is set. If not set, use the much less flickering
10614 method previously used.
10615
10616 * dispnew.c (change_frame_size_1): Set frame's resized_p.
10617
10618 * frame.h (struct frame) <resized_p>: New member.
10619
b4a3be43
GM
10620 * lread.c (to_multibyte): Ensure read_buffer is at least twice
10621 as large as the number of bytes to convert.
747d3f2a 10622
a742d646
GM
10623 * lread.c (to_multibyte): New function.
10624 (read1): Use it.
10625
cacbb9e9
EZ
106262001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
10627
10628 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
10629
99cb6b2f
GM
106302001-10-30 Gerd Moellmann <gerd@gnu.org>
10631
327f42ee 10632 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
10633 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
10634 if the row's fill_line_p is set and drawing the last glyph with
10635 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 10636
99cb6b2f
GM
10637 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
10638
8e8223e2
SM
106392001-10-29 Stefan Monnier <monnier@cs.yale.edu>
10640
10641 * xmenu.c: Include coding.h and charset.h.
10642 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
10643 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
10644 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
10645 Explicitly set wv->help. Use `TRUE' rather than `True'.
10646 (menu_help_callback): Use empty_string.
10647
10648 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
10649 (Fx_popup_dialog): Explicitly init f.
10650 (w32_menu_display_help): Use empty_string.
10651
4d083a8f
RS
106522001-10-29 Richard M. Stallman <rms@gnu.org>
10653
b2304472
RS
10654 * fns.c (Frequire): Detect recursive try to require the same
10655 feature 3 or more levels deep, and get error.
10656 (require_unwind): New subroutine.
10657 (require_nesting_list): New variable.
10658 (syms_of_fns): Init and staticpro it.
10659
4d083a8f
RS
10660 * print.c (print_object): Clarify indication of insertion type.
10661
2fe41216
EZ
106622001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
10663
90480000
EZ
10664 * coding.c (syms_of_coding): Document that locale-coding-system is
10665 used for decoding input on X.
10666
2fe41216
EZ
10667 * window.c (Fscroll_left, Fscroll_right): Doc fix.
10668
f00691a3 106692001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
10670
10671 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
10672 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
10673
60ebcfe8
GM
106742001-10-29 Gerd Moellmann <gerd@gnu.org>
10675
9a7bdceb
GM
10676 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
10677 use NO_CURSOR if cursor_in_non_selected_windows is false.
10678
3f08fcd2
GM
10679 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
10680 the slant attribute if FRAME is t.
10681
0ccfdad2
GM
10682 * xfns.c (x_set_internal_border_width): Set frame garbaged
10683 when X window doesn't exist yet.
10684
ef253080
GM
10685 * xterm.c (x_after_update_window_line): Clear internal border
10686 in different circumstances.
b116830b 10687
60ebcfe8
GM
10688 * xterm.c (XTread_socket) <KeyPress>: Don't use
10689 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
10690 <handa@etl.go.jp>.
10691
73d25f9c
EZ
106922001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
10693
10694 * m/ibms390.h: New file. From Adam Thornton
10695 <athornton@sinenomine.net>.
10696
cac1daf0
GM
106972001-10-28 Gerd Moellmann <gerd@gnu.org>
10698
053b3256 10699 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 10700
cac1daf0
GM
10701 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
10702 a loop counter.
10703
f00691a3 107042001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 10705
186486eb
PJ
10706 * emacs.c: Use argv[0] instead of emacs when -t was specified.
10707
4707d2d0
PJ
10708 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
10709 keyword].
10710 Fix typos in comments.
b116830b 10711
d883731c
PJ
10712 * emacs.c (bug_reporting_address): New function.
10713 Use it when displaying usage message.
10714
04012254
PJ
10715 * minibuf.c (read_minibuf): Remove unused external declaration of
10716 variable `Qread_only'.
10717
13b1a09c
PJ
10718 * keymap.c (access_keymap): Remove unused variable `charset'.
10719
5bbf4378
MB
107202001-10-28 Miles Bader <miles@gnu.org>
10721
10722 * xfaces.c (merge_face_heights): Handle TO being relative as well.
10723 Remove #ifdef'd-out code.
10724 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
10725 (syms_of_xfaces): Initialize them.
10726
1ce1e4ee
JR
107272001-10-27 Jason Rumney <jasonr@gnu.org>
10728
10729 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
10730 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
10731 position using the system caret.
10732
10733 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
10734 (w32_system_caret_height, w32_system_caret_x)
10735 (w32_system_caret_y): New variables for tracking system caret.
10736 (w32_initialize): Initialize them.
c2d53558 10737 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 10738
c2d53558
SM
10739 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
10740 New messages types.
1ce1e4ee
JR
10741
10742 * w32term.c (note_mouse_highlight): Clear old help_echo.
10743
f00691a3 107442001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 10745
bb4600a4
PJ
10746 * xterm.c: Fix typo in a comment.
10747
7db35a48
PJ
10748 * emacs.c: Fix typos in comments.
10749 Remove unnecessary spaces.
10750 Change doc-string comments to `new style' [w/`doc:' keyword].
10751 (USAGE2): Fix typos in usage string.
10752
a7248e4f
PJ
10753 * xterm.c: Fix typo in a comment.
10754
4e30ce42
PJ
10755 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
10756 emacs.c.
10757
62725a92
GM
107582001-10-27 Gerd Moellmann <gerd@gnu.org>
10759
798dbe1f 10760 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 10761 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
10762 farther backward when target_y was not reached.
10763
62725a92
GM
10764 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
10765 Display errno only if non-zero.
10766 (sound_warning): New function.
10767 (vox_configure): Don't treat failing to set sample rate as error.
10768 (various places): Improve error messages.
10769
d4e34d24
EZ
107702001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
10771
944e6f60
EZ
10772 * fileio.c (Faccess_file): Run the argument filename through
10773 Fexpand_file_name, before using it.
10774
d4e34d24
EZ
10775 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
10776 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
10777
38d2af0c
GM
107782001-10-26 Gerd Moellmann <gerd@gnu.org>
10779
da80a8d5
GM
10780 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
10781
38d2af0c
GM
10782 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
10783 Fix clearing in the case of scroll bars on the right.
c2d53558 10784
45de4a6f 107852001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
10786
10787 * w32gui.h (XImage): Add a dummy typedef.
10788
fbd5ceb2
GM
107892001-10-26 Gerd Moellmann <gerd@gnu.org>
10790
c2d53558 10791 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 10792
b23236fb
EZ
107932001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
10794
10795 * frame.c (Fframe_parameter): Fix last change.
10796
5d991fc4
EZ
10797 * fileio.c: Revert last change (which removed old commented-out
10798 version of expand-file-name). Add a comment that explains why
10799 this old version should not be removed.
10800
879eadc3
GM
108012001-10-25 Gerd Moellmann <gerd@gnu.org>
10802
75700ff2
GM
10803 * frame.c (Fframe_parameter): Fix a bug whereby some
10804 ``artificial'' frame parameters, like `minibuffer' were not
10805 obtained by calling Fframe_parameters.
10806
dfe92a6a
GM
10807 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
10808 cursor differently.
10809
879eadc3
GM
10810 * xdisp.c (move_it_vertically_backward): Compute line height
10811 differently. Add heuristic to try to be more compatible to 20.x.
10812
e1010ebe
SM
108132001-10-25 Stefan Monnier <monnier@cs.yale.edu>
10814
d73a471b
SM
10815 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
10816
d6da5a06
GM
10817 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
10818 boolean.
e1010ebe 10819
f66bd220
MB
108202001-10-25 Miles Bader <miles@gnu.org>
10821
10822 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
10823 BG is a pointer to a structure, not a structure.
10824 (gif_format, png_format): Add missing commas.
10825
d436d538
RS
108262001-10-24 Richard M. Stallman <rms@gnu.org>
10827
10828 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 10829 (syms_of_xfaces): Defsubr it.
d436d538 10830
f00691a3 108312001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
10832
10833 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
10834 variable `area'.
10835
f00691a3 108362001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 10837
c2d53558 10838 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 10839
e2a57b34
MB
108402001-10-25 Miles Bader <miles@gnu.org>
10841
10842 * dispextern.h (struct image): Add `background',
10843 `background_valid', and `background_transparent' fields.
10844 (image_background, image_background_transparent): New declarations.
10845 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
10846 * xfns.c (image_background, image_background_transparent)
10847 (four_corners_best): New functions.
c2d53558 10848 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
10849 (gs_format): Add `:background' entry.
10850 (lookup_image): Set IMG's background color if specified.
10851 (pbm_load, xbm_load_image, png_load): Set IMG's background field
10852 when appropriate.
10853 (x_clear_image_1): Reset `background_valid' and
10854 `background_transparent_valid' fields.
10855 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
10856 calculating it here. Set IMG's background_transparent field.
10857 (enum xpm_keyword_index): Add XPM_BACKGROUND.
10858 (enum png_keyword_index): Add PNG_BACKGROUND.
10859 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
10860 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
10861 (enum gif_keyword_index): Add GIF_BACKGROUND.
10862 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 10863 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
10864 Pre-calculate image background color where necessary.
10865 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
10866 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
10867 color to use for image glyph reliefs.
10868
b547b6e8
GM
108692001-10-24 Gerd Moellmann <gerd@gnu.org>
10870
d9e3b8c6
GM
10871 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
10872 in full-width rows.
c2d53558 10873
b547b6e8
GM
10874 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
10875 Fix clearing of area not covered by scroll bar.
10876
f00691a3 108772001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
10878
10879 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
10880 and `real_start'.
c2d53558 10881 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
10882 (glyph_rect): Remove unused variable `area'.
10883
76cb5e06
GM
108842001-10-24 Gerd Moellmann <gerd@gnu.org>
10885
bdbdebff 10886 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
10887
10888 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
10889 (row_containing_pos): Take additional argument DY.
10890 Treat rows ending in middle of char differently.
62e33982
GM
10891 (display_line): Handle tabs on window systems differently.
10892
10893 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
10894 with additional argument.
10895
10896 * dispextern.h (row_containing_pos): Adjust prototype.
10897
76cb5e06
GM
10898 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
10899 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
10900 (try_window_id, try_window_reusing_current_matrix)
10901 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 10902 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 10903
f00691a3 109042001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 10905
c9e60620
PJ
10906 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
10907 gnuemacs).
10908 (HAVE_BOXES): Fix typo in comment.
10909 (push_menu_pane): Fix typo in comment.
10910
3b552d56
PJ
10911 * xdisp.c: (display_prop_string_p): Remove unused local declaration
10912 of `Qwhen'.
10913 (single_display_prop_string_p): Remove unused local declarations
10914 of `Qwhen' and `Qmargin'.
10915 (string_buffer_position): Remove unused variable `around'.
10916 (store_frame_title): Remove unused variable `width'.
10917
15c565ac
PJ
10918 * window.c: Don't define max.
10919 (coordinates_in_window): Remove unused variable `uy'.
10920
a8818eb9
PJ
10921 * widget.c: Don't define max.
10922
996fee11
PJ
10923 * process.c: Don't define max.
10924 (create_process): Remove unused variable `buffer'.
10925
496e1a5b
GM
109262001-10-23 Gerd Moellmann <gerd@gnu.org>
10927
c2d53558 10928 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 10929
5905ae8b
EZ
109302001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
10931
10932 * xfaces.c (Finternal_set_lisp_face_attribute)
10933 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
10934 frame is on a windowed display.
10935
24db49fb
GM
109362001-10-23 Gerd Moellmann <gerd@gnu.org>
10937
c2d53558
SM
10938 * dispnew.c (sync_window_with_frame_matrix_rows):
10939 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
10940 of marginal areas.
10941
c2d53558 10942 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 10943
f0487f05
EZ
109442001-10-23 Andreas Schwab <schwab@suse.de>
10945
10946 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
10947 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
10948
f0a48a01
GM
109492001-10-23 Gerd Moellmann <gerd@gnu.org>
10950
c2d53558 10951 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
10952 REAL_END. Notice if cursor gets overwritten.
10953 (notice_overwritten_cursor): Take X positions as parameters.
10954 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
10955 around call to x_draw_glyphs.
10956
f00691a3 109572001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 10958
fc11dff0
PJ
10959 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
10960 instead of C) and usage.
a50a10a0 10961
fc11dff0
PJ
10962 * editfns.c (char-to-string): Fix argument names (use CHAR instead
10963 of C) and usage.
a50a10a0
PJ
10964
10965 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
10966 `left', `max_width' and `max_height'.
10967
8738febd
GM
109682001-10-23 Gerd Moellmann <gerd@gnu.org>
10969
10970 * xdisp.c (display_line): For a tab continued to the next line,
10971 set row's ends_in_middle_of_char_p.
10972
653c329b
GM
109732001-10-22 Gerd Moellmann <gerd@gnu.org>
10974
10975 * xdisp.c (display_line): Fix computation of continuation lines
10976 width for TABs.
10977
f00691a3 109782001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 10979
7ba51063
PJ
10980 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
10981 `Qlaplace'.
10982
f958c5ac
PJ
10983 * fileio.c: Remove unused code.
10984
eb360291
MB
109852001-10-22 Miles Bader <miles@gnu.org>
10986
10987 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
10988 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
10989 Remove `DOC_STRINGS_IN_COMMENTS' cases.
10990
98515cf0
JR
109912001-10-21 Jason Rumney <jasonr@gnu.org>
10992
10993 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
10994
93026d88
EZ
109952001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
10996
10997 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
10998 (Finsert_string): Avoid the multi-line string literals warning.
10999
c9a95b79
MB
110002001-10-22 Miles Bader <miles@gnu.org>
11001
11002 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
11003 (Fdocumentation): Don't use it.
11004 (syms_of_doc): Don't initialize it.
11005
11006 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
11007 * print.c (Fwith_output_to_temp_buffer): Likewise.
11008 * window.c (Fsave_window_excursion): Likewise.
c2d53558 11009 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 11010 (Fsave_restriction): Likewise.
c2d53558
SM
11011 * eval.c (Frun_hooks, Frun_hook_with_args)
11012 (Frun_hook_with_args_until_failure)
11013 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
11014 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
11015 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
11016 (Funwind_protect, Fcondition_case): Likewise.
11017 * coding.c (Ffind_operation_coding_system): Likewise.
11018 * keyboard.c (Ftrack_mouse): Likewise.
11019
a3b10252
MB
110202001-10-21 Miles Bader <miles@gnu.org>
11021
c2d53558 11022 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
11023 (Fmake_hash_table): Add usage: string to doc string.
11024 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 11025 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
11026 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
11027 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
11028 (Fml_prefix_argument_loop): Likewise.
11029
f00691a3 110302001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 11031
c2d53558 11032 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 11033
c6f73eec
PJ
11034 * sysdep.c (init_sys_modes): Change doc-string comments to `new
11035 style' [w/`doc:' keyword].
11036
11037 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
11038 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
11039 comments to `new style' [w/`doc:' keyword].
11040
3cf3436e
JR
110412001-10-21 Jason Rumney <jasonr@gnu.org>
11042
11043 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
11044
c169b8f1
JR
11045 * w32term.c (remember_mouse_glyph): New function.
11046 (w32_mouse_position): Use it.
11047 (note_mouse_movement): If the mouse moved off the glyph, remember
11048 its new position.
c2d53558 11049
4fdd691b
JR
11050 * w32term.h (struct w32_output): Correct spelling of x_compatible.
11051 (w32_display_info): Add mouse_face_overlay.
11052
c169b8f1
JR
11053 * w32term.c (notice_overwritten_cursor): Renamed from
11054 note_overwritten_text_cursor. Rewritten to take glyph widths into
11055 account.
11056 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
11057 (fast_find_string_pos): New function.
11058 (fast_find_position): Return the correct vpos. Add parameter
11059 STOP. In the final row, stop before glyphs having STOP as object.
11060 Don't consider glyphs that are not from a buffer.
11061 (fast_find_position) [0]: Add a presumably more correct version
11062 for after 21.1.
11063 (expose_window_tree, expose_frame): Don't compute intersections here.
11064 (expose_window): Do it here instead.
11065 (expose_window_tree, expose_window, expose_line): Return 1 when
11066 overwriting mouse-face.
11067 (expose_window): If W is the window currently being updated, mark
11068 the frame garbaged.
11069 (expose_frame): If mouse-face was overwritten, redo it.
11070 (x_use_underline_position_properties): New variable.
11071 (syms_of_xterm): DEFVAR_BOOL it.
11072 (x_draw_glyph_string): Add comment to use it in future.
11073 (x_draw_glyph_string): Restore clipping after drawing box.
11074 Fix a computation of the underline position.
11075 (w32_get_glyph_string_clip_rect): Minor cleanup.
11076 (x_fill_stretch_glyph_string): Remove an assertion.
11077 (x_produce_glyphs): Don't convert multibyte characters
11078 to unibyte characters in unibyte buffers.
11079 (cursor_in_mouse_face_p): New function.
11080 (x_draw_stretch_glyph_string): Use it to choose a different GC
11081 when drawing a cursor within highlighted text. Don't draw
11082 background again if it has already been drawn.
11083 (x_draw_glyph_string_box): Don't draw a full-width
11084 box just because the glyph row's full_width_p flag is set.
11085 (x_draw_glyphs): Fix computation of rightmost x for
11086 full-width rows.
11087 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
11088 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
11089 change bottom shadow accordingly. Some cleanup.
11090 (x_update_window_end): Handle overwritten mouse face
11091 also for tool bar windows.
11092 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
11093 DRAW is DRAW_IMAGE_RAISED.
11094 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
11095 actually redrawn. Make the function static.
11096 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
11097 optimize away highlighting if we pass over that same overlay again.
11098 (note_mouse_highlight): Call mouse_face_overlay_overlaps
11099 to detect a case where we have to highlight a different region
11100 despite not having left the currently highlighted region.
11101 Set mouse_face_overlay in the x_display_info. Avoid changing the
11102 mouse pointer shape when show_mouse_face has already done it, or
11103 there is no need. Handle mouse-face and help-echo in strings.
11104 (glyph_rect): New function.
11105 (w32_mouse_position): Use it to raise the threshold for mouse
11106 movement event generation.
11107 (w32_initialize_display_info): Initialize the x_display_info's
11108 mouse_face_overlay.
11109 (w32_set_vertical_scroll_bar): Don't clear a zero height
11110 or width area.
11111 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
11112 a widget to zero height.
11113
3cf3436e 11114 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 11115 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
11116 equivalents in menu_items.
11117 (w32_menu_show): Don't overwrite an item's name with its key
11118 description in case the description is a multibyte string.
11119 (single_submenu): Some cleanup.
11120
11121 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
11122 (postprocess_image): New function.
11123 (lookup_image): Call it for all image types except PostScript.
11124 (x_kill_gs_process): Call postprocess_image.
11125 (tiff_error_handler, tiff_warning_handler): New functions.
11126 (tiff_load): Install them as handlers.
11127 (x_kill_gs_process): Recognize if someone has cleared the image
11128 cache under us.
11129 (valid_image_p): Protect better against invalid image
11130 specifications. Previous code could signal an error.
11131 (Fx_hide_tip, Fshow_tip): Doc fix.
11132 (Fv_max_tooltip_size): New variable.
11133 (syns_of_xfns): DEFVAR_LISP it.
11134 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
11135 window buffer to *tip* right after creating the frame. Set frame's
11136 window_width. Use a maximum tooltip size specified by
11137 Vx_max_tooltip_size, if that has valid contents.
11138 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
11139 Make sure the tooltip is completely visible.
11140 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
11141 (Fx_create_frame): Adjust the frame's height for presence
11142 of the tool bar before calling x_figure_window_size.
11143 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
11144 when the window gets smaller.
11145 (x_set_foreground_color): Set frame's cursor_pixel.
11146 (x_set_foreground_color, x_set_background_color): Cleaned up.
11147 (x_set_font): Handle case of x_new_fontset returning the same name
11148 as before, although there was a change in fontsets.
11149
386ca361
MB
111502001-10-21 Miles Bader <miles@gnu.org>
11151
c2d53558 11152 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
11153 (Flogxor): Add usage: string to doc string.
11154 * charset.c (Fstring): Likewise.
11155 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
11156 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
11157
f00691a3 111582001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 11159
03be2694
PJ
11160 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
11161
11162 * alloc.c: Reindent DEFUNs with doc: keywords.
11163
11164 * abbrev.c (Finsert_abbrev_table_description): Reindent.
11165
14ff1ee0
PJ
11166 * frame.c: Change doc-string comments to `new style' [w/`doc:'
11167 keyword].
11168
2f147815 11169See ChangeLog.9 for earlier changes.
6922b018
KH
11170
11171;; Local Variables:
49b3bd82 11172;; coding: iso-2022-7bit
6922b018 11173;; End:
2a34a036 11174
2f147815 11175 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
11176 Copying and distribution of this file, with or without modification,
11177 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
11178
11179;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4