[MAC_OS] (XPutPixel): Set alpha channel bits if pixmap depth is 32.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
4cdffedf
YM
12006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
4 depth is 32.
5 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
6 depth is 32.
7
45b5f35d
CY
82006-03-06 Chong Yidong <cyd@stupidchicken.com>
9
10 * xdisp.c (handle_invisible_prop): Don't update it->position with
11 a buffer position if we're in a display string.
12
48b60fa1
YM
132006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14
15 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
16 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
17
18 * macfns.c (x_default_scroll_bar_color_parameter)
19 (x_set_scroll_bar_foreground, x_set_scroll_bar_background): Remove
20 unnecessary prototypes.
21 (x_set_scroll_bar_default_width): Use
22 MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
23 (mac_set_scroll_bar_width): New function.
24 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
25
26 * macterm.c (get_control_part_bounds): Fix type of return value.
27 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
28 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
29 scroll bar if it is not tall enough to display scroll bar thumb.
30 [USE_CARBON_EVENTS] (mac_convert_event_ref)
31 (mac_handle_command_event, mac_handle_window_event)
32 (mac_handle_mouse_event): Check error code of GetEventParameter.
33 (convert_fn_keycode) [MAC_OSX]: Likewise.
34
6f10509c
AS
352006-03-05 Andreas Schwab <schwab@suse.de>
36
37 * xselect.c (x_catch_errors_unwind): Fix missing return value.
38
f79bc642
KS
392006-03-02 Kim F. Storm <storm@cua.dk>
40
41 * frame.h (struct frame): New member n_tool_bar_rows.
42
43 * xdisp.c: Minimize the unpleasent visual impact of the requirement
44 that non-toolkit tool-bars must occupy an integral number of screen
45 lines, by distributing the rows evenly over the tool-bar screen area.
46 (Vtool_bar_border): New variable.
47 (syms_of_xdisp): DEFVAR_LISP it.
48 (display_tool_bar_line): Add HEIGHT arg for desired row height. Make
49 tool-bar row the desired height. Use default face for border below
50 tool-bar.
51 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
52 actual tool-bar rows.
53 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
54 Adjust the height of the tool-bar rows to fill tool-bar screen area.
55 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
56 is resized.
57
0bbe0c9c
LT
582006-03-01 Luc Teirlinck <teirllm@auburn.edu>
59
60 * search.c (Fregexp_quote): Do not precede a literal `]' with two
61 backslashes to try to make clear that it has a literal meaning; it
62 does not do that. (It could close a character alternative
63 containing a backslash.)
64
c525d842
CY
652006-02-28 Chong Yidong <cyd@stupidchicken.com>
66
67 * xselect.c (x_catch_errors_unwind): New function.
68 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
69 (Fx_get_atom_name): Call x_uncatch_errors earlier.
70
71 * window.c (Qscroll_up, Qscroll_down): New syms.
72 (window_scroll_pixel_based): Make preserve_y static to avoid
73 getting point stuck when scrolling 1 line.
74
4545fa20
CY
752006-02-26 Chong Yidong <cyd@stupidchicken.com>
76
77 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary
78 argument.
79
80 * xterm.c: (x_load_font, x_term_init, XTmouse_position)
81 (handle_one_xevent, x_connection_closed, x_list_fonts): No arg for
82 x_uncatch_errors.
83
84 * xselect.c (x_own_selection, x_decline_selection_request)
85 (x_reply_selection_request, x_get_foreign_selection)
86 (Fx_get_atom_name, Fx_send_client_event): Likewise.
87
88 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
89 Likewise.
90
a5e25a4c
LT
912006-02-26 Luc Teirlinck <teirllm@auburn.edu>
92
440cbd9e
LT
93 * lread.c: Declare Vload_file_rep_suffixes instead of
94 deleted variable default_suffixes.
95 (Fget_load_suffixes): New function.
96 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
97 No longer use deleted variable default_suffixes. Update docstring.
98 (syms_of_lread): defsubr Sget_load_suffixes.
99 Expand `load-suffixes' docstring.
100 Delete default_suffixes and DEFVAR_LISP the new variable
101 `load-file-rep-suffixes'.
102
103 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
104 of Vload_suffixes.
105
106 * lisp.h: EXFUN Fget_load_suffixes.
107 Extern Vload_file_rep_suffixes.
108
a5e25a4c
LT
109 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
110 with lisp.h.
111
a7af5886
SM
1122006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
113
114 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
115 qualifier which was trying to avoid the bug that was fixed by
116 yesterday's changes to xterm.c.
117
9ba8e10d
CY
1182006-02-25 Chong Yidong <cyd@stupidchicken.com>
119
120 * xterm.h (x_catch_errors) Return value changed to void.
4545fa20 121 (x_uncatch_errors): Delete unused count argument.
a7af5886 122
9ba8e10d
CY
123 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
124 it can be called in a signal handler.
125 (x_catch_errors_unwind): Function deleted.
126 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
127 (x_check_errors): Call x_uncatch_errors before signalling error.
128
129 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
130 (x_connection_closed, x_list_fonts): Use new versions of
131 x_catch_errors and x_uncatch_errors.
132
133 * xselect.c (x_own_selection, x_decline_selection_request)
134 (x_reply_selection_request, x_get_foreign_selection)
135 (Fx_get_atom_name, Fx_send_client_event): Likewise.
136
137 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
138 Likewise.
139
140 * eval.c (record_unwind_protect): Add an assertion.
141
f523e0c3
SM
1422006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
143
144 * process.c (Fmake_network_process): Init the process's mark.
145
a7a7e1d7
KS
1462006-02-25 Kim F. Storm <storm@cua.dk>
147
148 * buffer.c (modify_overlay): Force redisplay if we modify an
149 overlay at the end of the buffer.
150
a821c035
JD
1512006-02-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
152
153 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
154 nil the image file has been removed, in that case use the (cached)
155 pixmap.
156
77343e1d
KH
1572006-02-24 Kenichi Handa <handa@m17n.org>
158
159 * fileio.c (Finsert_file_contents): When a text is replaced
160 partially, be sure to set point before the inserted characters.
161
92fb5516
KH
1622006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
163
164 * xfns.c (Fx_file_dialog): Return a decoded file name.
165
78897758
YM
1662006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
167
168 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
169 glyph whose face is extended to the text area end.
170
5b574e69
YM
171 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
172 values if control is not visible or values are not changed.
173
acc6289a
SM
1742006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
175
176 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
177 The default `window' should not be "on a different frame".
178
c4336e88
KS
1792006-02-22 Kim F. Storm <storm@cua.dk>
180
181 * indent.c (Fvertical_motion): Only try to move back if we can.
182
b6e3efe0
YM
1832006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
184
185 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
186 n_clip_rects.
187
188 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
189 xmenu.c.
190
191 * macterm.c (GC_CLIP_REGION): Remove macro.
192 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
193 All uses changed. Don't do clipping if n_clip_rects is zero.
acc6289a
SM
194 (mac_set_clip_rectangles): Use xassert instead of abort.
195 Set n_clip_rects. Don't make clip_region empty when number of
b6e3efe0
YM
196 clipping rectangles is zero.
197 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
198 calling mac_set_clip_rectangles.
199 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
200 avoid multiple redraws.
201
6f62a45e
KS
2022006-02-22 Kim F. Storm <storm@cua.dk>
203
204 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
205
dd9959da
KS
2062006-02-21 Kim F. Storm <storm@cua.dk>
207
208 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
209
a8f4bdc6
JD
2102006-02-21 Zhang Wei <brep@newsmth.org>
211
212 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
213 returning it.
214
dd9959da 2152006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9866a438
JB
216
217 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
218 (standard_bitmaps): Use it.
219
9fb446e3
YM
2202006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
221
222 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
223 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
224 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
225 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
acc6289a
SM
226 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
227 Draw background if BG_WIDTH is not zero. Use float constants as
9fb446e3
YM
228 divisors instead of double. Use alloca instead of xmalloc/xfree.
229 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
230 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
231 mac_draw_image_string* functions.
232 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
233 some fonts when srcCopy text transfer mode might be used.
234 (mac_begin_clip, mac_end_clip): Check if region is empty.
235 (mac_set_clip_rectangles): When resetting clip region, make it
236 empty instead of disposing of it.
237
acc6289a
SM
2382006-02-20 Stefan Monnier <monnier@iro.umontreal.ca>
239
240 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
241 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8).
242
49af2995
KS
2432006-02-20 Kim F. Storm <storm@cua.dk>
244
245 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
246
247 * buffer.h (struct buffer): New members fringe_indicator_alist and
248 fringe_cursor_alist.
249
250 * buffer.c (init_buffer_once): Set dummy default values for
251 fringe-indicator-alist and fringe-cursor-alist. The proper
252 default values are set by pre-loading fringe.el.
253 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
254 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
9866a438 255 corresponding default- variables.
49af2995
KS
256
257 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
258 to use `int'.
259 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
260 Define explicitly.
261 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
262 (Qhollow_small): New variables.
263 (syms_of_fringe): Intern and staticpro them.
264 (question_mark_bits): Rename from unknown_bits.
265 (left_curly_arrow_bits): Rename from continuation_bits.
266 (right_curly_arrow_bits): Rename from continued_bits.
267 (left_triangle_bits): Rename from ov_bits.
acc6289a 268 (right_triangle_bits): Add.
49af2995
KS
269 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
270 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
acc6289a 271 (filled_square_bits): Add.
49af2995 272 (vertical_bar_bits): Rename from bar_cursor_bits.
9866a438 273 (horizontal_bar_bits): Rename from hbar_cursor_bits.
49af2995
KS
274 (empty_line_bits): Rename from zv_bits.
275 (standard_bitmaps): Update to use new names.
276 (draw_fringe_bitmap_1): Make static.
277 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
278 to map from logical cursors and indicators to physical bitmaps.
279 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
280 bitmaps using symbol names instead of bitmap numbers.
281 (update_window_fringes): Use logical indicator symbol names
282 instead of bitmap numbers for logical. Add bitmap cache.
283 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
284
a77f947b
CY
2852006-02-20 Chong Yidong <cyd@stupidchicken.com>
286
a073faa6
CY
287 * regex.c: Revert 2006-02-19 change.
288 (xmalloc, xrealloc): Define these when not linked to Emacs.
289 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
a77f947b 290
2f90d2bc
LT
2912006-02-19 Luc Teirlinck <teirllm@auburn.edu>
292
293 * regex.c (extend_range_table_work_area): Fix typo.
294
5498b6af
RS
2952006-02-19 Richard M. Stallman <rms@gnu.org>
296
7b1d7d66
RS
297 * xterm.c (x_catch_errors): Use xmalloc.
298
299 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
300 (regex_compile): Likewise.
301 (regcomp): Use xmalloc.
302
303 * gtkutil.c (malloc_widget_value): Use xmalloc.
304
5498b6af
RS
305 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
306 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
307
308 * xmenu.c (digest_single_submenu): When pane_string is empty,
309 do initialize save_wv.
310
4f2f3214
YM
3112006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
312
313 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
314 w->update_mode_line if arg F is not the selected frame.
315
316 * macmenu.c (popup_activated_flag, submenu_id)
317 (next_menubar_widget_id): Remove variables.
318 (initialize_frame_menubar): Remove function.
319 (pop_down_menu, mac_menu_show): Simplify save value.
320 (dispose_menus): New function.
321 (pop_down_menu, fill_menubar): Use it.
322 (fill_submenu): Remove function. All uses changed to fill_menu.
323 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
324 POS. Don't call SetMenuItemHierarchicalID here.
325 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
326 used next. Call SetMenuItemHierarchicalID here.
327 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
328 objects if needed. Reuse existing menu bar titles if possible.
329 (set_frame_menubar): Don't clean up menu objects here.
330
da7520de
CY
3312006-02-18 Chong Yidong <cyd@stupidchicken.com>
332
333 * window.c (window_min_size_1): Ensure room for the scroll bar and
334 fringes.
335
a9c18b84
RF
3362006-02-17 Romain Francoise <romain@orebokech.com>
337
338 * puresize.h (BASE_PURESIZE): Increment to 1200000.
339
537407f0
SM
3402006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
341
342 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
343 addition of the BLOCK_INPUTs.
344
5bf3610f
JB
3452006-02-17 Juanma Barranquero <lekktu@gmail.com>
346
347 * window.c (Fset_window_scroll_bars): Doc fix.
348
ed0218e2
KH
3492006-02-17 Kenichi Handa <handa@m17n.org>
350
351 * xdisp.c (display_mode_element): Call display_string with correct
352 PREC arg (which must be a number of characters, not column width).
353
f036d043
YM
3542006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
355
356 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
357
358 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
359
360 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
361
885f1975
RS
3622006-02-14 Richard M. Stallman <rms@gnu.org>
363
9d8f542c
RS
364 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
365
885f1975
RS
366 * m/ibms390x.h: New file.
367
26ebccfd
JD
3682006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
369
370 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
371 value of x-gtk-whole-detached-tool-bar.
d8d3d48c 372 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
26ebccfd
JD
373
374 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
375
4d7637b8 3762006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
58118de5
JD
377
378 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
379
380 * xterm.h: Declare x_x_to_emacs_modifiers.
381
382 * gtkutil.c (xg_tool_bar_button_cb): New function.
383 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
384 store modifiers in event.
385 (update_frame_tool_bar): Connect button-release-event to
386 xg_tool_bar_button_cb.
387
f8d775e1
RS
3882006-02-13 Richard M. Stallman <rms@gnu.org>
389
390 * .gdbinit (xwindow): Update the code to show the window box.
391
0c0351b5
JD
3922006-02-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
393
394 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
395
4d94dd9a
RS
3962006-02-12 Richard M. Stallman <rms@gnu.org>
397
398 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
399
c54fb9ef
EZ
4002006-02-11 Eli Zaretskii <eliz@gnu.org>
401
402 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
403 (syms_of_keyboard): DEVFAR_LISP and initialize it.
404 (parse_tool_bar_item, parse_menu_item): If that variable is
405 non-nil, don't disable menu items and tool-bar buttons.
406
ac6a9b55
JB
4072006-02-11 Juanma Barranquero <lekktu@gmail.com>
408
409 * doc.c (Fsubstitute_command_keys): Doc fix.
410
0ddb0ae8
TTN
4112006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
412
413 * data.c (Findirect_function): Rewrite docstring.
414 Fix omission bug: Declare new arg NOERROR.
415
cbd488c4
YM
4162006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
417
418 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
419 if window_desc is not set yet.
420 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
421 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
422 parameter `visibility' is `icon'.
423 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
424 instead of "fontset-mac".
425 (Fx_focus_frame): New defun.
426 (syms_of_macfns): Defsubr it.
427
428 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
429 for unfocused frame.
430 (x_raise_frame): Call BringToFront instead of SelectWindow.
431 (x_lower_frame): Use NULL instead of nil.
432 (x_make_frame_visible): Don't call SelectWindow.
433 (XTread_socket): Increment handling_signal at the start, decrement
434 it at the end.
435 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
436 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
437
a7f96a35
KS
4382006-02-10 Kim F. Storm <storm@cua.dk>
439
440 * data.c (Findirect_function): Add NOERROR arg. All callers changed
441 to pass Qnil for NOERROR.
442
443 * keymap.c (current_minor_maps_error): Remove.
444 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
445 instead of using internal_condition_case_1+current_minor_maps_error.
446
1834d8e7
JD
4472006-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
448
449 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
450 frames for GTK, in that case it is the tool bar. This is so that
451 highlighted text get reset properly.
452
cffc3472
JB
4532006-02-09 Juanma Barranquero <lekktu@gmail.com>
454
455 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
456
e99c7521
JD
4572006-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
458
459 * window.c (adjust_window_trailing_edge): Check that shrinking
460 does not set a window to size zero or less.
461
42ab8e36
MB
4622006-02-08 Miles Bader <miles@gnu.org>
463
464 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
cffc3472 465 of Fget_text_property (other field functions work with overlays as
42ab8e36
MB
466 well as text-properties).
467
6a80c3ba
KH
4682006-02-07 Kenichi Handa <handa@m17n.org>
469
e1a67366 470 * dispextern.h (unibyte_display_via_language_environment): Extern it.
6a80c3ba 471
e1a67366
KS
472 * xterm.h (unibyte_display_via_language_environment):
473 * w32term.h (unibyte_display_via_language_environment):
474 * macterm.h (unibyte_display_via_language_environment): Delete extern.
6a80c3ba 475
d2b4c17d
KH
4762006-02-07 Kenichi Handa <handa@m17n.org>
477
e1a67366 478 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
d2b4c17d 479 (produce_glyphs): Set the character to print in
e1a67366
KS
480 it->char_to_display. Handle unibyte-display-via-language-environment.
481 (produce_stretch_glyph): Set character to print in it->char_to_display.
d2b4c17d 482
8b9d426a
KH
4832006-02-06 Kenichi Handa <handa@m17n.org>
484
e1a67366 485 * lread.c (openp): Initialize encoded_fn before GCPRO it.
8b9d426a 486
d63b4018
KR
4872006-02-05 Ken Raeburn <raeburn@raeburn.org>
488
489 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
490
98950fd6
KR
491 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
492 Cast bitfield value to EMACS_INT, to suppress gcc warning.
493
0cf36656
KR
494 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
495 defining.
496
ad02d7ea
KS
4972006-02-03 Kim F. Storm <storm@cua.dk>
498
499 * xdisp.c: Cache last merged escape glyph face.
500 (last_escape_glyph_frame, last_escape_glyph_face_id)
501 (last_escape_glyph_merged_face_id): New variables.
502 (get_next_display_element): Use/update them.
503 (redisplay_internal): Reset them before redisplay.
504
505 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
506 Only recheck faces after displaying ellipsis.
507
999a0fe5
KH
5082006-02-02 Kenichi Handa <handa@m17n.org>
509
510 * coding.c (decode_composition_emacs_mule): Fix handling of
511 incorrect format data.
512
cd7cd4ac
JD
5132006-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
514
515 * gtkutil.c (update_frame_tool_bar): Use new tool bar functions
516 (gtk_toolbar_insert) so we can have tool bars of different sizes.
517
4cf7e99c
LT
5182006-01-30 Luc Teirlinck <teirllm@auburn.edu>
519
520 * data.c (Flistp): Doc fix.
521
a3bc032f
JB
5222006-01-30 Juanma Barranquero <lekktu@gmail.com>
523
524 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
525 Fix typos in docstrings.
526
6badf38c
LT
5272006-01-28 Luc Teirlinck <teirllm@auburn.edu>
528
1f2907ee 529 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
6badf38c 530
e2984df0
CY
5312006-01-27 Chong Yidong <cyd@stupidchicken.com>
532
533 * alloc.c (make_interval, allocate_string)
534 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
535 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
536 global variables.
537
dc86c16d
EZ
5382006-01-27 Eli Zaretskii <eliz@gnu.org>
539
540 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
541 the MSDOS definition.
542
57436ee7
RS
5432006-01-26 Richard M. Stallman <rms@gnu.org>
544
545 * alloc.c (check_pure_size): Make overflow message an "error message".
546
547 * keymap.c (Fmap_keymap): Doc fix.
548
549 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
550 unless they were cleared out.
551
552 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
553
2cb3aec4
KL
5542006-01-26 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
555
e477bb04
KL
556 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
557 (find_field): Set before_field to after_field when pos is at BEGV.
6badf38c 558 (Fline_beginning_position, Fline_end_position): Clarify
2cb3aec4
KL
559 confusing doc string.
560
561 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
562 string.
563
34b87689
KH
5642006-01-26 Kenichi Handa <handa@m17n.org>
565
566 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
567 current_dir, and error_file. On reporting an error, decode them
568 back.
569
1cee1e27
SM
5702006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
571
572 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
573 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
574 Don't check for quit, since any loop will go through fail or jump.
575
a0b08700
CY
5762006-01-24 Chong Yidong <cyd@stupidchicken.com>
577
578 * alloc.c (allocate_string_data): Update next_free immediately, to
579 reduce risk of memory clobberage.
580
bf7f1d30
KL
5812006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
582
583 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
584 display when point moves across an ellipsis. If there are
585 adjacent invisible texts, don't lose the second one's ellipsis.
586 (x_produce_glyphs): Doc fix.
587
e5e26d8f
SM
5882006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
589
590 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
591
1ff4535b
KS
5922006-01-23 Kim F. Storm <storm@cua.dk>
593
594 * xdisp.c (handle_single_display_spec): Fix handling of space
595 property on char from string: set *position rather than
596 it->current.pos.
597 (produce_stretch_glyph): Reduce width of stretch glyphs so they
598 don't get wider than the window (unless truncate-lines is on).
599
5badc98d
SM
6002006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
601
602 * xterm.c: Avoid allocating Lisp data from a signal handler.
603 (x_error_message): New var to replace x_error_message_string.
604 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
605 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
606 (syms_of_xterm): Use it instead of x_error_message_string.
607
608 * alloc.c (lisp_align_free): Add an assertion.
609 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
610 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
611 a signal handler.
612
638590e8
LT
6132006-01-21 Luc Teirlinck <teirllm@auburn.edu>
614
615 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
616
cde0a40c
RF
6172006-01-21 Romain Francoise <romain@orebokech.com>
618
619 * xdisp.c (get_window_cursor_type): Fix last change.
620 Update copyright year.
621
ea5f3ad4
EZ
6222006-01-20 Eli Zaretskii <eliz@gnu.org>
623
3fdf12ca
EZ
624 * lread.c (Fload): Don't leak the file descriptor returned by
625 openp if we are going to signal an error.
626
7559f399
EZ
627 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
628 directly to _close.
629 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
630 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
631 to _read.
cde0a40c 632 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
7559f399
EZ
633 directly to _write.
634
ea5f3ad4
EZ
635 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
636 if it is NULL.
637
ef8beec6
KH
6382006-01-20 Kenichi Handa <handa@m17n.org>
639
640 * puresize.h (BASE_PURESIZE): Increment to 1190000.
641
995f2df9
CY
6422006-01-19 Chong Yidong <cyd@stupidchicken.com>
643
644 * xdisp.c (get_window_cursor_type): Use cursor type specified by
645 the selected buffer for the echo area too.
646
c94c4d0a
RS
6472006-01-19 Richard M. Stallman <rms@gnu.org>
648
649 * keymap.c (Fmap_keymap): Doc fix.
650
651 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
652
653 * keyboard.c (echo_char): Don't omit the space between first two
654 echoed chars.
655
656 * minibuf.c (read_minibuf): Fix previous change.
657
71578d4f
KH
6582006-01-19 Kenichi Handa <handa@m17n.org>
659
660 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
661
edd1c685
RS
6622006-01-17 Richard M. Stallman <rms@gnu.org>
663
664 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
665 value in f->param_alist.
666
0501acd4
AS
6672006-01-15 Andreas Schwab <schwab@suse.de>
668
669 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
670
d33a7384
NR
6712006-01-13 Richard M. Stallman <rms@gnu.org>
672
673 * Makefile.in: Define new macro WINDOW_SUPPORT.
674 (lisp): Use it.
675 (SOME_MACHINE_LISP): Add conditionally loaded files.
676
2026418c
YM
6772006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
678
679 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
22e6707e 680 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
2026418c
YM
681 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
682 decomposed form.
683
684 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
685 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
686 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
687 macro. Also try member ifr_addr when getting netmask.
688
b8f7f3be
SM
6892006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
690
691 * fileio.c (Fexpand_file_name): Remove redundant tests.
692 Fix elimination of // so that it doesn't prevent elimination of an
693 immediately following /. or /..
694
4c9ca1a3
JD
6952006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
696
697 * gtkutil.c (xg_toggle_notify_cb): New function.
698 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
699 xg_toggle_notify_cb.
700 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
701 parameter value changes so the toggle button gets updated.
702
340bb2ea
NR
7032006-01-06 Nick Roberts <nickrob@snap.net.nz>
704
705 * .gdbinit: Fix typo.
706
feaf060a
EZ
7072006-01-05 Eli Zaretskii <eliz@gnu.org>
708
709 * .gdbinit: Fix last change.
710
c22cc558
KS
7112006-01-05 Kim F. Storm <storm@cua.dk>
712
713 * process.c (Fmake_network_process): Use AF_INET instead of
22e6707e 714 AF_UNSPEC when AF_INET6 is not defined.
c22cc558 715
07f9b01c
YM
7162006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
717
718 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
719 Don't check that the other type is known file-related one.
720
721 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
722 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
723 OS X 10.4 and later.
724
0facd9c3
JD
7252006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
726
727 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
728 let GTK do all image processing. Importing Emacs own pixmaps to GTK
729 looks bad for inactive tool bar items with some Gnome themes.
730
805b0439
EZ
7312006-01-04 Eli Zaretskii <eliz@gnu.org>
732
913645cd
EZ
733 * .gdbinit: Avoid a warning message when x_error_quitter is not
734 compiled in.
735
805b0439
EZ
736 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
737 for w32.
738
0f5642c2
KS
7392006-01-04 Kim F. Storm <storm@cua.dk>
740
8a5db8ae
KS
741 * process.c: Add IPv6 support.
742 (Qipv4, Qipv6): New vars.
743 (syms_of_process): Intern and staticpro them.
744 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
745 with or without port number. Handle 4 element vector as IPv4 address
746 without port number.
747 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
748 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
749 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
750 request that address family only. :family nil or omitted means to
751 determine address family from the specified :host and :service.
752 (ifflag_table): Add missing OpenBSD IFF_ flags.
753 (server_accept_connection): Handle IPv6 addresses.
754 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
755
0f5642c2
KS
756 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
757 determine which breakpoints to set.
758
e7b394e1
SM
7592006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
760
761 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
762
763 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
764
dcc9b98d
RF
7652006-01-03 Romain Francoise <romain@orebokech.com>
766
767 * emacs.c (main): Update copyright year.
768
6918ac24 7692006-01-03 Ken Raeburn <raeburn@gnu.org>
1a271e14
KR
770
771 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
772 nil for the call to internal_delete_file.
773
bb951f0e
KR
7742006-01-01 Ken Raeburn <raeburn@gnu.org>
775
776 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
777 to nil for the call to Fwrite_region.
778
b20de1cd
RS
7792005-12-31 Richard M. Stallman <rms@gnu.org>
780
781 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
782
b5871831
EZ
7832005-12-31 Eli Zaretskii <eliz@gnu.org>
784
785 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
786
c26ec07f
LT
7872005-12-30 Luc Teirlinck <teirllm@auburn.edu>
788
789 * textprop.c (set_text_properties): Reword description of return value.
790 Return Qnil if caller wants to remove all text properties from a
791 string and the string already has no intervals.
792
0db017c0
SM
7932005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
794
795 * term.c (visible_cursor): New boolean var.
796 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
797 visible_cursor.
798 (syms_of_term): Export the new var as "visible-cursor".
799
fc8dc7cf
EZ
8002005-12-30 Eli Zaretskii <eliz@gnu.org>
801
802 * .gdbinit: Tell users not to worry about GDB warnings that some
803 functions do not exist in the binary.
804
82a80058
AS
8052005-12-30 Andreas Schwab <schwab@suse.de>
806
807 * process.c (Fnetwork_interface_info): Correctly terminate the
808 loop over ifflag_table.
809
c36238ee
RS
8102005-12-29 Richard M. Stallman <rms@gnu.org>
811
d11db2c8
RS
812 * lread.c (readevalloop): Test for reading a whole buffer
813 before actually reading anything. Handle all cases, including
814 START = END = nil and an already-narrowed buffer.
815 Convert END to a marker if it is a number.
816
c36238ee
RS
817 * keymap.c (describe_map): Put sparse map elements into an array,
818 sort them, then output a sequence of identical bindings on one line.
819 (struct describe_map_elt): New data type.
820 (describe_map_compare): New function.
821
82bc1fd6
JD
8222005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
823
e7b394e1 824 * gtkutil.c (xg_get_file_with_chooser): Change message shown
82bc1fd6
JD
825 in file chooser.
826
fe5195e8
RS
8272005-12-27 Richard M. Stallman <rms@gnu.org>
828
6281e1e8
RS
829 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
830 not the current one.
831
832 * minibuf.c (Fminibuffer_message): Doc fix.
833 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
834
fe5195e8
RS
835 * eval.c (do_autoload): Ignore elements of Vautoload_queue
836 where car is not symbol.
837
0d9fb289
KH
8382005-12-27 Kenichi Handa <handa@m17n.org>
839
840 * charset.c (lisp_string_width): Check multibyteness of STRING.
841
ff9c9c59
JD
8422005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
843
844 * xfns.c: x_show_hidden_files, new variable.
845 (syms_of_xfns): Defvar it.
846
847 * gtkutil.c (xg_toggle_visibility_cb): New function.
848 (xg_get_file_with_chooser): Add toggle hidden files and a message
849 to the new file chooser dialog. Show hidden files if
850 x_show_hidden_files is non-zero.
851
d7504d5c
RS
8522005-12-26 Richard M. Stallman <rms@gnu.org>
853
854 * keyboard.h: Undo previous change.
855
856 * Makefile.in (undo.o): Undo previous change.
857
858 * undo.c: Undo previous change.
859
0ad017ce
LT
8602005-12-26 Luc Teirlinck <teirllm@auburn.edu>
861
403c00a5
LT
862 * keyboard.h: extern last_point_position_window.
863
0ad017ce
LT
864 * undo.c: include keyboard.h.
865
403c00a5 866 * Makefile.in (undo.o): Depend on keyboard.h.
0ad017ce 867
91e25f5e
RS
8682005-12-26 Richard M. Stallman <rms@gnu.org>
869
d7504d5c
RS
870 * commands.h (last_point_position_window): Declare.
871
91e25f5e
RS
872 * undo.c: Depend on window.h.
873 (record_point): Save old point from the correct window.
874
875 * keyboard.c (last_point_position_window): New variable.
876 (command_loop_1): Set last_point_position_window.
877 (syms_of_keyboard): Init it.
878
879 * Makefile.in (undo.o): Depend on window.h.
880
cad1051b
RS
8812005-12-25 Richard M. Stallman <rms@gnu.org>
882
883 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
884 to undo a `provide'.
885
886 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
887
d52c26e9
KB
8882005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
889
890 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
891 define for FreeBSD on this platform.
892
14af1e44
YM
8932005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
894
895 * macterm.h (TYPE_FILE_NAME): New define.
896 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
897
e7b394e1
SM
898 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
899 Add prototypes. Make static.
14af1e44
YM
900 (mac_aedesc_to_lisp): Initialize err to noErr.
901 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
902 (init_coercion_handler): New functions.
903 (Fmac_coerce_ae_data): Use coercion of Apple event data for
904 translation from/to file names.
905
906 * macterm.c: Don't include sys/param.h.
907 (init_coercion_handler): Add extern.
908 [MAC_OS8] (main): Call init_coercion_handler.
909 (mac_initialize) [MAC_OSX]: Likewise.
910 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
911 Apple event data for translation from/to file names.
912
913 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
914
915 * image.c [MAC_OS] (find_image_fsspec): Likewise.
916
bab3eee1
EZ
9172005-12-23 Martin Rudalics <rudalics@gmx.at> (tiny change)
918
919 * insdel.c (insert, insert_and_inherit, insert_before_markers)
920 (insert_before_markers_and_inherit): Make sure FROM is correct
921 when `after-change-functions' are called.
922
90f2e16b
JD
9232005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
924
925 * xfns.c (Fx_uses_old_gtk_dialog): New function.
926
927 * gtkutil.c (xg_uses_old_file_dialog): New function.
928 (xg_get_file_name): Use xg_uses_old_file_dialog.
929
930 * gtkutil.h: Declare xg_uses_old_file_dialog.
931
0ee01fff
RS
9322005-12-22 Richard M. Stallman <rms@gnu.org>
933
934 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
935
b73e4d84
YM
9362005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
937
938 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
939
940 * macgui.h (XCharStruct): Remove member `valid_p'.
941 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
942 (XCharStructRow): New typedef.
e7b394e1
SM
943 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
944 New macros.
b73e4d84
YM
945 (struct MacFontStruct): Add member `bounds'. Remove member
946 `per_char'. All uses for QuichDraw Text fonts are changed to
947 `bounds.per_char'. ATSUI font bounds are represented as an array
948 `bounds.rows' of XCharStructRow's, each of which consists of a
949 bitmap of valid entries and an array of char bounds.
950
951 * macterm.c (mac_per_char_metric): Add prototype.
952 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
953 (mac_query_char_extents): New function.
954 (x_per_char_metric): Use it.
955 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
e7b394e1
SM
956 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
957 Use mac_per_char_metric instead of x_per_char_metric.
b73e4d84
YM
958 (mac_text_extents_16): New function.
959 (mac_compute_glyph_string_overhangs): Use it.
960 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
961
a425bd03
SM
9622005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
963
964 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
965 (Fminibuffer_completion_help): Remove duplicates before display.
966
aa0b0cd9
KL
9672005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
968
da3863b5 969 * print.c (print_preprocess): Don't lose print_depth levels while
aa0b0cd9
KL
970 iterating.
971
5a61ec18
YM
9722005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
973
974 * macmenu.c (Qmac_apple_event): Add extern.
975 (set_frame_menubar, mac_menu_show keymp_panes)
976 (single_keymap_panes, list_of_panes, list_of_item)
977 (single_menu_item): Add argument types to prototypes.
978 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
979 (struct skp): New struct (from xmenu.c).
980 (single_keymap_panes, single_menu_item, list_of_panes)
981 (list_of_item): Sync with xmenu.c.
982 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
983 POSITION if it is mac-apple-event event.
984 (menubar_selection_callback): Don't use menu_command_in_progress.
985 (set_frame_menubar): First parse all submenus, then make
986 widget_value trees from them. Don't allocate any widget_value
987 objects until we are done with the parsing.
988 (parse_single_submenu, digest_single_submenu): New functions.
989 (single_submenu): Function deleted, replaced by those two.
990 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
991 create or dispose of EventHandlerUPP. Install hander to all submenus.
992 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
993 instead of ENCODE_SYSTEM.
994 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
995 integer values.
996 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
997 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
998 format menu item string. Don't use NULL for integer value.
999
1000 * macterm.h (struct mac_output): Remove unused member
1001 menu_command_in_progress.
1002
3bdba51d
JL
10032005-12-20 Juri Linkov <juri@jurta.org>
1004
1005 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
1006 position is non-nil, else set it to nil.
1007
1008 * macmenu.c (Fx_popup_menu): Add `else' to set
1009 Vmenu_updating_frame to nil only if position is nil.
1010
1011 * w32menu.c (Fx_popup_menu): Add `else' to set
1012 Vmenu_updating_frame to nil only if position is nil.
1013
d6a90a49
YM
10142005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1015
1016 * keyboard.c (make_lispy_event): Drag-and-drop items are now
1017 stored in member `args' of struct input_event.
1018
1019 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
1020
1021 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
1022 stored in member `args' of struct input_event.
1023
1024 * w32term.c (construct_drag_n_drop): Likewise.
1025
1026 * macterm.c (mac_do_receive_drag): Likewise.
1027 (x_use_underline_position_properties): Undo 2005-07-13 change.
1028 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
1029 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
a425bd03
SM
1030 (mac_pass_command_to_system, mac_pass_control_to_system):
1031 New boolean variables renamed from Lisp_Object ones
d6a90a49 1032 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
a425bd03
SM
1033 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
1034 All uses changed.
d6a90a49
YM
1035 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
1036 Make them user options.
a425bd03
SM
1037 (mac_handle_command_event, mac_store_services_event):
1038 Call create_apple_event_from_event_ref without 5th argument.
d6a90a49
YM
1039 (backtranslate_modified_keycode): Mask off modifier keys that are
1040 mapped to some Emacs modifiers before passing it to KeyTranslate.
1041 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
1042 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
1043 Fix docstrings of `mac-*-modifier'.
1044
1045 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
a425bd03
SM
1046 (do_applescript): Change argument types to Lisp_Object.
1047 All uses changed.
d6a90a49
YM
1048
1049 * macterm.h (create_apple_event_from_event_ref): Remove 5th
1050 argument from extern.
1051
20d1c5c5
DN
10522005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
1053
1054 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
1055 the answer, return `lambda', not nil.
1056
abeb5855
EZ
10572005-12-17 Eli Zaretskii <eliz@gnu.org>
1058
1059 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
1060 enclosed in $(ARGQUOTE)s should not be split between two lines, as
1061 that will break with GNU Make >3.80, when sh.exe is used and
1062 arg quoting is with '..'.
1063
6b8dfbf7
CY
10642005-12-17 Chong Yidong <cyd@stupidchicken.com>
1065
1066 * print.c (print_preprocess): Just signal an error if print_depth
1067 is exceeded.
1068
d912b87a
EZ
10692005-12-17 Eli Zaretskii <eliz@gnu.org>
1070
1071 * .gdbinit: Set a breakpoint on w32_abort.
1072
2a502a32
JL
10732005-12-16 Juri Linkov <juri@jurta.org>
1074
1075 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
1076 created from minibuffer_completion_contents.
1077 (minibuffer_completion_contents): Remove.
1078 (do_completion, Fminibuffer_complete_word)
1079 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
1080 with Fminibuffer_completion_contents.
1081 (syms_of_minibuf): Add Sminibuffer_completion_contents.
1082 (Fdisplay_completion_list): Doc fix.
1083 (display_completion_list_1): Use `nil' for second arg of
1084 `Fdisplay_completion_list'.
1085
bf63eb69
JD
10862005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1087
1088 * xfns.c (compute_tip_xy): Handle negative dx and dy.
1089
a425bd03 1090 * w32fns.c (compute_tip_xy): Ditto.
bf63eb69 1091
a425bd03 1092 * macfns.c (compute_tip_xy): Ditto.
bf63eb69 1093
9b98e161
CY
10942005-12-14 Chong Yidong <cyd@stupidchicken.com>
1095
1096 * print.c (print_preprocess): Go to a deeper print_depth to avoid
1097 print_object loop.
1098
89aa725a
KH
10992005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
1100
1101 * coding.c (code_convert_region_unwind): GCPRO arg.
1102
3b006f5b
JD
11032005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1104
57134802
JD
1105 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
1106 i.e. dy is offset from top of frame instead of bottom.
1107
1108 * macfns.c (compute_tip_xy): Ditto.
1109
1110 * w32fns.c (compute_tip_xy): Ditto.
1111
3b006f5b
JD
1112 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
1113 (xg_get_image_for_pixmap, xg_create_frame_widgets)
1114 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
1115
1116 * xmenu.c (menubar_selection_callback): Do nothing if the callback
1117 is for an unselected radio menu item.
1118
2cb33a98
RS
11192005-12-11 Richard M. Stallman <rms@gnu.org>
1120
1121 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
1122
1123 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
1124
1125 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
1126 (Flookup_key): Doc fix.
1127 (syms_of_keymap) <function-key-map>: Doc fix.
1128
1129 * fns.c (Frequire): Treat evaluating from a source file
1130 like loading the file.
1131
1132 * floatfns.c (Flog): Doc fix.
1133
1134 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
1135 when we change the buffer.
1136
d7d1f75e
JL
11372005-12-11 Juri Linkov <juri@jurta.org>
1138
1139 * minibuf.c (display_completion_list_1):
1140 Call `minibuffer_completion_contents' instead of using `nil' as
1141 second arg of `Fdisplay_completion_list'.
1142 (keys_of_minibuf): Unbind SPC in
1143 Vminibuffer_local_filename_completion_map (see also related
1144 change on 2005-12-06).
1145
ac8fcf0f
YM
11462005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1147
1148 * emacs.c (main) [MAC_OS8]: Undo previous change.
1149
1150 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
1151 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
1152
4b3eb407
YM
11532005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1154
1155 * Makefile.in (macselect.o): Depend on keymap.h.
1156
1157 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
1158 syms_of_macselect.
1159
1160 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
1161 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
1162
1163 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
1164 (syms_of_keyboard) [MAC_OS]: Initialize it.
1165 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
1166
1167 * mac.c (Qundecoded_file_name): New variable.
1168 (syms_of_mac): Initialize it.
1169 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
a425bd03 1170 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
4b3eb407
YM
1171 (Fmac_coerce_ae_data): New defun.
1172 (syms_of_mac): Defsubr it.
1173
1174 * macselect.c: Include keymap.h.
1175 (mac_ready_for_apple_events): New variable.
1176 (Vmac_apple_event_map, Qmac_apple_event_class)
1177 (Qmac_apple_event_id): New variables.
1178 (syms_of_macselect): Initialize them.
1179 (Qundefined, mac_store_apple_event): Add externs.
1180 (struct apple_event_binding): New struct.
1181 (find_event_binding_fun, find_event_binding)
1182 (mac_find_apple_event_spec, defer_apple_events)
1183 (mac_handle_apple_event, init_apple_event_handler)
1184 (copy_scrap_flavor_data): New functions.
1185 (Fmac_process_deferred_apple_events): New defun.
1186 (syms_of_macselect): Defsubr it.
1187 (mac_store_services_event): Fix extern.
1188 (mac_handle_service_event): Don't allocate Lisp objects during
1189 asynchronous input processing. Use mac_store_services_event
1190 instead of mac_store_application_menu_event.
1191
1192 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
1193 (Qpreferences): Remove variables.
1194 (syms_of_macterm) : Don't initialize them.
1195 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
1196 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
1197 (init_required_apple_events, do_ae_open_application)
1198 (do_ae_print_documents, do_ae_open_documents)
1199 (do_ae_quit_application): Remove functions and prototypes.
1200 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
1201 (mac_find_apple_event_spec): Add externs.
1202 (mac_store_application_menu_event): Remove function.
1203 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
1204 (mac_handle_command_event): Create Apple event from Carbon event.
1205 Use mac_store_apple_event instead of mac_store_application_menu_event.
1206 [MAC_OSX] (mac_store_services_event): Likewise.
1207 (struct SelectionRange, SelectionRange): Remove struct and typedef.
1208 [MAC_OS8] (main): Call init_apple_event_handler instead of
1209 init_required_apple_events.
1210 (mac_initialize) [MAC_OSX]: Likewise.
e7b394e1
SM
1211 [!USE_CARBON_EVENTS] (mac_wait_next_event):
1212 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
4b3eb407 1213
e7b394e1
SM
1214 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
1215 Add externs.
4b3eb407
YM
1216 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
1217 (Fmac_get_preference): Add EXFUN.
1218
1219 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
1220 event.
1221
e358e052
RS
12222005-12-09 Richard M. Stallman <rms@gnu.org>
1223
1224 * xfns.c (Fx_create_frame): Reinstate previous change.
1225
9ea74bfb
EZ
12262005-12-09 Eli Zaretskii <eliz@gnu.org>
1227
1228 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
1229 GDB to the abort dialog.
1230
9dd28cae 12312005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
84fdb82c
KS
1232
1233 * indent.c (Fvertical_motion): Force move if starting on
1234 stretch glyph.
1235
2fda6977
RS
12362005-12-08 Richard M. Stallman <rms@gnu.org>
1237
2663a204
RS
1238 * lread.c (read_escape) <\s>: Don't treat strings specially.
1239
2fda6977
RS
1240 * xfns.c (Fx_create_frame): Comment out previous change.
1241
225c13a5
KL
12422005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1243
1244 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
1245 when needed.
1246
da8ec671
SM
12472005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
1248
1249 * minibuf.c (keys_of_minibuf): Just unbind SPC in
1250 Vminibuffer_local_filename_completion_map rather than forcing it
1251 explicitly to the same binding as the global map.
1252
88fde92a
KR
12532005-12-06 Ken Raeburn <raeburn@gnu.org>
1254
e7b394e1 1255 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
88fde92a 1256 * bytecode.c (Fbyte_code): Likewise.
e7b394e1 1257 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
88fde92a
KR
1258 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
1259 * undo.c (truncate_undo_list): Likewise.
1260
fa0d4d0c
RS
12612005-12-05 Richard M. Stallman <rms@gnu.org>
1262
1263 * window.c (enlarge_window): Eliminate arg preserve_before.
1264 Assume it is 0. All callers changed.
1265 (Fenlarge_window, Fshrink_window): Likewise.
1266
5a98616e
EZ
12672005-12-02 Eli Zaretskii <eliz@gnu.org>
1268
1269 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
1270 fit below.
1271
1dbacb90
JD
12722005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1273
1274 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
1275
1276 * xfns.c (x_real_positions): int ign => unsigned int.
1277 (xg_set_icon_from_xpm_data): Remove unused variable err.
1278 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
1279 to remove compiler warning.
1280 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
1281
0a79da1b
EZ
12822005-12-02 David Reitter <david.reitter@gmail.com>
1283
1284 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
1285 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
1286 and Vminibuffer_local_must_match_filename_map keymaps.
1287 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
1288
1289 * keymap.c (Vminibuffer_local_filename_completion_map)
1290 (Vminibuffer_local_must_match_filename_map): New variables.
1291 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
1292 parent to be Vminibuffer_local_completion_map and
1293 Vminibuffer_local_must_match_map, respectively.
1294
1295 * commands.h (Vminibuffer_local_filename_completion_map)
1296 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
1297
e67a1dea
SM
12982005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
1299
1300 * window.c (Fset_window_configuration): Don't accidentally copy the
1301 window-point of one window to another.
1302
6ad0f04d
KL
13032005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1304
7854b2a3 1305 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
6ad0f04d 1306
4269a2fd
KS
13072005-11-30 Kim F. Storm <storm@cua.dk>
1308
1309 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
1310 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
1311 passing it to `emacs_write'.
1312
96013ba9
SM
13132005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
1314
1315 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
1316
161ef3be
RS
13172005-11-27 Richard M. Stallman <rms@gnu.org>
1318
1319 * window.c (adjust_window_trailing_edge): New function.
1320 (Fadjust_window_trailing_edge): New function.
96013ba9 1321 (syms_of_window): Defsubr it.
161ef3be
RS
1322 (window_deletion_count): New variable.
1323 (delete_window): Update window_deletion_count.
1324
02b1a164
EZ
13252005-11-26 Eli Zaretskii <eliz@gnu.org>
1326
1327 * minibuf.c (syms_of_minibuf): Mention the extension of
1328 `completion-auto-help's meaning by complete.el.
1329
07908aec
EZ
13302005-11-26 Henrik Enberg <henrik.enberg@telia.com>
1331
96013ba9 1332 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
07908aec
EZ
1333 Handle :inherit property as a lisp expression.
1334
b9c7cbf9
YM
13352005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1336
1337 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
1338 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
1339 Qsuper, and Qmodifier_value.
1340 (Vmac_control_modifier, Vmac_option_modifier)
1341 (Vmac_command_modifier, Vmac_function_modifier)
1342 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
1343 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
1344 (Vmac_charset_info_alist): Doc fixes.
1345
2c012c41
YM
13462005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1347
1348 * emacs.c (main) [MAC_OSX]: Change working directory to home
1349 directory if `-psn_*' option is specified.
1350
1351 * mac.c (DECODE_UTF_8): Remove macro.
1352 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
1353 created from cfstring_to_lisp.
1354 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
1355 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
1356
1357 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
1358 Add prototype.
1359
88fde92a 13602005-11-21 Ken Raeburn <raeburn@gnu.org>
d7c0be75
KR
1361
1362 * keymap.c (shadow_lookup): Use make_number to pass a number to
1363 Fsubstring.
1364
17c1971a
JL
13652005-11-21 Juri Linkov <juri@jurta.org>
1366
1367 * puresize.h (BASE_PURESIZE): Increment to 1180000.
1368
0268cef3
CY
13692005-11-20 Chong Yidong <cyd@stupidchicken.com>
1370
96013ba9
SM
1371 * xfaces.c (Finternal_set_lisp_face_attribute):
1372 Use :ignore-defface for new frame defaults when `unspecified' is
0268cef3
CY
1373 supplied.
1374 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
67d23e01
CY
1375 (merge_face_vectors): Don't do :ignore-defface overwriting here.
1376 (Finternal_merge_in_global_face): Do it here.
0268cef3 1377
dd949173
JL
13782005-11-20 Juri Linkov <juri@jurta.org>
1379
1380 * charset.c (invalid_character): Use Lisp-readable syntax
1381 for octal and hex. Reorder decimal, octal and hex values.
1382
76986433
NR
13832005-11-20 Nick Roberts <nickrob@snap.net.nz>
1384
1385 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
1386 this type is recognised when debugging.
1387
603add2d
AS
13882005-11-19 Andreas Schwab <schwab@suse.de>
1389
1390 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
1391 Lisp_Cons and Lisp_Float.
1392
125ce9ec
YM
13932005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1394
1395 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
1396 New variable.
96013ba9 1397 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
125ce9ec
YM
1398 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
1399 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
1400 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
1401
2ff10663
CY
14022005-11-17 Chong Yidong <cyd@stupidchicken.com>
1403
96013ba9 1404 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
fe45ad15 1405
2ff10663
CY
1406 * xfaces.c (Qignore_defface): New variable.
1407 (syms_of_xfaces): Provide `:ignore-defface'.
1408 (IGNORE_DEFFACE_P): New macro.
05338727
CY
1409 (check_lface_attrs, lface_fully_specified_p)
1410 (Finternal_set_lisp_face_attribute)
96013ba9
SM
1411 (Fface_attribute_relative_p, Fmerge_face_attribute):
1412 Handle Qignore_defface as a possible value.
2ff10663
CY
1413 (merge_face_vectors): The merged face is `unspecified' if the
1414 mergee specifies `:ignore-defface'.
1415
c01f0ed3
SM
14162005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
1417
1418 * lread.c (readevalloop): Add missing GCPROs.
1419
786a43d6
CY
14202005-11-16 Chong Yidong <cyd@stupidchicken.com>
1421
9f7b984b
CY
1422 * xfns.c (xg_set_icon_from_xpm_data): New function.
1423
c01f0ed3
SM
1424 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
1425 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
786a43d6
CY
1426
1427 * xterm.c (x_bitmap_icon): Use the xpm if available.
1428
1429 * image.c (x_create_bitmap_from_xpm_data): New function.
54188d8f 1430 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
786a43d6 1431
8ab84823
LT
14322005-11-15 Luc Teirlinck <teirllm@auburn.edu>
1433
1434 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
1435
3671718b
NR
14362005-11-16 Nick Roberts <nickrob@snap.net.nz>
1437
1438 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
1439
28a099a4
AS
14402005-11-15 Andreas Schwab <schwab@suse.de>
1441
1442 * lisp.h (struct Lisp_Cons): Make cdr a union.
1443 (XCDR_AS_LVALUE): Adjust.
1444 (struct Lisp_Float): Make data a union.
1445 (XFLOAT_DATA): Adjust.
1446
1447 * alloc.c (free_float): Make free list chaining aliasing-safe.
1448 (make_float): Likewise.
1449 (free_cons): Likewise.
1450 (Fcons): Likewise.
1451 (check_cons_list): Likewise.
1452 (Fmake_symbol): Likewise.
1453 (allocate_misc): Likewise.
1454 (free_misc): Likewise.
1455 (gc_sweep): Likewise.
1456
308a6607
YM
14572005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1458
fc09d07f
YM
1459 * mac.c (HASHKEY_QUERY_CACHE): New define.
1460 (xrm_create_database, xrm_q_put_resource): Empty query cache.
1461 (xrm_get_resource): Use query cache.
1462
308a6607
YM
1463 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
1464 inhibit_window_system is set.
1465
29b585db
YM
14662005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1467
1468 * macgui.h (USE_CG_TEXT_DRAWING): New define.
1469 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
1470 and cg_glyphs.
1471
1472 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
1473 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
1474 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
1475 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
1476 not used and font substitution never occurs for ASCII and Latin-1
1477 characters.
1478 (XLoadQueryFont): Maximum and minimum metrics are now those among
1479 ASCII characters.
1480 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
1481 height adjustments for Courier, Helvetica, and Times.
1482
1483 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
1484
9dd28cae 14852005-11-11 David Reitter <david.reitter@gmail.com>
b02e3f7b 1486
dff79d04
ST
1487 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
1488 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
1489 Vmac_control_modifier / mac-control-modifier,
1490 Vmac_option_modifier / mac-option-modifier,
1491 Vmac_command_modifier / mac-command-modifier.
1492 (mac_to_emacs_modifiers): Use the new style modifier
c01f0ed3
SM
1493 variables. Return UInt32 (modifiers are longs now.)
1494 (backtranslate_modified_keycode): New function (refactoring).
1495 (XTread_socket): Use new modifier variables and refactored function.
1496 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
1497 no dedicated meta key. Not in use anyway.)
b02e3f7b
ST
1498 (convert_fn_keycode): Map Fn-keys to their original keycode
1499 using a table (english keyboard only).
b02e3f7b 1500
6a77a9f5
KS
15012005-11-11 Kim F. Storm <storm@cua.dk>
1502
ab4d879e
KS
1503 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
1504 Add post hook to "backtrace" to always dump lisp call stack to
1505 increase chance of people sending it to us when reporting bugs.
1506
8c41220c
KS
1507 * doc.c (Fsubstitute_command_keys): Doc fix.
1508
6a77a9f5
KS
1509 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
1510
1511 * xdisp.c (handle_stop): Skip overlay string handling if
1512 ignore_overlay_strings_at_pos_p is set.
1513 (set_iterator_to_next): At end of display vector, set
1514 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
1515 string, so we skip those overlay strings at current pos.
1516
9dd28cae 15172005-11-10 Lars Hansen <larsh@soem.dk>
19a9c3b7
LH
1518
1519 * fileio.c (file-regular-p): Doc fix.
1520
932954d1
KS
15212005-11-10 Kim F. Storm <storm@cua.dk>
1522
1523 * alloc.c (valid_lisp_object_p): New function to validate that
1524 an object is really a valid Lisp_Object.
1525
1526 * lisp.h (valid_lisp_object_p): Add prototype.
1527
1528 * print.c (safe_debug_print): New function to be called from gdb
1529 to print Lisp objects; use valid_lisp_object_p to avoid crashing
1530 if user tries to print something which is not a Lisp object.
1531
1532 * .gdbinit (pp, pp1): Use safe_debug_print.
1533 (pv, pv1): New commands to print value of a lisp variable.
1534
78e5988d
NR
15352005-11-10 Nick Roberts <nickrob@snap.net.nz>
1536
1537 * .gdbinit (pp1): New user-defined function.
1538
f56a5bd8
YM
15392005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1540
1541 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
1542
1543 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
1544 related variables for dumped executable.
1545
1546 * unexmacosx.c (unexec_write_zero): New function.
1547 (copy_data_segment): Clear uninitialized local variables in
1548 statically linked libraries.
1549
1550 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
1551
58b6f884
JL
15522005-11-09 Juri Linkov <juri@jurta.org>
1553
1554 * keymap.c (shadow_lookup): If Flookup_key returns a number,
1555 call it again with a sub-key-sequence, and if its return value
1556 is non-nil (sub-key is bound), return nil.
1557
1f5f957a
KS
15582005-11-08 Kim F. Storm <storm@cua.dk>
1559
1560 * process.c (Fsignal_process): Recognize signal names with and
1561 without SIG prefix, e.g. SIGHUP and HUP.
1562
1563 * search.c (search_buffer): No need to initialize base_pat.
1564
20b69789
SM
15652005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
1566
1567 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
1568 Don't abuse the `mini' arg. Use the `obj' arg instead.
1569
7353f169
KS
15702005-11-04 Kim F. Storm <storm@cua.dk>
1571
1572 * xdisp.c (show_mouse_face): Clear mouse face to eol.
1573
1f7b1131
DN
15742005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
1575
1576 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
1577 font-lock.elc and jit-lock.elc.
1578
e082564e
RS
15792005-11-03 Richard M. Stallman <rms@gnu.org>
1580
1581 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
1582 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
1583 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
1584
1585 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
1586
1587 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
1588
49e99345
SM
15892005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1590
1591 * window.c (Fdisplay_buffer): Fix last change to not use
1592 a dedicated window.
1593
8f15921b
KS
15942005-11-01 Kim F. Storm <storm@cua.dk>
1595
1596 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
1597 Instead, rotate the bottom angle bitmap 180 degrees to indicate
1598 that the bottom row does not end in a newline.
1599
b4235a80
AS
16002005-11-01 Andreas Schwab <schwab@suse.de>
1601
1602 * unexelf.c (unexec): Handle .plt section in BSS segment.
1603
3cbb13c8
SM
16042005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
1605
e5f64be2
SM
1606 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
1607
3cbb13c8
SM
1608 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
1609 determine whether to consider dedicated windows as well.
1610 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
1611 (Fdisplay_buffer): Do consider dedicated windows in those cases where
1612 we will split the window rather than reuse it.
1613 Don't try to use windows on other displays.
1614
c94f08ff
DN
16152005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
1616
1617 * puresize.h (BASE_PURESIZE): Increment to 1170000.
1618
edf84ae9
RF
16192005-10-31 Romain Francoise <romain@orebokech.com>
1620
1621 * macfns.c: Update copyright year.
1622 * m/gould.h: Likewise.
1623
6f07f649
KS
16242005-10-30 Kim F. Storm <storm@cua.dk>
1625
1626 * xdisp.c (display_line): Restore it->current_x and call
1627 extend_face_to_end_of_line when last glyph doesn't fit on line.
9dd28cae 1628 (set_glyph_string_background_width): Remove specific tests here
6f07f649
KS
1629 to see if face background should extend to end of line. Simplify.
1630
4d74a5fc
RS
16312005-10-30 Richard M. Stallman <rms@gnu.org>
1632
1633 * alloc.c (BYTES_USED): Use uordblks, not arena.
1634 (bytes_used_when_reconsidered): New variable.
1635 (emacs_blocked_free): Set that.
1636
bccfb310
CY
16372005-10-29 Chong Yidong <cyd@stupidchicken.com>
1638
1639 * alloc.c (emacs_blocked_free): Fix typo.
1640
f5b8d5f2
RS
16412005-10-29 Richard M. Stallman <rms@gnu.org>
1642
4d74a5fc
RS
1643 * data.c (Fmake_variable_frame_local): Doc fix.
1644
f5b8d5f2
RS
1645 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
1646 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
1647 controls whether to save and restore mode_line_proptrans_alist.
1648 Callers changed.
1649 (unwind_format_mode_line): Work with that feature.
1650 (redisplay_internal): Don't call prepare_menu_bars if memory full.
1651 (move_elt_to_front): New function.
1652 (display_mode_element): Use move_elt_to_front.
1653 Don't bother munging text props on a null string.
1654 Delete obsolete elts from mode_line_proptrans_alist.
1655 (decode_mode_spec): Test Vmemory_full, not spare_memory.
685abb98 1656 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
f5b8d5f2 1657
49e99345
SM
1658 * lisp.h (memory_full_cons_threshold): Declare.
1659 (internal_lisp_condition_case): Declare.
f5b8d5f2
RS
1660
1661 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
1662 (Fmemory_full_p): Function deleted.
1663 (syms_of_alloc): Don't defsubr it.
1664 (memory_full_cons_threshold): New variable.
1665 (spare_memory): Now a vector of 7 elts.
1666 (buffer_memory_full): Don't set Vmemory_full here.
1667 (xfree): Don't try to refill here.
1668 (emacs_blocked_free): Record BYTES_USED in local var.
1669 (memory_full): Now free all the slots in spare_memory.
1670 (refill_memory_reserve): Allocate each slot in spare_memory.
1671 (init_alloc_once): Call refill_memory_reserve.
1672
1673 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
1674
1675 * eval.c (internal_lisp_condition_case): New function.
1676 (Fcondition_case): Use internal_lisp_condition_case.
1677 (Feval): Test Vmemory_full and memory_full_cons_threshold.
1678 (Ffuncall): Likewise.
1679
1680 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
1681
c390e28c
SM
16822005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
1683
1684 * syntax.c (Fparse_partial_sexp): Fix docstring.
1685
ab5d87b3
RF
16862005-10-28 Romain Francoise <romain@orebokech.com>
1687
c390e28c 1688 * puresize.h (BASE_PURESIZE): Increment to 1130000.
ab5d87b3 1689
107fb6c9
RS
16902005-10-28 Richard M. Stallman <rms@gnu.org>
1691
1692 * xfns.c (syms_of_xfns): Provide `x' as feature.
1693
1694 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
1695
1696 * editfns.c (Fformat): Don't include string padding
1697 between info[n].start and info[n].end.
1698
1699 * alloc.c (spare_memory): No longer static.
1700 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
1701
c390e28c 1702 * puresize.h (BASE_PURESIZE): Increment to 1120000.
107fb6c9 1703
f351b58b
CY
17042005-10-27 Chong Yidong <cyd@stupidchicken.com>
1705
c390e28c 1706 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
437610c5 1707
f351b58b
CY
1708 * fringe.c (update_window_fringes): Handle case where buffer ends
1709 with a newline.
1710
581e7427
KH
17112005-10-27 Kenichi Handa <handa@m17n.org>
1712
1713 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
1714
17152005-10-24 Kenichi Handa <handa@m17n.org>
1716
1717 * charset.h (charset_mule_unicode_0100_24ff)
1718 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
1719 Extern them.
1720
1721 * charset.c (charset_mule_unicode_0100_24ff)
1722 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
1723 New variables.
1724 (Fsetup_special_charsets): Initialize them.
1725
1726 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
1727 supported Unicode characters.
1728
813fa8a8
JR
17292005-10-25 Jason Rumney <jasonr@gnu.org>
1730
1731 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
1732
05f7d868
YM
17332005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1734
1735 * image.c [MAC_OS] (image_load_qt_1): Check image size.
1736 Use GraphicsImportGetImageDescription instead of
1737 GraphicsImportGetNaturalBounds.
1738 [MAC_OSX] (image_load_quartz2d): Check image size.
1739 [MAC_OS] (xpm_load_image): Likewise.
1740
1741 * macterm.c (last_mouse_glyph_frame): New var.
1742 (note_mouse_movement): Say mouse moved if current frame differs
1743 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
1744 (XTmouse_position): Set last_mouse_glyph_frame.
1745 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
29b585db 1746 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
05f7d868
YM
1747 Use EndianU16_BtoN.
1748 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
1749 (x_per_char_metric, XLoadQueryFont)
1750 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
1751 glyph bounds.
1752 (mac_to_x_fontname, mac_do_list_fonts)
1753 (mac_initialize_display_info): Change screen resolutions to 72dpi.
1754
128e729d
MY
17552005-10-25 Masatake YAMATO <jet@gyve.org>
1756
1757 * minibuf.c (Fdisplay_completion_list): Small doc fix.
1758
59017afb
KS
17592005-10-24 Kim F. Storm <storm@cua.dk>
1760
94717db1
KS
1761 * xterm.c: Undo 2005-10-23 change.
1762 (last_mouse_glyph_frame): New var.
1763 (note_mouse_movement): Say mouse moved if current frame differs
1764 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
1765 (XTmouse_position): Set last_mouse_glyph_frame.
1766 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
1767 last_mouse_glyph] on mouse up/down event.
1768
59017afb
KS
1769 * editfns.c (Fcompare_buffer_substrings): Fix last change.
1770
7c5ba0d2
SM
17712005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1772
1773 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
1774
a4b0e228
JD
17752005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1776
1777 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
1778 so tool tips don't interfere with press on tool bar button.
1779
f6a18aa2
RS
17802005-10-23 Richard M. Stallman <rms@gnu.org>
1781
1782 * casetab.c (Fset_case_table): Doc fix.
1783
1784 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
1785 (readevalloop): Compute ENTIRE properly.
1786 (syms_of_lread) <load-history>: Doc fix.
1787
45158e77
RS
17882005-10-21 Richard M. Stallman <rms@gnu.org>
1789
1790 * lread.c (Fload): Simplify gcpro structure.
1791 Gcpro FOUND as well as FILE, but not EFOUND.
1792 Unless preloading, record FOUND instead of FILE in Vload_history.
1793 Rename repeat local FILE to MSG_FILE.
1794 (syms_of_lread) <load-history>: Doc fix.
1795
dfa1cd4d
KH
17962005-10-21 Kenichi Handa <handa@m17n.org>
1797
96664fc0 1798 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
dfa1cd4d 1799
1064a9ea
KS
18002005-10-20 Kim F. Storm <storm@cua.dk>
1801
1802 * buffer.c (clone_per_buffer_values): Remove unused var tem.
1803 (init_buffer): Remove unused vars dotstat, pwdstat.
1804
1805 * ccl.c (check_ccl_update): Remove unused var vp.
1806
1807 * fileio.c (auto_save_error): Call SAFE_FREE.
1808
1809 * fns.c (Fchar_table_range): Remove unused var i.
1810
1811 * minibuf.c (display_completion_list_1): New wrapper function
1812 for Fdisplay_completion_list.
1813 (Fminibuffer_completion_help): Use it.
1814
1815 * term.c (encode_terminal_code): Remove unused var src_start.
1816
1817 * window.c (Fwindow_tree): Remove unused var alist.
1818
1819 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
1820
ce13796f
EZ
18212005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
1822
20b69789 1823 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
ce13796f 1824
ad9c16d3
EZ
18252005-10-20 Olli Savia <ops@iki.fi> (tiny change)
1826
1827 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
1828
26e9d2cf
AS
18292005-10-20 Andreas Schwab <schwab@suse.de>
1830
1831 * minibuf.c (Fdisplay_completion_list): Doc fix.
1832
e50165ec
KS
18332005-10-19 Kim F. Storm <storm@cua.dk>
1834
1835 * image.c (check_image_size): Handle integer Vmax_image_size value
1836 directly as max pixel value. Use default frame size for null frame.
1837 (syms_of_image) <max-image-size>: Describe integer value.
1838
d7b94c98
RF
18392005-10-19 Romain Francoise <romain@orebokech.com>
1840
1841 * emacs.c (main): Update copyright year.
1842
f1f25b99
CY
18432005-10-18 Chong Yidong <cyd@stupidchicken.com>
1844
1845 * image.c (Vmax_image_size): New variable.
1846 (check_image_size): New function.
1847 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
1848 (gif_load, gs_load): Use it.
1849 (lookup_image): Try loading again if previous load failed.
1850 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
1851 to display in, NULL if none.
1852 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
1853 argument.
1854
f42d19a2
RS
18552005-10-18 Richard M. Stallman <rms@gnu.org>
1856
1857 * search.c (Fstring_match): Doc fix.
1858
bcbdafce
YM
18592005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1860
1861 * macterm.c (note_mouse_movement): Use PtInRect.
1862 (XTread_socket): Also ignore mouse motion just before a button
1863 release event. Don't process button release event when mouse is
1864 not grabbed.
1865
f5fab556
MY
18662005-10-16 Masatake YAMATO <jet@gyve.org>
1867
1868 * minibuf.c (Fdisplay_completion_list): Add new optional
e5f64be2 1869 argument COMMON_SUBSTRING. Bind `completion-common-substring'
f5fab556
MY
1870 to the optional argument during running `completion-setup-hook'.
1871
2ef1363e
YM
18722005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1873
1874 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
1875 Allow nil as argument.
1876 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
1877 for encoding arguments as UTF-16 in native byte order, no BOM.
1878
1879 * macfns.c (Fx_create_frame): Add debugging code.
1880 (Fx_show_tip): Set frame pixel width and height.
1881
1882 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
1883 (FRAME_NORMAL_GC): New macro.
1884 (mac_draw_line, mac_clear_area, mac_clear_window)
1885 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
1886 (mac_draw_image_string, mac_draw_image_string_16): Rename from
1887 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
1888 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
1889 All uses changed.
1890 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
1891 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
1892 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
1893 (mac_draw_string_16, mac_draw_image_string)
1894 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
1895 (mac_scroll_area): Drawing functions now take frame as destination.
1896 All uses changed.
1897 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
1898 (x_draw_fringe_bitmap): Set clipping area in face->gc.
1899
1900 * macterm.h (mac_clear_area): Add extern.
1901
fc5c7550
YM
19022005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1903
1904 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
1905 changes for xterm.c.
1906
1907 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
1908
fed91c38
KH
19092005-10-14 Kenichi Handa <handa@m17n.org>
1910
1911 * search.c (search_buffer): Give up BM search on case-fold-search
1912 if one of a target character has a case-equivalence of different
1913 charset even if that target charcter is an ASCII.
1914
1915 * casefiddle.c (casify_object): Fix for the case that case
1916 conversion change the byte length.
1917
0ea1a8af
KS
19182005-10-14 Kim F. Storm <storm@cua.dk>
1919
1920 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
1921 (handle_one_xevent): Only clear help_echo_string; restore it if
1922 note_mouse_movement didn't record any mouse movement.
1923
1924 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
1925 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
1926
1927 * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
1928 (Fposn_at_x_y): Fix calculation of x coordinate.
1929 (Fposn_at_point): Return nil if point is hscrolled out of view.
1930
6e5b2385
AS
19312005-10-13 Andreas Schwab <schwab@suse.de>
1932
1933 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
1934 non-interactive mode.
1935
6de0e1a2
YM
19362005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1937
1938 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
1939
78f3b91f
KS
19402005-10-12 Kim F. Storm <storm@cua.dk>
1941
1942 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
1943
b639c9be
RF
19442005-10-12 Romain Francoise <romain@orebokech.com>
1945
1946 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
1947
76d8f04c
YM
19482005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1949
1950 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
1951 get end of text rows. Obtain header-line/mode-line rows directly.
1952
96013ba9
SM
1953 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
1954 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
621036f9 1955
d76432f5
KS
19562005-10-12 Kim F. Storm <storm@cua.dk>
1957
7a127784
KS
1958 * xdisp.c (remember_mouse_glyph): New generic version based on
1959 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
1960 properly handle all different window areas.
1961
1962 * dispextern.h (remember_mouse_glyph): Add prototype.
1963
1964 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
1965 (note_mouse_movement, XTmouse_position): Use generic
1966 remember_mouse_glyph, add last_mouse_glyph arg.
1967
1968 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
1969 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
1970 (note_mouse_movement, w32_mouse_position): Use generic
1971 remember_mouse_glyph, add last_mouse_glyph arg.
1972
1973 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
1974 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
1975 (XTmouse_position): Adapt to use generic remember_mouse_glyph
1976 instead of pixel_to_glyph_coords.
1977
d76432f5
KS
1978 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
1979 Fix x position for ON_TEXT when left margin width > 0.
1980
55a4ac3e
KS
19812005-10-11 Kim F. Storm <storm@cua.dk>
1982
d76432f5 1983 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
55a4ac3e
KS
1984
1985 * keyboard.c (make_lispy_position): Fix buffer calculations for
1986 mouse click or movement in right fringe and the margins.
1987
2d4713aa
JB
19882005-10-11 Juanma Barranquero <lekktu@gmail.com>
1989
1990 * image.c (fn_jpeg_stdio_src): Don't define it.
1991 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
1992 (our_common_init_source): Rename from `our_init_source'.
1993 (our_common_term_source): Rename from `our_term_source'.
1994 (our_memory_fill_input_buffer): Rename from
1995 `our_fill_input_buffer'.
1996 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
1997 (jpeg_memory_src): Use the new names.
1998 (struct jpeg_stdio_mgr): New struct.
1999 (JPEG_STDIO_BUFFER_SIZE): New constant.
2000 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
2001 (jpeg_file_src): New functions.
2002 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
2003
71b7a47f
YM
20042005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2005
2006 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
2007 (fm_font_family_alist): New variable.
2008 (syms_of_macterm): Initialize and staticpro it.
2009 (decode_mac_font_name): Replace '-' in family name with '_' if it
2010 occurs just once. Lower family name.
2011 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
2012 All uses changed. Remove argument MF and code conversion for it.
2013 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
2014 to CHARSET. Parse font size. Lower family name. Return integer
2015 value for status of parsing.
2016 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
2017 Don't use Fdowncase because family name is already lowered by
2018 decode_mac_font_name.
96013ba9
SM
2019 (init_font_name_table): Always call decode_mac_font_name.
2020 Add pair of family name and its reference to fm_font_family_alist.
71b7a47f
YM
2021 (mac_clear_font_name_table): Clear fm_font_family_alist.
2022 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
2023 Lookup fm_font_family_alist to get font family reference.
2024 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
2025 name is already lowered by parse_x_font_name.
2026
74051a92
KS
20272005-10-11 Kim F. Storm <storm@cua.dk>
2028
31ab1f05
KS
2029 * xterm.c (glyph_rect): Return 0 if position is outside text area.
2030
74051a92
KS
2031 * keyboard.c (make_lispy_position): Fix buffer position calculation for
2032 mouse click or movement in fringe.
2033
9b909870
JR
20342005-10-10 Jason Rumney <jasonr@gnu.org>
2035
2036 * xterm.c (remember_mouse_glyph): New function.
58af5591 2037 (note_mouse_movement): Use it to remember the current glyph if changed.
9b909870 2038 (XTmouse_position): Fix calculation of fake glyph under mouse.
58af5591 2039 Move code to calculate glyph under mouse into remember_mouse_glyph.
9b909870 2040
f9e36a6d
JD
20412005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2042
58af5591 2043 * emacs.c (USAGE3, standard_args): -nb => -nbi.
f9e36a6d 2044
04bc7945
JB
20452005-10-10 Juanma Barranquero <lekktu@gmail.com>
2046
2047 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
2048 (next_frame, prev_frame, set_term_frame_name): Make static.
2049
2050 * window.c (Fwindow_tree): Fix spelling.
2051
41791a20
RF
20522005-10-09 Romain Francoise <romain@orebokech.com>
2053
2054 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
2055
e313fc07
JD
20562005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2057
58af5591
KS
2058 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
2059 Add options -nb, --no-bitmap-icon.
e313fc07
JD
2060
2061 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
2062
61e62f5f
YM
20632005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2064
2065 * macgui.h (MAX_CLIP_RECTS): New define.
2066 (struct _XGC): New member clip_region.
2067 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
2068 clip_rects.
2069
2070 * macterm.c (GC_CLIP_REGION): New macro.
2071 (saved_port_clip_region): New variable.
2072 (mac_begin_clip, mac_end_clip): New functions.
2073 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
2074 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
2075 (mac_copy_area_with_mask, mac_scroll_area): Use them.
2076 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
2077 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
2078 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
2079 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
2080 rectangles stored in gc.
71b7a47f 2081 (XFreeGC): Dispose of clipping region.
61e62f5f
YM
2082 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
2083 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
2084 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
2085 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
2086 (x_draw_bar_cursor): Use them.
2087 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
2088 get multiple clipping rectangles.
2089
2090 * macterm.h (mac_term_init): Add types to extern.
2091 (struct mac_output): Remove members mWP and pending_menu_activation.
f7270128 2092 Put members scroll_bar_foreground_pixel and
61e62f5f
YM
2093 scroll_bar_background_pixel in #if 0.
2094 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
2095
2096 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
2ef1363e 2097 Add debugging code.
61e62f5f 2098
ef1b4c9e
KS
20992005-10-08 Kim F. Storm <storm@cua.dk>
2100
2101 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
2102
f1010549
KS
21032005-10-07 Kim F. Storm <storm@cua.dk>
2104
2105 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
2106 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
2107 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
2108
c2ded1b7
YM
21092005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2110
2111 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
2112 to for_overlaps. Now occupy 3 bits.
2113 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
2114 (OVERLAPS_ERASED_CURSOR): New defines.
2115 (struct redisplay_interface): Add new OVERLAPS arg to member
2116 fix_overlapping_area.
2117 (x_fix_overlapping_area): Add new OVERLAPS arg.
2118 (get_glyph_string_clip_rects): Add extern.
2119
96013ba9
SM
2120 * dispnew.c (redraw_overlapping_rows):
2121 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
c2ded1b7
YM
2122
2123 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
2124 for_overlaps.
2125 (get_glyph_string_clip_rects): New function created from
f1010549
KS
2126 get_glyph_string_clip_rect. Set clipping rectangles according to the
2127 value of for_overlaps. Enable to store multiple clipping rectangles.
c2ded1b7
YM
2128 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
2129 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
2130 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
f7270128 2131 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
c2ded1b7 2132 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
f1010549
KS
2133 calculating clipping rectangles later. Call x_fix_overlapping_area
2134 with new OVERLAPS arg to draw only erased cursor area.
f7270128 2135 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
f1010549 2136 to draw overlaps in both preceding and succeeding rows.
c2ded1b7
YM
2137
2138 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
2139 struct glyph_string to for_overlaps.
2140
a19a0003
RS
21412005-10-04 Richard M. Stallman <rms@gnu.org>
2142
2143 * alloc.c (refill_memory_reserve): Conditionalize the body,
2144 not the function's existence.
2145
abc8ce50
KS
21462005-10-04 Kim F. Storm <storm@cua.dk>
2147
2148 * window.c (window_split_tree): New function.
2149 (Fwindow_split_tree): New defun.
2150 (syms_of_window): Defsubr it.
2151
66533b25
YM
21522005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2153
2154 * macterm.c (mac_invert_rectangle): New function.
2155 (XTflash): Use it.
2156
4156359e
SM
21572005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
2158
4e2f601f
SM
2159 * regex.h (re_char): Don't expose it in the interface.
2160 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
2161
2162 * regex.c (re_char): Move it back here.
2163 (re_set_whitespace_regexp): Change the arg's type to not use it.
2164
4156359e
SM
2165 * keyboard.c (make_lispy_event): If point has moved between down and up
2166 event, make it a drag, not a click, to mirror what
2167 mouse-drag-region expects.
2168
eb27c2ca
DN
21692005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
2170
2171 * lisp.h (fatal): Undo previous change.
2172 * term.c (fatal): Undo previous change.
2173
b059f7d0
RS
21742005-10-01 Richard M. Stallman <rms@gnu.org>
2175
2176 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
2177
21a9a7be
KS
21782005-10-01 Kim F. Storm <storm@cua.dk>
2179
2180 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
2181
ddcb7665
YM
21822005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2183
2184 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
2185
2186 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
2ef1363e 2187 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
4156359e
SM
2188 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
2189 Try ATSUI-compatible 12pt Monaco font first.
ddcb7665
YM
2190
2191 * macgui.h (struct _XCharStruct): New member valid_p.
2192 (STORE_XCHARSTRUCT): Set valid_p.
2193 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
2194
2195 * macterm.c (mac_draw_string_common, x_per_char_metric)
2196 (mac_compute_glyph_string_overhangs, init_font_name_table)
2197 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
2198 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
2199 (x_draw_glyph_string_background)
2200 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
2201 XDrawImageString. Always draw background and foreground separately.
2202 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
2203 functions for one-byte chars when using ATSUI-compatible fonts.
2204 (atsu_font_id_hash) [USE_ATSUI]: New variable.
2205 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
2206 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
2207 max_char_or_byte2 more in detail.
2208 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
2209
fa8459a3
DN
22102005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2211
4156359e 2212 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
fa8459a3
DN
2213 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
2214
2215 * unexelf.c (fatal): Fix prototype.
2216
2217 * term.c (fatal): Implement using varargs.
2218
21a9a7be 2219 * regex.c (re_char): Move typedef ...
fa8459a3 2220 * regex.h (re_char): ... here.
4156359e 2221 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
fa8459a3
DN
2222
2223 * emacs.c (malloc_set_state): Fix return type.
2224 (endif): Fix type.
2225
2226 * lisp.h (fatal): Add argument types.
2227
2228 * dispextern.h (fatal): Delete prototype.
2229
9dd28cae 2230 * systime.h (make_time): Prototype moved from ...
fa8459a3
DN
2231 * editfns.c (make_time): ... here.
2232
2233 * editfns.c: Move systime.h include after lisp.h.
21a9a7be
KS
2234 * dired.c:
2235 * xsmfns.c:
fa8459a3 2236 * process.c: Likewise.
21a9a7be 2237
fa8459a3
DN
2238 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
2239 Add parameter types.
2240 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
2241 (emacs_blocked_free): Change definition to match __free_hook.
2242 (emacs_blocked_malloc): Change definition to match __malloc_hook.
4156359e 2243 (emacs_blocked_realloc): Change definition to match __realloc_hook.
fa8459a3 2244
97c3e4cc
RF
22452005-09-30 Romain Francoise <romain@orebokech.com>
2246
2247 * minibuf.c (Fread_buffer): Follow convention for reading from the
2248 minibuffer with a default value. Doc fix.
2249
8ad8c5ce
JL
22502005-09-29 Juri Linkov <juri@jurta.org>
2251
2252 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
2253 Rename argument name `string' to `format-string'.
2254 (Fformat): Doc fix.
2255
64da5759
KS
22562005-09-28 Kim F. Storm <storm@cua.dk>
2257
2258 * image.c (gif_load): Fix size of allocated image buffer
2259 for images where a sub-image may be larger than the image's
2260 total height/width specifications.
2261
eaf92438
YM
22622005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2263
2264 * macgui.h (struct _XCharStruct): Each member now takes short value.
2265
43f15d4a
DN
22662005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
2267
2268 * xfaces.c (lookup_derived_face): Add parameter type.
2269
2270 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
2271
2272 * marker.c (verify_bytepos): Add parameter type.
2273
2274 * process.c (get_operating_system_release): Move prototype ...
2275
2276 * systime.h (get_operating_system_release): ... here.
2277
04bc7945
JB
2278 * xterm.c (handle_one_xevent): Refer to union field to match the
2279 type required by the function definition.
2280 (set_vertical_scroll_bar): Move prototype ...
43f15d4a
DN
2281
2282 * xterm.h: ... here.
2283
2284 * fns.c (internal_equal, seed_random): Fix prototypes.
2285 (internal_equal): Add missing parameter.
2286
c769dcac
RS
22872005-09-25 Richard M. Stallman <rms@gnu.org>
2288
2289 * keyboard.c (update_menu_bindings): Variable deleted.
2290 (syms_of_keyboard): Don't defvar it.
2291 (parse_menu_item): Don't test it.
2292
8dbf19c7
RS
22932005-09-23 Richard M. Stallman <rms@gnu.org>
2294
2295 * editfns.c (Fformat): Explicitly test for end of format string
2296 and don't use `index'.
2297
3480d92b
DN
22982005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
2299
4156359e
SM
2300 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
2301 Define BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
2302
2303 * sysdep.c (get_current_dir_name): Also define if
64da5759 2304 BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
2305
2306 * m/ibmrs6000.h: Test for USG5, not USG5_4.
2307
5db60f31
KS
23082005-09-22 Kim F. Storm <storm@cua.dk>
2309
2310 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
2311 (message2): Fix commentary. Ok to use alloca'ed memory.
2312 Still not ok to use Lisp string data (because of GC).
2313 (set_message): Add comment why GC cannot happen.
2314
7c3d233d
YM
23152005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2316
2317 * macterm.c (xlfdpat_block_match_1): Fix assertion.
2318 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
2319 variants for a scalable font multiple times.
2320
acde1152
YM
23212005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2322
2323 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
2324 Setup slave tty options before forking.
2325
52d166e0
JD
23262005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2327
2328 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
2329 positions have been set for the frame (as is done for frames in
2330 special-display-buffer-names).
2331
12d10bc7
KS
23322005-09-19 Kim F. Storm <storm@cua.dk>
2333
2334 * editfns.c (Fformat): Don't scan past end of format string that
2335 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
2336
9f1cf0e3
AS
23372005-09-18 Andreas Schwab <schwab@suse.de>
2338
2339 * window.h (struct window): Remove height_fixed_p, no longer set.
2340
2341 * window.c (make_window): Don't initialize height_fixed_p.
2342 (window_fixed_size_p): Don't use it.
2343
8a658a52
JPW
23442005-09-18 John Paul Wallington <jpw@pobox.com>
2345
2346 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
2347
be9bb408
YM
23482005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2349
2350 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
2351
2352 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
2353 New variables.
2354 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
2355 file selection.
2356
2357 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
2358
cbf223e1
EZ
23592005-09-17 Eli Zaretskii <eliz@gnu.org>
2360
2361 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
2362 (obj): Use XMENU_OBJ, not a literal xmenu.o.
2363
e3f509dd
RF
23642005-09-16 Romain Francoise <romain@orebokech.com>
2365
8ccd3630 2366 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
e3f509dd 2367
5c4757d3
RS
23682005-09-15 Richard M. Stallman <rms@gnu.org>
2369
2370 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
2371 (display_mode_element): Instead of `lisp_string' and `this',
2372 record `offset' and increment that.
2373 `last_offset' replaces `last'.
2374
2375 * Makefile.in (XMENU_OBJ): Variable deleted.
2376 (obj): Use xmenu.o unconditionally.
2377 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
2378
2379 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
2380
01978521
KS
23812005-09-15 Kim F. Storm <storm@cua.dk>
2382
2383 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
2384 (reseat_at_next_visible_line_start): Likewise (in xassert).
2385
ccf61795
RF
23862005-09-14 Romain Francoise <romain@orebokech.com>
2387
2388 * fileio.c (write_region_inhibit_fsync): New variable.
2389 (Fwrite_region): Use it to skip call to fsync.
2390 (syms_of_fileio): Initialize it.
2391
2b046a72
KH
23922005-09-14 Kenichi Handa <handa@m17n.org>
2393
24a2b282
KH
2394 * coding.c (code_convert_region_unwind): Argument format changed.
2395 (run_pre_post_conversion_on_str): If pre-write-conversion function
2396 changed the current buffer, delete the new buffer.
2397 (run_pre_write_conversin_on_c_str): Likewise.
2398
2b046a72
KH
2399 * fileio.c (Fexpand_file_name): Check multibyteness of
2400 default_directory.
2401
d008f7b7
KH
24022005-09-13 Kenichi Handa <handa@m17n.org>
2403
2404 * composite.c (compose_chars_in_text): Delete it.
2405
2406 * composite.h (compose_chars_in_text): Delete extern.
2407
2ada8ac5
KS
24082005-09-13 Kim F. Storm <storm@cua.dk>
2409
2410 * print.c (print_error_message): Fix last change.
2411
48c60938
KS
24122005-09-12 Kim F. Storm <storm@cua.dk>
2413
0fdbe302
KS
2414 * composite.c (compose_chars_in_text): Fix setup of `pend'.
2415 Unconditionally reload `ptr' and `pend' after eval.
2416
48c60938
KS
2417 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
2418
2419 * print.c (print_error_message): Pass copy of caller name to
2420 message_dolog.
2421
2422 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
2423
5add1986
KH
24242005-09-12 Kenichi Handa <handa@m17n.org>
2425
2426 * xdisp.c (display_mode_element): Be sure to make variables THIS
2427 and LISP_STRING point into a string data of ELT.
2428
18bb66c7
KS
24292005-09-12 Kim F. Storm <storm@cua.dk>
2430
2431 * editfns.c (Ftranslate_region_internal): Reload `tt' after
2432 signal_after_change that may have GC'ed.
2433 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
2434
2435 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
2436 after insert while runs signal_after_change.
2437
2438 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
2439 declaration to where it is used.
2440
2441 * w32.c (check_windows_init_file): Fix allocation of error buffer.
2442
2443 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
2444 (x_set_name_internal): Call x_encode_text with new FREEP arg to
2445 know if xfree is needed instead of guessing.
2446
2447 * xterm.h (x_encode_text): Remove prototype.
2448
945a75f8
JR
24492005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
2450
2451 * w32term.c (x_bitmap_icon): Load small icons too.
2452
156bdb41
RF
24532005-09-10 Romain Francoise <romain@orebokech.com>
2454
2455 * buffer.c (init_buffer): Grow buffer to add directory separator
f9962371 2456 and terminal zero. Fix typos.
156bdb41 2457
67b8391b
EZ
24582005-09-10 Eli Zaretskii <eliz@gnu.org>
2459
a17b5ed1
EZ
2460 * buffer.c (init_buffer): Fix error message for failed call to
2461 get_current_dir_name.
2462 (get_current_dir_name): Remove prototype.
2463
9dd28cae 2464 * xsmfns.c (get_current_dir_name): Remove prototype.
a17b5ed1 2465
9dd28cae 2466 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
96013ba9 2467 Add prototype.
a17b5ed1 2468
ed326e35 2469 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
b04a3120 2470 Don't #undef NULL after including blockinput.h.
ed326e35 2471
67b8391b
EZ
2472 * config.in: Regenerated.
2473
c187839d
EZ
24742005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
2475
2476 Remove the MAXPATHLEN limitations:
2477
1486d036
EZ
2478 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
2479 New function.
c187839d
EZ
2480
2481 * buffer.c (init_buffer): Use it.
2482
2483 * xsmfns.c (smc_save_yourself_CB): Ditto.
2484
ae8a5689
KS
24852005-09-09 Kim F. Storm <storm@cua.dk>
2486
39cac6b3
KS
2487 * doc.c (Fsubstitute_command_keys): Lookup key binding for
2488 commands that are remapped from some other command.
2489
aeb55c44
KS
2490 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
2491 flag in disabled rows below the window.
2492
ae8a5689
KS
2493 * frame.h (struct frame): New member updated_p.
2494
2495 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
2496 member. Remove local `updated' array and associated variables.
2497
821f6dae
KS
24982005-09-07 Kim F. Storm <storm@cua.dk>
2499
6e5395f2
KS
2500 * xdisp.c (handle_display_prop): Respect overlay window property.
2501
821f6dae
KS
2502 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
2503 Fixes crash reported by YAMAMOTO Mitsuharu.
2504
9655b404
YM
25052005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2506
2507 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
2508 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
2509 (xlfdpat_block_match_1, xlfdpat_match): New functions.
2510 (xlfdpat_block_match): New macro.
2511 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
2512 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
2513 (add_font_name_table_entry): Increase font_name_table_size more
2514 rapidly.
2515 (mac_c_string_match): Remove function.
2516 (mac_do_list_fonts): Use XLFD pattern match instead of regular
2517 expression match.
2518
2519 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
2520
d7ea8b71
RS
25212005-09-03 Richard M. Stallman <rms@gnu.org>
2522
2523 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
2524 (move_it_in_display_line_to): Stop after last char on line even
2525 on a windowing terminal, if that's the specified stop position.
2526
2527 * fns.c (Fsort): Doc fix.
2528
2529 * editfns.c (Fpropertize): Don't insist that properties be symbols.
2530
1550ae60
SM
25312005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
2532
2533 * dired.c (directory_files_internal_unwind, directory_files_internal)
2534 (file_name_completion): Use a Save_Value object rather than a cons of
2535 two 16bit ints to store the DIR*.
2536 (directory_files_internal, file_name_completion): Handle both EINTR and
2537 EAGAIN consistently after `readdir'.
2538
bdb4d6d8
SM
25392005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
2540
1550ae60
SM
2541 * intervals.c (update_interval): Add position info in error.
2542
bdb4d6d8
SM
2543 * dispnew.c (window_to_frame_hpos, update_window):
2544 Avoid gcc warning about unused variable `f'.
2545
6bcc3ca4
JR
25462005-08-31 Jason Rumney <jasonr@gnu.org>
2547
2548 * w32menu.c (add_menu_item): If unicode_append_menu returns an
2549 error, revert to using AppendMenu.
2550
07c5948c
YM
25512005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2552
bdb4d6d8
SM
2553 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
2554 All uses changed.
07c5948c
YM
2555 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
2556 cases.
2557 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
bdb4d6d8
SM
2558 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
2559 Use posix_pathname_to_fsspec.
07c5948c
YM
2560 [MAC_OS] (xpm_load_image): Fill in background_transparent field
2561 while we have mask.
2562
2563 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
2564
2565 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
2566
5a774522
SM
25672005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2568
2569 * syntax.c (update_syntax_table): Properly reproduce the special +1
2570 setting of e_property at the end of the buffer when bumping into the
2571 INTERVALS_AT_ONCE limit.
2572
0fb57cc0
EZ
25732005-08-27 Eli Zaretskii <eliz@gnu.org>
2574
2575 * emacs.c (USAGE1): Fix the description of the -Q option.
2576
5a774522
SM
25772005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
2578
2579 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
2580
4e6b8c5a
KS
25812005-08-26 Kim F. Storm <storm@cua.dk>
2582
2583 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
2584 Don't move PT to new window start.
2585
1f98fbb4
YM
25862005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2587
2588 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
2589 ICONIFY/DEICONIFY_EVENT.
2590
5a774522
SM
2591 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
2592 Restore background color.
1f98fbb4
YM
2593 (mac_handle_visibility_change): New function.
2594 (x_make_frame_invisible, x_iconify_frame)
2595 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
2596 [USE_CARBON_EVENTS] (mac_handle_window_event)
07c5948c 2597 (install_window_handler): Handle visibility change events.
1f98fbb4
YM
2598 (x_make_frame_visible): Don't reposition window if it is iconified
2599 or asked for visible before. Select and uncollapse window when it
2600 is made visible.
2601 (x_make_frame_invisible): Don't reset x_highlight_frame.
2602 (x_iconify_frame): Likewise. Make invisible frame visible before
2603 it is iconified.
2604 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
2605 (do_window_update): Don't change visibility of invisible frame.
2606
16691d29
JL
26072005-08-22 Juri Linkov <juri@jurta.org>
2608
2609 * term.c (turn_on_face): Check for TS_set_foreground and
2610 TS_set_background depending on standout_mode. Simplify.
2611
7c3f805b
KS
26122005-08-21 Kim F. Storm <storm@cua.dk>
2613
0f467468
KS
2614 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
2615 bitmaps on fully visible rows.
2616
7c3f805b
KS
2617 * fringe.c (update_window_fringes): Replace FORCE_P arg with
2618 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
2619 and return 0.
2620
2621 * xdisp.c (redisplay_window): Call update_window_fringes with
2622 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
2623
40b388f9
RS
26242005-08-20 Richard M. Stallman <rms@gnu.org>
2625
2626 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
2627 (resize_mini_window): Set w->start, and PT, so as to display the tail
2628 end of the buffer, if it doesn't all fit.
2629
581360f0
KS
26302005-08-18 Kim F. Storm <storm@cua.dk>
2631
2632 * xdisp.c (calc_pixel_width_or_height): Use actual display
2633 resolution when available instead of Vdisplay_pixels_per_inch.
2634
0eefa6fb
KS
26352005-08-17 Kim F. Storm <storm@cua.dk>
2636
2637 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
2638
2639 * dispnew.c (buffer_posn_from_coords): Check that target row is
2640 within matrix.
2641
ada192ba
JD
26422005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2643
2644 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
2645 xg_set_frame_icon and call it.
2646
2647 * gtkutil.c (xg_set_frame_icon): New function.
2648
0eefa6fb 2649 * gtkutil.h (xg_set_frame_icon): Declare it.
ada192ba 2650
ab89a403
KS
26512005-08-16 Kim F. Storm <storm@cua.dk>
2652
2653 * dispnew.c (increment_row_positions): Skip non-enabled rows.
2654
2655 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
2656 (Fcurrent_window_configuration): Use VECSIZE macro instead.
2657
8d34b5e1
RS
26582005-08-15 Richard M. Stallman <rms@gnu.org>
2659
2660 * xdisp.c (message3_nolog): Clear echo_message_buffer.
2661
71e37f3c
KS
26622005-08-15 Kim F. Storm <storm@cua.dk>
2663
0781c303
KS
2664 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
2665
71e37f3c
KS
2666 * process.c (deactivate_process, status_notify, read_process_output)
2667 (update_status, status_convert, decode_status, allocate_pty)
2668 (make_process, remove_process, list_processes_1)
2669 (create_process_1, unwind_request_sigio, read_process_output)
2670 (send_process, keyboard_bit_set): Declare static.
2671 (Fdelete_process): Simplify. Pass process to status_notify, so we
2672 don't try to read output from it.
2673 (status_notify): New arg deleting_process--don't try to read
2674 output from that process.
2675
2676 * lisp.h (deactivate_process, status_notify, read_process_output):
2677 Remove prototypes.
2678
0bf14bfd
RS
26792005-08-14 Richard M. Stallman <rms@gnu.org>
2680
bdb4d6d8
SM
2681 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
2682 define_image_type.
0bf14bfd 2683
6c7eb721
JD
26842005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2685
2686 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
2687 (xg_get_image_for_pixmap): Move some code to
2688 xg_get_pixbuf_from_pix_and_mask, and call it.
2689
2690 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
2691
2692 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
2693 to get an GTK icon and set it with GTK functions to avoid having GTK
2694 override an icon set with just X functions.
2695
6e2d14c8
RS
26962005-08-11 Richard M. Stallman <rms@gnu.org>
2697
bdb4d6d8
SM
2698 * image.c (syms_of_image): Init image_types here, and call
2699 define_image_type.
6e2d14c8
RS
2700 (init_image): Not here.
2701
61298e17
RS
27022005-08-09 Richard M. Stallman <rms@gnu.org>
2703
2704 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
2705
2706 * lisp.h (QUIT): Throw t to Vthrow_on_input.
2707
5a9807a8
TTN
27082005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
2709
2710 * floatfns.c (Fexpt): Use floats for negative exponent.
2711
93469010
JD
27122005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2713
2714 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
2715 should not be there, causing menu display errors with GTK 2.6.9.
2716
44edd521
RS
27172005-08-07 Richard M. Stallman <rms@gnu.org>
2718
8b6a9551
RS
2719 * floatfns.c (Fexpt): Undo previous change.
2720
44edd521
RS
2721 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
2722 so it can be used with various state vectors.
2723
2724 * emacs.c (endif): Convert -script into -scriptload.
2725 (standard_args): Add -scriptload. Allow -basic-display with one dash.
2726
2727 * fns.c (syms_of_fns): Add `emacs' to features.
2728
2729 * term.c (set_terminal_modes): If no TS_termcap_modes string,
2730 output newlines to scroll the old screen contents off the screen.
2731
cac87e30
TTN
27322005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
2733
2a205424
TTN
2734 * floatfns.c (Fexpt): Use floats for negative exponent.
2735 Reported by D Goel.
cac87e30 2736
31b7cc74
JB
27372005-08-02 Richard M. Stallman <rms@gnu.org>
2738
2739 * frame.c (Fframe_char_width): Doc fix.
2740
e2b64074
JB
27412005-07-30 Juanma Barranquero <lekktu@gmail.com>
2742
2743 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
2744 Defvar it.
2745
0962822d
JB
27462005-07-28 Juanma Barranquero <lekktu@gmail.com>
2747
2748 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
2749 (my_create_window, my_create_tip_window): Make static.
2750
2751 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
2752 (my_set_foreground_window, my_destroy_window): Make static.
2753
9eff9fe3
PE
27542005-07-26 Paul Eggert <eggert@cs.ucla.edu>
2755
2756 Merge gnulib getopt implementation into Emacs.
2757
2758 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
2759 now part of lib-src.
2760
1c9916a1
SM
27612005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
2762
2763 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
2764
94c7f257
JR
27652005-07-25 Jason Rumney <jasonr@gnu.org>
2766
2767 * w32menu.c (w32_menu_display_help): Suppress tooltip when
2768 navigating menus with the keyboard.
2769
bf0bf758
RS
27702005-07-23 Richard M. Stallman <rms@gnu.org>
2771
2772 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
2773
2774 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
2775 gc_relative_threshold, one by one.
2776
2777 * keyboard.c (read_char): Test gc_cons_threshold.
2778 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
2779
2780 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
2781 gc_relative_threshold, one by one.
2782
2783 * alloc.c (gc_cons_threshold): Not static.
2784 (gc_cons_combined_threshold): Var deleted.
2785 (gc_relative_threshold): New variable.
2786 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
2787 instead of gc_cons_combined_threshold.
2788
1c9916a1 2789 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
bf0bf758
RS
2790 (gc_cons_combined_threshold): Declaration deleted.
2791
99f963e4
YM
27922005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2793
2794 * mac.c: Don't include stdlib.h or string.h.
2795 (Fdo_applescript, Fmac_file_name_to_posix)
2796 (Fmac_file_name_to_posix): Doc fixes.
2797 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
2798 (Fmac_code_convert_string): Likewise.
2799 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
2800 if the executable is not contained in a bundle.
2801
2802 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
2803 (gray_width, gray_height): Remove defines.
2804 (gray_bits, gray_bitmap_width, gray_bitmap_height)
2805 (gray_bitmap_bits): Remove variables.
2806 (lispy_function_keys): Remove extern.
2807 (free_frame_menubar): Add extern.
2808 (x_window_to_frame): Remove function.
2809 (unwind_create_tip_frame): Add declaration.
2810 (x_set_name_internal): New function.
2811 (x_set_name, x_set_title): Use it.
2812 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
2813 (Fx_display_pixel_height, Fx_display_planes)
2814 (Fx_display_color_cells, Fx_server_max_request_size)
2815 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2816 (Fx_display_mm_height, Fx_display_mm_width)
2817 (Fx_display_backing_store, Fx_display_visual_class)
2818 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
2819
2820 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
2821
bdb4d6d8 2822 * macselect.c (Fx_own_selection_internal): Follow error conventions.
99f963e4
YM
2823 (Fx_get_selection_internal, Fx_selection_owner_p)
2824 (Fx_selection_exists_p): Doc fixes.
2825 (syms_of_macselect) <selection-converter-alist>: Likewise.
2826
1d256714
JB
28272005-07-21 Juanma Barranquero <lekktu@gmail.com>
2828
2829 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
2830
2831 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
2832 (Fccl_execute_on_string): Likewise; add usage info.
2833
2834 * composite.c (Fcompose_region_internal)
2835 (Fcompose_string_internal):
2836 Improve argument/docstring consistency.
2837
2838 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
2839 Fix typos in docstrings.
2840
2841 * textprop.c (Fnext_char_property_change)
2842 (Fprevious_char_property_change): Doc fixes.
2843
2844 * window.c (Fset_window_margins, Fset_window_fringes):
2845 Improve argument/docstring consistency.
2846
2847 * xfaces.c (Finternal_lisp_face_p): Doc fix.
2848
538f78c3
AS
28492005-07-21 Andreas Schwab <schwab@suse.de>
2850
2851 * eval.c (restore_stack_limits): Return a value.
2852
a5b5bf44
JB
28532005-07-20 Juanma Barranquero <lekktu@gmail.com>
2854
2855 * eval.c (Fdefvar): Doc fix.
2856
ae643123
KS
28572005-07-20 Kim F. Storm <storm@cua.dk>
2858
0ed4bf15
KS
2859 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
2860 Use make_save_value to unwind protect stream.
2861
2862 * lread.c (Fload, load_unwind):
2863 Use make_save_value to unwind protect stream.
ae643123 2864
82fc29a1
JB
28652005-07-19 Juanma Barranquero <lekktu@gmail.com>
2866
2867 * eval.c (Fprog2, Fcalled_interactively_p),
2868 (syms_of_eval) <debug-on-quit>: Doc fixes.
2869 (syms_of_eval) <max-specpdl-size>:
2870 (Finteractive_p): Fix typos in docstrings.
2871
73b90087
KS
28722005-07-19 Kim F. Storm <storm@cua.dk>
2873
2874 * w32fns.c (Vx_hand_shape): Variable removed.
2875 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
2876
dfc434d0
KH
28772005-07-19 Kenichi Handa <handa@m17n.org>
2878
bdb4d6d8 2879 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
dfc434d0 2880
bcd98331
SM
28812005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
2882
2883 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
2884
2a85a754
KS
28852005-07-18 Kim F. Storm <storm@cua.dk>
2886
2887 * frame.h (struct frame): New member already_hscrolled_p.
2888
2889 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
2890 to avoid redisplay looping hscrolling back and forth ad infinitum.
2891
426179e1
JL
28922005-07-18 Juri Linkov <juri@jurta.org>
2893
2894 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
2895 * keymap.c (Fminor_mode_key_binding):
2896 * macterm.c (mac-emulate-three-button-mouse):
2897 Delete duplicate duplicate words.
2898
9f4a578d
KR
28992005-07-18 Ken Raeburn <raeburn@gnu.org>
2900
2901 * minibuf.c (Ftest_completion): Fix odd syntax in test.
2902
d005338b
YM
29032005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2904
bcd98331 2905 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
d005338b
YM
2906
2907 * macgui.h (struct _XGC): New struct.
2908 (GC): Use it.
2909 (GCForeground, GCBackground, GCFont): Use X11 mask values.
2910 (XCreateGC, XParseGeometry): Move externs to macterm.h.
2911
bcd98331 2912 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
d005338b 2913 (XSetFont): Add declaration.
bcd98331
SM
2914 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
2915 Remove functions.
2916 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
2917 New defines.
d005338b
YM
2918 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
2919 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
bcd98331
SM
2920 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
2921 Use them.
d005338b
YM
2922 (mac_erase_rectangle): New function.
2923 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
2924 (x_draw_stretch_glyph_string): Use it.
2925 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
2926 (XSetBackground, XSetFont): Adjust for new GC implementation.
2927 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
2928 (XTset_vertical_scroll_bar): Clear area under scroll bar.
2929
2930 * macterm.h (struct mac_display_info): Change types of
2931 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
2932 (XCreateGC, XParseGeometry): Move externs from macgui.h.
2933
2934 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
2935
9b0c2c56
RS
29362005-07-16 Richard M. Stallman <rms@gnu.org>
2937
2938 * buffer.c (Fmake_overlay): Doc fix.
2939
2e9c1c6d
EZ
29402005-07-16 Eli Zaretskii <eliz@gnu.org>
2941
2942 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
2943 Vw32_valid_locale_ids, and Vw32_valid_codepages.
2944
407289a4
YM
29452005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2946
bcd98331
SM
2947 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
2948 Use Fstring_as_unibyte instead of string_make_unibyte.
407289a4 2949
e4b477a1
RS
29502005-07-15 Richard M. Stallman <rms@gnu.org>
2951
2952 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
2953
a8613adf
KS
29542005-07-15 Kim F. Storm <storm@cua.dk>
2955
2956 * xdisp.c: Fix redisplay loop in last change.
2957 (IT_POS_VALID_AFTER_MOVE_P): New macro.
2958 (move_it_vertically_backward, move_it_by_lines): Use it.
2959
2d5324c5
JR
29602005-07-14 Jason Rumney <jasonr@gnu.org>
2961
2962 * w32.c (init_environment): Default HOME directory to user's
2963 appdata directory if possible.
2964
3ed70dc4
KS
29652005-07-14 Kim F. Storm <storm@cua.dk>
2966
7b9389b0
KS
2967 * .gdbinit (pitx): Fix output format. Print string charpos.
2968
3ed70dc4
KS
2969 * lread.c (syms_of_lread): Initialize seen_list.
2970
2971 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
2972
2973 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
2974 Staticpro re_match_object.
2975
ef029e5a
YM
29762005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2977
2978 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
2979 dereference.
2980
2981 * macterm.c (mac_window_to_frame): Remove duplicate define.
2982
16ef9c56
KH
29832005-07-14 Kenichi Handa <handa@m17n.org>
2984
2985 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
bcd98331 2986 (code_convert_region): Adjust for the above change.
16ef9c56
KH
2987 (set_conversion_work_buffer): If the work buffer is already in
2988 use, generate a new buffer and return it. Otherwise return Qnil.
bcd98331 2989 (run_pre_post_conversion_on_str): Adjust for the above change.
16ef9c56
KH
2990 (run_pre_write_conversin_on_c_str): Likewise.
2991
098e1273
KS
29922005-07-13 Kim F. Storm <storm@cua.dk>
2993
010b9a45
KS
2994 * xdisp.c (start_display): Don't reseat to next visible line start
2995 if current start position is in a string or image.
2996 (move_it_vertically_backward): Be sure to move out of strings and
2997 images when moving it2 forward.
2998 (move_it_by_lines): When moving forward, move to next buffer
2999 position if we end up in a string or image. When moving backward,
3000 count rows moved over when moving to start of current row in case
3001 row starts in middle of a string or image. Also move further
3002 backward if we end up in a string or image.
bcd98331 3003 (try_cursor_movement): If overlay string spans multiple lines,
010b9a45
KS
3004 move backward to set cursor on start of an overlay string.
3005 (cursor_row_p): Row is ok if cursor is at newline from string, but
3006 string starts on this line (so we always position cursor at start
3007 of string).
3008
3009 * indent.c (Fvertical_motion): If start position is on an image,
3010 don't move back if we move too far (that's almost certain to happen).
3011
098e1273
KS
3012 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
3013 row in minibuffer windows.
3014 (try_window): Don't check margins in minibuffer windows.
3015
c229fb15
YM
30162005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3017
3018 * macterm.c: Don't include stdlib.h or composite.h.
3019 (x_use_underline_position_properties, last_mouse_press_frame)
3020 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
3021 (syms_of_macterm, mac_initialize): Don't initialize them.
3022 (waiting_for_input, initial_argv, initial_argc)
3023 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
3024 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
3025 (extra_keyboard_modifiers): Fix type in extern.
3026 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
3027 (x_scroll_bar_report_motion): Add argument types to declaration.
3028 (mac_compute_glyph_string_overhangs): Add declaration.
3029 (disable_mouse_highlight): Remove unused variable.
3030 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
3031 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
bcd98331
SM
3032 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
3033 All callers changed.
c229fb15
YM
3034 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
3035 timestamp.
3036 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
3037 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
3038 only when its width is less than the height.
3039 (XTredeem_scroll_bar): Sync with xterm.c.
bcd98331
SM
3040 (font_name_table, font_name_table_size, font_name_count):
3041 Make static.
c229fb15
YM
3042 (drag_and_drop_file_list): Remove variable. Previous use is now
3043 local to function.
3044 (do_ae_open_documents): Move DRAG_N_DROP event construction part
3045 from XTread_socket.
bcd98331
SM
3046 (XTread_socket): Consolidate setting of event timestamp.
3047 Move DRAG_N_DROP event construction part to do_ae_open_documents.
c229fb15
YM
3048 Support extra_keyboard_modifiers.
3049
3050 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
3051 beginning with that for ASCII.
3052
69d05d83
SM
30532005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
3054
3055 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
3056 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
3057 (syms_of_alloc): Declare gc-cons-percentage.
3058
3059 * eval.c (Feval, Ffuncall):
3060 * keyboard.c (read_char):
3061 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
3062
3063 * lisp.h (gc_cons_combined_threshold): Declare.
3064
5c7f9de1
KS
30652005-07-12 Kim F. Storm <storm@cua.dk>
3066
3067 * coding.c (Qprocess_argument):
3068 * coding.h (Qprocess_argument): Remove unused var.
3069
3070 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
3071
c37efb7a
YM
30722005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3073
3074 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
3075 Endian.h.
3076 [!MAC_OSX] (fchmod, fchown): New functions.
3077 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
3078 Use SBYTES and EndianU32_BtoN.
3079 (mac_get_object_from_code): Return 4 byte string even if argument
3080 is 0. Use make_unibyte_string and EndianU32_NtoB.
3081 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
3082 (Fmac_set_file_type): Fix documents and argument declarations.
3083 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
3084
a4429c5b
SM
30852005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
3086
3087 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
3088
a2d7e722
JD
30892005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3090
3091 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
3092 Lucid if X_I18N, font otherwise.
3093
9a4183e9
ST
30942005-07-10 Steven Tamm <steventamm@mac.com>
3095
a4429c5b
SM
3096 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
3097 (Fmac_set_file_type, Fmac_set_file_creator): Add.
3098 (mac_get_object_from_code, mac_get_code_from_arg): Add.
9a4183e9 3099
51f74c37
RS
31002005-07-10 Richard M. Stallman <rms@gnu.org>
3101
3102 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
3103 (syms_of_lread): Set up eval-buffer-list.
3104 (Feval_buffer, Feval_region): Bind eval-buffer-list.
3105
93c7da4c
RS
31062005-07-08 Richard M. Stallman <rms@gnu.org>
3107
3108 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
3109
64af5917
KS
31102005-07-08 Kim F. Storm <storm@cua.dk>
3111
3112 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
3113 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
3114
a96b333c
KS
31152005-07-07 Kim F. Storm <storm@cua.dk>
3116
3117 * window.c (Frecenter): Fix last change (set iarg before use).
3118
dc2204be
RS
31192005-07-06 Richard M. Stallman <rms@gnu.org>
3120
3121 * window.c (Frecenter): When arg is inside the scroll margin,
3122 move it out of the margin.
3123
3fb1d72b
JR
31242005-07-06 Jason Rumney <jasonr@gnu.org>
3125
3126 * w32console.c (initialize_w32_display): Detect when the console
3127 dimensions are insane, and default to 80x25 instead.
a4429c5b 3128 (w32_use_full_screen_buffer): Default to NIL.
3fb1d72b 3129
dd15724d
YM
31302005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3131
3132 * macterm.c (mac_draw_vertical_window_border): Use foreground of
3133 VERTICAL_BORDER_FACE_ID for vertical border line.
3134 (mac_encode_char): Call check_ccl_update in advance.
3135 (mac_to_x_fontname, x_font_name_to_mac_font_name)
a4429c5b
SM
3136 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
3137 Don't assume that font family length is less than 32.
dd15724d
YM
3138 (x_compute_min_glyph_bounds): Make static.
3139 (x_load_font): Never set fonts_changed_p to zero.
a96b333c 3140
68003d6b
LK
31412005-07-04 Lute Kamstra <lute@gnu.org>
3142
dc2204be 3143 * Update FSF's address in GPL notices.
68003d6b 3144
3d393029
RS
31452005-07-03 Richard M. Stallman <rms@gnu.org>
3146
3147 * xdisp.c (try_window): Fix previous change in how it handles
3148 a partially-visible line or one only partly past the margin.
3149
3150 * window.c (window_scroll_pixel_based): Take account
3151 of this_scroll_margin when finding point when scrolling up.
3152
31532005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
3154
3155 * window.c (window_scroll_pixel_based, window_scroll_line_based):
3156 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
9dd28cae 3157 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
3d393029 3158
d6951bb4
EZ
31592005-07-02 Juri Linkov <juri@jurta.org>
3160
3161 * w32term.c (w32_draw_vertical_window_border): Use foreground of
3162 VERTICAL_BORDER_FACE_ID for vertical border line.
3163
b016179b
EZ
31642005-07-02 Eli Zaretskii <eliz@gnu.org>
3165
3166 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
3167 fchmod so that chmod doesn't get called on MSDOS before the file
3168 is closed.
3169
c2baa2b6
JR
31702005-07-01 Jason Rumney <jasonr@gnu.org>
3171
3172 * w32term.c (cleartype_active): New flag for enabling sub-pixel
3173 workaround.
3174 (w32_initialize): Initialize it.
3175 (w32_native_per_char_metric): Allow a couple of extra pixels when
3176 Cleartype is active.
3177
3178 * w32term.c (w32_initialize): Move check for screen reader here
3179 from syms_of_w32term.
3180
a6d0ae55
JD
31812005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3182
3183 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
3184 is not zero.
3185
711877f3
MY
31862005-07-01 Masatake YAMATO <jet@gyve.org>
3187
a4429c5b 3188 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
711877f3 3189
63f7ffb3
JL
31902005-06-30 Juri Linkov <juri@jurta.org>
3191
3192 * xdisp.c (x_draw_vertical_border): If left fringe is not present
3193 decrease x coord of vertical border by 1 pixel to not occupy text
3194 area of the right window.
3195
3196 * xterm.c (x_draw_vertical_window_border): Use foreground of
3197 VERTICAL_BORDER_FACE_ID for vertical border line.
3198
3199 * term.c (turn_on_face): In standout mode apply specified
3200 fg to bg, and specified bg to fg (this makes the logic of
3201 inversion on terminal consistent with X).
3202
b26860ad
JB
32032005-06-29 Juanma Barranquero <lekktu@gmail.com>
3204
3205 * eval.c (user_variable_p_eh): New function.
3206 (Fuser_variable_p): Use it. Clarify docstring.
3207 Return t for aliases of user options, nil for alias loops.
3208
3a1f1d79
RS
32092005-06-27 Richard M. Stallman <rms@gnu.org>
3210
3211 * eval.c (Fdefvar): Improve error message.
3212
92de1e01
YM
32132005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3214
3215 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
3216 change.
3217
69410484
JB
32182005-06-27 Juanma Barranquero <lekktu@gmail.com>
3219
3220 * eval.c (Fdefvar): Don't try to set constant symbols.
3221
09352e8f
RS
32222005-06-25 Richard M. Stallman <rms@gnu.org>
3223
a68d870b
RS
3224 * macfns.c (Fx_show_tip): Pass new arg to try_window.
3225
3226 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
3227
3228 * xfns.c (Fx_show_tip): Pass new arg to try_window.
3229
3230 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
3231 (redisplay_window): Handle try_window reporting point in scroll margin.
3232
3233 * dispextern.h (try_window): Declare new arg.
3234
3235 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
3236 Use fchmod to copy the file modes.
3237 (Frename_file): Don't copy UID and GID here;
3238 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
3239
df13531d
RS
3240 * eval.c (call_debugger): Take full care of extending stack limits
3241 to make space for the debugger, and restore the change afterward.
3242 Bind debug-on-error to nil.
3243 (restore_stack_limits): New subroutine.
3244 (Fsignal): Extend specpdl bound along with eval depth bound,
3245 for calling edebug. Don't do either one, for calling debugger.
3246 (find_handler_clause): Don't bind debug-on-error here.
3247 Don't unbind anything either.
3248 Temporarily advance max_specpdl_size for calling
3249 internal_with_output_to_temp_buffer.
3250 (grow_specpdl): Don't alter max_specpdl_size before signaling
3251 an error.
3252 (syms_of_eval) <max-specpdl-size>: Doc fix.
3253
09352e8f
RS
3254 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
3255
90296dd3
EZ
32562005-06-24 Eli Zaretskii <eliz@gnu.org>
3257
3258 * fileio.c (Frename_file): Undo last change: no need to ifdef away
3259 chown on DOS_NT platforms.
3260
3261 * w32.c (sys_chown): New function.
3262
3263 * s/ms-w32.h (chown): New; define to sys_chown.
3264
c4f6ca24
JB
32652005-06-24 Juanma Barranquero <lekktu@gmail.com>
3266
3338c0ad
JB
3267 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
3268 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
3269
9a1505e9 3270 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
c4f6ca24 3271
528b6abc
RS
32722005-06-23 Richard M. Stallman <rms@gnu.org>
3273
3274 * xdisp.c (get_next_display_element): Finish reversing the tests of
3275 Vnobreak_char_display.
3276
9a1505e9 3277 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
528b6abc 3278 All uses changed.
9a1505e9 3279 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
528b6abc
RS
3280 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
3281
3282 * fileio.c (Frename_file): Preserve owner and group, if possible,
3283 when copying.
3284
1d1c7e75
JB
32852005-06-23 Juanma Barranquero <lekktu@gmail.com>
3286
253b2298
JB
3287 * abbrev.c (Funexpand_abbrev):
3288 * category.c (Fmake_category_set):
3289 * dispnew.c (Fsleep_for, Fsit_for):
3290 * editfns.c (Fsubst_char_in_region):
3291 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
3292 * frame.c (make_frame_without_minibuffer):
3293 * lread.c (read_vector):
3294 * macfns.c (check_x_frame):
3295 * process.c (Fstop_process, Fcontinue_process):
3296 * search.c (Freplace_match):
3297 * syntax.c (Fstring_to_syntax):
3298 * w32fns.c (check_x_frame, check_x_display_info):
3299 * xfaces.c (x_supports_face_attributes_p):
3300 * xselect.c (Fx_own_selection_internal): Follow error conventions.
3301
1d1c7e75
JB
3302 * image.c (fn_png_init_io): Don't define it.
3303 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
3304 (png_read_from_file): New function, based on png_read_from_memory.
3305 (png_load): Use it, instead of fn_png_init_io.
3306
d1fab151
KS
33072005-06-23 Kim F. Storm <storm@cua.dk>
3308
3309 * search.c (Fmatch_data): Remove evaporate option.
9d12e52b 3310 (Fset_match_data): Do not mention evaporate option in doc string.
d1fab151
KS
3311 Add commentary explaining evaporate arg (for internal use only).
3312 (unwind_set_match_data): Add comment on evaporate use.
3313
53abc3bf
MB
33142005-06-22 Miles Bader <miles@gnu.org>
3315
a4429c5b 3316 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
53abc3bf
MB
3317 (realize_basic_faces, syms_of_xfaces): Update references to it.
3318 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
3319 to `VERTICAL_BORDER_FACE_ID'.
3320 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
3321
36a3b076
JL
33222005-06-21 Juri Linkov <juri@jurta.org>
3323
3324 * dispextern.h: Add extern Qframe_set_background_mode.
3325
3326 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
3327 Qframe_set_background_mode.
3328
3329 * frame.c (Fmodify_frame_parameters):
3330 Call frame-set-background-mode after changing the background color
3331 on non-window non-dos branch.
3332
23873c96
JB
33332005-06-21 Juanma Barranquero <lekktu@gmail.com>
3334
3335 * fns.c (Fchar_table_range):
3336 * process.c (Fmake_network_process): Fix spellings.
3337
b7d1f38f
KS
33382005-06-20 Kim F. Storm <storm@cua.dk>
3339
3340 * fns.c (Fsort): Doc fix.
3341
b4e49aee
MB
33422005-06-20 Miles Bader <miles@gnu.org>
3343
3344 * xfaces.c (Qvertical_divider): New variable.
3345 (realize_basic_faces): Realize its face.
3346 (syms_of_xfaces): Initialize it.
3347
3348 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
3349
3350 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
3351 window-separator on ttys using `vertical-divider' face by default.
3352
b7da00ba
RS
33532005-06-17 Richard M. Stallman <rms@gnu.org>
3354
a4429c5b
SM
3355 * xdisp.c (get_next_display_element):
3356 Reverse test of Vshow_nonbreak_escape.
b7da00ba
RS
3357
3358 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
f19b57e3
RS
3359 (Ftty_no_underline): New function.
3360 (syms_of_term): defsubr it.
b7d1f38f 3361
b7da00ba
RS
3362 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
3363
3364 * dispnew.c (spec_glyph_lookup_face): New function.
3365 (build_frame_matrix_from_leaf_window): Use it.
3366
3367 * dispextern.h (spec_glyph_lookup_face): Add declaration.
3368
3369 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
3370
33712005-06-12 Richard M. Stallman <rms@gnu.org>
3372
3373 * keyboard.c (read_char): After catching a longjmp,
3374 call restore_getcjmp.
3375
289824a3
JB
33762005-06-17 Juanma Barranquero <lekktu@gmail.com>
3377
3378 * xselect.c (lisp_data_to_selection_data): Fix spelling.
3379
95085023
YM
33802005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3381
3382 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
3383 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
3384 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
3385 events.
3386 (XTread_socket): Don't pass keyboard events with the option
3387 modifier to the system when Vmac_command_key_is_meta is nil or
3388 Vmac_option_modifier is non-nil.
3389 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
3390 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
3391 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
3392 handler function.
3393 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
3394 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
3395 handler part to mac_handle_mouse_event.
3396
4a9308b8
JB
33972005-06-14 Juanma Barranquero <lekktu@gmail.com>
3398
3399 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
3400 NEW-ALIAS and BASE-VARIABLE, respectively.
3401
5aa6db57
SM
34022005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
3403
3404 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
3405 (get_phys_cursor_geometry, format_mode_line_unwind_data)
3406 (get_line_height_property, x_produce_glyphs): Remove unused vars.
3407
3408 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
3409
0e0dddda
EZ
34102005-06-13 Eli Zaretskii <eliz@gnu.org>
3411
3412 * w32term.c (x_use_underline_position_properties): New variable.
3413 (x_draw_glyph_string): Remind in a comment to change doc string of
3414 x-use-underline-position-properties if/when underline positioning
3415 is implemented.
3416 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
3417 and initialize it to nil.
3418
7f2b4738
JR
34192005-06-12 Jason Rumney <jasonr@gnu.org>
3420
3421 * w32fns.c (NEWOPENFILENAME): New struct.
3422 (Fx_file_dialog): Use it to trick the system into giving us up to
3423 date dialogs on systems that are documented to support it.
3424 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
3425
a1e8cad6
EZ
34262005-06-12 Eli Zaretskii <eliz@gnu.org>
3427
3428 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
3429 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
3430
099a3eea
EZ
34312005-06-11 Eli Zaretskii <eliz@gnu.org>
3432
2e09fef1
EZ
3433 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
3434 to CreateDIBSection to avoid a compiler warning.
3435 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
3436 warning.
3437 (png_load): Cast return values of fn_png_create_read_struct and
3438 fn_png_create_info_struct, to avoid compiler warnings on W32.
3439 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
3440 to avoid compiler warnings.
3441 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
3442 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
3443 avoid a compiler warning.
3444 (tiff_load): Cast return values of fn_TIFFOpen and
3445 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
3446 to IMAGE_BACKGROUND to avoid a compiler warning.
3447 (gif_load): Cast return values of fn_DGifOpenFileName and
3448 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
3449 IMAGE_BACKGROUND to avoid a compiler warning.
3450 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
3451 before redefining.
3452
099a3eea
EZ
3453 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
3454 the call to CreateDIBSection, to avoid a compiler warning.
3455
d11f8e1a
JR
34562005-06-11 Jason Rumney <jasonr@gnu.org>
3457
3458 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
3459 minibuffer.
3460 * macfns.c (Fx_file_dialog): Likewise.
3461
cd4344a3
EZ
34622005-06-10 Eli Zaretskii <eliz@gnu.org>
3463
3464 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
3465
578c1340
JB
34662005-06-10 Juanma Barranquero <lekktu@gmail.com>
3467
3468 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
3469 * w32fns.c (syms_of_w32fns): Fix spellings.
3470
4162f25f
EZ
34712005-06-10 Eli Zaretskii <eliz@gnu.org>
3472
3473 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5aa6db57
SM
3474 `verbose'; print diagnostic messages only if it is non-zero.
3475 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4162f25f
EZ
3476 in the environment.
3477 (copy_executable_and_dump_data): Print section names with %.8s.
3478
121c59a3
MY
34792005-06-10 Masatake YAMATO <jet@gyve.org>
3480
3481 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
3482 when mouse_face is not given.
121c59a3 3483
c869384d
LT
34842005-06-09 Luc Teirlinck <teirllm@auburn.edu>
3485
3486 * window.c (Fselect_window): Adapt call to Fselect_frame.
3487
3488 * lisp.h: Update EXFUN of Fselect_frame.
3489
3490 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
3491
6ecf436d
LT
3492 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
3493 no_enter.
3494 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
c869384d
LT
3495 Adapt to above change.
3496
c14ec135
JB
34972005-06-10 Juanma Barranquero <lekktu@gmail.com>
3498
3499 * fns.c (Fmemq, Fmaphash): Doc fixes.
3500
9fed2905
JB
35012005-06-09 Juanma Barranquero <lekktu@gmail.com>
3502
3503 * xfaces.c (Fdisplay_supports_face_attributes_p):
3504 Fix typo in docstring.
3505
427c5b1b
ST
35062005-06-08 Steven Tamm <steventamm@mac.com>
3507
3508 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
3509 used by gcc4 on intel mac.
3510
b7aae902
KS
35112005-06-09 Kim F. Storm <storm@cua.dk>
3512
3513 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
3514 in REUSE list if non-nil; free them if equal to evaporate.
3515 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
3516 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
3517 (restore_search_regs): Rename from restore_match_data. Uses changed.
3518 (unwind_set_match_data): New function.
3519 (record_unwind_save_match_data): New function like save-match-data.
3520
3521 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
3522 (record_unwind_save_match_data): Add prototype.
3523 (restore_search_regs): Rename from restore_match_data.
3524
3525 * composite.c (compose_chars_in_text):
3526 * eval.c (do_autoload):
3527 * macmenu.c (set_frame_menubar):
3528 * process.c (read_process_output, exec_sentinel):
3529 * xmenu.c (set_frame_menubar):
3530 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
3531 * w32menu.c (set_frame_menubar):
3532 Use record_unwind_save_match_data.
3533
547d2b37
RS
35342005-06-08 Richard M. Stallman <rms@gnu.org>
3535
3536 * xdisp.c (get_next_display_element): Alter previous change:
3537 Distinguish Vshow_nonbreak_escape = t or not t.
3538 For t, use escape_glyph once again, as before previous change.
3539 Use space or hyphen for display, instead of the non-ASCII char.
3540 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
3541
3542 * process.c (Fstart_process): Don't touch command_channel_p slot.
3543
99598737 3544 * process.h (struct process): Delete command_channel_p.
547d2b37 3545
602907ae
MY
35462005-06-07 Masatake YAMATO <jet@gyve.org>
3547
5aa6db57
SM
3548 * xdisp.c (note_mode_line_or_margin_highlight):
3549 Check the overlapping of re-rendering area to avoid flickering.
b7aae902 3550 (note_mouse_highlight): Call clear_mouse_face if PART
602907ae
MY
3551 is not ON_MODE_LINE nor ON_HEADER_LINE.
3552
8b793bed
KS
35532005-06-07 Kim F. Storm <storm@cua.dk>
3554
3555 * process.c: Improve commentary for adaptive read buffering.
3556
3d031334
SM
35572005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
3558
3559 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
3560 if available.
3561
16d2e704
JD
35622005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3563
5aa6db57
SM
3564 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
3565 New functions for popping down menus on C-g.
16d2e704
JD
3566 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
3567
3568 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
3569 non-static.
3570
9fed2905 3571 * config.in: Add HAVE_CANCELMENUTRACKING.
16d2e704 3572
b6cc2ad0
EZ
35732005-06-06 Eli Zaretskii <eliz@gnu.org>
3574
9a1505e9 3575 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
b6cc2ad0 3576
5aa6db57 3577 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
b6cc2ad0
EZ
3578
3579 * w32proc.c (RVA_TO_PTR): New macro.
3580
3581 * w32heap.c (RVA_TO_PTR): No need to #undef now.
3582
3583 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
3584 Depend on w32heap.h.
3585
24e55feb
LT
35862005-06-06 Luc Teirlinck <teirllm@auburn.edu>
3587
3588 * keyboard.c (command_loop_1): Update Vthis_original_command.
3589
ce6e10af
RS
35902005-06-06 Richard M. Stallman <rms@gnu.org>
3591
3592 * xmenu.c (popup_get_selection): Undo previous change.
3593
c476bcb0
JL
35942005-06-06 Juri Linkov <juri@jurta.org>
3595
3596 * xdisp.c (Qno_break_space): New variable.
3597 (syms_of_xdisp): Initialize it.
3598 (get_next_display_element): Add no-break space and soft hypen
3599 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
3600 Use `no-break-space' face for no-break spaces.
3601
5494d7bc
JD
36022005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3603
3604 * window.c (delete_window): Handle the case where a h/vchild has
3605 a h/vchild.
3606
a0c38328
EZ
36072005-06-05 Eli Zaretskii <eliz@gnu.org>
3608
3609 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
3610 call to pfn_setsockopt, cast optval to `const char *'.
3611
91018229
EZ
36122005-06-04 Eli Zaretskii <eliz@gnu.org>
3613
1a8fb426
EZ
3614 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
3615 (open_unc_volume): Cast return value of map_w32_filename, to avoid
3616 compiler warnings.
3617
b6f0a397
EZ
3618 * s/ms-w32.h (fileno): Don't define if already defined.
3619
17a7c5c2 3620 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
d01a9710 3621
91018229
EZ
3622 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
3623
196ac78c
RS
36242005-06-04 Richard M. Stallman <rms@gnu.org>
3625
3626 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
3627
b8987570
JD
36282005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3629
3630 * macmenu.c (cleanup_popup_menu): New function.
2d4713aa 3631 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
b8987570
JD
3632 mac_menu_show Quit:s.
3633 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
3634 a dialog).
3635
555228aa
KS
36362005-06-04 Kim F. Storm <storm@cua.dk>
3637
3638 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
3639
3640 * callproc.c (Fcall_process): Don't use alloca to gradually
3641 increase size of buf, as it effectively uses twice the necessary
3642 space on the stack. Instead, pre-allocate buf of full size, and
3643 gradually increase the read size.
3644
3645 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
3646
3647 * eval.c (unbind_to): Preserve value of Vquit_flag.
3648
3649 * xterm.c (handle_one_xevent): Also ignore mouse motion just
3650 before a button release event.
3651
6312e5f7
JB
36522005-06-03 Juanma Barranquero <lekktu@gmail.com>
3653
3654 * xfaces.c (Finternal_lisp_face_equal_p): Really report
3655 on faces in a frame, if the argument FRAME is non-nil.
3656 Improve argument/docstring consistency.
3657
0493f7be
KS
36582005-06-02 Kim F. Storm <storm@cua.dk>
3659
3660 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
3661 (x_consider_frame_title, Fformat_mode_line): Save offset into
3662 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
3663
89fe657e
KS
36642005-06-01 Kim F. Storm <storm@cua.dk>
3665
3666 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
3667
02a6375c
YM
36682005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3669
3670 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
3671 resolution fields for scalable fonts to 0.
3672
3673 * xfaces.c (build_scalable_font_name): Round pixel size to the
3674 nearest integer.
3675
95d4fad8
KS
36762005-06-01 Kim F. Storm <storm@cua.dk>
3677
3678 * xdisp.c (display_mode_line): Support nested calls to redisplay
3679 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
3680
3c1b433a
SM
36812005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3682
3683 * fileio.c (Finsert_file_contents):
3684 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
3685
13cc7d61
KS
36862005-05-31 Kim F. Storm <storm@cua.dk>
3687
3688 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
3689 (mode_line_noprop_ptr): Rename from frame_title_*.
3690 (store_mode_line_noprop_char): Rename from store_frame_title_char.
3691 (store_mode_line_noprop): Rename from store_frame_title.
3c1b433a 3692 (mode_line_target): New enum to specify current output target
13cc7d61
KS
3693 for mode line formatting.
3694 (display_mode_element): Test it rather than frame_title_ptr and
3695 mode_line_string_list to determine where output should go.
3696 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
3697 (Vmode_line_unwind_vector): New variable.
3c1b433a
SM
3698 (format_mode_line_unwind_data, unwind_format_mode_line):
3699 New functions for unwind protection in mode line formatting.
13cc7d61 3700 (x_consider_frame_title): Use them and new local var 'title_start'
5aa6db57
SM
3701 to support nested calls to format-mode-line and redisplay.
3702 Set mode_line_target to MODE_LINE_TITLE.
13cc7d61 3703 (Fformat_mode_line): Use them and new local var 'string_start' to
5aa6db57
SM
3704 support nested calls to format-mode-line and redisplay.
3705 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
95d4fad8 3706 Don't trim trailing dashes.
13cc7d61
KS
3707 (decode_mode_spec): Don't make infinite number of trailing dashes
3708 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
3709 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
3710 mode_line_string_face_prop, and Vmode_line_unwind_vector.
3711 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
3712 Initialize mode_line_target to MODE_LINE_DISPLAY.
3713
c16b1394
RS
37142005-05-29 Richard M. Stallman <rms@gnu.org>
3715
3716 * buffer.c (Fbuffer_local_value): Call indirect_variable.
3717
edfaeb4e
MY
37182005-05-28 Masatake YAMATO <jet@gyve.org>
3719
3720 * xdisp.c (note_mode_line_or_margin_highlight): Change the
3721 pointer to a hand cursor when hoovering over a mouse-face.
3722
7cf49add
KH
37232005-05-27 Kenichi Handa <handa@m17n.org>
3724
3725 * xterm.c (x_encode_char): Call check_ccl_update in advance.
3726
3727 * ccl.c: Now an element of Vccl_program_table is a vector of
3728 length 4, not 3.
3c1b433a
SM
3729 (ccl_get_compiled_code): New arg idx. Caller changed.
3730 Adjust for the change of Vccl_program_table.
3731 (setup_ccl_program): Adjust for the change of Vccl_program_table.
7cf49add
KH
3732 (check_ccl_update): New function.
3733 (Fregister_ccl_program): Use ASET to set an element of a vector.
3734 Adjusted for the change of Vccl_program_table.
3735
3736 * ccl.h (struct ccl_program): New member idx.
3737 (check_ccl_update): Extern it.
3738
5e2ad10b
JB
37392005-05-27 Juanma Barranquero <lekktu@gmail.com>
3740
3c1b433a 3741 * image.c (Vimage_library_alist): Move from image.el.
d5e1a786
JB
3742 (syms_of_image): Defvar it.
3743 (lookup_image_type): Use it.
3744
5e2ad10b
JB
3745 * buffer.c (Fbuffer_local_value): Make argument name match its use
3746 in docstring.
3747
6e604a9b
JB
37482005-05-26 Juanma Barranquero <lekktu@gmail.com>
3749
3750 * keyboard.c (Frecursive_edit): Fix typo in docstring.
3751 (Fposn_at_x_y): Make argument name match its use in docstring.
3752
59244a3f
LK
37532005-05-26 Lute Kamstra <lute@gnu.org>
3754
3755 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
3756
55ce5058
MY
37572005-05-24 Masatake YAMATO <jet@gyve.org>
3758
3759 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
3760 as loop sentinels.
3761
cb5db137
NR
37622005-05-24 Nick Roberts <nickrob@snap.net.nz>
3763
3764 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
3765 select frame title ("Question"/"Information").
3766 (xdialog_show): Use it.
3767
13dcfc35
NR
3768 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
3769
3770 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
3771
d3393daa
NR
3772 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
3773 a third argument (Qnil).
3774
3775 * lisp.h: x-popup-dialog can have three arguments.
cb5db137
NR
3776
3777 * editfns.c (Fmessage_box): Use "Information" for frame title.
3778
71d4fba1
TTN
37792005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
3780
3781 * termcap.c [VMS]: Include <starlet.h>.
3782
359e4563
MY
37832005-05-23 Masatake YAMATO <jet@gyve.org>
3784
6e604a9b
JB
3785 * xdisp.c (note_mode_line_or_margin_highlight): Add code
3786 for mouse-face. Change the type of the first argument from `window'
3787 to `Lisp_Object'.
359e4563
MY
3788 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
3789 window instead of w.
3790
edceb51c
AS
37912005-05-22 Andreas Schwab <schwab@suse.de>
3792
41c4895c 3793 * process.c (send_process): Move misplaced volatile.
edceb51c 3794
5c213fcc
RS
37952005-05-21 Richard M. Stallman <rms@gnu.org>
3796
3797 * xdisp.c (display_mode_element): If we're processing a list and
3798 padding is specified, put it after the last element.
3799
aa4060b9
EZ
38002005-05-21 Eli Zaretskii <eliz@gnu.org>
3801
3802 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
3803 "superroot" on DOS_NT systems.
3804
a2c9aee6
EZ
38052005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
3806
3807 * process.c (send_process): Restore the SIGPIPE handler if we
3808 catch a SIGPIPE.
3809
09e8eb5b
JB
38102005-05-20 Juanma Barranquero <lekktu@gmail.com>
3811
3812 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
3813 misleading comments).
3814 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
3815
f3fbdb1f
LK
38162005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
3817
3818 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
3819 Correct the right value.
3820
639ec765
NR
38212005-05-19 Nick Roberts <nickrob@snap.net.nz>
3822
240d926e 3823 * keyboard.c (syms_of_keyboard): Remove Lisp variables
639ec765
NR
3824 post-command-idle-hook and post-command-idle-delay.
3825 (command_loop_1): Don't try to execute post-command-idle-hook.
3826
03d42907
KS
38272005-05-16 Kim F. Storm <storm@cua.dk>
3828
1cb83e13
KS
3829 * xdisp.c (handle_display_prop): Handle empty replacement.
3830 (handle_single_display_spec): Return -1 for empty replacement.
3831
3832 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
3833
03d42907
KS
3834 * .gdbinit (pitx): Print more info about iterator.
3835
0da46b6e
AS
38362005-05-16 Andreas Schwab <schwab@suse.de>
3837
3c1b433a 3838 * unexmacosx.c (unexec_realloc): Move declarations before statements.
0da46b6e 3839
d06ba294
RS
38402005-05-14 Richard M. Stallman <rms@gnu.org>
3841
3842 * xdisp.c (message3): Call cancel_echoing.
3843
3844 * alloc.c (Fmemory_full_p): New function.
3845 (syms_of_alloc): defsubr it.
3846
3847 * process.c (send_process_trap): Unblock SIGPIPE.
3848 (send_process): Reset SIGPIPE handler before reporting error.
3849
90713743
NR
38502005-05-14 Nick Roberts <nickrob@snap.net.nz>
3851
3852 * emacs.c (syms_of_emacs): Fix doc string for system-type.
3853
68780e2a
RS
38542005-05-13 Richard M. Stallman <rms@gnu.org>
3855
3856 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
3857 (Finsert_file_contents): If we read 0 bytes from a special file,
3858 unlock the visited file if we locked it.
3859 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
03d42907 3860 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
68780e2a 3861
5063dbbf
YM
38622005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3863
3864 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
3865
3c1b433a
SM
3866 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
3867 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5063dbbf
YM
3868 redisplay from being paused by them.
3869
3870 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
3871 [!MAC_OSX] (target_ticks): Remove variable.
3872 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
3873 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
3874 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
3c1b433a 3875 event occurs before timeout, behave as if the function were interrupted.
5063dbbf
YM
3876 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
3877 handling using Time Manager routines.
3c1b433a
SM
3878 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
3879 New variables.
5063dbbf
YM
3880 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
3881 (setitimer): New functions.
3882
3883 * macfns.c, macmenu.c: Don't include signal.h.
3884
3885 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
3886 Rename from get_control_part_bound. All callers changed.
3887 (x_scroll_bar_clear): New function.
3888 (x_clear_frame): Use it.
3889 (XTset_vertical_scroll_bar): Don't call Draw1Control.
3890 (x_scroll_bar_handle_click): Change type of second argument from
3891 int to ControlPartCode.
3892 (check_alarm): Remove declaration.
02a6375c
YM
3893 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
3894 (XTread_socket): Use ControlPartCode instead of SInt16.
5063dbbf
YM
3895
38962005-05-13 Nozomu Ando <nand@mac.com>
3897
3898 * unexmacosx.c: Include assert.h.
3899 (MACOSX_MALLOC_MULT16): New define.
3900 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
3901 ptr is in unexec regions by checking it is multiple of 16.
3902 (unexec_malloc_header_t): New typedef.
3903 (unexec_malloc, unexec_realloc, unexec_free): Store and use
3904 allocated size information in unexec_malloc_header.
3905
d101bf56
RS
39062005-05-10 Richard M. Stallman <rms@gnu.org>
3907
3908 * xterm.c (noinclude): Add #undef.
3909
3910 * image.c, xfns.c, xmenu.c: Don't include signal.h.
3911
2f60660a
JB
39122005-05-09 Juanma Barranquero <lekktu@gmail.com>
3913
f1701e65
JB
3914 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
3915 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
3916 Doc fixes.
3917
2f60660a
JB
3918 * dired.c (Ffile_name_completion): Make argument name
3919 match its use in docstring.
3920
9f29e806
LT
39212005-05-08 Luc Teirlinck <teirllm@auburn.edu>
3922
3923 * eval.c (Fdefvaralias): Remove any pre-existing
3924 variable-documentation property of the alias.
3925
a790bcd4
TTN
39262005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
3927
3928 * xfns.c (start_hourglass): Do nothing when running on a tty.
3929
d5fb8dab
JB
39302005-05-07 Juanma Barranquero <lekktu@gmail.com>
3931
3932 * fns.c (Fchar_table_range): Fix typos in docstring.
3933
7ec64183
SM
39342005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3935
3936 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
3937
6ff95f1d
EZ
39382005-05-06 Eli Zaretskii <eliz@gnu.org>
3939
2c6b25c7
EZ
3940 * lread.c (Flocate_file_internal): Doc fix.
3941
6ff95f1d
EZ
3942 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
3943
17d28d26
YM
39442005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3945
3946 * macselect.c (x_own_selection): Accept Lisp string as result of
3947 selection converter function.
3948 (x_clear_frame_selections): Don't call x-lost-selection-functions
3949 if Emacs is not owner of the selection.
3950 (Vmac_services_selection): Put variable and initialization in
3951 #ifdef MAC_OSX.
3952 (syms_of_macselect) [MAC_OSX]: Set default value of
3953 Vmac_services_selection to PRIMARY.
3954
7ec64183
SM
3955 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
3956 (mac_handle_tool_bar_click): Remove unused function and declaration.
17d28d26
YM
3957 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
3958 (install_scroll_bar_timer, set_scroll_bar_timer)
3959 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
3960 (get_control_part_bound, x_scroll_bar_handle_press)
3961 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
3962 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
3963 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
3964 (scroll_bar_timer_event_posted_p): New variables.
3965 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
3966 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
3967 (x_scroll_bar_create): Set control reference with NewControl.
7ec64183
SM
3968 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
3969 Initialize track_top and track_height to nil.
3970 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
3971 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
17d28d26
YM
3972 (XTset_vertical_scroll_bar): Don't make space between scroll bar
3973 and associated window.
3974 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
3975 from window config.
7ec64183
SM
3976 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
3977 Set track_top and track_height to nil when scroll bar size is changed.
17d28d26
YM
3978 Recalculate them if they are nil.
3979 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
3980 clicked control is a scroll bar.
3981 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
3982 event handler functions. Don't add modifiers to scroll bar click
7ec64183 3983 events. Call scroll bar release handler when window is deactivated.
17d28d26 3984 (mac_initialize): Remove unused code for X toolkit.
7ec64183
SM
3985 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
3986 Initialize Vx_toolkit_scroll_bars to nil.
17d28d26 3987
7ec64183
SM
3988 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
3989 New members track_top and track_height.
17d28d26
YM
3990
3991 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
3992 init_process when including sys/select.h.
3993
643b4cf5
LT
39942005-05-05 Luc Teirlinck <teirllm@auburn.edu>
3995
3996 * eval.c (Fdefvaralias): Doc fix.
3997
3998 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
3999
99bda128
KS
40002005-05-05 Kim F. Storm <storm@cua.dk>
4001
4002 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
4003 default value.
4004 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
4005 Fix type of cursor-in-non-selected-windows.
4006
3a3563e9
JD
40072005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4008
4009 * mac.c: #undef init_process so not to conflict with system headers.
4010
0124c5bd
RS
40112005-05-02 Richard M. Stallman <rms@gnu.org>
4012
4013 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
4014
4015 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
4016
4017 * xdisp.c (Vcursor_in_non_selected_windows)
4018 (Qcursor_in_non_selected_windows): Vars deleted.
4019 (syms_of_xdisp): Don't initialize them.
4020 (get_window_cursor_type): Use cursor_in_non_selected_windows
4021 buffer slot.
4022
4b3f161f
KS
40232005-05-02 Kim F. Storm <storm@cua.dk>
4024
e40527dc
KS
4025 * macros.c (executing_kbd_macro_index): Rename from
4026 executing_macro_index. All uses changed.
4027 (executing_kbd_macro_iterations): Rename from
4028 executing_macro_iterations. All uses changed.
4029 (executing_kbd_macro): Rename from executing_macro.
4030 All uses changed.
4031 (syms_of_macros): Rename Lisp var executing-macro-index to
4032 executing-kbd-macro-index.
4033
4b3f161f
KS
4034 * xdisp.c (move_it_in_display_line_to): Fix last change.
4035
4d49edf6
LT
40362005-05-01 Luc Teirlinck <teirllm@auburn.edu>
4037
f6b1b15a
LT
4038 * xmenu.c (Fx_popup_menu): Doc fix.
4039
4d49edf6
LT
4040 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
4041
4a766fe6
JR
40422005-05-02 Jason Rumney <jasonr@gnu.org>
4043
4044 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
4045
c924d3ff
TTN
40462005-05-02 Nozomu Ando <nand@mac.com>
4047
4048 * sysselect.h: Fix typo.
4049
b161ea4e 40502005-05-02 Nick Roberts <nickrob@snap.net.nz>
5c2e5a5e 4051
b161ea4e
NR
4052 * charset.c (Fchars_in_region): Remove as obsolete.
4053
d37e919d 40542005-05-01 Kim F. Storm <storm@cua.dk>
b161ea4e
NR
4055
4056 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
7ec64183 4057 TO_CHARPOS. This may happen if last glyphs was an image or stretch
b161ea4e 4058 glyph.
5c2e5a5e 4059
bec0b768
LT
40602005-05-01 Luc Teirlinck <teirllm@auburn.edu>
4061
4062 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
4063
ebbfa918
RS
40642005-05-01 Richard M. Stallman <rms@gnu.org>
4065
4066 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
4067 If user cancels the menu, quit unless FOR_CLICK.
4068
7ec64183 4069 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
ebbfa918
RS
4070 All uses changed.
4071 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
4072 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
4073 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
4074 * commands.h (Vexecuting_kbd_macro): Likewise.
4075
a72c2d97
TTN
40762005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
4077
4078 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
4079
7e995a23
RS
40802005-04-30 Richard M. Stallman <rms@gnu.org>
4081
4082 * fileio.c (Ffind_file_name_handler): Handle the `operations'
4083 property of the file name handler.
4084 (Qoperations): New variable.
4085 (syms_of_fileio): Initialize and staticpro it.
4086
4087 * xdisp.c (set_message_1): Delete xassert.
4088
7a92caf8
YM
40892005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4090
7ec64183 4091 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
7a92caf8
YM
4092
4093 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
4094
4095 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
4096 before/after including Carbon.h if there is a working mktime.
4097
5ae91803
KS
40982005-04-28 Kim F. Storm <storm@cua.dk>
4099
4100 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
4101 Fix cyclic alias check. If alias loop is detected, signal
4102 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
4103
d79b6c21
LK
41042005-04-28 Lute Kamstra <lute@gnu.org>
4105
4106 * eval.c (do_autoload): Record only autoloads in the autoload
4107 property of symbols.
4108
8c75afbf
NR
41092005-04-28 Nick Roberts <nickrob@snap.net.nz>
4110
4111 * emacs.c (USAGE1): Add --basic-display and --quick options.
4112
832e294f
KS
41132005-04-27 Kim F. Storm <storm@cua.dk>
4114
4115 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
4116
f03f317a
RS
41172005-04-26 Richard M. Stallman <rms@gnu.org>
4118
c019856e
RS
4119 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
4120 (syms_of_window): Doc fixes.
4121
f03f317a
RS
4122 * indent.c (Fvertical_motion): Undo previous change.
4123
38f60cd9
KH
41242005-04-26 Kenichi Handa <handa@m17n.org>
4125
4126 * fns.c (char_table_range): New function.
4127 (Fchar_table_range): Signal an error if characters in the range
4128 have inconsistent values. Don't check the parent.
4129
87ede5a1
KH
41302005-04-25 Kenichi Handa <handa@m17n.org>
4131
4132 * fontset.c (fontset_set): Fix previous change.
4133
a6390474
RS
41342005-04-24 Richard M. Stallman <rms@gnu.org>
4135
4136 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
4137
7fce7dfe
EZ
41382005-04-24 Eli Zaretskii <eliz@gnu.org>
4139
cf1982d9
EZ
4140 * regex.c (re_search_2, re_match_2_internal): Convert second arg
4141 of RE_TRANSLATE to int, to shut up GCC warnings.
4142
7fce7dfe
EZ
4143 * fileio.c (Fcopy_file): Doc fix.
4144 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
4145 not needed.
4146
49ed33c7
YM
41472005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4148
4149 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
4150 (SOME_MACHINE_OBJECTS): Likewise.
4151 (mac.o): Depend on ccl.h.
4152 (macselect.o): New target.
4153
7ec64183
SM
4154 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
4155 Call syms_of_macselect.
49ed33c7
YM
4156
4157 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
4158
7ec64183 4159 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
49ed33c7
YM
4160 (QCLIPBOARD): Remove variable.
4161 (syms_of_mac): Don't initialize it.
4162 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
4163 Remove functions.
4164 (syms_of_mac): Don't defsubr them.
4165 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
4166 (QHFS_plus_D, QHFS_plus_C): New variables.
4167 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
4168 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
4169 (cfstring_create_normalized): New functions.
4170 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
4171 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
4172
7ec64183
SM
4173 * macterm.c (handling_window_update, terminate_flag):
4174 Remove variables.
4175 (do_window_update, do_ae_quit_application, XTread_socket):
4176 Don't use them.
49ed33c7
YM
4177 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
4178 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
4179 (init_service_handler): Move to macselect.c. Remove declarations.
4180 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
4181 (Qapplication, Qabout): New variables.
4182 (syms_of_mac): Initialize them.
4183 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
4184 (Qperform): New variables.
4185 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
7a92caf8 4186 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
49ed33c7
YM
4187 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
4188 (mac_store_application_menu_event, init_menu_bar): New functions.
4189 [USE_CARBON_EVENTS] (mac_handle_command_event)
4190 (init_command_handler): New functions.
4191 (mac_handle_window_event): Return noErr on window update event.
4192 (do_ae_quit_application): Call mac_store_application_menu_event.
4193 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
4194 and init_menu_bar.
4195
4196 * macterm.h (x_clear_frame_selections): Add extern.
4197
4198 * macselect.c: New file for selection processing on Mac OS.
4199
469bc679
RS
42002005-04-23 Richard M. Stallman <rms@gnu.org>
4201
4202 * fileio.c (Fcopy_file): New arg MUSTBENEW.
4203 (Frename_file): Pass new arg to Fcopy_file.
4204
4205 * window.c (window_size_fixed): Variable deleted.
4206 (syms_of_window): Initialize window-size-fixed to nil.
4207 But don't DEFVAR window_size_fixed.
4208
d379c558
AS
42092005-04-23 Andreas Schwab <schwab@suse.de>
4210
4211 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
4212 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
4213 use lib64 instead of lib.
4214 (_LP64) [_ARCH_PPC64]: Define if not defined.
4215
007d105b
TTN
42162005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
4217
4218 * s/ms-w32.h (HAVE_PWD_H): Define.
4219
b9c15916
KH
42202005-04-22 Kenichi Handa <handa@m17n.org>
4221
4222 * fns.c (copy_sub_char_table): Explicitly copy the default value
4223 of the sub-chartable.
4224
4225 * fontset.c (fontset_set): When a sub-chartable is created,
4226 explicitly sets the defalt value.
4227
1ba52906
KS
42282005-04-22 Kim F. Storm <storm@cua.dk>
4229
4230 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
4231 (Fsafe_plist_get): Rename to Fplist_get.
4232 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
4233 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
4234
4235 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
4236
4237 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
4238 (note_mode_line_or_margin_highlight, note_mouse_highlight):
4239 Use Fplist_get instead of Fsafe_plist_get.
4240
4241 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
4242
e235145c
MB
42432005-04-21 Miles Bader <miles@gnu.org>
4244
4245 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
4246
766c5349
TTN
42472005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
4248
c164a7e6
TTN
4249 * sysdep.c: Remove reference to defunct vms-pwd.h.
4250 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
4251 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
4252
766c5349
TTN
4253 * config.in: Regenerate.
4254
2b048bf5
KH
42552005-04-20 Kenichi Handa <handa@m17n.org>
4256
4257 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
4258 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
4259 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
4260
4261 * alloc.c (make_sub_char_table): Argument changed to initial
4262 value of the slots.
4263
4264 * data.c (Faref): Handle special slots used as default values of
4265 ascii, eight-bit-control, eight-bit-control. Don't ignore a
4266 default value set for a group of characters.
4267 (Faset): Signal an error if IDXVAL is not a valid character code.
4268 Make a sub-chartable with correct initial value.
4269
4270 * fns.c (Fset_char_table_range): Don't set slots used as default
7ec64183
SM
4271 values for ascii, eight-bit-control, eight-bit-graphic.
4272 Don't call Faref with charset-id.
2b048bf5
KH
4273 (Fset_char_table_default): Document how to treat normal character
4274 argument. Handle special slots used as default values of ascii,
4275 eight-bit-control, eight-bit-control. Make a sub chartable if
4276 necessary.
4277
b0a35939
KH
42782005-04-20 Kenichi Handa <handa@m17n.org>
4279
4280 * search.c (boyer_moore): Fix previous change.
4281
98dde726
KS
42822005-04-19 Kim F. Storm <storm@cua.dk>
4283
4284 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
4285 face unless last visible char and first invisible char have the
4286 same face. Also use default face if saved_face_id is undefined.
4287
327a3376
YM
42882005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4289
4290 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
4291 `full_name'.
4292 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
4293 mac_scriptcode member.
4294
4295 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
4296 (syms_of_mac): Don't initialize them.
4297 (Vmac_charset_info_alist): New variable.
4298 (syms_of_mac): Defvar it.
4299 (create_text_encoding_info_alist): New function.
4300 (decode_mac_font_name, mac_to_x_fontname)
4301 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
4302 code the correspondence among XLFD charsets, Mac script codes, and
4303 Emacs coding systems. Use Vmac_charset_info_alist and result of
4304 create_text_encoding_info_alist instead.
4305 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
4306 routines also on Mac OS Classic.
7ec64183
SM
4307 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
4308 Use add_font_name_table_entry.
327a3376
YM
4309 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
4310 specified. Derive unspecified scalable fields from specified one.
4311 (x_list_fonts): Consider Valternate_fontname_alist.
4312 (kDefaultFontSize): Change value from 9 to 12.
4313 (XLoadQueryFont): Get decoded font family, font face, and charset
4314 from x_font_name_to_mac_font_name. Set full name of loaded font.
4315 (mac_unload_font): Free `full_name' member.
4316 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
4317 NULL. Copy full_name member of struct MacFontStruct to that of
4318 struct font_info.
4319
d0636839
KS
43202005-04-19 Kim F. Storm <storm@cua.dk>
4321
5827e9d4
KS
4322 * xdisp.c (handle_stop): Set saved_face_id to current face if
4323 selective_display_ellipsis_p so ellipsis will be shown in same
4324 face as preceding text.
4325 (setup_for_ellipsis): Don't set saved_face_id here.
4326 (next_element_from_display_vector): Default to saved_face_id.
4327
d0636839
KS
4328 * fns.c (Fsafe_get): New function.
4329 (syms_of_fns): Defsubr it.
4330
4331 * lisp.h (Fsafe_get): EXFUN it.
4332
4333 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
4334 loops in case of bad face property lists. Limit number of face
4335 alias lookups to 10 (in case of face alias loops).
4336
e5c78c9d
KS
43372005-04-18 Kim F. Storm <storm@cua.dk>
4338
4339 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
4340 It replaces the corresponding member from struct window, as a
4341 window may now show multiple overlay arrows.
4342 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
4343
4344 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
4345 Compare overlay_arrow_bitmap than overlay_arrow_p members.
4346
4347 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
4348 rather than from window.
4349 (update_window_fringes): Compare overlay_arrow_bitmap rather than
4350 overlay_arrow_p members.
4351 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
4352 if not default.
4353
4354 * window.h (struct window): Remove member overlay_arrow_bitmap.
4355
4356 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
4357
4358 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
4359 Calls changed. Don't check for overlay-arrow-bitmap property here.
4360 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
4361 fringe is present, return Lisp integer for bitmap (or -1 for default).
4362 Fix value of overlay-arrow-bitmap property to be a symbol, use
4363 lookup_fringe_bitmap to parse it.
4364 (display_line): Change call to overlay_arrow_at_row. Store integer
4365 return value as overlay bitmap in row rather than window.
4366 Only show overlay arrow if row displays text, or if no other overlay
4367 arrow is seen in window (if overlay marker is at point-max).
4368
7d603e3f
TTN
43692005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
4370
4371 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
4372
9942fa0c
LK
43732005-04-18 Lute Kamstra <lute@gnu.org>
4374
4375 * lread.c (Vloads_in_progress): Static.
4376 * fns.c (Vloads_in_progress): Remove extern.
4377 (load_in_progress): Add extern.
4378 (Frequire): Use load_in_progress instead of Vloads_in_progress.
4379
999cdb8f
TTN
43802005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
4381
4382 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
4383
3f4413f8
YM
43842005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4385
4386 * macterm.c (XTread_socket): Don't beep on keyboard input even if
4387 no frame is visible.
4388
60ec7b7e
DN
43892005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4390
4391 * term.c (struct keys): Add support for shifted keys.
4392
a8a1c0ee
RS
43932005-04-16 Richard M. Stallman <rms@gnu.org>
4394
4395 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
4396 (set_message): Call with_echo_area_buffer with WHICH = 0.
4397 (set_message_1): Erase the echo area buffer first thing.
4398 (echo_area_display): Don't clear echo_message_buffer.
4399
f3cf04d3
YM
44002005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4401
4402 * Makefile.in (mac.o): Depend on charset.h and coding.h.
4403
4404 * mac.c: Include charset.h and coding.h.
4405 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
7ec64183 4406 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
f3cf04d3
YM
4407 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
4408
4409 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
4410
4411 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
4412
4413 * macterm.c (x_autoselect_window_p): Remove variable.
4414 (last_window): New variable.
7ec64183
SM
4415 (XTreassert_line_highlight, x_change_line_highlight):
4416 Remove declarations.
f3cf04d3
YM
4417 (mac_focus_changed, x_detect_focus_change): New functions and
4418 declarations.
4419 (XTextExtents16, front_emacs_window): Remove function.
4420 (mac_focus_frame): New function.
4421 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
4422 (mac_check_for_quit_char): Use it instead of front_emacs_window.
4423 (x_scroll_bar_report_motion): Obtain window from control owner.
4424 (x_make_frame_invisible): Set window manager size hint.
4425 (do_mouse_moved): Remove function.
4426 (XTread_socket): Move its contents here. Generate select-window
4427 event on mouse movement if needed. Use x_detect_focus_change on
4428 activate/deactivate events. Don't deiconify frame or invalidate
7ec64183
SM
4429 window rectangle when dnd items are dropped.
4430 Don't activate/deactivate root control.
f3cf04d3
YM
4431 (frame_highlight, frame_unhighlight): Activate/deactivate root
4432 control here.
4433 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
4434
4435 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
4436 New extern.
4437
9e5b2858
LT
44382005-04-15 Luc Teirlinck <teirllm@auburn.edu>
4439
4440 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
4441 (lisp): Use it.
4442 (SOME_MACHINE_LISP): Add tooltip.
4443
42c6741e
YM
44442005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4445
7ec64183
SM
4446 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
4447 Don't include TextEncodingConverter.h.
42c6741e
YM
4448 (mac_system_script_code, Vmac_system_locale): New variables.
4449 (syms_of_mac): Defvar them.
4450 (mac_get_system_locale): New function.
4451
7ec64183
SM
4452 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
4453 Use ENCODE_SYSTEM to encode title bar string.
42c6741e 4454 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
7ec64183
SM
4455 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
4456 Use CFStringGetSystemEncoding to get system default string encoding.
42c6741e
YM
4457
4458 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
4459 TextEncodingConverter.h.
4460
0614c575
ST
44612005-04-13 Steven Tamm <steventamm@mac.com>
4462
7e26f91b
KS
4463 * macterm.c (syms_of_macterm): Remove redundant definition of
4464 mac-pass-control-to-system.
0614c575 4465
203eb0aa
SM
44662005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4467
4468 * window.c (Fset_window_configuration): Be careful when you choose
4469 among several possible points for the new_current_buffer.
4470
a56e6111
YM
44712005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4472
4473 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
4474 poll_for_input_1. Set interrupt_input_pending to 1 instead.
b7461be9
YM
4475 (Qlanguage_change) [MAC_OS]: New variable.
4476 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
203eb0aa 4477 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
b7461be9
YM
4478
4479 * macterm.c (mac_keyboard_text_encoding)
4480 (current_mac_keyboard_text_encoding): Remove variables.
7e26f91b
KS
4481 (XTread_socket): Store language-change event if keyboard script change
4482 is detected. Don't convert input to `mac_keyboard_text_encoding'.
203eb0aa 4483 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
b7461be9 4484
7e26f91b 4485 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
a56e6111 4486
6695c528
RS
44872005-04-10 Richard M. Stallman <rms@gnu.org>
4488
4489 * emacs.c (standard_args): Rename --bare-bones to --quick.
4490 Add -D aka --basic-display.
4491
4492 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
4493
18e2d91f
RS
44942005-04-09 Richard M. Stallman <rms@gnu.org>
4495
4496 * keymap.c (where_is_internal): Convert a string used as event type
4497 into "(any string)".
4498
4499 * lread.c (Vloads_in_progress): Not static.
18e2d91f
RS
4500 * fns.c (Vloads_in_progress): Add extern.
4501 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
4502
45032005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
4504
4505 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
4506
1cf21850
LK
45072005-04-09 Lute Kamstra <lute@gnu.org>
4508
4509 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
4510 within the accessible part of the buffer.
4511
bfd93240
KS
45122005-04-09 Kim F. Storm <storm@cua.dk>
4513
4514 * lread.c (readevalloop): Add args START and END as region in
4515 current buffer to read. Callers changed.
4516 When specified, narrow to this region only when reading,
4517 not during eval. Track next point to read from during eval.
4518 Also restore point to "real" buffer position before eval.
4519 (Feval_region): Don't save excursion and restriction here, and
4520 don't narrow to region. Just pass region to readevalloop.
4521 Note: Point is now preserved even when PRINTFLAG is nil.
4522
9ba27690
KS
45232005-04-08 Kim F. Storm <storm@cua.dk>
4524
4525 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
4526
73f0d996
KS
45272005-04-06 Kim F. Storm <storm@cua.dk>
4528
4529 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
4530
369f76bb
YM
45312005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4532
4533 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
4534 (Fmac_get_preference): Doc fix.
4535
203eb0aa
SM
4536 * macfns.c (Fx_create_frame, x_create_tip_frame):
4537 Add "fontset-mac" to fallback font/fontsets.
369f76bb 4538
2ba613a6
KS
45392005-04-04 Kim F. Storm <storm@cua.dk>
4540
4d5ddddc
KS
4541 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
4542
2ba613a6
KS
4543 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
4544 Call it again after autoload.
4545
1673df2e
JD
45462005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4547
4548 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
4549 mallopt.
4550
4551 * ralloc.c (r_alloc_init): Ditto.
4552
41639988
KH
45532005-04-01 Kenichi Handa <handa@m17n.org>
4554
1cf21850
LK
4555 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
4556 (Vascii_eqv_table): Extern them.
41639988
KH
4557
4558 * casetab.c (set_case_table): If standard is nonzero, setup
4559 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
4560
4561 * search.c (looking_at_1): Use current_buffer->case_canon_table,
4562 not DOWNCASE_TABLE.
4563 (string_match_1): Likewise.
4564 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
4565 Vascii_downcase_table.
4566 (fast_string_match_ignore_case): Likewise.
4567 (search_buffer): Fix checking of boyer-moore usability.
203eb0aa
SM
4568 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
4569 No need of tranlating characters in PAT. Fix calculation of
41639988
KH
4570 simple_translate.
4571
6ca53601
SM
45722005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4573
4574 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
4575 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
4576 Use XtNtopShadowPixel and XtNbottomShadowPixel.
4577 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
4578 really work and that breaks with some versions of Xaw3d.
4579
fafbb99d 45802005-03-31 Kenichi Handa <handa@m17n.org>
bf762c98
KH
4581
4582 * coding.c (syms_of_coding): Fix previous change.
4583
6ca53601
SM
45842005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
4585
4586 * fileio.c (search_embedded_absfilename): Fix last change.
4587
bf762c98
KH
45882005-03-25 Kenichi Handa <handa@m17n.org>
4589
4590 * coding.c (syms_of_coding): Suggest to use set-coding-category in
4591 the docstring of coding-category-list.
4592
f793f885
KS
45932005-03-31 Kim F. Storm <storm@cua.dk>
4594
4595 * keyboard.c (Qmouse_fixup_help_message): New var.
4596 (syms_of_keyboard): Intern and staticpro it.
4597 (show_help_echo): Apply mouse-fixup-help-message to help string.
4598
c364fe19
KS
45992005-03-30 Kim F. Storm <storm@cua.dk>
4600
4601 * xdisp.c (display_line): Allow multiple overlay arrows in window.
4602
c70a4df6
SM
46032005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4604
4605 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
4606 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
4607 (Ffile_name_absolute_p): Use it.
4608 (search_embedded_absfilename): New fun, extracted from
4609 Fsubstitute_in_file_name. Use file_name_absolute_p.
4610 Free the pw data after use.
4611 (Fsubstitute_in_file_name): Use it.
4612 After cutting a prefix, re-check file-name-handler.
4613
6e7d0438
JR
46142005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
4615
6ca53601 4616 * w32term.h (x_output): Add focus_state.
6e7d0438
JR
4617
4618 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
4619 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
4620
65671706
SM
46212005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
4622
4623 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
4624 Use Fexit_minibuffer.
4625 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
4626
0de4dad4
SM
46272005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
4628
781da985
SM
4629 * dired.c (Ffile_attributes): Add a missing gcpro.
4630
0de4dad4
SM
4631 * alloc.c (make_number): The arg can be bigger than `int'.
4632 * lisp.h (make_number): Make prototype more precise.
4633
4634 * process.c, dired.c (Vfile_name_coding_system)
4635 (Vdefault_file_name_coding_system):
4636 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
4637 (Vdefault_file_name_coding_system): Remove unused declarations.
4638
ff18668f
JD
46392005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4640
4641 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
4642 if it failed to pop up (Gnome "show pointer on ctrl" option makes
4643 menus fail to pop up).
4644
0de4dad4 46452005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
66347da7
SM
4646
4647 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
0de4dad4 4648 Just prepend a backslash without replacing the NBSP by an SPC.
66347da7 4649
8df0ffbe
KS
46502005-03-22 Kim F. Storm <storm@cua.dk>
4651
4652 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
4653 * dispextern.h (lookup_derived_face): Fix prototype.
4654 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
4655
4656 * xdisp.c (handle_single_display_spec): Derive left-fringe and
4657 right-fringe face from fringe face.
4658
4659 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
4660 Derive face from fringe face.
4661
6ca30ba4
JD
46622005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4663
4664 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
4665
d615870a
DK
46662005-03-22 David Kastrup <dak@gnu.org>
4667
4668 * textprop.c (Fnext_char_property_change)
66347da7 4669 (Fprevious_char_property_change): Allow marker as limit.
d615870a
DK
4670 (Fnext_single_char_property_change)
4671 (Fprevious_single_char_property_change): Check that limit is a
4672 number in strings.
4673 (Fnext_single_char_property_change): Coerce position to integer.
4674 (Fprevious_single_char_property_change): Same here.
4675
32b939ea
TTN
46762005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
4677
4678 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
4679
6027e473
SM
46802005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
4681
4682 * frame.c (Fignore_event): Remove.
4683 (syms_of_frame): Don't defsubr it.
4684
4685 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
4686 redundant `ignore-event'.
4687
730f4d72
EZ
46882005-03-19 Eli Zaretskii <eliz@gnu.org>
4689
4690 * unexec.c (write_segment, unexec): Move these functions to avoid
4691 forward references (which cause errors with "gcc -gcoff").
4692
c7f6afd5
JD
46932005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4694
6027e473 4695 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9188be47 4696 that it doesn't become "tooltip". The specbind is enough.
8d5980cf 4697
c7f6afd5
JD
4698 * xrdb.c (x_load_resources): Use different char *helv when I18N
4699 is present.
4700
db328182
KH
47012005-03-17 Kenichi Handa <handa@m17n.org>
4702
66347da7 4703 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
db328182 4704
211f2210
SM
47052005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4706
4707 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
4708 Use xic_create_fontsetname even for non-Motif menus.
4709 Don't forget to free the fontsetname.
4710
4711 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
4712
c7bd5d57
RS
47132005-03-17 Richard M. Stallman <rms@gnu.org>
4714
4715 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
4716
4717 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
4718 (Fmake_symbolic_link): Use G to read the new file name.
4719
4720 * callint.c (Finteractive): Document G option.
4721 (Fcall_interactively): Implement G option.
4722
4723 * buffer.c (buffer_lisp_local_variables): New function,
4724 broken out from Fbuffer_local_variables.
4725 (clone_per_buffer_values): Use buffer_lisp_local_variables.
4726
888953f1
SM
47272005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4728
3c916d65
SM
4729 * xfns.c (xic_create_fontsetname): Add `motif' argument.
4730 Always return a freshly allocated string.
4731 (xic_create_xfontset): Adjust call.
4732
4733 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
4734 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
4735 (dump_realized_face): Fix warning.
4736
9f9e5275
SM
4737 * emacs.c (Fkill_emacs): YAILOM.
4738
888953f1
SM
4739 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
4740
48502d68
YM
47412005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4742
4743 * mac.c (HASHKEY_TERMINAL): Remove.
4744 (HASHKEY_MAX_NID): New macro.
4745 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
4746 argument.
888953f1 4747 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
48502d68
YM
4748 (xrm_create_database, xrm_q_put_resource)
4749 (xrm_merge_string_database, xrm_q_get_resource_1)
4750 (xrm_q_get_resource): Change resource database representation so
4751 that it may not use multiple hash tables for a single database.
4752 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
4753
d5161e8c
SM
47542005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
4755
11a646cd
SM
4756 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
4757
4758 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
4759 locale-coding-system, as was already done for WINDOWSNT.
4760
d5161e8c
SM
4761 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
4762 translation for chars in the 0-255 range.
4763
568b6e41
LK
47642005-03-16 Lute Kamstra <lute@gnu.org>
4765
4766 * floatfns.c (Ffloor): Doc fix.
4767
469fb3cf
YM
47682005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4769
4770 * mac.c: Include macterm.h instead of directly including Carbon.h.
4771 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
4772 (Qarray, Qdictionary): New variables.
4773 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
4774 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
4775 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
4776 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
4777 in callback for CFDictionaryApplyFunction.
4778 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
4779 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
4780 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
4781 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
4782 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
4783 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
4784 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3d454340 4785 (skip_white_space, parse_comment, parse_include_file)
469fb3cf
YM
4786 (parse_binding, parse_component, parse_resource_name, parse_value)
4787 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
4788 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
d5161e8c
SM
4789 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
4790 New functions.
469fb3cf
YM
4791
4792 * macfns.c (mac_get_rdb_resource): Remove function.
4793 (x_get_string_resource): Use xrm_get_resource.
4794
4795 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
4796
4797 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
4798 name_list_element.
4799 (mac_make_rdb): Create resource database from preferences and
4800 argument string.
4801 (mac_term_init): Save resource database to cddr part of
4802 name_list_element.
4803
4804 * macterm.h (xrm_merge_string_database, xrm_get_resource)
4805 (xrm_get_preference_database): Add externs.
4806 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
4807 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
4808 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
4809
4810 * process.c (init_process): Change `#ifdef DARWIN' to `#if
4811 defined (DARWIN) || defined (MAC_OSX)'
4812
4813 * s/darwin.h (DARWIN): Don't define.
4814
6a3fac90
YM
48152005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4816
4817 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
4818 Remove unused variables.
4819 (syms_of_macfns): Don't initialize them. Likewise for
4820 Qface_set_after_frame_default. Defvar and initialize
4821 Vx_window_horizontal_drag_shape.
4822 (x_set_mouse_color): Change mouse pointer shape.
4823 (mac_window) [!MAC_OSX]: Create root control.
469fb3cf 4824 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6a3fac90
YM
4825 (hourglass_started): New function (from xfns.c).
4826 (start_hourglass, cancel_hourglass): Put function body in #ifdef
4827 MAC_OSX.
4828 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
4829 indicator for each non-tooltip frame if needed, and show it.
d5161e8c 4830 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6a3fac90
YM
4831
4832 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
4833 Controls.h. Use ThemeCursor instead of CursHandle.
4834
d5161e8c
SM
4835 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
4836 Remove functions and declarations.
4837 (mac_set_colors): Take argument for saving background color.
4838 All callers changed.
6a3fac90
YM
4839 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
4840 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
4841 background color.
4842 (x_update_end, mac_do_track_drag): Don't reset background color.
d5161e8c
SM
4843 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
4844 Use SetThemeCursor.
6a3fac90
YM
4845 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
4846 indicator control to the upper-right corner of the window.
4847 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
4848 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
4849 (do_window_update): Update controls after updating content area.
4850 (mac_handle_window_event): Remove unused extern.
4851 (XTread_socket): Check both control handle and control part code
4852 to determine whether a scroll bar is clicked. Activate/deactivate
4853 root control instead of contained scroll bar controls.
4854 (make_mac_terminal_frame): Use ThemeCursor constants.
4855
d5161e8c
SM
4856 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
4857 New member hourglass_control.
6a3fac90 4858 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
d5161e8c 4859 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6a3fac90 4860
a7321976
YM
48612005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4862
4863 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6a3fac90 4864 coincides with that in Apple X11 except `clear', `enter' on
a7321976
YM
4865 laptops, and fn + `enter' on laptops.
4866
f7b758bd
SM
48672005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
4868
4869 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
4870 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
4871 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
4872
4873 * xfns.c (xic_defaut_fontset): New constant.
4874 (xic_create_fontsetname): New function.
4875 Extracted from create_frame_xic. Try to generate a slightly
4876 better fontset.
4877 (xic_create_xfontset): Use it.
4878 (create_frame_xic): Simplify.
4879
dac24db4
SM
48802005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
4881
4882 * fileio.c (Fmake_symbolic_link): Fix last change.
4883
e0402468
RS
48842005-03-11 Richard M. Stallman <rms@gnu.org>
4885
4886 * fileio.c (Frename_file, Fadd_name_to_file)
4887 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
4888 expand the basename of FILE relative to it.
4889
fa815b14
KH
48902005-03-11 Kenichi Handa <handa@m17n.org>
4891
4892 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
4893 before calling setup_coding_system so that autoloading of a coding
4894 system work.
4895
817d354b
JD
48962005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4897
68a505ef
JD
4898 * xfns.c (hourglass_started): New function.
4899
4900 * dispextern.h: Declare hourglass_started.
4901
4902 * keyboard.c (Fexecute_extended_command): Restart hourglass
4903 after call to Fcompleting_read if already started.
4904
817d354b
JD
4905 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
4906 GTK main loop is entered in xterm.c, thus doing the redraw.
4907
b0a6f45c
KS
49082005-03-10 Kim F. Storm <storm@cua.dk>
4909
4910 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
4911
ee5d57b0
KH
49122005-03-08 Kenichi Handa <handa@m17n.org>
4913
4914 * frame.c (x_set_font): Call set_default_ascii_font if an
4915 available font is found.
4916
4917 * fontset.c (set_default_ascii_font): New function.
dac24db4 4918 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
ee5d57b0
KH
4919
4920 * fontset.h (set_default_ascii_font): Extern it.
4921
f30c4a5c
KS
49222005-03-07 Kim F. Storm <storm@cua.dk>
4923
3fb26a86
KS
4924 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
4925 (clear_image_cache_count): New var.
4926 (redisplay_internal): Don't clear face and image caches in the
4927 middle of redisplay; do it afterwards.
4928
a54595d4
KS
4929 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
4930
f30c4a5c
KS
4931 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
4932 is valid. If not, clear phys_cursor_on_p and return.
4933
3d182f9d
AS
49342005-03-07 Andreas Schwab <schwab@suse.de>
4935
4936 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
4937
85d964de
RS
49382005-03-06 Richard M. Stallman <rms@gnu.org>
4939
4940 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
4941
4942 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
4943 (Feval, Ffuncall): Use CHECK_CONS_LIST.
4944
4945 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
4946
4947 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
4948 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
4949
3ff96c81
JL
49502005-03-05 Juri Linkov <juri@jurta.org>
4951
4952 * emacs.c (USAGE1): Replace Info node name "command arguments"
4953 with "emacs invocation".
4954 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
4955 allow arguments `--color' and `MODE' to be separated by space.
4956 Add --no-blinking-cursor, -nbc.
4957 (standard_args): Add -nbc, --no-blinking-cursor.
4958
64eb0083
TTN
49592005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
4960
4961 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
4962 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
4963 * fileio.c (Fexpand_file_name) [VMS]:
4964 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
4965 * doc.c (munge_doc_file_name) [VMS]: Likewise.
4966 (Fsnarf_documentation): Call munge_doc_file_name.
4967
ad708ae5
TTN
49682005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
4969
4970 * s/vms.h (FILE_SYSTEM_CASE): New macro.
4971 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
4972 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
4973
ba025f6d
YM
49742005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4975
4976 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
4977 defined (MAC_OSX) && defined (HAVE_CARBON)'.
ad708ae5 4978
dac24db4 4979 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
ba025f6d
YM
4980
4981 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
4982 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
dac24db4 4983 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
ba025f6d
YM
4984 (mac_clear_font_name_table): Move extern to macterm.h.
4985
4986 * macfns.c (install_window_handler): Move extern to macterm.h.
4987 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
4988 valid. Don't check !NILP (dir) because it is already checked with
4989 CHECK_STRING.
4990 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
dac24db4 4991 specifying the default location and obtaining the selected filename.
ba025f6d
YM
4992
4993 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
4994
2313f861 4995 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
ba025f6d
YM
4996 are included via Carbon.h.
4997
dac24db4
SM
4998 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
4999 Define USE_CARBON_EVENTS to 1.
2313f861 5000 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
ba025f6d
YM
5001 (x_free_frame_resources): Call remove_window_handler for
5002 non-tooltip windows.
5003 [TARGET_API_MAC_CARBON]: Don't include headers that are included
5004 via Carbon.h.
5005 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
5006 (mac_do_receive_dragUPP): New variables.
5007 (mac_handle_service_event, init_service_handler): Put declarations
5008 and definitions in #ifdef MAC_OSX.
5009 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
5010 drag-and-drop handler functions and register them.
5011 (remove_window_handler): New function.
dac24db4
SM
5012 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
5013 Use fsspec_to_posix_pathname.
ba025f6d
YM
5014 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
5015 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
dac24db4
SM
5016 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
5017 Set default cursors.
ba025f6d
YM
5018 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
5019 init_service_handler or init_quit_char_handler.
5020 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
5021
5022 * macterm.h (install_window_handler, remove_window_handler)
5023 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
5024 (mac_clear_font_name_table): New externs.
ad708ae5 5025
c1558952
TTN
50262005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
5027
5028 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
5029 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
5030 (Fexpand_file_name): Likewise.
5031
fa439170
TTN
50322005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
5033
5034 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
5035 no longer special-case VMS. Add bogus return value.
5036
db2dacf6
KS
50372005-03-02 Kim F. Storm <storm@cua.dk>
5038
5039 * dispextern.h (XASSERTS): Define to 0 if not already defined.
5040 (xassert) [!XASSERTS]: Define dummy version.
5041
0870514c
KS
50422005-03-02 Kim F. Storm <storm@cua.dk>
5043
5044 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
5045 Reported by David Kastrup.
5046
6b640092
KS
50472005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
5048
5049 * xdisp.c (get_next_display_element): Fix control and escape
5050 glyph from display vector.
5051
f4a5a485
SM
50522005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
5053
5054 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
5055
85d964de
RS
50562005-02-27 Richard M. Stallman <rms@gnu.org>
5057
5058 * xdisp.c (fast_find_position): Rename END to BEG.
5059 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
5060
6e8db3ea
JD
50612005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5062
f4a5a485 5063 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6e8db3ea
JD
5064 gtk_window_resize and x_wm_set_size_hint.
5065
0f465b55
KS
50662005-02-25 Kim F. Storm <storm@cua.dk>
5067
5068 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
5069
5070 * xdisp.c (init_from_display_pos): Don't read past end of
5071 it->overlay_strings array.
5072
d5fb8dab 50732005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
845a78b4
LK
5074
5075 * buffer.c (syms_of_buffer): Fix typo.
5076
b02c3eed
LK
50772005-02-23 Lute Kamstra <lute@gnu.org>
5078
5079 * buffer.c (Foverlay_buffer): Doc fix.
5080
c8500765
KS
50812005-02-22 Kim F. Storm <storm@cua.dk>
5082
b686dd59
KS
5083 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
5084 and symbol keys in alists and hash tables.
5085
c8500765
KS
5086 * xdisp.c (fast_find_position): Fix search for start of overlay.
5087
81c85b53
KS
50882005-02-21 Kim F. Storm <storm@cua.dk>
5089
5090 * window.c (window_scroll_pixel_based): When scrolling backwards,
5091 handle partial visible line at end of window even when we hit PT.
5092
f4a5a485 50932005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9df747e1
SM
5094
5095 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
5096
0dd5a842
KS
50972005-02-21 Kim F. Storm <storm@cua.dk>
5098
5099 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
5100 I think those asserts are bogus if buffer contains invisible text
5101 or images.
5102
d5fb8dab 51032005-02-21 David Kastrup <dak@gnu.org>
19e05d1f
KS
5104
5105 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
5106
0fba9f25
KS
51072005-02-20 Kim F. Storm <storm@cua.dk>
5108
5109 * xdisp.c (pos_visible_p): Be sure to move to the specified
5110 position. Always get the full ascent / descent of the
5111 corresponding row, to return reliable rtop and rbot values.
5112 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
5113 Must look one character back, as back_to_previous_line_start
5114 returns position after the newline.
5115 (move_it_vertically_backward): Fix heuristic for when to move further
5116 back in case line_height * 2/3 is larger than window height.
5117 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
5118 as it does not do anything anymore. Add arg current_matrix_p to
5119 use current matrix rather than desired matrix when set.
5120 (try_cursor_movement): Don't scroll to make cursor row fully
5121 visible if cursor didn't move. This avoids unexpected recentering
5122 in case of blinking cursor or accepting process output.
5123 Use current matrix to check cursor row visibility.
5124 (redisplay_window): Fix whether to recenter or move to top in case
5125 cursor line is taller than window height.
5126 (find_first_unchanged_at_end_row): Stop search if we reach a row
5127 which not enabled (instead of abort).
5128
b1c2adc3
KS
51292005-02-18 Kim F. Storm <storm@cua.dk>
5130
c2ee48fb
KS
5131 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
5132 to be nil in a :box attribute value list; customize prints that
5133 as lisp value when no box color is specified.
5134
b1c2adc3
KS
5135 * .gdbinit (pitx, pit): Pretty print display iterator.
5136 (prowx, prow): Pretty print glyph row.
5137 (pcursorx, pcursor): Pretty print a window cursor.
5138 (pwinx, pwin): Pretty print struct window.
5139
f102186f
SM
51402005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5141
5142 * alloc.c (BLOCK_BYTES): Harmless typo.
5143
9b516537
AS
51442005-02-17 Andreas Schwab <schwab@suse.de>
5145
5146 * xfns.c (hack_wm_protocols): Use correct type for last parameter
5147 of XGetWindowProperty to avoid aliasing issues.
5148 (Fx_window_property): Likewise.
5149
5150 * xselect.c (Fx_disown_selection_internal): Use union of struct
f4a5a485 5151 input_event and struct selection_input_event to avoid aliasing issues.
9b516537
AS
5152
5153 * xterm.c (handle_one_xevent): Use union of struct input_event and
5154 struct selection_input_event to avoid aliasing issues.
5155 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
5156
886b1418
KS
51572005-02-17 Kim F. Storm <storm@cua.dk>
5158
5159 * dispextern.h (enum it_method): New enum.
5160 (GET_FROM_*): Its members.
5161 (struct it): Change member method from function pointer to enum.
5162
5163 * xdisp.c (check_it, init_from_display_pos, handle_stop)
5164 (setup_for_ellipsis, handle_single_display_spec)
5165 (handle_composition_prop, next_overlay_string)
5166 (get_overlay_strings, reseat_1, reseat_to_string)
5167 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
5168 (in_display_vector_p, display_line, get_next_display_element):
5169 Change it->method from function pointer to enum.
5170 (get_next_element): New array to map it->method to function.
5171 (get_next_display_element): Use it.
5172 (set_iterator_to_next): Use switch instead of if/else chain.
5173
99ee2c6a 51742005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
52c7f9ee
JR
5175
5176 * w32select.c: Summary: Thorough rework to implement Unicode
5177 clipboard operations and delayed rendering.
5178
5179 Drop last_clipboard_text and related code, keep track of
f4a5a485 5180 ownership via clipboard_owner instead. Drop old #if0 sections.
52c7f9ee
JR
5181
5182 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
5183 (clipboard_owner, modifying_clipboard, cfg_coding_system)
5184 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
5185 (current_coding_system, current_requires_encoding)
f4a5a485
SM
5186 (current_num_nls, current_clipboard_type, current_lcid):
5187 New static variables.
52c7f9ee
JR
5188
5189 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
5190 (render, render_all, run_protected, lisp_error_handler)
5191 (owner_callback, create_owner, setup_config)
f4a5a485
SM
5192 (enum_locale_callback, cp_from_locale, coding_from_cp):
5193 New local functions.
52c7f9ee
JR
5194
5195 (term_w32select, globals_of_w32select): New global functions.
5196
5197 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
5198 clipboard_owner instead. Use delayed rendering and provide
5199 all text formats. Provide CF_LOCALE if necessary.
5200
5201 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
5202 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
5203 available. Force DOS line-ends for decoding.
5204
5205 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
5206
5207 (syms_of_w32select): Init and register new variables.
5208
5209 * w32.h: Add prototypes for globals_of_w32select and
5210 term_w32select. Make the neighboring K&R declarations into
5211 prototypes, too.
5212
5213 * emacs.c: Include w32.h to get function prototypes.
5214 (main): Call globals_of_w32select.
5215
886b1418 5216 * w32.c (term_ntproc): Call term_w32select.
52c7f9ee
JR
5217
5218 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
5219
86e61586
KS
52202005-02-16 Kim F. Storm <storm@cua.dk>
5221
5222 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
5223 at end of display vector.
5224
6407f07b
RS
52252005-02-15 Richard M. Stallman <rms@gnu.org>
5226
5227 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
5228 for mode and header lines.
5229
5230 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
5231
5232 * keymap.h (describe_map_tree): Change decl.
5233
5234 * keyboard.c (command_loop_1): Always use safe_run_hooks
5235 to run Qdeferred_action_function.
5236
5237 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
5238 (describe_map, describe_vector): Likewise. When it's 1,
5239 don't omit shadowed bindings, instead mark them as shadowed.
5240
5241 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
5242 for describe_map_tree. Pass 1 for MENTION_SHADOW.
5243
5244 * data.c (Fsetq_default): Allow no arg case.
5245
3bb917bf
KH
52462005-02-14 Kenichi Handa <handa@m17n.org>
5247
5248 * coding.c (encode_coding_string): Always return a unibyte string.
5249 If NOCOPY is nonzero and there's no need of encoding, make STR
5250 unibyte directly.
5251
5252 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
5253 multibyte string, signal an error instead of aborting.
5254
e31d908f
DN
52552005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
5256
5257 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
5258
48e029b6
KS
52592005-02-12 Kim F. Storm <storm@cua.dk>
5260
5261 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
5262
c10bb00a
KS
52632005-02-10 Kim F. Storm <storm@cua.dk>
5264
5265 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
5266 if it moves outside window or it doesn't display text.
5267
9ca0f64a
KS
52682005-02-09 Kim F. Storm <storm@cua.dk>
5269
5270 * undo.c (Fprimitive_undo): Check that undo function does not
5271 switch buffer.
5272
b8d6f4af
JD
52732005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5274
5275 * xselect.c (selection_data_to_lisp_data): For the special case
5276 type == XA_ATOM, data contains array of int, not array of Atom.
d5161e8c
SM
5277 (x_property_data_to_lisp, selection_data_to_lisp_data):
5278 Comment update: data must be array of int for format == 32.
b8d6f4af 5279
3419757d
SM
52802005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
5281
5282 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
5283
3a441526
JD
52842005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5285
fc34503b
JD
5286 * xfns.c (Fx_change_window_property): Use long array when format is 32.
5287 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
5288 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
5289 (x_set_tool_bar_lines): Check that width and height is greater than
5290 zero before clearing area.
fc34503b
JD
5291
5292 * xselect.c (x_reply_selection_request): Pass long array to
5293 XChangeProperty so that 64 bit longs are handeled correctly.
5294 (x_get_window_property): If format is 32 and long is bigger than 32
5295 bits convert data from XGetWindowProperty from long array to int array.
5296 (lisp_data_to_selection_data): When the input is a vector and the
5297 format is 32, allocate a long array even if long is bigger than 32 bits.
5298 (x_fill_property_data): Use char, short and long as the man page
5299 for XChangeProperty specifies. This way the data returned is OK for
5300 both 32 and 64 bit machines.
5301 (x_handle_dnd_message): Calculate size correctly even for 64 bit
5302 machines.
5303 (Fx_send_client_event): Undo change from 2005-02-05,
5304 x_fill_property_data now handles that case.
5305
3419757d 5306 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
5307 reason for the approach in the code.
5308
82ec225b
KS
53092005-02-07 Kim F. Storm <storm@cua.dk>
5310
5311 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
5312
ba2c991c
RS
53132005-02-06 Richard M. Stallman <rms@gnu.org>
5314
5315 * eval.c (Frun_hook_with_args)
5316 (Frun_hook_with_args_until_success)
5317 (Frun_hook_with_args_until_failure): Doc fixes.
5318
e120ea40
AS
53192005-02-05 Andreas Schwab <schwab@suse.de>
5320
3419757d 5321 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 5322
31f16913
JD
53232005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5324
5325 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
5326 the longs in a XClientMessageEvent correctly when long is 64 bits.
5327
6082a820
EZ
53282005-02-05 Eli Zaretskii <eliz@gnu.org>
5329
5330 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
5331 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
5332
0e95095b
JD
53332005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5334
5335 * xmenu.c (menubar_selection_callback): Force out GTK buffered
5336 events so the menu event comes after them. This is to prevent sit-for
5337 from exiting on buffered events directly after a menu selection,
5338 lisp code for Help => About Emacs uses sit-for.
5339
5340 * gtkutil.c (create_menus): Connect selection-done event instead of
5341 the deactivate event to deactivate_cb. This will make the last
5342 leave event come before the call to deactivate_cb, so the leave
5343 event does not make sit-for exit after a menu selection.
5344
5bb6a3c1
KS
53452005-02-03 Kim F. Storm <storm@cua.dk>
5346
5347 * dispnew.c (build_frame_matrix_from_leaf_window)
5348 [!GLYPH_DEBUG]: Fix xassert.
5349
5350 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
5351
5352 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5353
e9859e26
YM
53542005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5355
5356 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
5357 the compiling OS version.
5358
5359 * macfns.c (x_create_tip_frame): Likewise.
5360
3419757d 5361 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 5362
4e07258f
RS
53632005-02-03 Richard M. Stallman <rms@gnu.org>
5364
5365 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
5366
5367 * xdisp.c (echo_area_display): Clear echo_message_buffer.
5368
5369 * buffer.c (Fbury_buffer): Doc fix.
5370
4a34b529
ST
53712005-02-02 Steven Tamm <steventamm@mac.com>
5372
7e26f91b 5373 * macfns.c (unwind_create_frame): Fix compile error due to
f6c62d96 5374 xassert being uncondition, but predicate is.
7e26f91b 5375 * dispnew.c (update_window): Fix compile error due to
f6c62d96 5376 xassert being uncondition, but predicate is.
4a34b529 5377
d78f30b8
MB
53782005-02-02 Miles Bader <miles@gnu.org>
5379
5380 * dispextern.h (xassert): Enable unconditionally.
5381
b044278d
KS
53822005-02-02 Kim F. Storm <storm@cua.dk>
5383
5384 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
5385
56072160
KH
53862005-02-02 Kenichi Handa <handa@m17n.org>
5387
5388 * casefiddle.c (casify_object): Enable changing characters of
5389 different byte length.
5390 (casify_region): Fix loop condition, args to replace_range_2, and
5391 update opoint_byte.
5392
f4a5a485 5393 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
56072160 5394
5e1674c5
KS
53952005-02-01 Kim F. Storm <storm@cua.dk>
5396
5397 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
5398 stack before calling handle_display_prop.
5399
fb89c330
KS
54002005-01-31 Kim F. Storm <storm@cua.dk>
5401
5402 * undo.c (Qapply): New lisp var.
5403 (syms_of_undo): Intern and staticpro it.
5404 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
5405 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
5406
5407 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
5408
7bf72fa6
JH
54092005-01-30 Jesper Harder <harder@phys.au.dk>
5410
a050b1a9
KS
5411 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
5412 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 5413
03c64f2e
LT
54142005-01-29 Luc Teirlinck <teirllm@auburn.edu>
5415
5416 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 5417 Increase value to 3 Meg.
03c64f2e 5418
49b8b5dc
JD
54192005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5420
5421 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
5422 button events are not received otherwise.
5423
5a92a9eb
RS
54242005-01-29 Richard M. Stallman <rms@gnu.org>
5425
5426 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
5427
5428 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
5429
5c243ee4
SM
54302005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
5431
5432 * keymap.c (access_keymap): YAILOM.
5433
caf533af
KS
54342005-01-27 Kim F. Storm <storm@cua.dk>
5435
5436 * xdisp.c (get_phys_cursor_geometry): New function to calculate
5437 phys cursor position and size for hollow cursor. Position is
5438 aligned with get_glyph_string_clip_rect and ensures that a hollow
5439 cursor is shown, even when the actual glyph is not visible.
5440
5441 * dispextern.h (get_phys_cursor_geometry): Add prototype.
5442
5443 * xterm.c (x_clip_to_row): Ensure y >= 0.
5444 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
5445
5446 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
5447
5448 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
5449
043f7f73
SM
54502005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
5451
5452 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
5453
889f3641
KS
54542005-01-27 Kim F. Storm <storm@cua.dk>
5455
5456 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
5457 glyph, even when row is only partially visible and actual cursor
5458 position is not visible.
5459
29099c2f
RS
54602005-01-24 Richard M. Stallman <rms@gnu.org>
5461
5462 * xterm.c (x_error_quitter): No longer static, and moved after
5463 x_error_handler.
5464
6adb6f01
KS
54652005-01-24 Kim F. Storm <storm@cua.dk>
5466
5467 * xdisp.c (move_it_by_lines): If we move forward after going too
5468 far back, cancel move if end position is same as start position.
5469
4d904fa0
ST
54702005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5471
5472 * dispextern.h (struct glyph_string): New members clip_head and
5473 clip_tail.
6adb6f01 5474
4d904fa0
ST
5475 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
5476 region to the area between clip_head and clip_tail.
5477 (draw_glyphs): Record the area that need to be actually redrawn to
5478 the new variables clip_head and clip_tail when there are
5479 overhangs. Set values of these variables to the corresponding
5480 members in struct glyph_string. Refine x coordinates for
5481 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 5482
4d904fa0
ST
5483 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
5484
5485 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
5486 QDTextBounds.
5487 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 5488 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 5489 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 5490 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 5491
f2417699
KS
54922005-01-24 Kim F. Storm <storm@cua.dk>
5493
6f67f013
KS
5494 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
5495 direction if window height was smaller than next-screen-context-lines.
5496 Now always scroll at least one line in the requested direction.
5497 Ensure that we actually do scroll backwards when requested to do so.
5498
f2417699
KS
5499 * xdisp.c (redisplay_window): Only try to make cursor line fully
5500 visible once (to avoid redisplay loop).
5501
a354b72c
KS
55022005-01-23 Kim F. Storm <storm@cua.dk>
5503
6b3d88f7 5504 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 5505 partially visible rows.
6b3d88f7
KS
5506 (window_scroll_pixel_based): Adapt to that change.
5507
5c20cae2
KS
5508 * window.c (window_scroll_pixel_based): Force moving to next line
5509 if scrolling doesn't move start point, e.g. if looking at tall image.
5510
a354b72c 5511 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
5512 Clear last_height before calling line_bottom_y to get real height.
5513 Fix calculation of y.
a354b72c 5514
d9e7c622
ST
55152005-01-22 Steven Tamm <steventamm@mac.com>
5516
5517 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 5518 (DARWIN): Define.
7e26f91b 5519
d9e7c622
ST
5520 * process.c (init_process): Default process-connection-type to
5521 nil on darwin 6 or less, t if it is 7 or higher. This way the
5522 broken pty behavior is still allowed on darwin 6 for interactive
5523 processes for people that know what they are doing.
5524
d00e399a
KS
55252005-01-22 Kim F. Storm <storm@cua.dk>
5526
5527 * window.c (auto_window_vscroll_p): New boolean.
5528 (syms_of_window): DEFVAR_BOOL it.
5529 (Fpos_visible_in_window_p): Extend return value to include RTOP
5530 and RBOT values if FULLY is nil.
5531 (window_scroll_pixel_based): Adjust vscroll for partially visible
5532 rows if auto_window_vscroll_p is set.
5533 (Fset_window_vscroll): Do nothing if vscroll is not modified.
5534
5535 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
5536 to return number of partially invisible pixels at top and bottom
5537 of the dislay row at POS.
5538
5539 * lisp.h (pos_visible_p): Fix prototype.
5540
f95a20e7
RS
55412005-01-21 Richard M. Stallman <rms@gnu.org>
5542
5543 * fileio.c (Fcopy_file): Doc fix.
5544
eee141ce
JD
55452005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5546
5547 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
5548 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
5549 start of function for older compilers.
5550
6f771c32
RS
55512005-01-20 Richard M. Stallman <rms@gnu.org>
5552
5553 * editfns.c (Fmessage): If arg is "", return "" (as before).
5554
5555 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
5556
5557 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
5558 variable.
5559
a15252fd
ST
55602005-01-20 Steven Tamm <steventamm@mac.com>
5561
043f7f73 5562 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
5563 (init_editfns): Assign new variable operating-system-release
5564 based on call to uname if available.
043f7f73 5565 (get_operating_system_release): Add function to
d00e399a 5566 allow c-level access to operating system release.
a15252fd
ST
5567
5568 * config.h: Regenerated.
5569
043f7f73
SM
5570 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
5571 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
5572 using ptys as '7'.
5573
3d6a4b2d
KS
55742005-01-20 Kim F. Storm <storm@cua.dk>
5575
62fc9b0f
KS
5576 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
5577
c310aca4
KS
5578 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
5579 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
5580
5581 * macterm.c (x_draw_glyph_string_box): Likewise.
5582
5583 * w32term.c (x_draw_glyph_string_box): Likewise.
5584
3d6a4b2d
KS
5585 * indent.c (Fvertical_motion): Temporarily disable selective display.
5586
27c8be45
KS
55872005-01-19 Kim F. Storm <storm@cua.dk>
5588
77db5cf3
KS
5589 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
5590 image property.
5591
27c8be45
KS
5592 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
5593
81f498dc
KS
55942005-01-18 Kim F. Storm <storm@cua.dk>
5595
5596 * xdisp.c (fast_find_position): Backtrack to find first row if
5597 charpos is inside a display overlay that spans multiple lines.
5598
1cdb0707
KH
55992005-01-18 Kenichi Handa <handa@m17n.org>
5600
5601 * coding.c (decode_coding_iso2022): Translate invalid codes if
5602 translation-table is specified.
5603
677159ce
KS
56042005-01-18 Kim F. Storm <storm@cua.dk>
5605
5606 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
5607 change. If handle_display_prop indicates newline is replaced by
5608 image or text, move back to start of relevant overlay or interval
5609 and continue scan from there. Simplify.
5610
977284cc
KS
56112005-01-17 Kim F. Storm <storm@cua.dk>
5612
043f7f73
SM
5613 * dispnew.c (mode_line_string, marginal_area_string):
5614 Fix off-by-one error in search for glyph.
977284cc 5615
e24531b7
KS
56162005-01-16 Kim F. Storm <storm@cua.dk>
5617
5618 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
5619
5ddd7664
ST
56202005-01-16 Steven Tamm <steventamm@mac.com>
5621
043f7f73 5622 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 5623
fc2ff44b
AS
56242005-01-16 Andreas Schwab <schwab@suse.de>
5625
5626 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
5627
50af5100
JD
56282005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5629
5630 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
5631 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
5632
a2d5fca0
JD
56332005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5634
5635 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
5636 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
5637 New flags for readable_events.
043f7f73 5638 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
5639 (tracking_off): Call readable_events and get_input_pending with
5640 flag READABLE_EVENTS_DO_TIMERS_NOW.
5641 (readable_events): Move code from old readable_filtered_events here,
5642 but check new READABLE_EVENTS_* in argument flags instead of previous
5643 two boolean arguments do_timers_now and filter_events.
5644 If we are doing mouse tracking and the mouse moved, return only if
5645 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
5646 (swallow_events): Call get_input_pending with flag
5647 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 5648 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
5649 here. Replace boolean arguments do_timers_now, filter_events with
5650 flags, and pass flags to readable_events. Document new
5651 READABLE_EVENTS_* flags.
5652 (detect_input_pending_ignore_squeezables): New function.
5653 (detect_input_pending_run_timers): Call get_input_pending with flag
5654 READABLE_EVENTS_DO_TIMERS_NOW.
5655 (Finput_pending_p): Call get_input_pending with flags
5656 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
5657
5658 * dispnew.c (update_window, update_frame_1): Replace calls to
5659 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 5660 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
5661 mouse movements.
5662
5663 * lisp.h: Declare detect_input_pending_ignore_squeezables.
5664
42afbcda
ST
56652005-01-15 Steven Tamm <steventamm@mac.com>
5666
e24531b7
KS
5667 * macterm.c (Vmac_use_core_graphics): Declare variable for
5668 mac-allow-anti-aliasing.
5669 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 5670 (mac_draw_string_common): Use core graphics text rendering if
0530c679 5671 mac-allow-anti-aliasing is enabled.
743d0696 5672
42afbcda
ST
5673 * macfns.c (Fx_file_dialog): Save As dialog includes only the
5674 file name in the text box.
5675
9cdd4884
ST
56762005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5677
043f7f73
SM
5678 * macfns.c (x_set_foreground_color, x_set_background_color):
5679 Sync with xfns.c.
9cdd4884
ST
5680 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
5681 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
5682 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
5683
88948d55
KS
56842005-01-14 Kim F. Storm <storm@cua.dk>
5685
5686 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
5687
20d6de82
RS
56882005-01-13 Richard M. Stallman <rms@gnu.org>
5689
5690 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
5691 if Voverriding_terminal_local_map is non-nil.
5692
5693 * keyboard.c (syms_of_keyboard): Doc fix.
5694
f75a592e
KS
56952005-01-13 Kim F. Storm <storm@cua.dk>
5696
5697 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
52eb0373 5698 (specify 0 for FACE instead). Reorder arg list. Doc fix.
f75a592e 5699
28f94a34
RS
57002005-01-12 Richard M. Stallman <rms@gnu.org>
5701
5702 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
5703 face property for characters that don't specify one.
5704
5705 * fns.c (Frequire): Record in load-history unconditionally.
5706
57a230b1
KS
57072005-01-10 Kim F. Storm <storm@cua.dk>
5708
5709 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
5710
5711 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
5712 Callers changed.
5713 Add support to merge with lisp face id too (if face_name is t).
5714
5715 * xdisp.c (get_next_display_element, next_element_from_display_vector):
5716 Don't lookup lface_id from display table glyphs here; instead use
5717 merge_faces to merge the lisp face id into current face.
5718
8ab2c119
KS
57192005-01-09 Kim F. Storm <storm@cua.dk>
5720
5721 * dispextern.h (struct it): New member dpvec_face_id.
5722 (merge_into_realized_face): Add prototype.
5723
5724 * xfaces.c (merge_into_realized_face): New function. Used to
5725 merge escape-glyph face or face from display table into current face.
5726
5727 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
5728 (syms_of_xdisp): DEFVAR_LISP it.
5729 (escape_glyph_face): Remove var.
5730 (redisplay_window): Don't initialize it.
5731 (setup_for_ellipsis, get_next_display_element):
5732 Set it->dpvec_face_id to -1.
5733 (get_next_display_element): Test Vshow_nonbreak_escape.
5734 Do not setup escape_glyph_face.
5735 Properly merge escape-glyph face or face from display table with
043f7f73
SM
5736 current face for escape and control characters.
5737 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
5738 element of display vector.
5739 (next_element_from_display_vector): If it->dpvec_face_id is set,
5740 use that instead of lface_id from glyph itself.
5741
e0910857
JD
57422005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5743
5744 * xterm.h (struct x_output): New member, toolbar_detached.
5745
5746 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
5747 38.
5748 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
5749 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
5750 (xg_create_tool_bar): Initialize toolbar_detached.
5751 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
5752 toolbar_detached is zero.
5753
ff59904a
JD
57542005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5755
9b85e63d
JD
5756 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
5757 gtk_menu_popup if not for_click, so callbacks for the menu are called.
5758
ff59904a
JD
5759 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
5760 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 5761 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
5762
5763 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 5764 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
5765 XFLOAT_DATA to get extract number from Lisp object.
5766
f9a23a6f
KS
57672005-01-07 Kim F. Storm <storm@cua.dk>
5768
5769 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
5770 Set stop_charpos to current charpos instead of 0.
5771
28f94a34
RS
57722005-01-06 Nick Roberts <nickrob@snap.net.nz>
5773
5774 * xdisp.c (Fformat_mode_line): First arg now required.
5775
a6fffcdc
ST
57762005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5777
5778 * macterm.c (XLoadQueryFont): Correctly handle 0 size
5779 font widths that are returned from some Japanese fonts.
5780
c35b0c6b
KS
57812005-01-06 Kim F. Storm <storm@cua.dk>
5782
5783 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
5784 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
5785 (destroy_fringe_bitmap): Set fringe_faces element to nil.
5786 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
5787 fringe_faces array and init elements to nil.
5788 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
5789 non-persistent face id.
5790 (mark_fringe_data): New function for GC.
5791
5792 * alloc.c (mark_fringe_data): Declare extern.
5793 (Fgarbage_collect): Call mark_fringe_data.
5794
5795 * alloc.c (overrun_check_free): Invalidate freed memory if
5796 XMALLOC_CLEAR_FREE_MEMORY is defined.
5797
e0e76ab9
ST
57982005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5799
5800 * macfns.c: Include sys/param.h.
5801 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
5802 and function.
5803 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
5804 of filename string. Set event callback function when creating
5805 dialog boxes. Add code conversions for filenames. Don't dispose
71b7a47f 5806 of apple event descriptor record if failed to create it.
e0e76ab9
ST
5807
5808 * macterm.c: Include sys/param.h.
5809 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
5810 kEventWindowUpdate.
5811 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
5812 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
5813 of FSSpec from apple event descriptor record.
5814 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
5815 size of filename string.
5816 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
5817 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
5818 file dialog is in action.
043f7f73
SM
5819 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
5820 Reject only when there are no filename items. Set background color
e0e76ab9 5821 before (un)highlighting the window below the dragged items.
2313f861 5822 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
e0e76ab9 5823
043bc640
KH
58242005-01-05 Romain Francoise <romain@orebokech.com>
5825
5826 * term.c (encode_terminal_code): Fix buffer size computation.
5827
dd496df6
RS
58282005-01-04 Richard M. Stallman <rms@gnu.org>
5829
5830 * xdisp.c (Fformat_mode_line): Doc fix.
5831
026cdede
SM
58322005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5833
5834 * alloc.c (refill_memory_reserve): Move.
5835 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
5836 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
5837
d57c7572
RS
58382005-01-03 Richard M. Stallman <rms@gnu.org>
5839
5840 * window.c (window_scroll_pixel_based): Don't correct preserve_y
5841 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
5842
b14f868c
JR
58432005-01-03 Jason Rumney <jasonr@gnu.org>
5844
5845 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
5846 fontp->space_width to FONT_WIDTH so they are valid.
5847
5848 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
52eb0373 5849 average width. Set fontp->average_width and fontp->space_width to
b14f868c
JR
5850 their appropriate values.
5851
5852 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
5853 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
5854 fontp->space_width.
5855
e169f939
ST
58562005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5857
5858 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
5859 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
5860 metrics for max and min bounds.
5861 (x_load_font): Correctly calculate average font width metrics.
5862
19996af4
RS
58632005-01-02 Richard M. Stallman <rms@gnu.org>
5864
5865 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
5866
42d02da0
JD
58672004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5868
5869 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
5870
1db7dd46
RS
58712004-12-31 Richard M. Stallman <rms@gnu.org>
5872
b437860a
RS
5873 * xdisp.c (setup_for_ellipsis, get_next_display_element):
5874 Set it->ellipsis_p to 1 or 0.
5875 (display_line): Record whether row ends in mid-ellipsis.
52eb0373 5876 (set_cursor_from_row): If ends in ellipsis, find start of it.
b437860a
RS
5877 (cursor_row_p): If PT's at the end of the ellipsis the row
5878 ends within, don't display cursor on this row.
5879
5880 * dispextern.h (struct it): New element ellipsis_p.
5881 (struct glyph_row): New element ends_in_ellipsis_p.
5882
5883 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
5884 position if we're reading from something other than the buffer.
5885
1db7dd46
RS
5886 * window.c (window_scroll_pixel_based): Only look at
5887 Vscroll_preserve_screen_position if the old PT can't be kept.
5888 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5889
1225f637
KS
58902004-12-30 Kim F. Storm <storm@cua.dk>
5891
5892 * xdisp.c (get_line_height_property): New function extracted from
5893 original calc_line_height_property.
5894 (calc_line_height_property): Rework. Handle t and (nil . ratio).
5895 (x_produce_glyphs): Use them to handle line-height and
5896 line-spacing according to new height spec.
5897 (Qtotal): Remove.
33b2f4ea 5898 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 5899
c243063e
KH
59002004-12-30 Kenichi Handa <handa@m17n.org>
5901
5902 * fileio.c (Finsert_file_contents): Don't use
5903 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 5904 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
5905
5906 * fontset.h (struct font_info): New members space_width and
5907 average_width.
5908
5909 * frame.h (struct frame): New member space_width.
5910 (FRAME_SPACE_WIDTH): New macro.
5911
5912 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
5913
5914 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
5915 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 5916 fontp->space_width.
043f7f73 5917 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
5918 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
5919
5920 * xdisp.c (x_produce_glyphs): Calculate tab width by
5921 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
5922
456e761b
ST
59232004-12-29 Sanghyuk Suh <han9kin@mac.com>
5924
5925 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 5926 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 5927
188577ce
LT
59282004-12-29 Luc Teirlinck <teirllm@auburn.edu>
5929
5930 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
5931
99ec74b9
RS
59322004-12-29 Richard M. Stallman <rms@gnu.org>
5933
5934 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
5935
30c92fab
ST
59362004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5937
5938 * macfns.c (install_window_handler): Modify extern to return OSErr
5939 value.
5940 (mac_window): Handle return value of install_window_handler.
5941
5942 * macterm.c (reflect_byte): Remove function.
5943 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
5944 Lookup table instead.
5945 (mac_do_font_lists): Simplify calculation of the longest
5946 nonspecial string.
5947 (init_mac_drag_n_drop): Remove function and declaration.
5948 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
5949 init_mac_drag_n_drop.
5950 (mac_do_track_drag): New function and declaration.
5951 (install_window_handler): Return OSErr value.
043f7f73
SM
5952 (install_window_handler) [TARGET_API_MAC_CARBON]:
5953 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 5954 (do_ae_open_documents): Generate unibyte strings for filenames.
043f7f73
SM
5955 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
5956 Reject only non-filename items. Set event modifiers, and return value.
30c92fab 5957
4b982924
DN
59582004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
5959
5960 * coding.c (decode_coding): Fix previous change.
5961
93fdf45f
RS
59622004-12-28 Richard M. Stallman <rms@gnu.org>
5963
5964 * xdisp.c (back_to_previous_visible_line_start):
5965 Don't call handle_display_prop.
5966
5bdca8af
DN
59672004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
5968
5969 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
5970 (decode_coding_emacs_mule, encode_coding_emacs_mule)
5971 (decode_coding_iso2022, encode_designation_at_bol)
5972 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
5973 (decode_coding): Constify arguments and local vars.
5974
33385c6f
JD
59752004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5976
5977 * xmenu.c (popup_get_selection): Only pop down dialogs
5978 on C-g and Escape.
95bdef2e 5979 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
5980 (create_and_show_popup_menu, create_and_show_dialog):
5981 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 5982
b15325b2
ST
59832004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5984
5985 * dispextern.h: Change HAVE_CARBON to MAC_OS.
5986 (struct glyph_string): Likewise.
a2c7e69a 5987
b15325b2
ST
5988 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
5989 mac_initialize.
a2c7e69a 5990
b15325b2
ST
5991 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
5992 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 5993
b15325b2 5994 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 5995
b15325b2
ST
5996 * frame.c (x_set_frame_parameters, x_report_frame_params)
5997 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
5998 (x_set_border_width, Vdefault_frame_scroll_bars):
5999 Change HAVE_CARBON to MAC_OS.
a2c7e69a 6000
b15325b2
ST
6001 * image.c [MAC_OS]: Include sys/stat.h.
6002 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
6003 QuickTimeComponents.h.
a2c7e69a 6004
b15325b2
ST
6005 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
6006 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 6007 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
6008 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
6009 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
6010 (mac_clear_font_name_table): Add extern.
6011 (Fmac_clear_font_name_table): New defun.
6012 (syms_of_mac): Defsubr it.
6013 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
6014 [MAC_OSX] (select_and_poll_event): New function.
6015 [MAC_OSX] (sys_select): Use it.
6016 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
6017 [MAC_OSX && SELECT_USE_CFSOCKET]
6018 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
6019 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
6020 RunLoop for simultaneously monitoring two kinds of inputs, window
6021 events and process outputs, without periodically polling.
a2c7e69a 6022
b15325b2
ST
6023 * macfns.c (mac_initialized): Remove extern.
6024 (stricmp): Put in #if 0. All callers changed to use xstricmp in
6025 xfaces.c.
043f7f73
SM
6026 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
6027 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
6028 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
6029 (mac_get_rdb_resource): New function (from w32reg.c).
6030 (x_get_string_resource): Use it.
6031 (install_window_handler): Add extern.
6032 (mac_window): New function.
043f7f73
SM
6033 (Fx_create_frame): Use it instead of make_mac_frame.
6034 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
6035 (Fx_open_connection, Fx_close_connection): New defuns.
6036 (syms_of_macfns): Defsubr them.
043f7f73
SM
6037 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
6038 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
6039 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
6040 (x_create_tip_frame): Don't call ShowWindow.
6041 (Fx_show_tip): Call ShowWindow.
6042 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
6043 TARGET_API_MAC_CARBON'.
6044 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
6045 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 6046
043f7f73 6047 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
6048 (Window): Typedef to WindowPtr and move outside `#if
6049 TARGET_API_MAC_CARBON'.
6050 (XSizeHints): New struct.
a2c7e69a 6051
b15325b2
ST
6052 * macterm.c (x_update_begin, x_update_end)
6053 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
6054 frame.
6055 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
6056 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
6057 (construct_mouse_click): Put in #if 0.
6058 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
6059 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
6060 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
6061 (activate_scroll_bars, deactivate_scroll_bars)
6062 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
6063 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
6064 if the position is neither user-specified nor program-specified.
6065 (x_free_frame_resources): Free size_hints.
043f7f73 6066 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
b15325b2
ST
6067 (mac_clear_font_name_table): New function.
6068 (mac_do_list_fonts): Initialize font_name_table if needed.
6069 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
6070 around mac_do_list_fonts.
6071 (mac_unload_font): New function.
6072 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
6073 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
6074 and definitions with #if TARGET_API_MAC_CARBON.
6075 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
6076 (install_window_handler): Add decl.
6077 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
6078 window. Use UpdateControls. Get the rectangle that should be
6079 updated and restrict the target of expose_frame to it.
043f7f73 6080 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
6081 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
6082 (do_zoom_window): Don't use x_set_window_size.
6083 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
6084 (install_window_handler): New function.
6085 [!USE_CARBON_EVENTS] (mouse_region): New variable.
6086 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
6087 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
6088 GetEventDispatcherTarget inside BLOCK_INPUT.
6089 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
6090 Update mouse_region when mouse is moved.
6091 (make_mac_frame): Remove.
043f7f73
SM
6092 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
6093 Initialize mouse pointer shapes. Change values of f->left_pos and
6094 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
6095 Don't call ShowWindow.
b15325b2
ST
6096 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
6097 Vinvocation_name and Vsystem_name.
6098 (mac_make_rdb): New function (from w32term.c).
6099 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
6100 already been opened. Don't pass argument to
6101 mac_initialize_display_info. Don't set dpyinfo->height/width.
6102 Add entries to x_display_list and x_display_name_list.
6103 (x_delete_display): New function.
6104 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
6105 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
6106
b15325b2
ST
6107 * macterm.h (check_mac): Add extern.
6108 (struct mac_output): New member size_hints.
6109 (FRAME_SIZE_HINTS): New macro.
6110 (mac_unload_font): Add extern.
a2c7e69a 6111
b15325b2 6112 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 6113
1d1c7e75 6114 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
b15325b2 6115
92d2947b
RS
61162004-12-27 Richard M. Stallman <rms@gnu.org>
6117
043f7f73 6118 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
ebbd14f1
RS
6119 (syms_of_buffer): Don't defsubr it.
6120
6121 * process.c (list_processes_1): Set undo_list instead
6122 of calling Fbuffer_disable_undo.
6123
043f7f73 6124 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 6125 single_display_prop_string_p.
043f7f73 6126 (single_display_spec_intangible_p): Rename from
92d2947b 6127 single_display_prop_intangible_p.
043f7f73 6128 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
6129 Rewritten to be easier to understand.
6130
a2c7e69a 6131 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
6132 and variables get just NAME.
6133
6134 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
6135
6136 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
6137 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
6138 (Qdefvar): Var deleted.
6139 (syms_of_eval): Don't initialze it.
6140
6141 * lread.c (syms_of_lread) <load-history>: Doc fix.
6142
9f6fcdc5
JD
61432004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6144
6145 * xmenu.c (popup_get_selection): Pop down on C-g.
6146 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
6147 pops down menu on C-g.
6148 (xdialog_show): If dialog popped down and no button in the dialog was
6149 pushed, call Fsignal to quit.
6150 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
6151 Fsignal to quit.
6152
1d1c7e75 6153 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
9f6fcdc5
JD
6154
6155 * gtkutil.c (xg_initialize): Install bindings for C-g so that
6156 dialogs and menus pop down.
6157
d8ca23a0
KH
61582004-12-27 Kenichi Handa <handa@m17n.org>
6159
6160 * coding.c (code_convert_region): Fix calculation of `ratio'.
6161
857ae68b
JD
61622004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6163
133c0116
JD
6164 * gtkutil.c (update_frame_tool_bar): Make the value of
6165 tool-bar-button-margin control margins of images in tool bar.
6166
857ae68b
JD
6167 * alloc.c (check_depth): New variable.
6168 (overrun_check_malloc, overrun_check_realloc): Only add
6169 overhead and write check pattern if check_depth is 1 (to handle
6170 recursive calls). Increase/decrease check_depth in entry/exit.
6171 (overrun_check_free): Only check for overhead if check_depth is 1.
6172 Increase/decrease check_depth in entry/exit.
6173
bd55c35c
JD
61742004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6175
6176 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
6177 before touching input_available_clear_time, to avoid accessing it
6178 from multiple threads.
6179
66354420
JR
61802004-12-23 Jason Rumney <jasonr@gnu.org>
6181
6182 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
6183 of JPEG library.
6184
55f4edbc
RS
61852004-12-22 Richard M. Stallman <rms@gnu.org>
6186
6187 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
6188
6189 * lisp.h (Vundo_outer_limit): Fix decl.
6190
6191 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
6192 Uses changed.
6193 (syms_of_undo): Initialize appropriately.
6194 (truncate_undo_list): If it's nil, there's no limit.
6195
7a0ea9e3
KH
61962004-12-22 Kenichi Handa <handa@m17n.org>
6197
6198 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
6199
fda2922a
RS
62002004-12-21 Richard M. Stallman <rms@gnu.org>
6201
6202 * eval.c (unwind_to_catch): Clear immediate_quit.
6203
6204 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
6205 specially as `\ ' and `\-'.
6206
6207 * keyboard.c (kbd_buffer_store_event_hold):
6208 In the code for while-no-input, handle immediate_quit.
6209
6210 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
6211 Call that at the very start.
043f7f73 6212 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
6213 (syms_of_alloc): Don't define undo-limit,
6214 undo-strong-limit and undo-outer-limit here.
6215
6216 * undo.c (truncate_undo_list): Return void.
6217 Take just one argument, the buffer.
6218 Make it current, and inhibit recursive GC.
6219 Access and update the undo list directly; return void.
6220 Refer to the undo...limit variables directly.
6221 Test undo_outer_limit only after counting the whole current command.
6222 When it's exceeded, call the function in undo-outer-limit-function.
6223 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
6224 (Vundo_outer_limit_function): New variable.
6225 (syms_of_undo): Define undo-limit, undo-strong-limit
6226 and undo-outer-limit here, and undo-outer-limit-function.
6227 Doc fixes.
6228
6229 * lisp.h (truncate_undo_list): Update decl.
6230
62312004-12-21 Piet van Oostrum <piet@cs.uu.nl>
6232
6233 * fileio.c (Fread_file_name): Delete duplicates in
6234 file-name-history when history_delete_duplicates is true.
6235
68c69027
ST
62362004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6237
6238 * macterm.c (mac_do_list_fonts): Fix memory leak
6239
134579f2
RS
62402004-12-20 Richard M. Stallman <rms@gnu.org>
6241
6242 * regex.c (re_match_2_internal) <symend, wordend>:
6243 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
6244
fbe6152f
ST
62452004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6246
043f7f73
SM
6247 * macterm.c (endif, x_font_name_to_mac_font_name):
6248 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
6249 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
6250 quickly finding a specific font without needing regexps.
6251
fecad3f6
JD
62522004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6253
333f1b6f
JD
6254 * syssignal.h: Declare main_thread.
6255 (SIGNAL_THREAD_CHECK): New macro.
6256
6257 * keyboard.c (input_available_signal): Move thread checking code
6258 to macro SIGNAL_THREAD_CHECK and call that macro.
6259 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
6260
6261 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
6262
6263 * emacs.c: Define main_thread.
6264 (main): Initialize main_thread.
6265 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
6266 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
6267
6268 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
6269
6270 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
6271
6272 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
6273
043f7f73
SM
6274 * process.c (send_process_trap, sigchld_handler):
6275 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
6276
6277 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
6278
6279 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
6280
fecad3f6
JD
6281 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
6282 returning when xg_ignore_gtk_scrollbar is true.
6283
2a84c6da
KS
62842004-12-14 Kim F. Storm <storm@cua.dk>
6285
6286 * keyboard.c (read_char): Save and restore echo_string when
6287 handling input method.
6288
d9c1ce9d
RS
62892004-12-13 Richard M. Stallman <rms@gnu.org>
6290
6291 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
6292
6293 * keyboard.c (Vthrow_on_input): New variable.
6294 (syms_of_keyboard): Defvar and initialize it.
6295 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
6296
6297 * lisp.h (QUIT): Check for Vthrow_on_input.
6298 (Vthrow_on_input): Declare it.
6299
a6495ed5
KS
63002004-12-13 Kim F. Storm <storm@cua.dk>
6301
6302 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
6303 vector.
6304
24a0e22f
RS
63052004-12-12 Richard M. Stallman <rms@gnu.org>
6306
6307 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
6308
6309 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
6310 (Ftry_completion): Really use outer `zero'; eliminate inner one.
6311
d6d31e57
KH
63122004-12-12 Kenichi Handa <handa@m17n.org>
6313
6314 * term.c (encode_terminal_code): Fix previous change.
6315
6f8ffb88
SM
63162004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
6317
fb6f5cbf
SM
6318 * keyboard.c (handle_async_input): Remove pthread mutex handling.
6319 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
6320
6f8ffb88
SM
6321 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
6322 in macro arguments.
6323
6324 * minibuf.c (Ftry_completion, Fall_completions): Don't use
6325 XFASTINT blindly.
6326
6327 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
6328
c83c9f9d
JD
63292004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6330
2f25767f
JD
6331 * w32term.c (x_calc_absolute_position): Remove calculation of
6332 difference between inner and outer window. Don't subtract difference
6333 for left and top calculations.
6334
c83c9f9d
JD
6335 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
6336 for left and top calculations. Remove call to x_real_positions.
24a0e22f 6337 [Bug report by Drew Adams in November]
c83c9f9d
JD
6338 (x_check_expected_move): Do not set change_gravity to 1 when calling
6339 x_set_offset.
6340
cc1caa4e
RS
63412004-12-08 Richard M. Stallman <rms@gnu.org>
6342
6343 * xdisp.c (get_next_display_element): Use `escape-glyph' for
6344 control chars and escaped octal codes.
6345 (Qescape_glyph): New variable.
6346 (syms_of_xdisp): Initialize it.
6347 (escape_glyph_face): New variable.
6348 (redisplay_window): Initialize it.
6349
e0e30823
RS
63502004-12-07 Paul Eggert <eggert@cs.ucla.edu>
6351
6352 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
6353 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
6354
f415cacd
JD
63552004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6356
cf435f39
JD
6357 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
6358 reset_malloc_hooks.
6359
6f8ffb88
SM
6360 * keyboard.c (handle_async_input, input_available_signal):
6361 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 6362
f415cacd
JD
6363 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
6364
043f7f73 63652004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
6366
6367 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
6368
6369 * config.in: Regenerate.
6370
ded997c1
JD
63712004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6372
453a4f1b
JD
6373 * xmenu.c (Fx_popup_menu): Correct documentation about position.
6374 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
6375 if not given by a mouse click to correspond with x-popup-menu
6376 documentation.
6377
9a38524c
JD
6378 * config.in: Regenerate.
6379
aa477689
JD
6380 * gtkutil.c: Include signal.h and syssignal.h.
6381 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
6382
6383 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
6384 new variables main_thread and alloc_mutex,
6385 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
6386 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
6387 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
6388 (UN)BLOCK_INPUT.
6389 (emacs_blocked_free, emacs_blocked_malloc)
6390 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
6391 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
6392 (reset_malloc_hooks): New function.
6393
6394 * lisp.h: Declare reset_malloc_hooks.
6395
6396 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
6397
6398 * keyboard.c: Conditionally include pthread.h
6f8ffb88 6399 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
6400 thread, block signal, send signal to main thread and return.
6401
ded997c1 6402 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 6403 Set current folder in file chooser if default_filename is a directory.
ded997c1 6404
c72b0edd
SM
64052004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
6406
6407 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
6408 Remove redundant correctness checks.
6409 (regex_compile): Fix up error codes for \{..\} expressions.
6410
c721eee5
RS
64112004-12-05 Richard M. Stallman <rms@gnu.org>
6412
6413 * regex.c (regex_compile): Fix end-of-pattern case for space.
6414
d8f96db8
ST
64152004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6416
6108209e
KS
6417 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
6418 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 6419 crashes with invalid characters.
6108209e
KS
6420 * macmenu.c (add_menu_item): Use it.
6421 * image.c (image_load_quartz2d): Likewise.
6422 * macfns.c (x_set_name, x_set_title): Likewise.
6423 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
6424 creating them each time for labels.
d8f96db8 6425
ab67e8b6
RS
64262004-12-02 Richard M. Stallman <rms@gnu.org>
6427
6428 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
6429 don't use it here.
6430
6431 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
6432 (interactive_p): Skip Scalled_interactively_p frames
6433 like Sinteractive_p frames.
b8217ea6 6434 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
6435
6436 * data.c (Fmake_variable_buffer_local): Doc fix.
6437 (Fmake_local_variable): Doc fix.
6438
6439 * insdel.c (insert_from_string_before_markers)
6440 (insert_from_string): Don't modify buffer on empty insertion.
6441
6442 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
6443
f86bdc80
ST
64442004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6445
6446 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
6447 menu text as UTF8 fails.
6448
1cae6d39
KS
64492004-12-01 Kim F. Storm <storm@cua.dk>
6450
6451 * alloc.c: Add commentary for last change.
6452 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
6453 sizeof(size_t) != 4.
6454 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
6455 Use them. Also clear header and trailer of freed memory.
6456 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
6457 (string_overrun_cookie): Rename from string_overrun_pattern.
6458 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
6459
77ea0764
AS
64602004-12-01 Andreas Schwab <schwab@suse.de>
6461
6462 * lisp.h: Declare string_to_multibyte.
6463
2d5cd4e6
KH
64642004-12-01 Kenichi Handa <handa@m17n.org>
6465
6466 * w32console.c (w32con_write_glyphs): Decide coding here.
6467 Adjusted for the change of encode_terminal_code.
6468
6469 * term.c (encode_terminal_code): Don't make it "static".
6470
25a0994a
KH
64712004-11-30 Kenichi Handa <handa@m17n.org>
6472
19b1f29a 6473 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 6474 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
6475 characters at once, and return a pointer to the result of encoding.
6476 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
6477 (insert_glyphs): Likewise.
6478 (term_init): Initialize encode_terminal_bufsize to 0.
6479
6480 * coding.c (Vcode_conversion_workbuf_name): New variable.
6481 (syms_of_coding): Initialize and staticpro it.
6482 (set_conversion_work_buffer): New function.
6483 (run_pre_post_conversion_on_str): Use it.
6484 (run_pre_write_conversin_on_c_str): New function.
6485
6486 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
6487
fc7a70cc
ST
64882004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6489
6490 * keyboard.c: Don't undef SIGIO
6491 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
6492 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
6493 (macfns.o): Don't depend on ccl.h.
6494 * macfns.c (mac_frame_parm_handlers): Set handlers for
6495 Qleft_fringe and Qright_fringe.
6496 * macterm.c (mac_fill_rectangle_to_pixmap)
6497 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
6498 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
6499 Put in #if 0.
6500 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
6501 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
6502 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
6503 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
6504 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
6505 XDrawImageString. Always draw background and foreground separately.
6506 (x_draw_image_foreground): Use clipping instead of computing the
6507 intersection rectangle.
6508 (x_draw_image_glyph_string): Don't draw an image with mask to a
6509 pixmap.
6510 (x_redisplay_interface): Set flush_display_optional member to 0.
6511 (XTread_socket): Correctly reset the TEConverter
6512 object.
6513
fc368889
KS
65142004-11-30 Kim F. Storm <storm@cua.dk>
6515
6516 * lisp.h: New defines to enable buffer overrun checking.
6517 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
6518 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
6519
6520 * alloc.c: Add more checks for buffer overruns.
6521 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
6522 xmalloc_overrun_check_trailer, overrun_check_malloc)
6523 overrun_check_realloc, overrun_check_free): Add.
6524 (GC_STRING_EXTRA, string_overrun_pattern): Add.
6525 (check_sblock, allocate_string_data, compact_small_strings):
6526 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
6527 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
6528 (check_string_free_list): Add.
6529 (allocate_string, sweep_strings): Call check_string_free_list.
6530
6531 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
6532 XMALLOC_OVERRUN_CHECK to avoid crash during load.
6533
0af8cfe1
KS
65342004-11-29 Kim F. Storm <storm@cua.dk>
6535
6536 * fns.c (concat): Use SAFE_ALLOCA.
6537
77220eeb
SM
65382004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
6539
6540 * sysdep.c (emacs_write): Don't use QUIT.
6541
a778cf63
KH
65422004-11-29 Kenichi Handa <handa@m17n.org>
6543
6544 * buffer.c (init_buffer): Set current_buffer->directory to a
6545 multibyte string made by string_to_multibyte.
6546
77220eeb 6547 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 6548
e3177e43
AS
65492004-11-27 Andreas Schwab <schwab@suse.de>
6550
6551 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
6552
6553 * s/gnu-linux.h: Enable no-op gcpros on ia64.
6554 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
6555
77220eeb
SM
6556 * filelock.c (lock_file_1): Call get_boot_time early.
6557 Increase buffer size.
e3177e43 6558
ca5e6fef
EZ
65592004-11-27 Eli Zaretskii <eliz@gnu.org>
6560
6561 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
6562 is not defined.
6563
e2811828
KS
65642004-11-27 Kim F. Storm <storm@cua.dk>
6565
6566 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
6567 marker out of doc string.
6568
7a262394
SM
65692004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
6570
6571 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
6572 which was not mentioned in the log.
6573
f33cc5a9
KS
65742004-11-26 Kim F. Storm <storm@cua.dk>
6575
048bb03f
KS
6576 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
6577 angle bitmaps at top/bottom line.
6578
52eb0373 6579 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
f33cc5a9
KS
6580 set it when it->method is set to next_element_from_display_vector.
6581 (setup_for_ellipsis): Add LEN argument. Callers changed.
6582 Set it->saved_face_id.
6583 (get_next_display_element): Use loop instead of recursion.
6584 Set it->saved_face_id. Combine duplicate code for ctr chars.
6585 (next_element_from_display_vector): Do not set it->saved_face_id.
6586 (next_element_from_ellipsis): Use setup_for_ellipsis.
6587
670e8906
EZ
65882004-11-26 Eli Zaretskii <eliz@gnu.org>
6589
6590 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
6591 prevent compiler warnings.
6592
275464e7
SM
65932004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
6594
1bf0e604
SM
6595 * keyboard.c (command_loop_1): Print a message describing the key
6596 the user just pressed when this key has no binding.
6597
275464e7
SM
6598 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
6599 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
6600
6601 * lread.c (readchar): Check QUIT when `getc' is interrupted.
6602
261b01c6
RS
66032004-11-24 Richard M. Stallman <rms@gnu.org>
6604
6605 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
6606
6607 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
6608
a5bd504e
KS
66092004-11-24 Kim F. Storm <storm@cua.dk>
6610
6611 * xdisp.c (move_it_in_display_line_to, display_line):
6612 Restore saved_face_id also when truncate-lines or hscrolled.
6613
255e4140
JD
66142004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6615
6616 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
6617 x-use-old-gtk-file-dialog.
6618
6619 * xfns.c: Define x_use_old_gtk_file_dialog.
6620 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
6621 outside ifdef USE_GTK.
6622
cab27d04
SM
66232004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
6624
6625 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
6626 Don't use XFASTINT blindly.
6627
6628 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
6629
6630 * indent.c (skip_invisible): Avoid non-idempotent side-effects
6631 in macro arguments.
6632
6633 * keymap.c (Flookup_key): Check INTEGERP before XINT.
6634
6635 * lread.c (oblookup): Don't use XFASTINT blindly.
6636
6637 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
6638 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
6639
11e0be49
KS
66402004-11-23 Kim F. Storm <storm@cua.dk>
6641
4d721114
KS
6642 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
6643 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
6644
11e0be49
KS
6645 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
6646 signal_p is zero and face name is unknown.
6647 (Fx_list_fonts): Don't signal error in lookup_named_face.
6648 (Fface_font): Signal error in lookup_named_face.
6649 (ascii_face_of_lisp_face): Likewise.
6650
6651 * dispextern.h (lookup_named_face): Fix prototype.
6652
6653 * xdisp.c (handle_single_display_prop): Don't signal error in
6654 lookup_named_face for unknown fringe face name.
6655 (highlight_trailing_whitespace): Don't signal error in
6656 lookup_named_face if trailing-whitespace face unknown.
6657 (calc_line_height_property): Don't signal error in
6658 lookup_named_face if specified face name is unknown.
6659
6660 * fringe.c (update_window_fringes): Show top row indicator if
6661 window has header-line. Don't show arrow at bob and eob
6662 if the boundary indicators are not used.
6663 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
6664
6665 * window.c (set_window_buffer): Clear display_error_modiff.
6666
0960a582
KS
66672004-11-22 Kim F. Storm <storm@cua.dk>
6668
6669 * fringe.c (update_window_fringes): Provide sensible fall-back
6670 value for non-nil indicate-buffer-boundaries setting.
6671
b0e9bb28
MR
66722004-11-22 Markus Rost <rost@ias.edu>
6673
6674 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
6675
d0bce91e
SM
66762004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
6677
6678 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
6679
e1814672
KS
66802004-11-21 Kim F. Storm <storm@cua.dk>
6681
b7fd3518
KS
6682 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
6683
6684 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
6685 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
6686
6687 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
6688 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
6689
6690 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
6691 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
6692
d0bce91e
SM
6693 * xdisp.c (move_it_in_display_line_to, display_line):
6694 Restore saved_face_id if overflow-newline-into-fringe is enabled and
6695 line is continued before or in middle of element from display vector.
f01d4d05 6696
f1a61389
KS
6697 * indent.c (Fvertical_motion): Fix last change. Use another
6698 method to detect if iterator moved too far ahead after reseat.
6699
e1814672
KS
6700 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
6701 expand matrix width for overflow in zero-width area.
6702 (append_glyph, append_composite_glyph, produce_image_glyph)
6703 (append_stretch_glyph): Use it to avoid loop in redisplay.
6704 (note_mode_line_or_margin_highlight): Don't let help-echo from
6705 string override help-echo from image map.
6706
2dafe1c9
LT
67072004-11-20 Luc Teirlinck <teirllm@auburn.edu>
6708
d0bce91e 6709 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
6710 * callint.c (Fcall_interactively): Ditto.
6711
fd6866c8 67122004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
6713
6714 * minibuf.c (Fminibuffer_complete_and_exit):
6715 Fixup the case of the completed value, for case-indep completion.
6716
dedbac89
RS
67172004-11-20 Richard M. Stallman <rms@gnu.org>
6718
fd6866c8
RS
6719 * lisp.h (Fread_from_minibuffer): Add arg in decl.
6720
9d00469f 6721 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 6722 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 6723
dedbac89 6724 * search.c (Vsearch_spaces_regexp):
d0bce91e 6725 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 6726
2f672bb5
TTN
67272004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
6728
6729 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
6730
f31a9a68
RS
67312004-11-19 Richard M. Stallman <rms@gnu.org>
6732
6733 * search.c (Vsearch_whitespace_regexp): New variable.
6734 (syms_of_search): Defvar it.
6735 (compile_pattern_1): Call re_set_whitespace_regexp with it.
6736 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
6737 is non-nil.
6de891db
RS
6738 (struct regexp_cache): New element whitespace_regexp.
6739 (syms_of_search): Initialize whitespace_regexp elements.
6740 (compile_pattern): Compare whitespace_regexp elements.
6741 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
6742
6743 * regex.c (regex_compile): Substitute whitespace_regexp
6744 for spaces, if it is nonzero.
6745 (whitespace_regexp): New variable.
6746 (re_set_whitespace_regexp): New function.
6747
cbc34cb3
KS
67482004-11-19 Kim F. Storm <storm@cua.dk>
6749
6750 * indent.c (Fvertical_motion): Fix last change.
6751
b54a7539
KS
67522004-11-18 Kim F. Storm <storm@cua.dk>
6753
6754 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
6755 Instead, move back again if reseating moves too far ahead.
6756
67572004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
6758
6759 * xdisp.c (message3): Call clear_message.
6760
5ff504fe
KS
67612004-11-17 Kim F. Storm <storm@cua.dk>
6762
6763 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
6764
5ae53dcf
JD
67652004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6766
d0bce91e 6767 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 6768
6abf3a27 6769 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
6770 (x_menu_set_in_use): Also set popup_activated_flag.
6771
5ff504fe 6772 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
6773 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
6774
52eb0373 6775 * xterm.h (x_menu_in_use): Remove.
5ae53dcf 6776
ee31cd78
RS
67772004-11-16 Richard M. Stallman <rms@gnu.org>
6778
6abf3a27
SM
6779 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
6780 Use map-keymap-internal to implement that.
ee31cd78
RS
6781
6782 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
6783
6abf3a27
SM
67842004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
6785
6786 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
6787 a window before using XWINDOW.
6788
6789 * window.c (make_window, Fselect_window, make_dummy_parent)
6790 (save_window_save):
6791 * frame.c (make_frame):
6792 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
6793
6794 * lisp.h (NILP): Use EQ rather than XFASTINT.
6795
b4d61105
KS
67962004-11-16 Kim F. Storm <storm@cua.dk>
6797
6abf3a27 6798 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 6799
b4d61105
KS
6800 * indent.c (Fvertical_motion): Fix last change. Only reseat when
6801 moving backwards.
6802
68032004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
6804
6805 * dispextern.h: Extern reseat_at_previous_visible_line_start.
6806
ab5b02b0
KH
68072004-11-16 Kenichi Handa <handa@m17n.org>
6808
6809 * xdisp.c (display_mode_element): Fix previous change (calculate
6810 end position of substring to display correctly).
6811
c482cf97
KS
68122004-11-16 Kim F. Storm <storm@cua.dk>
6813
6814 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
6815 Reported by Andrew M. Scott.
6816
9f89426b
KS
68172004-11-15 Kim F. Storm <storm@cua.dk>
6818
6819 * fns.c (Fsafe_plist_get): New defun.
6820 (syms_of_fns): Defsubr it.
6821
6822 * lisp.h (Fsafe_plist_get): Add EXFUN.
6823
6824 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
6825 Use Fsafe_plist_get.
6826 (note_mode_line_or_margin_highlight, note_mouse_highlight):
6827 Fix image map element parsing. Use Fsafe_plist_get.
6828
27418463
RS
68292004-11-15 Richard M. Stallman <rms@gnu.org>
6830
6831 * xdisp.c (get_next_display_element): Fix previous change.
6832
a130b901
JD
68332004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6834
ef614e04
JD
6835 * window.c (shrink_windows): Handle special case of one window left
6836 when trying to shrink the final reminder. Grow windows if
6837 total_removed is less than total_shrink.
6838
a130b901
JD
6839 * xmenu.c (pop_down_menu): Remove global variable current_menu,
6840 extract pointer from arg with XSAVE_VALUE.
46303896
KS
6841 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
6842 Construct arg to record_unwind_protect with make_save_value.
a130b901 6843
d9a03ad2
RS
68442004-11-13 Richard M. Stallman <rms@gnu.org>
6845
6846 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
6847 (get_next_display_element): Fix previous change to apply only to \n.
6848
6849 * indent.c (Fvertical_motion): Scan to PT from start of line to
6850 make iterator consistent.
6851
6852 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
6853
b3935289
JD
68542004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6855
6856 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
6857
6858 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
6859 Record unwind with clean_up_file_dialog.
6860
78819ebb
KS
6861 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
6862 Declare.
b3935289
JD
6863
6864 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
6865
af89e871
JD
68662004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6867
457a8155 6868 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 6869 (xg_file_sel_destroy): Remove.
46303896
KS
6870 (xg_file_response_cb, pop_down_file_dialog)
6871 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 6872 New functions.
6abf3a27
SM
6873 (xg_get_file_with_chooser, xg_get_file_with_selection):
6874 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
6875 Move common code to xg_get_file_name. Return widget created.
6876 (xg_get_file_name): Set name, transient for, modal and destroy
6877 with parent here. Connect response signal to xg_file_response_cb,
6878 connect delete-event to gtk_true. Record pop_down_file_dialog
6879 for unwind. Do event loop and call x_menu_wait_for_event in loop.
6880 (xg_create_widget): Make dialogs modal.
6881
af89e871
JD
6882 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
6883 Lisp_Object.
6884 (popup_get_selection): Move unwind protect ...
6885 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
6886 Move destroy of widget to pop_down_menu.
6887 (popup_widget_loop): Move unwind protect ...
6888 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
6889 Move destroy of widget to pop_down_menu.
6890 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 6891 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
6892 x_mouse_leave and grabbed = 0 to pop_down_menu.
6893
5596fbf1
KS
68942004-11-13 Kim F. Storm <storm@cua.dk>
6895
6896 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
6897 (syms_of_xdisp): DEFVAR_BOOL it.
6898 (make_cursor_line_fully_visible, try_cursor_movement)
6899 (try_window_id): Use it.
6900
b9de078a
KS
69012004-11-12 Kim F. Storm <storm@cua.dk>
6902
381f7091
KS
6903 * dispextern.h (struct glyph_row): New member extra_line_spacing.
6904 (struct it): New member max_extra_line_spacing.
6905 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
6906 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
6907 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
6908 part of last line is only extra line spacing (so the text on the
52eb0373 6909 line is fully visible). Use helper macros.
381f7091
KS
6910 Add W arg (to use them). All callers changed.
6911 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
6912 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
6913
6abf3a27
SM
6914 * window.c (window_scroll_pixel_based, Frecenter):
6915 Use move_it_vertically_backward directly.
381f7091
KS
6916 (Frecenter): Fix calculation of new start pos for negative arg.
6917 Before, the new start pos was sometimes chosen too far back, so
6918 the last line became only partially visible, and thus would be
6919 either only semi-visible or automatically scrolled to the middle
6920 of the window by redisplay.
6921
6922 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
6923 (move_it_vertically_backward): Don't recure to move further back.
6924 (move_it_vertically): Remove superfluous condition.
6925 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 6926 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
6927 (display_tool_bar_line): Clear row->extra_line_spacing.
6928 (try_scrolling): Use move_it_vertically_backward directly.
6929 (redisplay_window): Likewise.
6930 (compute_line_metrics): Set row->extra_line_spacing.
6931 (display_line, display_string): Likewise.
6932 (x_produce_glyphs): Update it->max_extra_line_spacing.
6933
b9de078a
KS
6934 * xmenu.c (pop_down_menu): Return nil.
6935
c3438661
JD
69362004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6937
6938 * xmenu.c (x_menu_wait_for_event): New function.
1d1c7e75 6939 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
c3438661 6940 to handle timers.
df00f436
JD
6941 (popup_widget_loop): Add argument do_timers.
6942 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
6943 do_timers to popup_widget_loop.
c3438661
JD
6944 (xmenu_show): Call XMenuActivateSetWaitFunction so that
6945 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 6946 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 6947 popup_get_selection.
f1d1cd24
JD
6948 (pop_down_menu): New function.
6949 (popup_get_selection, popup_widget_loop): Unwind protect to
6950 pop_down_menu.
6951 (popup_widget_loop): Add argument widget.
6952 (create_and_show_popup_menu, create_and_show_dialog): Pass new
6953 argument widget to popup_widget_loop.
c3438661 6954
32e2fb04
SM
69552004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6956
6957 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
6958
0faf6806
KS
69592004-11-09 Kim F. Storm <storm@cua.dk>
6960
6961 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
6962 Fix various comments referring to XEvents instead of input events.
6963 (x_queue_event): Fix format strings.
6964 (x_stop_queuing_selection_requests): Likewise.
6965
6966 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
6967 (pint2hrstr): Add extra braces to silence compiler.
6968
6969 * print.c (print_object): Fix format string.
6970
6971 * lread.c (read1): Fix next_char matching.
6972
6973 * lisp.h (Fdelete): Add EXFUN.
6974 (replace_range_2): Add prototype.
6975
6976 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
6977
6978 * intervals.h (NULL_INTERVAL_P): Add separate version when
6979 ENABLE_CHECKING is not defined to silence compiler.
6980 (compare_string_intervals): Add prototype.
6981
6982 * fringe.c (destroy_fringe_bitmap): Fix return type.
6983 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
6984
6985 * emacs.c (Fdump_emacs): Fix format string.
6986
6987 * doc.c: Include <ctype.h>.
6988 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
6989
6990 * data.c (store_symval_forwarding): Remove unused variables.
6991
6992 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
6993
16bf4e32
JD
69942004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6995
6996 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
6997 to ${OLDXMENU}.
6998
cdb805a9
KS
69992004-11-09 Kim F. Storm <storm@cua.dk>
7000
7001 * process.c (Fmake_network_process): Remove kludge for interrupted
7002 connects on BSD. If connect is interrupted, just close socket and
7003 start over rather than sleeping and retry with same socket.
7004
d87a9ab8 70052004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 7006
a8b16c80
JD
7007 * .cvsignore: Add buildobj.lst.
7008
d87a9ab8
JD
7009 * doc.c: New variable Vbuild_files.
7010 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
e7427ac1 7011 file names from buildobj.lst. Only attach docstrings from files
d87a9ab8
JD
7012 that are in Vbuild_files.
7013 (syms_of_doc): Defvar Vbuild_files.
7014
7015 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
7016 and w32*.o.
7017 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 7018 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
7019
7020 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
7021 is linked.
7022
b6709e77
KS
70232004-11-09 Kim F. Storm <storm@cua.dk>
7024
7025 * fringe.c (update_window_fringes): Update fringe bitmaps if
7026 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
7027 also update previous row to get rid of misc. artifacts.
7028
bae9677d
KS
70292004-11-08 Kim F. Storm <storm@cua.dk>
7030
7031 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 7032 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 7033
3f8ea68c
EZ
70342004-11-08 Eli Zaretskii <eliz@gnu.org>
7035
7036 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
7037 Don't include <sys/time.h> explicitly.
7038 Include <stdio.h> unconditionally, not just on MacOS.
7039
a653f812
KH
70402004-11-08 Kenichi Handa <handa@m17n.org>
7041
7042 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
7043 don't pay attention to '\' before '*'.
7044 (fontset_pattern_regexp): Change the meaning of the second arg.
7045 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
7046 (check_fontset_name): Try NAME as literal at first, and if it
7047 failes, try NAME as pattern.
7048
c37caf9d
JD
70492004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7050
7051 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
7052
b72915a7
AS
70532004-11-07 Andreas Schwab <schwab@suse.de>
7054
78819ebb
KS
7055 * lisp.h (Fmsdos_downcase_filename): Declare.
7056 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
7057 * fileio.c: Likewise.
7058
238a44a8
JD
70592004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7060
7061 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
7062 comparisons with integers instead of Lisp_Object address.
7063 (Fmsdos_set_keyboard): Declare argument allkeys.
7064
7065 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
7066
78819ebb 7067 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
7068 int/Lisp_Object mixup.
7069
7070 * fileio.c: Ditto.
7071
31141c13
ST
70722004-11-06 Steven Tamm <steventamm@mac.com>
7073
7074 * editfns.c: Need to include sys/time.h before resource.h on darwin.
7075
f28c1bd9
RS
70762004-11-06 Richard M. Stallman <rms@gnu.org>
7077
7078 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
7079
7080 * xfaces.c (merge_named_face): GCPRO the face_name in the
7081 named_merge_point struct that we make.
7082 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
7083
7084 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
7085 before deciding whether to inactivate mark.
7086
59dede22
EZ
70872004-11-06 Lars Brinkhoff <lars@nocrew.org>
7088
7089 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
7090 * editfns.c (Fget_internal_run_time): New function.
7091 (syms_of_data): Defsubr it.
7092 * fns.c (sxhash): As far as possible, merge calculation of
7093 hash code for symbols and strings.
59dede22 7094
27540e81
EZ
70952004-11-06 Eli Zaretskii <eliz@gnu.org>
7096
7097 * frame.c (syms_of_frame): Fix the example in the doc string.
7098
df470e3b
JD
70992004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7100
7101 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
7102
7103 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
7104 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 7105
4cc8522c
LT
71062004-11-05 Luc Teirlinck <teirllm@auburn.edu>
7107
7108 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
7109
d4a42098
KS
71102004-11-05 Kim F. Storm <storm@cua.dk>
7111
a8490886
KS
7112 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
7113
d4a42098
KS
7114 * fileio.c (Ffile_modes): Doc fix.
7115 (auto_save_1): Check for Ffile_modes nil value.
7116
36a2b04c
KS
71172004-11-05 Kim F. Storm <storm@cua.dk>
7118
7119 * xselect.c (struct selection_event_queue, selection_queue)
7120 (x_queue_selection_requests, x_queue_event)
7121 (x_start_queuing_selection_requests)
7122 (x_stop_queuing_selection_requests): Add new queue for selection
7123 input events to replace previous XEvent queue in xterm.c.
7124 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
7125 (x_reply_selection_request): Adapt to new queue.
7126 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
7127 (x_handle_selection_request, x_handle_selection_clear): Make static.
7128 (x_handle_selection_event): New function. May queue selection events.
7129 (wait_for_property_change_unwind): Use save_value instead of cons.
7130 Clear property_change_reply_object.
7131 (wait_for_property_change): Abort if already waiting.
7132 Use save_value instead of cons for unwind data.
7133 (x_handle_property_notify): Skip events already arrived, but don't
7134 free them, as "arrived" field is checked by wait_for_property_change,
7135 and it will be freed by unwind or explicit unexpect_property_change.
7136 (x_get_foreign_selection): Add to new queue.
7137 (receive_incremental_selection): Don't unexpect wait_object when done
7138 as it has already been freed by previous wait_for_property_change.
7139
7140 * xterm.h (x_start_queuing_selection_requests)
7141 (x_stop_queuing_selection_requests, x_handle_selection_request)
7142 (x_handle_selection_clear): Remove prototypes.
7143 (x_handle_selection_event): Add prototype.
7144
7145 * xterm.c (handle_one_xevent): Don't queue X selection events
7146 here, it may be too late if we start queuing after we have already
7147 stored some selection events into the kbd buffer.
7148 (struct selection_event_queue, queue, x_queue_selection_requests)
7149 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
7150 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
7151 (x_catch_errors_unwind): Block input around final XSync.
7152
7153 * keyboard.h (kbd_buffer_unget_event): Add prototype.
7154
7155 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
7156 (kbd_buffer_unget_event): New function.
7157 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
7158 and use x_handle_selection_event.
7159 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
7160
9c3ad9e1
JD
71612004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7162
7163 * xselect.c (TRACE3): New debug macro.
7164 (x_reply_selection_request): Use it.
7165 (receive_incremental_selection): In call to TRACE0, the name of
7166 a symbol is in xname.
7167
a33b89de
KS
71682004-11-05 Kim F. Storm <storm@cua.dk>
7169
7170 * fontset.c (fontset_pattern_regexp): Use unsigned char.
7171
a872928c
JD
71722004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7173
88208bb8
JD
7174 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
7175
78819ebb 7176 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
7177
7178 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 7179 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
7180 * xfns.c (syms_of_xfns): ... to here.
7181
a872928c
JD
7182 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
7183 it doesn't start with /.
7184
b912921c
KH
71852004-11-04 Kenichi Handa <handa@m17n.org>
7186
7187 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
7188 treat it as a literal character.
7189
c524d9a6
KS
71902004-11-03 Kim F. Storm <storm@cua.dk>
7191
7192 * .gdbinit (ppt): New function.
7193
8cfd0f36
JD
71942004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7195
a11e1dce
JD
7196 * xterm.c (x_window_to_scroll_bar): Only call
7197 xg_get_scroll_id_for_window if toolkit scroll bars are used.
7198
8cfd0f36
JD
7199 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
7200 of save.
7201
a93563fd
AS
72022004-11-02 Andreas Schwab <schwab@suse.de>
7203
7204 * window.c (Fscroll_right): Fix last change.
7205
2b2d59d8
KS
72062004-11-02 Kim F. Storm <storm@cua.dk>
7207
7208 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
7209
72102004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7211
7212 * callproc.c (Fcall_process): Block input around vfork.
7213
ca28104d
KS
72142004-11-02 Kim F. Storm <storm@cua.dk>
7215
7216 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
7217 (syms_of_eval): Defsubr it.
7218
29bb7127
RS
72192004-11-02 Richard M. Stallman <rms@gnu.org>
7220
7221 * insdel.c (replace_range_2): New function.
7222
7223 * casefiddle.c (casify_region): Handle changes in byte-length
7224 using replace_range_2.
7225
7226 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
7227
b6189c3b 7228 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
7229 Subtract 1 from pos when checking previous newline for invisibility.
7230
7231 * window.c (window_scroll_pixel_based): Update preserve_y
7232 for header line if any.
7233 (Fscroll_left, Fscroll_right): Don't call interactive_p;
7234 use a new second argument instead.
7235
7236 * eval.c (Fcall_interactive_p): New function.
7237 (interactive_p): Don't test INTERACTIVE here.
7238 (Finteractive_p): Doc fix.
7239
7240 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
7241
b6189c3b 72422004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
7243
7244 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 7245 comparing font names.
a3fe4aaf 7246
2a00cdb4
JD
72472004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7248
f9d64bb3
JD
7249 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
7250 Fx_file_dialog if only directories should be read.
7251
7252 * lisp.h: Fx_file_dialog takes 5 parameters.
7253
32e2fb04
SM
7254 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
7255 Add parameter only_dir_p.
f9d64bb3
JD
7256 In Motif version, don't put DEFAULT_FILENAME in filter part of the
7257 dialog, just text field part. Do not add DEFAULT_FILENAME
7258 to list of files if it isn't there.
7259 In GTK version, pass only_dir_p parameter to xg_get_file_name.
7260
32e2fb04
SM
7261 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
7262 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
7263 a save dialog, add option kNavDontConfirmReplacement, change title
7264 to "Enter name", change text for save button to "Ok".
7265
32e2fb04
SM
7266 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
7267 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
7268
7269 * gtkutil.c (xg_get_file_with_chooser)
7270 (xg_get_file_with_selection): New functions, only defined ifdef
7271 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
7272 respectively.
7273 (xg_get_file_name): Add parameter only_dir_p.
7274 Call xg_get_file_with_chooser or xg_get_file_with_selection
7275 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
7276 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
7277
7278 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
7279
2a00cdb4
JD
7280 * config.in: Rebuild (added HAVE_GTK_FILE_*).
7281
f6749d5d
KS
72822004-11-01 Kim F. Storm <storm@cua.dk>
7283
32e2fb04
SM
7284 * process.c (connect_wait_mask, num_pending_connects):
7285 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 7286 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
7287 (IF_NON_BLOCKING_CONNECT): New helper macro.
7288 (wait_reading_process_output): Only declare and use local vars
7289 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 7290
1a99fe1a
JR
72912004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
7292
7293 * w32term.c (x_scroll_run): Delete region objects after use.
7294
fcdb28b4
JD
72952004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7296
495ef86b
JD
7297 * xmenu.c: Add prototypes for forward function declarations.
7298 (popup_get_selection): Remove parameter do_timers, remove call to
7299 timer_check.
32e2fb04
SM
7300 (create_and_show_popup_menu, create_and_show_dialog):
7301 Remove parameter do_timers from call to popup_get_selection.
495ef86b 7302
12e6566a
JD
7303 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
7304 tool_bar_items and assign the result to f->tool_bar_items if
7305 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
7306 tool_bar_items to assignment of result.
7307
fcdb28b4
JD
7308 * atimer.c (alarm_signal_handler): Do not call set_alarm if
7309 pending_atmers is non-zero.
7310
1a1a0c4c
KS
73112004-10-31 Kim F. Storm <storm@cua.dk>
7312
7313 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
7314
a36f1680
JW
73152004-10-28 Will <will@glozer.net>
7316
1d1c7e75 7317 * macterm.c: Allow user to assign key modifiers to the Mac Option
a36f1680
JW
7318 key via a 'mac-option-modifier' variable.
7319
32e2fb04 73202004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
7321
7322 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
7323 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
7324 (x_handle_selection_request, x_handle_selection_clear)
7325 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
7326
4f71c13f
RS
73272004-10-28 Richard M. Stallman <rms@gnu.org>
7328
7329 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
7330
7331 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
7332
068f3848
SM
73332004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
7334
7335 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
7336 comment-starter over a 1-char one.
7337
4660a9e3
RS
73382004-10-27 Richard M. Stallman <rms@gnu.org>
7339
7340 * xdisp.c (get_next_display_element): In mode lines,
7341 treat newline and tab like other control characters.
7342
7343 * editfns.c (Fmessage): Doc fix.
7344
7345 * indent.c (vmotion): When moving up, check the newline before.
7346 Make prevline an int, not a Lisp_Object.
7347
233f3db6
KS
73482004-10-27 Kim F. Storm <storm@cua.dk>
7349
7350 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
7351 Only allocate info and discarded tables once.
7352
7353 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
7354 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
7355 (SAFE_FREE): Test it to determine if we need to unwind to free.
7356 Remove size arg. All users changed.
7357 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
7358
1442465d
JD
73592004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7360
7361 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
7362 (xg_destroy_widgets): Rename from remove_from_container.
7363 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
7364 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
7365 instead of remove_from_container.
7366 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
7367 (free_frame_tool_bar): Add comment.
7368
7369 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
7370 is not NULL before strcmp.
7371
c8636435
KS
73722004-10-26 Kim F. Storm <storm@cua.dk>
7373
7374 * callint.c (Fcall_interactively): Add 'U' code to get the
7375 up-event discarded by a previous 'k' or 'K' argument.
7376
5629f29b
DK
73772004-10-26 David Kastrup <dak@gnu.org>
7378
7379 * buffer.c (syms_of_buffer): Fix a few typos.
7380
4f2f546e
JD
73812004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7382
7383 * xsmfns.c: Put empty line between comment and function body.
7384 Use two spaces before comment end.
7385
fc1062f5
KH
73862004-10-25 Kenichi Handa <handa@m17n.org>
7387
7388 * fontset.c (fontset_pattern_regexp): Optimize for the case that
7389 PATTERN is full XLFD.
7390
be13f5e5
KH
73912004-10-24 Kenichi Handa <handa@m17n.org>
7392
7393 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
7394
7395 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
7396 (regex_compile): Return REG_ERANGEX if appropriate.
7397
d0ee2ed3
KH
73982004-10-22 Kenichi Handa <handa@m17n.org>
7399
7400 * editfns.c (Ftranslate_region_internal): New function.
7401 (syms_of_editfns): Defsubr it.
7402
63ea8ea5
JD
74032004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7404
7405 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
7406
9ba27690 74072004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
c27ed90a 7408
068f3848
SM
7409 * xterm.h (x_output): New member `xic_base_fontname'.
7410 (FRAME_XIC_BASE_FONTNAME): New macro.
7411 (xic_free_xfontset): Declare.
c27ed90a 7412
068f3848
SM
7413 * xfns.c (xic_create_xfontset): Share fontsets between frames
7414 based on base_fontname.
7415 (xic_free_xfontset): New function.
7416 (free_frame_xic): Use it.
7417 (xic_set_xfontset): Ditto.
c27ed90a 7418
068f3848 7419 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
7420
7421
59508699
JR
74222004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
7423
7424 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
7425
dede2792
JD
74262004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7427
3aca2078
JD
7428 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
7429 XSync.
7430
dede2792
JD
7431 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
7432 New variables and constant.
7433 (main): Calculate heap_bss_diff. If we are dumping and the
7434 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
7435 and exec ourself again.
7436 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
7437 print a warning.
7438
7439 * lastfile.c: Make my_endbss and my_endbss_static available on all
7440 platforms.
7441
7442 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
7443 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
7444
1dc5ba01
LT
74452004-10-19 Luc Teirlinck <teirllm@auburn.edu>
7446
7447 * data.c (Flocal_variable_if_set_p): Doc fix.
7448
950090be
JR
74492004-10-19 Jason Rumney <jasonr@gnu.org>
7450
7451 * w32.c (init_environment): Set emacs_dir correctly when running
7452 emacs from the build directory.
7453
8550b998
RS
74542004-10-19 Richard M. Stallman <rms@gnu.org>
7455
7456 * editfns.c (Fdelete_and_extract_region):
7457 If region is empty, return null string.
7458
08dedea6
JD
74592004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7460
1dc5ba01 7461 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 7462 and canon_width.
068f3848 7463 (xg_frame_cleared): Remove.
08dedea6 7464
068f3848
SM
7465 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
7466 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
7467 (xg_create_scroll_bar): Put an event box widget between
7468 the scroll bar widget and the edit widget.
7469 (xg_show_scroll_bar): Show the parent widget (the event box).
7470 (xg_remove_scroll_bar): Destroy parent (the event box) also.
7471 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
7472 Move the parent (the event box) widget inside the fixed widget.
7473 Move window clear to xterm.c.
7474
068f3848 7475 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 7476
08dedea6 7477 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
7478 (x_scroll_bar_create, XTset_vertical_scroll_bar):
7479 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
7480 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
7481
8550b998 74822004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
7483
7484 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 7485
84338890
JD
74862004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7487
7488 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
7489 gdk_window_clear and move gdk_window_process_all_updates after
7490 clear so events are sent to the X server in correct order.
7491
6e1b0d8c
KH
74922004-10-18 Kenichi Handa <handa@m17n.org>
7493
7494 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
7495 comparing font names.
8550b998 7496 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
7497 (list_fontsets): Likewise.
7498
7499 * search.c (fast_string_match_ignore_case): New function.
7500
7501 * lisp.h (fast_string_match_ignore_case): Extern it.
7502
345e75a8
KS
75032004-10-17 Kim F. Storm <storm@cua.dk>
7504
7505 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
7506 than bitmap if there is not left fringe.
7507 (get_overlay_arrow_glyph_row): Also used on windows system.
7508 (display_line): Display overlay string if no left fringe.
7509
be13cbb7
JR
75102004-10-16 Jason Rumney <jasonr@gnu.org>
7511
7512 * w32fns.c (w32_font_match): Encode font name being matched.
7513
c2e2ede7
RS
75142004-10-16 Richard M. Stallman <rms@gnu.org>
7515
7516 * window.c (Fspecial_display_p): Doc fix.
7517
043f7f73 75182004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
7519
7520 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
7521 Don't ignore menus, because where-is-internal already does it for us.
7522
699a0392
KS
75232004-10-15 Kim F. Storm <storm@cua.dk>
7524
b3c7a89b
KS
7525 * xdisp.c (redisplay_window): Only update fringes and vertical
7526 border on window frames.
699a0392 7527
4e382b0f
AS
75282004-10-14 Andreas Schwab <schwab@suse.de>
7529
7530 * m/ia64.h (DATA_SEG_BITS): Don't define.
7531
329a7be2
KS
75322004-10-14 Kim F. Storm <storm@cua.dk>
7533
7534 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 7535 in some X versions.
329a7be2 7536
982241b1
SM
75372004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
7538
7539 * fns.c (map_char_table): Add missing gcpros.
7540
9238467d
SM
75412004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
7542
7543 * keymap.c (get_keymap): An autoload form is not a keymap.
7544
7545 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
7546
4440e3ca
KS
75472004-10-13 Kim F. Storm <storm@cua.dk>
7548
7cfdabde
KS
7549 * callproc.c (Fcall_process): Simplify handling of display arg.
7550 Resume `display_on_the_fly' once a coding system is determined.
7551
4440e3ca
KS
7552 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
7553
1c8dec6a
KS
75542004-10-12 Kim F. Storm <storm@cua.dk>
7555
7556 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
7557 caller, such as call-process, is not going to poll for input.
7558 (calc_line_height_property): Handle case where it->object is nil.
7559
7560 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
7561
170b174c
KH
75622004-10-12 Kenichi Handa <handa@m17n.org>
7563
9238467d
SM
7564 * xdisp.c (get_next_display_element):
7565 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
7566 chars in octal in unibyte buffer.
7567
b583964c
KS
75682004-10-12 Kim F. Storm <storm@cua.dk>
7569
7570 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
7571 are no ordinary bindings.
7572
29fabd8c
JD
75732004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7574
9238467d 7575 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 7576
c3f4c690
ST
75772004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7578
9238467d
SM
7579 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
7580 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 7581 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
7582 terminal frame.
7583 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
7584 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
7585 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
7586 Make a cancel file-open dialog be like C-g.
9238467d
SM
7587 * mac.c (mktime): Use emacs_mktime.
7588 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
7589 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 7590
9688f9eb
KS
75912004-10-10 Kim F. Storm <storm@cua.dk>
7592
7593 * keyboard.c (timer_resume_idle): New function to resume idle
7594 timer without resetting timers on the idle list.
52eb0373 7595 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9688f9eb
KS
7596 (timer_start_idle, timer_stop_idle): Declare static.
7597 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
7598
7599 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
7600
f7f3a65f
ST
76012004-10-08 Steven Tamm <steventamm@mac.com>
7602
9238467d 7603 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 7604 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 7605 NULL where 0 should be used.
f7f3a65f
ST
7606 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
7607 objc/malloc.h
9238467d 7608 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 7609
3c7d999a
KS
76102004-10-07 Kim F. Storm <storm@cua.dk>
7611
7612 * xdisp.c (redisplay_window): Fix flicker on vertical line between
7613 windows. Update vertical line after drawing window fringes, but
7614 only if actually drawing any bitmaps--or there is no fringe.
7615
7616 * xterm.c (x_update_window_end): Likewise.
7617 * macterm.c (x_update_window_end): Likewise.
7618 * w32term.c (x_update_window_end): Likewise.
7619
7620 * fringe.c (draw_window_fringes): Return value now indicates if
7621 any fringe bitmaps were redrawn (or there are no fringes).
7622
7623 * dispextern.h (draw_window_fringes): Update prototype.
7624
bf06c82f
ST
76252004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7626
7627 * macfns.c (mac_get_window_bounds): Add extern.
7628 (x_real_positions): Use mac_get_window_bounds.
7629
7630 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
7631 xmenu.c (YAILOM).
3c7d999a 7632
bf06c82f
ST
7633 * macterm.c [!MAC_OSX]: Include Windows.h.
7634 (front_emacs_window): Rename from mac_front_window. All uses
7635 changed. Return the frontmost non-tooltip emacs window.
7636 (mac_get_window_bounds): New function.
7637 (x_calc_absolute_position): Use the difference of width and height
7638 between the inner and outer window.
7639 (x_set_offset): Specify window position by the coordinae of the
7640 outer window. Adjust the position if the title bar is completely
7641 outside the screen.
7642 (app_is_suspended, app_sleep_time): Remove unused variables.
7643 (do_app_resume, do_app_suspend): Remove their contents because
7644 window-activate/deactivate events will do the job.
7645 (do_zoom_window): Remove unused variables. Make compliant to the
7646 standard way of zooming. Set f->left_pos and f->top_pos.
7647 (XTread_socket): Don't use argument `expected'. Don't use
7648 FrontWindow to determine the clicked window. Exclude unprocessed
7649 mouseUp cases in the early stage. Add parentheses to fix operator
7650 precedence.
7651 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
7652
4cbbf6b7 76532004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
7654
7655 * config.in: Regenerate.
7656
7657 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
7658 HAVE_EXECSHIELD.
7659
b90ee8b5
JD
76602004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7661
7662 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
7663 a row if Alt or Meta has been found for that row. Also stop scanning
7664 for Keysyms for that row.
7665
904db1a2
KS
76662004-10-04 Kim F. Storm <storm@cua.dk>
7667
0207b8ad
KS
7668 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
7669 to list. Include overlay arrow bitmap in return value.
7670
25f7220c
KS
7671 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
7672 bars with fractional column width. If scroll bar separates two
7673 windows, move it towards the window it belongs to. Only update
7674 the padding area below the scroll bar widget when necessary,
7675 i.e. when scroll bar widget is created, moved, or resized.
7676
562020fe
KS
7677 * xdisp.c (define_frame_cursor1): Do not change frame cursor
7678 while tracking/dragging mouse.
7679 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
7680
37e34af7
KS
7681 * window.c (coordinates_in_window): Relax check for cursor
7682 on vertial border between mode lines.
7683 (Fset_window_fringes): Do not allow negative widths.
7684 (Fset_window_scroll_bars): Likewise.
7685
904db1a2
KS
7686 * .gdbinit (pp): Shorthand for p ARG + pr.
7687 (ff): New command: flush frame updates (X only).
7688
38fe4f64
MA
76892004-10-03 Michael Albinus <michael.albinus@gmx.de>
7690
7691 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
7692
9de36315
KH
76932004-09-30 Kenichi Handa <handa@m17n.org>
7694
07c381ad 7695 * process.c (send_process): Free composition data.
9de36315 7696
07c381ad 7697 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
7698
7699 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
7700 compositions to encode.
7701 (encode_coding_string): Likewise. Free composition data.
7702
d5fb8dab 77032004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
7704
7705 * coding.c (code_convert_region): Free composition data.
9de36315 7706
f2a54fbc
KS
77072004-09-29 Kim F. Storm <storm@cua.dk>
7708
dc5d6435
KS
7709 * fringe.c: Remove limit on number of bitmaps.
7710 (fringe_bitmaps, fringe_faces): Change to pointers.
7711 (max_fringe_bitmaps): New var.
7712 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
7713 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
7714
7715 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
7716 (struct glyph_row): Reorder fringe_bitmap related fields.
7717 (struct it): Likewise.
7718
7719 * w32term.c (fringe_bmp): Change to pointer.
7720 (max_fringe_bmp): New var.
7721 (w32_define_fringe_bitmap): Expand fringe_bmp.
7722 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
7723 (w32_destroy_fringe_bitmap): Likewise.
7724
77252004-09-29 Kim F. Storm <storm@cua.dk>
7726
7727 * fringe.c: Simplify last change.
f2a54fbc
KS
7728 (lookup_fringe_bitmap): New function.
7729 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
7730 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
7731 Keep standard bitmaps in Vfringe_bitmaps.
7732 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
7733 (Fset_fringe_bitmap_face): Likewise.
7734
7735 * dispextern.h (lookup_fringe_bitmap): Add prototype.
7736 (valid_fringe_bitmap_p): Remove prototype.
7737
7738 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
7739
841a8bca
KS
77402004-09-29 Kim F. Storm <storm@cua.dk>
7741
1f2da365
KS
7742 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
7743 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
7744
841a8bca
KS
7745 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
7746
7747 * fringe.c (Vfringe_bitmaps): New variable.
7748 (syms_of_fringe): DEFVAR_LISP it.
7749 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
7750 Change arg to Lisp_Object and fail if not an integer.
7751 (get_fringe_bitmap_name, resolve_fringe_bitmap)
7752 (destroy_fringe_bitmap): New functions.
9238467d
SM
7753 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
7754 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
7755 clear its fringe property.
7756 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
7757 Fdestroy_fringe_bitmap.
7758 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
7759 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
7760 and set fringe property. Signal error if no free slots.
7761 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
7762 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
7763
7764 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
7765 symbols with a fringe property.
7766
4d965590
KS
77672004-09-27 Kim F. Storm <storm@cua.dk>
7768
7769 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
7770 Doc fix. Format may now be a symbol or alist, not a cons.
7771
7772 * fringe.c (update_window_fringes): Handle new formats of
7773 indicate-buffer-boundaries (symbol or alist). No longer
7774 allow a simple cons.
7775 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
7776
e888c2b3
JD
77772004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7778
9238467d 7779 * config.in: Rebuild.
e888c2b3 7780
83f1cb94
JD
77812004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7782
7783 * config.in: Rebuild.
7784
9dd28cae 7785 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 7786
2c51754c
SM
77872004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
7788
7789 * xterm.c (x_term_init): Work around a bug in some X servers.
7790
3df5f8aa
RS
77912004-09-18 Richard M. Stallman <rms@gnu.org>
7792
557ca2c1
RS
7793 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
7794
3df5f8aa
RS
7795 * xdisp.c (try_window_reusing_current_matrix):
7796 Handle the case where we reach the old displayed text,
7797 out of sync with the old line boundary.
7798
9238467d 77992004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
7800
7801 * fileio.c (Finsert_file_contents): Fix case of replacement in a
7802 narrowed buffer.
7803
bfa02563
KS
78042004-09-14 Kim F. Storm <storm@cua.dk>
7805
a25fe164
KS
7806 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
7807
bfa02563
KS
7808 * xfaces.c (Qface_no_inherit): New var.
7809 (syms_of_xfaces): Intern and staticpro it.
7810 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
7811 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
7812 Don't increment face_change_count when face has non-nil
7813 face-no-inherit property.
7814
126f9c02
SM
78152004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
7816
892a8eb5
SM
7817 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
7818 (Fbyte_code): Remove dead code after `wrong_type_argument'.
7819
126f9c02 7820 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 7821 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 7822
c0ad3b38
KS
78232004-09-12 Kim F. Storm <storm@cua.dk>
7824
7825 * editfns.c (Fformat): Handle format strings with multiple text
7826 properties. Reverse text property list from the format string,
7827 so the positions are in increasing order.
7828
844fc085
JD
78292004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7830
7831 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
7832 x_uncatch_errors so that possible protocol errors are delivered.
7833
b106731c
EZ
78342004-09-10 Eli Zaretskii <eliz@gnu.org>
7835
21065c92
EZ
7836 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
7837 blockinput.h.
7838 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
7839 charset.h, and coding.h
9238467d 7840 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
7841 (term.o): Depend on window.h and keymap.h.
7842 (abbrev.o): Depend on syntax.h.
7843 (callint.o): Depend on keymap.h.
7844 (casefiddle.o): Depend on charset.h and keymap.h.
7845 (category.o): Depend on keymap.h.
7846 (coding.o): Depend on dispextern.h.
7847 (cmds.o): Depend on keyboard.h and keymap.h.
7848 (dispnew.o): Depend on indent.h and intervals.h.
7849 (doc.o): Depend on keymap.h.
7850 (editfns.o): Depend on frame.h.
7851 (emacs.o): Depend on dispextern.h.
7852 (fileio.o): Don't depend on ccl.h.
7853 (filelock.o): Depend on charset.h and coding.h.
7854 (frame.o): Depend on w32term.h and macterm.h.
7855 (insdel.o): Depend on region-cache.h.
7856 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
7857 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
7858 (search.o): Depend on $(INTERVALS_SRC).
7859 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
7860 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
7861 xterm.h, w32term.h, and macterm.h.
7862 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
7863 w32term.h, and macterm.h.
7864 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
7865 region-cache.h, xterm.h, w32term.h, and macterm.h.
7866 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
7867 (data.o): Depend on frame.h.
7868 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
7869 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
7870 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
7871 (intervals.o): Depend on keymap.h.
7872
9238467d
SM
7873 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
7874 Add debugging print-out to termscript.
b106731c 7875
64b7122d
RS
78762004-09-09 Richard M. Stallman <rms@gnu.org>
7877
7878 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
7879
5670531e
RS
78802004-09-08 Richard M. Stallman <rms@gnu.org>
7881
6cb4a892
RS
7882 * window.c (Fset_window_buffer): Doc fix.
7883
5670531e
RS
7884 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
7885
7e388eb7
JL
78862004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
7887
7888 * minibuf.c (history_delete_duplicates): New variable.
7889 (read_minibuf): Use it.
7890 (syms_of_minibuf): Create the corresponding lisp variable.
7891
370e3587
KS
78922004-09-08 Kim F. Storm <storm@cua.dk>
7893
7894 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
7895 overlay just before point.
7896
f844ba4e
LT
78972004-09-07 Luc Teirlinck <teirllm@auburn.edu>
7898
7899 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
7900 * buffer.c (reset_buffer, init_buffer_once):
7901 Handle auto_save_file_format field.
f844ba4e
LT
7902 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
7903 `buffer-auto-save-file-format'.
f844ba4e
LT
7904 * fileio.c: Delete declaration for removed Vauto_save_file_format.
7905 (build_annotations): Adapt to replacement of
7906 `auto-save-file-format' with the new buffer-local variable
7907 `buffer-auto-save-file-format'.
7908 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
7909
f0f90717
JR
79102004-09-07 Jason Rumney <jasonr@gnu.org>
7911
7912 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
7913
9238467d
SM
7914 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
7915 Handle Unicode menu titles.
f0f90717 7916
4e14f66c
KS
79172004-09-07 Kim F. Storm <storm@cua.dk>
7918
7919 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
7920 property from text property or overlay strings at point.
7921
9238467d 79222004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
7923
7924 * xmenu.c (update_submenu_strings): YAILOM.
7925 (set_frame_menubar): Make sure last_i is initialized.
7926
1f06d367
JR
79272004-09-03 Jason Rumney <jasonr@gnu.org>
7928
1806714a 7929 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
7930 (digest_single_submenu): Set lname and lkey in widget_value
7931 instead of name and key.
7932 (update_submenu_strings): New function.
7933 (set_frame_menubar): Remove call to inhibit_garbage_collection,
7934 call update_submenu_strings.
7935
7936 * w32menu.c (globals_of_w32menu): Check for Unicode API.
7937 (digest_single_submenu, w32_menu_show): Encode menu strings as
7938 UTF-8 if Unicode API is available.
7939 (utf8to16): New function.
7940 (add_menu_item): Use it when calling Unicode API.
1806714a 7941
46540080
KS
79422004-09-03 Kim F. Storm <storm@cua.dk>
7943
7944 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
7945 in overlay or text-property strings; set cursor on corresponding
7946 glyph rather than at end of the string.
7947
9277ba61 79482004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 7949
9277ba61 7950 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
7951 set a new one before obtaining the global coordinate.
7952 Use FRAME_MAC_WINDOW.
7953 (x_set_name, x_set_title): Encode title to UTF8.
7954 Use SetWindowTitleWithCFString.
9277ba61
ST
7955 (Fx_server_version): Get correct OS version.
7956
1806714a
SM
7957 * macmenu.c (add_menu_item): Remove unused variable `i'.
7958 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
7959
7960 * macterm.c (x_update_end): Move SetPortWindowPort to inside
7961 BLOCK_INPUT.
7962 (x_set_offset): Use FRAME_MAC_WINDOW.
7963
7964 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
7965 nontext_cursor if it is on a scroll bar.
7966
7967 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
7968 Carbon support.
1806714a
SM
7969 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
7970 Use LIBS_CARBON.
9277ba61 7971
b10daec7
JD
79722004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7973
7974 * xfns.c (x_set_name_internal): New function. Check if we shall call
7975 xfree before ENCODE_UTF_8.
7976 (x_set_name, x_set_title): Call x_set_name_internal.
7977
f7e22385
JR
79782004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
7979
7980 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
7981 reload it.
7982
2bf436c3
JD
79832004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7984
1806714a 7985 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
7986 (single_submenu): Set lname and lkey in widget_value
7987 instead of name and key.
7988 (update_submenu_strings): New function.
7989 (set_frame_menubar): Remove call to inhibit_garbage_collection,
7990 call update_submenu_strings.
7991
2bf436c3
JD
7992 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
7993 instead of name and key.
7994 (update_submenu_strings): New function.
7995 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 7996 call update_submenu_strings.
2bf436c3
JD
7997
7998 * gtkutil.h (_widget_value): Added lname and lkey.
7999
11715f92
ST
80002004-08-30 Steven Tamm <steventamm@mac.com>
8001
8002 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
8003 by using different names for inner loop variables.
8004
5500be54
JD
80052004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8006
059cd329
JD
8007 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
8008 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
8009
5500be54
JD
8010 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
8011 tool bar items is 0.
8012
383418e5
ST
80132004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8014
8015 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
8016 strings in menu items.
8017 (single_submenu): Use ENCODE_MENU_STRING
8018 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
8019 button release isn't passed to event loop
8020 (add_menu_item): Use SetMenuItemWithCFString
8021
6eb3ee72
ST
80222004-08-26 Steven Tamm <steventamm@mac.com>
8023
8024 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7e26f91b
KS
8025 tool-bar/menu click.
8026 * macfns.c (Fx_file_dialog): Implement using NavServices.
6eb3ee72 8027
10b43ac3
JD
80282004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8029
2728b5d0
JD
8030 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
8031
10b43ac3
JD
8032 * xfns.c (x_window_to_frame, x_any_window_to_frame)
8033 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
8034 (x_top_window_to_frame): Return 0 if wdesc is None.
8035
2ee3b79e
RS
80362004-08-22 Richard M. Stallman <rms@gnu.org>
8037
8038 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
8039 HAVE_TERMIOS]: If there's no char for this signal, drop through
8040 and use system calls.
8041
8042 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
8043
9a1ba2ea
KS
80442004-08-20 Kim F. Storm <storm@cua.dk>
8045
8046 * process.c (wait_reading_process_output): Rename from
8047 wait_reading_process_input. All uses changed.
8048 (wait_reading_process_output_1): Rename from
8049 wait_reading_process_input_1. All uses changed.
8050
8051 * dispnew.c (Fsleep_for): Remove obsolete code.
8052
295f3b30
KH
80532004-08-20 Kenichi Handa <handa@m17n.org>
8054
8055 * syntax.c (skip_chars): Fix for unibyte case.
8056
27615979
SM
80572004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
8058
8059 * syntax.c (char_quoted): Mixup byte/char pos.
8060 (back_comment): Fixup globals in all cases.
8061
00267f94
JD
80622004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8063
8064 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
8065 passing it to gtk_window_set_title.
8066
2439909e
KS
80672004-08-19 Kim F. Storm <storm@cua.dk>
8068
6ba0f14c
KS
8069 * process.c (wait_reading_process_input): Clean up.
8070 Add wait_for_cell, wait_proc, and just_wait_proc args
8071 to avoid overloading `read_kbd' and `do_display' args.
8072 Change read_kbd arg to int. All callers changed.
8073
2439909e
KS
8074 * process.c (process_send_signal): Use CDISABLE.
8075
8076 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
8077
101c421e
KS
80782004-08-18 Kim F. Storm <storm@cua.dk>
8079
8080 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
8081 forward to wait_reading_process_input via DO_DISPLAY arg.
8082 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
8083 object, only process output from that process; also inhibit
8084 running timers if DO_DISPLAY==-2.
8085
c438dc33
KS
80862004-08-17 Kim F. Storm <storm@cua.dk>
8087
8088 * process.c (process_send_signal): Fix last change--use
8089 _POSIX_VDISABLE instead of CVDISABLE when available.
8090
8afc13c6
RS
80912004-08-16 Richard M. Stallman <rms@gnu.org>
8092
8093 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
8094 Set VQUIT and VINTR chars to the standard ones if they are unset.
8095 [AIX]: Don't do that here. And don't force VINTR to standard
8096 when SIGNALS_VIA_CHARACTERS.
8097
c438dc33 8098 * process.c (process_send_signal)
8afc13c6
RS
8099 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
8100 Do nothing if the character is CVDISABLE.
8101
8102 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
8103
c438dc33 8104 * intervals.c (move_if_not_intangible):
8afc13c6
RS
8105 Force POSITION to be between BEGV and ZV.
8106
6dad1714
JPW
81072004-08-14 John Paul Wallington <jpw@gnu.org>
8108
8109 * buffer.c (Frestore_buffer_modified_p): Doc fix.
8110
8111 * fileio.c (Fread_file_name): Doc fix.
8112
8113 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
8114
2bd77330
LT
81152004-08-09 Luc Teirlinck <teirllm@auburn.edu>
8116
8117 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
8118
c90e7e43
LT
81192004-08-08 Luc Teirlinck <teirllm@auburn.edu>
8120
8121 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 8122 Qdisabled_command_hook.
c90e7e43 8123 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 8124 Qdisabled_command_hook.
c90e7e43
LT
8125 (syms_of_keyboard): Ditto.
8126
81909a1a
LT
81272004-08-07 Luc Teirlinck <teirllm@auburn.edu>
8128
8129 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
8130 (syms_of_keymap) <key-translation-map>: Doc fixes.
8131
0cedd530
SM
81322004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
8133
1725a7c9
SM
8134 * window.c (window_list_1): YAILOM.
8135
0cedd530
SM
8136 * fileio.c (make_temp_name): Handle multibyte prefixes.
8137
2515a131
LT
81382004-08-06 Luc Teirlinck <teirllm@auburn.edu>
8139
8140 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
8141 Doc fix.
8142
c8b20fb7
KH
81432004-08-03 Kenichi Handa <handa@m17n.org>
8144
8145 * coding.c (decode_coding_string): Adjust coding->consumed, and
8146 etc. with shrinked_bytes.
8147
fb8b092b
KS
81482004-08-03 Kim F. Storm <storm@cua.dk>
8149
8150 * indent.c (compute_motion): Fix check for full width window
8151 in non-window case. Do not count left truncation glyph on
8152 window systems.
8153
df133612
LT
81542004-08-02 Luc Teirlinck <teirllm@auburn.edu>
8155
8156 * data.c (Finteractive_form): Doc fix.
8157
0f7a93c1
KS
81582004-08-02 Kim F. Storm <storm@cua.dk>
8159
8160 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
8161 properly accounting for continuation glyph on non-window systems.
8162 (Fcompute_motion): Use actual window width if WIDTH is nil, and
8163 actual window width/height if TOPOS is nil, properly accounting for
8164 continuation glyphs on non-window systems, and optional header lines.
8165 (vmotion): Let compute_motion calculate actual window width.
8166
8167 * window.c (window_scroll_line_based): Let compute_motion
8168 calculate actual window width.
8169
f491e1ed
KS
81702004-08-02 Kim F. Storm <storm@cua.dk>
8171
8172 * process.c (read_process_output): Use whole read buffer.
8173 Don't trigger adaptive read buffering on errors.
8174
83f64226
LT
81752004-07-31 Luc Teirlinck <teirllm@auburn.edu>
8176
8177 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
8178
1d1c7e75 8179 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
83f64226
LT
8180
8181 * callint.c (Fcall_interactively): Doc fix.
8182
8afc13c6
RS
81832004-07-30 Richard M. Stallman <rms@gnu.org>
8184
8185 * abbrev.c (Fexpand_abbrev): Undo previous change.
8186
7c111482
KS
81872004-07-30 Kim F. Storm <storm@cua.dk>
8188
8189 * editfns.c (Fformat): Allocate extra (dummy) element in info.
8190
ee945d08
LT
81912004-07-28 Luc Teirlinck <teirllm@auburn.edu>
8192
8193 * eval.c (Fdefvar, Fdefconst): Doc fixes.
8194
3f911c94
KS
81952004-07-27 Kim F. Storm <storm@cua.dk>
8196
8197 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
8198 we have ensured that the glyph fits on the current line (or returned
8199 MOVE_LINE_CONTINUED otherwise).
8200
f29ff8c7
KS
82012004-07-26 Kim F. Storm <storm@cua.dk>
8202
8203 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
8204 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
8205 if target position is at end of display line but char is not a newline.
8206
81159bb9
RS
82072004-07-25 Richard M. Stallman <rms@gnu.org>
8208
ab431b61
RS
8209 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
8210 instead of ON_VERTICAL_BORDER, when on scroll bar.
8211 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
8212
8213 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
8214
f29ff8c7 8215 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
8216 Take account of FRAME_INTERNAL_BORDER_WIDTH.
8217
8218 * alloc.c (check_cons_list): New function (contents commented out).
8219
fc820cc5
LT
82202004-07-24 Luc Teirlinck <teirllm@auburn.edu>
8221
8222 * xfaces.c (Fcolor_supported_p): Doc fix.
8223
8224 * frame.c (Fselect_frame, Fset_frame_selected_window)
8225 (Fframe_visible_p, Fraise_frame): Doc fixes.
8226
289978b5
LT
82272004-07-24 Richard M. Stallman <rms@gnu.org>
8228
78819ebb 8229 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
8230
8231 * fileio.c (Fwrite_region): Doc fix.
8232
8233 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
8234
8235 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
8236 only when a real abbrev is present.
8237
289978b5
LT
8238 * xfns.c (x_icon_verify): New function.
8239 (Fx_create_frame): Use it.
8240
d5fb8dab 82412004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
63cc10ae
KS
8242
8243 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
8244
36f826d4
KS
82452004-07-21 Kim F. Storm <storm@cua.dk>
8246
8247 * window.h (struct glyph_matrix): New members nrows_scale_factor
8248 and ncols_scale_factor.
8249
8250 * window.c (make_window): Initialize nrows_scale_factor and
8251 ncols_scale_factor members.
8252
8253 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
8254 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
8255 (required_matrix_height): Apply nrows_scale_factor.
8256 (required_matrix_width): Apply ncols_scale_factor.
8257
8258 * xdisp.c (display_line): Increment nrows_scale_factor and set
8259 fonts_changed_p if past last allocated row.
8260 (append_glyph, append_composite_glyph, produce_image_glyph)
8261 (append_stretch_glyph): Increment ncols_scale_factor and set
8262 fonts_changed_p if current area is full.
8263
5fc1c546
JD
82642004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8265
8266 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
8267
cb7516e5
LT
82682004-07-19 Luc Teirlinck <teirllm@auburn.edu>
8269
8270 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
8271 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
8272 (Fset_window_start, Fscroll_up, Fscroll_down)
8273 (Fother_window_for_scrolling, Fscroll_other_window)
8274 (Fsave_window_excursion, Fset_window_vscroll)
8275 (syms_of_window) <window-size-fixed>: Doc fixes.
8276
b6189c3b 82772004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
8278
8279 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
8280 ENCODE_SYSTEM for filenames.
8281
bfcf6608
ST
82822004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8283
8284 * mac.c (sys_select): Block input around call to
8285 ReceiveNextEvent to prevent breakage. Correctly handle
8286 blocking on event queue only by calling ReceiveNextEvent
8287 instead of select (since GUI events aren't on an fd).
8288 (sys_read): Remove function
8289 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
8290
e082ac9d
ST
82912004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8292
8293 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 8294 polling instead of 1 sec timeouts (like solaris).
e082ac9d 8295
cb7516e5 8296 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
8297 frame creation.
8298
8299 * keyboard.c: Undef SIGIO on Carbon
8300
8301 * atimer.c (alarm_signal_handler): Call alarm handlers after
8302 scheduling.
8303
8304 * eval.c (Feval): Remove quit_char test
8305
8306 * process.c (wait_reading_process_input): Remove clearing
8307 stdin for select call on process input.
8308
4b9da0fb
LT
83092004-07-18 Luc Teirlinck <teirllm@auburn.edu>
8310
1204e81c
LT
8311 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
8312 capitalization error in docstring.
4b9da0fb 8313
26503ad2
JB
83142004-07-17 Juanma Barranquero <lektu@terra.es>
8315
8316 * keyboard.c (not_single_kboard_state): Do nothing unless
8317 MULTI_KBOARD is defined.
8318
3751eb00
RS
83192004-07-17 Richard M. Stallman <rms@gnu.org>
8320
8321 * window.c (coordinates_in_window): Inside the window but outside
8322 its box to the L or R, return ON_VERTICAL_BORDER.
8323 (window_list_1): Rotate the list to start with WINDOW.
8324
8325 * print.c (print_preprocess): Test for print_depth at limit
8326 before entering in being_printed.
8327
8328 * keyboard.c (not_single_kboard_state): New function.
8329 (stuff_buffered_input): Now no-op only if no SIGTSTP.
8330
8331 * frame.c (Fdelete_frame): If we're in single_bboard_state on
8332 this kboard, and we delete its last frame, go to any_kboard_state.
8333
8334 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
8335
b6189c3b 83362004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
8337
8338 * w32fns.c (Fx_file_dialog): Encode strings in system coding
8339 system before passing them to OS functions for display.
8340
0f6af254
DK
83412004-07-15 David Kastrup <dak@gnu.org>
8342
f9253326
KS
8343 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
8344 Apparently fixes an abort condition.
0f6af254 8345
386c8f42
LT
83462004-07-14 Luc Teirlinck <teirllm@auburn.edu>
8347
8348 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
8349 instead of a cons.
8350
366511da
MB
83512004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
8352
8353 * keyboard.c (echo_dash): Do nothing if there already is a dash
8354 at the end of the echo string.
8355
f85409d3
KS
83562004-07-12 Kim F. Storm <storm@cua.dk>
8357
8358 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
8359 if GC_MARK_STACK.
8360
0ba2e87b
LT
83612004-07-10 Luc Teirlinck <teirllm@auburn.edu>
8362
da38045d
LT
8363 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
8364
9dd28cae 8365 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
0ba2e87b
LT
8366 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
8367 (Freplace_buffer_in_windows, Fset_window_buffer)
8368 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
8369 (syms_of_window): Expand docstring of `display-buffer-function'.
8370
5668fbb8
LT
83712004-07-09 Luc Teirlinck <teirllm@auburn.edu>
8372
8373 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
8374 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
8375 that time values of the type (HIGH . LOW) are considered obsolete.
8376
a085bf9d
LT
83772004-07-06 Luc Teirlinck <teirllm@auburn.edu>
8378
669de2fb
LT
8379 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
8380 docstring.
8381
bac66325 8382 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 8383
8e975df9
JPW
83842004-07-06 John Paul Wallington <jpw@gnu.org>
8385
8386 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
8387
fa164e6a
JPW
8388 * fns.c (Fclear_string): Signal an error if STRING is not a string.
8389
2bac9bb1
JD
83902004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8391
8392 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
8393 instead of CGMainDisplayID (only in OSX 10.2 and later).
8394
316ef0dc
JPW
83952004-07-04 John Paul Wallington <jpw@gnu.org>
8396
8397 * fileio.c (read_file_name_completion_ignore_case): New variable.
8398 (syms_of_fileio): Declare and initialise it.
8399 (Fread_file_name): Bind `completion-ignore-case' to respect it.
8400
2a1a35c6
EZ
84012004-07-03 Eli Zaretskii <eliz@gnu.org>
8402
8403 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
8404 for event.x and event.y.
8405
33a72331
KH
84062004-07-01 Kenichi Handa <handa@m17n.org>
8407
8408 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
8409 after getting a new string by pre-write-conversion.
8410
9238467d 84112004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
8412
8413 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
8414 (x_calc_absolute_position): Remove unused var `child'.
8415
8416 * xfaces.c (x_supports_face_attributes_p)
8417 (Fdisplay_supports_face_attributes_p): YAILOM.
8418 (tty_supports_face_attributes_p): Remove unused var `i'.
8419
8420 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
8421 back_unibyte_ok.
8422
8423 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
8424
8425 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
8426
8427 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
8428
f96ec754
AS
84292004-06-30 Andreas Schwab <schwab@suse.de>
8430
8431 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
8432 (Finit_image_library): Pass LIBRARIES through to
8433 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
8434 (lookup_image_type): Pass Qnil as second argument to
8435 Finit_image_library.
8436
78819ebb 8437 * lisp.h (Finit_image_library): Declare.
f96ec754 8438
59feca74 84392004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 8440
31983645
AS
8441 * macterm.c (do_window_activate, do_window_deactivate): Remove.
8442 (XTread_socket): Send mouse button events to the toolbox
8443 dispatcher even when the mouse is grabbed. Don't process window
8444 activate events for non-Emacs windows. Replace function calls to
8445 do_window_activate and do_window_deactivate with their contents.
8446 Reset mouse grabbing status when a window is deactivated.
59feca74 8447
c61278bb
ST
84482004-06-29 Steven Tamm <steventamm@mac.com>
8449
8450 * macterm.c (mac_get_emulated_btn)
8451 (mac_event_to_emacs_modifiers): Fix emulated mouse button
8452 support to correctly mask out modifiers.
8453
c3762cbd
DK
84542004-06-29 David Kastrup <dak@gnu.org>
8455
8456 * search.c (Fset_match_data): Allow buffer before end of list
8457 which can happen if set-match-data is using a pre-consed list.
8458
c61278bb 84592004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
8460
8461 * macterm.c (XTread_socket): Correctly set the frame position
8462 after the window is moved.
8463
74cdfe05
JD
84642004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8465
8466 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
8467 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
8468 (xg_get_image_for_pixmap): Add workaround for monochrome displays
8469 so insensitive and activated icons look ok.
74cdfe05 8470
ef544dc8
JR
84712004-06-27 Jason Rumney <jasonr@gnu.org>
8472
8473 * w32fns.c (file_dialog_callback): Disable edit control if set
8474 to directories only on CDN_INITDONE message.
8475 (Fx_file_dialog): Default to directories only when prompt starts
8476 with "Dired".
8477
7b7990cc
KS
84782004-06-25 Kim F. Storm <storm@cua.dk>
8479
8480 * alloc.c (allocate_misc): Update total_free_markers.
8481 (free_misc): New function.
8482 (safe_alloca_unwind, free_marker): Use it.
8483
8484 * lisp.h (free_misc): Add prototype.
8485
8486 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
8487
d8c379f8
RS
84882004-06-24 Richard M. Stallman <rms@gnu.org>
8489
8490 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
8491 (syms_of_emacs): Lisp variables deleted.
8492
559cdd07
DK
84932004-06-23 David Kastrup <dak@gnu.org>
8494
94939b84
DK
8495 * search.c (Freplace_match): Adjust the match-data more thoroughly
8496 when replacing strings in the buffer.
8497 (Fmatch_data): When INTEGERS is non-nil and the last match was in
8498 a buffer, add the buffer as last element to the match data.
8499 (Fset_match_data): If an additional element of the match-data is a
8500 buffer, restore it to last_thing_searched.
c8d09ad8 8501 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
8502 (restore_match_data): Restore it again.
8503
dce417e7
LT
85042004-06-23 Luc Teirlinck <teirllm@auburn.edu>
8505
8506 * keymap.c (Ftext_char_description): Doc fix.
8507 * doc.c (Fsnarf_documentation): Doc fix.
8508
ef54b2d0
KS
85092004-06-22 Kim F. Storm <storm@cua.dk>
8510
b5bc4d05
KS
8511 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
8512
ef54b2d0
KS
8513 * lisp.h (struct Lisp_Save_Value): New member dogc.
8514 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
8515 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
8516 (SAFE_FREE_LISP): New macro.
8517
8518 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
8519 (make_save_value): Init new dogc member.
8520 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
8521
8522 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
8523 SAFE_FREE_LISP macros.
8524
3d33d993
KS
85252004-06-22 Kim F. Storm <storm@cua.dk>
8526
8527 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
8528 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
8529 in that memory area are unknown to GC. Add comments.
8530
8531 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
8532
5c917f98
KS
85332004-06-21 Kim F. Storm <storm@cua.dk>
8534
8535 * lisp.h (MAX_ALLOCA): Define here.
8536 (safe_alloca_unwind): Add prototype.
8537 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
8538
8539 * alloc.c (safe_alloca_unwind): New function.
8540
8541 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
8542
8543 * charset.c (Fstring): Use SAFE_ALLOCA.
8544
8545 * coding.c (MAX_ALLOCA): Remove define.
8546
8547 * data.c (MAX_ALLOCA): Remove define.
8548 (Faset): Use SAFE_ALLOCA.
8549
8550 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
8551
8552 * fns.c (string_make_multibyte, string_to_multibyte)
8553 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
8554 (MAX_ALLOCA): Remove define.
8555 (Fbase64_encode_region, Fbase64_encode_string)
8556 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
8557 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
8558 memory leak if encoding fails.
8559
8560 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
8561
9a09408e
EZ
85622004-06-21 Eli Zaretskii <eliz@gnu.org>
8563
8564 * print.c (Fwith_output_to_temp_buffer): Doc fix.
8565
376de739
RS
85662004-06-20 Richard M. Stallman <rms@gnu.org>
8567
8568 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
8569
8570 * search.c (match_limit): Cleaner err msg when no match data available.
8571
8572 * window.c (syms_of_window): Doc fix.
8573
8574 * keyboard.c (command_loop_1): Handle values `only' and `identity'
8575 for Vtransient_mark_mode.
8576
8577 * buffer.c (syms_of_buffer): Doc fix.
8578
acd81db9
DK
85792004-06-21 David Kastrup <dak@gnu.org>
8580
8581 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
8582 and unbinding of `case-fold-search' according to
8583 `completion-ignore-case' around calls of string-match and
8584 predicates, respectively. Should give satisfactory performance
8585 in all relevant cases.
8586
f303762d
JD
85872004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8588
95911c74
JD
8589 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
8590 clip_x/y_origin.
8591
a6cb6b78
JD
8592 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
8593
f303762d
JD
8594 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
8595
8596 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
8597 on Mac OSX.
8598
bbdb2684
LT
85992004-06-16 Luc Teirlinck <teirllm@auburn.edu>
8600
8601 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
8602
5ea48b1c
KS
86032004-06-16 Kim F. Storm <storm@cua.dk>
8604
8605 * dispextern.h (Vimage_types): Remove extern.
8606
803aac3e
MB
86072004-06-16 Miles Bader <miles@gnu.org>
8608
8609 * image.c (lookup_image_type): Initialize image type if necessary.
8610
cdc97764
KS
86112004-06-15 Kim F. Storm <storm@cua.dk>
8612
c4a5739c
KS
8613 * xdisp.c (try_cursor_movement): Exclude header line from scroll
8614 margin at top of window.
8615 (try_window_reusing_current_matrix): Calculate proper cursor position
8616 after scrolling up with non-zero scroll margin, as the old cursor
8617 position corresponds to value of PT before executing this command.
8618 (try_window_id): Consider scroll margin at bottom of window too;
8619 otherwise we fail to scroll when hl-line-mode is enabled.
8620
cdc97764
KS
8621 * syntax.c (skip_chars): Only recognize [:class:] when it has the
8622 proper format and class is a lower-case word.
8623
5b166323
JD
86242004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8625
8626 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 8627 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
8628 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
8629 xg_get_gdk_pixmap_and_mask.
cdc97764 8630
5b166323
JD
8631 * xterm.h (struct x_display_info): Typo in comment fixed.
8632
1ebd4f78
JB
86332004-06-14 Juanma Barranquero <lektu@terra.es>
8634
8635 * dispextern.h (Vimage_types): Make it conditional on
8636 HAVE_WINDOW_SYSTEM.
8637
8638 * image.c (Vimage_types): Move from xdisp.c.
8639 (Vimage_type_cache): New variable.
8640 (define_image_type): New argument indicating whether an image
8641 library was loaded; cache loaded status and return t on success,
8642 nil otherwise.
8643 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
8644 (w32_delayed_load): New function to load an image library from a
8645 list of possible filenames.
8646 (init_xpm_functions, init_png_functions, init_jpeg_functions)
8647 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 8648 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
8649 (Finit_image_library): New function, extracted from `init_image'.
8650 Try to initialize an image library on demand and cache whether we
8651 were successful or not.
8652 (syms_of_image): Initialize `Vimage_types' and
8653 `Vimage_type_cache'. Add recognized image types to Vimage_types.
8654 Export `init-image-library'.
8655 (init_image): Remove initialization of all image types, except xbm
8656 and pbm.
8657
8658 * xdisp.c (Vimage_types): Delete (moved to image.c).
8659
904ee128
AS
86602004-06-14 Andreas Schwab <schwab@suse.de>
8661
8662 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
8663 Avoid calling specbind when completion-regexp-list is empty.
8664
092de21d
RS
86652004-06-13 Richard M. Stallman <rms@gnu.org>
8666
8667 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
8668 (re_wctype, re_iswctype, re_wctype_to_bit):
8669 Non-function definitions moved here from regex.c.
1ebd4f78 8670
092de21d
RS
8671 * regex.c (re_wctype, re_iswctype): Function defs longer static.
8672 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
8673 (re_wctype, re_iswctype, re_wctype_to_bit):
8674 Non-function definitions moved to regex.h.
8675
8676 * window.c (Fselect_window): Doc fix.
8677
8678 * syntax.c: Include regex.h.
8679 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
8680 If requested, make a list of classes, then check the scanned
8681 chars for membership in them.
8682 (in_classes): New function.
8683 Doc fix.
8684
8685 * keyboard.c (cmd_error): Don't call any_kboard_state
8686 if inside a recursive edit level.
8687
9ba27690 86882004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
092de21d
RS
8689
8690 * keyboard.c (command_loop): Call any_kboard_state before
8691 command_loop_2 when at top level.
8692
3ebc0939
AS
86932004-06-13 Andreas Schwab <schwab@suse.de>
8694
cea5d0d4
AS
8695 * print.c (print_object): Always use %ld for printing EMACS_INT.
8696
8697 * keyboard.c (cancel_hourglass_unwind): Return a value.
8698 (modify_event_symbol): Always use %ld for printing EMACS_INT.
8699 (Fexecute_extended_command): Likewise.
8700
8701 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
8702 avoid clashes.
8703 (SYNTAX): Likewise.
8704 (SYNTAX_WITH_FLAGS): Likewise.
8705 (SYNTAX_MATCH): Likewise.
8706
8707 * syntax.c (char_quoted): Avoid warning about undefined operation.
8708 (find_defun_start): Likewise.
8709 (scan_lists): Likewise.
8710 (INC_FROM): Likewise.
8711 (scan_sexps_forward): Likewise.
8712
be8c4ce4
AS
8713 * image.c: Include <ctype.h>.
8714
3ebc0939
AS
8715 * xfaces.c (face_attr_equal_p): Declare parameters.
8716
6fb41b5b
KH
87172004-06-13 Kenichi Handa <handa@m17n.org>
8718
8719 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
8720
fc3095ce
EZ
87212004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
8722
8723 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
8724
66189a40
KH
87252004-06-12 Kenichi Handa <handa@m17n.org>
8726
8727 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
8728 ccl_prog_stack_struct and update it.
8729 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
8730 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
8731 ccl->eof_ic on EOF.
8732 (ccl_debug_hook): New function.
8733 (struct ccl_prog_stack): New member eof_ic.
8734 (ccl_driver): Handle EOF in subrountine call correctly.
8735
87362004-06-11 Kenichi Handa <handa@m17n.org>
8737
a9b43336 8738 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
66189a40 8739
1da71023
KS
87402004-06-11 Kim F. Storm <storm@cua.dk>
8741
8742 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
8743
e9efcef4
JB
87442004-06-11 Juanma Barranquero <lektu@terra.es>
8745
8746 * keyboard.c (Fposn_at_point): Doc fix.
8747
9b9ceb61
DK
87482004-06-11 David Kastrup <dak@gnu.org>
8749
8750 * search.c (match_limit): Don't flag an error if match-data
8751 exceeding the allocated search_regs.num_regs gets requested, just
8752 return Qnil.
8753
6e87ac8f
MB
87542004-06-08 Miles Bader <miles@gnu.org>
8755
8756 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
8757
0b0dea7b
JB
87582004-06-07 Juanma Barranquero <lektu@terra.es>
8759
8760 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
8761 (Fcurrent_time_string, Fcurrent_time_zone)
8762 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
8763
a0a23346
MB
87642004-06-07 Miles Bader <miles@gnu.org>
8765
08384afd 8766 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
8767 (push_named_merge_point): New function.
8768 (merge_named_face): New function.
8769 (merge_face_ref, face_at_buffer_position, face_at_string_position):
8770 Use `merge_named_face'.
8771 (merge_face_inheritance): Function removed.
c8d09ad8 8772 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
8773 Add new `err_msgs' and `named_merge_points' args. Return error
8774 status. Only print error messages if ERR_MSGS is true. Don't try to
8775 do :inherit attribute validation.
8776 (merge_face_heights): Handle `unspecified' in both directions.
8777 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
8778 Call `merge_face_ref' instead of `merge_face_inheritance'.
8779 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
8780 (compute_char_face, face_at_buffer_position)
8781 (face_at_string_position): Call `merge_face_ref' instead of
8782 `merge_face_vector_with_property'.
8783
12d5b185
KH
87842004-06-07 Kenichi Handa <handa@m17n.org>
8785
8786 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
8787 the necessary places.
8788
2e2d7ee6
KS
87892004-06-07 Kim F. Storm <storm@cua.dk>
8790
8791 * process.c (Fdelete_process): Undo 2004-05-28 change.
8792 Instead, call status_notify also for network process.
8793 (status_message): Use process instead of status as arg.
8794 Give messages "deleted" or "connection broken by remote peer" for
8795 an exited network process.
8796 (status_notify): Change call to status_message.
8797 (read_process_output): Increase readmax to 4096. Do not increase
8798 buffer size for datagram channels (default is now large enough).
8799
fcf0d299
ST
88002004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
8801
8802 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
8803 problem due to newly defined variable.
8804
0722292b
MB
88052004-06-06 Miles Bader <miles@gnu.org>
8806
8807 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
8808 immediately if non-interactive or not initialized.
8809
ddfb8369
RS
88102004-06-05 Richard M. Stallman <rms@gnu.org>
8811
8812 * minibuf.c (Fcompleting_read): Doc fix.
8813
57015754
AS
88142004-06-05 Andreas Schwab <schwab@suse.de>
8815
8816 * macfns.c (x_create_tip_frame): Fix declaration after statement.
8817
23715ea6
JB
88182004-06-05 Juanma Barranquero <lektu@terra.es>
8819
8820 * keymap.c (Fdescribe_vector): Fix docstring.
8821 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
8822
8e330b22
MB
88232004-06-05 Miles Bader <miles@gnu.org>
8824
8825 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
8826 attributes have different values than the default face.
8827
9742a3a6
EZ
88282004-06-04 Eli Zaretskii <eliz@gnu.org>
8829
8830 * xfaces.c (x_supports_face_attributes_p): Make this function
8831 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
8832 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
8833 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 8834
9717e36c
MB
88352004-06-04 Miles Bader <miles@gnu.org>
8836
8837 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
8838 from Ftty_supports_face_attributes_p.
8839 (x_supports_face_attributes_p): New function.
8840 (Ftty_supports_face_attributes_p): Function deleted.
8841 (Fdisplay_supports_face_attributes_p): New function.
8842 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 8843 (face_attr_equal_p): New function.
9717e36c
MB
8844 (lface_equal_p): Use it.
8845
52deb19f
JB
88462004-06-03 Juanma Barranquero <lektu@terra.es>
8847
8848 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
8849 (Vw32_color_map): Fix typo in docstring.
8850 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
8851 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
8852 Make argument names match their use in docstring.
8853
86d373e6
JB
88542004-06-02 Juanma Barranquero <lektu@terra.es>
8855
8856 Work around bugs/problems with MinGW builds of graphics libraries
8857 called from MSVC builds of Emacs.
8858
8859 * image.c (lookup_image): Make pointer to img static.
8860 (png_read_from_memory): Disable "global" optimization.
8861
2fb0ce67
SM
88622004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8863
c8d09ad8
SM
8864 * eval.c (Fcondition_case): Fix usage. Simplify.
8865
2fb0ce67
SM
8866 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
8867
50bf7673
ST
88682004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8869
8870 * macfns.c: Don't include ccl.h.
8871 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
8872 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
8873 TextUtils.h.
c8d09ad8 8874 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
8875 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
8876 display height/width.
8877 (compute_tip_xy, Vx_max_tooltip_size): Declare.
8878 (unwind_create_tip_frame, compute_tip_xy): New functions.
8879 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
8880 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
8881 and last_show_tip_args.
2fb0ce67 8882
50bf7673
ST
8883 * macgui.h [!MAC_OSX]: Include Gestalt.h.
8884 (Cursor, No_Cursor): New defines.
c8d09ad8 8885 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
8886 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
8887
8888 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
8889
8890 * macterm.c: Don't include Gestalt.h.
8891 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
8892 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
8893 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
8894 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
8895 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
8896 (construct_mouse_click, XTmouse_position)
8897 (x_scroll_bar_report_motion, x_calc_absolute_position)
8898 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
8899 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
8900 (note_mouse_movement): Clear the mouse face and reset the pointer
8901 shape when the pointer goes outside the frame without grabbing.
8902 (mac_front_window): New function.
8903 (mac_window_to_frame): New macro.
8904 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
8905 (do_window_activate, do_window_deactivate, do_app_resume)
8906 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
8907 (do_zoom_window, mac_do_receive_drag, XTread_socket)
8908 (mac_check_for_quit_char): Use mac_front_window and/or
8909 mac_window_to_frame.
8910 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
8911 scroll-bar click event.
8912 (mac_define_frame_cursor): Change the pointer shape.
71b7a47f
YM
8913 (x_free_frame_resources): Reset tip_window to NULL when it is
8914 disposed of.
50bf7673 8915 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 8916 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
8917 (do_window_update): Don't do anything if the updated window is the
8918 tooltip window.
8919 (do_mouse_moved): Handle mouse movement events here (previously in
8920 XTread_socket). Clear the mouse face if
8921 dpyinfo->mouse_face_hidden is set.
8922 (do_os_event, do_events): Remove (now in XTread_socket).
8923 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
8924 Loop until all the events in the queue are processed.
8925 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
8926 contents of do_os_event and do_events. Remove mouse movement
8927 handling (now in do_mouse_moved). Add the case where
8928 Vmouse_highlight has an integer value.
8929 (NewMacWindow): Remove.
8930 (make_mac_frame): Do what NewMacWindow previously did. Don't do
8931 excess initializations.
8932 (make_mac_terminal_frame): Previous initializations in
8933 make_mac_frame are moved here.
c8d09ad8
SM
8934 (mac_initialize_display_info):
8935 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
8936
8937 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
8938 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
8939
08fd1251
RS
89402004-05-29 Richard M. Stallman <rms@gnu.org>
8941
8942 * lisp.h (truncate_undo_list): Update decl.
8943
8944 * alloc.c (undo_outer_limit): New variable.
8945 (syms_of_alloc): Defvar it.
8946 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
8947
8948 * undo.c (truncate_undo_list): New arg LIMITSIZE.
8949
8950 * alloc.c (lisp_align_malloc): Check for base == 0
8951 regardless of HAVE_POSIX_MEMALIGN.
8952 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
8953
227ef0ff
SM
89542004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8955
8956 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
8957 (marker_blocks_pending_free): Remove.
8958 (Fgarbage_collect): Sweep after cleaning up undo-lists.
8959 Mark the undo lists after claning them up.
8960 Don't free block in marker_blocks_pending_free.
8961 (mark_buffer): Don't mark undo_list.
8962 (gc_sweep): Sweep hash-tables and strings first.
8963 Do free marker blocks that are empty.
8964
034a6113
SM
89652004-05-28 Jim Blandy <jimb@redhat.com>
8966
8967 * regex.c (print_partial_compiled_pattern): Add missing 'break'
8968 after 'case wordend'. For symbeg and symend, print to stderr,
8969 like the other cases.
8970
33594a8d
NF
89712004-05-28 Noah Friedman <friedman@splode.com>
8972
8973 * process.c (Fdelete_process): Do not call remove_process.
8974
ce50a847
SM
89752004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8976
8977 * alloc.c (struct backtrace): Remove.
8978 (Fgarbage_collect): Use the new mark_backtrace.
8979
8980 * eval.c (mark_backtrace): New function.
8981
8982 * minibuf.c (run_exit_minibuf_hook): New function.
8983 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
8984 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
8985
1e8dae36
KS
89862004-05-27 Kim F. Storm <storm@cua.dk>
8987
8988 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
8989 over display properties, e.g. images, that replace buffer text.
8990
846faa3b
KS
89912004-05-25 Kim F. Storm <storm@cua.dk>
8992
8993 * alloc.c (marker_blocks_pending_free): New var.
8994 (gc_sweep): Store free marker blocks on that list.
8995 (Fgarbage_collect): Free them after undo-list cleanup.
8996
8997 * process.c (wait_reading_process_input): Check connect_wait_mask
8998 before actually accepting connection in case it has already been
8999 accepted due to recursion.
9000
b6189c3b 90012004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 9002
ce50a847
SM
9003 * coding.c (Fset_safe_terminal_coding_system_internal):
9004 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 9005
71d5a208
RS
90062004-05-22 Richard M. Stallman <rms@gnu.org>
9007
9008 * alloc.c (Fmake_string): Doc fix.
9009
9010 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
9011 and the alist pairs too.
9012
9013 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
9014
51391fb9
RF
9015 * emacs.c (main): Update copyright year.
9016
71d5a208
RS
9017 * fileio.c (Fread_file_name): Expand DIR if not absolute.
9018
9019 * insdel.c (del_range_2, replace_range): Don't write an anchor
9020 if the gap is empty.
9021
9022 * xdisp.c (try_scrolling): If scroll-up-aggressively or
9023 scroll-down-aggressively is small but positive, put point
9024 near the screen edge.
9025
f63fd14e
JB
90262004-05-22 Juanma Barranquero <lektu@terra.es>
9027
9028 * keymap.c (Fdefine_key): Doc fix.
9029
4d12067c
KS
90302004-05-22 Kim F. Storm <storm@cua.dk>
9031
9032 * alloc.c (struct backtrace): Add debug_on_exit member.
9033 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
9034 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
9035 the removed cons cells.
9036 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
9037 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
9038 any cons cells pointing to unallocated stings.
9039 Do not lisp_free any marker blocks, as there may still be pointers
9040 to them from buffer undo lists at this stage of GC.
9041
9042 * keyboard.c (struct backtrace): Add debug_on_exit member.
9043 (Fcommand_execute): Clear it.
9044
931285e2
LT
90452004-05-20 Luc Teirlinck <teirllm@auburn.edu>
9046
9047 * intervals.c (lookup_char_property): Do not prematurely return nil.
9048
669fa600
SM
90492004-05-19 Jim Blandy <jimb@redhat.com>
9050
9051 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 9052 beginning and end of symbols.
4d12067c 9053
669fa600
SM
9054 * regex.c (enum syntaxcode): Add Ssymbol.
9055 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
9056 (re_opcode_t): New opcodes `symbeg' and `symend'.
9057 (print_partial_compiled_pattern): Print the new opcodes properly.
9058 (regex_compile): Parse the new operators.
ce50a847 9059 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
9060 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
9061 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
9062 (re_match_2_internal): Match symbeg and symend.
9063
9064 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
9065
0d8c2e5c
KS
90662004-05-19 Kim F. Storm <storm@cua.dk>
9067
9068 * .gdbinit (xsymbol): Fix last change.
9069
669fa600
SM
90702004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
9071
9072 * .gdbinit (xprintstr): New fun.
9073 (xstring, xprintsym): Use it.
9074
9075 * w32proc.c (create_child): Use INTMASK.
9076
9077 * alloc.c (Fgarbage_collect): Do all the marking before flushing
9078 unmarked elements of the undo list.
9079
9a6a4c40
DP
90802004-05-18 David Ponce <david@dponce.com>
9081
9082 * print.c (print): Reset print_depth before to call print_object.
9083
f3c4ec74
JR
90842004-05-18 Jason Rumney <jasonr@gnu.org>
9085
9086 * w32console.c: Prefix RIF functions with w32con_ to avoid
9087 namespace clash with functions in term.c and w32term.c.
9088
9089 * w32menu.c (add_menu_item, w32_menu_display_help)
9090 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
9091
0d8c2e5c 9092 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 9093
6be49c3a
EZ
90942004-05-18 Eli Zaretskii <eliz@gnu.org>
9095
4d0b9a0a
EZ
9096 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
9097
6be49c3a
EZ
9098 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
9099 with make_number.
9100 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
9101 with XINT.
9102
0bc90bba
KS
91032004-05-18 Kim F. Storm <storm@cua.dk>
9104
89d19988
KS
9105 * blockinput.h (INPUT_BLOCKED_P): New macros.
9106
9107 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
9108 (Ftop_level): Unblock input if blocked.
9109
0bc90bba
KS
9110 * buffer.h (GET_OVERLAYS_AT): New macro.
9111 * msdos.c (IT_note_mouse_highlight): Use it.
9112 * textprop.c (get_char_property_and_overlay): Use it.
9113 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
9114 * xfaces.c (face_at_buffer_position): Use it.
9115
9116 * print.c (print_object): Increase buf size.
9117
653bd0f6
JR
91182004-05-17 Jason Rumney <jasonr@gnu.org>
9119
9120 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
9121 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
9122 Lisp_Object using i member.
9123 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
9124 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
9125 consistently.
9126
9127 * w32proc.c (create_child): Use make_number instead of masking pid.
9128
9129 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
9130 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
9131 Use EQ to compare Lisp_Objects.
9132 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
9133
9134 * w32term.c (w32_num_mouse_buttons): Rename from
9135 Vw32_num_mouse_buttons and make it an int.
9136
9137 * w32.c (init_environment): Use it.
9138
9139 * w32fns.c (w32_wnd_proc): Likewise.
9140
9141 * w32proc.c (w32_pipe_read_delay): Rename from
9142 Vw32_pipe_read_delay and make it an int.
9143
9144 * w32.c (_sys_read_ahead): Use it.
9145
9146 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
9147
9148 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
9149
9150 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
9151 (key_event): Don't mix Lisp_Object and int.
9152
9153 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
9154
9155 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
9156 modifiers in language change event.
9157
54b53ba7
KS
91582004-05-17 Kim F. Storm <storm@cua.dk>
9159
9160 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
9161 Such objects may be freed markers which still exist on an undo list.
9162
6e86a75d
JB
91632004-05-16 Juanma Barranquero <lektu@terra.es>
9164
9165 * data.c (Fset_default): Make argument names match their use in
9166 docstring.
9167
fc80da24
AS
91682004-05-15 Andreas Schwab <schwab@suse.de>
9169
9170 * emacs.c (gdb_array_mark_flag): Define.
9171 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
9172
c1380aa6
EZ
91732004-05-15 Eli Zaretskii <eliz@gnu.org>
9174
9175 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
9176 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
9177 defined for the MS-DOS build.
9178
89458937
SM
91792004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
9180
9181 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
9182
08020f9a
KH
91832004-05-14 Kenichi Handa <handa@m17n.org>
9184
9185 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
9186
a433994a
ST
91872004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9188
9189 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
9190 section to frame.c section.
9191 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 9192 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 9193
a433994a 9194 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 9195
a433994a 9196 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 9197
a433994a
ST
9198 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
9199 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
9200 (XTread_socket): Fix int/Lisp_Object mixup.
9201 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 9202
a433994a
ST
9203 * macterm.h (struct frame, struct face, struct image)
9204 (display_x_get_resource, Fx_display_color_p)
89458937
SM
9205 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
9206 Add prototypes.
a433994a 9207
b51a51b9
KS
92082004-05-14 Kim F. Storm <storm@cua.dk>
9209
9210 * process.c (wait_reading_process_input): Make reentrant.
9211 Make Available and Connecting non-static. Save and restore value
9212 of waiting_for_user_input_p.
9213
2bde1dd8
KS
92142004-05-13 Kim F. Storm <storm@cua.dk>
9215
9216 * keyboard.c (mark_kboards): Don't mark x and y members
9217 that are overloaded in selection request events.
9218
a267ab4d
SM
92192004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
9220
9221 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
9222
eb15ce9e
GM
92232004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
9224
9225 * window.c (Fdisplay_buffer, Fsplit_window)
9226 (split-height-threshold): Doc fix.
9227
7fc92635
JB
92282004-05-13 Juanma Barranquero <lektu@terra.es>
9229
9230 * xfaces.c (Ftty_supports_face_attributes_p)
9231 (Finternal_copy_lisp_face): Fix typo in docstring.
9232 (Finternal_get_lisp_face_attribute): Fix docstring.
9233
1ec2a572
JD
92342004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9235
9236 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
9237
ae9292e0
ST
92382004-05-11 Steven Tamm <steventamm@mac.com>
9239
9240 * macfns.c (Fx_create_frame): Default to using tool-bar by
9241 setting tool-bar-lines to 1 in default-frame-alist.
9242
92432004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
9244
9245 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
9246 (xpm_get_color_table_v, xpm_make_color_table_h)
9247 (xpm_put_color_table_h, xpm_get_color_table_h)
9248 (xpm_str_to_color_key, xpm_load_image, xpm_load)
9249 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 9250 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 9251
fe97e8df
ST
92522004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9253
a267ab4d 9254 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
9255 instead of FRAME_X_P
9256
b47e779e
KS
92572004-05-11 Kim F. Storm <storm@cua.dk>
9258
9259 * process.c (read_process_output): Grow decoding_buf when needed;
9260 this could cause a crash in allocate_string and compact_small_strings.
9261
cdc9b845
EZ
92622004-04-29 Jim Blandy <jimb@redhat.com>
9263
9264 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
9265 against proper opcode.
9266
aa7094ba
JB
92672004-05-10 Juanma Barranquero <lektu@terra.es>
9268
9269 * process.c (Fstart_process): Fix docstring.
9270
9271 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
9272 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
9273 (Fsplit_char, Fchar_charset): Make argument names match their use
9274 in docstring.
9275
e109331a
RS
92762004-05-10 Richard M. Stallman <rms@gnu.org>
9277
9278 * print.c (print_preprocess): Use being_printed, loop_count and
9279 halftail to detect overdeep nesting and cyclic cdr chains.
9280
9a28b921
AS
92812004-05-10 Andreas Schwab <schwab@suse.de>
9282
78819ebb 9283 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
9284
9285 * fileio.c (Frename_file): Remove extra argument in call to
9286 Fmake_symbolic_link.
9287
e2c02c1a
KS
92882004-05-10 Kim F. Storm <storm@cua.dk>
9289
9290 * xdisp.c (calc_line_height_property): Use string position when
9291 object is a string.
9292
cfe9d13e
KH
92932004-05-10 Kenichi Handa <handa@m17n.org>
9294
a57e8159
KH
9295 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
9296 inhibit-modification-hooks to t temporarily before calling
9297 Ferase_buffer.
9298
9299 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
9300 inhibit-modification-hooks to t temporarily before calling
9301 Ferase_buffer.
9302
9303 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
9304 inhibit-modification-hooks to t temporarily before calling
9305 Ferase_buffer.
9306
cfe9d13e
KH
9307 * fns.c (count_combining): Delete it.
9308 (concat): Don't check combining bytes.
9309
ceb96489
JR
93102004-05-09 Jason Rumney <jasonr@gnu.org>
9311
9312 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
9313 (globals_of_w32fns): Set it.
9314
b6189c3b 93152004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
9316
9317 * data.c (Fquo): Simplify.
9318
28712a21
JB
93192004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
9320
9321 * data.c (Fquo): If any argument is float, do the computation in
9322 floating point.
9323
0f0af7a8
JB
93242004-05-08 Juanma Barranquero <lektu@terra.es>
9325
88214ef6
JB
9326 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
9327 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
9328 Fix spelling of Emacs on docstring.
9329 (Fset_process_coding_system, Fprocess_coding_system)
9330 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
9331 Make argument names match their use in docstring.
9332 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
9333 Fix docstring.
9334
0f0af7a8
JB
9335 * editfns.c (Finsert_buffer_substring): Make argument names match their
9336 use in docstring.
9337
9338 * syntax.c (Fmodify_syntax_entry): Fix docstring.
9339
2a316a84
ST
93402004-05-07 Steven Tamm <steventamm@mac.com>
9341
9342 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
9343 around call to ReceiveEvent to avoid certain crashes.
9344
93452004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 9346
2a316a84
ST
9347 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
9348 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
9349 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
9350 Save/restore the current graphics port and device handle when
9351 drawing into an offscreen graphics world.
9352
9353 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
9354 (gif_load): Likewise.
9355
ab80314b
JB
93562004-05-07 Juanma Barranquero <lektu@terra.es>
9357
9358 * window.c (Fset_window_buffer): Fix docstring.
9359
70646bb5
TTN
93602004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
9361
9362 * emacs.c (main) [VMS]: Fix var ref.
9363
b6189c3b 93642004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
9365
9366 * data.c (Fsetq_default): Fix docstring.
9367
279d3293
JR
93682004-05-06 Jason Rumney <jasonr@gnu.org>
9369
9370 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
9371 to avoid name clash.
9372
f72b5416
JD
93732004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9374
9375 * fileio.c (barf_or_query_if_file_exists): Use lstat.
9376 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 9377 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 9378
6ab66799
KS
93792004-05-04 Kim F. Storm <storm@cua.dk>
9380
9381 * xdisp.c (Qtotal): New var.
9382 (syms_of_xdisp): Intern and staticpro it.
9383 (calc_line_height_property): New arg total. Set it if
9384 line-spacing property has format (total . VALUE).
9385 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
9386 Handle total line-spacing property.
9387
ab2d724b
JD
93882004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9389
9390 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
9391 "under" scroll bar when size/position changes.
9392
238add5e
JR
93932004-05-03 Jason Rumney <jasonr@gnu.org>
9394
9395 * makefile.nt: Remove.
9396
1644f4e4
EZ
93972004-05-02 Eli Zaretskii <eliz@gnu.org>
9398
a267ab4d
SM
9399 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
9400 Avoid compiler warnings.
05fdbeb8 9401
1644f4e4
EZ
9402 * Makefile.in (region-cache.o): Depend on config.h.
9403
b6189c3b 94042004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
9405
9406 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
9407 with continuation lines, too.
9408
2b98b088
TTN
94092004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
9410
9411 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
9412
d9bf7950
SM
94132004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
9414
9415 * xdisp.c (calc_line_height_property): YAILOM (yet another
9416 int/Lisp_Object mixup).
9417
affa509c
EZ
94182004-05-01 Eli Zaretskii <eliz@gnu.org>
9419
9420 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
9421 undo bad effect of pack(4) in some versions of system headers.
9422
07c07cfe
JR
94232004-05-01 Jason Rumney <jasonr@gnu.org>
9424
9425 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
9426
e71caa4e
KS
94272004-04-30 Kim F. Storm <storm@cua.dk>
9428
9429 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 9430 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
9431
9432 * dispextern.h (struct it): Remove member use_default_face.
9433 Add members override_ascent, override_descent, override_boff.
9434
9435 * xdisp.c (init_iterator): Handle line-spacing float value.
9436 Initialize override_ascent member.
9437 (append_space_for_newline): Reset override_ascent.
9438 Remove use_default_face.
9439 (calc_line_height_property): New function to calculate value of
9440 line-height and line-spacing properties. Look at overlays, too.
9441 Set override_ascent, override_descent, override_boff members when
9442 using another face than the current face. Float values are now
9443 relative to the frame default font, by default; accept a cons
9444 of ratio and face name to specify value relative to a specific face.
9445 (x_produce_glyphs): Use calc_line_height_property.
9446 Use override_ascent etc. when set to handle different face heights.
9447 A negative line-spacing property value is interpreted as a total
9448 line height, rather than inter-line spacing.
9449 (note_mouse_highlight): Allocate room for 40 overlays initially.
9450
0fddae66
SM
94512004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
9452
9453 * data.c (Fsubr_name): New fun.
9454 (syms_of_data): Defsubr it.
9455
712d23dc
KS
94562004-04-29 Kim F. Storm <storm@cua.dk>
9457
9458 * xdisp.c (null_glyph_slice): New var.
9459 (append_glyph, append_composite_glyph, append_stretch_glyph):
9460 Use it to initialize glyph slice.
9461
033ad8c6
SM
94622004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
9463
9464 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
9465 (on_hot_spot_p): Make sure we always return a value.
9466 (Flookup_image_map): Remove unused var ix and iy.
9467 (note_mode_line_or_margin_highlight): Remove unused var `image'.
9468
93397360
EZ
94692004-04-27 Eli Zaretskii <eliz@gnu.org>
9470
9471 * msdos.c (init_environment): If one of the TMP... environment
9472 variables is set to a drive letter without a trailing slash,
9473 append a slash.
9474
0c54865e
EZ
94752004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
9476
9477 * editfns.c (lisp_time_argument): Provide externally.
9478
9479 * fileio.c (Fset_file_times): New function.
9480 (syms_of_fileio): Intern and staticpro it.
9481
d3b111bd
KS
94822004-04-27 Kim F. Storm <storm@cua.dk>
9483
07dc1231
KS
9484 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
9485 header line strings.
9486
360fe9d2
KS
9487 * dispextern.h (struct it): New member use_default_face.
9488
d3b111bd
KS
9489 * xdisp.c (Qline_height): New variable.
9490 (syms_of_xdisp): Intern and staticpro it.
9491 (append_space_for_newline): Partially undo 2004-04-25 change;
9492 add default_face_p arg, and restore callers.
9493 Clear it->use_default_face after use.
9494 (x_produce_glyphs): Set default font for ascii char if
9495 it->use_default_font is set. Change line-spacing property to set
9496 just extra line spacing. Handle new line-height property.
9497
0448588b
AS
94982004-04-26 Andreas Schwab <schwab@suse.de>
9499
9500 * print.c (print_object): Print non-ascii characters in bool
9501 vector representation as octal escapes.
9502
9503 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
9504 * print.c (print_object): Use it instead of BITS_PER_CHAR for
9505 bool vectors.
9506 * lread.c (read1): Likewise.
9507 * alloc.c (Fmake_bool_vector): Likewise.
9508 * data.c (Faref, Faset): Likewise.
9509 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
9510 (mapcar1): Likewise.
d3b111bd 9511
536d6baa
ST
95122004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
9513
7e26f91b 9514 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
536d6baa 9515
ae11577a
MB
95162004-04-26 Miles Bader <miles@gnu.org>
9517
9518 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
9519
e198ba87
JB
95202004-04-26 Juanma Barranquero <lektu@terra.es>
9521
9522 * buffer.c (Fpop_to_buffer): Fix docstring.
9523
f3d5f92d 95242004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 9525
f3d5f92d
ST
9526 * lread.c (init_lread): Don't display missing lisp directory
9527 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 9528 may be built without correct installation path.
f3d5f92d 9529
03e35edc
KS
95302004-04-25 Kim F. Storm <storm@cua.dk>
9531
9ff3aa31
KS
9532 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
9533
9534 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
9535
03e35edc
KS
9536 * xdisp.c (append_space_for_newline): Rename from append_space.
9537 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
9538 (x_produce_glyphs): Handle line-spacing property on newline char.
9539 If value is t, adjust ascent and descent to fit current row height.
9540 If value is an integer or float, set extra_line_spacing to integer
9541 value, or to float value x current line height.
9542
f24814e0
KH
95432004-04-23 Kenichi Handa <handa@m17n.org>
9544
9545 * fontset.c (Finternal_char_font): If POSITION is nil, return
9546 font for displaying CH with the default face.
9547
d814862a
JB
95482004-04-23 Juanma Barranquero <lektu@terra.es>
9549
9550 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
9551
063a45c5
SM
95522004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
9553
9554 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
9555 Don't make assumptions about the relative place of i and val.
9556 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
9557
ae7ab2d3
KS
95582004-04-21 Kim F. Storm <storm@cua.dk>
9559
9560 * dispextern.h (struct glyph_slice): New struct.
9561 (struct glyph): New member slice.
9562 (GLYPH_SLICE_EQUAL_P): New macro.
9563 (GLYPH_EQUAL_P): Use it.
9564 (struct glyph_string): New member slice.
9565 (struct it_slice): New struct.
9566 (struct it): New member slice, add member to stack too.
9567 New member constrain_row_ascent_descent_p.
9568 (image_ascent): Add prototype.
9569
9570 * dispnew.c (buffer_posn_from_coords): Return full image width
9571 and height even for image slices (posn is relative to full image).
9572 (marginal_area_string): Adjust x0,y0 for image slice.
9573
9574 * image.c (image_ascent): Add slice arg; calculate ascent for
9575 image slice (or full image).
9576
9577 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
9578 (syms_of_keyboard): Defsubr them.
9579
9580 * lisp.h (pos_visible_p): Fix prototype.
9581
c62aec78 9582 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
9583 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
9584 (x_draw_image_foreground, x_draw_image_relief)
9585 (x_draw_image_foreground_1, x_draw_image_glyph_string):
9586 Draw sliced images.
9587
9588 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
9589 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
9590 (x_draw_image_foreground, x_draw_image_relief)
9591 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
9592 Draw sliced images.
9593
9594 * w32term.h (image_ascent): Remove prototype.
9595
9596 * window.c (Fpos_visible_in_window_p): Return pixel position if
9597 PARTIALLY arg is non-nil. Simplify. Doc fix.
9598 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
9599 to return/set vscroll in pixels.
9600
9601 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
9602
9603 * xdisp.c (Qslice): New variable.
9604 (syms_of_xdisp): Intern and staticpro it.
9605 (pos_visible_p): Return pixel position in new x and y args.
9606 (init_iterator): Reset it->slice info.
9607 (handle_display_prop): Parse (slice ...) property.
9608 (push_it, pop_it): Save/restore slice info.
9609 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
9610 force repositioning of tall row if window is vscrolled, as that
9611 would reset vscroll.
9612 (append_space): Set it->constrain_row_ascent_descent_p to avoid
9613 increasing row height if row is non-empty.
9614 (fill_image_glyph_string): Copy slice info.
9615 (take_vertical_position_into_account): Simplify.
9616 (produce_image_glyph): Handle iterator slice info, setup glyph
9617 slice info. Do not force minimum line height.
9618 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
9619 do not increase height (ascent/descent) of non-empty row when
9620 adding normal character glyph; instead reduce glyph ascent/descent
9621 appropriately; if row is higher than current glyph, adjust glyph
9622 descent/ascent to reposition glyph within the existing row.
9623 Likewise, when char is newline, only set ascent/descent if row is
9624 currently empty.
9625 (note_mouse_highlight): Handle hotspots with sliced image.
9626
9627 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
9628 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
9629 (x_draw_image_foreground, x_draw_image_relief)
9630 (x_draw_image_foreground_1, x_draw_image_glyph_string):
9631 Draw sliced images.
9632
9633 * xterm.h (image_ascent): Remove prototype.
9634
d58f8753
SM
96352004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9636
9637 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
9638
4ce2719d
JPW
96392004-04-20 John Paul Wallington <jpw@gnu.org>
9640
9641 * fns.c (Fassoc, Feql): Fix indentation.
9642
d58f8753 9643 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 9644
95f8c3b9
JPW
96452004-04-19 John Paul Wallington <jpw@gnu.org>
9646
9647 * fns.c (Feql): New function.
d58f8753 9648 (syms_of_fns): Defsubr it.
95f8c3b9 9649
b7e85537
JR
96502004-04-18 Jason Rumney <jasonr@gnu.org>
9651
9652 * w32select.c (Fw32_set_clipboard_data): Get sequence number
9653 after closing the clipboard.
9654
5a72efd4
LT
96552004-04-16 Luc Teirlinck <teirllm@auburn.edu>
9656
9657 * buffer.c (Fbuffer_base_buffer): Doc fix.
9658
20dc8583
KS
96592004-04-17 Kim F. Storm <storm@cua.dk>
9660
60962ec4
KS
9661 * keymap.c (Fkey_description): Add optional PREFIX arg.
9662 Combine prefix with KEYS to make up the full key sequence to describe.
9663 Correlate meta_prefix_char and following (simple) key to describe
9664 as meta modifier. All callers changed.
9665 (describe_map): Rename arg `keys' to `prefix'. Remove local
9666 `elt_prefix' var. Use Fkey_description with prefix instead of
9667 elt_prefix combined with Fsingle_key_description.
9668 (describe_vector): Declare static. Replace arg `elt_prefix' with
9669 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
52eb0373 9670 if !KEYMAP_P. Use Fkey_description with prefix instead of
60962ec4
KS
9671 Fsingle_key_description.
9672
9673 * keymap.h (Fkey_description): Fix prototype.
9674 (describe_vector): Remove prototype.
9675
409368b9
KS
9676 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
9677
20dc8583
KS
9678 * image.c (PNG_BG_COLOR_SHIFT): Remove.
9679 (png_load): Fix calculation of transparent background color on X
9680 and W32 platforms.
9681
75c5501b
JB
96822004-04-16 Juanma Barranquero <lektu@terra.es>
9683
9684 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
9685 not too large before computing how much to scroll.
9686
da879ae8
SM
96872004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
9688
9689 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
9690
d01ca4a8
LT
96912004-04-14 Luc Teirlinck <teirllm@auburn.edu>
9692
9693 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
9694 Add hyperlink to Elisp manual to the docstring.
9695
572943b3
SM
96962004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
9697
9698 * callint.c (fix_command): Use XDCR.
9699
5e30a0fb
NR
97002004-04-14 Nick Roberts <nick@nick.uklinux.net>
9701
9702 * window.c (Fget_lru_window): Doc fix.
9703
a27ddfaf
KS
97042004-04-14 Kim F. Storm <storm@cua.dk>
9705
9706 * editfns.c (Fformat): Fix allocation size of precision array.
9707
9708 * dispnew.c (update_window): Only set changed_p if
9709 scrolling_window actually did scroll.
9710 (scrolling_window): Only return 1 if we actually did scroll.
9711
9712 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
9713 height to glyph height when cursor row is not fully visible.
9714 (make_cursor_line_fully_visible): Add FORCE_P arg to return
9715 failure in case row is higher than window. Callers changed.
9716 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
9717 Try to scroll partially visible, higher-than-window cursor row.
9718 (redisplay_window): Always try to scroll partially visible,
9719 higher-than-window cursor row - both initially and again with
9720 centering_position = 0.
9721 Clear desired matrix before retrying with centering_position = 0.
9722
da879ae8
SM
97232004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9724
9725 * syntax.c (scan_lists): Simplify backward string scan.
9726 Fix off-by-one boundary check for string and comment fences.
9727
5fc16e8e
SM
97282004-04-13 Joe Buehler <jbuehler@hekimian.com>
9729
9730 * sheap.c, unexcw.c: New files.
9731
c9aac8e6
LT
97322004-04-12 Luc Teirlinck <teirllm@auburn.edu>
9733
9734 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
9735 base buffer has been killed. Correct the error message if the
9736 base buffer does not exist.
9737
1e88a355
SM
97382004-04-12 Joe Buehler <jbuehler@hekimian.com>
9739
9740 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
9741 Cygwin itself. Add support for Xaw3d scrollbars.
9742
9743 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
9744
9745 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
9746
9747 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
9748 before Cygwin unexec.
9749
9750 * Makefile.in: Link changes for Cygwin unexec() support.
9751
8dbff9a0
AS
97522004-04-12 Andreas Schwab <schwab@suse.de>
9753
9754 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
9755
54dffe35
LT
97562004-04-11 Luc Teirlinck <teirllm@auburn.edu>
9757
9758 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
9759 IGNORE argument equals NAME. Doc fix.
9760
99a72bdf
MY
97612004-04-11 Masatake YAMATO <jet@gyve.org>
9762
1e88a355 9763 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
9764 empty if they are backwards.
9765
40899d7b
SM
97662004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
9767
9768 * xfaces.c (face_color_supported_p): Fix compilation without X11.
9769
f8f853de
SM
97702004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
9771
9772 * doc.c (Fsnarf_documentation): Ignore new file name entries.
9773
c953fe1b
KS
97742004-04-06 Kim F. Storm <storm@cua.dk>
9775
661e85c1
KS
9776 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
9777 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
9778
9779 * w32term.c (w32_read_socket): Set mouse_face_hidden after
9780 clearing highlight.
9781
9782 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
9783
9784 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
9785 clearing highlight.
9786
c953fe1b
KS
9787 * indent.c (vmotion): Do not reserve one column for continuation
9788 marks on window frames.
9789
c1994268
EZ
97902004-04-04 Eli Zaretskii <eliz@gnu.org>
9791
9792 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
9793 from GCC.
9794
9f691b0d
SM
97952004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
9796
9797 * .gdbinit-union: Remove.
9798
9799 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
9800 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
9801 ($nonvalbits): Remove.
9802 ($valmask): Set it by calling xreload to avoid redundancy.
9803
9804 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
9805 (gdb_emacs_intbits): Remove.
9806
7a8560d7
JD
98072004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9808
9f691b0d 9809 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 9810
3c8111fc
KH
98112004-03-30 Kenichi Handa <handa@m17n.org>
9812
9813 * editfns.c (Fformat): Fix initialization of the array info.
9814
48a0bce4
KS
98152004-03-30 Kim F. Storm <storm@cua.dk>
9816
9817 * xterm.c (x_mouse_click_focus_ignore_position): New var.
9818 (syms_of_xterm): DEFVAR_BOOL it.
9819 (ignore_next_mouse_click_timeout): New var.
9820 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
9821 Use it to filter mouse clicks following focus event.
9822
1cd0066c
KS
98232004-03-29 David Ponce <david@dponce.com>
9824
9825 * callint.c (Fcall_interactively): Fix last change.
9826
adb3b353
SM
98272004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9828
9829 * eval.c (Fcommandp): Simplify.
9830
9831 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
9832 Extend to handle all kinds of functions.
9833
9834 * lisp.h (Finteractive_form): Declare.
9835
9836 * callint.c (Fcall_interactively): Use it.
9837
6fc4c9c9
KS
98382004-03-26 Kim F. Storm <storm@cua.dk>
9839
9840 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
9841 to catch errors in calc_pixel_width_or_height during redisplay.
9842
abdb9b83
MY
98432004-03-26 Masatake YAMATO <jet@gyve.org>
9844
b17856dd 9845 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 9846
b17856dd 9847 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 9848
b17856dd 9849 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 9850
b17856dd 9851 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 9852
e8a84b6c
JD
98532004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9854
b17856dd 9855 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 9856
36a3fd05
RS
98572004-03-19 Richard M. Stallman <rms@gnu.org>
9858
9859 * s/sol2-6.h: Delete previous change.
9860
ab24c127
KS
98612004-03-19 Kim F. Storm <storm@cua.dk>
9862
9863 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
9864 to_charpos corresponds to newline in right fringe. Use local
9865 BUFFER_POS_REACHED_P macro.
9866
992126de
JD
98672004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9868
9869 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
9870 to compile on non-window system.
9871
45dbfc84
KS
98722004-03-19 Kim F. Storm <storm@cua.dk>
9873
9874 * dispextern.h (calc_pixel_width_or_height): Add prototype.
9875
9876 * image.c (Qcenter): Move to xdisp.c.
9877
9878 * xdisp.c (Qcenter): Declare here.
adb3b353 9879 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
9880 (handle_single_display_prop): Allow space display property on all
9881 platforms.
9882 (display_mode_line): Set mode_line_p before displaying line.
9883 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
9884 handling. Remove complex cases for fringes and scroll-bars.
52eb0373 9885 Add left, right, and center alignment positions. Add text (area)
45dbfc84
KS
9886 width/height. Return width or height for image specs.
9887 (produce_stretch_glyph): Improve handling of :align-to. Is now
9888 relative to left of text area by default, but other base offsets
9889 can be specified -- also for text lines.
9890
9891 * term.c (produce_glyphs): Handle IT_STRETCH.
9892 (produce_stretch_glyph): New function to handle space width and
9893 align-to display properties on non-window systems.
9894
37264101
SM
98952004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9896
9897 * fileio.c (Fread_file_name): Set completion-ignore-case for
9898 case-insensitive systems.
9899
73bc43da
MY
99002004-03-14 Masatake YAMATO <jet@gyve.org>
9901
9902 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
9903 when keymap and cursor are setup.
9904
d5fb8dab 99052004-03-14 Steven Tamm <steventamm@mac.com>
9062aa89 9906
b17856dd 9907 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 9908
e4b1b5ab
KS
99092004-03-14 Kim F. Storm <storm@cua.dk>
9910
9911 * dispextern.h (x_find_image_file): Add prototype.
9912
9913 * image.c (x_find_image_file): Make extern.
9914
9915 * xfns.c (x_find_image_file): Remove prototype.
9916
a6eeaa81 99172004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 9918
37264101 9919 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 9920
37264101 9921 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 9922
e69cfac2
RS
99232004-03-12 Richard M. Stallman <rms@gnu.org>
9924
9925 * fns.c (internal_equal): New arg PROPS controls comparing
9926 text properties. All callers changed.
9927 (Fequal_including_properties): New function.
9928 (syms_of_fns): defsubr it.
9929
45034953
KS
99302004-03-12 Kim F. Storm <storm@cua.dk>
9931
9932 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 9933
45034953
KS
9934 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
9935 (image_background, image_background_transparent): Fix prototypes.
9936
37264101 9937 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
9938
9939 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
9940 (x_query_font, x_find_ccl_program, x_set_window_size)
9941 (x_make_frame_visible, mac_initialize, XCreatePixmap)
9942 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
9943 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
9944
9945 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
9946 (x_query_font, x_find_ccl_program, x_set_window_size)
9947 (x_make_frame_visible, mac_initialize, XCreatePixmap)
9948 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
9949 (mac_draw_line_to_pixmap): Add prototypes.
9950
99512004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9952
9953 * macterm.c (XTread_socket): Fix mouse click on tool bar.
9954
a12d3d87
KS
99552004-03-11 Kim F. Storm <storm@cua.dk>
9956
d3ab1cf1
KS
9957 * dispextern.h: Move image related prototypes from xfns.c section
9958 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
9959 HAVE_X_WINDOWS.
37264101 9960
37de9f51 9961 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 9962 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
9963 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
9964 (GTK_OBJ) [USE_GTK]: New declaration.
9965 (obj): Add $(GTK_OBJ) to list.
9966
d5fb8dab 99672004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 9968
7e26f91b 9969 * image.c [MAC_OSX]: Include sys/stat.h.
5243c06a
ST
9970
9971 * macfns.c (syms_of_macfns): Remove definitions of things now
7e26f91b 9972 defined in image.c.
5243c06a 9973
c0f97789
KS
99742004-03-11 Kim F. Storm <storm@cua.dk>
9975
9976 The following changes consolidates the identical/similar image
9977 support code previously found in xfns.c, w32fns.c, and macfns.c
9978 into a new file image.c.
9979
9980 * makefile.w32-in (OBJ1): Add image.o.
9981 ($(BLD)/image.$(O)): Add dependencies.
9982
9983 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
9984 (image.o): Add dependencies.
37264101 9985
c0f97789
KS
9986 * image.c: New file with consolidated image support code.
9987 (COLOR_TABLE_SUPPORT): New define to control whether
9988 color table support is available (X only).
9989 (Bitmap_Record): Common name for x_bitmap_record,
9990 w32_bitmap_record, and mac_bitmap_record.
9991 (XImagePtr): Common name for pointer to XImage or equivalent.
9992 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
9993 to XImagePtr on X+MAC, and to HDC on W32.
9994 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
9995 (NO_PIXMAP): Common name for "None" or equivalent.
9996 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
9997 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
9998 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
9999 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
10000 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
10001 (XDrawLine): Define on MAC for code sharing.
10002 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
10003 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
10004 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
10005 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10006 (x_reference_bitmap, x_create_bitmap_from_data)
10007 (x_create_bitmap_from_file, x_destroy_bitmap)
10008 (x_destroy_all_bitmaps, x_create_bitmap_mask)
10009 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10010 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
10011 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
10012 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
10013 (define_image_type, lookup_image_type, valid_image_p)
10014 (image_error, enum image_value_type, struct image_keyword)
10015 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
10016 (make_image, free_image, prepare_image_for_display, image_ascent)
10017 (four_corners_best, image_background, image_background_transparent)
9dd28cae 10018 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
10019 (make_image_cache, free_image_cache, clear_image_cache)
10020 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
10021 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
10022 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
10023 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
10024 (init_image_func_pointer, image_load_quartz2d)
10025 (struct ct_color, init_color_table, free_color_table)
10026 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
10027 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
10028 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
10029 (x_disable_image, x_build_heuristic_mask)
10030 (XBM support, XPM support, PBM support, PNG support, JPEG support)
10031 (TIFF support, GIF support, Ghostscript support): Consolidate image
10032 code from xfns.c, w32fns.c, and macfns.c.
10033 (syms_of_image): Consolidate image related symbol setup here.
10034 (init_image): Consolidate image related initializations here.
37264101 10035
c0f97789
KS
10036 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
10037 and init_image. Remove call to init_xfns.
10038
37264101
SM
10039 * macterm.h (struct mac_bitmap_record): Add file member.
10040 Not currently used, but simplifies code sharing.
c0f97789
KS
10041
10042 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
10043 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10044 (x_reference_bitmap, x_create_bitmap_from_data)
10045 (x_create_bitmap_from_file, x_destroy_bitmap)
10046 (x_destroy_all_bitmaps, x_create_bitmap_mask)
10047 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10048 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
10049 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
10050 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
10051 (define_image_type, lookup_image_type, valid_image_p)
10052 (image_error, enum image_value_type, struct image_keyword)
10053 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
10054 (make_image, free_image, prepare_image_for_display, image_ascent)
10055 (four_corners_best, image_background, image_background_transparent)
9dd28cae 10056 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
10057 (make_image_cache, free_image_cache, clear_image_cache)
10058 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
10059 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
10060 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
10061 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
10062 (init_image_func_pointer, image_load_quartz2d)
10063 (struct ct_color, init_color_table, free_color_table)
10064 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
10065 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
10066 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
10067 (x_disable_image, x_build_heuristic_mask)
10068 (XBM support, XPM support, PBM support, PNG support, JPEG support)
10069 (TIFF support, GIF support, Ghostscript support): Merge with image
10070 code from xfns.c and macfns.c into image.c.
10071 (syms_of_xfns): Move image related symbols to image.c.
10072 (init_external_image_libraries, init_xfns): Remove; initialization
10073 moved to init_image in image.c.
10074
10075 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
10076 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10077 (x_reference_bitmap, x_create_bitmap_from_data)
10078 (x_create_bitmap_from_file, x_destroy_bitmap)
10079 (x_destroy_all_bitmaps, x_create_bitmap_mask)
10080 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
10081 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
10082 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
10083 (define_image_type, lookup_image_type, valid_image_p)
10084 (image_error, enum image_value_type, struct image_keyword)
10085 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
10086 (make_image, free_image, prepare_image_for_display, image_ascent)
10087 (four_corners_best, image_background, image_background_transparent)
9dd28cae 10088 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
10089 (make_image_cache, free_image_cache, clear_image_cache)
10090 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
10091 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
10092 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
10093 (struct ct_color, init_color_table, free_color_table)
10094 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
10095 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
10096 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
10097 (x_disable_image, x_build_heuristic_mask)
10098 (XBM support, XPM support, PBM support, PNG support, JPEG support)
10099 (TIFF support, GIF support, Ghostscript support): Merge with image
10100 code from xfns.c and macfns.c into image.c.
10101 (syms_of_xfns): Move image related symbols to image.c.
10102 (init_external_image_libraries, init_xfns): Remove; initialization
10103 moved to init_image in image.c.
10104
10105 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
10106 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10107 (x_reference_bitmap, x_create_bitmap_from_data)
10108 (x_create_bitmap_from_file, x_destroy_bitmap)
10109 (x_destroy_all_bitmaps, x_create_bitmap_mask)
10110 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
10111 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
10112 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
10113 (define_image_type, lookup_image_type, valid_image_p)
10114 (image_error, enum image_value_type, struct image_keyword)
10115 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
10116 (make_image, free_image, prepare_image_for_display, image_ascent)
10117 (four_corners_best, image_background, image_background_transparent)
9dd28cae 10118 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
10119 (make_image_cache, free_image_cache, clear_image_cache)
10120 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
10121 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
10122 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
10123 (struct ct_color, init_color_table, free_color_table)
10124 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
10125 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
10126 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
10127 (x_disable_image, x_build_heuristic_mask)
10128 (XBM support, XPM support, PBM support, PNG support, JPEG support)
10129 (TIFF support, GIF support, Ghostscript support): Merge with
10130 w32fns.c and macfns.c image code into image.c.
10131 (syms_of_xfns): Move image related symbols to image.c.
10132 (init_xfns): Remove; initialization moved to init_image in image.c.
10133
10134 * lisp.h (syms_of_image, init_image): Add protoypes.
10135 (init_xfns): Remove prototype.
10136
10137 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10138 (x_reference_bitmap, x_create_bitmap_from_data)
10139 (x_create_bitmap_from_file, x_destroy_bitmap)
10140 (x_create_bitmap_mask): Move prototypes from dispextern.h.
10141 (gamma_correct) [MAC_OS]: Add prototype.
10142
10143 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10144 (x_reference_bitmap, x_create_bitmap_from_data)
10145 (x_create_bitmap_from_file, x_destroy_bitmap)
10146 (x_create_bitmap_mask): Move prototypes to dispextern.h.
10147
6eced09c
KH
101482004-03-09 Kenichi Handa <handa@etlken2>
10149
10150 * coding.c (decode_coding_emacs_mule): Handle insufficent source
10151 correctly.
10152
9a7e95f3
RS
101532004-03-04 Richard M. Stallman <rms@gnu.org>
10154
04a6e76b
RS
10155 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
10156
9a7e95f3
RS
10157 * window.c (Fdisplay_buffer): Doc fix.
10158
10159 * buffer.c (Fpop_to_buffer): Doc fix.
10160
6c2488df
KS
101612004-03-03 Kim F. Storm <storm@cua.dk>
10162
10163 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
10164
d8d95bc7
SM
101652004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
10166
10167 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
10168
357589bf
RS
101692004-03-02 Richard M. Stallman <rms@gnu.org>
10170
10171 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
10172
409949b5
KH
101732004-03-02 Kenichi Handa <handa@m17n.org>
10174
10175 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
10176
d24bc50f
KS
101772004-03-02 Kim F. Storm <storm@cua.dk>
10178
10179 * window.h (struct window): New member overlay_arrow_bitmap.
10180
10181 * window.c (make_window): Initialize overlay_arrow_bitmap.
10182
10183 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
10184 implement and integrate multiple overlay arrows with redisplay.
10185 (syms_of_xdisp): DEFVAR_LISP and initialize it.
10186 (last_arrow_position, last_arrow_string): Replace by properties.
10187 (Qlast_arrow_position, Qlast_arrow_string)
10188 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
10189 (syms_of_xdisp): Intern and staticpro them.
10190 (overlay_arrow_string_or_property, update_overlay_arrows)
10191 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
10192 (overlay_arrow_at_row): New functions for multiple overlay arrows.
10193 (redisplay_internal): Use them instead of directly accessing
10194 Voverlay_arrow_position etc. for multiple overlay arrows.
10195 (mark_window_display_accurate): Use update_overlay_arrows.
10196 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
10197 (try_window_id): Use overlay_arrows_changed_p.
10198 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
10199 (display_line): Use overlay_arrow_at_row to check multiple
10200 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 10201 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
10202 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
10203 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
10204
10205 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
10206 (update_window_fringes): Remove unused code.
10207
c1464661
JR
102082004-03-01 Jason Rumney <jasonr@gnu.org>
10209
10210 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
10211
a64387ee
JB
102122004-03-01 Juanma Barranquero <lektu@terra.es>
10213
10214 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
10215
10216 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
10217
334faa08
JD
102182004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10219
10220 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
10221 how many colors can be displayed.
10222
bb62616f
KH
102232004-03-01 Kenichi Handa <handa@m17n.org>
10224
10225 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
10226 correctly.
10227
0fd16104
KS
102282004-02-28 Kim F. Storm <storm@cua.dk>
10229
10230 * dispnew.c (update_window): Update header line also if there are
10231 no other changes in window (move code after set_cursor label).
10232
10233 * lisp.h (mark_window_display_accurate): Remove prototype.
10234
10235 * window.c (window_loop, Fforce_window_update): Force mode line
10236 updates by setting prevent_redisplay_optimizations_p and
10237 update_mode_lines.
10238
b59dd9c8
JD
102392004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10240
d8d95bc7 10241 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
10242
10243 * xterm.c (x_calc_absolute_position): Call x_real_positions
10244 to get WM window sizes and use those to calculate position.
d8d95bc7 10245 (x_set_offset): Remove code commented out.
b59dd9c8 10246
a874691c
MB
102472004-02-28 Miles Bader <miles@gnu.org>
10248
10249 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
10250
3e0c6482
KS
102512004-02-28 Kim F. Storm <storm@cua.dk>
10252
10253 * keyboard.c (kbd_buffer_store_event_hold): New function to store
10254 an event into kbd fifo, but with special handling of quit event;
10255 a quit event is saved for later, and further events are discarded
10256 until the saved quit event has been processed.
10257 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
10258 (gen_help_event): Store help event in kbd fifo.
10259 (NREAD_INPUT_EVENTS): Remove.
10260 (read_avail_input): Adapt to new read_socket_hook interface.
10261 Remove allocation and initialization of local input_event buffer,
10262 as read_socket_hook stores events directly in fifo. Allocate and
10263 initialize local hold_quit event to handle postponed quit event
10264 (and store it if set by kbd_buffer_store_event_hold).
10265
10266 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
10267 (gen_help_event): Fix prototype.
10268
a64387ee 10269 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 10270 numcharsp args. Add hold_quit arg.
f63fd14e 10271 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
10272 directly in fifo using kbd_buffer_store_event_hold.
10273
10274 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
10275 (read_input_waiting): Adapt to new read_socket_hook interface.
10276 Remove allocation and initialization of local input_event buffer,
10277 as read_socket_hook stores events directly in fifo. Allocate and
10278 initialize local hold_quit event to handle postponed quit event
10279 (and store it if set by kbd_buffer_store_event_hold).
10280
a64387ee 10281 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
10282
10283 * termhooks.h (read_socket_hook): Fix prototype.
10284
10285 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
10286 numcharsp args. Add hold_quit arg.
f63fd14e 10287 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
10288 directly in fifo using kbd_buffer_store_event_hold.
10289
10290 * w32inevt.h (w32_console_mouse_position): Fix prototype.
10291
10292 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
10293 Add hold_quit arg. Rework to use just one, local, inev
10294 input_event. Store inev directly in fifo using
3e0c6482
KS
10295 kbd_buffer_store_event_hold. Update count in one place.
10296 Postpone call to gen_help_event until inev is stored; use new
10297 local do_help for this.
10298 Remove local emacs_event in handing of ButtonPress event; just use
10299 inev instead (so no reason to copy it later).
10300
10301 * xsmfns.c (x_session_check_input): Remove numchars arg.
10302
d8d95bc7
SM
10303 * xterm.c (x_focus_changed, x_detect_focus_change):
10304 Remove numchars arg. Always store event into bufp arg.
10305 Return nothing. Callers changed accordingly.
3e0c6482
KS
10306 (glyph_rect): Simplify.
10307 (STORE_KEYSYM_FOR_DEBUG): New macro.
10308 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
10309 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
10310 (current_hold_quit) [USE_GTK]: Add.
10311 (event_handler_gdk): Adapt to new handle_one_xevent.
10312 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
10313 Add hold_quit arg. Rework to use just one, local, inev
10314 input_event. Store inev directly in fifo using
3e0c6482
KS
10315 kbd_buffer_store_event_hold. Update count in one place.
10316 Postpone call to gen_help_event until inev is stored; use new
10317 local do_help for this.
10318 Simplify handling of keysyms (consolidate common code). Fix bug
10319 where count was updated with nchars instead of nbytes.
10320 Remove local emacs_event in handing of ButtonPress event; just use
10321 inev instead (so no reason to copy it later).
10322 Remove `out' label. Rename label `ret' to `done'; add various
10323 `goto done' to clarify code flow in deeply nested blocks.
10324 (x_dispatch_event): Simplify as handle_one_xevent now calls
10325 kbd_buffer_store_event itself.
f63fd14e 10326 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
10327 arg. Call handle_one_xevent with new arglist. Store event from
10328 x_session_check_input in fifo.
10329 [USE_GTK]: Setup current_hold_quit.
10330 Decrement handling_signal before unblocking input.
10331 (x_initialize) [USE_GTK]: Initialize current_count.
10332
10333 * xterm.h (x_session_check_input): Fix prototype.
10334
e3564461 103352004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 10336
d8d95bc7 10337 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 10338
e3564461
ST
10339 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
10340 macgui.h).
a64387ee 10341
e3564461 10342 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 10343
e3564461
ST
10344 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
10345 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
10346 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
10347 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
10348 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
10349 (Bitmap): Remove typedef.
10350 (Pixmap): Change int to GWorldPtr.
10351
d8d95bc7 10352 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 10353
d8d95bc7
SM
10354 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
10355 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
10356 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
10357 long representation.
10358 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
10359 colors used for masks.
10360 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 10361
e3564461
ST
10362 * macfns.c: Include sys/types.h and sys/stat.h.
10363 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
10364 Include QuickTime/QuickTime.h.
10365 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10366 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
10367 functions defined in macterm.c.
10368 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
10369 (ZPixmap): New #define for compatibility with xfns.c.
10370 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10371 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
10372 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
10373 New functions.
e3564461 10374 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
10375 (x_destroy_x_image, unwind_create_frame, x_disable_image)
10376 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
10377 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
10378 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
10379 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
10380 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
10381 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
10382 long mixup.
10383 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
10384 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
10385 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
10386 (x_set_cursor_type, Fxw_color_values, valid_image_p)
10387 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
10388 (x_alloc_image_color, clear_image_cache, lookup_image)
10389 (x_find_image_file, xbm_read_bitmap_file_data)
10390 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
10391 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
10392 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
10393 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
10394 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 10395 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
10396 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
10397 #if 0.
10398 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
10399 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
10400 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
10401 New functions (from xfns.c).
e3564461
ST
10402 (Fx_create_frame): Record unwind_create_frame.
10403 (Fxw_display_color_p): Use dpyinfo->color_p.
10404 (Fx_display_grayscale_p, Fx_display_planes): Don't use
10405 dpyinfo->n_cbits.
10406 (Fx_display_color_cells): Use dpyinfo->n_planes;
10407 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
10408 (Qheuristic, cross_disabled_images, emboss_matrix)
10409 (laplace_matrix): New variables (from xfns.c).
10410 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
10411 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
10412 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
10413 (image_background_transparent): New function (from xfns.c).
10414 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
10415 (image_load_quicktime): Add declaration.
10416 [MAC_OSX] (image_load_quartz2d): Likewise.
10417 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
10418 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 10419 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
10420 (xbm_load_image_from_file, x_laplace_read_row)
10421 (x_laplace_write_row, pbm_read_file): Remove functions.
10422 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
10423 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
10424 (colors_in_color_table): Sync with xfns.c (although not used).
10425 (lookup_rgb_color): Don't lookup color table. Just do gamma
10426 correction.
10427 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
10428 (x_disable_image): New function (from xfns.c).
10429 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
10430 (x_build_heuristic_mask): Sync with xfns.c.
10431 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
10432 (HAVE_PBM): Remove #ifdef.
10433 (pbm_load): Sync with xfns.c. Set img->width and img->height
10434 before IMAGE_BACKGROUND.
d8d95bc7 10435 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
10436 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
10437 Don't enclose with #if HAVE_PNG.
10438 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
10439 symbol _CGImageCreateWithPNGDataProvider is defined.
10440 Otherwise use image_load_quicktime.
e3564461 10441 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
10442 [HAVE_PNG] (png_load): Sync with xfns.c.
10443 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
10444 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
10445 HAVE_JPEG.
10446 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
10447 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
10448 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
10449 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
10450 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
10451 (tiff_image_p, tiff_load): Don't enclose declarations with #if
10452 HAVE_TIFF.
10453 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
10454 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
10455 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
10456 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
10457 New functions (from xfns.c).
e3564461 10458 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 10459 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
10460 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
10461 Don't enclose with #if HAVE_GIF.
10462 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
10463 animated gif. Otherwise use image_load_quicktime.
10464 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
10465 gif_DrawText to avoid conflict with QuickdrawText.h.
10466 [HAVE_GIF] (gif_load): Sync with xfns.c.
10467 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
10468 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
10469 Ghostscript is not supported yet).
10470 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
10471 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
10472 cross_disabled_images (from xfns.c). Remove #if 0 for supported
10473 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
10474 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
10475 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
10476 HAVE_PNG. Call EnterMovies to support animated gifs.
10477 Call init_image_func_pointer to bind a symbol
e3564461 10478 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 10479
d8d95bc7 10480 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
10481 (x_draw_bar_cursor): Sync declaration with xterm.c.
10482 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
10483 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
10484 graphics).
10485 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
10486 (mac_draw_line_to_pixmap, XCreatePixmap)
10487 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
10488 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
10489 New functions.
10490 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
10491 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
10492 Cast bits to char *.
e3564461
ST
10493 (reflect_byte): New function (from w32fns.c).
10494 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
10495 due to byte alignment.
d8d95bc7
SM
10496 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
10497 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
10498 (XSetForeground): Remove static (now used in macfns.c).
10499 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
10500 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
10501 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
10502 (x_draw_glyph_string_box, x_draw_image_foreground)
10503 (x_draw_image_foreground_1, x_draw_image_glyph_string)
10504 (x_draw_stretch_glyph_string, x_draw_glyph_string)
10505 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
10506 Sync with xterm.c.
10507 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
10508 than the xterm.c version when a strictly horizontal or vertical
10509 line is drawn.
10510 (XTset_terminal_window): Add static.
10511 (x_make_frame_visible): Add UNBLOCK_INPUT.
10512 (x_free_frame_resources): New funcion (from xterm.c).
10513 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
10514 occurs in tool bar area.
d8d95bc7
SM
10515 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
10516 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
10517 Initialize image cache.
10518 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
10519 Enclose unused functions with #if 0.
10520 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
10521 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 10522 from a mac font name to an XLFD font name according to its script code.
e3564461 10523 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 10524 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
10525 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
10526 whose name starts with `.'.
10527 (init_font_name_table): Use decode_mac_font_name. Add both
10528 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
10529 of a font is smJapanese.
10530 (mac_do_list_fonts): New function to list fonts that match a given
10531 pattern.
10532 (x_list_fonts, XLoadQueryFont): Use it.
10533 (XLoadQueryFont): Set rbearing field for each variable width
10534 character to avoid needless redraw.
10535 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
10536
446f5f3d
KS
105372004-02-26 Kim F. Storm <storm@cua.dk>
10538
af617d0f
KS
10539 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
10540 as read_socket_hook handler on X aborts if buffer is too small
10541 and W32 handler doesn't always check buffer limit.
10542
446f5f3d
KS
10543 * xdisp.c (handle_single_display_prop): Handle left-fringe and
10544 right-fringe similar to a display margin image. Specifically,
10545 the characters having the fringe prop are no longer shown, and
10546 we use IT_IMAGE/next_element_from_image with image_id = -1 to
10547 do this. Set fringe bitmap face_id in it->face_id.
10548 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
10549 still realize it->face (i.e. the fringe bitmap face).
10550
7d8a0b55
MB
105512004-02-25 Miles Bader <miles@gnu.org>
10552
10553 * xdisp.c (check_it): Check string/string_pos consistency.
10554 (init_iterator): Initialize string-related fields properly.
10555
105562004-02-11 Miles Bader <miles@gnu.org>
10557
10558 * xdisp.c (produce_image_glyph): Force negative descents to zero.
10559
105602004-02-10 Miles Bader <miles@gnu.org>
10561
10562 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
10563 BLOCK_INPUT can be nested, so it doesn't make much sense.
10564
a64387ee 105652004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
10566
10567 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
10568 (xbm_read_bitmap_data): Use unsigned char for image data.
10569
92f5fba2
LT
105702004-02-23 Luc Teirlinck <teirllm@auburn.edu>
10571
10572 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
10573
8565fb3d
JR
105742004-02-22 Jason Rumney <jasonr@gnu.org>
10575
10576 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
10577 correctly over other bitmaps.
10578
a6eeaa81 105792004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
10580
10581 * emacs.c (USAGE1): Split into two halves.
10582 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
10583 (USAGE3): Rename from USAGE2.
10584 (USAGE4): Rename from USAGE3.
f8125c39 10585
4effffca
EZ
105862004-02-21 Juri Linkov <juri@jurta.org>
10587
10588 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
10589 Fix --multibyte. Move --help, --version to USAGE2. Add alias
10590 --file. Fix -f, -l. Sort options. Untabify.
10591 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
10592
923c1e6f
LT
105932004-02-19 Luc Teirlinck <teirllm@auburn.edu>
10594
10595 * category.c (Fdefine_category, Fcategory_docstring)
10596 (Fget_unused_category, Fset_category_table)
10597 (Fcategory_set_mnemonics): Doc fixes.
10598
b0e225fd
KS
105992004-02-20 Kim F. Storm <storm@cua.dk>
10600
10601 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
10602 The following changes are relative to the 2004-01-21 revision.
10603 (NREAD_INPUT_EVENTS): Define as max number of input events to read
10604 in one call to read_socket_hook. Value is 8.
10605 (read_avail_input): Separate and rework handling of read_socket_hook
10606 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
10607 in read_socket_hook case, and repeat if full buffer is read.
10608 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
10609 In non-read_socket_hook case, just use a single input_event, and
10610 call kbd_buffer_store_event on the fly for each character.
10611
b15aa9f9
SM
106122004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
10613
10614 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
10615 Remove unused `gu' alternative.
10616
83c9aa95
AS
106172004-02-19 Andreas Schwab <schwab@suse.de>
10618
10619 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
10620 warning.
10621
cc808173
KS
106222004-02-18 Kim F. Storm <storm@cua.dk>
10623
10624 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
10625 Fix last change.
10626
ab90a54d
KS
106272004-02-17 Kim F. Storm <storm@cua.dk>
10628
b26f249f
KS
10629 * xdisp.c (fast_find_position): Fix return value of new version;
10630 it was inverted compared to the 21.1 version.
10631 (get_window_cursor_type): Don't look at glyph if NULL.
10632 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 10633
ab90a54d
KS
10634 * keyboard.c: Rework previous change; it didn't consider that the
10635 buf array was allocated on the stack.
10636 (prev_read): Remove variable.
10637 (read_avail_input_buf): New static event buffer array.
b9568dfc 10638 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 10639 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
10640 Use in_read_avail_input to handle re-entrance; when re-entered,
10641 fully initialize and use tmp_buf array instead of read_avail_input_buf.
10642 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
10643 is always cleared on entry. To ensure that, we clear (just) the
10644 entries that were used before we return.
10645 (init_keyboard): Initialize read_avail_input_buf here.
10646
b6189c3b 106472004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
10648
10649 * cmds.c (Fend_of_line): Doc fix.
10650
7b5368c1
EZ
106512004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
10652
10653 * keyboard.c (prev_read): New static variable.
10654 (read_avail_input): Use it to zero out only those slots in buf[]
10655 that were used last time we were called.
10656
a6eeaa81 106572004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
10658
10659 * Makefile.in (obj): Move fringe.o from here...
10660 (XOBJ, MAC_OBJ): ...to here.
10661
159c348e
SE
106622004-02-16 Stephen Eglen <stephen@gnu.org>
10663
10664 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
10665
d2f14999
SM
106662004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
10667
b15aa9f9
SM
10668 * data.c (Fbyteorder):
10669 * fringe.c (Fdefine_fringe_bitmap):
10670 * xdisp.c (handle_single_display_prop):
d2f14999
SM
10671 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
10672
8d50508a
JR
106732004-02-16 Jason Rumney <jasonr@gnu.org>
10674
10675 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
10676
dd4497dc
ST
106772004-02-15 Steven Tamm <steventamm@mac.com>
10678
10679 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
10680 controlling emulation of a three button mouse with option and
10681 command keys.
7e26f91b 10682 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
b15aa9f9 10683 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 10684
c9159cb3
KS
106852004-02-15 Kim F. Storm <storm@cua.dk>
10686
2cc52658
KS
10687 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
10688
c9159cb3
KS
10689 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
10690 Perform byte-swapping.
10691
12fde2dc
KS
106922004-02-14 Kim F. Storm <storm@cua.dk>
10693
10694 * dispextern.h (struct draw_fringe_bitmap_params): Change member
10695 bits from char to short to facilitate wider bitmaps.
10696 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
10697 member.
10698
10699 * fringe.c (struct fringe_bitmap): Change member bits from char to
10700 short to facilitate 16 bits wide bitmaps. Modify all standard
10701 bitmaps accordingly.
10702 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
10703 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
10704 (draw_fringe_bitmap): Ditto.
10705 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
10706 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
10707 handle up to 16 bits wide bitmaps.
10708 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 10709 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
10710
10711 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
10712 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
10713 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
10714
10715 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
10716 so it is no longer necessary to expand them here.
10717
10718 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
10719
9d7271e8
KS
107202004-02-12 Kim F. Storm <storm@cua.dk>
10721
10722 * window.c (Fwindow_fringes): Doc fix.
10723
706c1e4f
JD
107242004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10725
10726 * xselect.c (x_get_foreign_selection): Add new optional parameter
10727 time_stamp.
10728 (Fx_get_selection_internal): Ditto, pass time_stamp to
10729 x_get_foreign_selection.
10730
10731 * data.c (Fbyteorder): New function.
10732
c2d12b5d
JD
107332004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10734
10735 * atimer.c: Move include stdio.h to same place as in other files.
10736
10737 * region-cache.c: Ditto.
10738
10739 * sysdep.c: Ditto.
10740
10741 * xfaces.c: Ditto.
10742
4c1947b9
SS
107432004-02-09 Sam Steingold <sds@gnu.org>
10744
89458937 10745 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 10746
82722af3
KS
107472004-02-09 Kim F. Storm <storm@cua.dk>
10748
10749 * fringe.c: New file. Move original fringe related declarations
10750 and code from dispextern.h and xdisp.c here.
10751 Rework code to support user defined fringe bitmaps, redefining
10752 standard bitmaps, ability to overlay user defined bitmap with
10753 overlay arrow bitmap, and add faces to bitmaps.
10754 (Voverflow_newline_into_fringe): Declare here.
10755 (enum fringe_bitmap_align): New enum.
10756 (..._bits): All bitmaps are now defined without bitswapping; that
10757 is now done in init_fringe_once (if necessary).
10758 (standard_bitmaps): New array with specifications for the
10759 standard fringe bitmaps.
10760 (fringe_faces): New array.
10761 (valid_fringe_bitmap_id_p): New function.
10762 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
10763 (draw_fringe_bitmap): New function which draws fringe bitmap,
10764 possibly overlaying bitmap with cursor in right fringe or the
10765 overlay arrow in the left fringe.
10766 (update_window_fringes): Do not handle overlay arrow here.
10767 Compare and copy fringe bitmap faces.
10768 (init_fringe_bitmap): New function.
10769 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
10770 define and destroy user defined fringe bitmaps.
10771 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
10772 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
10773 (syms_of_fringe): New function. Defsubr new DEFUNs.
10774 DEFVAR_LISP Voverflow_newline_into_fringe.
10775 (init_fringe_once, init_fringe): New functions.
10776 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 10777
82722af3
KS
10778 * Makefile.in (obj): Add fringe.o.
10779 (fringe.o): New dependencies.
10780
10781 * dispextern.h (FRINGE_ID_BITS): New definition for number of
10782 bits allocated to hold a fringe number. Increase number of bits
10783 from 4 to 8 to allow user defined fringe bitmaps.
10784 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
10785 left_user_fringe_face_id, right_user_fringe_bitmap,
10786 right_user_fringe_face_id.
10787 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
10788 Move to new file fringe.c.
10789 (MAX_FRINGE_BITMAPS): Define here.
10790 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
10791 and overlay_p. Change member which to int.
10792 (struct redisplay_interface): New members define_fringe_bitmap
10793 and destroy_fringe_bitmap.
10794 (valid_fringe_bitmap_id_p): Add prototype.
10795 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
10796
10797 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
10798 arrows.
10799 (update_frame): Do flush_display if force_flush_display_p to
10800 ensure display (specifically fringes) are updated in a timely
10801 manner when resizing the frame by dragging the mouse.
10802 (update_window_line): Update row if overlay arrow changed.
10803 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
10804 or overlay arrow changed.
10805
10806 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
10807 syms_of_fringe, and init_fringe.
10808
10809 * frame.h (struct frame): New member force_flush_display_p.
10810
10811 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
10812 Add prototypes.
10813
a3993cc8 10814 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 10815 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
10816 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
10817 Use cursor color for displaying cursor in fringe.
82722af3
KS
10818 (x_redisplay_interface): Add null handlers for
10819 define_fringe_bitmap and destroy_fringe_bitmap functions.
10820
10821 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
10822 xterm.c to handle overlayed fringe bitmaps and to use cursor color
10823 for displaying cursor in fringe.
10824 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
10825 specific functions to define and destroy fringe bitmaps in fringe_bmp.
10826 (w32_redisplay_interface): Add them to redisplay_interface.
10827 (w32_term_init): Call w32_init_fringe instead of explicitly
10828 defining fringe bitmaps in fringe_bmp array.
10829 (x_delete_display): Call w32_reset_fringes instead of explicitly
10830 destroying fringe bitmaps in fringe_bmp array.
10831
10832 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
10833 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
10834 (continued_bits, continuation_bits, ov_bits, first_line_bits)
10835 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
10836 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
10837 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
10838 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
10839 Move fringe handling vars and code to new file fringe.c.
10840 (handle_display_prop): Handle left-fringe and right-fringe
10841 display properties; store user fringe bitmaps in iterator.
10842 (move_it_in_display_line_to): Handle cursor in fringe at eob.
10843 (clear_garbaged_frames): Set force_flush_display_p if resized.
10844 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
10845 (display_line): Handle cursor in fringe at eob.
10846 (display_line): Set row user fringe bitmaps from iterator.
10847
10848 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
10849 Use cursor color for displaying cursor in fringe.
10850 (x_redisplay_interface): Add null handlers for
10851 define_fringe_bitmap and destroy_fringe_bitmap functions.
10852
030400eb
JD
108532004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10854
10855 * macfns.c (Fx_change_window_property): Make doc string and
10856 parameters same as for X version.
10857
10858 * w32fns.c (Fx_change_window_property): Ditto.
10859
3af55251
KS
108602004-02-07 Kim F. Storm <storm@cua.dk>
10861
ec110e9e
KS
10862 * xdisp.c (hscroll_window_tree): Position cursor near to right
10863 margin in hscrolled window when jumping to end of line (rather
10864 than centering cursor).
10865
3af55251
KS
10866 * process.c (wait_reading_process_input): Don't do adaptive read
10867 buffering if waiting for a specific process.
10868
b0c138ce
LT
108692004-02-05 Luc Teirlinck <teirllm@auburn.edu>
10870
10871 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
10872 (Fread_minibuffer, Feval_minibuffer)
10873 (Fread_string, Fread_no_blanks_input)
10874 (Fcompleting_read): Doc fixes.
10875 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
10876 completion-regexp-list. Define Qcase_fold_search and staticpro it.
10877 (read_minibuf): Fix initial comment.
10878 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 10879 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
10880 checking completion-regexp-list.
10881 (Fdisplay_completion_list): Make it handle arguments that are
10882 symbols. Doc fix.
10883
9676f5ad 108842004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 10885
9676f5ad 10886 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 10887
9676f5ad
JD
10888 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
10889 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 10890 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 10891 format. Remove unused variable cons.
5b698285 10892
9dd28cae 10893 * xselect.c: Include stdio.h.
5b698285 10894
fc1d15f6
KH
108952004-02-05 Kenichi Handa <handa@m17n.org>
10896
ebaff4af
KH
10897 * fns.c (Fset_char_table_range): Fix previous change.
10898
fc1d15f6
KH
10899 * buffer.c (Fset_buffer_multibyte): Fix docstring.
10900
9676f5ad
JD
109012004-02-04 Luc Teirlinck <teirllm@auburn.edu>
10902
10903 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
10904
da75761f
SM
109052004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
10906
10907 * keymap.c (Vmouse_events): Rename from Vmenu_events.
10908 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
10909
13c5d120
KH
109102004-02-04 Kenichi Handa <handa@m17n.org>
10911
10912 * fns.c (Fset_char_table_range): Handle charsets ascii,
10913 eight-bit-control, and eight-bit-graphic correctly.
10914
2883d842
JR
109152004-02-03 Jason Rumney <jasonr@gnu.org>
10916
10917 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
10918
10919 * w32fns.c (x_to_w32_font): Likewise.
10920
69eff41f
JD
109212004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10922
10923 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
10924 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
10925
10926 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
10927 ClientMessages.
10928
10929 * xselect.c: Include termhooks.h and X11/Xproto.h
10930 (x_check_property_data, x_fill_property_data)
10931 (x_property_data_to_lisp, mouse_position_for_drop)
10932 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 10933 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
10934 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
10935
da75761f 10936 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
10937 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
10938 OUTER_P.
10939 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
10940 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
10941 if vector_ret_p is true.
10942 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 10943
a6eeaa81 109442004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
10945
10946 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
10947 basename of FILE relative to it, not FILE itself.
10948
09721b31
KH
109492004-02-02 Kenichi Handa <handa@m17n.org>
10950
10951 * coding.c (coding_restore_composition): Check invalid
10952 composition data more rigidly.
10953
eb996101
LT
109542004-01-30 Luc Teirlinck <teirllm@auburn.edu>
10955
10956 * fileio.c (Fread_file_name_internal): Correctly handle the case
10957 where insert-default-directory is nil.
10958 (Fread_file_name): Always return an empty string if the user exits
10959 with an empty minibuffer. Adapt the docstring accordingly.
10960 (syms_of_fileio): Adapt the docstring of insert-default-directory
10961 to the change in Fread_file_name.
10962
a6eeaa81 109632004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
10964
10965 * alloca.c [!alloca]: Fix the prototype for xfree.
10966
13f52ed8
KH
109672004-01-29 Kenichi Handa <handa@m17n.org>
10968
10969 * fns.c (string_char_to_byte): Optimize for ASCII only string.
10970 (string_byte_to_char): Likewise.
10971
d57625a0
JR
109722004-01-28 Peter Runestig <peter@runestig.com>
10973
10974 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
10975
a64387ee 109762004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
10977
10978 * unexmacosx.c (unexec_copy): Do not copy more than was
10979 requested to prevent overwriting during unexec.
10980
eb37b8fd
JD
109812004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10982
ce38070a
JD
10983 * process.c (sigchld_handler): Add comment about not calling malloc.
10984
eb37b8fd
JD
10985 * process.h: Add extern to synch_process_termsig.
10986
a64387ee 109872004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 10988
da75761f
SM
10989 * macterm.c (make_mac_frame, make_mac_terminal_frame):
10990 Move setting of scroll bars from make_mac_frame to
10991 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 10992
d62a265d
RS
109932004-01-26 Richard M. Stallman <rms@gnu.org>
10994
10995 * search.c (Freplace_match): Handle nonexistent
10996 back-references properly.
10997
109982004-01-03 Richard M. Stallman <rms@gnu.org>
10999
11000 * window.c (decode_any_window): New function.
11001 (Fwindow_height, Fwindow_width, Fwindow_edges)
11002 (Fwindow_pixel_edges, Fwindow_inside_edges)
11003 (Fwindow_inside_pixel_edges): Use decode_any_window.
11004
ff236419
JD
110052004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11006
11007 * process.h: synch_process_termsig new variable.
11008
11009 * callproc.c: Define synch_process_termsig.
11010 (Fcall_process): Initiate synch_process_termsig to zero and
11011 check if non-zero and get signal name after subprocess has ended.
11012
11013 * process.c (sigchld_handler): Set synch_process_termsig
11014 if terminated by a signal. synch_process_death setting removed.
11015
11016 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
11017
41b867ea
AS
110182004-01-26 Andreas Schwab <schwab@suse.de>
11019
11020 * print.c (print_preprocess): Declare size as EMACS_INT to not
11021 lose bits.
11022 (print_object): Likewise.
11023 * alloc.c (Fpurecopy): Likewise.
11024
a08084ff
LT
110252004-01-25 Luc Teirlinck <teirllm@auburn.edu>
11026
11027 * window.c (Fwindow_minibuffer_p): Doc fix.
11028
b19ac475
JY
110292004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
11030
11031 * editfns.c (Fformat): Make both passes accept the same set of flags.
11032
fe905025
KH
110332004-01-23 Kenichi Handa <handa@m17n.org>
11034
11035 * fns.c (Fmd5): If OBJECT is a buffer different from the current
11036 one, set buffer to OBJECT temporarily.
11037
438fc6c0
SM
110382004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
11039
455316e2
SM
11040 * keyboard.c (kbd_buffer_gcpro): Remove.
11041 (kbd_buffer_store_event, clear_event, Fdiscard_input)
11042 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
11043 Don't initialize and/or maintain the variable any more. It was made
11044 redundant by my commit of 2003-06-15.
11045
438fc6c0
SM
11046 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
11047
5335a4ee
JD
110482004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11049
11050 * lisp.h: Add undef DECL_ALIGN.
11051
dcdaeebc
SM
110522004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
11053
11054 * process.c (wait_reading_process_input) [SYNC_INPUT]:
11055 Check interrupt_input_pending explicitly.
11056
11057 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
11058
11059 * keyboard.c (handle_async_input): New fun,
11060 extracted from input_available_signal.
11061 (input_available_signal, reinvoke_input_signal): Use it.
11062
9076a823
SM
110632004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
11064
d7107586
SM
11065 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
11066
11067 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
11068 manipulation macros for when tags are in the lower bits.
11069 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
11070 (DECL_ALIGN): New macro.
11071 (DEFUN): Use it.
11072
11073 * lisp.h [ENABLE_CHECKING]: Don't force union type.
11074
11075 * s/darwin.h (__attribute__): Remove outdated workaround.
11076
11077 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
11078
11079 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
11080 Don't check range of malloc address.
11081 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
11082
9076a823
SM
11083 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
11084
11085 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
11086
ba029065
KH
110872004-01-19 Kenichi Handa <handa@m17n.org>
11088
11089 * fontset.c (fontset_font_pattern): Fix previous change.
11090
7af0e8d7
MB
110912004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
11092
11093 * xdisp.c (Voverflow_newline_into_fringe)
11094 (move_it_in_display_line_to, redisplay_internal)
11095 (update_window_fringes, redisplay_window, display_line, window):
11096 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
11097 that it compiles without a window-system.
11098 * dispnew.c (direct_output_for_insert, update_window): Likewise.
11099
77a9cf69
KS
111002004-01-16 Kim F. Storm <storm@cua.dk>
11101
11102 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
11103
a64387ee 11104 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
11105 buffer_local_flags for indicate_buffer_boundaries.
11106 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
11107 default- variable for it.
11108
11109 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
11110 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 11111 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
11112 overflowing newlines into right fringe.
11113 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
11114 and indicate_bottom_line_p for buffer boundaries and scrolling.
11115 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
11116 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
11117 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
11118 and HOLLOW_SQUARE_BITMAP.
11119 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
11120 Add prototypes.
11121
11122 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
11123 instead of related indicator fields.
11124 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
11125 (direct_output_for_insert): Handle exact width lines like
11126 contined lines. Call update_window_fringes.
11127 (update_window): Call update_window_fringes.
11128 (scrolling_window): Don't skip desired rows with changed bitmaps.
11129 Check if fringe bitmaps changes when assigning scrolled rows.
11130
11131 * xdisp.c (Voverflow_newline_into_fringe): New variable.
11132 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
11133 (move_it_in_display_line_to): Overflow newline into fringe for
11134 rows that are exactly as wide as the window.
11135 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
11136 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
11137 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
11138 (fringe_bitmaps): Add new bitmaps.
11139 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
11140 Select proper bitmap for cursor in fringe when appropriate.
11141 Handle alignment of bitmap to top or bottom of row.
11142 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
11143 done by update_window_fringes.
11144 (update_window_fringes, draw_window_fringes): New functions.
11145 (redisplay_internal): Call update_window_fringes in case only
11146 cursor row is updated.
11147 (redisplay_window): Call update_window_fringes.
11148 Explicitly call draw_window_fringes if redisplay was done using
11149 the current matrix or the overlay arrow is in the window.
11150 (try_window_reusing_current_matrix): Mark scrolled rows for
11151 fringe update (to update buffer-boundaries / scrolling icons).
11152 (find_last_unchanged_at_beg_row): Handle exact width lines line
11153 continued lines.
11154 (display_line): Overflow newline into fringe for rows that are
11155 exactly as wide as the window. Don't append space for newline
d7107586 11156 in this case.
77a9cf69
KS
11157 (notice_overwritten_cursor): Explicitly clear cursor bitmap
11158 in fringe as if it had been overwritten.
11159 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 11160 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
11161 void-text-area-pointer as user options.
11162 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 11163
77a9cf69
KS
11164 * xterm.c (x_update_window_end): Call draw_window_fringes.
11165 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
11166 in row instead of actually drawing fringe bitmaps.
11167 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
11168 (x_draw_window_cursor): Draw cursor in fringe.
11169
11170 * w32term.c (x_update_window_end): Call draw_window_fringes.
11171 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
11172 in row instead of actually drawing fringe bitmaps.
11173 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
11174 (w32_draw_window_cursor): Draw cursor in fringe.
11175
11176 * macterm.c (x_update_window_end): Call draw_window_fringes.
11177 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
11178 in row instead of actually drawing fringe bitmaps.
11179 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
11180 (mac_draw_window_cursor): Draw cursor in fringe.
11181
a633a954
JD
111822004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11183
11184 * xterm.c (handle_one_xevent): Don't handle characters that are part
11185 of an old style (XLookupString) compose sequence.
11186
80460525
KH
111872004-01-15 Kenichi Handa <handa@m17n.org>
11188
11189 * search.c (Freplace_match): Use make_multibyte_string or
11190 make_unibyte_string according to the buffer multibyteness.
11191
7fc34f85
SM
111922004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
11193
11194 * alloc.c (struct interval_block, struct string_block)
11195 (struct symbol_block, struct marker_block, live_string_p)
11196 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
11197 Better preserve alignment for objects in blocks.
11198 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
11199
11200 * lread.c (defvar_per_buffer): Remove dead declaration.
11201
11202 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
11203 space size.
11204
66070bd1
JD
112052004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11206
11207 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
11208 if a key press should pop down. Only pop down if a key is pressed
11209 outside the menu/dialog.
11210 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
11211 popup_get_selection.
11212 (create_and_show_dialog): Pass 1 for down_on_keypress to
11213 popup_get_selection.
11214
de7515d6
JD
112152004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11216
11217 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
11218 BLOCK/UNBLOCK_INPUT.
11219
160b1b50
JD
112202004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11221
11222 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
11223 specified.
11224
3a9f36e6
KH
112252004-01-08 Kenichi Handa <handa@m17n.org>
11226
11227 * editfns.c (Fformat): Fix '&' to '&&'.
11228
3803eb32
AS
112292004-01-08 Andreas Schwab <schwab@suse.de>
11230
11231 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
11232 size if PSEUDOVECTOR_FLAG is set.
11233
9da88f37
KH
112342004-01-07 Kenichi Handa <handa@m17n.org>
11235
74ac5074
KH
11236 * charset.c (Fdeclare_equiv_charset): Fix docstring.
11237
9da88f37
KH
11238 * fontset.c (fontset_ref_via_base): Fix previous change.
11239
05faee07
KS
112402004-01-07 Kim F. Storm <storm@cua.dk>
11241
11242 * process.c (read_process_output): Only activate adaptive
11243 buffering if we read less than 256 bytes at a time.
11244
634910c8
KS
112452004-01-06 Kim F. Storm <storm@cua.dk>
11246
11247 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
11248 object and image object. Return glyph width and height.
11249 (mode_line_string, marginal_area_string): Ditto.
11250
11251 * dispextern.h (buffer_posn_from_coords, mode_line_string)
11252 (marginal_area_string): Fix prototypes.
11253
11254 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 11255 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
11256 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
11257
11258 * keyboard.c (make_lispy_position): Use modified mode_line_string,
11259 buffer_posn_from_coords, and marginal_area_string functions to
11260 include both string object and image object in the lispy position.
11261 Also add actual glyph width and height to position.
11262 (read_key_sequence): Use real buffer position from mouse
11263 event to find keymap property even when click is in marginal area.
11264
11265 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
11266 mode_line_string and marginal_area_string functions to handle
11267 both string object and image object properties.
d7107586 11268
57951c2e
AS
112692004-01-06 Andreas Schwab <schwab@suse.de>
11270
11271 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
11272 character.
11273
181e6a61
AS
112742004-01-02 Andreas Schwab <schwab@suse.de>
11275
d7107586
SM
11276 * macterm.c (emacs_options, x_initialized, same_x_server):
11277 Remove unused (and duplicated) definitions.
181e6a61 11278
31e0fbdd
KS
112792004-01-02 Kim F. Storm <storm@cua.dk>
11280
11281 * process.h (struct Lisp_Process): New members for adaptive read
11282 buffering: adaptive_read_buffering, read_output_delay, and
11283 read_output_skip.
11284
11285 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
11286 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
11287 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
11288 (process_output_delay_count, process_output_skip): New vars.
11289 (Vprocess_adaptive_read_buffering): New variable.
11290 (make_process): Initialize adaptive read buffering members.
11291 (Fstart_process): Set adaptive_read_buffering member.
11292 (deactivate_process): Cleanup adaptive read buffering.
11293 (wait_reading_process_input): Temporarily omit delayed
11294 subprocesses from the set of file descriptors to read from;
11295 adjust the select timeout if we skipped any subprocesses.
11296 (read_process_output): Increase adaptive read buffering delay if
11297 we read less than a full buffer; reduce delay when we read a
11298 full buffer.
11299 (send_process): Simplify using local Lisp_Process var.
11300 Reset adaptive read buffering delay after write.
11301 (init_process): Initialize process_output_delay_count and
11302 process_output_skip.
11303 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
11304
68c6a789
JR
113052004-01-01 Jason Rumney <jasonr@gnu.org>
11306
d7107586 11307 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 11308
3f70fe82
LT
113092003-12-30 Luc Teirlinck <teirllm@auburn.edu>
11310
11311 * print.c (Ferror_message_string): Add hyperlink in the docstring
11312 to the definition of `signal' in the Elisp manual.
11313 * eval.c (Fsignal): Ditto.
11314
b6189c3b 113152003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
11316
11317 * fns.c (internal_equal): Return t for two NaN arguments.
11318
7abd90ea
RS
113192003-12-29 Richard M. Stallman <rms@gnu.org>
11320
11321 * data.c (store_symval_forwarding): Handle setting
11322 default-fill-column, etc., by changing the value in
11323 buffers that use the default.
11324
11325 * minibuf.c (Fset_minibuffer_window): Doc fix.
11326
11327 * fileio.c (choose_write_coding_system): Ignore auto_saving
11328 if using the visited file for auto saves.
11329 (Fwrite_region): Don't update SAVE_MODIFF
11330 if auto-saving in visited file.
11331
3e7cfcdc
KH
113322003-12-29 Kenichi Handa <handa@m17n.org>
11333
11334 * dispextern.h (face_font_available_p): Extern it.
11335
11336 * fontset.c (Voverriding_fontspec_alist): New variable.
11337 (lookup_overriding_fontspec): New function.
d7107586 11338 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
11339 (fontset_font_pattern): Likewise.
11340 (regulalize_fontname): New function.
11341 (Fset_fontset_font): Call regulalize_fontname.
11342 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
11343 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
11344 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
11345
11346 * xfaces.c (face_font_available_p): New function.
11347
7abd90ea
RS
113482003-12-28 Richard M. Stallman <rms@gnu.org>
11349
11350 * buffer.c (Fother_buffer): Don't crash if BUF is nil
11351 or if its name is nil.
11352
11353 * buffer.c (Fkill_buffer): Don't delete auto-save file
11354 if it's the same as the visited file.
11355
de1d1a40
LT
113562003-12-28 Luc Teirlinck <teirllm@auburn.edu>
11357
11358 * coding.c (Fcheck_coding_system): Doc fix.
11359
204fb75e
KS
113602003-12-28 Kim F. Storm <storm@cua.dk>
11361
11362 * Makefile.in (eval.o): Depend on dispextern.h.
11363
11364 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
11365 image glyph using image's ascent.
11366 (mode_line_string): Return image glyph as object clicked on.
11367 Adjust y0 for image glyph using image's ascent.
11368
11369 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
11370 (struct glyph): New members, ascent and descent. Used to save
11371 this glyph's ascent and descent, instead of having.
11372 (struct glyph): Declare member face_id using FACE_ID_BITS.
11373 (find_hot_spot): Add prototype.
11374
11375 * keyboard.c (Qimage): Remove extern (now in lisp.h).
11376 (QCmap): Declare extern.
11377 (make_lispy_position): When position is inside image hot-spot,
11378 use hot-spot element's id as posn element.
11379
11380 * lisp.h (IMAGEP): New macro to test for image object type.
11381 (Qimage): Declare extern.
11382
11383 * macfns.c (Qimage): Remove extern (now in lisp.h).
11384 (valid_image_p, parse_image_spec): Use IMAGEP macro.
11385
11386 * macterm.c (Qface, Qmouse_face): Remove unused externs.
11387
11388 * w32fns.c (Qimage): Remove extern (now in lisp.h).
11389 (valid_image_p, parse_image_spec): Use IMAGEP macro.
11390
11391 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
11392
11393 * w32term.c (Qface, Qmouse_face): Remove unused externs.
11394
11395 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
11396 pointer types.
11397 (Qrelative_width, Qalign_to): Remove unused variables.
11398 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
11399 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
11400 image maps.
d7107586 11401 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
11402 new dx and dy args.
11403 Remove buffer_only_p arg (always 0). Simplify code accordingly.
11404 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
11405 than row's ascent and height, to get sensible height on tall rows.
11406 (build_desired_tool_bar_string): Remove Qimage extern.
11407 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
11408 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
11409 image glyph is alone on the last line.
11410 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 11411 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 11412 (on_hot_spot_p): New function to check if position is inside an
d7107586 11413 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
11414 (find_hot_spot): New function to search for image hot-spot.
11415 (Flookup_image_map): New defun to search for image hot-spot.
11416 (define_frame_cursor1): New aux function to determine frame pointer.
11417 (note_mode_line_or_margin_highlight, note_mouse_highlight):
11418 Handle `pointer' text property and :pointer image property to
11419 control frame pointer shape. Detect image hot-spots for pointer
11420 and help_echo properties. Use define_frame_cursor1.
11421 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 11422 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
11423 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
11424
11425 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
11426
11427 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
11428 (Qimage): Remove extern (now in lisp.h).
11429 (valid_image_p, parse_image_spec): Use IMAGEP macro.
11430
11431 * xmenu.c (show_help_event): Remove unused code.
11432
11433 * xterm.c (Qface, Qmouse_face): Remove unused externs.
11434 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
11435 row's ascent and descent, to get a sensible height on tall rows.
11436
fc052137
LT
114372003-12-25 Luc Teirlinck <teirllm@auburn.edu>
11438
11439 * minibuf.c (Fcompleting_read): Undo previous change.
11440
a64387ee 114412003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
11442
11443 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
11444 Arguments GCPRO'ed in call to file name handler.
11445
56ffd194
TTN
114462003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
11447
11448 * termcap.c (tgetst1): Scan for "%pN"; if all
11449 N are continuous in [1,9], remove all "%pN".
11450
5202d23d
JD
114512003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11452
f26fab36
JD
11453 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
11454
5202d23d
JD
11455 * xfaces.c (lface_fully_specified_p): Take into account that
11456 MAC OS always have unspecified stipple.
11457
8babaa59
TTN
114582003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
11459
11460 * tparam.c (tparam1): Add handling for `%pN', which
11461 means use param N for the next substitution.
11462
2d176448
TTN
114632003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
11464
11465 * xfaces.c (Fcolor_gray_p): Fix omission bug:
11466 In case `frame' is nil, consult the selected frame.
11467 (Fcolor_supported_p): Likewise.
11468
adb0708c
LT
114692003-12-23 Luc Teirlinck <teirllm@auburn.edu>
11470
000eeb15
LT
11471 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
11472 Doc fixes.
0dc72b11
LT
11473
11474 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
11475 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
11476 (Fread_from_minibuffer): Delete code moved into read_minibuf.
11477 Doc fix.
11478 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
11479 read_minibuf.
11480 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 11481 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 11482
2e4d132b
KH
114832003-12-03 Kenichi Handa <handa@m17n.org>
11484
11485 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
11486 encoding sequence.
11487
3999c705
KH
114882003-12-01 Kenichi Handa <handa@m17n.org>
11489
11490 * composite.c (syms_of_composite): Don't make the compostion hash
11491 table week.
11492
d344ecbb
LT
114932003-11-30 Luc Teirlinck <teirllm@auburn.edu>
11494
11495 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
11496 * textprop.c (Fget_char_property_and_overlay): New function.
11497 (syms_of_textprop): Defsubr it.
11498
03d6484e
JD
114992003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11500
019b1f0e
JD
11501 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
11502 to compile on terminal configuration.
11503
03d6484e
JD
11504 * fileio.c (Fread_file_name): Check use_file_dialog also before
11505 calling Fx_file_dialog.
11506
1d1c7e75 11507 * fns.c (use_file_dialog): New variable.
03d6484e
JD
11508 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
11509
442d3fd0
KS
115102003-11-29 Kim F. Storm <storm@cua.dk>
11511
11512 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
11513 (syms_of_msdos): Don't intern and staticpro them.
11514
0f6a07a8
KS
115152003-11-27 Kim F. Storm <storm@cua.dk>
11516
11517 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
11518 coordinates relative to glyph at posn. If glyph is an image,
11519 return that as object at posn. Callers changed.
11520 (mode_line_string, marginal_area_string): Calculate and return
11521 pixel coordinates relative to glyph. Callers changed.
11522
11523 * dispextern.h (buffer_posn_from_coords, mode_line_string)
11524 (marginal_area_string): Fix prototypes.
11525 (window_box_left_offset, window_box_right_offset): Add prototypes.
11526
11527 * frame.h (get_specified_cursor_type, get_window_cursor_type):
11528 Remove prototypes.
11529
11530 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
11531
11532 * keyboard.c (make_lispy_position): Add x and y coordinates
11533 relative to the current glyph as 7th element of position.
11534 If glyph is an image, return it in the object element.
11535 (read_key_sequence): Skip checks for keymap property in cases
11536 where POSN_STRING is not a string (e.g. an image).
11537
11538 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
11539 (Vshow_text_cursor_in_void): New variable.
11540 (glyph_to_pixel_coords): Don't use negative hpos.
11541 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
11542 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 11543 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
11544 (calc_pixel_width_or_height): New aux function, implementing
11545 pixel based artihmetic for glyph widths and heights.
11546 (produce_stretch_glyph): Use calc_pixel_width_or_height for
11547 :width, :height, :align-to, and :ascent, thus allowing these to
11548 be specified in pixels as well as multiples of characters.
11549 Don't produce stretch glyphs with zero width or height.
11550 (get_specified_cursor_type): Declare static.
11551 (get_window_cursor_type): Declare static. Add glyph arg to be
11552 able to know when cursor is on an image; always substitute
11553 hollow-box cursor for filled-box cursor on images, to avoid
11554 negative images and flicker when blinking the cursor.
11555 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
11556 (note_mode_line_or_margin_highlight): Use non-text cursor rather
11557 than vertical scroll-bar cursor in display margins.
11558 (note_mouse_highlight): Use non-text cursor rather than text
11559 cursor in fringes and over images in the text area.
11560 Use non-text cursor when mouse pointer is outside editable text,
11561 i.e. in the void after end-of-line or end-of-buffer; this was
11562 already done for W32, but is now standard for all systems --
11563 user can toggle show-text-cursor-in-void to get old behaviour.
11564 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
11565 Vdisplay_pixels_per_inch.
11566
00498bfc
AS
115672003-11-25 Andreas Schwab <schwab@suse.de>
11568
11569 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
11570 EMACS_INT to not lose bits.
11571 (Ffillarray): Don't set bits beyond the size of a bool vector.
11572
edaa824d
KS
115732003-11-25 Kim F. Storm <storm@cua.dk>
11574
11575 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
11576 define this defun on systems that cannot use stderr as lvalue.
11577
74d6f539
GM
115782003-11-24 Gerd Moellmann <gerd@gnu.org>
11579
11580 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
11581 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
11582 ld's default is incompatible with unexec.
11583
6a1ff3ba
KS
115842003-11-23 Kim F. Storm <storm@cua.dk>
11585
63dc7c6b
KS
11586 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
11587 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
11588 (Fforce_window_update): New defun.
11589 (syms_of_window): Defsubr it.
11590 (Fset_window_margins, Fset_window_fringes): Doc fix.
11591
6a1ff3ba
KS
11592 * print.c (Fredirect_debugging_output): New defun.
11593 (syms_of_print): Defsubr it.
11594
aef109b7
LT
115952003-11-22 Luc Teirlinck <teirllm@auburn.edu>
11596
11597 * fns.c (Fset_char_table_parent): Doc fix.
11598
6a1ff3ba 115992003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
11600
11601 * dispnew.c (buffer_posn_from_coords): Return actual row/column
11602 for glyph clicked on, rather than (unused) pixel positions.
11603 (mode_line_string, marginal_area_string): Change X and Y args to
11604 pointers for returning actual row/column for glyph clicked on.
11605 Simplify and optimize loops.
11606
aef109b7
LT
11607 * dispextern.h (mode_line_string, marginal_area_string):
11608 Update prototypes.
63ccbe21
KS
11609
11610 * keyboard.c (make_lispy_position): New function for generating
11611 mouse click positions from frame and pixel coordinates.
11612 Enhanced to return buffer position and actual row/column for
11613 events outside the text area using updated mode_line_string and
11614 marginal_area_string functions.
11615 Return left-fringe and right-fringe clicks as such, rather than
11616 clicks in text area.
11617 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
11618 pixel_to_glyph_coords, as we never use the results.
11619 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
11620 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
11621 Eliminate unused code in WHEEL_EVENT handling.
11622 (make_lispy_movement): Use make_lispy_position.
11623
11624 * window.c (coordinates_in_window): Remove redundant tests.
11625 Fix returned X pixel value for left-margin.
11626
11627 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
11628 mode_line_string and marginal_area_string parameters.
11629
a64387ee 116302003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 11631
d7107586
SM
11632 * w32.c (struct the_group, getgrgid): Add.
11633 * mac.c (struct my_group, getgrgid): Add.
aef109b7 11634
3dbf3426
LT
116352003-11-21 Luc Teirlinck <teirllm@auburn.edu>
11636
11637 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
11638
cae8ddbb 116392003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 11640
d7107586
SM
11641 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
11642 include in call to file name handler. Optionally translate numeric
11643 UID and GID to strings. Update docstring.
11644 (directory_files_internal): Add parameter ID-FORMAT.
11645 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
11646 include in call to file name handler and call to
11647 directory_files_internal. Update Docstring.
11648 (Fdirectory_files): Add dummy parameter in call to
11649 directory_files_internal.
11650 * lisp.h (Qinteger): Add.
11651 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
11652 (Ffile_attributes): Add parameter.
11653 * data.c (Qinteger): Export.
cae8ddbb 11654
2550b848
LT
116552003-11-21 Luc Teirlinck <teirllm@auburn.edu>
11656
3dbf3426 11657 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 11658
88380018
KS
116592003-11-19 Kim F. Storm <storm@cua.dk>
11660
11661 * xdisp.c (init_iterator): Initialize it->start to position
11662 before reseating (in case start position is invisible).
11663 (init_to_row_start): Set it->start to row-start.
11664 (redisplay_window): Accept optional_new_start if start position
11665 is invisible (in which case IT_CHARPOS overshoots PT).
11666 (display_line): Setup row->start from it->start (rather than
11667 it->current which is wrong if first char on line is invisible).
11668 When done, reseat it->start to it->current (= start of next row).
11669 (expose_area): Fix exposure of text area when first char (e.g. TAB)
11670 is only partially visible.
11671
11672 * dispextern.h (struct it): New member start.
11673
854c1a59
SM
116742003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
11675
455316e2
SM
11676 * alloc.c (make_float, Fcons): Clear the markbit at init time.
11677 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
11678 of block_index outside of the macro call.
11679 (Fgarbage_collect): Remove null code.
11680
11681 * m/amdx86-64.h: Don't redefine XPNTR.
11682
854c1a59
SM
11683 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
11684 of VALMASK.
11685
11686 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
11687 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
11688 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
11689
11690 * lisp.h (VALMASK): Only define for non-union type.
11691 (MARKBIT): Remove.
11692 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
11693 (XTYPE): Define unconditionally.
11694 (XSETTYPE): Remove one more remnant.
11695 (EQ): Define differently for the union and non-union cases.
11696 (INTMASK): New bit mask.
11697 (struct Lisp_Marker): Move down to prepare for upcoming patch.
11698 (GC_EQ): Delegate to EQ.
11699
11700 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
11701
a0c6ef2d
JD
117022003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11703
11704 * xterm.c (x_window_to_scroll_bar): Move check of display to
11705 where window_id is compared.
11706
859492c4
KS
117072003-11-17 Kim F. Storm <storm@cua.dk>
11708
11709 * dispextern.h (struct it): New member first_vpos.
11710
11711 * xdisp.c (start_display): Set it->first_vpos.
11712 (try_window_id): Use first_vpos to start display in first _text_
11713 line if no reusable lines at start of window with header line.
11714
810f2256
JD
117152003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11716
7c402969 11717 * w32fns.c (XPutPixel):
854c1a59
SM
11718 * w32bdf.c (w32_init_bdf_font):
11719 * sunfns.c (sel_read):
11720 * process.c (Fmake_network_process):
11721 * frame.c (store_frame_param):
11722 * fontset.c (Fset_fontset_font):
11723 * emacs.c (shut_down_emacs):
a64387ee 11724 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 11725
a32e9bfd
JD
11726 * config.in: Regenerate.
11727
810f2256
JD
11728 * xfns.c (x_window_to_frame, x_any_window_to_frame)
11729 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
11730 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
11731 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
11732 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
11733
11734 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
11735
11736 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
11737 (XTmouse_position, handle_one_xevent): Pass Display* to
11738 x_window_to_scroll_bar.
11739 (x_window_to_scroll_bar): Take a Display* argument.
11740 Check that display for frame is equal to Display* argument.
854c1a59 11741 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
11742 x_display_info_for_display instead. Use Display in xev instead
11743 of GDK_DISPLAY.
11744 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 11745 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
11746 (x_connection_closed): Call xg_display_close for GTK.
11747 (x_term_init): Call xg_display_open for additional displays.
11748 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
11749 for GTK.
11750
11751 * xmenu.c (single_menu_item, mouse_position_for_popup)
11752 (x_activate_menubar): Formatting adjustments.
11753
11754 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
11755 adjustments.
11756
11757 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
11758 (xg_display_close, xg_create_default_cursor)
11759 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
11760 handling.
854c1a59
SM
11761 (xg_left_ptr_cursor): Remove.
11762 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
11763 cursor here.
11764 (xg_win_to_widget): Take Display* argument, call
11765 gdk_xid_table_lookup_for_display.
11766 (xg_create_frame_widgets, xg_get_file_name, create_menus)
11767 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
11768 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
11769 in FRAME_X_DISPLAY_INFO.
11770 (xg_get_scroll_id_for_window): Take Display* argument.
11771 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 11772 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 11773
78819ebb
KS
11774 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
11775 Display* argument.
11776 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 11777
0b03cc78
JD
117782003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11779
11780 * xterm.c (x_detect_focus_change): Do not change focus frame for
11781 Enter/LeaveNotify if the current focus frame has explicit focus.
11782
77e688fa
KS
117832003-11-14 Kim F. Storm <storm@cua.dk>
11784
11785 * dispnew.c (update_text_area): Fix redisplay error when hscroll
11786 is active and first glyph is only partially visible.
854c1a59 11787
dd429b03
KH
117882003-11-13 Kenichi Handa <handa@m17n.org>
11789
11790 * xdisp.c (select_frame_for_redisplay): New function.
11791 (redisplay_internal): Record also selected_frame for
11792 unwind_redisplay. Call select_frame_for_redisplay before
11793 redrawing each frame.
11794 (unwind_redisplay): Argument changed to a cons.
11795
6d9266f4
LT
117962003-11-12 Luc Teirlinck <teirllm@auburn.edu>
11797
11798 * fns.c (Fstring_to_multibyte): Doc fix.
11799
80060eb3
KH
118002003-11-11 Kenichi Handa <handa@m17n.org>
11801
11802 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
11803
74305183
JD
118042003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11805
11806 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
11807 program specified positions.
11808
cfda993e
JD
118092003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11810
11811 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
11812
df211069
KH
118132003-11-08 Kenichi Handa <handa@m17n.org>
11814
11815 * Makefile.in (lisp): Add kannada.el.
11816 (shortlisp): Likewise.
11817
4307d534
KH
118182003-11-07 Kenichi Handa <handa@m17n.org>
11819
854c1a59
SM
11820 * coding.c (coding_allocate_composition_data):
11821 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
11822 (coding_restore_composition): Detect invalid composition data.
11823 Give Fstring and Fvector a Lispy integer, not C int.
11824
854c1a59
SM
118252003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
11826
11827 * floatfns.c (Flogb): Don't use VALMASK.
11828
11829 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
11830 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
11831
11832 * lisp.h (XINT): Move the cast to clarify what is going on.
11833 (GCTYPEMASK, XSETTYPE): Remove.
11834 (XGCTYPE): Make it an alias of XTYPE.
11835
d04103a1
JD
118362003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11837
11838 * xterm.c (x_term_init): Fix formatting.
11839
da18b5ac
JD
118402003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11841
78819ebb
KS
11842 * gtkutil.h (xg_have_tear_offs): Declare.
11843 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
11844
11845 * gtkutil.c: Remove variable xg_did_tearoff.
11846 (xg_have_tear_offs): New function.
11847 (tearoff_remove): Just decrease xg_detached_menus.
11848 (tearoff_activate): Increase xg_detached_menus and call
11849 tearoff_remove when tearoff is removed.
854c1a59 11850 (xg_keep_popup): Remove function.
da18b5ac
JD
11851 (create_menus): Give add_tearoff_p as argument to recursive
11852 call to create_menus.
11853 (xg_create_widget): Use variables instead of multiple
11854 strcmp. Tell create_menus to create tear off only for
11855 menu bar menus.
11856 (xg_update_menubar): Change title for a detached menu also.
11857 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
11858 of deep_p.
11859 (xg_initialize): Initialize xg_detached_menus, remove
11860 initialization of xg_did_tearoff.
11861
11862 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
11863 xg_have_tear_offs returns non-zero.
11864 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
11865 call to xg_keep_popup.
11866
64d4923e
AC
118672003-11-01 Andrew Choi <akochoi@shaw.ca>
11868
11869 * macterm.c (XTread_socket): Handle menubar selection and grow
11870 window only for mouseDown events.
854c1a59 11871
6cc8bc07
JD
118722003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11873
11874 * xterm.c (x_term_init): For GTK part, increase x_initialized
11875 to check for more than one display. Use error instead of return 0.
11876
043131c4
AC
118772003-10-31 Andrew Choi <akochoi@shaw.ca>
11878
854c1a59 11879 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
11880 (copy_dysymtab): Call it.
11881
bdda99a1
LT
118822003-10-31 Luc Teirlinck <teirllm@auburn.edu>
11883
11884 * eval.c (Fdefvaralias): Doc fix.
11885
800f42ff 118862003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
11887
11888 * data.c (Fsetplist): Doc fix.
11889
ef35b389
LK
118902003-10-14 Lute Kamstra <lute@gnu.org>
11891
11892 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 11893
ef35b389 118942003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 11895
07107abc
KS
11896 * window.c (Fset_window_margins): Simplify arg checking.
11897
f7005886
RS
118982003-10-13 Richard M. Stallman <rms@gnu.org>
11899
11900 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
11901 (print_partial_compiled_pattern): Replace assert with a printout.
11902 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
11903
11904 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
11905
11906 * window.c (Fset_window_margins): Allow only integers as args.
11907 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
11908 Doc fixes.
11909
9c0c2af5
LK
119102003-10-13 Lute Kamstra <lute@gnu.org>
11911
11912 * window.c (Fset_window_fringes): Elaborate docstring.
11913
3f080e4e
AC
119142003-10-12 Andrew Choi <akochoi@shaw.ca>
11915
854c1a59 11916 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 11917
3f080e4e
AC
11918 * s/darwin.h (GC_MARK_STACK): Define.
11919
0aa513ed
JD
119202003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11921
11922 * window.c (shrink_windows): New function.
11923 (size_window): Call shrink_windows to calculate window sizes when
11924 shrinking frame with more than one window.
11925
6aa8858a
KS
119262003-10-12 Kim F. Storm <storm@cua.dk>
11927
11928 * xdisp.c (compute_fringe_widths): Doc fix.
11929
c2164d91
KH
119302003-10-08 Kenichi Handa <handa@m17n.org>
11931
854c1a59 11932 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 11933
f82ac129
KH
119342003-10-07 Kenichi Handa <handa@m17n.org>
11935
11936 * coding.c (Qcoding_system_define_form): New variable.
11937 (syms_of_coding): Intern and staticpro it.
11938 (Fcheck_coding_system): Try to autoload the definition of
11939 CODING-SYSTEM.
11940
9296c947
LT
119412003-10-05 Luc Teirlinck <teirllm@auburn.edu>
11942
11943 * fns.c (Frequire): Doc fix.
11944
c1f0671a
JD
119452003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11946
3d8c3826
JD
11947 * xfns.c (Fx_send_client_event): New function as a base for
11948 manipulating extended window manager hints.
6dc15d98 11949 (Fx_send_client_event): Remove unused variable s.
3d8c3826 11950
068ae0fd
JD
11951 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
11952 that function is removed.
11953
11954 * xterm.c (x_set_offset): Use move_offset_left/top instead of
11955 x/y_pixels_outer_diff.
11956 (x_check_expected_move): Calculate move_offset_left/top.
11957
11958 * xterm.h (struct x_output): New members: move_offset_top/left.
11959
854c1a59 11960 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
11961 call x_set_offset directly.
11962
11963 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
11964
96f09305
JD
11965 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
11966
11967 * xterm.c (x_delete_display): Free font names and font_encoder
11968 in dpyinfo->font_table.
11969
854c1a59
SM
11970 * xfns.c (Fx_close_connection): Only call XFreeFont here.
11971 Move xfree of font names to x_delete_display.
96f09305 11972
c1f0671a
JD
11973 * xterm.h (struct x_display_info): New member, wm_type.
11974 (struct x_output): New members, expected_top/left and
11975 check_expected_move.
11976
11977 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
11978 is received.
854c1a59
SM
11979 (handle_one_xevent): Rename x_check_expected_move from
11980 x_check_fullscreen_move.
c1f0671a
JD
11981 (x_set_offset): Only add WM decoration sizes to modified_top/left
11982 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 11983 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
11984 Removed fullscreen specific code. Use check_expected_move,
11985 expected_left/top instead. Also, set wm_type.
11986 (x_term_init): Initialize wm_type to unknown.
11987
11988 * frame.c (x_fullscreen_move): Remove addition of WM decoration
11989 sizes to move_x/y.
11990
be2fdba9
KH
119912003-10-03 Kenichi Handa <handa@m17n.org>
11992
11993 * macterm.c (x_load_font): Clear all members of FONTP before start
11994 filling them.
11995
119962003-10-02 Kenichi Handa <handa@m17n.org>
11997
11998 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
11999 before calling find_ccl_program_func. Call find_ccl_program_func
12000 only when fontp->font_encoder is not NULL.
12001
12002 * xterm.c (x_load_font): Clear all members of FONTP before start
12003 filling them.
12004
26a6e439
JPW
120052003-10-03 John Paul Wallington <jpw@gnu.org>
12006
12007 * keymap.c (map_keymap): Don't abort when binding is a vector.
12008
0d4c2dc2
JR
120092003-10-02 Jason Rumney <jasonr@gnu.org>
12010
854c1a59
SM
12011 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
12012 Sync dependencies with Makefile.in.
a63cf46f
JR
12013 (alloca.o): Remove.
12014
0d4c2dc2
JR
12015 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
12016 filling them.
12017
12018 * w32bdf.c (w32_load_bdf_font): Likewise.
12019
ab8f7d5c
RS
120202003-09-30 Richard M. Stallman <rms@gnu.org>
12021
12022 * term.c (set_tty_color_mode): Calculate current_mode_spec
12023 regardless of value of VAL.
12024
854c1a59 12025 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
12026 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
12027 Handle over_used when splitting UNDER.
12028
a64387ee 120292003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
12030
12031 * regex.c (regex_compile): Free the stack when returning from function.
12032
3413f972
KH
120332003-09-28 Kenichi Handa <handa@m17n.org>
12034
12035 * fontset.c (Finternal_char_font): Change return value to
12036 cons (FONT-NAME . GLYPH-CODE).
12037
a6eeaa81 120382003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
12039
12040 * term.c (tty_setup_colors): Treat any negative argument as -1.
12041
f98ddc99
KH
120422003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
12043
12044 * process.c (send_process): Delete unused temp_buf.
12045
66c8f1a8
DL
120462003-09-26 Dave Love <fx@gnu.org>
12047
12048 * xterm.c (x_bitmap_mask): Declare.
12049
ca716c26
DL
120502003-09-25 Dave Love <fx@gnu.org>
12051
12052 * Makefile.in (fns.o): Depend on md5.h.
12053
fbe57420
KS
120542003-09-25 Kim F. Storm <storm@cua.dk>
12055
12056 * window.c (set_window_buffer): Fix redisplay problems when
12057 switching between buffers with different display margin widths.
12058
ef6ae4ff
KS
120592003-09-23 Kim F. Storm <storm@cua.dk>
12060
12061 * process.c (set_socket_option): Fix :bindtodevice option.
12062 (Fset_network_process_option): Update process contact list when
12063 setting option succeeds.
12064 (Fmake_network_process): Doc fix.
12065
68e03c1c
DL
120662003-09-23 Dave Love <fx@gnu.org>
12067
7146d1c1 12068 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 12069
a6eeaa81 120702003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
12071
12072 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
12073 color mode is an integer number (it could be -1).
12074
8fe7d8c8
RS
120752003-09-22 Richard M. Stallman <rms@gnu.org>
12076
12077 * intervals.c (graft_intervals_into_buffer): Correct the main loop
12078 in the case where OVER is longer than UNDER.
12079
2f71b5ea
MY
120802003-09-22 Masatake YAMATO <jet@gyve.org>
12081
7146d1c1 12082 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 12083 `vertical_type'.
7146d1c1 12084
0c4da023
KS
120852003-09-21 Kim F. Storm <storm@cua.dk>
12086
12087 * frame.c (Vdefault_frame_scroll_bars): New variable.
12088 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
12089 (syms_of_frame): DEFVAR_LISP it, and initialize according to
12090 window-system default scroll bar position.
12091
b648413b
KS
12092 * window.c (Fwindow_scroll_bars): Doc fix.
12093
8f5b9e34
JD
120942003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12095
854c1a59 12096 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 12097
b0f23edf
RS
120982003-09-19 Richard M. Stallman <rms@gnu.org>
12099
12100 * atimer.h: Don't include lisp.h.
12101 (P_): Define it here (as well as elsewhere).
12102
12103 * print.c (Fprin1_to_string): Move the PRINTPREPARE
12104 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
12105
12106 * data.c (Fvariable_binding_locus): New function.
12107 (syms_of_data): defsubr it.
12108 (Flocal_variable_p): Delete duplicate call to indirect_variable.
12109
e1283999
DL
121102003-09-18 Dave Love <fx@gnu.org>
12111
ad5f3636
DL
12112 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
12113
e1283999
DL
12114 * process.c (Fnetwork_interface_info): Fix type error.
12115 (Fnetwork_interface_list): Doc fix.
12116 (read_process_output, read_process_output): Delete unused var.
12117
b8c7fd71
KS
121182003-09-17 Kim F. Storm <storm@cua.dk>
12119
12120 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
12121 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
12122 (Fnetwork_interface_info): Check that ifreq struct has required
12123 fields before accessing them; this requires that those fields are
12124 defined as macros, which may be too restrictive on some platforms,
12125 but it is better than failing on other platforms.
12126 (syms_of_process): Only defsubr above fns when included.
12127
11e0a411
DL
121282003-09-17 Dave Love <fx@gnu.org>
12129
12130 * unexalpha.c: Don't include varargs.h.
12131
e9c50801
KS
121322003-09-17 Kim F. Storm <storm@cua.dk>
12133
12134 * process.c (Fset_process_sentinel): Add sentinel to childp plist
12135 for network process.
12136 (socket_options): Add `:' prefix to option names. Add optbit field.
12137 (set_socket_option): Remove no_error arg and special handling of s < 0.
12138 Return 1<<optbit for known option, 0 for unknown.
12139 Do not interpret 0 as false for boolean option (only nil).
12140 Pass failed option and value to report_file_error.
7146d1c1 12141 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
12142 (Fset_network_process_option): New function to set just one option.
12143 (Fmake_network_process): Allow :coding arg to be a cons.
12144 Allow :server arg to be an integer specifying backlog size.
12145 Remove :options arg, and allow options to be specified directly
12146 as :KEY, VALUE pairs. Parse these options before binding socket.
12147 As before, :reuseaddr t is default for a server process, but this
12148 can now be disabled by specifying :reuseaddr nil.
12149 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
12150 (init_process): Availability of network options is now checked with
12151 simpler syntax (featurep 'make-network-process :OPTION); use loop to
12152 setup features.
12153 (syms_of_process): Fix defsubr's for the replaced functions.
12154
a0fc3644
DL
121552003-09-16 Dave Love <fx@gnu.org>
12156
12157 * Makefile.in: Depend on coding.h.
12158
6df2a645
KS
121592003-09-14 Kim F. Storm <storm@cua.dk>
12160
12161 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
12162 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
12163 (syms_of_process): Defsubr them.
12164
12165 * config.in: Regenerate.
7146d1c1
SM
12166
121672003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12168
12169 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
12170 * m/news-r6.h (XUNMARK): Remove.
12171 * m/mips.h (XUNMARK): Remove.
12172 * m/mips-siemens.h (XUNMARK): Remove.
12173 * m/iris4d.h (XUNMARK): Remove.
12174 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
12175
0930c1a1
SM
121762003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12177
31003b9e
SM
12178 * lisp.h (VALBITS): Don't remove 1 for the markbit.
12179 (union Lisp_Object): Use unsigned int for types. Remove markbit.
12180 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
12181 (XTYPE): Use unsigned right-shift.
12182 (XMARKBIT, XMARK, XUNMARK): Remove.
12183
0930c1a1
SM
12184 * alloc.c (init_intervals, init_symbol, init_marker):
12185 Don't preallocate anything.
12186 (Fgarbage_collect, mark_object): Ignore the markbit.
12187
12188 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
12189
19bb0fcd 121902003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
12191
12192 * xdisp.c (pint2hrstr): New function.
12193 (decode_mode_spec): Add `%i' and `%I' specs.
12194 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
12195 for `mode-line-format'.
12196
03bb6a06
AS
121972003-09-07 Andreas Schwab <schwab@suse.de>
12198
12199 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
12200 avoid warning.
12201
a6eeaa81 122022003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 12203
0930c1a1 12204 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 12205
ed159bbf
KS
122062003-09-03 Kim F. Storm <storm@cua.dk>
12207
12208 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
12209 change (superseded by 2002-08-30 change); the default blink-off
12210 cursor is now again "no cursor".
12211
fe64a394
JR
122122003-09-01 Jason Rumney <jasonr@gnu.org>
12213
12214 * makefile.w32-in (alloca.o): Remove.
12215 (coding.o): Depend on intervals.h
12216 (emacs.o, bytecode.o): Depend on window.h
12217
c0175e24
DL
122182003-09-01 Dave Love <fx@gnu.org>
12219
12220 * Makefile.in (alloca.o): Remove commands.
12221 (coding.o): Depend on intervals.h composite.h window.h.
12222 (emacs.o): Depend on window.h keyboard.h keymap.h.
12223 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
12224 (bytecode.o): Depend on window.h.
12225
a24d4cb2
JR
122262003-08-31 Jason Rumney <jasonr@gnu.org>
12227
4bc2315e
JR
12228 * w32term.c (w32_per_char_metric): Allow cached metrics to be
12229 returned even when font_type is unknown.
12230
a24d4cb2
JR
12231 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
12232
9d35adc7
JD
122332003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12234
12235 * xterm.c (x_term_init): Initialize new fields in x_display_info.
12236
12237 * xterm.h (struct x_display_info): Add red/green/blue_bits and
12238 *_offset.
12239
12240 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
12241 calculate pixel value.
12242
6f68b035
GM
122432003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
12244
0930c1a1
SM
12245 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
12246 Don't tell redisplay display is accurate when it's actually been
12247 paused for pending input.
6f68b035 12248
4828b4d7
RS
122492003-08-29 Richard M. Stallman <rms@gnu.org>
12250
12251 * dispnew.c (adjust_glyph_matrix): Call window_box
12252 whenever W is nonzero.
12253
12254 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12255 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 12256 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
12257 Use indirect_variable to trace thru variable aliases.
12258
12259 * config.in: Updated.
12260
12261 * callint.c (Fcall_interactively): Save and restore
12262 Vthis_command, Vthis_original_command, real_this_command,
12263 and current_kboard->Vlast_command.
12264
12265 * abbrev.c (Fexpand_abbrev): Insert before deleting.
12266
e019878d
GM
122672003-08-29 Gerd Moellmann <gerd@gnu.org>
12268
12269 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
12270
85478bc6
KH
122712003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
12272
0930c1a1 12273 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
12274 (decode_coding_sjis_big5): Likewise.
12275
07ce82d3
JR
122762003-08-27 Jason Rumney <jasonr@gnu.org>
12277
d3703de3
JR
12278 * w32.c (sys_pipe): Protect against file descriptor overflow.
12279
ee4a01d1
JR
12280 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
12281
07ce82d3
JR
12282 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
12283
a64387ee 122842003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
12285
12286 * xfns.c (Vgtk_version_string): New variable.
12287 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
12288
a6eeaa81 122892003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 12290
0930c1a1 12291 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 12292
5459e42a
EZ
12293 * Makefile.in (msdos.o): Depend on intervals.h.
12294
0930c1a1 12295 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 12296
231d6cfb
JD
122972003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12298
12299 * xterm.h (struct x_display_info): New fields: client_leader_window
12300 and Xatom_wm_client_leader.
12301
12302 * xterm.c (x_initialize): Move call to x_session_initialize to ...
12303 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
12304
12305 * xsmfns.c (create_client_leader_window): New function.
12306 (x_session_initialize): Call create_client_leader_window, take
12307 dpyinfo as argument.
12308
12309 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
12310
12311 * Makefile.in (xsmfns.o): Add more depenedencies.
12312
afa88464
DL
123132003-08-21 Dave Love <fx@gnu.org>
12314
12315 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
12316
f730033e
KH
123172003-08-21 Kenichi Handa <handa@m17n.org>
12318
12319 * term.c (term_init): Fix previous change; don't rely on the
12320 length of `buffer' if TERMINFO is defined.
12321
6dca786c
DL
123222003-08-20 Dave Love <fx@gnu.org>
12323
12324 * atimer.h: Include lisp.h.
12325
12326 * lisp.h (EMACS_LISP_H): New.
12327 (popup_activated_flag): Don't declare.
12328
12329 * alloca.c: Some merging with gnulib. Change logic and doc
12330 concerning (x)malloc/(x)free -- no longer Emacs-specific.
12331 [DO_BLOCK_INPUT]: Don't include lisp.h.
12332 (xmalloc, xfree): Declare.
12333 (malloc): Don't declare.
12334
0930c1a1 12335 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
12336 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
12337 atimer.h, blockinput.h.
12338
12339 * alloc.c (lisp_align_malloc): Change type of `aligned'.
12340
78819ebb 12341 * alloca.s: Remove.
6dca786c 12342
3a06a6d9
RS
123432003-08-19 Gerd Moellmann <gerd@gnu.org>
12344
12345 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
12346 use -lncurses.
12347
12348 * term.c (term_init): Use a buffer of size 4096 for tgetent since
12349 FreeBSD returns something longer than 2044. Abort if the end of
12350 the buffer is overwritten.
12351
27eeee55
MB
123522003-08-19 Miles Bader <miles@gnu.org>
12353
12354 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
12355
2f297815
GM
123562003-08-19 Gerd Moellmann <gerd@gnu.org>
12357
f4446bbf
GM
12358 * alloc.c (lisp_align_malloc): Check for memory full when
12359 allocating ablocks, which also avoids freeing a pointer into an
12360 ablocks structure.
12361
12362 * puresize.h (BASE_PURESIZE): Increase to 1100000.
12363
0930c1a1 12364 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 12365
0e7d7aae
RS
123662003-08-16 Richard M. Stallman <rms@gnu.org>
12367
12368 * editfns.c (Fencode_time): Doc fix.
12369
123702003-08-16 David Ponce <david@dponce.com>
12371
12372 * fileio.c (Fwrite_region): Fix conditional expression to issue
12373 the right message.
12374
b6189c3b 123752003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
12376
12377 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 12378 Set default value to 1.
0e7d7aae 12379
5d551295
KH
123802003-08-15 Kenichi Handa <handa@m17n.org>
12381
12382 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
12383 what autoscaled.
12384 (best_matching_font): Once we find a better scalable font, set
12385 non_scalable_has_exact_height_p to 1.
12386 (try_font_list): Call try_alternative_families to try any family
12387 with the given registry.
12388
1661e56b
AS
123892003-08-09 Andreas Schwab <schwab@suse.de>
12390
f29181dc
AS
12391 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
12392
1661e56b
AS
12393 * print.c (print_string): Fix printing of multibyte string with
12394 nontrivial printcharfun.
12395
465aa50a
JD
123962003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12397
12398 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
12399
12400 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
12401
e430e5ba
KH
124022003-07-31 Kenichi Handa <handa@m17n.org>
12403
12404 * process.c (read_process_output): Return the actually read bytes
12405 instead of the result of decoding.
12406
97e7188e
KH
124072003-07-31 Kenichi Handa <handa@m17n.org>
12408
12409 * xterm.h (struct x_bitmap_record): New member have_mask.
12410
12411 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
12412 to 0.
12413 (x_create_bitmap_from_file): Likewise.
12414 (x_destroy_bitmap): Check have_mask member before freeing a mask.
12415 (x_destroy_all_bitmaps): Likewise.
12416 (x_create_bitmap_mask): Set have_mask member to 1.
12417
b53094d6
RS
124182003-07-30 Richard M. Stallman <rms@gnu.org>
12419
12420 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
12421
631f2082
JD
124222003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12423
12424 * gtkutil.c (xg_mark_data): Update calls to mark_object.
12425
c855f2ca
RS
124262003-07-29 Richard M. Stallman <rms@gnu.org>
12427
12428 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
12429 Conditionalize XIM code on HAVE_XIM.
12430
12431 * fns.c (Fclear_string): New function.
12432 (syms_of_fns): defsubr it.
12433
b6189c3b 124342003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 12435
0930c1a1 12436 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 12437
29ea8ae9
SM
124382003-07-22 Stefan Monnier <monnier@cs.yale.edu>
12439
12440 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
12441
12442 * buffer.c (delete_all_overlays): New function.
12443 * buffer.h (delete_all_overlays): Declare.
12444 * coding.c (run_pre_post_conversion_on_str):
12445 * print.c (temp_output_buffer_setup):
12446 * fileio.c (Finsert_file_contents):
12447 * minibuf.c (get_minibuffer): Use it.
12448
1dd7ccf2
AC
124492003-07-22 Andrew Choi <akochoi@shaw.ca>
12450
12451 * unexmacosx.c (unexec_regions_sort_compare):
12452 (unexec_regions_merge): New functions. Sort and merge unexec
12453 regions before dumping them.
12454
f57bd967
DL
124552003-07-22 Dave Love <fx@gnu.org>
12456
12457 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
12458
7cdee936
SM
124592003-07-21 Stefan Monnier <monnier@cs.yale.edu>
12460
12461 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
12462 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
12463 MARKBIT as the gcmarkbit for strings.
12464
e50886d3
RS
124652003-07-21 Richard M. Stallman <rms@gnu.org>
12466
12467 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
12468
29ea8ae9 12469 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
12470 (syms_of_fns): Corresponding change.
12471
12472 * alloc.c (syms_of_alloc): Doc fixes.
12473
124742003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
12475
12476 * s/netbsd.h: Use -Wl syntax.
12477
fdc39b59
RS
124782003-07-17 Richard M. Stallman <rms@gnu.org>
12479
12480 * xterm.c (xim_initialize): Redo 6/24 change.
12481
9c53385f
SM
124822003-07-15 Stefan Monnier <monnier@cs.yale.edu>
12483
12484 * buffer.c (copy_overlays): Use EMACS_INT for positions.
12485 (Fswitch_to_buffer): Don't signal an error when switching to the same
12486 buffer in a dedicated window.
12487
12488 * alloc.c: Use bitmaps for cons, as was done for floats.
12489 (init_float, init_cons): Let the normal code allocate the first block.
12490 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
12491 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
12492 New macros.
12493 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
12494 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
12495 (live_cons_p): Check the pointer is not past the `conses' array.
12496 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
12497 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
12498 (survives_gc_p): Use CONS_MARKED_P and simplify.
12499 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
12500
dde13196
PE
125012003-07-13 Paul Eggert <eggert@twinsun.com>
12502
12503 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
12504 puts it into BSS instead, at least on Solaris 8 and 9.
12505 This is a valid optimization, and it may occur on other platforms,
12506 so Emacs should not assume that initializing a static variable to
12507 zero puts it into data.
12508 * alloc.c (pure, staticvec):
12509 Initialize these arrays to nonzero, so that they're not
12510 put into BSS by that optimization.
12511
a801bc34
SM
125122003-07-13 Stefan Monnier <monnier@cs.yale.edu>
12513
12514 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
12515 (lisp_align_malloc): Use posix_memalign is available.
12516 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
12517 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
12518 for consistency. Update users.
12519
0c8b2afa
RS
125202003-07-13 Richard M. Stallman <rms@gnu.org>
12521
12522 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
12523
668c2ab0
JB
125242003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
12525
9dd28cae 12526 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
668c2ab0
JB
12527 and use the Gtk+ function gtk_window_icon_from_file if available.
12528
12529 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
12530 handle mask of bitmaps.
12531 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
12532 mask property.
12533 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
12534
12535 * xterm.h (xg_set_icon): New function.
12536
800bebe3
RS
125372003-07-12 Paul Eggert <eggert@twinsun.com>
12538
12539 * unexelf.c (unexec): Consider a section to precede the .bss
12540 section if its addresses overlap that of .bss.
12541
69e38995
RS
125422003-07-12 Richard M. Stallman <rms@gnu.org>
12543
12544 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
12545
12546 * config.in (HAVE_CRTIN): Add #undef.
12547 (INLINE): Really inline only if OPTIMIZE is defined.
12548
12549 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
12550 END_FILES_1.
12551 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 12552 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
12553
12554 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
12555 (TERMINFO): Define.
12556 (LIBS_TERMCAP): Define.
12557 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
12558
12559 * xfns.c: Include libpng/png.h instead of png.h.
12560
f1d0c238
AS
125612003-07-11 Andreas Schwab <schwab@suse.de>
12562
12563 * buffer.c (modify_overlay): Update prototype.
12564 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
12565 Likewise.
12566
5f6bf5fe
SM
125672003-07-09 Stefan Monnier <monnier@cs.yale.edu>
12568
12569 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
12570 (struct interval): Move to intervals.h.
12571 (struct Lisp_Marker): Use EMACS_INT for position info.
12572 (forward_point): Remove prototype of defunct function.
12573 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
12574 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
12575 (syms_of_textprop, set_text_properties): Remove prototypes that are
12576 already in intervals.h.
12577
12578 * intervals.h (struct interval): Move from lisp.h.
12579 Use EMACS_INT for position and size info.
12580
12581 * coding.c: Include intervals.h for Fset_text_properties.
12582
12583 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
12584 position and length information.
12585
2765b457
SM
125862003-07-09 Stefan Monnier <monnier@cs.yale.edu>
12587
12588 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
12589 position and length information.
12590
2410d73a
SM
125912003-07-09 Stefan Monnier <monnier@cs.yale.edu>
12592
12593 Change overlays_after and overlays_before so the overlays themselves
12594 are linked into lists, rather than using cons cells. After all each
12595 Lisp_Misc already occupies 5 words, so we can add a `next' field to
12596 Lisp_Overlay for free and save up one cons cell per overlay (not
12597 to mention one indirection when traversing the list of overlay).
12598
12599 * lisp.h (struct Lisp_Overlay): New field `next'.
12600
12601 * buffer.h (struct buffer): Change overlays_before and overlays_after
12602 from Lisp lists of overlays to pointers to overlays.
12603
12604 * buffer.c (overlay_strings, recenter_overlay_lists):
12605 Fix typo in eassert in last commit.
12606 (unchain_overlay): New function.
12607 (add_overlay_mod_hooklist): Use AREF.
12608 (copy_overlays, reset_buffer, overlays_at, overlays_in)
12609 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
12610 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
12611 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
12612 (report_overlay_modification, evaporate_overlays, init_buffer_once):
12613 Adjust to new type of overlays_(before|after).
12614
12615 * alloc.c (mark_object): Mark the new `next' field of overlays.
12616 (mark_buffer): Manually mark the overlays_(after|before) fields.
12617
12618 * coding.c (run_pre_post_conversion_on_str):
12619 * editfns.c (overlays_around):
12620 * xdisp.c (load_overlay_strings):
12621 * fileio.c (Finsert_file_contents):
12622 * indent.c (current_column):
12623 * insdel.c (signal_before_change, signal_after_change):
12624 * intervals.c (set_point_both):
12625 * print.c (temp_output_buffer_setup): Use new type for
12626 overlays_(before|after).
12627
04812929
SM
126282003-07-08 Stefan Monnier <monnier@cs.yale.edu>
12629
12630 * buffer.c (report_overlay_modification): Don't run hooks while
12631 traversing the list of overlays.
12632
12633 * buffer.h (struct buffer): Use an int for overlay_center.
12634 (overlays_at, evaporate_overlays, recenter_overlay_lists)
12635 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
12636
12637 * buffer.c (reset_buffer, recenter_overlay_lists)
12638 (adjust_overlays_for_insert, adjust_overlays_for_delete)
12639 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
12640 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
12641 (overlays_at, evaporate_overlays, recenter_overlay_lists)
12642 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
12643
12644 * xdisp.c (fast_find_position): Remove unused var.
12645
12646 * cmds.c (Qexpand_abbrev): New sym.
12647 (syms_of_cmds): Initialize it.
12648 (internal_self_insert): Use it to call expand-abbrev.
12649
2e7ecf15
KS
126502003-07-09 Kim F. Storm <storm@cua.dk>
12651
f9711de4 12652 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 12653 was configured with --without-xim.
42f81f64 12654 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 12655
c6de56a0
RS
126562003-07-07 Richard M. Stallman <rms@gnu.org>
12657
12658 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
12659
12660 * alloc.c (Fgarbage_collect): Doc fix.
12661
b6189c3b 126622003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
12663
12664 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
12665
bfe1a3f7
SM
126662003-07-06 Stefan Monnier <monnier@cs.yale.edu>
12667
04812929
SM
12668 * minibuf.c (read_minibuf): UNGCPRO before returning.
12669 (Ftry_completion, Fall_completions): Doc fix.
12670
bfe1a3f7
SM
12671 * alloc.c (live_float_p): Check that p is not past the `floats' array,
12672 now that `floats' is not the last element of the struct any more.
12673
ee79d1aa
JR
126742003-07-06 Jason Rumney <jasonr@gnu.org>
12675
12676 * w32term.h (ClipboardSequence_Proc): New type.
12677
12678 * w32fns.c (clipboard_sequence_fn): New variable.
12679 (globals_of_w32fns): Initialize it.
12680
12681 * w32select.c (last_clipboard_sequence_number): New variable.
12682 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
12683 number if possible.
12684
49723c04
SM
126852003-07-06 Stefan Monnier <monnier@cs.yale.edu>
12686
4698665f
SM
12687 * m/amdx86-64.h (MARKBIT):
12688 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
12689 MARKBIT and ARRAY_MARK_FLAG any more.
12690
12691 * m/hp800.h (XSETMARKBIT):
12692 * m/sr2k.h (XSETMARKBIT):
12693 * lisp.h (XSETMARKBIT): Remove unused macro.
12694
49723c04
SM
12695 * lisp.h (mark_object): Change prototype.
12696
12697 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
12698 (last_marked): Change accordingly.
12699 (mark_interval, mark_maybe_object, mark_maybe_pointer)
12700 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
12701 (mark_buffer): Update calls to mark_object.
12702
12703 * bytecode.c (mark_byte_stack):
12704 * fns.c (sweep_weak_table):
12705 * keyboard.c (mark_kboards): Update calls to mark_object.
12706
1d660eca
JR
127072003-07-06 Jason Rumney <jasonr@gnu.org>
12708
12709 * alloc.c (struct ablock): Only include padding when there is some.
12710
618b5ae4
SM
127112003-07-04 Stefan Monnier <monnier@cs.yale.edu>
12712
12713 * alloc.c (ALIGN): Add casts to simplify usage.
12714 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
12715 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
12716 (struct ablock, struct ablocks): New types.
12717 (free_ablock): New global var.
12718 (lisp_align_malloc, lisp_align_free): New functions.
12719 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
12720 (struct float_block): Reorder and add gcmarkbits.
12721 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
12722 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
12723 (init_float, make_float): Use lisp_align_malloc.
12724 (free_float, live_float_p): Don't use `type' any more.
12725 (make_float): Use FLOAT_UNMARK to access to mark bit.
12726 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
12727 Use FLOAT_MARKED_P to access the mark bit.
12728 (pure_alloc): Simplify use of ALIGN.
12729 (mark_object): Use FLOAT_MARK to access the mark bit.
12730 (gc_sweep): Use new macros to access the float's mark bit.
12731 (init_alloc_once): Init free_ablock.
12732
12733 * lisp.h (struct Lisp_Float): Remove unused field `type'.
12734
3ef06d12
SM
127352003-06-27 Stefan Monnier <monnier@cs.yale.edu>
12736
12737 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
12738 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
12739 (allocate_buffer): Move.
12740 (string_bytes): Don't mask markbit of `size_byte'.
12741 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
12742 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
12743 Use the `size' field of buffers (rather than the `name' field) for
12744 the mark bit, as is done for all other vectorlike objects.
12745 Use the new macros to access the mark bit of vectorlike objects.
12746
e81043aa
RS
127472003-06-26 Richard M. Stallman <rms@gnu.org>
12748
12749 * puresize.h (BASE_PURESIZE): Increment base size.
12750
12751 * xdisp.c (fast_find_position): Enable Gerd's new definition.
12752
12753 * xterm.c (xim_initialize): Undo previous change.
12754
2d0834cc
SM
127552003-06-26 Stefan Monnier <monnier@cs.yale.edu>
12756
12757 * alloc.c (survives_gc_p): Simplify.
12758
12759 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
12760
12761 * window.c (Fset_window_dedicated_p): Simplify.
12762 (display_buffer_1): Don't raise the win from which minibuf was entered.
12763 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
12764 (Fminibuffer_selected_window): Simplify.
12765
12766 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
12767
12768 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
12769 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
12770
12771 * insdel.c (check_markers, adjust_markers_for_delete)
12772 (adjust_markers_for_insert, adjust_markers_for_replace)
12773 (prepare_to_modify_buffer, RESTORE_VALUE):
12774 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
12775 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
12776 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
12777 * alloc.c (Fmake_marker, free_marker, gc_sweep):
12778 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
12779 * editfns.c (save_excursion_restore, transpose_markers):
12780 * window.c (delete_window):
12781 * xdisp.c (message_dolog): Update for new types.
12782
d54ae3d8
JD
127832003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12784
a5f696ac
JD
12785 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
12786 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 12787 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
12788
12789 * frame.c (make_frame): Initialize default_face_done_p.
12790
12791 * frame.h (struct frame): Add default_face_done_p.
12792
d54ae3d8
JD
12793 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
12794 will be defined.
12795
2336fe58
SM
127962003-06-25 Stefan Monnier <monnier@cs.yale.edu>
12797
12798 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
12799 Initialize the new field `gcmarkbit'.
12800 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
12801 (mark_interval_tree): Don't mark the tree separately from the nodes.
12802 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
12803 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
12804 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
12805
12806 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
12807 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
12808 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
12809 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
12810 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
12811
bcea31c2
DL
128122003-06-24 Dave Love <fx@gnu.org>
12813
12814 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
12815
12816 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
12817 from gnulib.
12818
2601f59e
RS
128192003-06-21 Richard M. Stallman <rms@gnu.org>
12820
12821 * fileio.c (Fwrite_region): Alternate messages
12822 for append and partial write.
12823
12824 * keyboard.c (read_key_sequence): When converting upcase fn key to
12825 downcase, update fkey and keytran so `backspace' gets translated.
12826
12827 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
12828
12829 * process.c (wait_reading_process_input): Don't signal SIGIO
12830 in batch mode.
12831
b5d2c621
KH
128322003-06-17 Kenichi Handa <handa@m17n.org>
12833
12834 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
12835 composite.h.
12836
12837 * xselect.c: Don't include charset.h, coding.h, composite.h.
12838 (Qforeign_selection): New variable.
12839 (syms_of_xselect): Intern and static it.
12840 (selection_data_to_lisp_data): Return a unibyte string made from
12841 data with `foreign-selection' text property.
12842
6793bc63
SM
128432003-06-15 Stefan Monnier <monnier@cs.yale.edu>
12844
12845 * termhooks.h (EVENT_INIT): New macro.
12846
12847 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
12848
12849 * alloc.c (mark_kboards): Move to keyboard.c.
12850
12851 * keyboard.c (record_asynch_buffer_change, read_avail_input):
12852 * xterm.c (x_dispatch_event):
12853 * xmenu.c (find_and_call_menu_selection):
12854 * xdisp.c (handle_tool_bar_click):
12855 * w32menu.c (menubar_selection_callback):
12856 * sysdep.c (kbd_input_ast, read_input_waiting):
12857 * msdos.c (dos_rawgetc):
12858 * macterm.c (mac_check_for_quit_char):
12859 * macmenu.c (menubar_selection_callback):
12860 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
12861 data to kbd_buffer_store_event.
12862
b3ea810c
KS
128632003-06-15 Kim F. Storm <storm@cua.dk>
12864
12865 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 12866 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 12867
b8f75eda
KG
128682003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
12869
12870 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
12871
ba92ce48
KH
128722003-06-12 Kenichi Handa <handa@m17n.org>
12873
12874 * fileio.c (Fwrite_region): Save and restore restriction.
12875
b80263be
DL
128762003-06-12 Dave Love <fx@gnu.org>
12877
12878 * alloca.c (alloca): Declare arg as size_t.
12879
6793bc63
SM
12880 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
12881 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 12882
b23c0a83
DL
128832003-06-11 Dave Love <fx@gnu.org>
12884
12885 * search.c (shrink_regexp_cache): Use xrealloc.
12886 (syms_of_search): Use xmalloc.
12887
700e47c2
KS
128882003-06-10 Kim F. Storm <storm@cua.dk>
12889
12890 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
12891 Adjust phys_cursor.x to be relative to window box, rather than
12892 text area before checking -- to ensure cursor is redrawn when
12893 exposing window.
12894 Note: This also fixes a similar (older) bug if display margins
12895 are present.
12896
f11aa0b2
KH
128972003-06-06 Kenichi Handa <handa@m17n.org>
12898
12899 * coding.c (encoding_buffer_size): If coding->type is
12900 coding_type_ccl, double magnification on CRLF encoding.
12901
3d143690
JR
129022003-06-06 Jason Rumney <jasonr@gnu.org>
12903
12904 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
12905 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
12906
12907 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
12908 Mac too.
12909
f16205ca
DL
129102003-06-05 Dave Love <fx@gnu.org>
12911
b23c0a83
DL
12912 * strftime.c: Merge changes from gnulib.
12913
f16205ca
DL
12914 * mktime.c (__mktime_internal): Merge changes from gnulib
12915 involving year 69 and dst2.
12916
12917 Changes to merge with gnulib version and be consistent with the
12918 autoconf test:
12919
6793bc63
SM
12920 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
12921 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
12922 [HAVE_LOCALE_H]: Include locale.h.
12923 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
12924
9b87a0bc
KS
129252003-06-05 Kim F. Storm <storm@cua.dk>
12926
12927 * window.c (coordinates_in_window): Convert X and Y to window
12928 relative coordinates inside mode-line and header-line parts.
12929 Convert X and Y to margin area relative coordinates inside left
12930 and right display margin parts.
12931
5a8a15ec
JR
129322003-06-05 Jason Rumney <jasonr@gnu.org>
12933
12934 * w32fns.c (add_system_logical_colors_to_map): New function.
12935 (Fx_open_connection): Use it.
12936
01ed8ff1
SM
129372003-06-04 Stefan Monnier <monnier@cs.yale.edu>
12938
12939 * process.c (allocate_pty): Revert part of the previous patch.
12940 (Faccept_process_output): Simplify.
12941
b427b65d
JR
129422003-06-04 Jason Rumney <jasonr@gnu.org>
12943
12944 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
12945
12946 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
12947 (lispy_mouse_wheel_names): Remove.
12948 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
12949 Always define drag_and_drop_syms.
12950
12951 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
12952 WHEEL_EVENT events.
12953
914a8c47
SM
129542003-06-03 Stefan Monnier <monnier@cs.yale.edu>
12955
01ed8ff1
SM
12956 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
12957
914a8c47
SM
12958 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
12959
adcb132c
JD
129602003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12961
12962 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
12963 menu item label.
12964
be781fa7
RS
129652003-06-03 Richard M. Stallman <rms@gnu.org>
12966
12967 * window.c (Fwindow_edges): Doc fix.
12968 (Fwindow_pixel_edges, Fwindow_inside_edges)
12969 (Fwindow_inside_pixel_edges): New functions.
12970 (syms_of_window): defsubr them.
12971
12972 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
12973 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
12974
914a8c47
SM
129752003-06-02 Stefan Monnier <monnier@cs.yale.edu>
12976
12977 * dispnew.c (Fsit_for): Don't lie about the number of args.
12978
5b07197a
DL
129792003-06-02 Dave Love <fx@gnu.org>
12980
12981 * callproc.c: Use HAVE_FCNTL_H, not USG5.
12982 (syms_of_callproc) <process-environment>: Doc fix.
12983
12984 * doc.c: Use HAVE_FCNTL_H, not USG5.
12985
12986 * xfaces.c (font_rescale_ratio): Fix for K&R.
12987
12988 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
12989
12990 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
12991
12992 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
12993
12994 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
12995 (xg_create_frame_widgets): Use ENCODE_UTF_8.
12996
d7107586 12997 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
12998
12999 * xmenu.c (ENCODE_MENU_STRING): New.
13000 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
13001 Use it.
13002
13003 * coding.h (ENCODE_UTF_8): New.
13004 (Qutf_8): Declare.
13005
13006 * coding.c (Qutf_8): New.
13007 (syms_of_coding): Intern it.
13008
13009 * fns.c: Doc fixes.
13010
7335b336
KH
130112003-06-02 Kenichi Handa <handa@m17n.org>
13012
13013 * buffer.c (Fset_buffer_multibyte): Fix previous change.
13014
914a8c47
SM
130152003-06-01 Stefan Monnier <monnier@cs.yale.edu>
13016
13017 * lread.c (openp): Make sure STR is a string.
13018
9862c135
JR
130192003-06-01 David Ponce <david@dponce.com>
13020
cab27d04 13021 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
13022 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
13023
13024 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
13025 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
13026 (discard_mouse_events): Discard WHEEL_EVENT events too.
13027 (lispy_wheel_names, wheel_syms): New.
13028 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 13029 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 13030 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
13031
13032 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
13033 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
13034 WHEEL_EVENT events.
13035
f984e73e
JPW
130362003-05-31 John Paul Wallington <jpw@gnu.org>
13037
13038 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
13039 timer are in lisp/emacs-lisp.
13040
1efcd78f
KH
130412003-05-31 Kenichi Handa <handa@m17n.org>
13042
458c8af4
KH
13043 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
13044 region when a buffer is changed to unibyte.
13045
1efcd78f
KH
13046 * charset.h (VALID_LEADING_CODE_P): New macro.
13047 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
13048
778e2804
KH
13049 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
13050 is nonzero, accept multibyte form of eight-bit-control chars.
13051 (decode_composition_emacs_mule): Likewise.
13052 (decode_coding_emacs_mule): Likewise.
13053 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
13054 multibyte form of eight-bit-control chars.
13055
13056 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
13057 (Finsert_file_contents): If coding-system-for-read is bound to
13058 Qauto_save_coding, use the coding system emacs-mule with special
13059 setting for recovering a file.
13060 (choose_write_coding_system): On auto saving, use the coding
13061 system emacs-mule with special setting for auto saving.
13062 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
13063
034060e4
KH
130642003-05-30 Kenichi Handa <handa@m17n.org>
13065
13066 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
13067 properly before calling ccl_driver.
13068
778e2804 13069 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 13070
cab27d04 13071 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
13072 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
13073 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
13074
595f5aa5
GM
130752003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
13076
13077 * xfaces.c (realize_default_face): Do not abort if lface is
13078 non-existent - reverts change from 2003-05-19.
13079
103e0180
KH
130802003-05-29 Kenichi Handa <handa@m17n.org>
13081
13082 * coding.c (decode_coding_iso2022): Pay attention to the byte
13083 sequence of CTEXT extended segment, and retain those bytes as is.
13084
130852003-05-28 Kenichi Handa <handa@m17n.org>
13086
cab27d04 13087 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
13088 of CODING_REPLACEMENT_CHARACTER.
13089 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
13090 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
13091 check this flag on encoding.
cab27d04
SM
13092 (encode_coding_sjis_big5):
13093 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
13094 (Fset_terminal_coding_system_internal):
13095 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
13096 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
13097
13098 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
13099 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
13100 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
13101
ff6a3bfb 131022003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 13103
ff6a3bfb
RS
13104 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
13105
13106 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 13107
1963c428
KS
131082003-05-28 Kim F. Storm <storm@cua.dk>
13109
13110 * xdisp.c (expose_window): Fix error in calculation of
13111 window relative coordinates of area to redisplay.
13112
2b5d4601
JR
131132003-05-27 Jason Rumney <jasonr@gnu.org>
13114
13115 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
13116
1c64a4a2
JB
131172003-05-27 David Ponce <david@dponce.com>
13118
13119 Handle W32 mouse wheel events as mouse click events, like in X.
13120
13121 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
13122 MOUSE_WHEEL_EVENT anymore.
13123
13124 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
13125 Scrolling down/up the mouse wheel is respectively mapped to mouse
13126 button 4 and 5.
13127 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
13128 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
13129 WM_MOUSEWHEEL events.
13130
2d031b89
AS
131312003-05-27 Andreas Schwab <schwab@suse.de>
13132
20464fdf
AS
13133 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
13134
2d031b89
AS
13135 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
13136 partially visible line.
13137
13138 * alloc.c (Fgarbage_collect): Fix last change.
13139
97bc76d4
JPW
131402003-05-26 John Paul Wallington <jpw@gnu.org>
13141
13142 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
13143
56613f06
SM
131442003-05-25 Stefan Monnier <monnier@cs.yale.edu>
13145
13146 * window.c (Fset_window_buffer): Add type of `keep_margins'.
13147 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
13148
13149 * window.h (window_box_text_cols): Declare.
13150
13151 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
13152 (x_draw_vertical_border): Remove unused var `f'.
13153
13154 * xfaces.c (build_scalable_font_name): Remove `unused var
13155 pixel_size' warning.
13156
13157 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
13158
13159 * unexelf.c (unexec): Remove `unused var n' warning.
13160
13161 * strftime.c (my_strftime_localtime_r): Remove `defined but
13162 unused' warning.
13163
13164 * process.c (allocate_pty): Remove `unused var stb' and
13165 `cp might be used uninitialized' warnings.
13166
13167 * dispnew.c (mode_line_string): Remove unused var `f'.
13168
13169 * coding.c (find_safe_codings): Remove unused var `i'.
13170
13171 * bytecode.c (Fbyte_code): Remove `unused val' warning.
13172
13173 * buffer.c (Fkill_buffer): Remove unused var `list'.
13174
13175 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
13176
93421a1f
JD
131772003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13178
13179 * frame.c (make_frame): Condition want_fullscreen with
13180 HAVE_WINDOW_SYSTEM.
13181
c4b8aebc
JB
131822003-05-25 Juanma Barranquero <lektu@terra.es>
13183
13184 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
13185 (Fwindow_scroll_bars): Fix typo in docstring.
13186
0416870b
KS
131872003-05-24 Kim F. Storm <storm@cua.dk>
13188
13189 The following changes serve several purposes:
13190
13191 1) Swap the position of fringes and display margins in windows, i.e.
13192 the fringes are now displayed between the margins and the text area
13193 (by default).
13194
13195 2) Allow fringe and scroll bar parameters to be set per-buffer and
13196 per-window (like display margins). Such settings are now stored
13197 in window configurations, preserved when frames are resized, and
9018a88e 13198 copied when windows are split vertically or horizontally.
0416870b
KS
13199 Several bugs related to display margins have been fixed.
13200
13201 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 13202
0416870b
KS
13203 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
13204 rather than FRAME_WIDTH (FRAME_FONT (f)).
13205
13206 5) Introduce a consistent naming of variables, members and macros
13207 depending on whether their value is measured in pixels or in
13208 canonical columns/lines. Pixel dimensions are named *_width and
13209 *_height, while canonical columns/lines are named *_cols and
13210 *_lines. Pixel positions are named *_x and *_y, while column/line
13211 positions are named *_col and *_line.
13212
13213 6) Consolidate more of the X, W32, and MAC gui code by moving
13214 common data into struct frame, and generalize it for the non-gui
13215 case by using suitable defaults.
13216
13217 7) Cleanup and consolidate the macros controlling frame and window
13218 layout into frame.h and window.h, and generalize the use of the
13219 various window_box_* functions (enhanced to handle the new fringe
13220 position and the per-window fringe and scroll bar settings).
13221
13222 * frame.h (struct frame): Rename members height to text_lines,
13223 width to text_cols, window_height to total_lines, window_width to
13224 total_cols, new_height to new_text_lines, new_width to
13225 new_text_cols. All uses changed.
13226 (struct frame): New members which consolidate common members of
13227 x_output, w32_output, and mac_output structures: left_pos,
13228 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
13229 win_gravity, size_hint_flags, border_width, internal_border_width,
13230 line_height, fringe_cols, left_fringe_width, right_fringe_width,
13231 want_fullscreen. All uses changed.
13232 (struct frame): New member column_width contaning the canonical
13233 column width, analogue to line_height. All uses changed.
13234 (struct frame): Rename members scroll_bar_pixel_width to
13235 config_scroll_bar_width, and scroll_bar_cols to
13236 config_scroll_bar_cols. All uses changed.
13237 (struct frame): New member scroll_bar_actual_width which
13238 consolidates and renames the vertical_scroll_bar_extra member of
13239 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 13240 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
13241 from x/w32/macterm.h files. All uses changed. Also change code
13242 which referred to f->output_data...->pixel_height.
cab27d04 13243 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 13244 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 13245 which referred to f->output_data...->pixel_width.
cab27d04 13246 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 13247 Also change code which referred to f->height.
cab27d04 13248 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
13249 Also change code which referred to f->width.
13250 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
13251 to update new_text_lines and new_text_cols members directly.
cab27d04 13252 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 13253 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 13254 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
13255 FRAME_SCROLL_BAR_COLS. All uses changed.
13256 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 13257 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
13258 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
13259 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
13260 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
13261 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
13262 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
13263 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
13264 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
13265 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
13266 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
13267 Unconditionally return line_height member (it now has proper value
13268 also for non-window frames).
13269 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
13270 return new column_width member (rather than the default font width).
13271 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 13272 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
13273 from x/w32/macterm.h files. Unconditionally return corresponding
13274 member of frame structure (they now have proper values also for
13275 non-window frames).
cab27d04 13276 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
13277 Calculate return value from left and right widths.
13278 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
13279 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
13280 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
13281 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
13282 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
13283 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
13284 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 13285 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 13286 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 13287 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 13288 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 13289 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 13290 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 13291 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 13292 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 13293 consolidated from x/mac/w32term.h.
cab27d04 13294 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 13295 consolidated from x/mac/w32term.h.
cab27d04 13296 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 13297 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 13298 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
13299 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
13300
13301 * window.h (struct window): Rename members left to left_col,
13302 top to top_line, height to total_lines, width to total_cols,
13303 left_margin_width to left_margin_cols, right_margin_width to
13304 right_margin_cols, orig_height to orig_total_lines, orig_top to
13305 orig_top_line. All uses changed.
13306 (struct window): New members left_fringe_width, right_fringe_width,
13307 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
13308 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
13309 New macros primarily used to simplify other macros.
13310 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
13311 referred to XINT (w->width).
13312 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
13313 referred to XINT (w->height).
13314 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
13315 referred to XINT (w->width) * canon_x_unit.
13316 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
13317 referred to XINT (w->height) * canon_y_unit.
13318 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
13319 referred to XINT (w->left).
cab27d04 13320 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
13321 all uses and code that referred to XINT (w->left) + XINT (w->width).
13322 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
13323 referred to XINT (w->top).
13324 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
13325 referred to XINT (w->top) + XINT (w->height).
13326 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
13327 referred to XINT (w->left) * canon_x_unit.
13328 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
13329 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
13330 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
13331 referred to XINT (w->top) * canon_y_unit.
13332 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
13333 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
13334 (WINDOW_LEFTMOST_P): New macro.
cab27d04 13335 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 13336 All uses changed.
cab27d04 13337 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 13338 All uses changed.
cab27d04 13339 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
13340 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
13341 Do not exclude left fringe width.
cab27d04 13342 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
13343 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
13344 Do not exclude fringe widths.
13345 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
13346 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
13347 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
13348 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
13349 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
13350 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
13351 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
13352 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
13353 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
13354 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
13355 New macros. Change code which referenced corresponding
13356 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
13357 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
13358 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
13359 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
13360 allow per-window scroll-bar settings.
13361 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
13362 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
13363 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
13364 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
13365 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
13366 FRAME_SCROLL_BAR_WIDTH.
13367 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 13368 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 13369 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 13370 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 13371 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 13372 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 13373 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
13374 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
13375 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
13376 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
13377 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
13378 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 13379 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 13380 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
13381 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
13382 (window_from_coordinates): Update prototype.
13383 (Fset_window_buffer): Update EXFUN.
13384 (set_window_buffer): Update prototype.
9018a88e 13385
0416870b 13386 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 13387 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
13388 changed.
13389 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
13390 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
13391 internal_border_width is now set to 0 for non-window frames.
13392 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
13393 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
13394 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
13395 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
13396 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
13397 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
13398 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
13399 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
13400 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 13401 Move to window.h and renamed [see window.h changes].
0416870b
KS
13402 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
13403 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
13404 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
13405 Use WINDOW_TOTAL_LINES.
0416870b
KS
13406 (frame_update_line_height): Remove prototype.
13407
13408 * buffer.h (struct buffer): Rename members measured in columns:
13409 left_margin_width to left_margin_cols, right_margin_width to
13410 right_margin_cols. All uses changed.
13411 New members left_fringe_width, right_fringe_width,
13412 fringes_outside_margins for per-buffer fringe settings.
13413 New members scroll_bar_width and vertical_scroll_bar_type for
13414 per-buffer scroll bar settings.
13415
13416 * buffer.c (init_buffer_once): Set buffer_defaults and
13417 buffer_local_flags for new buffer-local variables
13418 left_fringe_width, right_fringe_width, fringes_outside_margins,
13419 scroll_bar_width, and vertical_scroll_bar_type.
13420 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
13421 default-* variables for them.
13422
13423 * dispnew.c: Make (many) trivial substitutions for renamed and
13424 new macros in dispextern.h, frame.h and window.h.
13425 (mode_line_string): No need to adjust width for mode lines, as it
13426 is already adjusted by the caller.
13427 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 13428
0416870b
KS
13429 * frame.c: Make (many) trivial substitutions for renamed and
13430 new macros in dispextern.h, frame.h and window.h.
13431 (make_frame): Initialize left_fringe_width, right_fringe_width,
13432 fringe_cols, scroll_bar_actual_width, border_width,
13433 internal_border_width, column_width, line_height, x_pixels_diff,
13434 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
13435 members with values suitable for a non-window frames.
13436
13437 * gtkutil.c: Make (many) trivial substitutions for renamed and
13438 new macros in dispextern.h, frame.h and window.h.
9018a88e 13439
0416870b
KS
13440 * indent.c: Make (few) trivial substitutions for renamed and
13441 new macros in dispextern.h, frame.h and window.h.
13442
13443 * keyboard.c: Make (many) trivial substitutions for renamed and
13444 new macros in dispextern.h, frame.h and window.h.
13445 (make_lispy_event): Use window positions returned from
13446 window_from_coordinates when constructing the lisp event for
13447 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
13448 (incorrect) values locally.
13449 (make_lispy_movement): Use window positions returned from
13450 window_from_coordinates when constructing the lisp event, rather
13451 than calculating (incorrect) values locally.
13452
13453 * scroll.c: Make (some) trivial substitutions for renamed and
13454 new macros in dispextern.h, frame.h and window.h.
13455
13456 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
13457 scroll-bars.
13458
13459 * sysdep.c: Make (few) trivial substitutions for renamed and
13460 new macros in dispextern.h, frame.h and window.h.
13461
13462 * term.c: Make (some) trivial substitutions for renamed and
13463 new macros in dispextern.h, frame.h and window.h.
13464
13465 * widget.c: Make (few) trivial substitutions for renamed and
13466 new macros in dispextern.h, frame.h and window.h.
13467
13468 * window.c: Make (many) trivial substitutions for renamed and
13469 new macros in dispextern.h, frame.h and window.h.
13470 (make_window): Initialize new members
13471 left_margin_cols, right_margin_cols, left_fringe_width,
13472 right_fringe_width, fringes_outside_margins, scroll_bar_width,
13473 and vertical_scroll_bar_type.
cab27d04 13474 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 13475 and per-window fringes and scroll-bars.
0416870b 13476 Fix bug related to incorrectly adjusting coordinates by
9018a88e 13477 frame's internal_border_width (the effect normally negible since
0416870b
KS
13478 the internal_border_width is typically 0 or 1 pixel, but very
13479 noticeable for an internal_border_width of e.g. 25 pixels).
13480 Upon successful return (other than ON_NOTHING), the coordinates
13481 are now always properly converted to window relative for the
13482 given display element.
13483 (window_from_coordinates): Add new parameters wx and wy to
13484 return the window relative x and y position in the returned
13485 window and part. A null arg means, don't return the position.
13486 All callers changed.
13487 (adjust_window_margins): New function which may reduce the width
13488 of the display margins if a window's text area is too small after
13489 resizing or splitting windows.
13490 (size_window): Fix bug that did not account for display margin
13491 widths when checking the minimum width of a window; use
13492 adjust_window_margins.
13493 (set_window_buffer): Call Fset_window_fringes and
13494 Fset_window_scroll_bars to setup per-window elements.
13495 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
13496 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
13497 (e.g. after splitting a window or resizing the frame).
13498 All callers changed.
0416870b
KS
13499 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
13500 (Fsplit_window): Duplicate original window's display margin,
13501 fringe, and scroll-bar settings; then call Fset_window_buffer with
13502 KEEP_MARGINS non-nil. This fixes a bug which caused a split
13503 window to only preserve the display margins in one of the windows.
c4b8aebc 13504 When splitting horizontally, call adjust_window_margins on both
0416870b 13505 windows to ensure that the text area of the new windows is non too
f9711de4 13506 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
13507 width of the split window was less than the width of the display
13508 margins.
cab27d04 13509 (window_box_text_cols): Rename from window_internal_width.
9018a88e 13510 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
13511 Fix bug that caused vertical separator to be subtracted also on
13512 window frames. Fix another bug that did not reduce the returned
13513 value by the columns used for display margins.
13514 (window_scroll_line_based): Fix bug related to scrolling too much
13515 when display margins are present (implicitly fixed by the fix to
13516 window_box_text_cols).
13517 (scroll_left, scroll_right): Fix bug related to scrolling too far
13518 by default when display margins are present (implicitly fixed by
13519 the fix to window_box_text_cols).
13520 (struct saved_window): Rename members left to left_col, top to
13521 top_line, width to total_cols, height to total_lines, orig_top to
13522 orig_top_line, orig_height to orig_total_lines. All uses changed.
13523 New members left_margin_cols, right_margin_cols,
13524 left_fringe_width, right_fringe_width, fringes_outside_margins,
13525 scroll_bar_width, and vertical_scroll_bar_type for saving
13526 per-window display elements.
13527 (Fset_window_configuration): Restore display margins, fringes,
13528 and scroll bar settings. This fixes a bug which caused display
13529 margins to be discarded when saving and restoring a window
13530 configuration.
13531 (save_window_save): Save display margins, fringes, and scroll bar
13532 settings. This fixes a bug which caused display margins to be
13533 discarded when saving and restoring a window configuration.
13534 (Fset_window_margins): Do nothing if display margins are not
13535 really changed. Otherwise, call adjust_window_margins to ensure
13536 the text area doesn't get too narrow. This fixes a bug which
f9711de4 13537 could cause Emacs to trap if setting display margins wider than
0416870b
KS
13538 the width of the window.
13539 (Fset_window_fringes): New defun to allow user to specifically set
13540 this window's fringe widths and position vs. display margins.
cab27d04 13541 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
13542 (Fset_window_scroll_bars): New defun to allow user to specifically
13543 set this window's scroll bar width and position.
13544 (Fwindow_scroll_bars): New defun to return window's actual scroll
13545 bar settings.
13546 (compare_window_configurations): Also compare display margins,
13547 fringes, and scroll bar settings.
13548 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
13549
13550 * xdisp.c: Make (many) trivial substitutions for renamed and
13551 new macros in dispextern.h, frame.h and window.h.
13552 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 13553 and new fringe vs. display margin position. Note that returned
0416870b
KS
13554 value is no longer guaranteed to be a whole multiple of the frame
13555 column width, since per-window fringes may now be any width.
13556 (window_box_left_offset): New function like window_box_left, but
13557 value is relative to left border of window (rather than frame).
13558 (window_box_right_offset): New function like window_box_right,
13559 but value is relative to left border of window.
13560 (window_box_left): Adapt to per-window fringes and scroll bars,
13561 and new fringe vs. display margin position. Simplify by using
13562 WINDOW_LEFT_EDGE_X and window_box_left_offset.
13563 (window_box): Allow null args for unnecessary return values;
13564 change/simplify relevant callers.
13565 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
13566 and new fringe vs. display margin position.
13567 Use window_box_left_offset and window_box_right_offset
0416870b 13568 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
13569 scroll bars, and new fringe vs. display margin position.
13570 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
13571 (draw_fringe_bitmap): Rework to handle per-window fringes and new
13572 fringe vs. display margin position.
13573 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
13574 (redisplay_window): Adapt to per-window scroll bars.
13575 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
13576 bars, and new fringe vs. display margin position.
13577 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 13578 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
13579 bars, and new fringe vs. display margin position. Fix bug which
13580 increased total width of full_width rows by width of scroll bars
13581 although window's total width already includes that.
13582 (x_fix_overlapping_area): Simplify using window_box_left_offset.
13583 (expose_area): Simplify using window_box_left_offset.
13584 (x_draw_vertical_border): Handle per-window scroll bar settings,
13585 mixing windows with left, right and no scroll bars.
13586
13587 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
13588 where it's used in x_list_fonts (for clarity).
13589 (frame_update_line_height): Remove unused function; functionality
13590 is now done directly when setting the default font in x_set_font.
13591
13592 * xfns.c: Make (many) trivial substitutions for renamed and
13593 new macros in dispextern.h, frame.h and window.h.
13594
13595 * xmenu.c: Make (some) trivial substitutions for renamed and
13596 new macros in dispextern.h, frame.h and window.h.
13597
13598 * xterm.h (struct x_output): Move members left_pos, top_pos,
13599 border_width, pixel_height, pixel_width, line_height,
13600 internal_border_width, vertical_scroll_bar_extra,
13601 left_fringe_width, right_fringe_width, fringe_cols,
13602 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
13603 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
13604 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
13605 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
13606 (PIXEL_WIDTH, PIXEL_HEIGHT)
13607 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 13608 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
13609 frame.h and renamed [see frame.h changes].
13610 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
13611 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 13612 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 13613 and renamed [see frame.h changes].
9018a88e 13614
0416870b
KS
13615 * xterm.c: Make (several) trivial substitutions for renamed and
13616 new macros in dispextern.h, frame.h and window.h.
cab27d04 13617 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
13618 (scroll_run): Adapt to new fringe position.
13619 (glyph_rect): Use window coordinates returned from
13620 window_from_coordinates rather than frame_to_window_pixel_xy.
13621 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
13622 scroll-bars.
13623 (handle_one_xevent): Simplify a USE_GTK conditional.
13624 (x_clip_to_row): Remove superfluous whole_line_p arg and code
13625 (fringes are now inside margins, i.e. always in the clipping area).
13626 All callers changed.
13627 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
13628 directly, then call compute_fringe_widths. Don't call
13629 frame_update_line_height.
13630
13631 * w32term.h (struct w32_output): Move members left_pos, top_pos,
13632 border_width, pixel_height, pixel_width, line_height,
13633 internal_border_width, vertical_scroll_bar_extra,
13634 left_fringe_width, right_fringe_width, fringe_cols,
13635 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
13636 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
13637 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
13638 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
13639 (PIXEL_WIDTH, PIXEL_HEIGHT)
13640 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 13641 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
13642 frame.h and renamed [see frame.h changes].
13643 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
13644 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 13645 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 13646 and renamed [see frame.h changes].
9018a88e 13647
0416870b
KS
13648 * w32term.c: Make (several) trivial substitutions for renamed and
13649 new macros in dispextern.h, frame.h and window.h.
cab27d04 13650 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
13651 (glyph_rect): Use window coordinates returned from
13652 window_from_coordinates rather than frame_to_window_pixel_xy.
13653 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
13654 scroll-bars.
13655 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
13656 (fringes are now inside margins, i.e. always in the clipping area).
13657 All callers changed.
13658 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
13659 directly, then call compute_fringe_widths. Don't call
13660 frame_update_line_height.
13661
13662 * w32console.c: Make (few) trivial substitutions for renamed and
13663 new macros in dispextern.h, frame.h and window.h.
13664
13665 * w32fns.c: Make (many) trivial substitutions for renamed and
13666 new macros in dispextern.h, frame.h and window.h.
13667
13668 * w32menu.c: Make (few) trivial substitutions for renamed and
13669 new macros in dispextern.h, frame.h and window.h.
13670
13671 * macterm.h (struct mac_output): Move members left_pos, top_pos,
13672 border_width, pixel_height, pixel_width, line_height,
13673 internal_border_width, vertical_scroll_bar_extra,
13674 left_fringe_width, right_fringe_width, fringe_cols,
13675 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
13676 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
13677 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
13678 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
13679 (PIXEL_WIDTH, PIXEL_HEIGHT)
13680 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 13681 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
13682 frame.h and renamed [see frame.h changes].
13683 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
13684 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 13685 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 13686 and renamed [see frame.h changes].
9018a88e 13687
0416870b
KS
13688 * macterm.c: Make (several) trivial substitutions for renamed and
13689 new macros in dispextern.h, frame.h and window.h.
cab27d04 13690 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
13691 (glyph_rect): Use window coordinates returned from
13692 window_from_coordinates rather than frame_to_window_pixel_xy.
13693 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
13694 scroll-bars.
13695 (x_clip_to_row): Remove superfluous whole_line_p arg and code
13696 (fringes are now inside margins, i.e. always in the clipping area).
13697 All callers changed.
13698 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
13699 directly, then call compute_fringe_widths. Don't call
13700 frame_update_line_height.
13701
13702 * macfns.c: Make (several) trivial substitutions for renamed and
13703 new macros in dispextern.h, frame.h and window.h.
9018a88e 13704 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
13705
13706 * macmenu.c: Make (few) trivial substitutions for renamed and
13707 new macros in dispextern.h, frame.h and window.h.
13708
13709 * msdos.h (struct x_output): Remove members left_pos, top_pos,
13710 and line_height, and use corresponding new members in struct
13711 frame. All uses changed.
13712 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
13713 superseeded by corresponding macros in frame.h.
13714
13715 * msdos.c: Make (several) trivial substitutions for renamed and
13716 new macros in dispextern.h, frame.h and window.h.
13717 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 13718 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
13719 (internal_terminal_init): No need to initialize line_height here;
13720 it now defaults to 1.
13721
9018a88e
SM
137222003-05-24 Stefan Monnier <monnier@cs.yale.edu>
13723
13724 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
13725 dropping `down' events.
13726
016bd3c0
AS
137272003-05-24 Andreas Schwab <schwab@suse.de>
13728
13729 * coding.c (find_safe_codings): Fix last change.
13730
4dacadcc
TTN
137312003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
13732
13733 * xfns.c (x_window): Fix typo from 2003-05-21 change.
13734
319830ce
SM
137352003-05-23 Stefan Monnier <monnier@cs.yale.edu>
13736
9018a88e
SM
13737 * xdisp.c (display_mode_element): Increase max depth.
13738 Simplify the error handling code. Use a different error string
13739 for the case where we hit the depth limit.
13740
319830ce
SM
13741 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
13742
13743 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
13744
137452003-05-21 Stefan Monnier <monnier@cs.yale.edu>
13746
13747 * intervals.c (get_local_map): Don't get char-property of previous
13748 point any more: get_pos_property already does it and better.
13749
c67de8ba
DL
137502003-05-21 Dave Love <fx@gnu.org>
13751
13752 [Merged from unicode branch.]
13753
13754 * xfns.c (x_window, x_window): Use use_xim.
13755
13756 * xterm.c (use_xim): Initialize.
13757 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
13758 (x_term_init): Maybe set use_xim.
13759
13760 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
13761
edd3ff1d
JR
137622003-05-21 Jason Rumney <jasonr@gnu.org>
13763
13764 * unexw32.c (_start): Remove _fmode initialization.
13765
13766 * emacs.c (main) [WINDOWSNT]: Move it here.
13767
463f55ee
DL
137682003-05-20 Dave Love <fx@gnu.org>
13769
13770 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
13771
af253914
RS
137722003-05-19 Richard M. Stallman <rms@gnu.org>
13773
13774 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
13775 as value for QCfont attribute.
13776 (realize_default_face): lface should already exist; crash if not.
13777 Specify 0 for FORCE_P when calling set_lface_from_font_name.
13778
13779 * frame.c (Fignore_event): Doc fix.
13780
1d211019
KH
137812003-05-19 Kenichi Handa <handa@m17n.org>
13782
13783 * coding.c (decode_coding_string): Handle post-read-conversion
13784 even if the coding doesn't require decoding.
13785
4dd68254
RS
137862003-05-18 Richard M. Stallman <rms@gnu.org>
13787
13788 * callproc.c (Fcall_process_region): Doc fix.
13789
14d87dc9
SM
137902003-05-17 Stefan Monnier <monnier@cs.yale.edu>
13791
deca5d96
SM
13792 * lread.c (Fload): Print a message if package is obsolete.
13793
14d87dc9
SM
13794 * window.c (Fselect_window): Add optional `norecord' arg.
13795 (select_window_1): Fold into Fselect_window.
13796 (select_window_norecord): New function.
13797 (temp_output_buffer_show): Use it. Preserve current buffer.
13798
13799 * window.h (Fselect_window): Update declaration.
13800
13801 * window.c (delete_window, Fother_window, Fset_window_configuration):
13802 * minibuf.c (read_minibuf):
13803 * macterm.c (x_new_focus_frame):
13804 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
13805 * callint.c (Fcall_interactively):
13806 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
13807
13808 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
13809
78f52183
DK
138102003-05-17 David Kastrup <dak@gnu.org>
13811
13812 * process.c (read_process_output): Back out change from 2003-03-09.
13813
14d87dc9
SM
138142003-05-17 Stefan Monnier <monnier@cs.yale.edu>
13815
13816 * editfns.c (get_pos_property): Don't assume that `object' = nil.
13817
13818 * textprop.c (text_property_stickiness): New arg `buffer'.
13819
13820 * intervals.h (text_property_stickiness): New arg `buffer'.
13821 (get_pos_property): Declare.
13822
13823 * intervals.c (get_local_map): Use get_pos_property, to obey
13824 stickiness and empty overlays.
13825 (create_root_interval, graft_intervals_into_buffer): Use BEG.
13826 (merge_properties, intervals_equal, merge_properties_sticky):
13827 Use XCAR, XCDR.
13828 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
13829
1fd1cc2f
RS
138302003-05-17 Richard M. Stallman <rms@gnu.org>
13831
4f9f637a
RS
13832 * minibuf.c (read_minibuf): If buffer is empty, record the default
13833 in the history.
13834 (Fminibuffer_complete_word): When deleting the overlap, take account
13835 of its real position.
13836
13837 * fns.c (map_char_table): Fix previous change.
13838
1fd1cc2f
RS
13839 * syntax.c (find_defun_start):
13840 When open_paren_in_column_0_is_defun_start,
13841 return beginning of buffer.
13842
13843 * lisp.h (map_char_table): Declare added arg.
13844
13845 * fns.c (map_char_table): New arg TABLE gets the master table.
13846 All calls changed.
13847 Process default and inheritance, resorting to Faref if necessary.
13848
13849 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
13850 (Faccessible_keymaps): Pass new arg to map_char_table.
13851
13852 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
13853
13854 * casetab.c (set_case_table): Pass new arg to map_char_table.
13855
13856 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
13857
13858 * lisp.h (specbinding_func): New typedef.
13859 (struct specbinding): Use specbinding_func, to put the `volatile'
13860 in the right place.
13861
13862 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
13863 to avoid GCC warning.
14d87dc9 13864
b6189c3b 138652003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 13866
14d87dc9 13867 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 13868
35fb885d
SM
138692003-05-15 Stefan Monnier <monnier@cs.yale.edu>
13870
13871 * keyboard.c (apply_modifiers): Don't fill the other cache.
13872
9a274fbd
SM
138732003-05-14 Stefan Monnier <monnier@cs.yale.edu>
13874
c55b5fad
SM
13875 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
13876
9a274fbd
SM
13877 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
13878 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
13879 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
13880 (Fset_window_configuration, Fcurrent_window_configuration)
13881 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
13882 (Fpos_visible_in_window_p, mark_window_cursors_off)
13883 (window_internal_height, window_internal_width, Frecenter)
13884 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
13885 (replace_buffer_in_all_windows, init_window_once, init_window)
13886 (syms_of_window, keys_of_window): Move from lisp.h.
13887 * lisp.h: Move window.c declarations to window.h.
13888
13889 * bytecode.c: Include window.h.
13890 * emacs.c: Include window.h.
13891
14d87dc9 13892 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
13893 (keyremap): Add `parent' field.
13894 (keyremap_step): Use it. Remove `parent' argument.
13895 (read_key_sequence): Setup and use the new `parent' field.
13896
fd93e331
SM
138972003-05-11 Stefan Monnier <monnier@cs.yale.edu>
13898
13899 * keyboard.c (adjust_point_for_property): Ensure termination.
13900
1c4001a1
SM
139012003-05-10 Stefan Monnier <monnier@cs.yale.edu>
13902
13903 * keyboard.c (follow_key): Remove dead variable `did_meta'.
13904 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
13905 duplicated handling of function-key-map and key-translation-map
13906 in read_key_sequence.
13907 (read_key_sequence): Use them.
13908
13909 * keyboard.c (adjust_point_for_property): Try harder to move point
13910 to the non-sticky end of an invisible property.
13911
13912 * xdisp.c (single_display_prop_intangible_p): Make `space' display
13913 property intangible as well.
13914
780379b1
AS
139152003-05-10 Andreas Schwab <schwab@suse.de>
13916
13917 * xmenu.c (single_menu_item): Change last parameter to void* to
13918 avoid warning.
13919
ca2de342
RS
139202003-05-09 Richard M. Stallman <rms@gnu.org>
13921
13922 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
13923 Bind Qinhibit_modification_hooks to t so there will be no GC.
13924 Rename local `tem' to `save_deactivate_mark'.
13925
13926 * eval.c (specpdl_ptr): Declare volatile.
13927 (unbind_to): Copy the whole binding and decrement specpdl_ptr
13928 before doing the work of unbinding it.
13929
13930 * lisp.h (struct specbinding): Declare elements volatile.
13931 (specpdl_ptr): Declare volatile.
13932
13933 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
13934
13935 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
13936 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
13937
347003be
DL
139382003-05-08 Dave Love <fx@gnu.org>
13939
13940 * coding.c (Vlast_coding_system_used): Doc fix.
13941
5adcec23
JR
139422003-05-07 Jason Rumney <jasonr@gnu.org>
13943
13944 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
13945 when system does not support them.
13946
5fe3b8a4
SM
139472003-05-05 Stefan Monnier <monnier@cs.yale.edu>
13948
13949 * fileio.c (Qwrite_region_annotate_functions): New var.
13950 (build_annotations): Use it to process the global part of the hook.
13951 (syms_of_fileio): Init and staticpro it.
13952
13953 * keyboard.c (safe_run_hooks_error): Display a message instead of
13954 silently ignoring the error.
13955
139562003-05-03 Stefan Monnier <monnier@cs.yale.edu>
13957
13958 * keyboard.c (input_available_signal): Mark static.
13959 (menu_bar_items): Use map_keymap.
13960 (menu_bar_one_keymap): Remove.
13961 (menu_bar_item): Adjust arglist (for use in map_keymap).
13962 Properly hide a second binding when not both are keymaps.
13963
13964 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
13965 (single_keymap_panes): Use it and map_keymap.
13966 (single_menu_item): Use skp as well.
13967
13968 * keymap.h (map_keymap_function_t): New type.
13969 (map_keymap): Declare.
13970
13971 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
13972 (map_keymap_call, Fmap_keymap): New functions.
13973 (syms_of_keymap): Defsubr map-keymap.
13974
4b1b4443
JD
139752003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13976
13977 * gtkutil.c (create_dialog, make_widget_for_menu_item)
13978 (make_menu_item, create_menus, xg_update_menu_item): Don't call
13979 ..._with_mnemonic functions for menu items.
13980
1f816871
KH
139812003-05-01 Kenichi Handa <handa@m17n.org>
13982
13983 * coding.c (coding_system_accept_latin_extra_p): Delete this
13984 function.
13985 (find_safe_codings): Pay attention to
13986 the property tranlsation-table-for-encode of each codings.
13987 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
13988
5ed6ba5b
SM
139892003-05-01 Stefan Monnier <monnier@cs.yale.edu>
13990
13991 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
13992
32c06229
SM
139932003-04-30 Stefan Monnier <monnier@cs.yale.edu>
13994
13995 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
13996
13997 * lisp.h (CHECK): Wrap args in parenthesis.
13998 (specbind): Fix doc: symbol = Qnil is not supported any more.
13999
14000 * bytecode.c (Fbyte_code) <unwind-protect>:
14001 Use Fprogn rather than 0 and Qnil.
14002
14003 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
14004 `double', and `triple' modifiers as well.
14005
ed3c3314
RS
140062003-04-30 Richard M. Stallman <rms@gnu.org>
14007
14008 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
14009
14010 * alloc.c (abort_on_gc): New variable.
14011 (Fgarbage_collect): Abort if abort_on_gc is set.
14012
14013 * lisp.h (abort_on_gc): Add decl.
14014
14015 * eval.c (Fsignal): Clear abort_on_gc.
14016
14017 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 14018 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
14019
14020 * xdisp.c (move_it_vertically_backward): Do the final big else
14021 even if nlines is 0.
14022
14023 * xdisp.c (redisplay_internal): Finish the per-frame loop
14024 even if redisplay is suspended by input.
14025
0b325c12
AC
140262003-04-24 Andrew Choi <akochoi@shaw.ca>
14027
14028 * macterm.c (x_list_fonts): Return all fonts that match if
14029 maxnames = -1.
14030
4e837cd0
KH
140312003-04-25 Kenichi Handa <handa@m17n.org>
14032
14033 * syntax.c (skip_chars): Fix previous change.
14034
9af7511a
KH
140352003-04-24 Kenichi Handa <handa@m17n.org>
14036
14037 * syntax.c (skip_chars): Make the code faster by using the common
14038 technique of *p, *stop, and *endp.
14039
e3b2c21f
JD
140402003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14041
14042 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 14043 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
14044 being updated.
14045
32c06229
SM
140462003-04-19 Stefan Monnier <monnier@cs.yale.edu>
14047
14048 * eval.c (Fapply): Undo last change and add a comment about why.
14049
c6464167
MB
140502003-04-18 Miles Bader <miles@gnu.org>
14051
14052 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
14053 pickier PARSE_MULTIBYTE_SEQ.
14054
e509f168
SM
140552003-04-17 Stefan Monnier <monnier@cs.yale.edu>
14056
14057 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
14058 Use XCDR, XCAR, CONSP.
14059 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
14060 (Fapply): Remove unnecessary GCPRO.
14061
14062 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
14063
14064 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
14065
14066 * buffer.h: Don't hardcode BEG==1.
14067
14068 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
14069
5ceea398
RS
140702003-04-16 Richard M. Stallman <rms@gnu.org>
14071
14072 * xdisp.c (try_window, try_window_reusing_current_matrix):
14073 When at end of window, set window_end_pos to Z-ZV.
14074
14075 * buffer.c (Foverlay_recenter): Doc fix.
14076
e509f168
SM
140772003-04-14 Stefan Monnier <monnier@cs.yale.edu>
14078
14079 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
14080
d243e605
AC
140812003-04-14 Andrew Choi <akochoi@shaw.ca>
14082
14083 * macterm.c (mac_check_for_quit_char): Don't check more often than
14084 once a second.
14085
6901b111
SM
140862003-04-11 Stefan Monnier <monnier@cs.yale.edu>
14087
14088 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
14089 specially, so that they can't hide an implicit switch-frame event.
14090 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
14091 (head_table): Use switch-frame as event_kind for select-window.
14092 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
14093
14094 * editfns.c (Fformat): Lisp_Object/int mixup.
14095 (format2): Remove unused var numargs.
14096
e301806f 140972003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 14098
6901b111 14099 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
14100 (Qafter_insert_file_set_coding): New variable.
14101 (syms_of_fileio): Initialize and staticpro it. Delete declaration
14102 for after-insert-file-adjust-coding-function.
14103 (Finsert_file_contents): Call Qafter_insert_file_set_coding
14104 instead of Vafter_insert_file_adjust_coding_function.
14105
38914424
KH
141062003-04-11 Kenichi Handa <handa@m17n.org>
14107
14108 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
14109
14110 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
14111 string. Callers changed.
14112
141132003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 14114
6901b111 14115 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 14116 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
14117 (Finsert_file_contents):
14118 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
14119 decode-format.
14120
f979dc05
JD
141212003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14122
14123 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
14124 get GtkAdjustment as widget now is a GtkRange.
14125
14126 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
14127 GtkRange to avoid memory leak.
14128
f8c6b4c2 141292003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 14130
50ebc53d
KH
14131 * xfaces.c (Vface_font_rescale_alist): New variable.
14132 (struct font_name): New member rescale_ratio.
14133 (font_rescale_ratio): New function.
6901b111 14134 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
14135 (better_font_p): On comparing point sized, pay attention to
14136 recale_ratio member of fonts.
14137 (build_scalable_font_name): Reflect font->rescale_ratio in the
14138 font name.
6901b111 14139 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 14140
cb98871c
KH
14141 * lread.c (read1): Before calling index, check if the 2nd
14142 arguemnt is in ASCII range.
14143
4773b8ca
RS
141442003-04-08 Richard M. Stallman <rms@gnu.org>
14145
b0ada147
RS
14146 * fileio.c (Ffile_symlink_p): Doc fix.
14147
14148 * editfns.c (Fformat): Translate positions of text properties
14149 in the format string to apply them to the result.
14150
4773b8ca
RS
14151 * fileio.c (Finsert_file_contents): Doc fix.
14152 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
14153
141542003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 14155
4773b8ca
RS
14156 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
14157
e8f25745 141582003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 14159
e8f25745
ST
14160 * mac.c (init_mac_osx_environment): Switch libexec and bin so
14161 that self-contained application finds libexec files.
14162
f8c6b4c2 141632003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 14164
6901b111
SM
14165 * coding.c (code_convert_region_unwind):
14166 Set Vlast_coding_system_used to the argument.
2310d84c
KH
14167 (code_convert_region): If post-read-conversion function changed
14168 the value of last-coding-sytem, keep the new value in
14169 coding->symbol so that it won't be overridden.
14170 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
14171 (coding_system_accept_latin_extra_p): New function.
14172 (find_safe_codings): Pay attention to characters registered in
14173 latin-extra-code-table.
2310d84c 14174
39c9a034
TTN
141752003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
14176
14177 * Makefile.in (md5.o): Add missing dependency info.
14178
eb67c5d6
RS
141792003-04-06 Richard M. Stallman <rms@gnu.org>
14180
14181 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
14182
14183 * marker.c (verify_bytepos): New function.
14184
14185 * intervals.c (set_intervals_multibyte_1): When becoming
14186 multibyte, adjust right and left child sizes to a whole set of
14187 characters. If an interval gets zero total-length, delete it.
14188 If an interval consists of just its children, delete one of them.
14189
14190 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
14191 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 14192
52eb0373 14193 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
eb67c5d6
RS
14194 All calls deleted.
14195 (lisp_malloc): Do the work here directly.
14196
b1f81fc5
JB
141972003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
14198
14199 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
14200 char tables.
14201
142022003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
14203
14204 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
14205 destructively change "%S" to "%s".
14206
774666fb
MB
142072003-04-03 Miles Bader <miles@gnu.org>
14208
14209 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
14210 always set.
14211
19c37f01
DL
142122003-04-01 Dave Love <fx@gnu.org>
14213
14214 * xfns.c (xpm_lookup_color): Grok "opaque".
14215
2f4b24c3
AC
142162003-03-31 Andrew Choi <akochoi@shaw.ca>
14217
14218 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
14219 parent window ID.
14220
14221 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
14222
14223 * macterm.h (struct mac_output): Define x_pixels_diff and
14224 y_pixels_diff.
b1f81fc5 14225
9443fcf6
JB
142262003-03-31 Juanma Barranquero <lektu@terra.es>
14227
14228 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
14229 blockinput.h and files included from it.
14230
e072891b
KS
142312003-03-31 Kim F. Storm <storm@cua.dk>
14232
14233 The following changes consolidates the common code related to
14234 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
14235 files into frame.c.
9443fcf6 14236
e072891b
KS
14237 * frame.c: Include blockinput.h.
14238 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
14239 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
14240 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
14241 related vars here.
14242 (struct frame_parm_table, frame_parms): New table for describing
14243 frame parameters and their associated Q-variable.
14244 The order of the parameters corresponds to the sequence of the
14245 frame_parm_handlers table in redisplay_interface.
14246 (x_fullscreen_move, x_set_frame_parameters)
14247 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
14248 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
14249 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
14250 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
14251 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
14252 Generic functions for processing of frame parameters.
14253 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
14254 (display_x_get_resource, x_get_resource_string): Functions for
14255 generic access to X resources.
14256 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
14257 (x_default_parameter, Fx_parse_geometry): Functions for generic
14258 access to frame parameters.
6901b111
SM
14259 (x_figure_window_size): Generic calculation of frame size.
14260 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
14261 (syms_of_frame): Intern and staticpro frame parameter variables.
14262 Defvar_lisp Vx_resource_class and Vx_resource_name here.
14263 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 14264
e072891b
KS
14265 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
14266 parameter related vars defined in frame.c.
14267 (EMACS_CLASS): Define here.
14268 (enum FULLSCREEN_*): Define here.
14269 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
14270 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
14271 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
14272 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
14273 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
14274 (x_set_visibility, x_set_autoraise, x_set_autolower)
14275 (x_set_unsplittable, x_set_vertical_scroll_bars)
14276 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
14277 (x_figure_window_size): Add prototypes.
14278
14279 * dispextern.h (frame_parm_handler): New typedef.
14280 (struct redisplay_interface): New member frame_parm_handlers.
14281 (enum resource_types): Move declaration here.
14282 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
14283 (x_default_parameter): Add prototypes.
14284
14285 * window.c: Remove extern decl for frame parameter vars.
14286 (change_window_heights): New generic function;
14287 replaces x_change_window_heights. All users changed.
14288
14289 * window.h (change_window_heights): Add prototype.
14290
14291 * xfaces.c: Remove extern decl for frame parameter vars.
14292
14293 * xterm.h (EMACS_CLASS): Remove. Use generic define.
14294 (struct w32_display_info): Fix type of xrdb member.
14295 (enum FULLSCREEN_*): Remove.
14296 Remove prototypes for generic functions (in frame.h).
14297
14298 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
14299 parameters now defined in frame.h and frame.c.
f63fd14e 14300 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
14301 (enum x_frame_parms): Remove (bogus, unused enum).
14302 (check_x_display_info): Make non-static (for frame.c).
14303 (struct x_frame_parm_table, x_frame_parms): Remove.
14304 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
14305 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
14306 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
14307 (x_change_window_heights, x_set_autoraise, x_set_autolower)
14308 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
14309 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
14310 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
14311 Remove. Use generic functions instead.
14312 (enum resource_types): Remove.
14313 (x_set_scroll_bar_default_width): New global function (for frame.c).
14314 (Fx_create_frame): Depend on x_figure_window_size to add space for
14315 toolbar and setup size_hint_flags.
14316 (x_frame_parm_handlers): New table for redisplay_interface.
14317 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 14318
e072891b 14319 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 14320 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
14321 (x_redisplay_interface): Add x_frame_parm_handlers member.
14322
14323 * w32gui.h (XrmDatabase): New (dummy) typedef.
14324
14325 * w32term.h (EMACS_CLASS): Remove. Use generic define.
14326 (struct w32_display_info): Fix type of xrdb member.
14327 (enum FULLSCREEN_*): Remove.
14328 (x_fullscreen_adjust): Remove prototype.
14329
14330 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
14331 parameters now defined in frame.h and frame.c.
f63fd14e 14332 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
14333 (enum x_frame_parms): Remove (bogus, unused enum).
14334 (check_x_display_info): Make non-static (for frame.c).
14335 (struct x_frame_parm_table, x_frame_parms): Remove.
14336 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
14337 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
14338 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
14339 (x_change_window_heights, x_set_autoraise, x_set_autolower)
14340 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
14341 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
14342 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
14343 Remove. Use generic functions instead.
14344 (enum resource_types): Remove.
14345 (x_set_scroll_bar_default_width): New global function (for frame.c).
14346 (Fx_create_frame): Depend on x_figure_window_size to add space for
14347 toolbar and setup size_hint_flags.
14348 (w32_frame_parm_handlers): New table for redisplay_interface.
14349 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 14350
e072891b 14351 * w32term.c: Remove unnecessary extern declarations.
52eb0373 14352 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
14353 (x_redisplay_interface): Add w32_frame_parm_handlers member.
14354
14355 * w32reg.c (x_get_string_resource): Use XrmDatabase.
14356
14357 * macgui.h (XrmDatabase): New (dummy) typedef.
14358
14359 * macterm.h (EMACS_CLASS): Remove.
14360 (struct mac_display_info): Add xrdb member.
14361 (struct mac_output): Add want_fullscreen member.
14362
14363 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
14364 parameters now defined in frame.h and frame.c.
f63fd14e 14365 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
14366 (check_x_display_info): Make non-static (for frame.c).
14367 (struct x_frame_parm_table, x_frame_parms): Remove.
14368 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
14369 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
14370 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
14371 (x_change_window_heights, x_set_autoraise, x_set_autolower)
14372 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
14373 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
14374 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
14375 Remove. Use generic functions instead.
14376 (enum resource_types): Remove.
14377 (x_set_scroll_bar_default_width): New global function (for frame.c).
14378 (mac_frame_parm_handlers): New table for redisplay_interface.
14379 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 14380
e072891b
KS
14381 * macterm.c: Remove unnecessary extern declarations.
14382 (x_redisplay_interface): Add mac_frame_parm_handlers member.
14383
3e6a560b
KS
14384 * Makefile.in (frame.o): Add dependency on blockinput.h and files
14385 included from it (atimer.h and systime.h).
14386
7b7b454e
AS
143872003-03-30 Andreas Schwab <schwab@suse.de>
14388
14389 * xdisp.c (x_insert_glyphs): Fix swapped width and height
14390 parameters for shift_glyphs_for_insert.
14391
14392 * macterm.c (x_redisplay_interface): Add missing entry for
14393 draw_vertical_window_border.
14394
beb402de
KG
143952003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
14396
14397 * fileio.c (Fexpand_file_name): In the no-handler case, after
14398 expanding, look again for a handler and invoke it. This is needed
14399 for filenames like "/foo/../user@host:/bar/../baz" -- the first
14400 expansion produces "/user@host:/bar/../baz" which needs to be
14401 expanded again for the finame result "/user@host:/baz".
14402
b676f356
JD
144032003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14404
14405 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
14406 of area to be redrawn for better performance.
14407
3c671a56
SM
144082003-03-28 Stefan Monnier <monnier@cs.yale.edu>
14409
14410 * xterm.c (take_vertical_position_into_account): Remove.
14411 (xt_action_hook): Call set_vertical_scroll_bar if needed.
14412 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
14413 (xm_scroll_callback, x_create_toolkit_scroll_bar)
14414 (x_set_toolkit_scroll_bar_thumb): Simplify.
14415 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
14416 (XTread_socket): Remove unused var.
14417 (x_make_frame_invisible): Replace goto with else.
14418
14419 * xdisp.c (set_vertical_scroll_bar): New fun.
14420 (redisplay_window): Use it.
14421
84f2e615
RS
144222003-03-26 Richard M. Stallman <rms@gnu.org>
14423
14424 * xdisp.c (update_tool_bar): Recompute tool bar if
14425 update_mode_lines is set. Set w->update_mode_line
14426 only if the tool bar contents actually change.
14427 (update_menu_bar): Undo previous change.
14428
70b6104c
JD
144292003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14430
5fd6f727
JD
14431 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
14432 (xg_frame_set_char_size): Calculate scroll bar width before frame
14433 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
14434 (xg_separator_p): Check for all documented separator types.
14435 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
14436 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
14437
70b6104c
JD
14438 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
14439 so tool bar gets updated.
14440
d9b36d19
SM
144412003-03-26 Stefan Monnier <monnier@cs.yale.edu>
14442
14443 * data.c (store_symval_forwarding): Re-instate part of the code
14444 that was deleted with too much enthusiasm.
14445
144462003-03-25 Stefan Monnier <monnier@cs.yale.edu>
14447
14448 * data.c (store_symval_forwarding): Delete special read-only
14449 hack for type == -1, since we now use ->constant instead.
14450 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
14451
14452 * buffer.c (overlays_in): Declare static.
14453 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
14454 `constant' field rather than the variable's `type' field.
14455
365fa1b3
AC
144562003-03-24 Andrew Choi <akochoi@shaw.ca>
14457
14458 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
14459
14460 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
14461
14462 * fns.c [MAC_OSX]: Do not redefine vector.
14463
14464 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
14465
14466 * macgui.h: Remove definition of No_Cursor.
14467
d9b36d19 14468 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
14469
14470 * xdisp.c: Define No_Cursor.
14471 (x_write_glyphs, notice_overwritten_cursor)
14472 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
14473 (note_mouse_highlight): Remove Mac-specific code.
14474 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 14475
c0bcce6f
JPW
144762003-03-24 John Paul Wallington <jpw@gnu.org>
14477
14478 * xdisp.c (redisplay_window): If mini window's buffer is not
14479 empty, then redisplay it like other windows.
14480
a526b96c
KS
144812003-03-23 Kim F. Storm <storm@cua.dk>
14482
14483 * w32term.c (w32_draw_window_cursor): Fix last change.
14484
37ab321e
KH
144852003-03-23 Kenichi Handa <handa@m17n.org>
14486
a526b96c
KS
14487 * alloc.c (make_string_from_bytes, make_specified_string):
14488 Add `const' for the arg CONTENTS.
37ab321e
KH
14489
14490 * lisp.h (make_string_from_bytes, make_specified_string):
14491 Prototypes adjusted.
14492
7863d625
JD
144932003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14494
a526b96c 14495 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 14496
7863d625
JD
14497 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
14498 (XG_SB_RANGE): New define.
14499
14500 * gtkutil.c (xg_fixed_handle_expose): New function.
14501 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
14502 expose events.
14503 (xg_update_scrollbar_pos): Take two more arguments, left and width
14504 of scroll bar including borders.
14505 Clear left and right part outside scroll bar separately as some
14506 themes have bars that are not an even number of pixels.
d9b36d19 14507 Don't set reallocate_redraws, don't call
7863d625
JD
14508 gdk_window_process_all_updates.
14509 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
14510 so no need to change it. Calculate size and value with XG_SB_RANGE.
14511
d9b36d19
SM
14512 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
14513 Pass left and width of scroll bar including borders to
7863d625
JD
14514 xg_update_scrollbar_pos.
14515
af0ad939
TTN
145162003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
14517
14518 * Makefile.in: Make sure space precedes end-of-line backslashes.
14519
b22139fd
KS
145202003-03-22 Kim F. Storm <storm@cua.dk>
14521
14522 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
14523 Add generic versions here. Remove system specific versions
14524 defined elsewhere.
14525
14526 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
14527 Add prototypes.
14528
6e6410cf
KS
14529 * xterm.h (STORE_NATIVE_RECT): New macro.
14530
5c9cc435
KS
145312003-03-21 Kim F. Storm <storm@cua.dk>
14532
00c64fab
SM
14533 * xdisp.c (get_glyph_string_clip_rect):
14534 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
14535
14536 * dispextern.h (struct redisplay_interface): Add active_p
14537 argument to draw_window_cursor member. All uses changed.
14538
acd37560
KS
145392003-03-21 Kim F. Storm <storm@cua.dk>
14540
14541 The following changes consolidate code related to writing and
14542 inserting glyphs, exposing frame, the tool bar, the mouse face,
14543 the output cursor, and help echo from xterm.c, w32term.c and
14544 macterm.c into xdisp.c. It also generalizes the use of the
14545 window_part enum instead of using numeric values throughout.
af0ad939 14546
acd37560
KS
14547 * xdisp.c: Consolidate gui-independent code here.
14548 Include keymap.h.
14549 (Qhelp_echo): Import.
14550 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
14551 (help_echo_string, help_echo_window, help_echo_object)
14552 (previous_help_echo_string, help_echo_pos): Declare here.
14553 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
14554 (estimate_mode_line_height): Define here. Handle windowing
14555 systems directly (without using estimate_mode_line_height_hook).
14556 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
14557 (update_window_cursor, update_cursor_in_window_tree)
14558 (fast_find_position, fast_find_string_pos)
14559 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
14560 (expose_area, expose_line, expose_overlaps, expose_window)
14561 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
14562 declared static as they are only used locally in xdisp.c.
14563 (draw_glyphs): Rename from x_draw_glyphs and make static.
14564 (tool_bar_item_info, notice_overwritten_cursor): Make static.
14565 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
14566 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 14567 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
14568 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
14569 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
14570 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
14571 (note_mouse_highlight, x_clear_window_mouse_face)
14572 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
14573 (x_intersect_rectangles): New generic functions for use by xdisp.c
14574 and GUI front-ends.
14575 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
14576 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
14577
14578 * dispextern.h (Display_Info): Generic typedef for *_display_info.
14579 (NativeRectangle): Generic typedef for rectangle type.
14580 (enum window_part): Move here from window.c.
14581 (struct redisplay_interface): New members flush_display_optional,
14582 define_frame_cursor, clear_frame_area, draw_window_cursor,
14583 draw_vertical_window_border, shift_glyphs_for_insert.
14584 Rename member clear_mouse_face to clear_window_mouse_face.
14585 (estimate_mode_line_height_hook): Remove hook.
14586 (auto_raise_tool_bar_buttons_p): Don't declare extern.
14587 (tool_bar_item_info): Remove prototype.
14588 (help_echo_string, help_echo_window, help_echo_object)
14589 (previous_help_echo_string, help_echo_pos)
14590 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
14591 (x_stretch_cursor_p, output_cursor): Declare extern.
14592 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
14593 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
14594 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
14595 (display_and_set_cursor, set_output_cursor, x_cursor_to)
14596 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
14597 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
14598 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
14599 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
14600 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
14601 Add prototypes.
14602 (mode_line_string, marginal_area_string): Fix prototypes.
14603
14604 * window.c (enum window_part): Move to dispextern.h.
14605 (coordinates_in_window): Use enum window_part member names
14606 instead of numbers to describe return value.
14607 (struct check_window_data): Change part member to window_part.
14608 (check_window_containing): Return window_part unaltered.
14609 (window_from_coordinates): Change part arg from int to enum
14610 window_part. Allow part arg to be null. All users changed.
14611
14612 * window.h (window_from_coordinates): Fix prototype.
14613
14614 * term.c (estimate_mode_line_height): Move to xdisp.c.
14615
14616 * keyboard.c (make_lispy_event): Use enum window_part.
14617
14618 * dispnew.c (mode_line_string, marginal_area_string): Use enum
14619 window_part instead of int in arg list. Users changed.
14620
14621 * xterm.h (No_Cursor): Declare as None for X.
14622 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 14623
acd37560
KS
14624 * xterm.c: Remove consolidated defines and code.
14625 (BETWEEN): Remove unused macro.
14626 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
14627 (x_define_frame_cursor, x_clear_frame_area)
14628 (x_draw_window_cursor): New X-specific functions for RIF.
14629 (x_redisplay_interface): Add new members.
14630
14631 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
14632
14633 * w32term.h (struct w32_output): Remove cross_cursor member.
14634
14635 * w32term.c: Remove consolidated defines and code.
14636 (BETWEEN): Remove unused macro.
14637 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
14638 (w32_define_frame_cursor, w32_clear_frame_area)
14639 (w32_draw_window_cursor): New W32-specific functions for RIF.
14640 (w32_redisplay_interface): Add new members.
14641
a64387ee 14642 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
14643 (XRectangle): Add X compatible rectangle type.
14644 (NativeRectangle): Declare as RECT for W32.
14645 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
14646
14647 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
14648
14649 * w32console.c: Remove consolidated defines and code.
af0ad939 14650
acd37560
KS
14651 * msdos.h (Display_Info): Add generic typedef.
14652
14653 * msdos.c: Remove consolidated defines and code.
14654 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
14655
14656 * macterm.h (struct mac_output): Replace member cross_cursor by
14657 hand_cursor.
14658 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
14659
14660 * macterm.c: Remove consolidated defines and code.
14661 (BETWEEN): Remove unused macro.
14662 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
14663 (mac_define_frame_cursor, mac_clear_frame_area)
14664 (mac_draw_window_cursor): New Mac-specific functions for RIF.
14665 (x_redisplay_interface): Add new members.
14666
14667 * macgui.h (No_Cursor): Define as 0 for Mac.
14668 (XRectangle): Add X compatible rectangle type.
14669 (NativeRectangle): Declare as Rect for Mac.
14670 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
14671
204ccab1
KS
14672 * macfns.c (x_set_mouse_color): Setup hand_cursor.
14673 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 14674
9443fcf6 14675 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
14676 included from it. Add dependency on keymap.h.
14677
14678 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
14679
8ba01a70 146802003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
14681
14682 * fileio.c (Fexpand_file_name): Fix previous change.
14683
8ba01a70 146842003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
14685
14686 * fileio.c (Ffile_name_directory): Reconstruct file name by
14687 make_specified_string.
14688 (Ffile_name_nondirectory, Ffile_name_as_directory)
14689 (Fdirectory_file_name, Fexpand_file_name)
14690 (Fsubstitute_in_file_name): Likewise.
14691 (Fread_file_name): Compare decoded homedir with DIR and
14692 DEFAULT_FILENAME.
14693
14694 * alloc.c (make_specified_string): If NCHARS is negative, count
14695 the number of characters.
14696
19536747
JD
146972003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14698
de38ae5a
JD
14699 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
14700 all widgets.
14701
19536747
JD
14702 * gtkutil.h: Removed xg_ignore_next_thumb.
14703
37ab321e 147042003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
14705
14706 * coding.c (Vchar_coding_system_table): Remove this variable.
14707 (Vcoding_system_safe_chars): New variable.
14708 (intersection): Remove this function.
14709 (find_safe_codings): Don't use Vchar_coding_system_table, but try
14710 all codings in SAFE_CODINGS.
00c64fab 14711 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
14712 find_safe_codings. Get generic coding systems from
14713 Vcoding_system_safe_chars.
14714 (Fdefine_coding_system_internal): New function.
14715 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
14716 Initialize and staticpro Vcoding_system_safe_chars.
14717
17097258
JD
147182003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14719
2a2071c3
JD
14720 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
14721 equal old values before updating.
14722
17097258
JD
14723 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
14724
14725 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
14726
147272003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14728
14729 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
14730 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
14731 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
14732 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
14733 (xg_create_scroll_bar): Pass bar to button event callback.
14734 (xg_find_top_left_in_fixed): New function.
14735 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
14736 whole scroll bar area. Get old position with
14737 xg_find_top_left_in_fixed, calculate and only clear needed areas.
14738 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
14739 dragging is in progress. Calculate whole as for Motif.
14740 Remove code that saved last values. Call gtk_range functions to
14741 set scroll bar sizes.
14742
14743 * gtkutil.h: Removed xg_ignore_next_thumb.
14744
8cb9dfbf
JB
147452003-03-17 Juanma Barranquero <lektu@terra.es>
14746
14747 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
14748 and files included from it.
14749
00c64fab
SM
147502003-03-18 Stefan Monnier <monnier@cs.yale.edu>
14751
14752 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
14753 multiple occurrences of the same keymap under different prefixes.
14754 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
14755
c45bb3b2
JR
147562003-03-16 Jason Rumney <jasonr@gnu.org>
14757
14758 * w32gui.h: Use HDC for Display.
14759
14760 * w32term.c (w32_encode_char): Prevent double-byte chars from
14761 crashing Emacs.
14762
14763 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
14764 as binary.
14765
2a6d0874
JB
147662003-03-16 Juanma Barranquero <lektu@terra.es>
14767
14768 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
14769
03eb5fab
KS
147702003-03-16 Kim F. Storm <storm@cua.dk>
14771
14772 The following changes consolidate some of the gui-independent
14773 parts of the processing and drawing of "glyph strings" from
14774 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 14775
03eb5fab
KS
14776 * dispextern.h (struct glyph): Reduce face_id member from 22 to
14777 21 bits (this reduces number of faces from 4M to 2M).
14778 Replace W32 specific w32_font_type member (2 bits) by generic
14779 font_type member (3 bits) for portability.
14780 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
14781 (enum draw_glyphs_face): Define here.
14782 (struct glyph_string): Define here. Merge W32 and X versions.
14783 (struct redisplay_interface): New members per_char_metric,
14784 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
14785 (VCENTER_BASELINE_OFFSET): Define here.
14786 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
14787 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
14788
14789 * xdisp.c: Consolidate gui-independent "glyph string" code here.
14790 (dump_glyph_string): Moved here.
14791 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
14792 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
14793 (fill_composite_glyph_string, fill_glyph_string)
14794 (fill_image_glyph_string, fill_stretch_glyph_string)
14795 (left_overwritten, left_overwriting, right_overwritten)
14796 (right_overwriting, get_char_face_and_encoding)
14797 (set_glyph_string_background_width, compute_overhangs_and_x)
14798 (append_glyph, append_composite_glyph, produce_image_glyph)
14799 (take_vertical_position_into_account, append_stretch_glyph)
14800 (produce_stretch_glyph): New generic functions (based on X version).
14801 Call platform specific functions through rif.
14802 (INIT_GLYPH_STRING): New macro, hides W32 details.
14803 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
14804 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
14805 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
14806 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
14807 (notice_overwritten_cursor):
14808 Generic functions exported to platform modules. Users changed.
14809
14810 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
14811 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
14812 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 14813 New macros for consolidated code.
2a6d0874 14814
03eb5fab
KS
14815 * xterm.c: Remove consolidated defines and code.
14816 (x_per_char_metric, x_encode_char)
14817 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
14818 (x_redisplay_interface): Add new members.
14819
14820 * w32gui.h (Display): Add dummy typedef for consolidation.
14821 (XChar2b): Define alias for wchar_t for consolidation.
14822 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
14823
14824 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 14825 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
14826 New macros for consolidation.
14827
fad49844 14828 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
14829 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
14830 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
14831 (w32_per_char_metric): Change font_type arg to int for RIF.
14832 (w32_encode_char): Return int according to RIF requirements.
14833 (w32_compute_glyph_string_overhangs): Adapt to RIF.
14834 (w32_get_glyph_overhangs): New function for RIF. Uses generic
14835 x_get_glyph_overhangs.
14836 (w32_redisplay_interface): Add new members.
14837
14838 * macgui.h (XChar2b): Move typedef here for consolidation.
14839 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
14840
14841 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
14842 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
14843 consolidation.
14844
14845 * macterm.c: Remove consolidated defines and code.
14846 (mac_per_char_metric): New function for RIF.
00c64fab 14847 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
14848 (mac_compute_glyph_string_overhangs): Adapt for RIF.
14849 (x_redisplay_interface): Add new members.
14850
00c64fab
SM
148512003-03-15 Stefan Monnier <monnier@cs.yale.edu>
14852
14853 * keymap.c (Vmenu_events): New var.
14854 (syms_of_keymap): Initialize it.
14855 (where_is_internal): Check more carefully what is a menu event.
14856
225c7a07
RS
148572003-03-14 Richard M. Stallman <rms@gnu.org>
14858
14859 * lread.c (read1): After #!, exit loop on eof.
14860
cea9be54
JD
148612003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14862
9ea0e54d
JD
14863 * gtkutil.h: Add declaration for xg_frame_cleared.
14864
0cb35f4e
JD
14865 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
14866
cea9be54
JD
14867 * gtkutil.c (struct xg_last_sb_pos): New structure.
14868 (handle_fixed_child): New function.
14869 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
14870 and force a redraw on them.
14871 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
14872 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
14873 so we can avoid unneeded redraws.
14874 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
14875 and force a redraw on the scroll bar.
14876 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
14877 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 14878 (xg_frame_cleared): New function.
cea9be54 14879
20b853f3
KH
148802003-03-13 Kenichi Handa <handa@m17n.org>
14881
14882 * coding.c (Fdetect_coding_region): Fix docstring.
14883 (Fdetect_coding_string): Fix docstring.
14884
7a555aff
AS
148852003-03-13 Andreas Schwab <schwab@suse.de>
14886
25cc0080
AS
14887 * gtkutil.c: Add prototype for create_menus.
14888
30225431
AS
14889 * data.c (long_to_cons): Fix type of top.
14890
14891 * xselect.c (selection_data_to_lisp_data): Use int instead of
14892 long for an integer of size 4.
14893
7a555aff 14894 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 14895 (xg_tool_bar_help_callback): Likewise.
7a555aff 14896
a3e4741f
AS
148972003-03-12 Andreas Schwab <schwab@suse.de>
14898
14899 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
14900
9668be7c
KS
149012003-03-12 Kim F. Storm <storm@cua.dk>
14902
03eb5fab 14903 The following changes consolidate the fringe handling from
9668be7c 14904 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 14905
9668be7c
KS
14906 * xdisp.c: Consolidate fringe handling code here.
14907 (left_bits, right_bits, continued_bits, continuation_bits)
14908 (ov_bits, zv_bits): Define fringe bitmaps.
14909 (fringe_bitmaps): New array holding fringe bitmaps.
14910 (draw_fringe_bitmap): Draw a specific bitmap; call display
14911 specific drawing routine via rif->draw_fringe_bitmap.
14912 (draw_row_fringe_bitmaps): Generic replacement for
14913 x_draw_row_fringe_bitmaps; all callers changed.
14914 (compute_fringe_widths): Generic replacement for
14915 x_compute_fringe_widths; all callers changed.
14916
14917 * dispextern.h (enum fringe_bitmap_type): Define here.
14918 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
14919 (fringe_bitmaps): Declare extern.
14920 (struct redisplay_interface): New member draw_fringe_bitmap.
14921 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
14922
14923 * xterm.c: Remove generic fringe code.
14924 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
14925 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
14926
14927 * w32term.c: Remove generic fringe code.
14928 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
14929 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 14930
9668be7c
KS
14931 * macterm.c: Remove generic fringe code.
14932 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
14933 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
14934
00a88f32
SM
149352003-03-11 Stefan Monnier <monnier@cs.yale.edu>
14936
14937 * print.c (Fprin1_to_string): Return unibyte string if possible.
14938
1d1de695
DK
149392003-03-09 David Kastrup <dak@gnu.org>
14940
14941 * process.c (read_process_output): We have allocated enough space
14942 for readmax and carryover, so actually use the alloted space.
14943
257f40f2
JD
149442003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14945
14946 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
14947 toolkit scrollbar click.
14948
14949 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
14950 for USE_GTK.
14951 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
14952 also.
1d1c7e75 14953 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
257f40f2 14954 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 14955
78819ebb 14956 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
14957
14958 * gtkutil.c (xg_get_scroll_id_for_window): New function.
14959 (xg_tool_bar_item_expose_callback): New function.
14960 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
14961 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
14962 on the tool bar widget.
14963 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
14964 to expose on the tool bar item widgets.
14965
15213141
JD
149662003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14967
26b74a0b 14968 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 14969 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
14970 deleted from the image cache).
14971
15213141
JD
14972 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
14973 the event isn't for a frame (i.e. for dialogs).
14974
20b853f3 149752003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
14976
14977 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
14978 composition components reaches the limit, terminate composing.
14979 (COMPOSITION_OK): New macro.
00a88f32 14980 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
14981 composition is found.
14982 (coding_restore_composition): Adjust the number of composition
14983 components if it is not sane.
14984
c9029fe5
JB
149852003-03-06 Juanma Barranquero <lektu@terra.es>
14986
14987 * w32term.h (struct w32_display_info): Add xrdb member to support
14988 passing resources via -xrm on Windows.
14989
14990 * w32term.c (w32_make_rdb): New function.
14991 (w32_term_init): Use it to initialize xrdb member of w32_display_info
14992 struct. Delete leftover code.
14993
14994 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
14995 for resources passed on the command line.
14996
14997 * w32reg.c (w32_get_rdb_resource): New function.
14998 (x_get_string_resource): Use it, so resources passed with -xrm
14999 supercede the ones in the registry.
15000
9d00001f
JD
150012003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15002
15003 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
15004 instead of x_top_window_to_frame.
15005
ca2417b9
JD
150062003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15007
15008 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
15009 when restarting Emacs.
15010
5b20caf0
RS
150112003-03-03 Richard M. Stallman <rms@gnu.org>
15012
15013 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
15014 to run kill-buffer-query-functions.
15015 (Qkill_buffer_query_functions): New var.
15016 (syms_of_buffer): Init and staticpro it.
15017
58e91b77
JD
150182003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15019
15020 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
15021
932357b4
KS
150222003-02-25 Kim F. Storm <storm@cua.dk>
15023
15024 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
15025 If centering point failed to make whole line visible and vscroll
15026 is non-zero, disable vscroll and try centering point again.
15027
15028 * lread.c (read1): Accept `single space' syntax like (? x).
15029
bb8db7e1
JD
150302003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15031
15032 * keyboard.c (cancel_hourglass_unwind): Surround with
15033 #ifdef HAVE_X_WINDOWS
15034
47d77aab
KH
150352003-02-25 Kenichi Handa <handa@m17n.org>
15036
15037 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
15038 process only when "subprocesses" is defined.
15039
6a097c0c
SM
150402003-02-24 Stefan Monnier <monnier@cs.yale.edu>
15041
15042 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
15043
0b063c27
JB
150442003-02-24 Juanma Barranquero <lektu@terra.es>
15045
d1135afc
JB
15046 * callint.c (fix_command): Declare as static void and move before
15047 Fcall_interactively.
15048
0b063c27
JB
15049 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
15050 (syms_of_xdisp): Don't initialize Qwhen.
15051
0af912f0
JD
150522003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15053
15054 * keyboard.c (cancel_hourglass_unwind): New function.
15055 (command_loop_1): Cancel hourglass with unwind-protect.
15056
120d0a23
RS
150572003-02-23 Richard M. Stallman <rms@gnu.org>
15058
15059 * callint.c (fix_command): New subroutine, from Fcall_interactively.
15060 Detect (when ... (region-beginning)) etc.
15061 (Fcall_interactively): Call fix_command.
15062 (Qif, Qwhen): New variables.
15063 (syms_of_callint): Init and staticpro them.
0b063c27 15064
120d0a23
RS
15065 * regex.c (print_partial_compiled_pattern): Output to stderr.
15066
4ece81a6
KG
150672003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
15068
15069 * dired.c (directory_files_internal): Don't expand directory.
15070 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
15071 instead. From Lars Hansen <larsh@math.ku.dk>.
15072
e52bd6b7
SM
150732003-02-22 Stefan Monnier <monnier@cs.yale.edu>
15074
15075 * fns.c (string_to_multibyte): Remove unused var i.
15076 (Flanginfo): Fix int/Lisp_Object mixup.
15077 (void_call2): New fun.
15078 (Fmap_char_table): Use it in place of call2.
15079
15080 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
15081
15082 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
15083
15084 * keymap.c (copy_keymap_1): Make it static.
15085
15086 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
15087
c33ef7c4
JB
150882003-02-22 David Ponce <david@dponce.com>
15089
15090 * lread.c (Fload): Don't check STRING_MULTIBYTE.
15091
16782258
JD
150922003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15093
15094 * process.h: Removed subtty field from struct Lisp_Process.
15095
15096 * process.c (create_process): Remove setting of subtty.
15097 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
15098 (Fprocess_running_child_p, process_send_signal):
15099 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
15100 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
15101
3abeca61
KG
151022003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
15103
15104 * keymap.c (Fdefine_key): Doc fix.
15105
92a8ce63
JB
151062003-02-21 Juanma Barranquero <lektu@terra.es>
15107
15108 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
15109
15110 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
15111 POLLING_PROBLEM_IN_SELECT.
15112
15113 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
15114 Delete #undef of POLLING_PROBLEM_IN_SELECT.
15115
15116 * s/hpux10-20.h: New file.
15117
e52bd6b7
SM
15118 * process.c (wait_reading_process_input):
15119 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 15120
20f1ef2e
KH
151212003-02-20 Kenichi Handa <handa@m17n.org>
15122
32d0a9dc
KH
15123 * fontset.c (check_fontset_name): If NAME is nil, return the
15124 default fontset.
15125 (override_font_info): New function.
e52bd6b7 15126 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
15127 (Ffontset_info): If FONTSET is not the default fontset, merge
15128 FONTSET onto the copy of the default fontset, and work on that
15129 copy. Document that NAME nil means the default fontset.
15130 (Ffontset_font): Document that NAME nil means the default fontset.
15131
20f1ef2e
KH
15132 * process.c (setup_process_coding_systems): If the process's
15133 in/out descriptor is -1, do nothing.
15134
77d1daf2
AS
151352003-02-19 Andreas Schwab <schwab@suse.de>
15136
e52bd6b7
SM
15137 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
15138 Add prototypes.
77d1daf2 15139
f9a45bb3
KH
151402003-02-19 Kenichi Handa <handa@m17n.org>
15141
15142 * xfaces.c (try_alternative_families): Try all scalable fonts if
15143 Vscalable_fonts_allowed is not Qt.
15144
72ecb43c
JD
151452003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15146
15147 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
15148
ee5be7c3
JD
151492003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15150
15151 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
15152 names.
15153
15154 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 15155 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
15156 x_face_list_fonts.
15157 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
15158 (Fx_list_fonts): Set maxnames to -1 to get all font names.
15159
4cd519a7
KS
151602003-02-18 Kim F. Storm <storm@cua.dk>
15161
068f9882
KS
15162 * lread.c (read1): Fix last change.
15163 "`" is not always special. Allow "?" after a character constant.
4cd519a7 15164
7290a344
AC
151652003-02-18 Andrew Choi <akochoi@shaw.ca>
15166
15167 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
15168
1f7fa69b
AS
151692003-02-18 Andreas Schwab <schwab@suse.de>
15170
15171 * window.c (window_scroll_pixel_based): Move outside a
15172 multi-glyph character before setting new window start.
15173
15174 * xdisp.c (in_display_vector_p): New function.
15175 * dispextern.h (in_display_vector_p): Declare.
15176
23e21195
KS
151772003-02-18 Kim F. Storm <storm@cua.dk>
15178
15179 * lread.c (read1): Fix and relax read syntax.
15180 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
15181 Only recognize "," after dotted-pair dot if inside backquote.
15182 Never include "`" or "," (inside backquote) in a symbol.
15183 Allow dotted-pair dot after a character constant.
15184 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 15185
f098b121
JD
151862003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15187
15188 * gtkutil.c (xg_tool_bar_expose_callback): New function.
15189 (xg_create_tool_bar): Force style of tool bar to be horizontal with
15190 icons. Set name of tool bar to emacs-toolbar.
15191 (update_frame_tool_bar): Connect expose event to
15192 xg_tool_bar_expose_callback.
15193
63020c46
RS
151942003-02-17 Richard M. Stallman <rms@gnu.org>
15195
15196 * keyboard.c (this_command_key_count_reset): New variable.
15197 Initiatize to 0 where this_command_key_count is set.
15198 (read_char): Save and restore this_command_key_count_reset
15199 around input method code.
15200 (read_char): If this_command_key_count_reset, echo reread commands.
15201 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
15202
fb4452cc
KH
152032003-02-17 Kenichi Handa <handa@m17n.org>
15204
15205 * fns.c (string_to_multibyte): Always return a multibyte string.
15206
bd11cc09
JR
152072003-02-16 Jason Rumney <jasonr@gnu.org>
15208
e52bd6b7
SM
15209 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
15210 Negative max_fonts parameter means list all.
bd11cc09 15211
4cdf4bde
DL
152122003-02-14 Dave Love <fx@gnu.org>
15213
15214 * fns.c (Flanginfo): Doc fix.
15215
023b93f6
KS
152162003-02-13 Kim F. Storm <storm@cua.dk>
15217
37cd4238
KS
15218 * lread.c (read_escape): Interpret \s as a SPACE character, except
15219 for \s-X in a character constant which still is the super modifier.
15220 (read1): Signal an `invalid read syntax' error if a character
15221 constant is immediately followed by a digit or symbol character.
15222
140a6b7e
KS
15223 * search.c (Fmatch_data): Doc fix. Explicitly state that
15224 match-data is undefined if last search failed.
15225
3419757d 15226 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
15227 All uses changed.
15228
7d5c86e5
JB
152292003-02-12 Juanma Barranquero <lektu@terra.es>
15230
15231 * eval.c (Fdefmacro): Fix typo.
15232
295fff2c
KS
152332003-02-12 Kim F. Storm <storm@cua.dk>
15234
15235 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
15236 macro is a string, convert meta modifiers in string when copying
15237 the string into a vector.
15238
60f3202d
KS
152392003-02-11 Kim F. Storm <storm@cua.dk>
15240
15241 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
15242
61cb0b53
KH
152432003-02-11 Kenichi Handa <handa@m17n.org>
15244
15245 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
15246
7392e23c
KS
152472003-02-10 Kim F. Storm <storm@cua.dk>
15248
15249 * process.c: Doc fixes.
15250 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
15251
ce4254bd
KH
152522003-02-10 Kenichi Handa <handa@m17n.org>
15253
9c7a329a
KH
15254 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
15255
ce4254bd
KH
15256 * process.c (QCfilter_multibyte): New variable.
15257 (setup_process_coding_systems): New function.
e52bd6b7
SM
15258 (Fset_process_buffer, Fset_process_filter):
15259 Call setup_process_coding_systems.
ce4254bd
KH
15260 (Fstart_process): Initialize the member `filter_multibyte' of
15261 struct Lisp_Process.
15262 (create_process): Call setup_process_coding_systems.
15263 (Fmake_network_process): New keyward `:filter-multibyte'.
15264 Initialize the member `filter_multibyte' of struct Lisp_Process.
15265 Call setup_process_coding_systems.
15266 (server_accept_connection): Call setup_process_coding_systems.
15267 (read_process_output): If the process has a filter, decide the
15268 multibyteness of a string to given to the filter by
15269 `filter_multibyte' member of the process. If the process doesn't
15270 have a filter and the result of conversion is unibyte, use
15271 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
15272 multibyte form.
15273 (Fset_process_coding_system): Call setup_process_coding_systems.
15274 (Fset_process_filter_multibyte): New function.
15275 (Fprocess_filter_multibyte_p): New function.
15276 (syms_of_process): Intern and staticpro QCfilter_multibyte.
15277 Defsubr Sset_process_filter_multibyte and
15278 Sprocess_filter_multibyte_p.
15279
15280 * process.h (struct Lisp_Process): New member filter_multibyte.
15281
15282 * lisp.h (setup_process_coding_systems): Add prototype.
15283
15284 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
15285 process, update coding systems for the process.
15286
b08d5f59
KH
152872003-02-09 Kenichi Handa <handa@m17n.org>
15288
15289 * fns.c (string_to_multibyte): New function.
15290 (Fstring_to_multibyte): New function.
15291 (syms_of_fns): Defsubr it.
15292
0dfd93c0
AS
152932003-02-08 Andreas Schwab <schwab@suse.de>
15294
15295 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
15296 instead of the substitution.
15297
7b76ca1c
JD
152982003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15299
15300 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
15301
15302 * xmenu.c (menu_position_func): Adjust menu popup position so that
15303 the menu is fully visible.
7b76ca1c 15304
2436a4e4
JD
153052003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15306
15307 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
15308 (x_make_frame_invisible, x_wm_set_icon_position):
15309 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
15310
15311 * xfns.c (x_set_name, x_set_title): Ditto.
15312
37d1e680
RS
153132003-02-04 Richard M. Stallman <rms@gnu.org>
15314
15315 * keyboard.c (echo_now): Update before_command_echo_length.
15316 (Freset_this_command_lengths): Reset this_command_key_count etc.
15317 immediately rather than arranging to do it later.
15318 (before_command_key_count_1, before_command_echo_length_1)
15319 (before_command_restore_flag): Vars deleted.
15320 (add_command_key): Don't handle before_command_restore_flag.
15321 (read_char, record_menu_key): Don't update before_command_key_count or
15322 before_command_echo_length.
15323 (read_char): Don't handle before_command_restore_flag.
15324
15325 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
15326 in direct-output clauses if it wouldn't be called in the ordinary case.
15327
578846a3
KS
153282003-02-04 Kim F. Storm <storm@cua.dk>
15329
15330 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
15331
49853a4d
JD
153322003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15333
15334 * gtkutil.c (remove_from_container): Copying list is not needed.
15335 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
15336 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
15337 on list returned from gtk_container_get_children to avoid memory leak.
15338
8b53dc06
JR
153392003-02-01 Jason Rumney <jasonr@gnu.org>
15340
5d54d177
JR
15341 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
15342 local malloc.
15343 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
15344 definitions in xpm.h.
15345 (init_xpm_functions): New function.
f63fd14e 15346 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
15347 (init_external_image_libraries): Try to load libXpm.dll.
15348
8b53dc06
JR
15349 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
15350 timestamp.
15351
b222e415
DL
153522003-01-31 Dave Love <fx@gnu.org>
15353
15354 * syntax.c (Fskip_chars_forward)
15355 (open-paren-in-column-0-is-defun-start): Doc fix.
15356
c60ee5e7
JB
153572003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
15358
15359 * fileio.c: Support // at start of name for Cygwin (just added proper
15360 preprocessor tests).
15361
15362 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
15363
15364 * Makefile.in: Use @EXEEXT@ for Cygwin.
15365
15366 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
15367
15368 * s/cygwin.h: Added for Cygwin port.
15369
53b37591
JB
153702003-01-31 Juanma Barranquero <lektu@terra.es>
15371
15372 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
15373 when including gif_lib.h.
fe929957 15374 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
15375 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
15376 Windows. Disable color table lookups. Call library functions
53b37591 15377 through pointers determined at runtime.
fe929957
JB
15378 (init_external_image_libraries): Try to load libungif.dll and
15379 libtiff.dll.
53b37591 15380
45415a8f
KH
153812003-01-31 Kenichi Handa <handa@m17n.org>
15382
15383 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 15384 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 15385
a97e4138
JD
153862003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15387
e52bd6b7 15388 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 15389
6eed9bed
DL
153902003-01-30 Dave Love <fx@gnu.org>
15391
15392 * alloc.c (Vgc_elapsed, gcs_done): New variables.
15393 (Fgarbage_collect): Use them.
15394 (init_alloc, syms_of_alloc): Set them up.
15395
100dcd40
JB
153962003-01-30 Juanma Barranquero <lektu@terra.es>
15397
15398 * w32fns.c (init_external_image_libraries): Add missing operator.
15399
fbd852af
JR
154002003-01-29 Jason Rumney <jasonr@gnu.org>
15401
15402 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
15403 an alternative name for jpeg.dll.
15404
8a2d8020
KH
154052003-01-29 Kenichi Handa <handa@m17n.org>
15406
15407 * xdisp.c (set_cursor_from_row): Pay attention to string display
15408 properties.
15409
058c18c7
AC
154102003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
15411
15412 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
15413 <escape>.
15414 (keycode_to_xkeysym_table): Reformat and add more comments.
15415 (XTread_socket): Drop special case for backspace.
15416
385f11cf
AC
154172003-01-28 Andrew Choi <akochoi@shaw.ca>
15418
15419 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
15420 values in old-style RGB specs.
15421
c922a224
JB
154222003-01-27 Juanma Barranquero <lektu@terra.es>
15423
15424 * w32fns.c (init_external_image_libraries): Try alternate names for the
15425 jpeg dll.
15426
0a1d6de0
JD
154272003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15428
15429 * gtkutil.c (create_dialog, xg_separator_p)
15430 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
15431 before calling strcmp or strlen.
15432
a97e4138 154332003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
15434
15435 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
15436 and handle image load failure.
15437
28908312
JR
154382003-01-26 Jason Rumney <jasonr@gnu.org>
15439
15440 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
15441 New functions.
f63fd14e
JB
15442 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
15443 Disable color table lookups. Call jpeg library functions
28908312
JR
15444 through pointers determined at runtime.
15445 (init_external_image_libraries): Try to load jpeg.dll.
15446
84e47416
RS
154472003-01-25 Richard M. Stallman <rms@gnu.org>
15448
15449 * lisp.h: Declare format2 instead of format1.
15450
15451 * fileio.c (barf_or_query_if_file_exists):
15452 Call format2 instead of format1.
15453
15454 * editfns.c (format2): New function, replaces format1
15455 but takes exactly two Lisp Objects as format args.
15456
15457 * buffer.c (Fkill_buffer): Call format2 instead of format1.
15458
a97e4138 154592003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
15460
15461 * xterm.h: Change to return value of x_dispatch_event to int.
15462
15463 * xterm.c (x_filter_event): New function.
15464 (event_handler_gdk, XTread_socket): Call x_filter_event.
15465 (x_dispatch_event): Change to return value of finish.
15466 (event_handler_gdk): Use return value from x_dispatch_event.
15467
15468 * xfns.c (x_window): Call create_frame_xic for GTK version to
15469 initialize input methods.
15470
15471 * gtkutil.h: Add (void) prototypes.
15472
15473 * gtkutil.c (create_menus): Remove code that puts the help menu to
15474 the right.
15475
54eefef1
JR
154762003-01-25 Jason Rumney <jasonr@gnu.org>
15477
15478 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
15479 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
15480 (png_load): Adjust colors for Windows. Use Windows
15481 bitmaps. Disable color table lookups.
c262430d
JR
15482 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
15483 (init_png_functions): New function.
15484 (png_read_from_memory, png_load): Call png library functions
15485 through pointers determined at runtime.
15486 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
15487 (init_external_image_libraries): New function.
15488 (init_xfns): Call it.
54eefef1 15489
1a9e275b
AS
154902003-01-24 Andreas Schwab <schwab@suse.de>
15491
15492 * minibuf.c (Fminibuffer_message): Verify type of parameter.
15493
a97e4138 154942003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
15495
15496 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
15497 of static initializer.
15498
422eec7e
DL
154992003-01-24 Dave Love <fx@gnu.org>
15500
15501 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
15502 architectures.
15503
15504 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
15505 Use __alignof__.
15506
2a026b04
KH
155072003-01-24 Kenichi Handa <handa@m17n.org>
15508
15509 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 15510 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
15511 (command_loop_1): Call adjust_point_for_property with proper
15512 second arg.
15513
a18bb28d
JR
155142003-01-22 Jason Rumney <jasonr@gnu.org>
15515
15516 Sync changes with xterm.c and xfns.c.
15517
15518 * w32term.c (x_draw_glyph_string_foreground)
15519 (x_draw_composite_glyph_string_foreground): Implement overstriking.
15520
15521 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
15522 phys_cursor's hpos is overwritten. This is still not completely
15523 correct, as it doesn't really make sense to use hpos at all to
15524 get the cursor glyph (as that is relative to the width of the
15525 characters on the line, which may have changed during the update).
15526
15527 * w32term.c (notice_overwritten_cursor): Handle the special case
15528 of the cursor being in the first blank non-text line at the
15529 end of a window.
15530
15531 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
15532 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
15533 Compute from the x position returned by x_draw_glyphs.
15534
15535 (x_display_and_set_cursor): Don't set phys_cursor_width here,
15536 except for NO_CURSOR and system caret, to make phys_cursor_width
15537 contain what its name suggests.
15538 (notice_overwritten_cursor): Consider the cursor image erased if
15539 the output area intersects the cursor image in y-direction.
15540
6a097c0c
SM
15541 * w32term.c (note_mode_line_or_margin_highlight): Rename from
15542 note_mode_line_highlight and extend.
a18bb28d
JR
15543
15544 * w32term.c (last_window): New variable.
15545 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
15546 (note_mouse_movement): Remove reimplemented code in #if 0.
15547
15548 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
15549 not update_mode_lines, and always set it to 1.
15550
ac6e47ef
JR
155512003-01-21 Jason Rumney <jasonr@gnu.org>
15552
15553 * w32fns.c (IDC_HAND): Define it if system headers don't.
15554
155552003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
15556
15557 * w32term.h (struct w32_output): New member hand_cursor.
15558 (WM_EMACS_SETCURSOR): New message definition.
15559
15560 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
15561 function w32_define_cursor.
15562 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
15563 position, change member name output_data.x to output_data.w32 and
15564 add function w32_define_cursor.
15565 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
15566 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
15567 (w32_initialize_display_info):
15568 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
15569
15570 * w32fns.c (Vx_hand_shape): New variable.
15571 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
15572 WM_EMACS_SETCURSOR.
15573 (x-create-frame): Setup Cursor types.
15574
ceb39a17
JB
155752003-01-21 David Ponce <david@dponce.com>
15576
ac6e47ef 15577 * w32term.c (w32_encode_char): For DIM=1 charset, set
52eb0373
JB
15578 ccl->reg[2] to -1 before calling ccl_driver.
15579 (Sync. with xterm.c x_encode_char change by Kenichi Handa
15580 <handa@m17n.org> on 2002-09-30.)
ac6e47ef
JR
15581 (w32_draw_relief_rect): Declare all args.
15582 (w32_define_cursor): New.
15583
15584 * w32fns.c (w32_load_cursor): New function.
15585 (w32_init_class): Use it.
15586 (x_put_x_image): Declare all args.
15587
b6189c3b 155882003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
15589
15590 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
15591
a97e4138 155922003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
15593
15594 * gtkutil.c: Must include stdio.h before termhooks.h
15595
83fc9c63
DL
155962003-01-21 Dave Love <fx@gnu.org>
15597
15598 * alloc.c (Fgc_status): Print zombie list.
15599 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
15600 Fix assignment of zombies.
15601 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
15602 Don't take car of non-cons.
15603
15604 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
15605
15606 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
15607
fe04b8c8
JR
156082003-01-20 David Ponce <david@dponce.com>
15609
15610 * w32menu.c (digest_single_submenu): Declare all args.
15611
15612 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
15613 changes in xmenu.c:
15614
15615 (parse_single_submenu): Use individual keymap's prompt
15616 string as pane name, if there is one.
15617 (set_frame_menubar): Save menu_items_n_panes from each call to
15618 parse_single_submenu and use it when calling digest_single_submenu.
15619
539e69a9
ST
156202003-01-20 Steven Tamm <steventamm@mac.com>
15621
7e26f91b 15622 * macterm.c (XTread_socket): Check for valid, visible window
539e69a9
ST
15623 before sending a scroll-wheel event.
15624
675d000f
RS
156252003-01-20 Richard M. Stallman <rms@gnu.org>
15626
15627 * xdisp.c (redisplay_window): If mini window's buffer is not
15628 a minibuffer, then redisplay it like other windows.
15629
a97e4138 156302003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
15631
15632 * gtkutil.c (xg_create_frame_widgets): Check if there is an
15633 external tool bar before setting tool bar height.
15634
048addec
JD
156352003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15636
15637 * xterm.c (handle_one_xevent): Surround popup_activated
15638 with #ifdef:s for non-toolkit version.
15639
15640 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
15641 (gtkutil.o): New file.
15642 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
15643 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
15644
15645 * gtkutil.c: New file for GTK version.
15646
15647 * gtkutil.h: New file for GTK version.
15648
15649 * xterm.h: Add xt_or_gtk_widget.
15650 Include gtk files for USE_GTK.
15651 (struct x_output): Add toolbar_height.
15652 (struct x_output): Add GTK widgets and Gdk size_hints.
15653 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
15654 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
15655 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
15656
15657 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 15658 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
15659 (note_mouse_highlight): Check popup_activated for USE_GTK.
15660 (xt_action_hook): Don't compile if USE_GTK.
15661 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
15662 (xg_scroll_callback): New function.
15663 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
15664 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
15665 for USE_GTK.
15666 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
15667 xg_show_scroll_bar for USE_GTK.
15668 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
15669 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
15670 (event_handler_gdk): New function for USE_GTK.
15671 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
15672 (handle_one_xevent): Make sure widget is mapped before
15673 calling x_real_positions for USE_GTK.
15674 (XTread_socket): Add GTK event loop for USE_GTK.
15675 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
15676 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
15677 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
15678 (x_iconify_frame): Add code for USE_GTK.
15679 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
15680 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
15681 is in gtkutil.c.
15682 (x_term_init): Add initialization for GTK.
15683 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
15684
15685 * xmenu.c: Include gtkutil.h for USE_GTK.
15686 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
15687 (single_menu_item, single_menu_item, Fx_popup_dialog):
15688 Check for USE_GTK.
048addec
JD
15689 (popup_widget_loop): New function for USE_GTK.
15690 (x_activate_menubar): Add code for USE_GTK.
15691 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
15692 (menu_highlight_callback, menubar_selection_callback):
15693 Add USE_GTK versions.
048addec
JD
15694 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
15695 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
15696 (free_frame_menubar): Only compile if not USE_GTK. GTK version
15697 is in gtkutil.c.
15698 (popup_selection_callback): New version for USE_GTK.
15699 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 15700 one USE_X_TOOLKIT version.
048addec
JD
15701 (xmenu_show): Call create_and_show_popup_menu.
15702 (dialog_selection_callback): New version for USE_GTK.
15703 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 15704 one USE_X_TOOLKIT version.
048addec
JD
15705 (xdialog_show): Call create_and_show_dialog.
15706
15707 * xfns.c: Include gtkutil for USE_GTK.
15708 (x_window_to_frame, x_any_window_to_frame)
15709 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
15710 (x_top_window_to_frame): Add code for USE_GTK.
15711 (x_set_background_color): Call xg_set_background_color for GTK.
15712 (x_set_menu_bar_lines): Check for USE_GTK.
15713 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
15714 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
15715 (x_window): Call xg_create_frame_widgets for USE_GTK.
15716 (Fx_create_frame): Check for USE_GTK
15717 (Fx_file_dialog): New implementation for USE_GTK.
15718
15719 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
15720 (update_menu_bar): Add check for USE_GTK.
15721 (update_tool_bar): Add check for USE_GTK and external tool bar.
15722 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
15723 (redisplay_internal): Add check for USE_GTK and popup_activated.
15724 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
15725 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
15726 (display_menu_bar): Add check for USE_GTK
15727
78819ebb 15728 * lisp.h (Vx_resource_name): Declare extern.
048addec 15729
a64387ee 15730 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
15731 for USE_GTK.
15732 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
15733
15734 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
15735 (FRAME_EXTERNAL_TOOL_BAR): New macro.
15736 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
15737
15738 * fileio.c (Fread_file_name): Add check for USE_GTK.
15739
6bdb309a
SM
15740 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
15741 Add check for USE_GTK.
048addec
JD
15742
15743 * config.in: Added HAVE_GTK
15744
15745 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
15746
157472003-01-18 Stefan Monnier <monnier@cs.yale.edu>
15748
15749 * charset.h (Funibyte_char_to_multibyte): Export.
15750
157512003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15752
15753 * xmenu.c (mouse_position_for_popup): New function.
15754 (Fx_popup_menu): Call mouse_position_for_popup for X and
15755 mouse_position_hook for others.
15756
157572003-01-17 Kim F. Storm <storm@cua.dk>
15758
15759 * editfns.c (Finsert): Mention `string-make-multibyte' and
15760 `string-as-multibyte' in doc string.
15761
157622003-01-17 Kenichi Handa <handa@m17n.org>
15763
15764 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 15765
048addec
JD
15766 * editfns.c (Fformat): Convert an unibyte char argument that is
15767 formatted by "%c" to multibyte if the total result must be a
15768 multibyte string.
cd7df9c0 15769
048addec 157702003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 15771
048addec
JD
15772 * process.c (set-process-filter): Document unibyte/multibyte-ness
15773 of string argument.
56210ecd 15774
048addec 157752003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 15776
048addec 15777 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 15778
048addec
JD
15779 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
15780 (re_search_2): Likewise.
6df8b9fe 15781
048addec 157822003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 15783
048addec
JD
15784 * xdisp.c (message_dolog): Fix bug of the case that *Message*
15785 buffer is unibyte.
292ddc31 15786
048addec 157872003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 15788
048addec 15789 * fns.c (Fsubstring): Clarify doc string.
292ddc31 15790
048addec
JD
15791 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
15792 (Fprevious_char_property_change)
15793 (Fnext_single_char_property_change)
15794 (Fprevious_single_char_property_change, Fnext_property_change)
15795 (Fnext_single_property_change, Fprevious_property_change)
15796 (Fprevious_single_property_change, Fadd_text_properties)
15797 (Fput_text_property, Fset_text_properties)
15798 (Fremove_text_properties, Fremove_list_of_text_properties)
15799 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 15800
048addec 158012003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 15802
048addec
JD
15803 * process.h (struct Lisp_Process): New member plist replaces old
15804 member private_vars. All uses changed.
63e4e4c6 15805
048addec 15806 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 15807 (QCplist): Rename from QCvars. Change all uses.
048addec 15808 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 15809 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 15810 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 15811 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 15812
048addec 158132003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 15814
6bdb309a 15815 * m/delta.h: Remove (obsolete).
e833850f 15816
048addec 158172003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 15818
048addec
JD
15819 * fileio.c (Fdelete_directory, Fdelete_file): Document the
15820 behaviour in front of symlinks.
15821 (Fdelete_file): Raise an error on directories.
817cb127 15822
048addec 158232003-01-13 Dave Love <fx@gnu.org>
817cb127 15824
048addec 15825 * fns.c (Freverse): Use QUIT.
3e8cf2ea 15826
048addec 158272003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 15828
048addec
JD
15829 * minibuf.c (minibuffer_completion_contents):
15830 Error if point is inside prompt.
3e8cf2ea 15831
048addec
JD
15832 * keyboard.c (command_loop_1): Don't redisplay directly
15833 if there's a post-command-hook.
3e8cf2ea 15834
048addec
JD
15835 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
15836 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 15837
048addec 158382003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 15839
048addec 15840 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 15841
048addec
JD
15842 * process.c (QCvars): New variable.
15843 (syms_of_process): Intern and staticpro it.
15844 (Fset_process_contact): Removed function.
15845 (Fprocess_variable, Fset_process_variable): New functions.
15846 (syms_of_process): Defsubr them.
15847 (Fstart_process): Initialize private_vars plist to nil.
15848 (Fmake_network_process): New arg :vars to setup the private
15849 variables for new network process.
15850 (server_accept_connection): Copy server's private variables to
15851 client process.
2c10f029 15852
048addec
JD
15853 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
15854 crashes). Code rewritten and simplified. Now directly aligns the
15855 pointer and recalculates pure_bytes_used, rather than aligning the
15856 size and adjusting the pointer.
b8a76c6c 15857
048addec 158582003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 15859
048addec
JD
15860 * process.c (Fset_process_contact): New function.
15861 (syms_of_process): defsubr it.
15862 (make-network-process): Update doc.
3a8d0899 15863
048addec 158642003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 15865
048addec
JD
15866 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
15867 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 15868
048addec 158692003-01-10 Dave Love <fx@gnu.org>
4abc7470 15870
048addec 15871 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 15872
048addec 158732003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 15874
048addec
JD
15875 * process.c (Fmake_network_process): Convert new port number
15876 to host byte order for `:service t' case. From Mario Lang.
bf338245 15877
048addec 158782003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 15879
048addec
JD
15880 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
15881 instead of XtAppProcessEvent.
bf338245 15882
048addec
JD
15883 * xterm.c (handle_one_xevent): New function.
15884 (x_dispatch_event): New function.
15885 (XTread_socket): Call handle_one_xevent.
bf338245 15886
048addec 15887 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 15888
048addec
JD
15889 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
15890 call XQueryPointer to get coordinates.
15891 (popup_get_selection): Do not set popup_activated_flag to zero,
15892 let popup_deactivate_callback do that. Needed for Motif.
15893 Call x_dispatch_event instead of XtDispatchEvent.
15894 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 15895
048addec 158962003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 15897
6bdb309a 15898 * process.c (server_accept_connection): Fix recording of new
048addec
JD
15899 connection's local address in :local property of contact info.
15900 (Fmake_network_process): Record local network address for new
15901 client processes in :local property of contact info.
6bdb309a 15902 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 15903
048addec 159042003-01-07 Dave Love <fx@gnu.org>
00e3ab56 15905
048addec 15906 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 15907
048addec 159082003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 15909
048addec 15910 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 15911
048addec
JD
15912 * eval.c (Fuser_variable_p): Doc change. For custom variables,
15913 use the same test as for custom-variable-p.
8c6d74c6 15914
048addec 159152003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 15916
048addec
JD
15917 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
15918 Count LAST_LINE_MISFIT in scroll margin for end of window.
15919 Move label too_near_end before setting SCROLL_MARGIN_POS.
15920 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 15921
048addec
JD
15922 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
15923 scroll_conservatively case. If scrolling that much doesn't change
15924 STARTP, move it down one line.
e833850f 15925
048addec
JD
15926 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
15927 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 15928
048addec
JD
15929 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
15930 selected frame.
8c6d74c6 15931
048addec 15932 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 15933 (syms_of_keymap): Staticpro them.
048addec
JD
15934 (Fapropos_internal): Initialize them and clear them out.
15935 Don't GCPRO them.
8c6d74c6 15936
048addec
JD
15937 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
15938 Doc fixes.
8c6d74c6 15939
048addec
JD
15940 * lisp.h: New misc type Lisp_Save_Value.
15941 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
15942 (XSAVE_VALUE): New macro.
15943 (struct Lisp_Save_Value): New data type.
15944 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 15945 (make_save_value): Declare.
8c6d74c6 15946
048addec 15947 * alloc.c (make_save_value): New function.
8c6d74c6 15948
048addec
JD
15949 * xterm.c (x_catch_errors): Save dpy using make_save_value.
15950 (x_catch_errors_unwind): Call XSync.
8c6d74c6 15951
048addec 159522003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 15953
048addec 15954 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 15955
048addec
JD
15956 * keyboard.c (command_loop_1): Call adjust_point_for_property
15957 in direct action cases for Qforward_char and Qbackward_char.
15958 Set already_adjusted so it won't be done twice.
8c6d74c6 15959
b6189c3b 159602002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 15961
048addec
JD
15962 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
15963 type definition of size_t.
8c609cff 15964
048addec 159652003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 15966
048addec
JD
15967 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
15968 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 15969
048addec 159702002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 15971
048addec
JD
15972 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
15973 to default to t.
fa634a5e 15974
048addec 159752002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 15976
048addec 15977 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 15978
048addec 159792002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 15980
7e26f91b 15981 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
048addec
JD
15982 allow building in a different directory than source. Uses some
15983 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 15984
048addec 159852002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 15986
048addec
JD
15987 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
15988 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
15989 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
15990 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 15991
048addec 159922002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 15993
048addec
JD
15994 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
15995 <scroll-down-aggressively>: Doc fix.
2155ecf3 15996
048addec
JD
15997 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
15998 string as pane name, if there is one.
15999 (set_frame_menubar): Save menu_items_n_panes from each call to
16000 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 16001
048addec
JD
16002 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
16003 Don't try to make last line fully visible if it is past end of window.
61f1d295 16004
048addec 160052002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 16006
048addec
JD
16007 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
16008 (mac_menu_show): Add support for hierarchical popup menus.
16009 (add_menu_item): Remove indentation support.
16010 (fill_submenu, fill_menu): Create hierarchical menus
16011 instead of using indentation.
0b17a217 16012
048addec 160132002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 16014
048addec
JD
16015 * xdisp.c (try_cursor_movement): Don't call try_window here.
16016 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 16017
048addec 16018 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 16019
048addec 160202002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 16021
048addec
JD
16022 * macterm.c (XTread_socket): Call KeyTranslate for control and
16023 meta to deal correctly shifted non-alpha characters, like C-S-5
7e26f91b 16024 being treated like C-%. Do not look for shift key to deal
048addec 16025 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 16026
048addec 160272002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 16028
048addec
JD
16029 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
16030 If it is non-nil, run timers. Use an unwind-protect to requeue
16031 the events that were read ahead.
16032 (popup_get_selection_unwind): New subroutine.
16033 (popup_get_selection_queue): File-scope variable now holds that queue.
16034 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
16035 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
16036 Use an unwind-protect to pop down the dialog box.
16037 (xdialog_show_unwind): New subroutine implements that.
f02cac82 16038
048addec
JD
16039 * xdisp.c (row_containing_pos): Change exit test using last_y.
16040 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 16041
048addec
JD
16042 * lread.c (load_error_handler): New function.
16043 (Fload): Handle errors in Fsubstitute_in_file_name.
16044 Don't expect Fsignal to return.
f02cac82 16045
048addec
JD
16046 * eval.c: Errors and throws work right with interrupt blocking.
16047 (struct catchtag): New elt interrupt_input_blocked.
16048 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
16049 (internal_catch, Fcondition_case, internal_condition_case)
16050 (internal_condition_case_1, internal_condition_case_2): Save it.
16051 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 16052
048addec 16053 * editfns.c (Fformat): Add parens.
f02cac82 16054
048addec
JD
16055 * dired.c (file_name_completion): Fix that change.
16056 Delete special quit-handling code; just use QUIT.
f02cac82 16057
b6189c3b 160582002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 16059
048addec
JD
16060 * dired.c (file_name_completion): Close directory on error
16061 just as in directory_files_internal.
1a590729 16062
048addec 160632002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 16064
048addec
JD
16065 * window.c (Fset_window_configuration): Set old_point to correct
16066 value when new_current_buffer == current_buffer.
f02cac82 16067
048addec 160682002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 16069
048addec
JD
16070 Revisited my earlier fix for the following entry in etc/PROBLEMS:
16071 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
16072 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 16073
048addec
JD
16074 These changes were in part based upon suggestions made by Peter
16075 'Luna' Runestig [peter@runestig.com].
9785d95b 16076
f4a5a485
SM
16077 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
16078 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
16079 (g_b_init_get_sid_identifier_authority ): Add several static
048addec 16080 global variables.
9785d95b 16081
048addec
JD
16082 * w32.c (globals_of_w32): New function. Used to initialize those
16083 global variables that must always be initialized on startup even
16084 when the global variable initialized is non zero. Its primary
16085 purpose at this time is to set the global variables
16086 g_b_init_is_windows_9x, g_b_init_open_process_token,
16087 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
16088 g_b_init_get_sid_identifier_authority to 0 on startup.
16089 Called from main.
9785d95b 16090
048addec
JD
16091 * w32.c (is_windows_9x): Perform initialization only if
16092 g_b_init_is_windows_9x is equal to 0. On initialization set
16093 g_b_init_is_windows_9x equal to 1.
2308af15 16094
048addec
JD
16095 * w32.c (open_process_token): Perform initialization only if
16096 g_b_init_open_process_token is equal to 0. On initialization set
16097 g_b_init_open_process_token equal to 1.
2308af15 16098
048addec
JD
16099 * w32.c (get_token_information): Perform initialization only if
16100 g_b_init_get_token_information is equal to 0. On initialization
16101 set g_b_init_get_token_information equal to 1.
9785d95b 16102
048addec
JD
16103 * w32.c (lookup_account_sid): Perform initialization only if
16104 g_b_init_lookup_account_sid is equal to 0. On initialization
16105 set g_b_init_lookup_account_sid equal to 1.
9785d95b 16106
048addec
JD
16107 * w32.c (get_sid_identifier_authority): Perform initialization
16108 only if g_b_init_get_sid_identifier_authority is equal to 0.
16109 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 16110
f63fd14e 16111 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
16112 those global variables that must always be initialized on startup
16113 even when the global variable initialized is non zero.
16114 Its primary purpose at this time is to initialize the global variable
16115 track_mouse_event_fn.
9785d95b 16116
a64387ee 16117 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 16118 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 16119
048addec 16120 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 16121
f63fd14e 16122 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
16123 initialize those global variables that must always be initialized
16124 on startup even when the global variable initialized is non zero.
16125 Its primary purpose at this time is to initialize the global
16126 variables get_menu_item_info and set_menu_item_info.
9785d95b 16127
048addec
JD
16128 * w32menu.c (initialize_frame_menubar): Remove initialization of
16129 get_menu_item_info and set_menu_item_info.
9785d95b 16130
048addec 16131 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 16132
048addec
JD
16133 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
16134 Declare them.
9785d95b 16135
048addec
JD
16136 * emacs.c (main): Call globals_of_w32 prior to calling
16137 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
16138 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
16139 is defined.
9785d95b 16140
048addec
JD
16141 * w32term.c (x_update_window_begin): Fix Windows API error
16142 detected by BoundsChecker. Test to determine if
16143 w32_system_caret_hwnd is NULL prior to attempting to use
16144 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 16145
048addec
JD
16146 * w32term.c (x_update_window_end): Fix Windows API error
16147 detected by BoundsChecker. Test to determine if
16148 w32_system_caret_hwnd is NULL prior to attempting to use
16149 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 16150
048addec 161512002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 16152
048addec
JD
16153 * coding.c (coding_system_require_warning): New variable.
16154 (syms_of_coding): DEFVAR it.
b6da19ef 16155
048addec 16156 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 16157
048addec
JD
16158 * fileio.c (choose_write_coding_system): Even if
16159 Vcoding_system_for_write is non-nil, if
16160 coding_system_require_warning is nonzero, call
16161 Vselect_safe_coding_system_function.
bfcf6dbe 16162
048addec 161632002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 16164
048addec
JD
16165 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
16166 (lisp): Add font-core.
2c568af5 16167
048addec 161682002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 16169
048addec
JD
16170 * textprop.c (text_read_only): New arg `propval'.
16171 (get_char_property_and_overlay): Remove unused var `next_overlay'.
16172 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 16173
048addec 161742002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 16175
048addec 16176 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 16177
048addec 161782002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 16179
048addec
JD
16180 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
16181 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
16182 Be more careful about when help_events are generated.
96720f09 16183
048addec 161842002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 16185
048addec
JD
16186 * macterm.c (mac_check_for_quit_char): Correctly set the
16187 modifiers of the event to 0.
16188 * mac.c (sys_select): Duplicate rfds before calling select to
16189 ensure that rfds survive the while loop.
e5ae1c49 16190
048addec 161912002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 16192
048addec
JD
16193 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
16194 row_containing_pos returned NULL.
2eb46b2d 16195
048addec 161962002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 16197
6bdb309a 16198 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 16199 non-blocking.
6bdb309a 16200 (sys_select): Fix sys_select to not use a timeout larger than
048addec 16201 the one given.
b11f1d8a 16202
048addec 162032002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 16204
048addec 16205 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 16206
048addec 162072002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 16208
048addec
JD
16209 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
16210 as the last thing.
a4ac5b17 16211
048addec 162122002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 16213
048addec 16214 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 16215
048addec 162162002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 16217
048addec
JD
16218 * editfns.c (Fformat): Handle precision in string conversion
16219 specifiers like libc functions do (ie, print at most that many
16220 characters).
85cce843 16221
048addec 162222002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 16223
048addec
JD
16224 * xdisp.c (row_containing_pos): Check more carefully
16225 whether charpos is really in the row before returning it.
0d4d26a7 16226
048addec 162272002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 16228
048addec 16229 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 16230
048addec
JD
16231 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
16232 each stack frame. This may change as it could be time consuming.
0d4d26a7 16233
048addec
JD
16234 * macterm.c (mac_check_for_quit_char, quit_char_comp)
16235 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 16236 (mac_initialize): Add code to check for pressing of quit_char
048addec 16237 in the OS event queue.
b11f1d8a 16238
048addec
JD
16239 * mac.c (sys_select): Call mac_check_for_quit_char every second
16240 while blocking on select.
0d4d26a7 16241
048addec
JD
16242 * mac.c (sys_read): Use sys_select to test for input first
16243 before calling read, to allow C-g to break.
9252f7bc 16244
048addec 162452002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 16246
048addec 16247 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 16248
048addec 16249 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 16250
048addec 16251 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 16252
048addec
JD
16253 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
16254 autoload.
9252f7bc 16255
048addec 16256 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 16257
048addec 16258 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 16259
048addec 162602002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 16261
048addec 16262 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 16263
048addec 162642002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 16265
048addec 16266 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 16267
048addec 16268 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 16269
048addec 16270 * alloca.c: Don't use #error.
02d588e2 16271
048addec 162722002-12-03 Dave Love <fx@gnu.org>
02d588e2 16273
048addec
JD
16274 * buffer.c (Qucs_set_table_for_input): New.
16275 (Fget_buffer_create): Use it.
16276 (Qset_buffer_major_mode_hook): Deleted.
16277 (Fset_buffer_major_mode): Revert previous change.
16278 (init_buffer_once): Intern ucs-set-table-for-input.
16279 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
16280 Add &Qucs_set_table_for_input.
451e2697 16281
048addec 162822002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 16283
048addec
JD
16284 * callint.c (Fcall_interactively): Use next_event only if less
16285 than key_count.
72742a99 16286
048addec 162872002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 16288
048addec
JD
16289 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
16290 names to 255 characters.
72742a99 16291
048addec
JD
16292 * macterm.c (XTread_socket): If all frames have been collapsed,
16293 expand the first one before handling drag-and-drop events.
72742a99 16294
048addec
JD
16295 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
16296 which is detected by autoconf.
40e6ff95 16297
048addec 162982002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 16299
048addec
JD
16300 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
16301 offset in two hints table to allow prebinding to be redone and
16302 allow the executable to be stripped.
c02138c6 16303
048addec 163042002-11-29 Dave Love <fx@gnu.org>
c02138c6 16305
048addec
JD
16306 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
16307 already provided.
0e47bbf7 16308
048addec 163092002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 16310
048addec
JD
16311 * xdisp.c (start_display): Check more intelligently for
16312 whether the line is continued.
16313 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 16314
048addec 163152002-11-28 Dave Love <fx@gnu.org>
44129dcb 16316
048addec
JD
16317 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
16318 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 16319
048addec 163202002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 16321
048addec
JD
16322 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
16323 more descriptive error output from lread.c:Fload upon most require
16324 cycles during boostrapping.
1637fd2c 16325
048addec 163262002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 16327
048addec
JD
16328 * fileio.c (Finsert_file_contents): Give a more appropriate error
16329 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 16330
048addec
JD
16331 * dired.c (Ffile_attributes): Don't return negative file sizes for
16332 files bigger than 2Gb when off_t is 32 bit.
540c2788 16333
048addec 163342002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 16335
048addec 16336 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 16337
048addec
JD
16338 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
16339 Test GETPGRP_VOID instead.
16340 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 16341
048addec
JD
16342 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
16343 Don't define.
16344 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 16345
048addec 16346 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 16347
048addec 163482002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 16349
048addec
JD
16350 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
16351 supported.
4042a81a 16352
048addec 163532002-11-25 Dave Love <fx@gnu.org>
4042a81a 16354
048addec 16355 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 16356
048addec 16357 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 16358
048addec 163592002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 16360
048addec 16361 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 16362
048addec 163632002-11-24 Steven Tamm <steventamm@mac.com>
82122254 16364
048addec
JD
16365 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
16366 determine the size of pointers alloced in unexed space instead
16367 of using possibly invalid emacs_zone pointers. This fixes the
16368 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 16369
048addec 163702002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 16371
048addec 16372 * search.c (Fstring_match): Doc fix.
c1ee53bc 16373
048addec
JD
16374 * callint.c (Fcall_interactively): If a command fails because
16375 `*' detects a read-only buffer, but RECORD_FLAG is set,
16376 record it anyway if the args don't actually do tty input.
5598c32e 16377
048addec 163782002-11-22 Dave Love <fx@gnu.org>
5598c32e 16379
048addec 16380 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 16381
048addec
JD
16382 * keyboard.c (interrupt_signal): Provide forward declaration.
16383 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 16384
048addec 16385 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 16386
048addec 163872002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 16388
048addec
JD
16389 * eval.c (interactive_p): Skip any number of bytecode
16390 and special form frames, in any order.
516eea8e 16391
048addec 163922002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 16393
048addec
JD
16394 * w32fns.c (convert_mono_to_color_image): New function.
16395 (xbm_load, xbm_load_image): Use it when foreground or background
16396 is explicitly set.
04dbfa08 16397
048addec 163982002-11-19 Dave Love <fx@gnu.org>
04dbfa08 16399
048addec 16400 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 16401
048addec 164022002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 16403
048addec
JD
16404 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
16405 (XPutPixel): Swap blue and red.
16406 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
16407 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
16408 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
16409 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 16410
048addec 164112002-11-18 Dave Love <fx@gnu.org>
d824beee 16412
048addec 16413 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 16414
048addec 16415 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 16416
048addec 16417 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 16418
048addec
JD
16419 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
16420 malloc, realloc, calloc.
d824beee 16421
048addec
JD
16422 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
16423 (bcmp): Don't define.
d824beee 16424
048addec 16425 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 16426
048addec 16427 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 16428
048addec 16429 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 16430
048addec 16431 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 16432
048addec
JD
16433 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
16434 Don't include alloca.h.
d824beee 16435
048addec 16436 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 16437
048addec 16438 * regex.c (_GNU_SOURCE): Don't define.
1998560a 16439
048addec 16440 * process.c (_GNU_SOURCE): Don't define.
1998560a 16441
048addec 16442 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 16443
048addec 164442002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 16445
048addec 16446 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 16447
048addec 164482002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 16449
048addec
JD
16450 * dispextern.h (struct face): Add `overstrike' field.
16451 * xterm.c (x_draw_glyph_string_foreground)
16452 (x_draw_composite_glyph_string_foreground): Implement overstriking.
16453 * xfaces.c (load_face_font): Set `face->overstrike' based on
16454 result from choose_face_font.
16455 (best_matching_font, choose_face_font): Add `needs_overstrike'
16456 argument, and use it to return whether overstriking is desirable
16457 for this face/font combo.
16458 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 16459
048addec 164602002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 16461
048addec
JD
16462 This change is my fix for the following entry in etc/PROBLEMS:
16463 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
16464 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 16465
048addec
JD
16466 * w32.c: Added wrapper functions around the win32 API functions
16467 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
16468 GetSidIdentifierAuthority. These wrapper functions serve two
16469 purposes:
16470 1. They ensure that the wrapped function can never be called
16471 when Emacs is running on an operating system on which they are
16472 not supported (Microsoft Windows 95 / 98 / ME).
16473 2. They call the wrapped functions via function pointers rather
16474 than calling them directly. This avoids taking advantage of the
16475 undocumented fact that although these functions are not supported
16476 in the 9x branch of Microsoft Windows, the functions do exist in
16477 the version of advapi32.dll that is found in the 9x branch of
16478 Microsoft Windows.
f60ae425 16479
6bdb309a 16480 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
16481 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
16482 and GetSidIdentifierAuthority with calls to the newly added
16483 wrapper functions.
f60ae425 16484
048addec
JD
16485 * w32.h: Added extern declarations for the following functions:
16486 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
16487 syms_of_w32menu, and void syms_of_fontset.
f60ae425 16488
6bdb309a 16489 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
16490 function pointer track_mouse_event_fn in the handler for the
16491 WM_SETFOCUS message.
3582b6a3 16492
6bdb309a 16493 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
16494 reinitialize the function pointers set_menu_item_info and
16495 get_menu_item_info.
f60ae425 16496
048addec 164972002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 16498
048addec
JD
16499 * sound.c: Added a partial implementation of play-sound-internal
16500 for Microsoft Windows. Added various #ifdef / #else / #endif
16501 code blocks to separate the code that will compile under
9fed2905 16502 Microsoft Windows from the code that is specific to GNU/Linux.
048addec 16503 Moved several blocks of code around to make this separation of code
9fed2905 16504 into Windows compatible and GNU/Linux compatible code blocks easier.
f60ae425 16505
048addec 16506 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 16507
048addec
JD
16508 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
16509 added support for play-sound-internal under Windows would be
16510 included in the build of Emacs.
517f42a0 16511
048addec 165122002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 16513
048addec 16514 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 16515
048addec 16516 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 16517
048addec 165182002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 16519
048addec
JD
16520 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
16521 (adjust_point_for_property): Move out of display and invisible even if
16522 we were already inside before (in case a property was added while
16523 we weren't looking). Be more careful when handling invisible props.
16524 Skip invisible text as if it really wasn't there at all.
aab83f91 16525
048addec 165262002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 16527
048addec
JD
16528 * w32term.c (x_draw_image_foreground)
16529 (w32_draw_image_foreground_1): Use standard copy and invert
16530 operations to draw images.
aab83f91 16531
048addec
JD
16532 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
16533 depth of 1.
16534 (xbm_read_bitmap_data): Invert bits as xbm is read in.
16535 (XPutPixel): Don't invert bits here.
a4478a76 16536
048addec 165372002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 16538
048addec
JD
16539 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
16540 (w32_draw_image_foreground_1): Handle image masks.
16541 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 16542
048addec
JD
16543 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
16544 (x_from_xcolors): Adjust RGB values for W32.
16545 (image_background, image_background_transparent)
16546 (postprocess_image, x_to_xcolors, x_disable_image)
16547 (x_build_heuristic_mask): Adapt for W32 and enable.
16548 (x_create_x_image_and_pixmap): Mark images with palettes as such.
16549 (xbm_load): Remove unused variable.
03670a65 16550
048addec 165512002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 16552
048addec 16553 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 16554
048addec 165552002-11-14 Dave Love <fx@gnu.org>
59daa29a 16556
048addec 16557 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 16558
048addec
JD
16559 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
16560 * xmenu.c (unuse_menu_items, digest_single_submenu):
16561 * xfns.c (x_put_x_image):
16562 * xdisp.c (message2_nolog, set_message):
16563 * undo.c (record_point):
16564 * terminfo.c (tparam):
16565 * syntax.c (scan_sexps_forward):
16566 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16567 * composite.c (update_compositions):
16568 * cm.c (calccost, cmgoto):
16569 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 16570
048addec 16571 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 16572
048addec
JD
16573 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
16574 Don't declare.
59daa29a 16575
048addec 16576 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 16577
048addec
JD
16578 * fns.c (Fcopy_sequence): Doc fix.
16579 (Fmap_char_table): Cast `call2'.
3947677c 16580
048addec
JD
165812002-11-14 Francesco Potorti` <pot@gnu.org>
16582
16583 * s/sol2-8.h: New file.
16584
165852002-11-14 Kim F. Storm <storm@cua.dk>
16586
16587 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
16588 dependency on `risky-local-variable' and the :propertize form.
16589
165902002-11-12 Stefan Monnier <monnier@cs.yale.edu>
16591
16592 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
16593
16594 * syntax.c (scan_sexps_forward): Undo last patch.
16595 Use a more obvious fix: check eob before updating the syntax table.
16596
165972002-11-09 Stefan Monnier <monnier@cs.yale.edu>
16598
16599 * syntax.c (scan_sexps_forward): Update syntax table before reading
16600 a char rather than after so we don't update the table past eob.
16601
166022002-11-09 Dave Love <fx@gnu.org>
16603
16604 * buffer.c (Fset_buffer_major_mode): Fix last change.
16605
16606 * regex.c (regexec): Fix pmatch declaration.
16607
16608 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
16609
16610 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
16611 to self-inserting characters.
16612 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
16613
16614 * coding.c (Vtranslation_table_for_input): New.
16615 (syms_of_coding): DEFVAR it.
16616
166172002-11-08 Juanma Barranquero <lektu@terra.es>
16618
16619 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
16620 window.
16621
166222002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16623
6bdb309a 16624 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
16625 cp, and i.
16626
166272002-11-06 Dave Love <fx@gnu.org>
16628
16629 * buffer.c (Qset_buffer_major_mode_hook): New.
16630 (Fset_buffer_major_mode): Use it.
16631
166322002-11-06 Richard M. Stallman <rms@gnu.org>
16633
16634 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
16635 and stop_polling.
16636
16637 * process.c (wait_reading_process_input):
16638 Test POLLING_PROBLEM_IN_SELECT, not hpux.
16639 Avoid initialization for auto Lisp_Object var.
16640
16641 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
16642
16643 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
16644
166452002-11-05 Richard M. Stallman <rms@gnu.org>
16646
16647 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
16648
16649 * callint.c (Fcall_interactively): New local filter_specs.
16650 (Fcall_interactively): Check for progn as well as let.
16651 Add a gcpro.
16652 (Qprogn): New variable.
16653 (syms_of_callint): Staticpro and init Qprogn.
16654
166552002-11-04 John Paul Wallington <jpw@shootybangbang.com>
16656
16657 * lread.c (Feval_buffer): Doc fix.
16658
166592002-11-04 Dave Love <fx@gnu.org>
16660
16661 * keyboard.c (read_char): Always translate iff
16662 Vkeyboard_translate_table is a char table and c is valid.
16663
16664 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16665 and fix C types.
16666
166672002-11-03 Stefan Monnier <monnier@cs.yale.edu>
16668
16669 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
16670
16671 * editfns.c (get_pos_property): Don't hardcode Qfield.
16672
16673 * keyboard.c (adjust_point_for_property): Handle `display' prop on
16674 overlays. Also handle `invisible' prop.
16675
166762002-11-02 Stefan Monnier <monnier@cs.yale.edu>
16677
16678 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
16679 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
16680
166812002-11-01 Andreas Schwab <schwab@suse.de>
16682
16683 * editfns.c (Fmessage): Revert last change to properly handle %%.
16684
166852002-11-01 Stefan Monnier <monnier@cs.yale.edu>
16686
16687 * xmenu.c (unuse_menu_items): New fun.
16688 (menu_items_inuse): New var.
16689 (syms_of_xmenu): Initialize it.
16690 (init_menu_items): Use it to detect re-entrance.
16691 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
16692 (Fx_popup_menu): Remove spurious XSETFRAME.
16693
16694 * editfns.c (find_field): Make an exception for nil fields.
16695
166962002-11-01 Dave Love <fx@gnu.org>
16697
16698 * m/gec63.h: Deleted.
16699
167002002-10-31 Dave Love <fx@gnu.org>
16701
16702 * xterm.c (XTread_socket): Fix last change.
16703 (xaw_scroll_callback): Cast call_data to long to avoid warning.
16704
167052002-10-31 Stefan Monnier <monnier@cs.yale.edu>
16706
16707 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
16708
167092002-10-30 Stefan Monnier <monnier@cs.yale.edu>
16710
16711 * editfns.c (overlays_around, get_pos_property): New funs.
16712 (find_field): Use them.
16713 Also be careful not to modify POS before its last use.
16714 (Fmessage): Don't Fformat if there's nothing to format.
16715
167162002-10-30 Dave Love <fx@gnu.org>
16717
16718 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
16719 [HAVE_PTY_H]; Include pty.h.
16720
16721 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
16722
16723 * xterm.c (Qeql): Declare.
16724 (Vx_keysym_table): New.
16725 (syms_of_xterm): Initialize it.
16726 (XTread_socket): Use it. Deal with ASCII keysyms.
16727 (XSetIMValues) [HAVE_X11R6]: Prototype.
16728
16729 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
16730 (lispy_kana_keys): Comment out.
16731 (make_lispy_event) [XK_kana_A]: Comment out.
16732 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
16733 Fix sprintf call.
16734
16735 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
16736 regexp.h change).
16737 (TERMINFO, LIBS_TERMCAP): Define.
16738
16739 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
16740 (bcmp): Define conditional on HAVE_BCMP.
16741 (NO_SIOCTL_H): Don't define.
16742 (TIOCSIGSEND): Don't make conditional on IRIX6.
16743
16744 * s/sol2-5.h: Don't include strings.h.
16745 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
16746
16747 * s/irix6-0.h (IRIX6): Don't define.
16748 (bcopy, bcmp, bzero): Don't undef.
16749
16750 * s/irix6-5.h: Don't include strings.h.
16751 (IRIX6): Don't define.
16752 (bcopy, bcmp, bzero): Don't undef.
16753
16754 * syntax.c (Fforward_comment): Doc fix.
16755
167562002-10-29 Kim F. Storm <storm@cua.dk>
16757
16758 * process.c (Fsignal_process): Allow PROCESS to be specified by
16759 name in addition to pid (as integer or string).
16760
167612002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
16762
16763 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
16764 environments.
16765
167662002-10-27 Kim F. Storm <storm@cua.dk>
16767
16768 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
16769
16770 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
16771
16772 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
16773
16774 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
16775
167762002-10-26 Richard M. Stallman <rms@gnu.org>
16777
16778 * editfns.c (Fformat): Detect invalid format letters for floats.
16779
167802002-10-25 Kenichi Handa <handa@m17n.org>
16781
16782 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
16783 (x_set_title): Likewise.
16784
167852002-10-25 Juanma Barranquero <lektu@terra.es>
16786
16787 * macgui.h:
16788 * w32gui.h: Remove definition of XColor.
16789
16790 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
16791
167922002-10-24 Kim F. Storm <storm@cua.dk>
16793
16794 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
16795 Callers changed (supply dummy arg).
16796
16797 * lisp.h (get_window_cursor_type): Update prototype.
16798
16799 * w32term.c (x_display_and_set_cursor): Get active_cursor from
16800 get_window_cursor_type to track system caret.
16801
168022002-10-24 Kim F. Storm <storm@cua.dk>
16803
16804 * process.c (Fformat_network_address): New function.
16805 (syms_of_process): Defsubr it.
16806 (list_processes_1): Use it to format :local/:remote address if
f9711de4 16807 service/host is not set; before Emacs would crash in that case.
048addec
JD
16808 (Fmake_network_process): Don't use Ffind_operation_coding_system
16809 to setup coding system if host or service is not set.
16810
168112002-10-23 Juanma Barranquero <lektu@terra.es>
16812
16813 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
16814
16815 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
16816 COLORREF.
16817
16818 * macgui.h:
16819 * w32gui.h: Add definition of XColor.
16820
16821 * macfns.c:
16822 * w32fns.c:
16823 * xfaces.c: Remove definition of XColor.
16824
168252002-10-22 Stefan Monnier <monnier@cs.yale.edu>
16826
16827 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
16828
16829 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
16830 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
16831 window if it is dedicated.
16832 (Fshrink_window): Add preserve_before as was done for enlarge_window.
16833 (Vspecial_display_function): Update docstring.
16834
16835 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
16836 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
16837 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
16838
168392002-10-21 Stefan Monnier <monnier@cs.yale.edu>
16840
16841 * casefiddle.c (casify_region): Don't treat a prefix char as part
16842 of a word when at the beginning.
16843
168442002-10-17 Juanma Barranquero <lektu@terra.es>
16845
16846 * lread.c (syms_of_lread): Fix typos.
16847
168482002-10-17 Dave Love <fx@gnu.org>
16849
16850 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
16851
168522002-10-16 Richard M. Stallman <rms@gnu.org>
16853
16854 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
16855
168562002-10-14 Juanma Barranquero <lektu@terra.es>
16857
16858 * w16select.c (syms_of_win16select): Fix docstring for
16859 `selection-coding-system'.
16860
16861 * w32select.c (syms_of_w32select): Likewise.
16862
168632002-10-14 Stefan Monnier <monnier@cs.yale.edu>
16864
16865 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
16866 a backslash-quoted char.
16867 (scan_lists, scan_sexps_forward): Pacify the compiler.
16868
168692002-10-13 Richard M. Stallman <rms@gnu.org>
16870
16871 * window.c (window_scroll): Set immediate_quit.
16872
16873 * print.c (print): When backquote form is the car of a list,
16874 output in old style. Use old_backquote_output to output all
16875 comma forms inside it in old style too.
16876
16877 * buffer.h (struct buffer): Move `undo_list' down below `name'.
16878
168792002-10-11 Markus Rost <rost@math.ohio-state.edu>
16880
16881 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
16882 batch mode).
16883
16884 * lread.c (Fload): Doc fix (load-suffixes).
16885
168862002-10-10 Steven Tamm <steventamm@mac.com>
16887
16888 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
16889 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
16890 Also switch the default to Qnil from Qt.
16891
168922002-10-08 Kenichi Handa <handa@m17n.org>
16893
16894 * coding.c (code_convert_region): When we need more GAP for
16895 conversion, pay attention to the case that coding->produced is not
16896 greater than coding->consumed.
16897
168982002-10-07 Richard M. Stallman <rms@gnu.org>
16899
16900 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
16901
169022002-10-06 Andrew Choi <akochoi@shaw.ca>
16903
16904 * macmenu.c (mac_menu_show): Add j to count menu items; match
16905 menu_item_selection to it to find selected item.
16906
169072002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16908
16909 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
16910 cases. The correct fix is to pass ReparentNotify to Xt.
16911 The shell widget interprets ConfigureNotify differently depending
16912 on if it has been reparented or not.
16913
169142002-10-05 Markus Rost <rost@math.ohio-state.edu>
16915
16916 * editfns.c (Fformat_time_string): Doc fix.
16917
169182002-10-05 John Paul Wallington <jpw@shootybangbang.com>
16919
16920 * fns.c (Flength): Doc fix.
16921
169222002-10-04 Stefan Monnier <monnier@cs.yale.edu>
16923
16924 * keyboard.c (keyremap): New struct.
16925 (read_key_sequence): Use it: globally replace keytran_foo with
16926 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
16927 keytran_next and fkey_next to just `next'.
16928
169292002-10-04 Steven Tamm <steventamm@mac.com>
16930
16931 * macterm.c (keycode_to_xkeysym_table): Change return to be
16932 treated like an X keysym.
16933
169342002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16935
16936 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
16937 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
16938 This is to also handle x/y changes that occur because of a resize.
16939
169402002-10-02 John Paul Wallington <jpw@shootybangbang.com>
16941
16942 * frame.c (Vdelete_frame_functions): New variable.
16943 (syms_of_frame): Initialize and defvar it.
16944 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
16945 it when frame's `tooltip' parameter is non-nil.
16946
16947 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
16948
16949 * w32fns.c (x_create_tip_frame): Likewise.
16950
16951 * macfns.c (x_create_tip_frame): Likewise.
16952
169532002-09-30 Kenichi Handa <handa@m17n.org>
16954
16955 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
16956 -1 before calling ccl_driver.
16957
16958 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
16959 Only when it is non-nil, handle composition sequence.
16960 (setup_coding_system) <0>: Don't force composition handling.
16961
16962 * Makefile.in (lisp, shortlisp): Add utf-16.elc
16963
169642002-09-29 Richard M. Stallman <rms@gnu.org>
16965
16966 * search.c (Freplace_match): Adjust match data for the substitution
16967 just made in the buffer.
16968
16969 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
16970 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
16971
169722002-09-27 Richard M. Stallman <rms@gnu.org>
16973
16974 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
16975 (read_char): Use them. Do all exits thru the end of the function.
16976
169772002-09-27 Kenichi Handa <handa@etl.go.jp>
16978
16979 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
16980 is nil.
16981
169822002-09-26 Richard M. Stallman <rms@gnu.org>
16983
16984 * regex.h (__restrict_arr): Don't define if already defined.
16985
16986 * coding.c (run_pre_post_conversion_on_str):
16987 Save and restore Vdeactivate_mark.
16988
169892002-09-26 John Paul Wallington <jpw@shootybangbang.com>
16990
16991 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
16992
169932002-09-26 Kenichi Handa <handa@etl.go.jp>
16994
16995 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
16996 nonzero, try face's family at first. Otherwise try FAMILY at first.
16997 (choose_face_font): If C is a single byte char or latin-1, call
16998 try_font_list with PREFER_FACE_FAMILY 1.
16999
170002002-09-21 Richard M. Stallman <rms@gnu.org>
17001
17002 * window.c (select_window_1): Don't select frame.
17003 Set frame's selected window only when frame itself is selected.
17004 (Fselect_window): Doc fix.
17005
170062002-09-18 Kim F. Storm <storm@cua.dk>
17007
17008 * process.c (make-network-process): Doc fix (there is no
17009 network-server-log-function hook).
17010
170112002-09-18 Richard M. Stallman <rms@gnu.org>
17012
17013 * print.c (print): Clear out the unused parts of Vprint_number_table.
17014 (syms_of_print): Doc fix for `print-number-table'.
17015
17016 * unexelf.c (unexec): Undo previous change.
17017
170182002-09-17 Andreas Schwab <schwab@suse.de>
17019
17020 * m/alpha.h [LINUX]: Don't define DATA_START.
17021
170222002-09-16 Dave Love <fx@gnu.org>
17023
17024 * unexelf.c (unexec): Deal with .got, reinstating change from
17025 25-08-1999.
17026
170272002-09-13 Richard M. Stallman <rms@gnu.org>
17028
17029 * s/sol2-6.h (UNEXEC): Comment out definition.
17030
17031 * unexsol.c (unexec): Don't downcase first letter of error msg.
17032
17033 * xfaces.c (Fcolor_supported_p): Just one arg is required.
17034
170352002-09-12 Markus Rost <rost@math.ohio-state.edu>
17036
17037 * unexsol.c: Include buffer.h, charset.h, coding.h.
17038
170392002-09-11 Richard M. Stallman <rms@gnu.org>
17040
17041 * unexsol.c: Don't use report_file_error; do it by hand
17042 using dlerror.
17043
17044 * process.c (wait_reading_process_input, both versions):
17045 Before calling turn_on_atimers, call stop_polling.
17046
17047 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
17048
17049 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
17050 we go to too_near_end, call clear_glyph_matrix.
17051 (redisplay_window): After make_cursor_line_fully_visible,
17052 call clear_glyph_matrix and bypass `goto done'.
17053
17054 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
17055 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
17056
170572002-09-10 Richard M. Stallman <rms@gnu.org>
17058
17059 * fileio.c (Fdo_auto_save): Catch error making directory.
17060 Only call push_message if we need to.
17061 At the same time, make an unwind-protect to pop it.
17062 Rename local message_p to old_message_p.
17063 (do_auto_save_make_dir, do_auto_save_eh): New functions.
17064 (do_auto_save_unwind): Don't call pop_message.
17065
17066 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
17067
17068 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
17069
17070 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
17071
17072 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
17073
170742002-09-10 Stefan Monnier <monnier@cs.yale.edu>
17075
17076 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
17077 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
17078 (re_match_2_internal): Be more careful with infinite loops.
17079
170802002-09-10 Kim F. Storm <storm@cua.dk>
17081
17082 * macros.c (end_kbd_macro): New function.
17083 (Fend_kbd_macro): Use it.
17084
17085 * macros.h (end_kbd_macro): Declare extern.
17086
17087 * keyboard.c (Fdiscard_input): If defining keyboard macro,
17088 end and save it instead of discarding it.
17089
170902002-09-09 Markus Rost <rost@math.ohio-state.edu>
17091
17092 * s/sol2-6.h: Fix typo. Add comment.
17093
170942002-09-09 Richard M. Stallman <rms@gnu.org>
17095
17096 * regex.c (regnum_t): Use signed int, not unsigned int.
17097
17098 * s/sol2-6.h: New file.
17099
17100 * s/sol2-5.h (UNEXEC): Definition deleted.
17101
171022002-09-08 Kim F. Storm <storm@cua.dk>
17103
17104 * macros.c (executing_macro_index): Change type to EMACS_INT.
9dd28cae 17105 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
048addec
JD
17106
17107 * macros.h (executing_macro_index): Change type to EMACS_INT.
17108
171092002-09-06 Richard M. Stallman <rms@gnu.org>
17110
17111 * casetab.c (set_case_table): Make canon table point to eqv table.
17112
171132002-09-06 Juanma Barranquero <lektu@terra.es>
17114
17115 * coding.c (syms_of_coding): Fix spacing.
17116
17117 * composite.c (Fcompose_region_internal)
17118 (Fcompose_string_internal): Likewise.
17119
17120 * data.c (Flsh): Likewise.
17121
17122 * fontset.c (Fset_fontset_font): Likewise.
17123
17124 * macfns.c (Fx_server_max_request_size): Likewise.
17125
17126 * w16select.c (syms_of_win16select): Likewise.
17127
17128 * w32select.c (syms_of_w32select): Likewise.
17129
17130 * xselect.c (syms_of_xselect): Likewise.
17131
171322002-09-05 Richard M. Stallman <rms@gnu.org>
17133
17134 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
17135 call EXTEND_RANGE_TABLE and return a proper value.
17136 (set_image_of_range): Don't call set_image_of_range_1
17137 if no TRANSLATE or if range includes all of Latin-1.
17138 Only call it for the Latin-1 part of the range.
17139 For other cases, make two separate ranges,
17140 one for the original specified characters and one for
17141 their case-conversions.
17142
171432002-09-04 Richard M. Stallman <rms@gnu.org>
17144
17145 * s/sol2-5.h (UNEXEC): Use unexsol.o.
17146
17147 * window.c (displayed_window_lines): Correct for one-off bug
17148 in HEIGHT on non-window displays.
17149
17150 * regex.c (set_image_of_range_1): New function.
17151 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
17152 Return a value to indicate running out of memory.
17153 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
17154 (extend_range_table_work_area): New subroutine.
17155 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
17156 Different calling conventions, and used from set_image_of_range{,_1}.
17157 (IMMEDIATE_QUIT_CHECK): Definitions moved.
17158
171592002-09-04 Juanma Barranquero <lektu@terra.es>
17160
17161 * makefile.w32-in: All dependencies updated.
17162
171632002-09-01 Richard M. Stallman <rms@gnu.org>
17164
17165 * unexsol.c: New file.
17166
17167 * xfns.c (Qbox): Declare external, don't define.
17168
17169 * xdisp.c (redisplay_window) <force-start case>:
17170 If point is on semi-visible last line, reposition
17171 it at previous line.
17172
17173 * alloc.c (display_malloc_warning): Use display-warning.
17174 (malloc_warning_1): Function deleted.
17175
17176 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
17177
17178 * lread.c (read1): Handle #! by skipping the line.
17179
171802002-08-31 Richard M. Stallman <rms@gnu.org>
17181
17182 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
17183 Don't include LDFLAGS.
17184 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
17185
171862002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
17187
17188 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
17189 member of x_display_info unless we compile for some window system.
17190
171912002-08-31 Kim F. Storm <storm@cua.dk>
17192
17193 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
17194 (get_window_cursor_type): Don't use them.
17195 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
17196
171972002-08-30 Kenichi Handa <handa@etl.go.jp>
17198
17199 * xdisp.c (get_next_display_element): Fix previous change.
17200
172012002-08-30 Andrew Choi <akochoi@shaw.ca>
17202
17203 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
17204 (expose_window): Use it to fix the display of overlapping
17205 rows (merge code from xterm.c).
17206
17207 * macfns.c (Qbox): Add extern declaration.
17208
172092002-08-30 Juanma Barranquero <lektu@terra.es>
17210
17211 * w32fns.c (Qbox): Make extern.
17212 (syms_of_w32fns): Remove initialization of Qbox.
17213
172142002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
17215
17216 * xfns.c (Fx_open_connection): Fix error message.
17217
172182002-08-30 Kim F. Storm <storm@cua.dk>
17219
17220 The following changes consolidates the handling of the cursor
17221 type in xdisp.c, moving duplicate code and functionality from
17222 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
17223
17224 * frame.h (enum text_cursor_kinds): Consolidated here.
17225 Added DEFAULT_CURSOR value.
17226 (struct frame) <desired_cursor, cursor_width>
17227 <blink_off_cursor, blink_off_cursor_width>: New fields.
17228 Consolidated from output_x, output_w32 and output_mac structs.
17229 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
17230 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
17231
17232 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
17233 Variables consolidated here.
17234 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
17235 (Vcursor_in_non_selected_windows): Renamed from
17236 cursor_in_non_selected_windows and changed to Lisp_Object.
17237 (syms_of_xdisp): Define and staticpro new and moved variables.
17238 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
17239 consolidated here. Recognize Qhollow setting.
17240 (set_frame_cursor_types): New function to set frame cursor types
17241 based on the frame parameters.
17242 (get_window_cursor_type): New function to calculate new cursor
17243 type and width for the specified window. Based on duplicated
17244 code consolidated here.
17245 Enhancements: cursor-in-non-selected-windows may be a cursor type,
17246 check buffer-local alternate-cursor-type and blink-cursor-alist
17247 before using built-in blink off methods.
17248
17249 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
17250
17251 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
17252 (get_specified_cursor_type, get_window_cursor_type)
17253 (set_frame_cursor_types): Added prototypes.
17254
17255 * macfns.c (x_specified_cursor_type): Removed.
17256 (x_set_cursor_type): Use set_frame_cursor_types.
17257 (Qbar, Qbox): Removed.
17258 (syms_of_macfns): Don't intern or staticpro them.
17259
17260 * macterm.c (x_specified_cursor_type): Remove prototype.
17261 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
17262 (x_display_and_set_cursor): Use get_window_cursor_type.
17263 Remove unused local variables cursor_non_selected, active_cursor.
17264 Redraw cursor if hbar cursor width changes.
17265 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
17266
17267 * macterm.h (enum text_cursor_kinds): Removed.
17268 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
17269 <blink_off_cursor, blink_off_cursor_width>: Members removed.
17270 (FRAME_DESIRED_CURSOR): Macro removed.
17271
17272 * w32fns.c (Vblink_cursor_alist): Removed.
17273 (Qbar, Qhbar, Qbox, Qhollow): Removed.
17274 (syms_of_w32fns): Don't intern, staticpro, or define them.
17275 (x_specified_cursor_type): Removed.
17276 (x_set_cursor_type): Use set_frame_cursor_types.
17277
17278 * w32term.c (x_specified_cursor_type): Remove prototype.
17279 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
17280 (x_display_and_set_cursor): Use get_window_cursor_type.
17281 Remove unused local variables cursor_off_state.
17282 Redraw cursor if hbar cursor width changes.
17283 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
17284
17285 * w32term.h (enum text_cursor_kinds): Removed.
17286 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
17287 <blink_off_cursor, blink_off_cursor_width>: Members removed.
17288 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
17289 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
17290 (struct w32_display_info) <x_highlight_frame>: Renamed member from
17291 w32_highlight_frame.
17292
17293 * xfns.c (Vblink_cursor_alist): Removed.
17294 (Qbar, Qhbar, Qbox, Qhollow): Removed.
17295 (syms_of_xfns): Don't intern, staticpro, or define them.
17296 (x_specified_cursor_type): Removed.
17297 (x_set_cursor_type): Use set_frame_cursor_types.
17298
17299 * xterm.c (x_specified_cursor_type): Remove prototype.
17300 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
17301 (x_display_and_set_cursor): Use get_window_cursor_type.
17302 Remove unused local variables cursor_off_state.
17303 Redraw cursor if hbar cursor width changes.
17304
17305 * xterm.h (enum text_cursor_kinds): Removed.
17306 (struct output_x) <current_cursor, desired_cursor, cursor_width>
17307 <blink_off_cursor, blink_off_cursor_width>: Members removed.
17308 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
17309 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
17310 (x_specified_cursor_type): Remove prototype.
17311
173122002-08-28 Richard M. Stallman <rms@gnu.org>
17313
17314 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
17315 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
17316 (Vblink_cursor_alist): New variable.
17317 (syms_of_w32fns): Initialize and defvar it.
17318 (x_specified_cursor_type): Recognize Qbox for filled box.
17319 Exceptions are hollow boxes.
17320 (Qbox, Qhollow): New variables.
17321 (syms_of_w32fns): Initialize and staticpro them.
17322
17323 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
17324 New macros.
17325 (struct w32_output): New fields blink_off_cursor,
17326 blink_off_cursor_width.
17327 (FRAME_CURSOR_WIDTH): New macro.
17328
17329 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
17330 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
17331
17332 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
17333 for bar cursor.
17334
17335 * w32term.c (expose_overlaps): New function.
17336 (expose_window): Use it to fix the display of overlapping rows.
17337
173382002-08-28 Simon Josefsson <jas@extundo.com>
17339
17340 * xfns.c (Fx_open_connection): Improve help when X connection
17341 fails, xhost is insecure and xauth is better.
17342
173432002-08-28 Juanma Barranquero <lektu@terra.es>
17344
17345 * makefile.w32-in: Add missing dependencies on w32term.h and
17346 composite.h.
17347
17348 * emacs.c (USAGE1): Add missing newline.
17349
173502002-08-27 Andrew Choi <akochoi@shaw.ca>
17351
17352 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
17353
173542002-08-27 Richard M. Stallman <rms@gnu.org>
17355
17356 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
17357 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
17358 (Vblink_cursor_alist): New variable.
17359 (syms_of_xfns): Initialize and defvar it.
17360 (x_specified_cursor_type): Recognize Qbox for filled box.
17361 Exceptions are hollow boxes.
17362 (Qbox, Qhollow): New variables.
17363 (syms_of_xfns): Initialize and staticpro them.
17364
17365 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
17366 New macros.
17367 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
17368
17369 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
17370 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
17371
17372 * emacs.c (main): Handle --script.
17373 (USAGE1): Mention --script.
17374 (standard_args): Define sort order for --script.
17375
173762002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
17377
17378 * xdisp.c (redisplay_updating_p): Variable removed.
17379 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
17380 New variables.
17381 (init_iterator): Don't free realized faces if
17382 inhibit_free_realized_faces is set.
17383 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
17384 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
17385 initialize Qinhibit_free_realized_faces.
17386
17387 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
17388 when iterator is adding glyphs to a glyph matrix.
17389
173902002-08-27 Kenichi Handa <handa@etl.go.jp>
17391
17392 * xdisp.c (get_next_display_element): In unibyte case, don't use
17393 octal form for such eight-bit characters that can be converted to
17394 multibyte char.
17395
173962002-08-26 Kim F. Storm <storm@cua.dk>
17397
b6189c3b
KS
17398 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
17399 foreground and background colors. From Joe Buehler.
048addec
JD
17400
174012002-08-26 Miles Bader <miles@gnu.org>
17402
17403 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
17404
174052002-08-25 Andrew Choi <akochoi@shaw.ca>
17406
17407 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
17408 defined instead of MAC_OSX.
17409
17410 * s/darwin.h (select): Define select to sys_select only if
17411 HAVE_CARBON is defined.
17412 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
17413 (DONT_REOPEN_PTY): #def it.
17414
17415 * macterm.c (XTread_socket): Remove code to call
17416 SendEventToEventTarget for keys with command modifiers when
17417 mac_command_key_is_meta is nil.
17418
174192002-08-24 Andreas Schwab <schwab@suse.de>
17420
17421 * eval.c (Fdefvar): Fix last change.
17422
174232002-08-23 Richard M. Stallman <rms@gnu.org>
17424
17425 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
17426 Record variables in load history as (defvar . VAR).
17427 (Fdefvar): Don't record in load history if no initial value.
17428 (Qdefvar): New variable.
17429 (syms_of_eval): Init and staticpro it.
17430
17431 * lread.c (syms_of_lread): Doc fix.
17432 (build_load_history): Use Fmember to see if a definition
17433 is already in the Vload_history element.
17434
17435 * process.c (Fstart_process): Remove /: from program name.
17436
17437 * emacs.c (decode_env_path): Don't add /: if file name handler
17438 has a `safe-magic' property.
17439
17440 * callproc.c (Fcall_process): Remove /: from program name.
17441
174422002-08-23 Stefan Monnier <monnier@cs.yale.edu>
17443
17444 * regex.c (PATFETCH): Remove the translating fetch.
17445 (PATFETCH_RAW): Rename to PATFETCH.
17446 (set_image_of_range): New fun.
17447 (SET_RANGE_TABLE_WORK_AREA): Use it.
17448 (regex_compile): Don't translate the pattern chars so eagerly.
17449 Only do it when inserting an `exactn' bytecode or when handling
17450 a char-range.
17451 (mutually_exclusive_p): Avoid empty statement.
17452
174532002-08-22 Kim F. Storm <storm@cua.dk>
17454
17455 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
17456 end up on a partially visible line; this reverts a specific part
17457 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
17458 display error which has been reported several times now.
17459 However it introduces the problem that changes was supposed to fix.
17460 See my comments in the source if you want to debug this further.
17461
174622002-08-20 Kenichi Handa <handa@etl.go.jp>
17463
17464 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17465
174662002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
17467
17468 * msdos.c (croak): Add `void' to definition.
17469
c1380aa6 17470 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
17471 Don't define them, they are defined in msdos.c.
17472
17473 * mem-limits.h [MSDOS]: Declare etext.
17474
17475 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
17476 `const' since CORRECT_DIR_SEPS modifies its target.
17477
174782002-08-19 Kim F. Storm <storm@cua.dk>
17479
2fb0ce67 17480 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
17481 KEEP-RECORD to avoid clearing lossage when we just want to clear
17482 the current key sequence (kmacro needs this).
17483
174842002-08-19 Kenichi Handa <handa@localhost>
17485
17486 * composite.c (run_composition_function): Call FUNC if it is fboundp.
17487
17488 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
17489 cons, return Qnil.
17490
174912002-08-17 Richard M. Stallman <rms@gnu.org>
17492
17493 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
17494
17495 * sysdep.c [!VMS]: Include sys/files.h.
17496
17497 * editfns.c (save_restriction_restore): Defend from unchained marker.
17498
17499 * buffer.c (overlays_at): Handle extending vec uniformly.
17500 (overlays_in): Handle extending vec from length 0 as in overlays_at.
17501
175022002-08-15 Andrew Choi <akochoi@shaw.ca>
17503
17504 * mac.c (init_mac_osx_environment): New function.
17505
17506 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
17507
175082002-08-14 Kim F. Storm <storm@cua.dk>
17509
17510 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
17511 executing macro before appending to it (when used from Lisp).
17512 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
17513 which is called prior to each iteration of macro (for kmacro.el).
17514 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
17515
17516 * lisp.h (Fexecute_kbd_macro): Update prototype.
17517
17518 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
17519
175202002-08-14 Kenichi Handa <handa@etl.go.jp>
17521
17522 * xselect.c (QUTF8_STRING): New variable.
17523 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
17524 (x_atom_to_symbol): Likewise.
17525 (x_get_local_selection): New argument local_request. If it is
17526 nonzero, call handler_fn with the second arg nil.
17527 (x_handle_selection_request): Call x_get_local_selection with
17528 local_request 0.
17529 (lisp_data_to_selection_data): Don't encode the string here.
17530 (Fx_get_selection_internal): Call x_get_local_selection with
17531 local_request 1.
17532 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
17533
17534 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
17535
17536 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
17537
175382002-08-13 Richard M. Stallman <rms@gnu.org>
17539
17540 * minibuf.c (Fminibufferp): New function.
17541 (syms_of_minibuf): Defsubr it.
17542 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
17543
175442002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
17545
17546 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
17547
175482002-08-12 Richard M. Stallman <rms@gnu.org>
17549
17550 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
17551 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
17552 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
17553 already.
17554
17555 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
17556
175572002-08-11 Andrew Choi <akochoi@shaw.ca>
17558
17559 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
17560 (Vmac_pass_command_to_system): New variable.
17561 (Vmac_pass_control_to_system): New variable.
17562 (do_mouse_moved): Check wp with is_emacs_window.
17563 (XTread_socket): Check window_ptr with is_emacs_window.
17564 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
17565 events back to Mac Toolbox for processing, depending on values of
17566 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
17567 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
17568 Vmac_pass_control_to_system.
17569
175702002-08-10 Kenichi Handa <handa@etl.go.jp>
17571
17572 * coding.c (unencodable_char_position): New function.
17573 (Funencodable_char_position): New function.
17574 (syms_of_coding): Defsubr Funencodable_char_position.
17575
175762002-08-10 Andrew Choi <akochoi@shaw.ca>
17577
17578 * mac.c (sys_select) [MAC_OSX]: New function.
17579
17580 * macterm.c (MakeMeTheFrontProcess): New function.
17581 (mac_initialize): Call MakeMeTheFrontProcess.
17582
17583 * s/darwin.h: Define select to sys_select.
17584
175852002-08-09 Richard M. Stallman <rms@gnu.org>
17586
17587 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
17588
175892002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
17590
17591 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
17592 end of the buffer.
17593
88fde92a 175942002-08-08 Ken Raeburn <raeburn@gnu.org>
048addec
JD
17595
17596 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
17597
17598 * puresize.h (BASE_PURESIZE): Increase to 910000.
17599
176002002-08-08 Kenichi Handa <handa@etl.go.jp>
17601
17602 * coding.c (Ffind_operation_coding_system): For write-region, if
17603 VISIT is a filename, make it the target.
17604
176052002-08-07 Richard M. Stallman <rms@gnu.org>
17606
17607 * alloc.c (mark_object): Detect long lists for debugging.
17608 (mark_object_loop_halt): New variable.
17609
17610 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
17611
17612 * data.c (Fmake_variable_frame_local): Doc fix.
17613
176142002-08-01 David Ponce <david@dponce.com>
17615
17616 * w32menu.c (local_heap, local_alloc, local_free): New macros.
17617 (malloc_widget_value, free_widget_value)
17618 (w32_free_submenu_strings): Use them.
17619
17620 (push_submenu_start, push_submenu_end, push_left_right_boundary)
17621 (push_menu_pane, push_menu_item, single_keymap_panes)
17622 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
17623 (single_submenu, set_frame_menubar)
17624 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
17625
17626 (Fx_popup_menu): Don't show pop up menu until preceding one is
17627 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
17628
17629 * w32menu.c: Changes adapted from xmenu.c
17630 (set_frame_menubar): First parse all submenus,
17631 then make widget_value trees from them.
17632 Don't allocate any widget_value objects
17633 until we are done with the parsing.
17634 (parse_single_submenu): New function.
17635 (digest_single_submenu): New function.
17636 (single_submenu): Function deleted, replaced by those two.
17637
176382002-08-04 Andrew Choi <akochoi@shaw.ca>
17639
17640 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
17641 returns a valid window pointer before proceeding for keyDown and
17642 autoKey events.
17643
176442002-08-03 Andrew Choi <akochoi@shaw.ca>
17645
17646 * macterm.c (USE_CARBON_EVENTS): New macro.
17647 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
17648 (x_iconify_frame): Call CollapseWindow.
17649 (Vmac_reverse_ctrl_meta): New variable.
17650 (Vmac_wheel_button_is_mouse_2): New variable.
17651 (init_mac_drag_n_drop): New function.
17652 (mac_do_receive_drag): New function.
17653 (mac_handle_service_event): New function.
17654 (init_service_handler): New function.
17655 (mac_to_emacs_modifiers): New function.
17656 (mac_event_to_emacs_modifiers): New function.
17657 (mac_get_mouse_btn): New function.
17658 (mac_convert_event_ref): New function.
17659 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
17660 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
17661 mac_get_mouse_btn.
17662 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
17663
17664 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
17665 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
17666 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
17667 TOOL_BAR_EVENT for MAC_OS as well.
17668 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
17669 as for WINDOWS_NT.
17670 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
17671
17672 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
17673
176742002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
17675
17676 * xdisp.c (forward_to_next_line_start): Fix a condition that
17677 lead to a newline being skipped.
17678
176792002-08-02 Andrew Choi <akochoi@shaw.ca>
17680
17681 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
17682
176832002-08-01 Richard M. Stallman <rms@gnu.org>
17684
17685 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
17686
176872002-07-31 Andrew Choi <akochoi@shaw.ca>
17688
17689 * macfns.c: #undef init_process before #define-ing it.
17690
17691 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
17692 HAVE_CARBON is defined.
17693
176942002-07-31 Richard M. Stallman <rms@gnu.org>
17695
17696 * xmenu.c (set_frame_menubar): First parse all submenus,
17697 then make widget_value trees from them.
17698 Don't allocate any widget_value objects
17699 until we are done with the parsing.
17700 (parse_single_submenu): New function.
17701 (digest_single_submenu): New function.
17702 (single_submenu): Function deleted, replaced by those two.
17703
177042002-07-30 Juanma Barranquero <lektu@terra.es>
17705
17706 * w32proc.c (syms_of_ntproc): Fix docstring of
17707 `w32-get-true-file-attributes'.
17708
177092002-07-28 Richard M. Stallman <rms@gnu.org>
17710
17711 * s/hpux8.h (HPUX8): Define this before including hpux.h.
17712 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
17713
17714 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
17715
17716 * keyboard.c (make_lispy_event):
17717 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
17718 Explicitly clear up_modifier in event->modifiers.
17719
177202002-07-27 Richard M. Stallman <rms@gnu.org>
17721
17722 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
17723
17724 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
17725 for bar cursor.
17726
177272002-07-26 Kenichi Handa <handa@etl.go.jp>
17728
17729 * coding.c (detect_coding_iso2022): While checking a byte sequence
17730 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
17731 it in the normal loop.
17732
177332002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
17734
17735 * xterm.c (expose_overlaps): New function.
17736 (expose_window): Use it to fix the display of overlapping rows.
17737
17738 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
17739
177402002-07-23 Ken Raeburn <raeburn@gnu.org>
17741
17742 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
17743 since it only depends on XUINT.
17744
17745 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
17746 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
17747 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
17748 Macros deleted.
3947677c 17749
77d1daf2
AS
17750 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
17751 its value over other approaches.
17752 * sysdep.c (start_of_data): Don't define the function if a macro
17753 form has been defined.
8a8e19a3 17754
048addec
JD
177552002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
17756
17757 * xdisp.c (redisplay_updating_p): New variable.
17758 (init_iterator): Don't free realized faces when
17759 redisplay_updating_p is set.
17760 (redisplay_internal): Set redisplay_updating_p while updating
17761 the display.
17762
177632002-07-23 Richard M. Stallman <rms@gnu.org>
17764
17765 * editfns.c (Fmessage): Treat "" like nil.
17766
177672002-07-23 Kenichi Handa <handa@etl.go.jp>
17768
17769 * xdisp.c (face_before_or_after_it_pos):
17770 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17771
177722002-07-22 Juanma Barranquero <lektu@terra.es>
17773
17774 * callproc.c (init_callproc) [DOS_NT]:
17775 Initialize Vshared_game_score_directory to nil.
17776 (syms_of_callproc) [DOS_NT]: Likewise.
17777
177782002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
17779
17780 * xdisp.c (display_line): Replace an abort with xassert.
17781
177822002-07-21 Richard M. Stallman <rms@gnu.org>
17783
17784 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
17785 and END_UNCHANGED when setting buffer_unchanged_p.
17786 Use current_matrix_up_to_date_p to decide whether to use
17787 try_cursor_movement.
17788
17789 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
17790
17791 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
17792
17793 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
17794 Set to nil if dir does not exist.
17795 (syms_of_callproc): Init unconditionally and simply.
17796
17797 * buffer.c (Fbuffer_list): Doc fix.
17798
177992002-07-21 Ken Raeburn <raeburn@gnu.org>
17800
17801 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
17802
17803 * buffer.c (mmap_realloc): When shrinking, make sure number of
17804 pages to unmap is rounded towards zero.
17805
17806 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
17807 (XSETINT): Deleted.
17808
17809 * m/att3b.h (XINT): Don't define.
17810 (VALBITS, VALMASK, XTYPE): Deleted.
17811 (DATA_SEG_BITS): Define.
17812 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
17813 ARRAY_MARK_FLAG): Deleted.
17814 (DATA_SEG_BITS): Define.
17815 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
17816 (DATA_SEG_BITS): Define.
17817
178182002-07-20 Richard M. Stallman <rms@gnu.org>
17819
17820 * print.c (print_error_message): New args CONTEXT and CALLER.
17821 Calls changed.
17822
17823 * lisp.h (print_error_message): Declare new args.
17824
17825 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
17826 and CONTEXT to print_error_message, don't print them here.
17827 For a Quit, don't use Vsignaling_function.
17828 Call message_log_maybe_newline.
17829
17830 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
17831
178322002-07-20 Kim F. Storm <storm@cua.dk>
17833
17834 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
17835
178362002-07-19 Ken Raeburn <raeburn@gnu.org>
17837
17838 * bytecode.c (struct byte_stack): Pointers into byte string now
17839 point to const.
17840 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
17841 const.
17842 * charset.h (BCOPY_SHORT): Source pointer now points to const.
17843 * coding.c (encode_eol, detect_coding, detect_eol):
17844 (decode_coding, encode_coding, detect_coding_system):
17845 Source strings now treated as const.
17846 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
17847 modify Lisp string contents.
17848 * coding.h (decode_coding, encode_coding, detect_coding,
17849 detect_eol): Declarations updated.
17850 * composite.c (compose_chars_in_text): Treat Lisp string contents
17851 as const.
17852 * dispnew.c (safe_bcopy): Source pointer now points to const.
17853 * lisp.h (STRING_COPYIN): New macro.
17854 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
17855 (internal_with_output_to_temp_buffer): Declarations updated.
17856 * print.c (temp_output_buffer_setup):
17857 (internal_with_output_to_temp_buffer): Buffer name argument is now
17858 pointer to const.
17859 * sound.c (struct sound_device): Function pointer field "write"
17860 buffer argument now points to const.
17861 (vox_write): Buffer argument points to const.
17862 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
17863 contents as const.
17864 * sysdep.c (emacs_write): Buffer pointer now const.
17865 * term.c (encode_terminal_code): Buffer pointer now const.
17866 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
17867 (x_face_list_fonts, x_update_menu_appearance):
17868 (hash_string_case_insensitive): Treat Lisp string contents as const.
17869
178702002-07-19 Juanma Barranquero <lektu@terra.es>
17871
048addec
JD
17872 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
17873
17874 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
17875 (Ffile_name_as_directory): Fix argument name in docstring.
17876 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
17877
178782002-07-18 Richard M. Stallman <rms@gnu.org>
17879
17880 * data.c (Fdefalias): Doc fix.
17881
178822002-07-17 Dave Love <fx@gnu.org>
17883
17884 * intervals.h (text_property_stickiness): Use P_.
17885
17886 * ccl.c: Remove `emacs' conditionals.
17887 (ccl_backtrace_table): Fix size spec.
17888 (ccl_driver): Fix type errors.
17889
178902002-07-16 Ken Raeburn <raeburn@gnu.org>
17891
17892 * alloc.c (xstrdup, make_string, make_unibyte_string)
17893 (make_multibyte_string, build_string): String pointer args now
17894 point to const.
17895 * charset.c (find_charset_in_text, c_string_width):
17896 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
17897 * fileio.c (report_file_error):
17898 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
17899 (count_combining_before, count_combining_after, insert_1_both):
17900 (insert, insert_and_inherit, insert_string):
17901 (insert_before_markers, insert_before_markers_and_inherit):
17902 * lread.c (intern, oblookup, hash_string):
17903 * minibuf.c (temp_echo_area_glyphs):
17904 * search.c (fast_c_string_match_ignore_case):
17905 * sysdep.c (emacs_open, set_file_times):
17906 * xfaces.c (xstricmp):
17907 * xdisp.c (store_frame_title, string_char_and_length):
17908 (message_dolog, message2, message2_nolog, set_message): Likewise.
17909 (set_message_1): Cast message string argument to const pointer.
17910 * editfns.c (general_insert_function): Insertion function now
17911 takes pointer to const for input data.
17912 * charset.h (find_charset_in_text, c_string_width):
17913 (parse_str_as_multibyte): Declarations updated.
17914 * dispextern.h (xstricmp): Declaration updated.
17915 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
17916 (count_size_as_multibyte, count_combining_before):
17917 (count_combining_after, insert_1, insert_1_both, message_dolog):
17918 (insert, insert_and_inherit, insert_before_markers)
17919 (insert_before_markers_and_inherit, set_message, message2):
17920 (message2_dolog, build_string, make_string, make_unibyte_string):
17921 (make_multibyte_string, intern, oblookup, report_file_error):
17922 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
17923 (emacs_open, xstrdup): Declarations updated.
17924 * systime.h (set_file_times): Declaration updated.
17925
17926 * charset.c (find_charset_in_text, lisp_string_width): Use const
17927 for pointer to lisp string data.
17928 * charset.h (FETCH_STRING_CHAR_ADVANCE):
17929 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
17930 * coding.c (Ffind_coding_systems_region_interval):
17931 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
17932 (Fmake_directory_internal, Fdelete_directory):
17933 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
17934 * fontset.c (font_family_registry, fs_query_fontset):
17935 (list_fontsets):
17936 * frame.c (Fframe_parameter):
17937 * keyboard.c (cmd_error_internal):
17938 * keymap.c (Fdescribe_buffer_bindings):
17939 * lread.c (complete_filename_p, openp):
17940 * minibuf.c (Fminibuffer_complete_word):
17941 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
17942 (face_before_or_after_it_pos, next_element_from_string):
17943 (get_overlay_arrow_glyph_row, display_mode_element):
17944 (decode_mode_spec_coding):
17945 * xterm.c (same_x_server): Likewise.
17946
17947 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
17948 settings of non-existent fields.
17949
17950 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
17951 copy a lisp value.
17952
17953 * lread.c (Fintern_soft): Use string macros instead of
17954 Lisp_String fields.
17955 * keyboard.c (echo_char, parse_modifiers_uncached):
17956 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
17957 * textprop.c (validate_interval_range, interval_of): Likewise.
17958
17959 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
17960
17961 * charset.h (FETCH_STRING_CHAR_ADVANCE)
17962 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
17963 XSTRING()->size_byte.
17964
17965 * lisp.h (SDATA, SREF): Produce rvalue.
17966 (SSET): New macro.
17967 * alloc.c (make_event_array): Use SSET for storing into a string.
17968 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
17969 a string.
17970 * casefiddle.c (casify_object): Use SSET.
17971 * charset.h (FETCH_STRING_CHAR_ADVANCE)
17972 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
17973 address of string contents.
17974 * data.c (Faref): Use SDATA.
17975 (Faset): Use SDATA, SSET.
17976 * dired.c (directory_files_internal): Use SSET.
17977 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
17978 (Fread_file_name): Use SREF, SSET.
17979 * fns.c (concat): Use SSET.
17980 (concat, Fdelete): Use SDATA.
17981 * insdel.c (insert_from_string_1): Use SDATA.
17982 * keyboard.c (Fevent_convert_list): Use SREF.
17983 * lread.c (Fload): Use SDATA, SSET.
17984 * macfns.c (validate_x_resource_name): Use SSET.
17985 * process.c (status_message): Use SSET.
17986 * search.c (wordify): Use SDATA.
17987 (Freplace_match): Use SREF.
17988 * w32fns.c (validate_x_resource_name): Use SSET.
17989 * xfns.c (validate_x_resource_name): Use SSET.
17990 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
17991
179922002-07-16 Richard M. Stallman <rms@gnu.org>
17993
17994 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
17995
17996 * xdisp.c (reconsider_clip_changes):
17997 Don't test prevent_redisplay_optimizations_p.
17998 (redisplay_internal): Test prevent_redisplay_optimizations_p
17999 along with clip_changed in some cases.
18000 (try_window_id): Likewise.
18001 (redisplay_window): New local var buffer_unchanged_p.
18002
18003 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
18004
18005 * process.c (create_process): Test USG_SUBTTY_WORKS.
18006 (process_send_signal): Clean up handling of GID.
18007 Detect errors in ioctls meant to set GID.
18008
18009 * window.c (temp_output_buffer_show):
18010 Don't set prevent_redisplay_optimizations_p.
18011
180122002-07-15 Juanma Barranquero <lektu@terra.es>
18013
18014 * eval.c (Fdefvaralias): Add docstring argument.
18015
180162002-07-15 Ken Raeburn <raeburn@gnu.org>
18017
18018 * lisp.h (STRING_INTERVALS): Produce rvalue.
18019 (STRING_SET_INTERVALS): New macro.
18020 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
18021 * fns.c (Fstring_as_multibyte): Likewise.
18022 * intervals.c (balance_possible_root_interval, delete_interval)
18023 (create_root_interval, copy_intervals_to_string): Likewise.
18024 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
18025 instead of 0.
18026
180272002-07-14 Ken Raeburn <raeburn@gnu.org>
18028
18029 * lisp.h (STRING_SET_CHARS): New macro.
18030 (SCHARS, SBYTES): Produce rvalues.
18031 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
18032 * fns.c (concat): Likewise.
18033 * lread.c (read_vector): Likewise.
18034
3419757d 18035 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 18036 (STRING_SET_UNIBYTE): New macro.
3419757d 18037 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
18038 length of -1) changed to use STRING_SET_UNIBYTE.
18039 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
18040 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
18041 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
18042 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
18043 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
18044 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
18045 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
18046 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
18047 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
18048 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
18049 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
18050 STRING_BYTES or indirection changed to SCHARS, SBYTES,
18051 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
18052 unchanged for now.
18053
180542002-07-13 Kim F. Storm <storm@cua.dk>
18055
18056 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
18057
180582002-07-12 Richard M. Stallman <rms@gnu.org>
18059
18060 * fileio.c (Fwrite_region): Doc fix.
18061
18062 * print.c (print_error_message): Don't handle Vsignaling_function here.
18063
18064 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
18065 (command_loop_1): Avoid certain actions after memory-full error.
18066
18067 * eval.c (Fsignal): Don't call cancel_hourglass.
18068 For a memory-full error, don't call Vsignal_hook_function
18069 and don't set Vsignaling_function.
18070
18071 * process.c (process_send_signal): Add abort call.
18072
180732002-07-11 Markus Rost <rost@math.ohio-state.edu>
18074
18075 * keymap.c (Fkey_binding): Fix typo.
18076
180772002-07-11 Richard M. Stallman <rms@gnu.org>
18078
18079 * alloc.c (Vmemory_full): New variable.
3419757d 18080 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
18081 Uses changed.
18082 (syms_of_alloc): Defvar them.
18083 (memory_full, buffer_memory_full): Set Vmemory_full.
18084
18085 * lisp.h (Vmemory_full): Add declaration.
18086 (current_column, indented_beyond_p): Change declaration.
18087
18088 * indent.c (last_known_column): Declare as double, not float.
18089 (current_column, current_column_1, string_display_width)
18090 (position_indentation): Return `double'.
18091 (indented_beyond_p): Arg `column' is `double'. Callers changed.
18092
18093 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
18094 (back_to_previous_visible_line_start)
18095 (reseat_at_next_visible_line_start, next_element_from_buffer):
18096 Use `double', not `float', when calling indented_beyond_p.
18097
3419757d 18098 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
18099
18100 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
18101
181022002-07-11 Juanma Barranquero <lektu@terra.es>
18103
18104 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
18105 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
18106 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
18107 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
18108 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
18109 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
18110
181112002-07-10 Juanma Barranquero <lektu@terra.es>
18112
d814862a
JB
18113 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
18114 All callers changed.
048addec
JD
18115
181162002-07-09 Stefan Monnier <monnier@cs.yale.edu>
18117
18118 * data.c (Fdefalias): Add an optional `docstring' argument.
18119 (set_internal, Fsetq_default): Use XCAR/XCDR.
18120
18121 * composite.c (HASH_VALUE, HASH_KEY):
18122 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
18123
181242002-07-09 Kenichi Handa <handa@etl.go.jp>
18125
18126 * callproc.c (Fcall_process): Fix previous change.
18127
181282002-07-07 Stefan Monnier <monnier@cs.yale.edu>
18129
18130 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
18131 Add support for hash-tables.
18132 (Ftry_completion): Return t even if the string appears multiple times.
18133
18134 * fns.c (Fnconc): Use XCDR.
18135 (Fprovide): Use CONSP and XCDR.
18136 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
18137 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
18138 (Fmake_hash_table): Accept `:size nil'.
18139 (Fmakehash): Delete: moved to subr.el.
18140 (syms_of_fns): Don't defsubr makehash.
18141
18142 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
18143 (HASH_TABLE_SIZE): Move from fns.c.
18144
181452002-07-07 Richard M. Stallman <rms@gnu.org>
18146
18147 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
18148 Instead just return 0 when there is something to be done.
18149 (try_scrolling): If make_cursor_line_fully_visible returns 0,
18150 retry scrolling as if cursor were off the bottom.
18151 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
18152 return CURSOR_MOVEMENT_MUST_SCROLL.
18153 (redisplay_window): If make_cursor_line_fully_visible returns 0,
18154 go to try_to_scroll.
18155
18156 * buffer.c (Fbuffer_local_value): Store current value into its binding
18157 so we get the up-to-date value for the binding that is loaded.
18158
18159 * eval.c (Fdefmacro): Doc fix.
18160
181612002-07-05 Dave Love <fx@gnu.org>
18162
18163 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
18164 correctly.
18165
18166 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
18167 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
18168 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
18169 CCL_LookupCharConstTbl.
18170 (syms_of_ccl): Defvar translation-hash-table-vector.
18171
181722002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18173
18174 * xdisp.c: Remove unused variable `face'.
18175
181762002-07-04 Juanma Barranquero <lektu@terra.es>
18177
18178 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
18179 obsolescence information.
18180
181812002-07-03 Andrew Choi <akochoi@shaw.ca>
18182
18183 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
18184 pattern. Search cache first.
18185 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
18186 for Japanese font.
18187 (XLoadQueryFont): Use it.
18188
181892002-07-02 Richard M. Stallman <rms@gnu.org>
18190
18191 * keymap.c (Fdefine_key): Doc fix.
18192
18193 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
18194
181952002-07-02 Juanma Barranquero <lektu@terra.es>
18196
18197 * keymap.c (syms_of_keymap): Fix typo.
18198
181992002-07-01 Andrew Choi <akochoi@shaw.ca>
18200
18201 * s/darwin.h: Define POSIX_SIGNALS.
18202
18203 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
18204 and FSRefMakePath to convert FSSpec returned with Apple Event to
18205 Posix pathname.
18206 (mac_initialize) [TARGET_API_MAC_CARBON]:
18207 Call init_required_apple_events and disable the `Quit' menu item
18208 provided automatically by the Carbon Toolbox.
18209
182102002-07-01 Dave Love <fx@gnu.org>
18211
18212 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18213 for K&R.
18214
18215 * xterm.c: Fix prototype for K&R.
18216
18217 * term.c (costs_set): Declare static, non-initialized for pcc.
18218
182192002-07-01 Richard M. Stallman <rms@gnu.org>
18220
18221 * keyboard.c (timer_last_idleness_start_time): New variable.
18222 (timer_start_idle): Set that.
18223 (read_key_sequence): Use that to reset timer_idleness_start_time
18224 to previous value.
18225
18226 * window.c (Frecenter): With arg, set optional_new_start.
18227
18228 * xdisp.c (redisplay_internal): Make optional_new_start really work.
18229
18230 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
18231 buffer for completion.
18232
182332002-06-29 Ken Raeburn <raeburn@gnu.org>
18234
18235 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
18236
182372002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18238
18239 * keyboard.c (readable_filtered_events): New function that filters
18240 FOCUS_IN_EVENT depending on parameter.
18241 (readable_events): Calls readable_filtered_events, not filtering
18242 FOCUS_IN_EVENT.
18243 (get_filtered_input_pending): New function, filtering parameter passed
18244 to readable_filtered_events.
18245 (get_input_pending): Calls get_filtered_input_pending, not filtering
18246 FOCUS_IN_EVENT.
18247 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
18248 FOCUS_IN_EVENT.
18249
18250 * xterm.h (struct x_output): Add focus_state.
18251
18252 * xterm.c (x_focus_changed): New function.
18253 (x_detect_focus_change): New function.
18254 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
18255 EnterNotify and LeaveNotify to track X focus changes.
18256
182572002-06-28 Andreas Schwab <schwab@suse.de>
18258
18259 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
18260
182612002-06-27 Kim F. Storm <storm@cua.dk>
18262
52eb0373 18263 * xdisp.c (mode_line_string_list, mode_line_string_face)
048addec
JD
18264 (mode_line_string_face_prop): New variables.
18265 (store_mode_line_string): New function.
18266 (display_mode_element): Use store_mode_line_string to
18267 add mode-line string elements to mode_line_string_list
18268 when mode_line_string_list is non-nil.
18269 (Fformat_mode_line): Now returns propertized string by
18270 default. New arg NO-PROPS to ignore properties.
18271 (decode_mode_spec): Only add two dashes for %- in propertized
18272 mode-line string.
18273 (syms_of_xdisp): Init and staticpro mode_line_string_list.
18274
182752002-06-27 Stefan Monnier <monnier@cs.yale.edu>
18276
18277 * minibuf.c (minibuffer_completion_contents): Add return type.
18278
182792002-06-27 Juanma Barranquero <lektu@terra.es>
18280
18281 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
18282
182832002-06-26 Juanma Barranquero <lektu@terra.es>
18284
18285 * fileio.c (read_file_name_cleanup): Add missing return.
18286
182872002-06-26 Richard M. Stallman <rms@gnu.org>
18288
18289 * window.c (Frecenter): Don't set force_start flag.
18290
18291 * minibuf.c (do_completion, Fminibuffer_complete_word)
18292 (Fminibuffer_completion_help): Complete just the text before point.
18293 (minibuffer_completion_contents): New function.
18294
18295 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
18296
18297 * frame.c (frames_bury_buffer): Function deleted.
18298
182992002-06-25 Miles Bader <miles@gnu.org>
18300
18301 * callint.c (Fcall_interactively): When checking to see if doprnt hit
18302 the end of callint_message, allow for a terminating '\0'.
18303
183042002-06-24 Juanma Barranquero <lektu@terra.es>
18305
52eb0373 18306 * w32select.c: Include composite.h.
048addec
JD
18307
18308 * w16select.c: Likewise.
18309
183102002-06-24 Kenichi Handa <handa@etl.go.jp>
18311
18312 * callproc.c (Fcall_process): If code detection is necessary,
18313 call detect_coding directly here.
18314
18315 * coding.c (detect_eol): Preserve coding->cmp_data.
18316
18317 * w16select.c (Fw16_get_clipboard_data):
18318 * w32fns.c (w32_to_x_font):
18319 * w32select.c (Fw32_get_clipboard_data):
18320 * xselect.c (selection_data_to_lisp_data):
18321 * xterm.c (XTread_socket): Disable composition handling.
18322
183232002-06-24 Stefan Monnier <monnier@cs.yale.edu>
18324
18325 * print.c (temp_output_buffer_setup): Kill all local variables.
18326
183272002-06-22 Stefan Monnier <monnier@cs.yale.edu>
18328
18329 * lread.c (Fread): Remove redundant and imprecise declaration.
18330
18331 * xfns.c (check_x_display_info): Use check_x_frame.
18332
18333 * .gdbinit (xprintsym): Use the new `xname' field.
18334 (xsymbol): Use it.
18335
183362002-06-22 Jason Rumney <jasonr@gnu.org>
18337
18338 * w32fns.c (file_dialog_callback): New function.
18339 (Fx_file_dialog): Allow selecting directories as well as files.
18340
183412002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18342
18343 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 18344 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
18345
183462002-06-17 Andrew Choi <akochoi@shaw.ca>
18347
18348 * macterm.c (mac_scroll_area): Set foreground and backcolor to
18349 black and white before scrolling. Restore frame background and
18350 foreground color after scrolling.
18351 (do_window_update): Call XClearWindow before calling expose_frame.
18352 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
18353 FRAME_FOREGROUND_PIXEL of frame.
18354
18355 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
18356 test Mac command key as <ALT> key.
18357
183582002-06-17 Stefan Monnier <monnier@cs.yale.edu>
18359
18360 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
18361
18362 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
18363 Lookup keys in function-key-map immediately so that key-translation-map
18364 can be applied earlier.
18365 Remove function_key_possible and key_translation_possible, replaced
18366 by checking `keytran_start < t'.
18367
18368 * .gdbinit (xsymbol): Use the new `xname' field.
18369
183702002-06-17 Andrew Choi <akochoi@shaw.ca>
18371
18372 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
18373 test Mac command key as <ALT> key.
18374
18375 * mac.c (do_applescript): Call initialize_applescript if necessary
18376 when first called. Dispose of result_desc only when there is no error.
18377 (Fdo_applescript): Use %d format specifier instead of %ld.
18378
183792002-06-16 Andrew Choi <akochoi@shaw.ca>
18380
18381 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
18382 of FrontWindow for cases keyDown and autoKey.
18383
18384 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
18385 Vdefault_fontset to Monaco with mac-roman coding.
18386
18387 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
18388 init_process before and after inclusion of Carbon/Carbon.h, resp.
18389
18390 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
18391 cursor_gc.
18392 (add_font_name_table_entry): New function.
18393 (init_font_name_table): Use add_font_name_table_entry; add italic,
18394 bold, and bold-italic entries for truetype fonts.
18395
18396 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
18397 for Mac too.
18398 (try_font_list) [MAC_OS]: If no font matches given registry, try
18399 fonts with any registry matching face_family.
18400 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
18401
18402 * s/darwin.h: If autoconf detects the Ncurses library, define
18403 LIBS_TERMCAP to -lncurses to use it.
18404
184052002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
18406
18407 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
18408
184092002-06-15 Richard M. Stallman <rms@gnu.org>
18410
18411 * window.c (Fset_window_configuration): Explicitly preserve
18412 the point value that new_current_buffer had at the start.
18413
184142002-06-14 Juanma Barranquero <lektu@terra.es>
18415
18416 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
18417 Fix typos.
18418
184192002-06-14 Kim F. Storm <storm@cua.dk>
18420
18421 * insdel.c (insert_1_both, insert_from_string_1)
18422 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
18423 insert happened in the end_unchanged region. Otherwise, the
18424 redisplay may be confused and duplicate the last line in the
18425 buffer [seen after save-buffer when require-final-newline==t].
18426
184272002-06-13 Jason Rumney <jasonr@gnu.org>
18428
18429 * w32.c (init_environment): Remove EMACSLOCKDIR.
18430 (stat): Swap _S_IFDIR and _S_IFREG.
18431
184322002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18433
18434 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
18435 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
18436 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
18437 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
18438 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
18439 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
18440 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
18441 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
18442 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
18443 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
18444 SELECTION_REQUEST_EVENT, selection_clear_event to
18445 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
18446 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
18447 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
18448 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
18449 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
18450 no_event to NO_EVENT.
18451
184522002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18453
18454 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
18455
184562002-06-12 Stefan Monnier <monnier@cs.yale.edu>
18457
18458 * intervals.c (textget): Don't forget to `return'.
18459 (lookup_char_property): Use XCAR/XCDR.
18460
184612002-06-12 Juanma Barranquero <lektu@terra.es>
18462
18463 * xdisp.c (Fformat_mode_line): Fix typo.
18464
184652002-06-12 Kim F. Storm <storm@cua.dk>
18466
18467 * xdisp.c (Fformat_mode_line): New function.
18468 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
18469 (store_frame_title_char, store_frame_title): Use unconditionally.
18470 (init_xdisp): Defsubr Fformat_mode_line.
18471 Initialize frame_title_buf etc. unconditionally.
18472
184732002-06-11 Stefan Monnier <monnier@cs.yale.edu>
18474
18475 * keyboard.c (read_key_sequence):
18476 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
18477 things through those maps after downcasing events.
18478 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
18479 applies after function-key-map.
18480 Make sure that keytran can be done in the middle in the sequence.
18481 Be careful not to throw away events past the one we downcase.
18482
18483 * lread.c (read_integer): Remove unused var `tem'.
18484 (read1): Fix int/Lisp_Object mixup.
18485
18486 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
18487
184882002-06-11 Richard M. Stallman <rms@gnu.org>
18489
18490 * keyboard.c (readable_events): Ignore any number of
18491 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
18492
184932002-06-09 Miles Bader <miles@gnu.org>
18494
18495 * xfaces.c (Ftty_supports_face_attributes_p): New function.
18496 (parse_rgb_list, tty_lookup_color): New functions.
18497 (tty_defined_color): Use `tty_lookup_color' to do all the work.
18498 (color_distance, Fcolor_distance): New functions.
18499 (TTY_SAME_COLOR_THRESHOLD): New macro.
18500 (Qtty_color_standard_values): New variable.
18501 (syms_of_xfaces): Initialize new vars & functions.
18502
185032002-06-08 Colin Walters <walters@verbum.org>
18504
18505 * textprop.c (Vchar_property_alias_alist): New variable.
18506 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
18507
18508 * intervals.c (lookup_char_property): New function for looking up
18509 overlay and text properties, created from textget.
18510 (textget): Use it.
18511
18512 * intervals.h (lookup_char_property): Declare.
18513 (Vchar_property_alias_alist): Declare.
18514
18515 * buffer.c (Foverlay_get): Use lookup_char_property.
18516
185172002-06-07 Sam Steingold <sds@gnu.org>
18518
18519 * xselect.c (lisp_data_to_selection_data): Fix last change:
18520 *data_ret is not a Lisp string, while unibyte_string is.
18521
185222002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
18523
18524 * xselect.c (lisp_data_to_selection_data): Fix last change:
18525 set size_ret.
18526
185272002-06-07 Andreas Schwab <schwab@suse.de>
18528
18529 * m/amdx86-64.h: New file.
18530
185312002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
18532
18533 * fns.c (Fstring_make_unibyte): Doc fix.
18534
18535 * xselect.c (lisp_data_to_selection_data): If the requested type
18536 is STRING, call string_make_unibyte to encode the selected text
18537 as a string.
18538
18539 * window.c (Fset_window_hscroll): Doc fix.
18540
185412002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18542
18543 * fileio.c (choose_write_coding_system):
18544 Call select-safe-coding-system properly.
18545
185462002-06-03 Richard M. Stallman <rms@gnu.org>
18547
18548 * xdisp.c (message_with_string): Error if STRING is not a string.
18549
18550 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
18551
18552 * fileio.c (choose_write_coding_system): Pass FILE arg to
18553 Vselect_safe_coding_system_function.
18554
185552002-06-03 Ken Raeburn <raeburn@gnu.org>
18556
18557 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
18558
185592002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
18560
18561 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
18562 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
18563 * keymap.c (describe_command): Likewise.
18564 * minibuf.c (read_minibuf): Likewise.
18565
18566 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
18567 Cast `current_column' return value to int.
18568 (back_to_previous_visible_line_start)
18569 (reseat_at_next_visible_line_start, next_element_from_buffer):
18570 Cast `indented_beyond_p' 3rd arg to float.
18571
18572 * indent.c (last_known_column): Now a float.
18573 (current_column_1, position_indentation, current_column)
18574 (string_display_width): Return float.
18575 (Fcurrent_column): Cast `current_column' return value to int.
18576 (Fcurrent_indentation): Cast `position_indentation' retval to int.
18577 (indented_beyond_p): Third arg now a float.
18578 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
18579
18580 * lisp.h (current_column): Now returns float.
18581 (indented_beyond_p): 3rd arg now a float.
18582
185832002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
18584
18585 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
18586 is Qcompound_text_with_extensions.
18587
18588 * xselect.c (lisp_data_to_selection_data): Always set selection
18589 type as string if x_encode_text returns streingp non-NULL.
18590
18591 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
18592
185932002-05-30 Richard M. Stallman <rms@gnu.org>
18594
18595 * window.c (Fset_window_configuration): Correct the handling
18596 of point in current buffer, to work with multiple windows.
18597
185982002-05-29 Colin Walters <walters@verbum.org>
18599
18600 * lread.c (Fread_from_string): Don't depend on order of evaluation
18601 for C function parameters.
18602
186032002-05-28 Richard M. Stallman <rms@gnu.org>
18604
18605 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
18606 way for blinked-off state and for a nonselected window.
18607
18608 * window.c (window_scroll_pixel_based): Don't call Fbolp;
18609 instead, see if the new start pos is at beginning of line.
18610
18611 * fileio.c (Fwrite_region): If START is a string, don't
18612 make any annotations.
18613
18614 * eval.c (syms_of_eval): Doc fix.
18615
186162002-05-28 Colin Walters <walters@debian.org>
18617
18618 * emacs.c (USAGE1): Add --no-splash.
18619 (standard_args): Ditto.
18620
186212002-05-28 Colin Walters <walters@gnu.org>
18622
18623 * lread.c (readchar_count): New variable.
18624 (readchar): Increment it.
18625 (unreadchar): Decrement it.
18626 (read_multibyte): Decrement it.
18627 (Vread_with_symbol_positions): New variable.
18628 (Vread_symbol_positions_list): New variable.
18629 (read_internal_start): New function, created from Fread and
18630 Fread_from_string. Handle Vread_symbol_positions_list and
18631 Vread_with_symbol_positions.
18632 (readevalloop, Fread, Fread_from_string): Use it.
18633 (read1): Use readchar_count to add symbol positions to
18634 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
18635 (syms_of_lread): DEFVAR_LISP and initialize them.
18636
18637 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
18638 (substitute_object_recurse, substitute_object_in_subtree)
18639 (substitute_in_interval): Prototype.
18640 (read_multibyte): Return c if it's less than zero.
18641
186422002-05-28 Kim F. Storm <storm@cua.dk>
18643
18644 * fileio.c (Fread_file_name_internal): Added brute-force
18645 speed up for using predicate file-directory-p.
18646
186472002-05-28 Kim F. Storm <storm@cua.dk>
18648
18649 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
18650 New variables.
18651 (syms_of_fileio): DEFVAR_LISP them.
18652 (read_file_name_cleanup): New unwind function.
18653 (Fread_file_name_internal): Only return completions satifying
18654 Vread_file_name_predicate. Temporarily unwind protect and rebind
18655 default-directory while checking completions against the predicate.
18656 (Fread_file_name): Added PREDICATE argument. Specbind it to
18657 Vread_file_name_predicate during completion.
18658 Call Vread_file_name_function to read the file name if non-nil.
18659
18660 * lisp.h (Fread_file_name): Now has 6 args.
18661
18662 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
18663 predicate for Fread_file_name when reading directory name.
18664 Supply Qnil for predicate in other calls to Fread_file_name.
18665
186662002-05-26 Miles Bader <miles@gnu.org>
18667
18668 * term.c (tty_capable_p): New function.
18669 * dispextern.h (tty_capable_p): New function declaration.
18670 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
18671 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
18672
186732002-05-23 Stefan Monnier <monnier@cs.yale.edu>
18674
18675 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
18676 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
18677 (Vwrite_region_annotate_functions): Docstring fix.
18678
186792002-05-23 Kim F. Storm <storm@cua.dk>
18680
18681 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
18682 phys_cursor's hpos is overwritten. This is still not completely
18683 correct, as it doesn't really make sense to use hpos at all to
18684 get the cursor glyph (as that is relative to the width of the
18685 characters on the line, which may have changed during the update).
18686
186872002-05-22 Jason Rumney <jasonr@gnu.org>
18688
18689 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
18690 Lisp_Object.
18691 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
18692 Use modified enumfont_t struct.
18693
18694 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
18695
18696 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
18697 Handle the `hbar' cursor type.
18698 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
18699
18700 * w32fns.c (Qhbar): New variable.
18701 (x_specified_cursor_type): Use it.
18702
187032002-05-21 Ken Raeburn <raeburn@gnu.org>
18704
18705 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
18706 now, when the address is needed.
18707
187082002-05-21 Colin Walters <walters@gnu.org>
18709
18710 * Makefile.in (shortlisp): Add font-core.el.
18711
187122002-05-20 Richard M. Stallman <rms@gnu.org>
18713
18714 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
18715
18716 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
18717 equivalent key bindings here.
18718
187192002-05-20 Ken Raeburn <raeburn@gnu.org>
18720
18721 Change symbol structure to contain a lisp object for the symbol
18722 name:
18723 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
18724 object field named "xname".
18725 (SYMBOL_NAME): New macro.
18726 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
18727 name field.
18728 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
18729 (mark_object, gc_sweep): Use symbol xname field and XSTRING
18730 instead of name field.
18731 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
18732 SYMBOL_NAME instead of XSYMBOL and name field.
18733 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
18734 instead of XSYMBOL and name field.
18735 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
18736 and SYMBOL_NAME instead of XSYMBOL and name field.
18737 * coding.c (Fread_coding_system, code_convert_region1)
18738 (code_convert_string1, code_convert_string_norecord)
18739 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
18740 XSYMBOL and name field.
18741 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
18742 (Fmake_variable_buffer_local, Fmake_local_variable)
18743 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
18744 of XSYMBOL and name field.
18745 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
18746 XSYMBOL and name field.
18747 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
18748 instead of XSYMBOL and name field.
18749 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
18750 XSYMBOL and name field.
18751 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
18752 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
18753 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
18754 instead of XSYMBOL and name field.
18755 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
18756 (parse_modifiers, apply_modifiers, Fevent_convert_list)
18757 (parse_solitary_modifier, Fexecute_extended_command):
18758 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
18759 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
18760 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
18761 of XSYMBOL and name field.
18762 (describe_command, describe_translation): Use SYMBOL_NAME and
18763 assignment instead of XSYMBOL and name field and XSETSTRING.
18764 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
18765 instead of XSYMBOL and name field.
18766 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
18767 name field and XSETSTRING.
18768 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
18769 of XSYMBOL and name field.
18770 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
18771 assignment instead of XSYMBOL and name field and XSETSTRING.
18772 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
18773 XSTRING instead of XSYMBOL and name field.
18774 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
18775 and XSTRING instead of XSYMBOL and name field.
18776 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
18777 and XSTRING instead of XSYMBOL and name field.
18778 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
18779 XSTRING instead of XSYMBOL and name field.
18780 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
18781 of XSYMBOL and name field.
18782 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
18783 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
18784
187852002-05-19 Ken Raeburn <raeburn@gnu.org>
18786
18787 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
18788 and XCDR real rvalues in most configurations.
18789
18790 * buffer.c (fix_overlays_in_range, fix_overlays_before):
18791 Don't take the address of the cdr part of a cons cell; instead, track
18792 the parent cell and call XSETCDR, or set the variable for the head
18793 of the list if we haven't started down the list yet.
18794
187952002-05-19 Richard M. Stallman <rms@gnu.org>
18796
18797 * doc.c (reread_doc_file): Don't ask for confirmation.
18798
187992002-05-18 Jason Rumney <jasonr@gnu.org>
18800
18801 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
18802 (xbm_load_image): Use it.
18803 (xbm_load): Ditto.
18804 (xbm_read_bitmap_data): Reverted to xfns.c version.
18805 From David Ponce <david@dponce.com>.
18806
188072002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
18808
18809 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
18810 2.02 and later.
18811
188122002-05-16 Juanma Barranquero <lektu@terra.es>
18813
18814 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
18815
188162002-05-15 Stefan Monnier <monnier@cs.yale.edu>
18817
18818 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
18819 meaningful test.
18820 (read_char_minibuf_menu_prompt): Fix typo.
18821
188222002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
18823
18824 * eval.c (Fcommandp): Doc fix.
18825
188262002-05-13 Stefan Monnier <monnier@cs.yale.edu>
18827
18828 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
18829 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
18830 (Fset_keymap_parent): Gcpro a bit more.
18831 (access_keymap): Gcpro around meta_map call and around the main loop.
18832 (get_keyelt): Gcpro when following indirect references.
18833 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
18834 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
18835 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
18836 Remove useless ad-hoc remap code.
18837
188382002-05-13 Richard M. Stallman <rms@gnu.org>
18839
18840 * search.c (search_buffer): Give up boyer moore search if inverse
18841 translation change charset_base.
18842
188432002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
18844
18845 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
18846 characters is carried over from the previous block of text, adjust
18847 coding->produced to account for the extra character.
18848
188492002-05-11 Andreas Schwab <schwab@suse.de>
18850
18851 * coding.c (intersection): Keep the elements of the returned list
18852 in the same order as in the first list.
18853
188542002-05-11 Kim F. Storm <storm@cua.dk>
18855
3419757d 18856 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
18857 only update cmm_size if realloc actually succeeds.
18858 Testing with initial size of 2 elements revealed that using
18859 realloc on GNU/Linux would cause a random trap in xmalloc
18860 later on, so I rewrote the code to use malloc/bcopy/free instead
18861 of realloc.
18862
188632002-05-10 Jason Rumney <jasonr@gnu.org>
18864
18865 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
18866
188672002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
18868
18869 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
18870 parens, to ensure correct evaluation order.
18871
188722002-05-10 Kim F. Storm <storm@cua.dk>
18873
18874 * keymap.c (Vemulation_mode_map_alists): New variable.
18875 (syms_of_keymap): DEFVAR_LISP it.
18876 (current_minor_maps): Process keymap alists in that list before
18877 minor-mode-overriding-map-alist and minor-mode-map-alist.
18878
188792002-05-09 Richard M. Stallman <rms@gnu.org>
18880
18881 * search.c (Freplace_match): Doc fix.
18882
188832002-05-09 Kim F. Storm <storm@cua.dk>
18884
18885 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
18886 Enlarge cursor rectangle drawn around image with non-zero relief.
18887
18888 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
18889 Enlarge cursor rectangle drawn around image with non-zero relief.
18890
18891 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
18892 Enlarge cursor rectangle drawn around image with non-zero relief.
18893
188942002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
18895
18896 * xselect.c (lisp_data_to_selection_data): Don't set selection
18897 type if comes from the Lisp object's car. If the selection
18898 contains a pure ASCII text, always return QSTRING as its type.
18899
189002002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18901
18902 * mac.c (mac-cut-function): Doc fix.
18903
189042002-05-05 Richard M. Stallman <rms@gnu.org>
18905
18906 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
18907
189082002-05-04 Jason Rumney <jasonr@gnu.org>
18909
18910 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
18911 for event-click-count.
18912
18913 * process.c (init_process): Only add server subfeature if we can
18914 use non-blocking I/O.
18915
189162002-05-04 Andrew Choi <akochoi@shaw.ca>
18917
18918 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
18919 repeatedly.
18920
189212002-05-03 Jason Rumney <jasonr@gnu.org>
18922
18923 * process.c (Fmake_network_process): Only support server sockets
18924 when we can make them non-blocking.
18925
18926 * s/ms-w32.h (HAVE_SELECT): Define.
18927
18928 * w32.h (FILE_NDELAY): New flag.
18929
18930 * w32.c (sys_getpeername, fcntl): New functions.
18931 (_sys_read_ahead): Temporarily block on non-blocking sockets.
18932
2d4713aa 18933 * w32proc.c: Include sys/file.h.
048addec
JD
18934
189352002-05-03 Colin Walters <walters@verbum.org>
18936
18937 * callproc.c (Vgame_score_directory): Renamed to
18938 Vshared_game_score_directory.
18939
189402002-04-30 Richard M. Stallman <rms@gnu.org>
18941
18942 * s/gnu.h [emacs]: Include stdio.h.
18943 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
18944
18945 * eval.c (do_autoload): Error if called while preparing to dump.
18946
18947 * fns.c (Frequire): Error if need to load while preparing to dump.
18948
189492002-04-28 Colin Walters <walters@verbum.org>
18950
18951 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
18952 Default to "~/.emacs.d/games".
18953
189542002-04-29 Stefan Monnier <monnier@cs.yale.edu>
18955
18956 * lread.c (openp): Change arg exec_only to predicate.
18957 (build_load_history): Use XCAR/XCDR.
18958 (Flocate_file_internal): New fun.
18959 (syms_of_lread): Defsubr it.
18960 (Fload): Update call to openp.
18961
18962 * lisp.h (openp): Update prototype.
18963
18964 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
18965 * w32proc.c (sys_spawnve):
18966 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
18967 * w32.c (check_windows_init_file):
18968 * sound.c (Fplay_sound_internal):
18969 * process.c (Fstart_process):
18970 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
18971 * mac.c (run_mac_command):
18972 * emacs.c (init_cmdargs):
18973 * callproc.c (Fcall_process): Update call to openp.
18974
18975 * textprop.c (remove_properties): Don't use XCAR without CONSP.
18976
18977 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
18978
189792002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18980
18981 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
18982 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
18983
189842002-04-28 Richard M. Stallman <rms@gnu.org>
18985
18986 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
18987
18988 * eval.c (Fcommandp): New arg for_call_interactively.
18989 * lisp.h (Fcommandp): Declare new arg.
18990
189912002-04-28 Jason Rumney <jasonr@gnu.org>
18992
18993 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
18994
18995 * w32.c (stat, fstat): Use file index information to generate
18996 inodes for directories where available.
18997
189982002-04-26 Andrew Choi <akochoi@shaw.ca>
18999
19000 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
19001 [HAVE_CARBON]: Include Mac object files.
19002
19003 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
19004 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
19005 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
19006 MAC_OSX, and MAC_OS instead of macintosh.
19007
19008 * editfns.c [MAC_OS8]: Include stdio.h.
19009
19010 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
19011
19012 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
19013 Apple Monaco.
19014
78819ebb 19015 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
19016 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
19017 calling select.
19018
19019 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
19020
19021 * tparam.c [MAC_OSX]: Don't define BC and UP.
19022
19023 * config.in [HAVE_CARBON]: Add.
19024
19025 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
19026 Move here from mac/src and mac/inc.
19027
19028 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
19029
190302002-04-26 Gerd Moellmann <gerd@gnu.org>
19031
19032 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
19033 Compute phys_cursor_width from the x position returned
19034 by x_draw_glyhs, which is cheaper.
19035 (x_display_and_set_cursor): Compute the buffer-local value
19036 of `cursor-in-non-selected-windows' only when needed.
19037
190382002-04-25 Gerd Moellmann <gerd@gnu.org>
19039
19040 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
19041 cursor on a stretch glyph has a width that depends on
19042 x_stretch_cursor_p.
19043
190442002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19045
19046 * abbrev.c (abbrev-start-location): Doc fix.
19047
19048 * indent.c (Fvertical_motion): Fix last change.
19049
190502002-04-25 Gerd Moellmann <gerd@gnu.org>
19051
19052 * indent.c (Fvertical_motion): Move to the start of the line
19053 containing PT before moving up or down.
19054
190552002-04-24 Gerd Moellmann <gerd@gnu.org>
19056
19057 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
19058 case of writing a whole row, more or less analogous to the case of
19059 writing only parts of a row.
19060
19061 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
19062 0 for NO_CURSOR.
19063
19064 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
19065
190662002-04-23 Colin Walters <walters@verbum.org>
19067
19068 * buffer.c (syms_of_buffer): Doc fix.
19069
190702002-04-23 Gerd Moellmann <gerd@gnu.org>
19071
19072 * xterm.c (notice_overwritten_cursor): Handle the special case
19073 of the cursor being in the first blank non-text line at the
19074 end of a window.
19075
19076 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
19077 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
19078 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
19079 bar cursors only, to make phys_cursor_width contain what its name
19080 suggests.
19081 (notice_overwritten_cursor): Consider the cursor image erased if
19082 the output area intersects the cursor image in y-direction.
19083
190842002-04-23 Simon Marshall <simon@gnu.org>
19085
19086 * xfns.c (x_set_mouse_color): Change default for cross_cursor
19087 to XC_hand2.
19088
190892002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19090
19091 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
19092
190932002-04-22 Kim F. Storm <storm@cua.dk>
19094
19095 * textprop.c (remove_properties): Fixed trap for malformed plist.
19096
190972002-04-22 Richard M. Stallman <rms@gnu.org>
19098
19099 * cmds.c (Fend_of_line): Handle intangible text in mid line.
19100
19101 * window.c (make_window): Initialize height_fixed_p,
19102 last_cursor_off_p, and p->cursor_off_p slots.
19103
191042002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19105
19106 * fns.c (use-dialog-box): Doc fix.
19107
191082002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19109
19110 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
19111 variables `row', `i' and `area'.
19112 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
19113 toolkit library.
19114
191152002-04-19 Stefan Monnier <monnier@cs.yale.edu>
19116
19117 * xfaces.c (clear_font_table): Don't free the default font of
19118 a frame even if it's on another display.
19119 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
19120 that could be Qt.
19121
191222002-04-19 Juanma Barranquero <lektu@terra.es>
19123
19124 * indent.c (Fmove_to_column): Remove unused local variable
19125 `next_boundary_byte'.
19126 (current_column_1): Likewise.
19127
191282002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
19129
19130 * msdos.c (Qhbar): New variable.
19131 (syms_of_msdos): Intern and staticpro it.
19132 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
19133 cursor type.
19134
191352002-04-19 Dave Lambert <dlambert@acm.org>
19136
19137 Theses change implement an underscore-like (`hbar') cursor.
19138
19139 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
19140
19141 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
19142 Handle the `hbar' cursor type.
19143 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
19144
19145 * xfns.c (Qhbar): New variable.
19146 (syms_of_xfns): Intern and staticpro it.
19147 (x_specified_cursor_type): Handle `hbar' cursor.
19148
19149 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
19150 not defined.
19151
191522002-04-18 Richard M. Stallman <rms@gnu.org>
19153
19154 * textprop.c (remove_properties): New arg LIST allows scanning
19155 either a list or a plist.
19156 (interval_has_some_properties_list): New function, like
19157 interval_has_some_properties using list instead of plist.
19158 All callers changed.
19159 (Fremove_list_of_text_properties): New function.
19160 (syms_of_textprop): Defsubr it.
19161
191622002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
19163
19164 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
19165
191662002-04-17 Juanma Barranquero <lektu@terra.es>
19167
19168 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
19169
191702002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
19171
19172 * window.c (coordinates_in_window): Don't report on margin area
19173 if its width is zero.
19174
191752002-04-16 Jason Rumney <jasonr@gnu.org>
19176
19177 * w32fns.c (Fx_file_dialog): Decode file name before using.
19178
19179 * w32term.c (construct_drag_n_drop): Likewise.
19180
191812002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
19182
19183 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
19184 store load-history in pure space.
19185
19186 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
19187
191882002-04-16 Stefan Monnier <monnier@cs.yale.edu>
19189
19190 * xterm.c (Qlatin_1, Qutf_8): New vars.
19191 (syms_of_xterm): Initialize them.
19192 (XTread_socket): Eliminate incorrect optimization that tried to avoid
19193 decoding the output of X*LookupString.
19194 Always use latin-1 to decode the output of XLookupString.
19195 Try Xutf8LookupString if XmbLookupString failed.
19196
19197 * region-cache.c (new_region_cache): Use BEG.
19198
191992002-04-16 Gerd Moellmann <gerd@gnu.org>
19200
19201 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
19202 configuration files.
19203 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
19204 returns 0.
19205
192062002-04-15 Andreas Schwab <schwab@suse.de>
19207
19208 * config.in: Regenerated using autoheader.
19209
19210 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
19211 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
19212 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
19213 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
19214 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
19215 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
19216 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
19217 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
19218 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
19219 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
19220 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
19221 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
19222 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
19223 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
19224 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
19225 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
19226 STACK_DIRECTION, now set by autoconf.
19227
192282002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19229
19230 * dispnew.c (marginal_area_string): Sort arguments.
19231
19232 * dispextern.h (marginal_area_string): Add prototype.
19233
192342002-04-13 Richard M. Stallman <rms@gnu.org>
19235
19236 * fileio.c (Finsert_file_contents):
19237 Don't call temp_output_buffer_setup--do just part, by hand.
19238
19239 * coding.c (run_pre_post_conversion_on_str):
19240 Don't call temp_output_buffer_setup--do just part, by hand.
19241
19242 * keyboard.c (command_loop_1): Don't call start_hourglass
19243 or cancel_hourglass when executing a macro.
19244
19245 * marker.c (count_markers): New function.
19246
19247 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
19248 grow without limit. Move recently used elements to the front.
19249
192502002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
19251
19252 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
19253
192542002-04-12 Gerd Moellmann <gerd@gnu.org>
19255
19256 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
19257 rows marginal areas.
19258 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
19259 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
19260
19261 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
19262
192632002-04-12 Dave Love <fx@gnu.org>
19264
19265 * dispnew.c (marginal_area_string): New.
19266
19267 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
19268 (Qleft_margin, Qright_margin): Declare.
19269 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
19270
19271 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
19272 note_mode_line_highlight and extended.
19273
19274 * keyboard.c (Qleft_margin, Qright_margin): Declare.
19275 (make_lispy_event): Deal with mouse events in margins.
19276
192772002-04-12 Stefan Monnier <monnier@cs.yale.edu>
19278
19279 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
19280
19281 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
19282 than deactivating the mark if tmm is set to `lambda'.
19283 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
19284 Use a single event for HELP_EVENT.
19285 (Fexecute_extended_command): Save last_point_position.
19286
192872002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19288
19289 * lisp.h (Fpropertize): Add prototype.
19290
19291 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
19292
192932002-04-10 Colin Walters <walters@verbum.org>
19294
19295 * config.in: Add HAVE_SHARED_GAME_DIR.
19296
52eb0373 19297 * callproc.c (Vgame_score_directory): New variable.
048addec
JD
19298 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
19299
193002002-04-10 Richard M. Stallman <rms@gnu.org>
19301
19302 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
19303
193042002-04-09 Stefan Monnier <monnier@cs.yale.edu>
19305
19306 * minibuf.c (read_minibuf): Use empty_string.
19307 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
19308 Short-circuit the search as soon as it "failed".
19309 (Fall_completions): Allow lambda forms and lists of strings for alist.
19310 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
19311 when require_match is nil.
19312 (Ftest_completion): Rename from `test_completion' and export to elisp.
19313 Call the predicate also when alist is a list.
19314 Obey Vcompletion_regexp_list.
19315 (do_completion, Fminibuffer_complete_and_exit): Use it.
19316 (Fassoc_string): Rename from `assoc_for_completion'.
19317 Allow list of strings as well and export to elisp.
19318
193192002-04-08 Stefan Monnier <monnier@cs.yale.edu>
19320
19321 * puresize.h (BASE_PURESIZE): Increase to 900KB.
19322
193232002-04-08 Juanma Barranquero <lektu@terra.es>
19324
19325 * w32.c (sys_accept): Don't hide variable `s'.
19326
193272002-04-05 Gerd Moellmann <gerd@gnu.org>
19328
19329 * callint.c (Fcall_interactively): Use INTEGERP instead of
19330 NUMBERP for checking Vhistory_length.
19331
193322002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19333
19334 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
19335 Doc fix to reflect it.
19336
193372002-04-04 Richard M. Stallman <rms@gnu.org>
19338
19339 * xdisp.c (display_mode_element): New arg RISKY.
19340 Disregard text props found or specified within a variable
19341 that isn't marked risky-local-variable.
19342 (Qrisky_local_variable): New variable.
19343 (syms_of_xdisp): Init and staticpro it.
19344
193452002-04-04 Stefan Monnier <monnier@cs.yale.edu>
19346
19347 * undo.c (record_point): New fun.
19348 (record_delete, record_insert): Use it.
19349
193502002-04-03 Juanma Barranquero <lektu@terra.es>
19351
19352 * doc.c (Fdocumentation): Add missing parentheses.
19353 (Fdocumentation_property): Likewise.
19354
193552002-04-03 Stefan Monnier <monnier@cs.yale.edu>
19356
19357 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
19358 data is 0, just return nil.
19359
193602002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
19361
19362 * msdos.c (syms_of_msdos): Fix last change with
19363 mouse_autoselect_window.
19364
193652002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19366
19367 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
19368 mouse_autoselect_window.
19369
193702002-04-02 Stefan Monnier <monnier@cs.yale.edu>
19371
19372 * keyboard.c (make_lispy_event): Handle unknown keysyms together
19373 with system-specific keysyms. Use it also for unknown function keys.
19374
19375 * doc.c (reread_doc_file): Return whether reload was attempted.
19376 (Fdocumentation, Fdocumentation_property): Don't try to reload
19377 if the doc is 0 and only ask once.
19378
19379 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
19380
193812002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
19382
19383 * keyboard.c (read_char): If the event was Qselect_window,
19384 restore timer_idleness_start_time to its previous value.
19385
19386 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
19387
193882002-04-01 Stefan Monnier <monnier@cs.yale.edu>
19389
19390 * region-cache.c (new_region_cache): Use BEG.
19391
19392 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
19393 Use BEG and BEG_BYTE.
19394
19395 * doc.c (get_doc_string): Return nil if the location is wrong.
19396 (reread_doc_file): New fun.
19397 (Fdocumentation, Fdocumentation_property):
19398 Call it if get_doc_string fails.
19399 (Fsnarf_documentation): Make it work for a dumped Emacs.
19400
19401 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
19402 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
19403
19404 * charset.c (Fstring): Allow 0 arguments.
19405
19406 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
19407
19408 * process.c (DATAGRAM_CONN_P, list_processes_1)
19409 (Fprocess_datagram_address, Fset_process_datagram_address)
19410 (Fset_network_process_options, server_accept_connection):
19411 Fix some int/Lisp_Object confusions (thank you union types).
19412
194132002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19414
19415 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
19416
19417 * w32term.c: Likewise.
19418 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
19419
19420 * keyboard.c (Qselect_window): New symbol.
19421 (head_table): Use it.
19422 (keys_of_keyboard): Bound select-window event to handle-select-window.
19423 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
19424
19425 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
19426 (last_window): New variable.
19427 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
19428 (note_mouse_movement): Remove reimplemented code in #if 0.
19429 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
19430 Emacs windows.
19431
19432 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
19433
194342002-03-31 Gerd Moellmann <gerd@gnu.org>
19435
19436 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
19437 Callers changed.
19438
194392002-03-30 Richard M. Stallman <rms@gnu.org>
19440
19441 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
19442 loop whenever it stops making progress.
19443
19444 * widget.c (set_frame_size): Don't call change_frame_size.
19445
194462002-03-30 Gerd Moellmann <gerd@gnu.org>
19447
19448 * dispnew.c (direct_output_for_insert):
19449 Call mark_window_display_accurate.
19450
194512002-03-29 Jason Rumney <jasonr@gnu.org>
19452
19453 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
19454
194552002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
19456
19457 * Makefile.in (lread.o): Depend on coding.h.
19458
19459 * lread.c (openp, Fload): Encode the file name before passing it
19460 to `stat', `access', and `emacs_open'.
19461 (openp): GCPRO the encoded file name. Don't recompute Lisp
19462 strings unnecessarily.
19463
194642002-03-29 Kim F. Storm <storm@cua.dk>
19465
19466 * fns.c (Flax_plist_put): Doc fix.
19467
194682002-03-28 Miles Bader <miles@gnu.org>
19469
19470 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
19471
194722002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19473
19474 * process.c (set-network-process-options): Add usage.
19475 (make-network-process): Doc fix.
19476
194772002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
19478
19479 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
19480
194812002-03-26 Richard M. Stallman <rms@gnu.org>
19482
19483 * fns.c (Fsubstring_no_properties): New function.
19484 (Flax_plist_get, Flax_plist_put): New functions.
19485 (syms_of_fns): defsubr them.
19486
19487 * xdisp.c (update_menu_bar): Test only update_mode_lines;
19488 don't test or alter w->update_mode_line.
19489
19490 * window.c (Fdisplay_buffer): Doc fix.
19491
194922002-03-24 Richard M. Stallman <rms@gnu.org>
19493
19494 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
19495
194962002-03-24 Gerd Moellmann <gerd@gnu.org>
19497
19498 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
19499 (Fdefmacro): Handle `(declare ...)'.
19500 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
19501 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
19502
195032002-03-24 Jason Rumney <jasonr@gnu.org>
19504
19505 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
19506 (xbm_file_p): Add prototypes.
19507 (xbm_format, xbm_image_p): Sync with xfns.c.
19508 (reflect_byte): New function.
19509 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
19510 (xbm_load_image): Create bitmaps with a depth of 1.
19511 (init_xfns): Enable XBM images.
19512
195132002-03-23 Jason Rumney <jasonr@gnu.org>
19514
19515 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
19516 correctly. Do not pass up_modifier to keyboard buffer.
19517
19518 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
19519
195202002-03-22 Stefan Monnier <monnier@cs.yale.edu>
19521
19522 * Makefile.in (bootstrapclean): New target.
19523 (bootstrap-temacs, bootstrap-doc): Remove.
19524 (bootstrap-emacs): Use a bog-standard `temacs'.
19525 Don't bother to build a DOC file.
19526
19527 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
19528
19529 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
19530 in temacs even if !CANNOT_DUMP.
19531 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
19532
19533 * alloc.c (check_pure_size): Only output a warning.
19534
195352002-03-22 Jason Rumney <jasonr@gnu.org>
19536
19537 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
19538 supported.
19539
19540 * w32term.c (zv_bits): Declare as short, for word alignment.
19541 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
19542 (syms_of_w32term): Define x-use-underline-position-properties.
19543
19544 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
19545 (clear_image_cache): Block input, fix logic, clear matrices in
19546 all frames that share this cache.
19547
195482002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
19549
19550 * emacs.c (main): Update the Copyright year in the blurb printed
19551 by "emacs --version".
19552
19553 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
19554
19555 * xterm.c (XTread_socket): If XK_ISO_Lock and
19556 XK_ISO_Last_Group_Lock are defined, handle keysyms between
19557 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
19558
195592002-03-21 Kim F. Storm <storm@cua.dk>
19560
19561 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
19562 menu-bar bindings in keymap and local-map properties _are_ used.
19563 But try keymap property first in accordance with 2002-01-03 patch.
19564 Added comment describing why this is not always reliable.
19565 (tool_bar_items): Ditto for tool-bar.
19566
195672002-03-21 Jason Rumney <jasonr@gnu.org>
19568
19569 * w32fns.c (x_clear_image_1): Disable color table code.
19570
195712002-03-21 Kim F. Storm <storm@cua.dk>
19572
19573 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
19574 removed the wrong version of the DEFUN macro; fixed it.
19575
19576 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
19577 Fmember rather than Fmemq).
19578 (Fprovide): Check that subfeatures is a list.
19579
19580 * process.c (QCfeature, QCdatagram): Removed variables.
19581 (QCtype, Qdatagram): New variables.
19582 (network_process_featurep): Removed function.
19583 (Fmake_network_process): Removed :feature check.
19584 Use :type 'datagram instead of :datagram t to create a datagram
19585 socket. This allows us to add other connection types (e.g. raw
19586 sockets) later in a consistent manner.
19587 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
19588 supported subfeatures for feature make-network-process.
19589 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
19590 Intern and staticpro QCtype and Qdatagram.
19591 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
19592
9dd28cae 19593 * xfns.c (QCtype): Remove duplicate declaration and
048addec
JD
19594 initialization (is now declared in process.c).
19595
9dd28cae 19596 * w32fns.c (QCtype): Remove duplicate declaration and
048addec
JD
19597 initialization (is now declared in process.c).
19598
195992002-03-21 Richard M. Stallman <rms@gnu.org>
19600
19601 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
19602 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
19603 when jumping to `fail' to avoid undoing reg changes in the
19604 last iteration of the loop.
19605 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
19606
19607 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
19608 Depend on process.h.
19609
196102002-03-20 Jason Rumney <jasonr@gnu.org>
19611
19612 Most of the following changes are still conditional on HAVE_IMAGES
19613 which is not set by default on Windows.
19614
19615 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
19616
19617 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
19618 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
19619 (four_corners_best, x_clear_image_1, x_clear_image)
19620 (x_alloc_image_color, postprocess_image)
19621 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
19622 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
19623 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
19624
19625 * w32gui.h (struct XImage): Define.
19626
19627 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
19628 extract mouse co-ordinates.
19629
196302002-03-20 Jason Rumney <jasonr@gnu.org>
19631
19632 * w32.c (init_winsock): Dynamically load new server and UDP
19633 socket functions.
19634 (socket_to_fd): New function.
19635 (sys_socket): Use it.
19636 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
19637 (sys_recvfrom, sys_sendto): New wrapper functions.
19638
19639 * process.c (QCfamily, QCfilter): Remove duplicate declaration
19640 and initialization.
19641
19642 * makefile.w32-in (LIBS): Remove $(WSOCK32).
19643
196442002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
19645
19646 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
19647 Don't use "sun" as a variable, it's a predefined constant on Sun
19648 machines.
19649
196502002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19651
19652 * bytecode.c (Fbyte_code): Revert last change.
19653
196542002-03-19 Kim F. Storm <storm@cua.dk>
19655
19656 * makefile.w32-in (LIBS): Add $(WSOCK32).
19657 From David Ponce <dponce@voila.fr>.
19658
196592002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19660
19661 * process.c (wait_reading_process_input): Move variables `pname'
19662 and `pnamelen' down where they are used.
19663
19664 * bytecode.c (Fbyte_code): Discard unused computed value to
19665 prevent gcc warning.
19666
19667 * lisp.h (Fplist_member): Add prototype.
19668
196692002-03-18 Kim F. Storm <storm@cua.dk>
19670
19671 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
19672 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
19673
19674 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
19675 Remove explicit GNU_LINUX settings for datagram support.
19676
196772002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19678
19679 * process.c (Fmake_network_process): Remove unused variable `sa'.
19680 Doc fix. Add usage:.
19681 (set_socket_options): Remove unused variables `optnum' and `opttype'.
19682
196832002-03-17 Richard M. Stallman <rms@gnu.org>
19684
19685 * xdisp.c (cursor_type_changed): New variable.
19686 (redisplay_internal): Redisplay all windows if cursor_type_changed.
19687 Clear it when clearing windows_or_buffers_changed.
19688 (try_cursor_movement, redisplay_window, try_window_id)
19689 (try_window_reusing_current_matrix): Test cursor_type_changed
19690 along with windows_or_buffers_changed.
19691
19692 * window.h (cursor_type_changed): New variable.
19693
19694 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
19695 not update_mode_lines, and always set it to 1.
19696
19697 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
19698 if no frames needed redrawing.
19699
197002002-03-17 Kim F. Storm <storm@cua.dk>
19701
19702 The following changes add support for network server processes,
19703 datagram connections, and local (unix) sockets.
19704
19705 * process.h (struct Lisp_Process): New member log.
19706 Doc fix: Member command used to indicate stopped network process.
19707 Doc fix: Member childp contains plist for network process.
19708 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
19709
19710 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
9dd28cae 19711 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
048addec
JD
19712 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
19713 New variables.
19714 (NETCONN1_P): New macro.
19715 (DATAGRAM_SOCKETS): New conditional symbol.
19716 (datagram_address): New array.
19717 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
19718 (status_message): Use concat3.
19719 (Fprocess_status): Add `listen' status to doc string. Return `stop'
19720 for a stopped network process.
19721 (Fset_process_buffer): Update contact plist for network process.
19722 (Fset_process_filter): Ditto. Don't enable input for stopped
19723 network processes. Server must listen, even if filter is t.
19724 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
19725 New functions.
19726 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
19727 (Fprocess_contact): Added KEY argument. Handle datagrams.
19728 (list_processes_1): Optionally show only processes with the query
19729 on exit flag set. Dynamically adjust column widths. Omit tty
19730 column if not needed. Report stopped network processes.
19731 Identify server and datagram network processes.
19732 (Flist_processes): New optional arg `query-only'.
19733 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
19734 (conv_lisp_to_sockaddr, set_socket_options)
19735 (network_process_featurep, unwind_request_sigio): New helper functions.
19736 (Fprocess_datagram_address, Fset_process_datagram_address):
19737 (Fset_network_process_options): New lisp functions.
19738 (Fopen_network_stream): Removed. Now defined in simple.el.
19739 (Fmake_network_process): New lisp function. Code is based on previous
19740 Fopen_network_stream, but heavily reworked with new property list based
19741 argument list, support for datagrams, server processes, and local
19742 sockets in addition to old client-only functionality.
19743 (server_accept_connection): New function.
19744 (wait_reading_process_input): Use it to handle incoming connects.
19745 Do not enable input on a new connection if process is stopped.
f63fd14e 19746 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
19747 (send_process): Handle datagram sockets.
19748 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
19749 network process is indicated by setting command field to t .
19750 (Fprocess_send_eof): No-op if datagram connection.
19751 (Fstatus_notify): Don't read input for a stream server socket or a
19752 stopped network process.
19753 (init_process): Initialize datagram_address array.
19754 (syms_of_process): Intern and staticpro new variables, defsubr new
19755 functions.
19756
197572002-03-16 Jason Rumney <jasonr@gnu.org>
19758
19759 * w32fns.c (w32_to_all_x_charsets): Return correct type in
19760 startup case.
19761
197622002-03-16 Richard M. Stallman <rms@gnu.org>
19763
19764 * xdisp.c (redisplay_internal, redisplay_windows):
19765 Use list_of_error to call internal_condition_case_1.
19766 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
19767 so as to catch all errors with no possibility of debugger redisplay.
19768 (list_of_error): New variable.
19769 (syms_of_xdisp): Init and staticpro it.
19770
19771 * print.c (print_object): Delete `\ ' from printed rep of frame.
19772
197732002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
19774
19775 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
19776 until its implementation is fixed.
19777
197782002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19779
19780 * xfns.c (png_load): Remove unused variable `gamma_str'.
19781
197822002-03-14 Richard M. Stallman <rms@gnu.org>
19783
19784 * xfns.c (x_real_positions): Handle failure in XQueryTree.
19785
197862002-03-14 Miles Bader <miles@gnu.org>
19787
19788 * intervals.c (adjust_for_invis_intang): New function.
19789 (set_point_both): Use `adjust_for_invis_intang' to do most of the
19790 work for dealing with invisible+intangible regions. Do so before
19791 and after both forward and backward movements, to handle both
19792 front-sticky and rear-sticky cases.
19793 * textprop.c (text_property_stickiness): Function moved here from
19794 `editfns.c'.
19795 * intervals.h (text_property_stickiness): New declaration.
19796 * editfns.c (char_property_eq): Function removed.
19797 (text_property_stickiness): Function moved to `textprop.c'.
19798
197992002-03-13 Jason Rumney <jasonr@gnu.org>
19800
19801 * config.in: Add STRFTIME_NO_POSIX2.
19802
19803 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
19804 and %OX when underlying strftime does not.
19805
198062002-03-13 Stefan Monnier <monnier@cs.yale.edu>
19807
19808 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
19809 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
19810 line) to avoid annoying flicker.
19811 (xm_scroll_callback): Get rid of the now unnecessary kludge.
19812 (XTread_socket): Mark it static.
19813
19814 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
19815
198162002-03-13 Kim F. Storm <storm@cua.dk>
19817
19818 * puresize.h (BASE_PURESIZE): Increase to 775000.
19819
198202002-03-12 Juanma Barranquero <lektu@terra.es>
19821
19822 * editfns.c (syms_of_editfns): Fix typo.
19823
198242002-03-12 Gerd Moellmann <gerd@gnu.org>
19825
19826 * xsmfns.c: Include stdio.h because termhooks.h needs it.
19827 Include termopt.h for interrupt_input.
19828
198292002-03-11 Andreas Schwab <schwab@suse.de>
19830
19831 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
19832
198332002-03-11 Gerd Moellmann <gerd@gnu.org>
19834
19835 * xterm.c (note_mouse_movement): Put code for
19836 x_autoselect_window_p in #if 0.
19837
19838 * lread.c (Fload): Don't assume that message_with_string uses the
19839 string it is given like a C string.
19840
198412002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19842
78819ebb 19843 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec 19844
52eb0373 19845 * xterm.c (XTread_socket): Add call to x_session_check_input and
048addec
JD
19846 x_session_have_connection.
19847 (x_initialize): Add call to x_session_initialize.
19848
19849 * termhooks.h (enum event_kind): Add save_session_event.
19850
19851 * keyboard.c: Add Emacs event save_session_event.
19852
19853 * emacs.c (main): Add call to syms_of_xsmfns.
19854
78819ebb 19855 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
19856
19857 * config.in: Add HAVE_X_SM.
19858
19859 * Makefile.in (LIBXT): Add -lSM -lICE
19860 if HAVE_X_SM and not USE_X_TOOLKIT.
19861 (XOBJ): New file xsmfns.c added.
19862
19863 * xsmfns.c: New file for X session management.
19864
198652002-03-09 Jason Rumney <jasonr@gnu.org>
19866
19867 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
19868 read-only when setting modified time.
19869
198702002-03-08 Gerd Moellmann <gerd@gnu.org>
19871
19872 * xdisp.c (move_it_vertically_backward): At the end of the function,
19873 when moving forward by lines, treat terminal frames specially.
19874
19875 * keyboard.c (echo_char): Make sure to add a separator between
19876 keys even if echo_dash hasn't been called.
19877
19878 * xdisp.c: Use new string macros.
19879 (update_echo_area): Pass number of bytes to message3 instead of
19880 number of chars.
19881 (set_message_1): Don't access a string's size_byte directly.
19882 (decode_mode_spec_coding): Use number of bytes of eoltype string
19883 instead number of chars.
19884
19885 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
19886
198872002-03-08 Juanma Barranquero <lektu@terra.es>
19888
19889 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
19890 24-bit.
19891
198922002-03-06 Jason Rumney <jasonr@gnu.org>
19893
19894 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
19895
198962002-03-06 Gerd Moellmann <gerd@gnu.org>
19897
19898 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
19899 (cancel_echoing, echo_length, echo_truncate): Changed to
19900 work with new kboard definition.
19901 (echo_now): Use message3_nolog instead of message2_nolog.
19902
19903 * alloc.c (mark_kboards): Mark echo_string.
19904
19905 * keyboard.h (ECHOBUFSIZE): Removed.
19906 (struct kboard): Member echoptr removed, member echobuf renamed
19907 to echo_string.
19908
19909 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
19910 message3 instead of message2 to display the message using STRING's
19911 text properties.
19912
199132002-03-05 Andreas Schwab <schwab@suse.de>
19914
19915 * xdisp.c (hscroll_margin): Change to EMACS_INT.
19916
199172002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
19918
19919 * frame.c (default-frame-alist): Explain that setting it doesn't
19920 affect existing frames.
19921
199222002-03-05 Stefan Monnier <monnier@cs.yale.edu>
19923
19924 * indent.c (skip_invisible): Fix my brain fart.
19925
19926 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
19927
199282002-03-04 Stefan Monnier <monnier@cs.yale.edu>
19929
19930 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
19931 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
19932 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
19933 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
19934 and variables to use EMACS_INT instead of just int.
19935
19936 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
19937
199382002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
19939
19940 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
19941 environment, pass it down with corrected value.
19942
199432002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19944
19945 * lread.c (read_filtered_event): Do not call start_hourglass
19946 before returning.
19947
199482002-03-04 Juanma Barranquero <lektu@terra.es>
19949
19950 * w32term.c (x_display_and_set_cursor): Fix typo.
19951
199522002-03-03 Richard M. Stallman <rms@gnu.org>
19953
19954 * fileio.c (Fmake_temp_name): Doc fix.
19955
199562002-03-03 Gary Wong <gtw@gnu.org>
19957
19958 * termcap.c [!emacs]: Replace ospeed for building standalone
19959 libtermcap, for binary compatibility.
19960
19961 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
19962
199632002-03-03 Richard M. Stallman <rms@gnu.org>
19964
19965 * xrdb.c (file_p): Rename arg `path' to `filename'.
19966
19967 * abbrev.c (Fexpand_abbrev): Increment plist as use count
19968 only if it is an integer.
19969
19970 * xfns.c (png_load): Set screen_gamma based on f->gamma.
19971 If png_get_sRGB gives an answer, call png_set_gamma
19972 using the default image gamma value.
19973
19974 * lread.c (read1): When reading from a file, default string to
19975 multibyte only if it has some multibyte characters.
19976
19977 * print.c (print_object): Output multibyte chars 128...255
19978 using \x even if ! print_escape_multibyte.
19979
19980 * xdisp.c (display_mode_element): Move the places where
19981 bytepos, charpos, this, and lisp_string are set.
19982 Use lisp_string to set bytepos.
19983
19984 * xdisp.c (redisplay_internal):
19985 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
19986
19987 * xdisp.c (display_mode_element): Merge properties specified with
19988 :propertize onto those that come with the string.
19989
199902002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
19991
19992 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
19993 automatic-hscrolling. Users changed.
19994 <hscroll-margin>: Renamed from automatic-hscroll-margin.
19995 Users changed.
19996 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
19997
199982002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
19999
20000 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
20001
200022002-03-02 Kim F. Storm <storm@cua.dk>
20003
20004 * window.c (Fminibuffer_selected_window): New function.
20005 (syms_of_window): Defsubr it.
20006
200072002-03-01 Kim F. Storm <storm@cua.dk>
20008
20009 * window.h (struct window): New member phys_cursor_width.
20010
20011 * window.c (make_window, replace_window): Init phys_cursor_width.
20012
20013 * xterm.c (x_display_and_set_cursor): Blink box cursor using
20014 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
20015
20016 * w32term.c (x_display_and_set_cursor): Blink box cursor using
20017 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
20018
20019 * lisp.h (GCPRO6): New macro.
20020
20021 * process.c (Fopen_network_stream): Use GCPRO6.
20022
200232002-03-01 Kim F. Storm <storm@cua.dk>
20024
20025 * process.c (Qconnect, Qfailed): New variables.
20026 (syms_of_process): Intern and staticpro them.
20027 (Fprocess_status): Document connect and failed return values.
20028 [NON_BLOCKING_CONNECT]: New conditional.
20029 (connect_wait_mask, num_pending_connects): New variables.
20030 (status_message): Convert Qfailed status.
20031 (Fopen_network_stream): Added support for non-blocking connect.
20032 New optional args: filter, sentinel, non_blocking. Doc updated.
20033 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
20034 (deactivate_process): Handle pending non-blocking connect.
20035 (wait_reading_process_input): Poll for status of non-blocking
20036 connects. Exec sentinel directly when connect succeeds.
20037 (status_notify): Don't read process output if not yet connected.
20038
200392002-02-28 Kim F. Storm <storm@cua.dk>
20040
9dd28cae 20041 * window.c (minibuf_selected_window): Renamed from
048addec
JD
20042 Vminibuf_selected_window. Users changed.
20043 (syms_of_window): Staticpro it.
20044
200452002-02-26 Kim F. Storm <storm@cua.dk>
20046
20047 The following changes add a new Vminibuf_selected_window variable
20048 which is similar to Vminibuf_scroll_window, but which is only set
20049 on entry to the minibuffer (from a non-minibuffer window):
20050
9dd28cae 20051 * window.c (Vminibuf_selected_window): New variable.
048addec
JD
20052 (struct save_window_data): New member minibuf_selected_window.
20053 (Fset_window_configuration): Restore Vminibuf_selected_window.
20054 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
20055 Set minibuf_scroll_window member to nil if minibuf_level is 0.
20056 (compare_window_configurations): Compare minibuf_selected_window.
20057
9dd28cae 20058 * window.h (Vminibuf_selected_window): Declare extern.
048addec
JD
20059
20060 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
20061 entry to minibuffer or on entry from a non-minibuffer window.
20062
20063 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
20064 Vminibuf_selected_window instead of Vminibuf_scroll_window.
20065
20066 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
20067 instead of Vminibuf_scroll_window when deciding in which window
20068 the region should be highlighted. Consequently, the region remains
20069 highlighteded even when a completion buffer is also displayed.
20070
200712002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
20072
20073 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
20074
20075 * xselect.c (Qcompound_text_with_extensions): Renamed from
20076 Qcompound_text_no_extensions.
20077 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
20078
200792002-02-26 Juanma Barranquero <lektu@terra.es>
20080
20081 * w32proc.c (syms_of_ntproc): Doc fix.
20082
200832002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20084
20085 * intervals.h: Include "dispextern.h" unconditionally.
20086
200872002-02-24 Jason Rumney <jasonr@gnu.org>
20088
20089 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
20090 and disp-table.elc.
20091 (lisp): Add emacs-lisp/backquote.elc.
20092
200932002-02-24 Kim F. Storm <storm@cua.dk>
20094
3419757d 20095 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
20096 The validation of the event type was too strict as it didn't
20097 allow string events; buffer names are used in bindings for
20098 menu-bar-select-buffer (see `menu-bar-update-buffers').
20099
201002002-02-23 Kim F. Storm <storm@cua.dk>
20101
20102 The following changes rework my patch of 2002-02-06 which
20103 added command remapping by entering the commands directly into
20104 the keymaps. Now, command remapping uses an explicit `remap'
20105 prefix in the keymaps, i.e. [remap COMMAND].
20106
20107 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 20108 (is_command_symbol): Remove function.
048addec
JD
20109 (Fdefine_key): No longer accept a symbol for KEY.
20110 Added validation of [remap COMMAND] argument for KEY.
20111 The DEF is no longer required to be a symbol when remapping a command.
20112 (Fremap_command): New function to remap command through keymaps.
20113 (Flookup_key): Perform command remapping initiated by
20114 Fremap_command directly for speed.
20115 (Fkey_binding): Use Fremap_command for command remapping.
20116 (where_is_internal): Handle new command remapping representation.
20117 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
20118 staticpro them. Defsubr Fremap_command.
20119
20120 * keymap.h (Fremap_command): Declare extern.
20121 (is_command_symbol): Remove extern.
20122
20123 * keyboard.c (command_loop_1): Use Fremap_command for command
20124 remapping; now try command remapping for all symbols.
20125
201262002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
20127
20128 * coding.h (run_pre_post_conversion_on_str): Add prototype.
20129
201302002-02-23 Jason Rumney <jasonr@gnu.org>
20131
20132 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
20133 on the string before encoding it.
20134 (Fw32_get_clipboard_data): Run post-read-conversion on the string
20135 after decoding it.
20136
20137 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
20138
201392002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20140
20141 * w32term.c (enter_timestamp): Remove unused static variable to
20142 prevent warning.
20143
20144 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
20145
201462002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
20147
20148 * w16select.c (Fw16_get_clipboard_data): Fix last change.
20149
20150 * xselect.c (selection_data_to_lisp_data): Fix last change.
20151
201522002-02-22 Jason Rumney <jasonr@gnu.org>
20153
20154 * w32term.h (struct w32_output): New member menu_command_in_progress.
20155
20156 * w32menu.c (menubar_selection_callback): Free the menu and
20157 clear the menu_command_in_progress flag.
20158
20159 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
20160 (menu_free_timer): New variable.
20161 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
20162 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
20163 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
20164 menu command is in progress.
20165 <WM_COMMAND>: Set the menu_command_in_progress flag.
20166 Kill any menu_free_timer that is running.
20167
20168 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
20169 Call ExtTextOutA rather than ExtTextOut.
20170
201712002-02-22 Eli Zaretskii <eliz@gnu.org>
20172
20173 * puresize.h (BASE_PURESIZE): Increase to 755000.
20174
201752002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
20176
20177 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
20178 on the string before encoding it.
20179 (Fw16_get_clipboard_data): Run post-read-conversion on the string
20180 after decoding it.
20181
201822002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
20183
9dd28cae 20184 Support for ICCCM Extended Segments in X selections:
048addec
JD
20185
20186 * xselect.c <Qcompound_text_no_extensions>: New variable.
20187 (syms_of_xselect): Intern and staticpro it.
20188 (selection_data_to_lisp_data): Run post-read-conversion on decoded
20189 selection text.
20190 (lisp_data_to_selection_data): If next-selection-coding-system is
20191 compound-text-no-extensions, set the type of selection to be
20192 compound-text.
20193
20194 * xterm.h (x_encode_text): Update prototype.
20195
20196 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
20197 callers changed. If SELECTIONP is non-zero, run the
20198 pre-write-conversion function before encoding the selection text.
20199
202002002-02-21 Kim F. Storm <storm@cua.dk>
20201
20202 * frame.c (syms_of_frame): Change mouse-highlight default to t.
20203
20204 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
20205 Correct composing of language-change event.
20206
202072002-02-20 Kim F. Storm <storm@cua.dk>
20208
20209 * keyboard.c (menu_bar_items): Don't include keymap or local-map
20210 bindings at PT when building menu (the menu is not updated often
20211 enough for this to work reliable).
20212 (tool_bar_items): Likewise.
20213 (current_active_maps): Removed unused (and buggy) function.
20214
202152002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20216
20217 * xfns.c (gif_load): Use correct width and height for GIF images.
20218
202192002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
20220
20221 * floatfns.c (Fatan): Accept an optional second arg and call
20222 atan2 if passed 2 args.
20223
202242002-02-18 Jason Rumney <jasonr@gnu.org>
20225
20226 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
20227
202282002-02-17 Jason Rumney <jasonr@gnu.org>
20229
20230 * w32term.c (x_autoselect_window_p): New variable.
20231 (syms_of_w32term): DEFVAR_BOOL and initialize it.
20232 (note_mouse_movement): Use it.
20233
20234 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
20235
20236 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
20237
20238 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
20239 New variables.
20240 (syms_of_w32fns): Intern and staticpro them.
20241 (x_frame_parms) <"fullscreen">: New parameter.
20242 (x_fullscreen_move, x_set_fullscreen): New functions.
20243 (x_set_frame_parameters): Support Qfullscreen.
20244 (x_real_positions): Save x/y_pixels_diff frame params.
20245 (x_figure_window_size): Support full-screen frames.
20246 (Fx_create_frame): Default the fullscreen parameter.
20247
20248 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
20249 (x_fullscreen_adjust): New functions.
20250 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
20251 fullscreen. Call x_check_fullscreen_move, and set the
20252 want_fullscreen member of output_data.w32
20253 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
20254
20255 * w32term.h: New enum for FULLSCREEN_* constants.
20256 (struct w32_output): New members want_fullscreen, x_pixels_diff,
20257 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
20258 (x-fullscreen-adjust): New prototype.
20259
202602002-02-17 Kim F. Storm <storm@cua.dk>
20261
52eb0373 20262 * frame.c (Vmouse_highlight): New variable.
048addec
JD
20263 (syms_of_frame): DEFVAR_LISP it.
20264
52eb0373 20265 * frame.h (Vmouse_highlight): Declare extern.
8a8e19a3 20266
048addec 20267 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 20268
048addec
JD
20269 * xterm.c (disable_mouse_highlight): Removed variable.
20270 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
20271 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
20272 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
20273 and on after keyboard input.
20274 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 20275
048addec 20276 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 20277
048addec
JD
20278 * msdos.c (disable_mouse_highlight): Removed variable.
20279 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
20280 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
20281 (internal_terminal_init): Initialize mouse_face_hidden.
20282 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
20283 and on after keyboard input.
4f1b1854 20284
048addec 20285 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 20286
048addec
JD
20287 * w32term.c (disable_mouse_highlight): Removed variable.
20288 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
20289 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
20290 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
20291 and on after keyboard input.
20292 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 20293
048addec 202942002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 20295
048addec
JD
20296 * msdos.c (last_mouse_window): New variable.
20297 (dos_rawgetc): Fix last change--if the mouse is in the same window
20298 as recorded in last_mouse_window, don't select this window.
5cb6905d 20299
048addec 20300 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 20301
048addec
JD
20302 * msdos.c (x_autoselect_window_p): New variable.
20303 (syms_of_msdos): Defvar it.
20304 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
20305 which the last mouse movement occured, unless it is already selected.
437dfb9f 20306
048addec
JD
20307 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
20308 New variables.
20309 (syms_of_xdisp): DEVFAR them.
20310 (hscroll_window_tree): Use automatic_hscroll_margin and
20311 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 20312
048addec 203132002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 20314
048addec
JD
20315 * xterm.c (x-autoselect-window): New variable.
20316 (note_mouse_movement): Use it.
9f696a00 20317
048addec 20318 * keyboard.c: Do not include "systime.h" twice.
d57966d7 20319
048addec 203202002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 20321
bfa02563 20322 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 20323
048addec 20324 * alloc.c (NSTATICS): Increase to 1280.
74779f52 20325
048addec 203262002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 20327
048addec 20328 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 20329
048addec
JD
20330 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
20331 (Vx_super_keysym): New variables.
20332 (syms_of_xterm): DEFVAR_LISP them.
20333 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
20334 variables to determine which keys to use for the various modifiers.
a474d59c 20335
048addec 203362002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 20337
9dd28cae 20338 * window.c (Vmode_line_in_non_selected_windows): Removed.
048addec
JD
20339 (mode_line_in_non_selected_windows): New variable.
20340 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 20341
048addec
JD
20342 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
20343 Use mode_line_in_non_selected_windows.
20344 (mode_line_in_non_selected_windows): Declare extern.
20345 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 20346
048addec 203472002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 20348
048addec
JD
20349 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
20350 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
20351 (Fclear_this_command_keys): Doc fixes.
2d10309f 20352
048addec
JD
20353 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
20354 (update_face_from_frame_parameter): Increment face_change_count
20355 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 20356
048addec
JD
20357 * xdisp.c (QCpropertize): New variable.
20358 (mode_line_proptrans_alist): New variable.
20359 (display_mode_element): New arg PROPS; all calls changed.
20360 Implement this, for strings.
20361 Handle literal output of strings by sharing the
20362 main-line code for strings, using local var `literal'.
20363 Handle :propertize feature.
20364 (syms_of_xdisp): Initialze and staticpro QCpropertize and
20365 mode_line_proptrans_alist.
0b1e6b54 20366
048addec 203672002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 20368
9dd28cae 20369 * window.c (Vmode_line_in_non_selected_windows): New variable.
048addec 20370 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 20371
048addec
JD
20372 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
20373 (CURRENT_MODE_LINE_FACE_ID): Use it.
20374 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 20375
048addec
JD
20376 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
20377 to get mode line face.
e17144de 20378
048addec 203792002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 20380
048addec
JD
20381 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
20382 variables; cus-start.el doesn't need them anymore.
44368f8f 20383
048addec 203842002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 20385
048addec
JD
20386 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
20387 reduction. This fixes a display problem where stray newlines were
20388 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 20389
048addec 203902002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 20391
048addec 20392 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 20393
048addec 20394 * xdisp.c (display_mode_lines): Fix last change.
453c5510 20395
048addec 203962002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 20397
048addec
JD
20398 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
20399 match each other.
20400 (w32_load_system_font): Prevent Cleartype fonts from loading.
20401 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 20402
048addec 204032002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 20404
048addec
JD
20405 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
20406 (CURRENT_MODE_LINE_HEIGHT): Use it.
20407 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 20408
048addec
JD
20409 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
20410 (pos_visible_p, handle_face_prop): Likewise.
20411 (display_mode_lines): Likewise, but for the real selected window.
20412 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 20413
048addec
JD
20414 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
20415 in non-selected windows.
20416 (realize_basic_faces): Realize it.
20417 (syms_of_term): Intern and staticpro it.
308dd672 20418
048addec 204192002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 20420
048addec
JD
20421 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
20422 Changed mail addresses to emacs-devel@gnu.org.
308dd672 20423
048addec 204242002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 20425
048addec
JD
20426 * fileio.c (Fsubstitute_in_file_name): If the file name includes
20427 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 20428
048addec 20429 * floatfns.c (Fround): Doc fix.
3c1e6b46 20430
048addec 204312002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 20432
048addec 20433 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 20434
048addec 204352002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 20436
048addec 20437 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 20438
048addec 204392002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 20440
048addec
JD
20441 * keymap.c (where_is_internal): Only check whether definition is
20442 remapped if it fulfills is_command_symbol.
0065bb74 20443
048addec 204442002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 20445
048addec 20446 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 20447
048addec 20448 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 20449
048addec 204502002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 20451
048addec
JD
20452 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
20453 defining command remapping. Doc updated.
20454 (Flookup_key): Remap command through keymap if KEY is a symbol.
20455 (is_command_symbol): New function.
20456 (Fkey_binding): Use it. New optional argument NO-REMAP.
20457 Doc updated. Callers changed. Perform command remapping via
20458 recursive call unless that arg is non-nil.
20459 (where_is_internal): New argument no_remap. Callers changed.
20460 Call recursively to find original key bindings for a remapped
20461 comand unless that arg is non-nil.
20462 (Fwhere_is_internal): New optional argument NO-REMAP.
20463 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 20464
048addec 20465 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 20466 (is_command_symbol): Add prototype.
0d8466cc 20467
048addec
JD
20468 * keyboard.c (Vthis_original_command): New variable.
20469 (syms_of_keyboard): DEFVAR_LISP it.
20470 (command_loop_1): Set it, and perform command remapping.
15fff01d 20471
048addec 204722002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 20473
048addec 20474 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 20475
048addec 204762002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 20477
048addec 20478 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 20479
048addec 204802002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 20481
048addec 20482 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 20483
048addec 204842002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 20485
048addec 20486 * filelock.c (S_ISLNK): Define if not defined.
3a232704 20487
048addec 204882002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 20489
048addec 20490 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 20491
048addec
JD
20492 * lread.c (read1): Redesign strategy for force_multibyte and
20493 force_singlebyte. Now is_multibyte records whether read_buffer
20494 is multibyte. Encountering any multibyte character makes it so.
4e02881b 20495
048addec 204962002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 20497
048addec
JD
20498 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
20499 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 20500
048addec 205012002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 20502
048addec
JD
20503 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
20504 latter never being defined on GNU/Linux.
749f499f 20505
048addec 205062002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 20507
048addec
JD
20508 * xfaces.c (realize_default_face): Don't set the weight and slant of
20509 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 20510
048addec 205112002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 20512
048addec
JD
20513 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
20514 Call cancel_hourglass unconditionally.
d0fd26dd 20515
048addec
JD
20516 * eval.c (Fsignal): Remove duplicated declaration of
20517 the variable `display_hourglass_p'.
b4c45162 20518
048addec 205192002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 20520
048addec 20521 * editfns.c (region_limit): Nicer error message.
c95eaa61 20522
048addec
JD
20523 * coding.c (decode_composition_emacs_mule):
20524 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 20525
048addec
JD
20526 * callint.c (check_mark): New arg to specify clearer error message.
20527 Callers changed.
c95eaa61 20528
048addec 205292002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 20530
048addec 20531 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 20532
048addec 205332002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 20534
048addec
JD
20535 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
20536 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
20537 Fix doc-strings.
c95eaa61 20538
048addec 205392002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 20540
048addec 20541 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 20542
048addec
JD
20543 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
20544 and scroll_up_aggressively.
c95eaa61 20545
048addec 205462002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 20547
048addec 20548 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 20549
048addec 205502002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 20551
048addec
JD
20552 * textprop.c (Fnext_property_change, Fnext_single_property_change)
20553 (Fprevious_property_change, Fprevious_single_property_change):
20554 Stay within the narrowed-buffer boundaries.
e2c3786a 20555
048addec 205562002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 20557
048addec
JD
20558 * term.c (Ftty_display_color_cells): New function.
20559 (syms_of_term): Defsubr it.
20560 (Ftty_display_color_cells, Ftty_display_color_p): Change the
20561 argument name to DISPLAY. Doc fix.
bf794306 20562
048addec
JD
20563 * dispextern.h: Add prototype for set_tty_color_mode and
20564 tty_setup_colors.
bf794306 20565
048addec 205662002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 20567
048addec
JD
20568 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
20569 If region left to draw is not what was expected, mark the frame as
20570 garbaged.
62582985 20571
048addec
JD
20572 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
20573 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 20574
048addec 205752002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 20576
048addec
JD
20577 * w32term.c (x_update_window_begin): Only hide caret if
20578 w32_use_visible_system_caret is set.
20579 (x_update_window_end): Only show caret if
20580 w32_use_visible_system_caret is set.
20581 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 20582
048addec 20583 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 20584
048addec 205852002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 20586
048addec
JD
20587 * unexelf.c (unexec): Define n so as to cause compilation error
20588 for the code where people have often written n instead of nn.
1e9a6186 20589
048addec 20590 * .gdbinit (hookpost-run): Defined.
1e9a6186 20591
048addec 205922002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 20593
048addec 20594 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 20595
048addec 205962002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 20597
048addec
JD
20598 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
20599 if fullscreen is being set.
7c75be36 20600
048addec 206012002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 20602
048addec
JD
20603 * minibuf.c (Fminibuffer_contents)
20604 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
20605 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 20606
048addec 206072002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 20608
048addec 20609 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 20610
048addec 206112002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 20612
048addec
JD
20613 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
20614 height before comparison.
20615 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 20616
048addec 206172002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 20618
048addec
JD
20619 * w32term.c (w32_system_caret_width): Remove.
20620 (w32_use_visible_system_caret): New user flag.
20621 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
20622 Windows reports a screen reader running.
20623 (x_update_window_begin): Hide the system caret.
20624 (x_update_window_end): Show the system caret.
20625 (x_display_and_set_cursor): Don't draw a cursor when
20626 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 20627
048addec
JD
20628 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
20629 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
20630 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
20631 the user requests it. Use system default width when creating.
20632 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 20633
048addec
JD
20634 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
20635 New window messages.
905cc05a 20636
048addec 206372002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 20638
048addec 20639 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 20640
048addec 206412002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 20642
048addec 20643 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 20644
048addec 206452002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 20646
048addec 20647 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 20648
048addec 206492002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 20650
048addec
JD
20651 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
20652 that Windows returns. If a double check fails, try to guess how
20653 ExtTextOut is going to act.
4d0fa4f3 20654
048addec
JD
20655 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
20656 in place of stricmp.
20657 (w32_list_synthesized_fonts): Removed.
20658 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
20659 (struct enumfont_t): New element; list.
20660 (enum_font_cb2): List all style and charset variations of a font.
20661 (Fw32_select_font): New optional argument; include_proportional.
20662 Exclude vertical fonts. Exclude proportional fonts unless
20663 include_proportional is non-nil.
20664 (w32_enable_synthesized_fonts): Change to a boolean.
20665 (Fw32_send_sys_command): Doc fix.
493faf20 20666
048addec 206672002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 20668
048addec
JD
20669 * dispnew.c (update_frame): Move the variable `tem' to the block
20670 where it is used.
4971e491 20671
048addec 206722002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 20673
048addec
JD
20674 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
20675 call to face-set-after-frame-default.
4971e491 20676
048addec 206772002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 20678
048addec
JD
20679 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
20680 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 20681
048addec 206822002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 20683
048addec
JD
20684 * window.c (enlarge_window): When exceeding size of parent,
20685 directly delete all the siblings instead of trying to resize it.
201c831a 20686
048addec 206872002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 20688
048addec 20689 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 20690
048addec 206912002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 20692
048addec 20693 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 20694
048addec 206952002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 20696
048addec
JD
20697 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
20698 is invisible. This can happen if cursor is on top line of a
20699 window, and we switch to a buffer with a header line.
d77fbc16 20700
048addec 20701 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 20702
048addec 207032002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 20704
048addec
JD
20705 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
20706 `dont_resize' only when used.
61e3b944 20707
048addec 20708 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 20709
048addec 207102002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 20711
048addec
JD
20712 * xdisp.c (display_mode_element): When computing charpos, depend
20713 on multibyteness of elt, not the text in field.
8af01033 20714
048addec 207152002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 20716
048addec
JD
20717 * buffer.c (Fkill_all_local_variables):
20718 Increment `update_mode_lines' only once.
7363986a 20719
048addec 207202002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 20721
048addec
JD
20722 * lisp.h (adjust_after_replace_noundo)
20723 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 20724
048addec 20725 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 20726
048addec 207272002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 20728
048addec
JD
20729 Support for the --color command-line argument and tty-color-mode
20730 frame parameter:
f1a85b89 20731
048addec
JD
20732 * term.c (tty_default_color_capabilities, tty_setup_colors)
20733 (set_tty_color_mode): New functions.
20734 (term_init): Call tty_default_color_capabilities.
20735 (Qtty_color_mode_alist): New variable.
20736 (syms_of_term): Intern and staticpro it.
f1a85b89 20737
048addec
JD
20738 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
20739 frames.
20740 (do_switch_frame): For termcap frames, switch the tty
20741 color mode as specified by the frame's parameters.
20742 (Qtty_color_mode): New variable.
20743 (syms_of_frame): Intern and staticpro it.
3a62677f 20744
048addec
JD
20745 * emacs.c (USAGE2): Add the --color option.
20746 (standard_args): Ditto.
72244db2 20747
048addec
JD
207482002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20749
20750 * xterm.h (struct x_output): New members want_fullscreen,
20751 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
20752 y_pixels_outer_diff.
20753 New enum for FULLSCREEN_* constants.
20754 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
20755 is NULL.
20756 (x_fullscreen_adjust): Add prototype.
3a62677f 20757
048addec
JD
20758 * emacs.c (USAGE2): Add the new full-screen arguments.
20759 (standard_args): Ditto.
3a62677f 20760
048addec
JD
20761 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
20762 New variables.
20763 (syms_of_xfns): Intern and staticpro them.
20764 (x_frame_parms) <"fullscreen">: New parameter.
20765 (x_fullscreen_move, x_set_fullscreen): New functions.
20766 (x_set_frame_parameters): Support for Qfullscreen.
20767 (x_real_positions): More accurate computation of the frame position.
20768 (x_figure_window_size): Support full-screen frames.
20769 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 20770
048addec
JD
20771 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
20772 (XTread_socket) <Expose>: Call x_check_fullscreen.
20773 <ConfigureNotify>: Don't resize to fullscreen.
20774 Call x_check_fullscreen_move, and set the want_fullscreen member of
20775 output_data.x.
3a62677f 20776
048addec 207772002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 20778
048addec
JD
20779 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
20780 for mice with more than 3 buttons.
b8523839 20781
048addec
JD
20782 * w32term.c (parse_button): New parameter xbutton. Callers changed.
20783 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 20784
048addec
JD
20785 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
20786 (syms_of_w32fns): DEFVAR_BOOL it.
20787 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 20788
048addec 207892002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 20790
048addec 20791 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 20792
048addec 207932002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 20794
048addec 20795 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 20796
048addec 207972002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 20798
048addec
JD
20799 * .gdbinit (xbuffer): Remove address operator since data is now a
20800 pointer.
c93674bb 20801
048addec 208022002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 20803
048addec 20804 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 20805
048addec 20806 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 20807
048addec 208082002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 20809
048addec
JD
20810 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
20811 when checking for multiple frames.
91175673 20812
048addec 208132002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 20814
048addec
JD
20815 * window.c (delete_window): Rewrite the code for changing the
20816 selected window to handle the case where WINDOW is not a leaf.
91175673 20817
048addec 208182002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 20819
048addec
JD
20820 * process.c (send_process): Set src_multibyte to 1 after the call
20821 top setup_coding_system, not before the call.
e0fead5d 20822
048addec 208232002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 20824
048addec
JD
20825 * xmenu.c (set_frame_menubar, xmenu_show):
20826 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 20827
048addec
JD
20828 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
20829 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 20830
048addec 208312002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 20832
048addec 20833 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 20834
048addec 20835 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 20836
048addec 20837 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 20838
048addec 208392002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 20840
048addec
JD
20841 * insdel.c (make_gap_larger): Make sure buffer size does not
20842 overflow range of int.
62854fe2 20843
048addec 208442002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 20845
048addec
JD
20846 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
20847 OVERLAPS_P.
656f46bb 20848
048addec 20849 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 20850
048addec
JD
20851 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
20852 to the left or to the right of the pointer, put it against
20853 the left screen edge.
20854 (x_frame_parms): Add missing braces around initializer.
036e218d 20855
048addec
JD
20856 * w32term.c (x_setup_relief_colors): Don't compute an image's
20857 background color if it doesn't have a Pixmap.
20858 (notice_overwritten_cursor): Don't depend on
20859 output_cursor and updated_area. Compare pixel coordinates with
20860 window's cursor pixel coordinates.
20861 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
20862 Call notice_overwritten_cursor with new arg list.
20863 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
20864 unconditionally.
20865 (x_draw_image_relief): Use predefined macro instead of
20866 constant when the value of `tool_bar_button_relief' is negative.
036e218d 20867
048addec 20868 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 20869
048addec 208702002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 20871
048addec 20872 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 20873
048addec 208742002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 20875
048addec
JD
20876 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
20877 (Fkey_binding): Try the `keymap' property map first.
20878 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
20879 minor mode bindings.
90647b07 20880
048addec 208812002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 20882
3419757d 20883 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 20884
048addec 208852002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 20886
048addec
JD
20887 * keyboard.c (read_key_sequence): Handle the keymap property
20888 before minor mode maps.
9fbc32aa 20889
048addec
JD
20890 * editfns.c (Fformat): Update thissize from field_width
20891 based on the actual width, in the string case.
036e218d 20892
048addec 208932002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 20894
048addec
JD
20895 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
20896 when used as truth value to prevent gcc warnings.
9fbc32aa 20897
048addec
JD
20898 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
20899 * w32proc.c: Include <config.h>.
9fbc32aa 20900
048addec 209012002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 20902
048addec
JD
20903 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
20904 not EMACS_INT, to make them compatible with DEFVAR_INT.
20905 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 20906
048addec 209072002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 20908
048addec
JD
20909 * print.c (print_object): Test print_escape_nonascii only for
20910 unibyte strings.
20911 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
20912 when outputting to a multibyte buffer.
9fbc32aa 20913
048addec 209142001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 20915
048addec
JD
20916 * print.c (print_object): In multibyte string, use hex escapes.
20917 Use octal only for unibyte strings.
20918 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 20919
048addec
JD
20920 * lread.c (read_escape): New arg BYTEREP for reporting whether
20921 escape forces unibyte or multibyte.
20922 (read1): When reading a string, take note of that info.
0142178a 20923
048addec 209242001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 20925
048addec
JD
20926 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
20927 comparison to test lisp value returned by Fget.
d4824a5d 20928
048addec 209292001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 20930
048addec 20931 * lisp.h (max_specpdl_size): Add declaration.
b1356234 20932
048addec 20933 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 20934
048addec
JD
20935 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
20936 Handle modifier bits. Correct typo in error message.
99e380ee 20937
048addec 209382001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 20939
048addec
JD
20940 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
20941 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
20942 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20943 Update calls to Fdefine_abbrev.
20944 (write_abbrev): Update for changed data format.
20945 Don't list "system" abbrevs.
20946 (Fexpand_abbrev): Update use count with new data format.
20947 (describe_abbrev): Update for changed data format.
20948 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 20949
048addec 20950 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 20951
048addec 20952 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 20953
048addec
JD
20954 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
20955 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 20956
048addec
JD
20957 * keymap.c (Flookup_key): Error message if key has wrong data type.
20958 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
20959 (exclude_key): New variable.
59a86c99 20960
048addec 209612001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 20962
048addec
JD
20963 * xterm.c (x_setup_relief_colors): Don't compute an image's
20964 background color if it doesn't have a Pixmap.
eb77a5f4 20965
048addec
JD
20966 * xterm.c (notice_overwritten_cursor): Don't depend on
20967 output_cursor and updated_area. Compare pixel coordinates with
20968 window's cursor pixel coordinates.
20969 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
20970 Call notice_overwritten_cursor with new arg list.
20971 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
20972 unconditionally.
eb77a5f4 20973
048addec
JD
20974 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
20975 height of the cursor line to the amount to scroll.
eb77a5f4 20976
048addec 209772001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 20978
048addec
JD
20979 * intervals.c (set_point_both): The position after an invisible,
20980 intangible character is not an acceptable stopping point.
bb313871 20981
048addec 209822001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 20983
048addec
JD
20984 * window.c (enlarge_window): In new preserve_before code, convert
20985 CURBEG from lisp object to integer before doing arithmetic.
6052529b 20986
048addec 209872001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 20988
048addec 20989 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 20990
048addec 209912001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 20992
048addec
JD
20993 * keyboard.c (record_char): Ignore duplicate help-echo events only
20994 separated by mouse-movement. When tracking mouse, only record
20995 first and last mouse-movement event in same window.
20996 Don't record mouse-movement events in keyboard macros.
3ce081f5 20997
048addec 209982001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 20999
048addec
JD
21000 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
21001 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 21002
048addec
JD
21003 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
21004 instead of Fstring_as_unibyte.
9fabb2f5 21005
048addec 210062001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 21007
048addec 21008 The following changes remove mocklisp support:
9fabb2f5 21009
048addec 21010 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 21011
048addec
JD
21012 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
21013 `Qmocklisp' and `Qmocklisp_arguments'.
21014 Remove prototype of syms_of_mocklisp.
2fa0eedf 21015
048addec 21016 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 21017
048addec
JD
21018 * callint.c: Do not include mocklisp.h.
21019 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 21020
048addec
JD
21021 * eval.c: Remove variables `Qmocklisp_arguments',
21022 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
21023 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
21024 Do not test for mocklisp case.
21025 (Fwhile): Remove unused variable `tem'.
21026 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 21027
048addec 21028 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 21029
048addec 21030 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 21031
048addec 21032 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 21033
048addec 210342001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 21035
048addec
JD
21036 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
21037 to the left or to the right of the pointer, put it against
21038 the left screen edge.
6108b49c 21039
048addec 210402001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 21041
048addec
JD
21042 * Makefile.in (distclean): Remove .gdbinit if we are building
21043 outside the source tree.
5eea19a4 21044
048addec 210452001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 21046
048addec 21047 * w32.c (emacs_root_dir): New function.
5eea19a4 21048
048addec 21049 * msdos.c (emacs_root_dir): New function.
5eea19a4 21050
048addec
JD
21051 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
21052 of the current drive as the fallback for default_directory.
438e57dd 21053
048addec
JD
21054 * dired.c (file_name_completion): Run the elements of
21055 completion-ignored-extensions through ENCODE_FILE.
438e57dd 21056
048addec
JD
21057 * lisp.h (scmp): Remove prototype, since it's now a static
21058 function private to dired.c.
c88e5347 21059
048addec 210602001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 21061
048addec
JD
21062 * dired.c (scmp): Function moved from minibuf.c.
21063 Delete multibyte handling--used only on encoded strings.
59ce1461 21064
048addec 21065 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 21066
048addec 21067 * fns.c (merge): Add QUIT call.
59ce1461 21068
048addec 210692001-12-18 Dave Love <fx@gnu.org>
8727d588 21070
048addec
JD
21071 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
21072 language/georgian.el.
8727d588 21073
048addec 210742001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 21075
048addec
JD
21076 * Makefile.in (lisp, shortlisp): Synchronize with changes to
21077 lisp/Makefile.in:DONTCOMPILE.
cc63037e 21078
048addec 210792001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 21080
048addec
JD
21081 * xdisp.c (window_box_height): Do not return negative values.
21082 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 21083
048addec 21084 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 21085
048addec 21086 * term.c (keys): Likewise.
deece6f5 21087
048addec 21088 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 21089
048addec 210902001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 21091
048addec
JD
21092 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
21093 patch (COMPOSING_P, not COMPOSING).
28ff4293 21094
048addec 210952001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 21096
048addec 21097 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 21098
048addec
JD
21099 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
21100 before calling decode_coding.
9b46de40 21101
048addec 21102 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 21103
048addec
JD
21104 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
21105 instead of only for COMPOSITION_DISABLED.
9b46de40 21106
048addec 211072001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 21108
048addec 21109 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 21110
048addec 21111 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 21112
048addec
JD
21113 * buffer.h (struct buffer): New field `display_error_modiff'.
21114 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 21115
048addec 21116 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 21117
048addec
JD
21118 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
21119 Call redisplay_window, but not if display_error_modiff field says no.
21120 (redisplay_window_error): New function.
21121 (displayed_buffer): New variable.
21122 (redisplay_internal, redisplay_windows): Call the new functions
21123 instead of redisplay_window directly.
2cd23960 21124
048addec 211252001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 21126
048addec 21127 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 21128
048addec 211292001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 21130
048addec 21131 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 21132 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 21133 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 21134
048addec 211352001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 21136
048addec
JD
21137 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
21138 parameter have a numeric value all the time.
f6fa0866 21139
048addec 21140 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 21141
048addec 211422001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 21143
048addec 21144 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 21145
048addec
JD
21146 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
21147 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 21148
048addec 211492001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 21150
048addec
JD
21151 * xdisp.c (move_it_vertically_backward): Change heuristic
21152 for the case that we didn't move far enough initially.
91c153e2 21153
048addec
JD
21154 * window.c (Frecenter): Simplify computation in the case of window
21155 system frames and ARG < 0; use window_box_height.
65b7d3e7 21156
048addec 211572001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 21158
048addec
JD
21159 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
21160 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 21161
048addec 211622001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 21163
048addec
JD
21164 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
21165 arg is negative.
be676094 21166
048addec 211672001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 21168
048addec
JD
21169 * m/hp800.h: Split the __hpux conditional into the parts
21170 that are right for GNU/Linux too and the parts that are not.
21171 Use the former if GNU_LINUX.
21172 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 21173
048addec 21174 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 21175
048addec 211762001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 21177
048addec
JD
21178 * macros.c, msdos.c, w16select.c: Change doc-string comments to
21179 `new style' [w/`doc:' keyword].
032a857d 21180
048addec 211812001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 21182
048addec
JD
21183 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
21184 before using.
b6270150 21185
048addec 211862001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 21187
048addec
JD
21188 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
21189 keyword].
98cbb9fa 21190
048addec 211912001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 21192
048addec 21193 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 21194
048addec 21195 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 21196
048addec 211972001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 21198
048addec 21199 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 21200 Add comment to explain where the struct came from.
048addec
JD
21201 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
21202 (add_menu_item): Process pop-up menus first to avoid memory leak.
21203 (add_menu_item, w32_menu_display_help): Use `help' field as
21204 Lisp_Object.
21205 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 21206
048addec 212072001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 21208
048addec 21209 * COPYING: Moved back.
fa336b91 21210
048addec
JD
21211 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
21212 Add parentheses around && within ||.
077907d4 21213
048addec 21214 * indent.c (compute_motion): Likewise.
aa2af83a 21215
048addec 21216 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 21217
048addec
JD
21218 * coding.c (setup_coding_system, shrink_encoding_region)
21219 (Fdecode_sjis_char): Likewise.
60a653f1 21220
048addec 212212001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 21222
048addec
JD
21223 * xdisp.c (display_mode_element): Don't read past end of string if
21224 it ends with '%'.
60a653f1 21225
048addec
JD
21226 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
21227 can hold.
60a653f1 21228
048addec
JD
21229 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
21230 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
21231 type changed to Lisp_Object.
21232 (syms_of_data): DEFVAR_LISP them.
60a653f1 21233
048addec 212342001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 21235
048addec
JD
21236 * callproc.c (init_callproc): Set Vdata_directory based on the source
21237 location whenever Emacs was run uninstalled.
60a653f1 21238
048addec 212392001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 21240
048addec
JD
21241 * config.in (HAVE_WORKING_VFORK): New #undefs.
21242 * process.c (create_process):
21243 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
21244 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
21245 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
21246 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
21247 * m/intel386.h (HAVE_VFORK): Likewise.
21248 * m/mips-siemens.h (HAVE_VFORK): Likewise.
21249 * m/mips.h (HAVE_VFORK): Likewise.
21250 * s/freebsd.h (vfork): Remove #define.
21251 * s/lynxos.h (HAVE_VFORK): Remove #undef.
21252 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 21253
048addec 212542001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 21255
048addec
JD
21256 * s/hpux10.h (random): Add undef.
21257 (HAVE_RANDOM): Define it just once.
60a653f1 21258
048addec 212592001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 21260
048addec 21261 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 21262
048addec 212632001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 21264
048addec
JD
21265 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
21266 scroll bars of the frame before deleting the frame itself. If the
21267 frame has a widget, delete the frame with XtDestroyWidget, and do
21268 not call XDestroyWindow before that.
60a653f1 21269
048addec 212702001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 21271
048addec 21272 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 21273
048addec 21274 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 21275
048addec 212762001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 21277
048addec
JD
21278 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
21279 excessively large.
60a653f1 21280
048addec
JD
21281 * insdel.c (make_gap_larger): New function.
21282 (make_gap_smaller): New function.
21283 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
21284 Call make_gap_smaller if arg is negative.
60a653f1 21285
048addec 212862001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 21287
048addec
JD
21288 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
21289 Pass a dummy argument when calling interrupt_signal.
21290 (parse_menu_item): Mark disabled items before checking for empty def.
21291 (read_char_minibuf_menu_prompt): Make safety more visible.
21292 (read_key_sequence): Add a `first_unbound' variable.
21293 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
21294 unbound prefix as soon as we can detect it.
60a653f1 21295
048addec
JD
21296 * doc.c (Fsnarf_documentation): Add prototype.
21297 (get_doc_string): Handle negative arguments.
21298 (Fdocumentation): Use AREF and ASIZE.
21299 Move the calls to get_doc_string to a single place.
21300 Don't confuse an interactive-spec for a docstring reference.
21301 (Fdocumentation_property): Take advantage of the fact that
21302 get_doc_string now ignores the sign of the docstring position.
60a653f1 21303
048addec 21304 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 21305
048addec 213062001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 21307
a64387ee 21308 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 21309
048addec 213102001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 21311
048addec
JD
21312 * xterm.c (x_draw_image_relief): Use predefined macro instead of
21313 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 21314
048addec 213152001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 21316
048addec
JD
21317 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
21318 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 21319
048addec 21320 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 21321
048addec 213222001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 21323
048addec 21324 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 21325
048addec 213262001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 21327
048addec 21328 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 21329
048addec 213302001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 21331
f63fd14e 21332 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 21333
048addec
JD
21334 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
21335 [!WM_MOUSELEAVE]: Define.
60a653f1 21336
048addec
JD
21337 * w32menu.c (current_popup_menu, get_menu_item_info):
21338 (set_menu_item_info): New vars.
21339 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
21340 (w32_menu_show): Set current_popup_menu.
21341 (add_menu_item): Allocate new strings for owner-drawn menu items
21342 and help strings.
21343 Use owner-draw for disabled menu items again.
21344 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
21345 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 21346
048addec
JD
21347 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
21348 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
21349 <WM_EXITMENULOOP>: Free menu strings.
21350 <WM_MOUSELEAVE>: Stop tracking mouse.
21351 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 21352
048addec
JD
21353 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
21354 and mouse face.
60a653f1 21355
048addec 213562001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 21357
048addec
JD
21358 The following changes add left-fringe and right-fringe
21359 frame parameters to adjust fringe widths, or remove one or
21360 both fringes.
60a653f1 21361
048addec
JD
21362 * frame.h (struct frame): Remove trunc_area_pixel_width and
21363 trunc_area_cols fields.
21364 (Qleft_fringe, Qright_fringe): Declare.
21365 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 21366
048addec
JD
21367 * frame.c (Qleft_fringe, Qright_fringe): New vars.
21368 (syms_of_frame): Initialize them.
60a653f1 21369
048addec
JD
21370 * window.c (coordinates_in_window): Handle separate left and right
21371 fringe widths.
60a653f1 21372
048addec
JD
21373 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
21374 and fringe_cols fields.
21375 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
21376 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
21377 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
21378 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
21379 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
21380 (x_compute_fringe_widths): Add prototype.
60a653f1 21381
048addec
JD
21382 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
21383 fill fringe evenly with small dashes.
f63fd14e 21384 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
21385 clip the new ZV bitmap to avoid jitter between rows.
21386 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
21387 background. Don't draw fringe bitmaps if fringe width is zero.
21388 (x_compute_fringe_widths): New function.
21389 (x_new_font, x_set_window_size_1): Use it.
60a653f1 21390
048addec
JD
21391 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
21392 (x_set_frame_parameters): Process `font' parameter before other
21393 parameters as fringe widths depend on it.
21394 (x_set_fringe_width): New function.
21395 (x_figure_window_size): Use x_compute_fringe_widths.
21396 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
21397 parameters.
60a653f1 21398
048addec
JD
21399 * widget.c (set_frame_size): Use x_compute_fringe_widths.
21400 (EmacsFrameSetCharSize): Ditto.
60a653f1 21401
048addec
JD
21402 * w32term.h: Merged changes from xterm.h.
21403 * w32term.c: Merged changes from xterm.c.
21404 * w32fns.c: Merged changes from xfns.c.
60a653f1 21405
048addec 214062001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 21407
048addec 21408 * COPYING: Removed.
60a653f1 21409
048addec 214102001-11-29 Dave Love <fx@gnu.org>
60a653f1 21411
048addec
JD
21412 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
21413 extra extra slot.
21414 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 21415
048addec 214162001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 21417
048addec
JD
21418 * fileio.c (file-name-coding-system)
21419 (default-file-name-coding-system): Doc fix (links to referenced
21420 variables added).
60a653f1 21421
048addec 214222001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 21423
048addec
JD
21424 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
21425 Add dummy uses of gcproN variables.
60a653f1 21426
048addec
JD
21427 * category.c (describe_category, describe_category_1)
21428 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
21429 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 21430
048addec 214312001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 21432
048addec 21433 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 21434
048addec
JD
21435 * Makefile.in (lispdir): New variable, referring to build dir.
21436 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 21437
048addec 214382001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 21439
048addec
JD
21440 * w32menu.c (w32_menu_display_help): Actually add the new argument
21441 OWNER.
60a653f1 21442
048addec 214432001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 21444
048addec
JD
21445 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
21446 menu items. From David Ponce <dponce@wanadoo.fr>.
21447 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
21448 conditionally.
f63fd14e 21449 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 21450 help event in the owner frame's keyboard buffer.
60a653f1 21451
048addec
JD
21452 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
21453 (Fx_show_tip): Don't subtract last width from row width.
21454
21455 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
21456 (w32_read_socket): Use EQ to compare frames.
60a653f1 21457
048addec 214582001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 21459
048addec
JD
21460 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
21461 OVERLAPS_P.
60a653f1 21462
048addec 214632001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 21464
048addec
JD
21465 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
21466 `gcpro3' and `gcpro4'.
60a653f1 21467
048addec 21468 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 21469
048addec 214702001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 21471
048addec 21472 * ccl.c: Use AREF and ASIZE.
60a653f1 21473
048addec 214742001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 21475
048addec
JD
21476 * lisp.h (run_hook_list_with_args): Remove.
21477 (LIST_END_P): Fix call to wrong_type_argument.
21478 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 21479
048addec 214802001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 21481
048addec
JD
21482 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
21483 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 21484
048addec
JD
21485 * eval.c: Use AREF and ASIZE.
21486 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 21487
048addec
JD
21488 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
21489 which match the end of the file-name.
21490 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
21491 is not a valid env var, but leave it as is instead.
60a653f1 21492
048addec
JD
21493 * keymap.c (access_keymap): Handle t bindings like nil bindings.
21494 Make nil bindings in char-tables transparent.
21495 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 21496
048addec 214972001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 21498
048addec
JD
21499 * textprop.c (set_text_properties_1): Allow START, END in either order.
21500 Do nothing if range is empty.
60a653f1 21501
048addec 21502 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 21503
048addec
JD
21504 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
21505 (clean): Not here.
60a653f1 21506
048addec 215072001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 21508
048addec
JD
21509 * textprop.c (set_text_properties_1): Clearly mark that the
21510 interval should not be empty.
60a653f1 21511
048addec
JD
21512 * intervals.c (graft_intervals_into_buffer):
21513 Don't call set_text_properties_1 on an empty interval.
60a653f1 21514
048addec 215152001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 21516
048addec 21517 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 21518
048addec
JD
21519 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
21520 don't lose the data in it.
60a653f1 21521
048addec 215222001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 21523
048addec 21524 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 21525
c62aec78 21526 * buffer.c (Fkill_buffer): Likewise.
60a653f1 21527
c62aec78 21528 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 21529
048addec 215302001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 21531
048addec 21532 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 21533
048addec 215342001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 21535
048addec
JD
21536 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
21537 Niemitalo <kon@iki.fi>.
60a653f1 21538
048addec 215392001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 21540
048addec 21541 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 21542
048addec
JD
21543 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
21544 (Fx_show_tip): Block input during frame creation.
21545 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 21546
048addec 215472001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 21548
048addec
JD
21549 * lread.c (Fload): Detect recursive load error for more than 3
21550 nestings of the same file.
21551 (Vrecursive_load_depth_limit): Variable deleted.
21552 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 21553
048addec 215542001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 21555
048addec
JD
21556 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
21557 mouse position if either left or top is not specified.
60a653f1 21558
048addec
JD
21559 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
21560 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
21561 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
21562 (my_create_tip_window): Assign tip_window.
21563 (x_create_tip_frame): Use same defaults as X.
21564 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 21565 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 21566
048addec
JD
21567 * w32term.c (x_after_update_window_line): Doc fix.
21568 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
21569 frames.
21570 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 21571
048addec
JD
21572 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
21573 for all Windowed systems.
60a653f1 21574
048addec 215752001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 21576
048addec
JD
21577 * msdos.c (IT_clear_screen): If the frame's faces are not yet
21578 realized, use the initial screen colors to clear the screen.
60a653f1 21579
048addec 215802001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 21581
048addec
JD
21582 * textprop.c (Fset_text_properties): Remove unused variables
21583 `unchanged', `prev_changed', `s' and `len'.
60a653f1 21584
048addec
JD
21585 * search.c (Freplace_match): Remove unused variable `inslen'.
21586
21587 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
21588
215892001-11-22 Jason Rumney <jasonr@gnu.org>
21590
21591 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
21592 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
21593 (my_create_tip_window): New function.
21594 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
21595 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
21596
215972001-11-20 Jason Rumney <jasonr@gnu.org>
21598
21599 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
21600 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
21601
21602 * w32fns.c (Vw32_system_coding_system): Remove.
21603 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
21604
216052001-11-19 Stefan Monnier <monnier@cs.yale.edu>
21606
21607 * fileio.c (Fwrite_region): Move choose_write_coding_system to
21608 after build_annotations.
21609
21610 * syntax.c (describe_syntax): Add dummy arg.
21611 (describe_syntax_1): Update call to describe_vector.
21612
21613 * category.c (describe_category): Add dummy arg.
21614 (describe_category_1): Update call to describe_vector.
21615
21616 * keymap.c (Fdescribe_vector): Add `describer' parameter.
21617 (describe_command, describe_translation): Add dummy second param.
21618 (describe_map): Call elt_describer with two arguments.
21619 (describe_vector_princ): Add `fun' parameter.
21620 Call it instead of the hardcoded `princ'.
21621 (describe_vector): Add arg `args'.
21622 Pass it as a new second argument to elt_describer.
60a653f1 21623
048addec 21624 * keymap.h (describe_vector): Update prototype.
60a653f1 21625
048addec
JD
21626 * frame.c: Don't include keymap.h any more.
21627 (keys_of_frame): Remove.
60a653f1 21628
048addec 21629 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 21630
048addec 21631 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 21632
048addec 216332001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 21634
048addec
JD
21635 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
21636 if defined, 0 otherwise.
21637 (MAP_FAILED): Define if not defined and use it to test mmap failure.
21638 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 21639
048addec 216402001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 21641
048addec 21642 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 21643
048addec 216442001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 21645
048addec
JD
21646 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
21647 (x_draw_bar_cursor): If the background color of the glyph under
21648 the cursor equals the frame's cursor color, use the glyph's
21649 foreground color for drawing the bar cursor.
21650 (x_after_update_window_line): Clear internal border in different
21651 circumstances.
21652 (w32_set_vertical_scroll_bar): Check for width and height > 0.
21653 (w32_draw_relief_rect): Correct relief by 1 pixel.
21654 (x_set_glyph_string_background_width):
21655 Set extends_to_end_of_line_p if the row's fill_line_p is set and
21656 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
21657 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
21658 if cursor_in_non_selected_windows is false.
21659 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
21660 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
21661 Notice if cursor gets overwritten.
21662 (notice_overwritten_cursor): Renamed from
21663 note_overwritten_text_cursor. Rewritten to take glyph widths
21664 into account, and to take X positions as parameters.
21665 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
21666 around call to x_draw_glyphs.
21667 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
21668 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
21669 color to use for image glyph reliefs.
21670 (x_draw_image_relief): Accept zero tool_bar_button_relief.
21671 (glyph_rect): Remove unused variable `area'.
60a653f1 21672
048addec
JD
21673 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
21674 some items.
21675 (x_set_internal_border_width): Set frame garbaged when window
21676 doesn't exist yet.
21677 (Fx_create_frame): Accept zero tool_bar_button_relief.
21678 (x_clear_image_1, four_corners_best, image_background)
21679 (image_background_transparent): New functions.
21680 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
21681 (gs_format): Add `:background' entry.
21682 (lookup_image): Set IMG's background color if specified.
21683 (pbm_load, xbm_load_image, png_load): Set IMG's background field
21684 when appropriate.
21685 (x_clear_image_1): Reset `background_valid' and
21686 `background_transparent_valid' fields.
21687 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
21688 calculating it here. Set IMG's background_transparent field.
21689 (enum xpm_keyword_index): Add XPM_BACKGROUND.
21690 (enum png_keyword_index): Add PNG_BACKGROUND.
21691 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
21692 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
21693 (enum gif_keyword_index): Add GIF_BACKGROUND.
21694 (enum gs_keyword_index): Add GS_BACKGROUND.
21695 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
21696 Pre-calculate image background color where necessary.
21697 (x_create_x_image_and_pixmap, xbm_load, gs_load):
21698 Use display info's n_cbits entry for screen depth.
21699 (Fx_show_tip): Remove unused variables `buffer', `top',
21700 `left', `max_width' and `max_height'.
60a653f1 21701
048addec 21702 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 21703
048addec 217042001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 21705
048addec 21706 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 21707
048addec 217082001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 21709
048addec 21710 * frame.c (Fframe_live_p): Doc fix.
60a653f1 21711
048addec 217122001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 21713
048addec
JD
21714 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
21715 (message_dolog_marker3): New static variables hold three markers.
21716 (syms_of_xdisp): Initialize and staticpro them.
21717 (message_dolog): Use message_dolog_marker1..3 instead of
21718 allocating markers each time. Unchain them when done.
60a653f1 21719
048addec 217202001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 21721
048addec 21722 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 21723
048addec 217242001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 21725
048addec 21726 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 21727
048addec 217282001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 21729
048addec 21730 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 21731
048addec 217322001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 21733
048addec 21734 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 21735
048addec 217362001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 21737
048addec
JD
21738 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
21739 with invalid position.
60a653f1 21740
048addec 217412001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 21742
048addec 21743 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 21744
048addec
JD
21745 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
21746 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
21747 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 21748
048addec 21749 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 21750
048addec 217512001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 21752
048addec
JD
21753 * fileio.c (build_annotations): Split off the tail.
21754 (build_annotations_2): New fun. Extracted from build_annotations.
21755 (Fwrite_region): Split the call to build_annotations into two
21756 calls to build_annotations and build_annotations_2.
077907d4 21757
048addec 217582001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 21759
048addec
JD
21760 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
21761 clear_waiting_for_input with argument.
1756e2fb 21762
048addec 21763 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 21764
048addec 21765 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 21766
048addec 21767 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 21768
048addec 21769 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 21770
048addec 217712001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 21772
048addec
JD
21773 * fileio.c (choose_write_coding_system): New fun, extracted
21774 from Fwrite_region.
21775 (Fwrite_region): Use it.
fa336b91 21776
048addec
JD
21777 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
21778 (funcall_lambda, run_hook_with_args): Make static and add prototype.
21779 (ml_apply, find_handler_clause): Add prototype.
fa336b91 21780
048addec 217812001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 21782
048addec 21783 * config.in: Add #undef HAVE_COFF_H.
fa336b91 21784
048addec
JD
21785 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
21786 Required for ISC 4.1.
fa336b91 21787
048addec 217882001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 21789
52eb0373 21790 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
048addec 21791 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 21792
048addec 217932001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 21794
048addec
JD
21795 The following changes are made to clean up the various internal
21796 references to the fringes to actually use the term `fringe' for
21797 them. Previously, they were called `flags areas', `bitmap areas',
21798 `left/right side of windows', or implicitly as `flags' or
21799 `bitmaps':
fa336b91 21800
048addec 21801 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 21802 Comments fixed. Use renamed symbols.
06e8f738 21803
f63fd14e 21804 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 21805
048addec
JD
21806 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
21807 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
21808 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 21809
048addec 21810 * msdos.c: Comment fix.
9ce647f4 21811
048addec 21812 * w32fns.c: Use renamed symbols.
9b784ab8 21813
f63fd14e 21814 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
21815 (fringe_bitmap_type): Renamed from bitmap_type.
21816 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
21817 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
21818 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 21819
f63fd14e 21820 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
21821 (fringes_extra): Renamed from flags_areas_extra.
21822 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
21823 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
21824 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
21825 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
21826 (FRAME_X_LEFT_FRINGE_WIDTH):
21827 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
21828 (FRAME_X_RIGHT_FRINGE_WIDTH):
21829 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 21830
048addec 21831 * widget.c: Use renamed symbols.
9f7e52b4 21832
f63fd14e 21833 * window.c: Comment fixes. Use renamed symbols.
048addec 21834 (coordinates-in-window-p): Doc fix.
fa336b91 21835
f63fd14e 21836 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 21837
048addec 21838 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 21839
048addec 21840 * xfns.c: Use renamed symbols.
89512fcd 21841
f63fd14e 21842 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
21843 (fringe_bitmap_type): Renamed from bitmap_type.
21844 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
21845 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
21846 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 21847
f63fd14e 21848 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
21849 (fringes_extra): Renamed from flags_areas_extra.
21850 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
21851 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
21852 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
21853 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
21854 (FRAME_X_LEFT_FRINGE_WIDTH):
21855 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
21856 (FRAME_X_RIGHT_FRINGE_WIDTH):
21857 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
21858
218592001-11-15 Jason Rumney <jasonr@gnu.org>
21860
21861 * w32menu.c (add-menu-item): Make help_echo and radio buttons
21862 work for most menu items. From David Ponce
21863 <david.ponce@wanadoo.fr>.
21864
218652001-11-15 Gerd Moellmann <gerd@gnu.org>
21866
21867 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
21868 Some x_set_* function expect to be called even if old and new
21869 value are equal.
21870
21871 * xdisp.c (build_desired_tool_bar_string): Accept zero
21872 tool_bar_button_relief.
21873
21874 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
21875
21876 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
21877
21878 * xterm.c (x_draw_bar_cursor): If the background color of the
21879 glyph under the cursor equals the frame's cursor color, use
21880 the glyph's foreground color for drawing the bar cursor.
21881
21882 * dispnew.c (direct_output_forward_char): Fix character/byte
21883 position comparison.
7d18891d 21884
048addec 218852001-11-15 Miles Bader <miles@gnu.org>
d2936d21 21886
048addec
JD
21887 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
21888 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
21889 Update arguments to find_field.
21890 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
21891 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
21892 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
21893 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 21894
048addec 218952001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 21896
048addec 21897 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 21898
048addec
JD
21899 * dispextern.h (image_background, image_background_transparent):
21900 Conditionalize on HAVE_X_WINDOWS.
7d18891d 21901
048addec 219022001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 21903
048addec 21904 * print.c (Fprin1_to_string): Doc fix.
7d18891d 21905
048addec 21906 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 21907
048addec 21908 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 21909
048addec 21910 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 21911
048addec 21912 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 21913
048addec 21914 * eval.c (syms_of_eval): Doc fix.
7d18891d 21915
048addec 21916 * coding.c (syms_of_coding): Doc fix.
7d18891d 21917
048addec 21918 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 21919
048addec 21920 * dispnew.c (syms_of_display): Doc fix.
9474c847 21921
048addec 21922 * category.c (Fget_unused_category): Doc fix.
9474c847 21923
048addec 21924 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 21925
048addec 219262001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 21927
048addec 21928 * print.c (prin1, print): Doc fix.
e3059a5d 21929
048addec 219302001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 21931
048addec
JD
21932 * fontset.h: Remove declarations of variables
21933 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 21934
048addec
JD
21935 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
21936 `Vclip_large_size_font'.
eae936e2 21937
048addec 219382001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 21939
048addec 21940 * w32fns.c: Doc fix.
ddb67bdc 21941
048addec 219422001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 21943
048addec 21944 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 21945
048addec 21946 * fns.c: Doc fix.
6e1b91d7 21947
048addec 21948 * emacs.c: Doc fix.
1c1d3d69 21949
048addec 21950 * coding.c: Doc fix.
1c1d3d69 21951
048addec
JD
21952 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
21953 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
21954 `new style' [w/`doc:' keyword].
b6f4c7ba 21955
048addec 219562001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 21957
048addec
JD
21958 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
21959 LeaveNotify events. Only FocusIn and FocusOut do that now.
21960 (x_display_and_set_cursor): Do display hollow cursors in active
21961 minibuffer windows when they are not selected.
b6f4c7ba 21962
048addec 219632001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 21964
048addec 21965 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
21966 * w32term.c: Change doc-string comments to `new style'
21967 [w/`doc:' keyword]. Doc fixes.
a89f435d 21968
048addec
JD
21969 * w32fns.c: Don't define max.
21970 (Fx_open_connection): Only execute once.
a4cd0cd7 21971
048addec 219722001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 21973
048addec
JD
21974 * ccl.c: Change macros to use do-while block instead of if-else.
21975 Use braces to follow GNU Coding Standards.
eafb659a 21976
048addec 219772001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 21978
048addec 21979 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 21980
048addec 21981 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 21982
048addec
JD
21983 * insdel.c (replace_range): Use adjust_markers_for_replace
21984 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 21985
78819ebb 21986 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 21987
048addec
JD
21988 * textprop.c (set_text_properties_1): New subroutine
21989 broken out of set_text_properties.
21990 (set_text_properties): Use set_text_properties_1.
91823618 21991
048addec
JD
21992 * intervals.c (graft_intervals_into_buffer):
21993 Use set_text_properties_1 to clear out properties.
91823618 21994
048addec
JD
21995 * search.c (Freplace_match): Use replace_range to insert
21996 and delete. Don't request property inheritance from
21997 surrounding text.
86928dfb 21998
048addec 219992001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 22000
048addec 22001 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 22002 vertical fonts. Allow them if face name is explicitly specified.
048addec 22003 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 22004
048addec 220052001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 22006
048addec
JD
22007 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
22008 instead of malloc/free.
a78e0303 22009
048addec 220102001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 22011
048addec
JD
22012 * xfaces.c (merge_face_vectors): Use braces to follow GNU
22013 Coding Standards.
22014 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 22015
048addec 22016 * buffer.c (Fbury_buffer): Likewise.
0c99b139 22017
048addec 22018 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 22019
048addec
JD
22020 * coding.c (encode_coding): Use precomputed value of `src'.
22021 (encode_coding): Remove unused variable `src_end'.
22022 (code_convert_region): Remove unused variables `count'.
830ddd77 22023
048addec 220242001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 22025
048addec
JD
22026 * w32term.c (x_display_and_set_cursor): Do not move system caret
22027 if cursor_glyph is NULL.
55c6d645 22028
048addec 220292001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 22030
048addec 22031 * keymap.c (access_keymap): Fix compilation error.
5de38842 22032
048addec 220332001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 22034
048addec 22035 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 22036
048addec 220372001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 22038
048addec
JD
22039 * intervals.c (graft_intervals_into_buffer):
22040 Remove #ifdef'd-out code.
22041 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 22042
048addec
JD
22043 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
22044 code (eval-current-buffer).
22045 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 22046
048addec 220472001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 22048
048addec 22049 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 22050
048addec 220512001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 22052
048addec 22053 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 22054
048addec
JD
22055 * keyboard.c (make_lispy_event): Check integerness and fix
22056 Lisp_Object/int mixup.
17893c65 22057
048addec 220582001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 22059
048addec 22060 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 22061
048addec
JD
22062 * fontset.c (fontset_font_pattern): Remove unused variable
22063 `family_registry'.
d5360cc7 22064
048addec 22065 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 22066
048addec 220672001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 22068
048addec 22069 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 22070
048addec
JD
22071 * buffer.c (Fkill_buffer): Don't delete auto save file
22072 if buffer is modified.
d9d54213 22073
048addec 220742001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 22075
048addec
JD
22076 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
22077 CHECK_NUMBER_CDR.
b116830b 22078
048addec 220792001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 22080
048addec 22081 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 22082
048addec 220832001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 22084
048addec 22085 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 22086
048addec 220872001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 22088
048addec 22089 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 22090
048addec 220912001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 22092
048addec
JD
22093 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
22094 the program image directly.
982f6c7e 22095
048addec 220962001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 22097
048addec 22098 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 22099
048addec 221002001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 22101
048addec
JD
22102 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
22103 and CHECK_BUFFER.
d31053f9 22104
048addec
JD
22105 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
22106 (record_char): Likewise.
d31053f9 22107
048addec
JD
22108 * keyboard.c (make_lispy_event): Don't insist a drag event must
22109 move to a different buffer position. Instead, check for moving at
22110 least double_click_fuzz.
982f6c7e 22111
048addec 22112 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 22113
048addec 22114 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 22115
048addec
JD
22116 * indent.c (current_column_1, Fmove_to_column): Separate the code
22117 for display-table glyphs from the code for buffer text, to fix
22118 bugs in the former.
830047fd 22119
048addec 221202001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 22121
048addec
JD
22122 * buffer.c (Fbuffer_local_value): New function.
22123 (syms_of_buffer): Defsubr it.
2df5238c 22124
048addec
JD
22125 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
22126 value of `cursor-in-non-selected-windows'.
4e397688 22127
048addec
JD
22128 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
22129 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
22130 (syms_of_xdisp): Initialize it.
48b0f3ae 22131
048addec 221322001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 22133
048addec 22134 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 22135
048addec
JD
22136 * coding.c: Change doc-string comments to `new style' [w/`doc:'
22137 keyword].
3ecaf7e5 22138
048addec
JD
22139 * eval.c (top_level_value, top_level_set): Remove commented and
22140 #ifdef'd-out code.
22141 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 22142
048addec 221432001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 22144
048addec 22145 * xfns.c: Include unistd.h, if it exists.
8db2e33b 22146
048addec 22147 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 22148
048addec 22149 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 22150
048addec 221512001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 22152
048addec
JD
22153 * lisp.h (CHECK_STRING_CAR): New macro.
22154 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
22155 treating XCAR and XCDR as lvalues.
22156 (openp): Use CHECK_STRING_CAR.
22157 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 22158
048addec 221592001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 22160
048addec
JD
22161 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
22162 (SIGMASKTYPE): Define.
1b1acc13 22163
048addec 22164 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 22165
048addec 221662001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 22167
048addec
JD
22168 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
22169 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
22170 Fix typos in comments.
6cb16f95 22171
048addec
JD
22172 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
22173 and #ifdef'd-out code.
22174 Fix and reindent comments.
6cb16f95 22175
048addec 22176 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 22177
048addec
JD
22178 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
22179 argument `i' in macros.
6cb16f95 22180
048addec
JD
22181 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
22182 `i' in macros.
7e9d3c2f 22183
048addec
JD
22184 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
22185 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
22186 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
22187 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
22188 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
22189 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
22190 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
22191 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
22192 in macros.
7e9d3c2f 22193
048addec
JD
22194 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
22195 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
22196 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
22197 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
22198 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
22199 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
22200 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
22201 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
22202 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
22203 (remove unused second argument).
7e9d3c2f 22204
048addec 222052001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 22206
048addec
JD
22207 * syntax.c (describe_syntax): New wrapper.
22208 (Finternal_describe_syntax_value): Rename from describe_syntax.
22209 Don't insert space at front and \n at the end.
22210 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 22211
048addec
JD
22212 * regex.c (re_wctype): Try to fix some warnings.
22213 (regcomp, regexec): Don't forget the __restrict.
9ba48103 22214
048addec 222152001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 22216
048addec 22217 * textprop.c (Fget_char_property): Doc fix.
9ba48103 22218
048addec 222192001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 22220
048addec 22221 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 22222
048addec 22223 * data.c (Fsetq_default): Ditto.
c22e59e1 22224
048addec 22225 * callint.c (Finteractive): Ditto.
9271ed2c 22226
048addec 222272001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 22228
048addec
JD
22229 * macros.c: Don't include keymap.h any more.
22230
222312001-11-01 Richard M. Stallman <rms@gnu.org>
22232
22233 * data.c (Fmake_local_variable): Doc fix.
22234
22235 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
22236 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 22237
048addec 22238 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
22239 bindings along with or instead of the buffer local map.
22240 Make the overriding maps override what they should.
22241
f00691a3 222422001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
22243
22244 * window.c (grow_mini_window): Fix typo in comment.
22245
27188d11
GM
222462001-11-01 Gerd Moellmann <gerd@gnu.org>
22247
7b49b9d2
GM
22248 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
22249 (XTset_vertical_scroll_bar): Likewise.
22250
43f7c3ea
GM
22251 * xfns.c (x_build_heuristic_mask): Use four_corners_best
22252 instead of IMAGE_BACKGROUND.
c22e59e1 22253
b350c2e5
GM
22254 * xfns.c (four_corners_best): Reindent.
22255
c22e59e1 22256 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
22257 Handle :box so that it is possible to specify sexprs.
22258
bf00d461
EZ
222592001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
22260
22261 * s/hpux11.h: New file.
22262
f00691a3 222632001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 22264
2b209b97
PJ
22265 * emacs.c (USAGE1): Show command line option --no-window-system
22266 instead of --no-windows in usage.
22267 (standard_args): Rename --no-windows to --no-window-system.
22268 (bug_reporting_address): Follow Emacs coding conventions.
22269
9dbc9081
PJ
22270 * eval.c (Fcommandp): Doc fix.
22271 Change doc-string comments to `new style' [w/`doc:' keyword].
22272
4e10df59
PJ
22273 * frame.c (Fframe_live_p): Doc fix.
22274
22275 * buffer.c (selective-display-ellipses): Doc fix.
22276
dd387b25
GM
222772001-10-31 Gerd Moellmann <gerd@gnu.org>
22278
fe957e65
GM
22279 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
22280
dd387b25
GM
22281 * xfaces.c (realize_x_face): If C is not a single-byte character,
22282 set the face's colors_copied_bitwise_p instead of the defaulted_p
22283 members which have a different meaning.
22284 (free_face_colors): Do nothing for a face whose colors have been
22285 copied bitwise.
22286
c22e59e1 22287 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 22288
f00691a3 222892001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 22290
687784e8
PJ
22291 * marker.c, mocklisp.c: Change doc-string comments to `new style'
22292 [w/`doc:' keyword].
2e1280f8 22293
b9d9a9b9
GM
222942001-10-31 Gerd Moellmann <gerd@gnu.org>
22295
22296 * fns.c (require_unwind): Return Lisp_Object.
22297
f00691a3 222982001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 22299
fa1361cb
PJ
22300 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
22301 (last-input-char): Revert doc-string to be the same as the
22302 doc-string of `last-input-event'.
22303
6c465a15 22304 * xdisp.c: Fix typos in comments.
48400103 22305
eafa3196
GM
223062001-10-31 Gerd Moellmann <gerd@gnu.org>
22307
22308 * window.c (grow_mini_window): Handle case that the root
22309 window is already smaller than the nominal mininum height.
22310
747d3f2a
SM
223112001-10-30 Stefan Monnier <monnier@cs.yale.edu>
22312
bf9bb76f
SM
22313 * emacs.c (main): Don't call keys_of_macros any more.
22314
22315 * lisp.h (keys_of_macros): Remove.
22316
22317 * macros.c (keys_of_macros): Remove.
22318
747d3f2a
SM
22319 * xfaces.c (Fface_attribute_relative_p): Declare args.
22320
5e905a57
JR
223212001-10-30 Jason Rumney <jasonr@gnu.org>
22322
22323 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
22324 (enum_font_cb2): Ignore fonts with vertical orientation.
22325
3a426197
RS
223262001-10-30 Richard M. Stallman <rms@gnu.org>
22327
22328 * keyboard.c (Finput_pending_p): Doc fix.
22329
a742d646
GM
223302001-10-30 Gerd Moellmann <gerd@gnu.org>
22331
259cf6bc
GM
22332 * xterm.c (x_after_update_window_line): Don't run the code
22333 clearing in borders for rows whose visible height is 0.
22334
3f99f948
GM
22335 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
22336 resized_p flag is set. If not set, use the much less flickering
22337 method previously used.
22338
22339 * dispnew.c (change_frame_size_1): Set frame's resized_p.
22340
22341 * frame.h (struct frame) <resized_p>: New member.
22342
b4a3be43
GM
22343 * lread.c (to_multibyte): Ensure read_buffer is at least twice
22344 as large as the number of bytes to convert.
747d3f2a 22345
a742d646
GM
22346 * lread.c (to_multibyte): New function.
22347 (read1): Use it.
22348
cacbb9e9
EZ
223492001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
22350
22351 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
22352
99cb6b2f
GM
223532001-10-30 Gerd Moellmann <gerd@gnu.org>
22354
327f42ee 22355 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
22356 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
22357 if the row's fill_line_p is set and drawing the last glyph with
22358 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 22359
99cb6b2f
GM
22360 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
22361
8e8223e2
SM
223622001-10-29 Stefan Monnier <monnier@cs.yale.edu>
22363
22364 * xmenu.c: Include coding.h and charset.h.
22365 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
22366 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
22367 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
22368 Explicitly set wv->help. Use `TRUE' rather than `True'.
22369 (menu_help_callback): Use empty_string.
22370
22371 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
22372 (Fx_popup_dialog): Explicitly init f.
22373 (w32_menu_display_help): Use empty_string.
22374
4d083a8f
RS
223752001-10-29 Richard M. Stallman <rms@gnu.org>
22376
b2304472
RS
22377 * fns.c (Frequire): Detect recursive try to require the same
22378 feature 3 or more levels deep, and get error.
22379 (require_unwind): New subroutine.
22380 (require_nesting_list): New variable.
22381 (syms_of_fns): Init and staticpro it.
22382
4d083a8f
RS
22383 * print.c (print_object): Clarify indication of insertion type.
22384
2fe41216
EZ
223852001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
22386
90480000
EZ
22387 * coding.c (syms_of_coding): Document that locale-coding-system is
22388 used for decoding input on X.
22389
2fe41216
EZ
22390 * window.c (Fscroll_left, Fscroll_right): Doc fix.
22391
f00691a3 223922001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
22393
22394 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
22395 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
22396
60ebcfe8
GM
223972001-10-29 Gerd Moellmann <gerd@gnu.org>
22398
9a7bdceb
GM
22399 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
22400 use NO_CURSOR if cursor_in_non_selected_windows is false.
22401
3f08fcd2
GM
22402 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
22403 the slant attribute if FRAME is t.
22404
0ccfdad2
GM
22405 * xfns.c (x_set_internal_border_width): Set frame garbaged
22406 when X window doesn't exist yet.
22407
ef253080
GM
22408 * xterm.c (x_after_update_window_line): Clear internal border
22409 in different circumstances.
b116830b 22410
60ebcfe8
GM
22411 * xterm.c (XTread_socket) <KeyPress>: Don't use
22412 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
22413 <handa@etl.go.jp>.
22414
73d25f9c
EZ
224152001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
22416
22417 * m/ibms390.h: New file. From Adam Thornton
22418 <athornton@sinenomine.net>.
22419
cac1daf0
GM
224202001-10-28 Gerd Moellmann <gerd@gnu.org>
22421
053b3256 22422 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 22423
cac1daf0
GM
22424 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
22425 a loop counter.
22426
f00691a3 224272001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 22428
f9711de4 22429 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 22430
4707d2d0
PJ
22431 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
22432 keyword].
22433 Fix typos in comments.
b116830b 22434
d883731c
PJ
22435 * emacs.c (bug_reporting_address): New function.
22436 Use it when displaying usage message.
22437
04012254
PJ
22438 * minibuf.c (read_minibuf): Remove unused external declaration of
22439 variable `Qread_only'.
22440
13b1a09c
PJ
22441 * keymap.c (access_keymap): Remove unused variable `charset'.
22442
5bbf4378
MB
224432001-10-28 Miles Bader <miles@gnu.org>
22444
22445 * xfaces.c (merge_face_heights): Handle TO being relative as well.
22446 Remove #ifdef'd-out code.
22447 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
22448 (syms_of_xfaces): Initialize them.
22449
1ce1e4ee
JR
224502001-10-27 Jason Rumney <jasonr@gnu.org>
22451
22452 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
22453 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
22454 position using the system caret.
22455
22456 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
22457 (w32_system_caret_height, w32_system_caret_x)
22458 (w32_system_caret_y): New variables for tracking system caret.
22459 (w32_initialize): Initialize them.
c2d53558 22460 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 22461
c2d53558
SM
22462 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
22463 New messages types.
1ce1e4ee
JR
22464
22465 * w32term.c (note_mouse_highlight): Clear old help_echo.
22466
f00691a3 224672001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 22468
bb4600a4
PJ
22469 * xterm.c: Fix typo in a comment.
22470
7db35a48
PJ
22471 * emacs.c: Fix typos in comments.
22472 Remove unnecessary spaces.
22473 Change doc-string comments to `new style' [w/`doc:' keyword].
22474 (USAGE2): Fix typos in usage string.
22475
a7248e4f
PJ
22476 * xterm.c: Fix typo in a comment.
22477
52eb0373 22478 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
4e30ce42
PJ
22479 emacs.c.
22480
62725a92
GM
224812001-10-27 Gerd Moellmann <gerd@gnu.org>
22482
798dbe1f 22483 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 22484 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
22485 farther backward when target_y was not reached.
22486
62725a92
GM
22487 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
22488 Display errno only if non-zero.
22489 (sound_warning): New function.
22490 (vox_configure): Don't treat failing to set sample rate as error.
22491 (various places): Improve error messages.
22492
d4e34d24
EZ
224932001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
22494
944e6f60
EZ
22495 * fileio.c (Faccess_file): Run the argument filename through
22496 Fexpand_file_name, before using it.
22497
d4e34d24
EZ
22498 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
22499 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
22500
38d2af0c
GM
225012001-10-26 Gerd Moellmann <gerd@gnu.org>
22502
da80a8d5
GM
22503 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
22504
38d2af0c
GM
22505 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
22506 Fix clearing in the case of scroll bars on the right.
c2d53558 22507
45de4a6f 225082001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
22509
22510 * w32gui.h (XImage): Add a dummy typedef.
22511
fbd5ceb2
GM
225122001-10-26 Gerd Moellmann <gerd@gnu.org>
22513
c2d53558 22514 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 22515
b23236fb
EZ
225162001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
22517
22518 * frame.c (Fframe_parameter): Fix last change.
22519
5d991fc4
EZ
22520 * fileio.c: Revert last change (which removed old commented-out
22521 version of expand-file-name). Add a comment that explains why
22522 this old version should not be removed.
22523
879eadc3
GM
225242001-10-25 Gerd Moellmann <gerd@gnu.org>
22525
75700ff2
GM
22526 * frame.c (Fframe_parameter): Fix a bug whereby some
22527 ``artificial'' frame parameters, like `minibuffer' were not
22528 obtained by calling Fframe_parameters.
22529
dfe92a6a
GM
22530 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
22531 cursor differently.
22532
879eadc3
GM
22533 * xdisp.c (move_it_vertically_backward): Compute line height
22534 differently. Add heuristic to try to be more compatible to 20.x.
22535
e1010ebe
SM
225362001-10-25 Stefan Monnier <monnier@cs.yale.edu>
22537
d73a471b
SM
22538 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
22539
d6da5a06
GM
22540 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
22541 boolean.
e1010ebe 22542
f66bd220
MB
225432001-10-25 Miles Bader <miles@gnu.org>
22544
22545 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
22546 BG is a pointer to a structure, not a structure.
22547 (gif_format, png_format): Add missing commas.
22548
d436d538
RS
225492001-10-24 Richard M. Stallman <rms@gnu.org>
22550
22551 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 22552 (syms_of_xfaces): Defsubr it.
d436d538 22553
f00691a3 225542001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
22555
22556 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
22557 variable `area'.
22558
f00691a3 225592001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 22560
c2d53558 22561 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 22562
e2a57b34
MB
225632001-10-25 Miles Bader <miles@gnu.org>
22564
22565 * dispextern.h (struct image): Add `background',
22566 `background_valid', and `background_transparent' fields.
22567 (image_background, image_background_transparent): New declarations.
22568 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
22569 * xfns.c (image_background, image_background_transparent)
22570 (four_corners_best): New functions.
c2d53558 22571 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
22572 (gs_format): Add `:background' entry.
22573 (lookup_image): Set IMG's background color if specified.
22574 (pbm_load, xbm_load_image, png_load): Set IMG's background field
22575 when appropriate.
22576 (x_clear_image_1): Reset `background_valid' and
22577 `background_transparent_valid' fields.
22578 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
22579 calculating it here. Set IMG's background_transparent field.
22580 (enum xpm_keyword_index): Add XPM_BACKGROUND.
22581 (enum png_keyword_index): Add PNG_BACKGROUND.
22582 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
22583 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
22584 (enum gif_keyword_index): Add GIF_BACKGROUND.
22585 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 22586 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
22587 Pre-calculate image background color where necessary.
22588 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
22589 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
22590 color to use for image glyph reliefs.
22591
b547b6e8
GM
225922001-10-24 Gerd Moellmann <gerd@gnu.org>
22593
d9e3b8c6
GM
22594 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
22595 in full-width rows.
c2d53558 22596
b547b6e8
GM
22597 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
22598 Fix clearing of area not covered by scroll bar.
22599
f00691a3 226002001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9 22601
52eb0373 22602 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
2beb36f9 22603 and `real_start'.
c2d53558 22604 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
22605 (glyph_rect): Remove unused variable `area'.
22606
76cb5e06
GM
226072001-10-24 Gerd Moellmann <gerd@gnu.org>
22608
bdbdebff 22609 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
22610
22611 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
22612 (row_containing_pos): Take additional argument DY.
22613 Treat rows ending in middle of char differently.
62e33982
GM
22614 (display_line): Handle tabs on window systems differently.
22615
22616 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
22617 with additional argument.
22618
22619 * dispextern.h (row_containing_pos): Adjust prototype.
22620
76cb5e06
GM
22621 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
22622 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
22623 (try_window_id, try_window_reusing_current_matrix)
22624 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 22625 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 22626
f00691a3 226272001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 22628
c9e60620
PJ
22629 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
22630 gnuemacs).
22631 (HAVE_BOXES): Fix typo in comment.
22632 (push_menu_pane): Fix typo in comment.
22633
52eb0373 22634 * xdisp.c (display_prop_string_p): Remove unused local declaration
3b552d56
PJ
22635 of `Qwhen'.
22636 (single_display_prop_string_p): Remove unused local declarations
22637 of `Qwhen' and `Qmargin'.
22638 (string_buffer_position): Remove unused variable `around'.
22639 (store_frame_title): Remove unused variable `width'.
22640
15c565ac
PJ
22641 * window.c: Don't define max.
22642 (coordinates_in_window): Remove unused variable `uy'.
22643
a8818eb9
PJ
22644 * widget.c: Don't define max.
22645
996fee11
PJ
22646 * process.c: Don't define max.
22647 (create_process): Remove unused variable `buffer'.
22648
496e1a5b
GM
226492001-10-23 Gerd Moellmann <gerd@gnu.org>
22650
c2d53558 22651 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 22652
5905ae8b
EZ
226532001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
22654
22655 * xfaces.c (Finternal_set_lisp_face_attribute)
22656 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
22657 frame is on a windowed display.
22658
24db49fb
GM
226592001-10-23 Gerd Moellmann <gerd@gnu.org>
22660
c2d53558
SM
22661 * dispnew.c (sync_window_with_frame_matrix_rows):
22662 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
22663 of marginal areas.
22664
c2d53558 22665 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 22666
f0487f05
EZ
226672001-10-23 Andreas Schwab <schwab@suse.de>
22668
22669 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
22670 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
22671
f0a48a01
GM
226722001-10-23 Gerd Moellmann <gerd@gnu.org>
22673
c2d53558 22674 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
22675 REAL_END. Notice if cursor gets overwritten.
22676 (notice_overwritten_cursor): Take X positions as parameters.
22677 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
22678 around call to x_draw_glyphs.
22679
f00691a3 226802001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 22681
fc11dff0
PJ
22682 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
22683 instead of C) and usage.
a50a10a0 22684
fc11dff0
PJ
22685 * editfns.c (char-to-string): Fix argument names (use CHAR instead
22686 of C) and usage.
a50a10a0
PJ
22687
22688 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
22689 `left', `max_width' and `max_height'.
22690
8738febd
GM
226912001-10-23 Gerd Moellmann <gerd@gnu.org>
22692
22693 * xdisp.c (display_line): For a tab continued to the next line,
22694 set row's ends_in_middle_of_char_p.
22695
653c329b
GM
226962001-10-22 Gerd Moellmann <gerd@gnu.org>
22697
22698 * xdisp.c (display_line): Fix computation of continuation lines
22699 width for TABs.
22700
f00691a3 227012001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 22702
7ba51063
PJ
22703 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
22704 `Qlaplace'.
22705
f958c5ac
PJ
22706 * fileio.c: Remove unused code.
22707
eb360291
MB
227082001-10-22 Miles Bader <miles@gnu.org>
22709
22710 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
22711 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
22712 Remove `DOC_STRINGS_IN_COMMENTS' cases.
22713
98515cf0
JR
227142001-10-21 Jason Rumney <jasonr@gnu.org>
22715
22716 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
22717
93026d88
EZ
227182001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
22719
22720 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
22721 (Finsert_string): Avoid the multi-line string literals warning.
22722
c9a95b79
MB
227232001-10-22 Miles Bader <miles@gnu.org>
22724
22725 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
22726 (Fdocumentation): Don't use it.
22727 (syms_of_doc): Don't initialize it.
22728
22729 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
22730 * print.c (Fwith_output_to_temp_buffer): Likewise.
22731 * window.c (Fsave_window_excursion): Likewise.
c2d53558 22732 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 22733 (Fsave_restriction): Likewise.
c2d53558
SM
22734 * eval.c (Frun_hooks, Frun_hook_with_args)
22735 (Frun_hook_with_args_until_failure)
22736 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
22737 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
22738 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
22739 (Funwind_protect, Fcondition_case): Likewise.
22740 * coding.c (Ffind_operation_coding_system): Likewise.
22741 * keyboard.c (Ftrack_mouse): Likewise.
22742
a3b10252
MB
227432001-10-21 Miles Bader <miles@gnu.org>
22744
c2d53558 22745 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
22746 (Fmake_hash_table): Add usage: string to doc string.
22747 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 22748 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
22749 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
22750 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
22751 (Fml_prefix_argument_loop): Likewise.
22752
f00691a3 227532001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 22754
c2d53558 22755 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 22756
c6f73eec
PJ
22757 * sysdep.c (init_sys_modes): Change doc-string comments to `new
22758 style' [w/`doc:' keyword].
22759
22760 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
22761 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
22762 comments to `new style' [w/`doc:' keyword].
22763
3cf3436e
JR
227642001-10-21 Jason Rumney <jasonr@gnu.org>
22765
22766 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
22767
c169b8f1
JR
22768 * w32term.c (remember_mouse_glyph): New function.
22769 (w32_mouse_position): Use it.
22770 (note_mouse_movement): If the mouse moved off the glyph, remember
22771 its new position.
c2d53558 22772
4fdd691b
JR
22773 * w32term.h (struct w32_output): Correct spelling of x_compatible.
22774 (w32_display_info): Add mouse_face_overlay.
22775
c169b8f1
JR
22776 * w32term.c (notice_overwritten_cursor): Renamed from
22777 note_overwritten_text_cursor. Rewritten to take glyph widths into
22778 account.
22779 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
22780 (fast_find_string_pos): New function.
22781 (fast_find_position): Return the correct vpos. Add parameter
22782 STOP. In the final row, stop before glyphs having STOP as object.
22783 Don't consider glyphs that are not from a buffer.
22784 (fast_find_position) [0]: Add a presumably more correct version
22785 for after 21.1.
22786 (expose_window_tree, expose_frame): Don't compute intersections here.
22787 (expose_window): Do it here instead.
22788 (expose_window_tree, expose_window, expose_line): Return 1 when
22789 overwriting mouse-face.
22790 (expose_window): If W is the window currently being updated, mark
22791 the frame garbaged.
22792 (expose_frame): If mouse-face was overwritten, redo it.
22793 (x_use_underline_position_properties): New variable.
22794 (syms_of_xterm): DEFVAR_BOOL it.
22795 (x_draw_glyph_string): Add comment to use it in future.
22796 (x_draw_glyph_string): Restore clipping after drawing box.
22797 Fix a computation of the underline position.
22798 (w32_get_glyph_string_clip_rect): Minor cleanup.
22799 (x_fill_stretch_glyph_string): Remove an assertion.
22800 (x_produce_glyphs): Don't convert multibyte characters
22801 to unibyte characters in unibyte buffers.
22802 (cursor_in_mouse_face_p): New function.
22803 (x_draw_stretch_glyph_string): Use it to choose a different GC
22804 when drawing a cursor within highlighted text. Don't draw
22805 background again if it has already been drawn.
22806 (x_draw_glyph_string_box): Don't draw a full-width
22807 box just because the glyph row's full_width_p flag is set.
22808 (x_draw_glyphs): Fix computation of rightmost x for
22809 full-width rows.
22810 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
22811 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 22812 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
22813 (x_update_window_end): Handle overwritten mouse face
22814 also for tool bar windows.
22815 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
22816 DRAW is DRAW_IMAGE_RAISED.
22817 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
22818 actually redrawn. Make the function static.
22819 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
22820 optimize away highlighting if we pass over that same overlay again.
22821 (note_mouse_highlight): Call mouse_face_overlay_overlaps
22822 to detect a case where we have to highlight a different region
22823 despite not having left the currently highlighted region.
22824 Set mouse_face_overlay in the x_display_info. Avoid changing the
22825 mouse pointer shape when show_mouse_face has already done it, or
22826 there is no need. Handle mouse-face and help-echo in strings.
22827 (glyph_rect): New function.
22828 (w32_mouse_position): Use it to raise the threshold for mouse
22829 movement event generation.
22830 (w32_initialize_display_info): Initialize the x_display_info's
22831 mouse_face_overlay.
22832 (w32_set_vertical_scroll_bar): Don't clear a zero height
22833 or width area.
22834 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
22835 a widget to zero height.
22836
3cf3436e 22837 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 22838 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
22839 equivalents in menu_items.
22840 (w32_menu_show): Don't overwrite an item's name with its key
22841 description in case the description is a multibyte string.
22842 (single_submenu): Some cleanup.
22843
22844 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
22845 (postprocess_image): New function.
22846 (lookup_image): Call it for all image types except PostScript.
22847 (x_kill_gs_process): Call postprocess_image.
22848 (tiff_error_handler, tiff_warning_handler): New functions.
22849 (tiff_load): Install them as handlers.
22850 (x_kill_gs_process): Recognize if someone has cleared the image
22851 cache under us.
22852 (valid_image_p): Protect better against invalid image
22853 specifications. Previous code could signal an error.
22854 (Fx_hide_tip, Fshow_tip): Doc fix.
22855 (Fv_max_tooltip_size): New variable.
22856 (syns_of_xfns): DEFVAR_LISP it.
22857 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 22858 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
22859 window_width. Use a maximum tooltip size specified by
22860 Vx_max_tooltip_size, if that has valid contents.
22861 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
22862 Make sure the tooltip is completely visible.
22863 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
22864 (Fx_create_frame): Adjust the frame's height for presence
22865 of the tool bar before calling x_figure_window_size.
22866 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
22867 when the window gets smaller.
22868 (x_set_foreground_color): Set frame's cursor_pixel.
22869 (x_set_foreground_color, x_set_background_color): Cleaned up.
22870 (x_set_font): Handle case of x_new_fontset returning the same name
22871 as before, although there was a change in fontsets.
22872
386ca361
MB
228732001-10-21 Miles Bader <miles@gnu.org>
22874
c2d53558 22875 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
22876 (Flogxor): Add usage: string to doc string.
22877 * charset.c (Fstring): Likewise.
22878 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
22879 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
22880
f00691a3 228812001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 22882
03be2694
PJ
22883 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
22884
22885 * alloc.c: Reindent DEFUNs with doc: keywords.
22886
22887 * abbrev.c (Finsert_abbrev_table_description): Reindent.
22888
14ff1ee0
PJ
22889 * frame.c: Change doc-string comments to `new style' [w/`doc:'
22890 keyword].
22891
2f147815 22892See ChangeLog.9 for earlier changes.
6922b018
KH
22893
22894;; Local Variables:
49b3bd82 22895;; coding: iso-2022-7bit
6922b018 22896;; End:
2a34a036 22897
aaef169d
TTN
22898 Copyright (C) 2001, 2002, 2003, 2004, 2005,
22899 2006 Free Software Foundation, Inc.
2a34a036
GM
22900 Copying and distribution of this file, with or without modification,
22901 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
22902
22903;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4