(query-replace, query-replace-regexp)
[bpt/emacs.git] / src / ChangeLog
CommitLineData
b1c2adc3
KS
12005-02-18 Kim F. Storm <storm@cua.dk>
2
c2ee48fb
KS
3 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
4 to be nil in a :box attribute value list; customize prints that
5 as lisp value when no box color is specified.
6
b1c2adc3
KS
7 * .gdbinit (pitx, pit): Pretty print display iterator.
8 (prowx, prow): Pretty print glyph row.
9 (pcursorx, pcursor): Pretty print a window cursor.
10 (pwinx, pwin): Pretty print struct window.
11
f102186f
SM
122005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13
14 * alloc.c (BLOCK_BYTES): Harmless typo.
15
9b516537
AS
162005-02-17 Andreas Schwab <schwab@suse.de>
17
18 * xfns.c (hack_wm_protocols): Use correct type for last parameter
19 of XGetWindowProperty to avoid aliasing issues.
20 (Fx_window_property): Likewise.
21
22 * xselect.c (Fx_disown_selection_internal): Use union of struct
23 input_event and struct selection_input_event to avoid aliasing
24 issues.
25
26 * xterm.c (handle_one_xevent): Use union of struct input_event and
27 struct selection_input_event to avoid aliasing issues.
28 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
29
886b1418
KS
302005-02-17 Kim F. Storm <storm@cua.dk>
31
32 * dispextern.h (enum it_method): New enum.
33 (GET_FROM_*): Its members.
34 (struct it): Change member method from function pointer to enum.
35
36 * xdisp.c (check_it, init_from_display_pos, handle_stop)
37 (setup_for_ellipsis, handle_single_display_spec)
38 (handle_composition_prop, next_overlay_string)
39 (get_overlay_strings, reseat_1, reseat_to_string)
40 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
41 (in_display_vector_p, display_line, get_next_display_element):
42 Change it->method from function pointer to enum.
43 (get_next_element): New array to map it->method to function.
44 (get_next_display_element): Use it.
45 (set_iterator_to_next): Use switch instead of if/else chain.
46
99ee2c6a 472005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
52c7f9ee
JR
48
49 * w32select.c: Summary: Thorough rework to implement Unicode
50 clipboard operations and delayed rendering.
51
52 Drop last_clipboard_text and related code, keep track of
53 ownership via clipboard_owner instead. Drop old #if0
54 sections.
55
56 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
57 (clipboard_owner, modifying_clipboard, cfg_coding_system)
58 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
59 (current_coding_system, current_requires_encoding)
60 (current_num_nls, current_clipboard_type, current_lcid): New
61 static variables.
62
63 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
64 (render, render_all, run_protected, lisp_error_handler)
65 (owner_callback, create_owner, setup_config)
66 (enum_locale_callback, cp_from_locale, coding_from_cp): New
67 local functions.
68
69 (term_w32select, globals_of_w32select): New global functions.
70
71 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
72 clipboard_owner instead. Use delayed rendering and provide
73 all text formats. Provide CF_LOCALE if necessary.
74
75 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
76 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
77 available. Force DOS line-ends for decoding.
78
79 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
80
81 (syms_of_w32select): Init and register new variables.
82
83 * w32.h: Add prototypes for globals_of_w32select and
84 term_w32select. Make the neighboring K&R declarations into
85 prototypes, too.
86
87 * emacs.c: Include w32.h to get function prototypes.
88 (main): Call globals_of_w32select.
89
886b1418 90 * w32.c (term_ntproc): Call term_w32select.
52c7f9ee
JR
91
92 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
93
86e61586
KS
942005-02-16 Kim F. Storm <storm@cua.dk>
95
96 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
97 at end of display vector.
98
6407f07b
RS
992005-02-15 Richard M. Stallman <rms@gnu.org>
100
101 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
102 for mode and header lines.
103
104 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
105
106 * keymap.h (describe_map_tree): Change decl.
107
108 * keyboard.c (command_loop_1): Always use safe_run_hooks
109 to run Qdeferred_action_function.
110
111 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
112 (describe_map, describe_vector): Likewise. When it's 1,
113 don't omit shadowed bindings, instead mark them as shadowed.
114
115 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
116 for describe_map_tree. Pass 1 for MENTION_SHADOW.
117
118 * data.c (Fsetq_default): Allow no arg case.
119
3bb917bf
KH
1202005-02-14 Kenichi Handa <handa@m17n.org>
121
122 * coding.c (encode_coding_string): Always return a unibyte string.
123 If NOCOPY is nonzero and there's no need of encoding, make STR
124 unibyte directly.
125
126 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
127 multibyte string, signal an error instead of aborting.
128
e31d908f
DN
1292005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
130
131 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
132
48e029b6
KS
1332005-02-12 Kim F. Storm <storm@cua.dk>
134
135 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
136
c10bb00a
KS
1372005-02-10 Kim F. Storm <storm@cua.dk>
138
139 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
140 if it moves outside window or it doesn't display text.
141
9ca0f64a
KS
1422005-02-09 Kim F. Storm <storm@cua.dk>
143
144 * undo.c (Fprimitive_undo): Check that undo function does not
145 switch buffer.
146
b8d6f4af
JD
1472005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
148
149 * xselect.c (selection_data_to_lisp_data): For the special case
150 type == XA_ATOM, data contains array of int, not array of Atom.
151 (x_property_data_to_lisp, selection_data_to_lisp_data): Comment
152 update: data must be array of int for format == 32.
153
3419757d
SM
1542005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
155
156 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
157
3a441526
JD
1582005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
159
fc34503b
JD
160 * xfns.c (Fx_change_window_property): Use long array when format is 32.
161 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
162 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
163 (x_set_tool_bar_lines): Check that width and height is greater than
164 zero before clearing area.
fc34503b
JD
165
166 * xselect.c (x_reply_selection_request): Pass long array to
167 XChangeProperty so that 64 bit longs are handeled correctly.
168 (x_get_window_property): If format is 32 and long is bigger than 32
169 bits convert data from XGetWindowProperty from long array to int array.
170 (lisp_data_to_selection_data): When the input is a vector and the
171 format is 32, allocate a long array even if long is bigger than 32 bits.
172 (x_fill_property_data): Use char, short and long as the man page
173 for XChangeProperty specifies. This way the data returned is OK for
174 both 32 and 64 bit machines.
175 (x_handle_dnd_message): Calculate size correctly even for 64 bit
176 machines.
177 (Fx_send_client_event): Undo change from 2005-02-05,
178 x_fill_property_data now handles that case.
179
3419757d 180 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
181 reason for the approach in the code.
182
82ec225b
KS
1832005-02-07 Kim F. Storm <storm@cua.dk>
184
185 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
186
ba2c991c
RS
1872005-02-06 Richard M. Stallman <rms@gnu.org>
188
189 * eval.c (Frun_hook_with_args)
190 (Frun_hook_with_args_until_success)
191 (Frun_hook_with_args_until_failure): Doc fixes.
192
e120ea40
AS
1932005-02-05 Andreas Schwab <schwab@suse.de>
194
3419757d 195 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 196
31f16913
JD
1972005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
198
199 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
200 the longs in a XClientMessageEvent correctly when long is 64 bits.
201
6082a820
EZ
2022005-02-05 Eli Zaretskii <eliz@gnu.org>
203
204 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
205 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
206
0e95095b
JD
2072005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
208
209 * xmenu.c (menubar_selection_callback): Force out GTK buffered
210 events so the menu event comes after them. This is to prevent sit-for
211 from exiting on buffered events directly after a menu selection,
212 lisp code for Help => About Emacs uses sit-for.
213
214 * gtkutil.c (create_menus): Connect selection-done event instead of
215 the deactivate event to deactivate_cb. This will make the last
216 leave event come before the call to deactivate_cb, so the leave
217 event does not make sit-for exit after a menu selection.
218
5bb6a3c1
KS
2192005-02-03 Kim F. Storm <storm@cua.dk>
220
221 * dispnew.c (build_frame_matrix_from_leaf_window)
222 [!GLYPH_DEBUG]: Fix xassert.
223
224 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
225
226 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
227
e9859e26
YM
2282005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
229
230 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
231 the compiling OS version.
232
233 * macfns.c (x_create_tip_frame): Likewise.
234
3419757d 235 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 236
4e07258f
RS
2372005-02-03 Richard M. Stallman <rms@gnu.org>
238
239 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
240
241 * xdisp.c (echo_area_display): Clear echo_message_buffer.
242
243 * buffer.c (Fbury_buffer): Doc fix.
244
4a34b529
ST
2452005-02-02 Steven Tamm <steventamm@mac.com>
246
f6c62d96
ST
247 * macfns.c (unwind_create_frame): Fixing compile error due to
248 xassert being uncondition, but predicate is.
4a34b529 249 * dispnew.c (update_window): Fixing compile error due to
f6c62d96 250 xassert being uncondition, but predicate is.
4a34b529 251
d78f30b8
MB
2522005-02-02 Miles Bader <miles@gnu.org>
253
254 * dispextern.h (xassert): Enable unconditionally.
255
b044278d
KS
2562005-02-02 Kim F. Storm <storm@cua.dk>
257
258 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
259
56072160
KH
2602005-02-02 Kenichi Handa <handa@m17n.org>
261
262 * casefiddle.c (casify_object): Enable changing characters of
263 different byte length.
264 (casify_region): Fix loop condition, args to replace_range_2, and
265 update opoint_byte.
266
267 * insdel.c (replace_range_2): Fix bugs in adjusting markers and
268 point.
269
5e1674c5
KS
2702005-02-01 Kim F. Storm <storm@cua.dk>
271
272 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
273 stack before calling handle_display_prop.
274
fb89c330
KS
2752005-01-31 Kim F. Storm <storm@cua.dk>
276
277 * undo.c (Qapply): New lisp var.
278 (syms_of_undo): Intern and staticpro it.
279 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
280 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
281
282 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
283
7bf72fa6
JH
2842005-01-30 Jesper Harder <harder@phys.au.dk>
285
a050b1a9
KS
286 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
287 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 288
03c64f2e
LT
2892005-01-29 Luc Teirlinck <teirllm@auburn.edu>
290
291 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 292 Increase value to 3 Meg.
03c64f2e 293
49b8b5dc
JD
2942005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
295
296 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
297 button events are not received otherwise.
298
5a92a9eb
RS
2992005-01-29 Richard M. Stallman <rms@gnu.org>
300
301 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
302
303 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
304
5c243ee4
SM
3052005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
306
307 * keymap.c (access_keymap): YAILOM.
308
caf533af
KS
3092005-01-27 Kim F. Storm <storm@cua.dk>
310
311 * xdisp.c (get_phys_cursor_geometry): New function to calculate
312 phys cursor position and size for hollow cursor. Position is
313 aligned with get_glyph_string_clip_rect and ensures that a hollow
314 cursor is shown, even when the actual glyph is not visible.
315
316 * dispextern.h (get_phys_cursor_geometry): Add prototype.
317
318 * xterm.c (x_clip_to_row): Ensure y >= 0.
319 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
320
321 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
322
323 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
324
043f7f73
SM
3252005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
326
327 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
328
889f3641
KS
3292005-01-27 Kim F. Storm <storm@cua.dk>
330
331 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
332 glyph, even when row is only partially visible and actual cursor
333 position is not visible.
334
29099c2f
RS
3352005-01-24 Richard M. Stallman <rms@gnu.org>
336
337 * xterm.c (x_error_quitter): No longer static, and moved after
338 x_error_handler.
339
6adb6f01
KS
3402005-01-24 Kim F. Storm <storm@cua.dk>
341
342 * xdisp.c (move_it_by_lines): If we move forward after going too
343 far back, cancel move if end position is same as start position.
344
4d904fa0
ST
3452005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
346
347 * dispextern.h (struct glyph_string): New members clip_head and
348 clip_tail.
6adb6f01 349
4d904fa0
ST
350 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
351 region to the area between clip_head and clip_tail.
352 (draw_glyphs): Record the area that need to be actually redrawn to
353 the new variables clip_head and clip_tail when there are
354 overhangs. Set values of these variables to the corresponding
355 members in struct glyph_string. Refine x coordinates for
356 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 357
4d904fa0
ST
358 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
359
360 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
361 QDTextBounds.
362 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 363 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 364 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 365 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 366
f2417699
KS
3672005-01-24 Kim F. Storm <storm@cua.dk>
368
6f67f013
KS
369 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
370 direction if window height was smaller than next-screen-context-lines.
371 Now always scroll at least one line in the requested direction.
372 Ensure that we actually do scroll backwards when requested to do so.
373
f2417699
KS
374 * xdisp.c (redisplay_window): Only try to make cursor line fully
375 visible once (to avoid redisplay loop).
376
a354b72c
KS
3772005-01-23 Kim F. Storm <storm@cua.dk>
378
6b3d88f7 379 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 380 partially visible rows.
6b3d88f7
KS
381 (window_scroll_pixel_based): Adapt to that change.
382
5c20cae2
KS
383 * window.c (window_scroll_pixel_based): Force moving to next line
384 if scrolling doesn't move start point, e.g. if looking at tall image.
385
a354b72c 386 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
387 Clear last_height before calling line_bottom_y to get real height.
388 Fix calculation of y.
a354b72c 389
d9e7c622
ST
3902005-01-22 Steven Tamm <steventamm@mac.com>
391
392 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 393 (DARWIN): Define.
d9e7c622
ST
394 * process.c (init_process): Default process-connection-type to
395 nil on darwin 6 or less, t if it is 7 or higher. This way the
396 broken pty behavior is still allowed on darwin 6 for interactive
397 processes for people that know what they are doing.
398
d00e399a
KS
3992005-01-22 Kim F. Storm <storm@cua.dk>
400
401 * window.c (auto_window_vscroll_p): New boolean.
402 (syms_of_window): DEFVAR_BOOL it.
403 (Fpos_visible_in_window_p): Extend return value to include RTOP
404 and RBOT values if FULLY is nil.
405 (window_scroll_pixel_based): Adjust vscroll for partially visible
406 rows if auto_window_vscroll_p is set.
407 (Fset_window_vscroll): Do nothing if vscroll is not modified.
408
409 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
410 to return number of partially invisible pixels at top and bottom
411 of the dislay row at POS.
412
413 * lisp.h (pos_visible_p): Fix prototype.
414
f95a20e7
RS
4152005-01-21 Richard M. Stallman <rms@gnu.org>
416
417 * fileio.c (Fcopy_file): Doc fix.
418
eee141ce
JD
4192005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
420
421 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
422 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
423 start of function for older compilers.
424
6f771c32
RS
4252005-01-20 Richard M. Stallman <rms@gnu.org>
426
427 * editfns.c (Fmessage): If arg is "", return "" (as before).
428
429 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
430
431 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
432 variable.
433
a15252fd
ST
4342005-01-20 Steven Tamm <steventamm@mac.com>
435
043f7f73 436 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
437 (init_editfns): Assign new variable operating-system-release
438 based on call to uname if available.
043f7f73 439 (get_operating_system_release): Add function to
d00e399a 440 allow c-level access to operating system release.
a15252fd
ST
441
442 * config.h: Regenerated.
443
043f7f73
SM
444 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
445 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
446 using ptys as '7'.
447
3d6a4b2d
KS
4482005-01-20 Kim F. Storm <storm@cua.dk>
449
62fc9b0f
KS
450 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
451
c310aca4
KS
452 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
453 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
454
455 * macterm.c (x_draw_glyph_string_box): Likewise.
456
457 * w32term.c (x_draw_glyph_string_box): Likewise.
458
3d6a4b2d
KS
459 * indent.c (Fvertical_motion): Temporarily disable selective display.
460
27c8be45
KS
4612005-01-19 Kim F. Storm <storm@cua.dk>
462
77db5cf3
KS
463 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
464 image property.
465
27c8be45
KS
466 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
467
81f498dc
KS
4682005-01-18 Kim F. Storm <storm@cua.dk>
469
470 * xdisp.c (fast_find_position): Backtrack to find first row if
471 charpos is inside a display overlay that spans multiple lines.
472
1cdb0707
KH
4732005-01-18 Kenichi Handa <handa@m17n.org>
474
475 * coding.c (decode_coding_iso2022): Translate invalid codes if
476 translation-table is specified.
477
677159ce
KS
4782005-01-18 Kim F. Storm <storm@cua.dk>
479
480 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
481 change. If handle_display_prop indicates newline is replaced by
482 image or text, move back to start of relevant overlay or interval
483 and continue scan from there. Simplify.
484
977284cc
KS
4852005-01-17 Kim F. Storm <storm@cua.dk>
486
043f7f73
SM
487 * dispnew.c (mode_line_string, marginal_area_string):
488 Fix off-by-one error in search for glyph.
977284cc 489
e24531b7
KS
4902005-01-16 Kim F. Storm <storm@cua.dk>
491
492 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
493
5ddd7664
ST
4942005-01-16 Steven Tamm <steventamm@mac.com>
495
043f7f73 496 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 497
fc2ff44b
AS
4982005-01-16 Andreas Schwab <schwab@suse.de>
499
500 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
501
50af5100
JD
5022005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
503
504 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
505 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
506
a2d5fca0
JD
5072005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
508
509 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
510 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
511 New flags for readable_events.
043f7f73 512 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
513 (tracking_off): Call readable_events and get_input_pending with
514 flag READABLE_EVENTS_DO_TIMERS_NOW.
515 (readable_events): Move code from old readable_filtered_events here,
516 but check new READABLE_EVENTS_* in argument flags instead of previous
517 two boolean arguments do_timers_now and filter_events.
518 If we are doing mouse tracking and the mouse moved, return only if
519 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
520 (swallow_events): Call get_input_pending with flag
521 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 522 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
523 here. Replace boolean arguments do_timers_now, filter_events with
524 flags, and pass flags to readable_events. Document new
525 READABLE_EVENTS_* flags.
526 (detect_input_pending_ignore_squeezables): New function.
527 (detect_input_pending_run_timers): Call get_input_pending with flag
528 READABLE_EVENTS_DO_TIMERS_NOW.
529 (Finput_pending_p): Call get_input_pending with flags
530 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
531
532 * dispnew.c (update_window, update_frame_1): Replace calls to
533 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 534 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
535 mouse movements.
536
537 * lisp.h: Declare detect_input_pending_ignore_squeezables.
538
42afbcda
ST
5392005-01-15 Steven Tamm <steventamm@mac.com>
540
e24531b7
KS
541 * macterm.c (Vmac_use_core_graphics): Declare variable for
542 mac-allow-anti-aliasing.
543 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 544 (mac_draw_string_common): Use core graphics text rendering if
0530c679 545 mac-allow-anti-aliasing is enabled.
743d0696 546
42afbcda
ST
547 * macfns.c (Fx_file_dialog): Save As dialog includes only the
548 file name in the text box.
549
9cdd4884
ST
5502005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
551
043f7f73
SM
552 * macfns.c (x_set_foreground_color, x_set_background_color):
553 Sync with xfns.c.
9cdd4884
ST
554 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
555 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
556 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
557
88948d55
KS
5582005-01-14 Kim F. Storm <storm@cua.dk>
559
560 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
561
20d6de82
RS
5622005-01-13 Richard M. Stallman <rms@gnu.org>
563
564 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
565 if Voverriding_terminal_local_map is non-nil.
566
567 * keyboard.c (syms_of_keyboard): Doc fix.
568
f75a592e
KS
5692005-01-13 Kim F. Storm <storm@cua.dk>
570
571 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
572 (specify 0 for FACE instead). Reorder arg list. Doc fix.
573
28f94a34
RS
5742005-01-12 Richard M. Stallman <rms@gnu.org>
575
576 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
577 face property for characters that don't specify one.
578
579 * fns.c (Frequire): Record in load-history unconditionally.
580
57a230b1
KS
5812005-01-10 Kim F. Storm <storm@cua.dk>
582
583 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
584
585 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
586 Callers changed.
587 Add support to merge with lisp face id too (if face_name is t).
588
589 * xdisp.c (get_next_display_element, next_element_from_display_vector):
590 Don't lookup lface_id from display table glyphs here; instead use
591 merge_faces to merge the lisp face id into current face.
592
8ab2c119
KS
5932005-01-09 Kim F. Storm <storm@cua.dk>
594
595 * dispextern.h (struct it): New member dpvec_face_id.
596 (merge_into_realized_face): Add prototype.
597
598 * xfaces.c (merge_into_realized_face): New function. Used to
599 merge escape-glyph face or face from display table into current face.
600
601 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
602 (syms_of_xdisp): DEFVAR_LISP it.
603 (escape_glyph_face): Remove var.
604 (redisplay_window): Don't initialize it.
605 (setup_for_ellipsis, get_next_display_element):
606 Set it->dpvec_face_id to -1.
607 (get_next_display_element): Test Vshow_nonbreak_escape.
608 Do not setup escape_glyph_face.
609 Properly merge escape-glyph face or face from display table with
043f7f73
SM
610 current face for escape and control characters.
611 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
612 element of display vector.
613 (next_element_from_display_vector): If it->dpvec_face_id is set,
614 use that instead of lface_id from glyph itself.
615
e0910857
JD
6162005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
617
618 * xterm.h (struct x_output): New member, toolbar_detached.
619
620 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
621 38.
622 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
623 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
624 (xg_create_tool_bar): Initialize toolbar_detached.
625 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
626 toolbar_detached is zero.
627
ff59904a
JD
6282005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
629
9b85e63d
JD
630 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
631 gtk_menu_popup if not for_click, so callbacks for the menu are called.
632
ff59904a
JD
633 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
634 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 635 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
636
637 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 638 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
639 XFLOAT_DATA to get extract number from Lisp object.
640
f9a23a6f
KS
6412005-01-07 Kim F. Storm <storm@cua.dk>
642
643 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
644 Set stop_charpos to current charpos instead of 0.
645
28f94a34
RS
6462005-01-06 Nick Roberts <nickrob@snap.net.nz>
647
648 * xdisp.c (Fformat_mode_line): First arg now required.
649
a6fffcdc
ST
6502005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
651
652 * macterm.c (XLoadQueryFont): Correctly handle 0 size
653 font widths that are returned from some Japanese fonts.
654
c35b0c6b
KS
6552005-01-06 Kim F. Storm <storm@cua.dk>
656
657 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
658 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
659 (destroy_fringe_bitmap): Set fringe_faces element to nil.
660 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
661 fringe_faces array and init elements to nil.
662 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
663 non-persistent face id.
664 (mark_fringe_data): New function for GC.
665
666 * alloc.c (mark_fringe_data): Declare extern.
667 (Fgarbage_collect): Call mark_fringe_data.
668
669 * alloc.c (overrun_check_free): Invalidate freed memory if
670 XMALLOC_CLEAR_FREE_MEMORY is defined.
671
e0e76ab9
ST
6722005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
673
674 * macfns.c: Include sys/param.h.
675 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
676 and function.
677 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
678 of filename string. Set event callback function when creating
679 dialog boxes. Add code conversions for filenames. Don't dispose
680 apple event descriptor record if failed to create it.
681
682 * macterm.c: Include sys/param.h.
683 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
684 kEventWindowUpdate.
685 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
686 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
687 of FSSpec from apple event descriptor record.
688 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
689 size of filename string.
690 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
691 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
692 file dialog is in action.
043f7f73
SM
693 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
694 Reject only when there are no filename items. Set background color
e0e76ab9
ST
695 before (un)highlighting the window below the dragged items.
696 (XTread_socket) [!USE_CARBON_EVENTS]: Don't call do_window_update.
697
043bc640
KH
6982005-01-05 Romain Francoise <romain@orebokech.com>
699
700 * term.c (encode_terminal_code): Fix buffer size computation.
701
dd496df6
RS
7022005-01-04 Richard M. Stallman <rms@gnu.org>
703
704 * xdisp.c (Fformat_mode_line): Doc fix.
705
026cdede
SM
7062005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
707
708 * alloc.c (refill_memory_reserve): Move.
709 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
710 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
711
d57c7572
RS
7122005-01-03 Richard M. Stallman <rms@gnu.org>
713
714 * window.c (window_scroll_pixel_based): Don't correct preserve_y
715 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
716
b14f868c
JR
7172005-01-03 Jason Rumney <jasonr@gnu.org>
718
719 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
720 fontp->space_width to FONT_WIDTH so they are valid.
721
722 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
723 average width. Set fontp->average_width and fontp->space_width to
724 their appropriate values.
725
726 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
727 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
728 fontp->space_width.
729
e169f939
ST
7302005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
731
732 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
733 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
734 metrics for max and min bounds.
735 (x_load_font): Correctly calculate average font width metrics.
736
19996af4
RS
7372005-01-02 Richard M. Stallman <rms@gnu.org>
738
739 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
740
42d02da0
JD
7412004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
742
743 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
744
1db7dd46
RS
7452004-12-31 Richard M. Stallman <rms@gnu.org>
746
b437860a
RS
747 * xdisp.c (setup_for_ellipsis, get_next_display_element):
748 Set it->ellipsis_p to 1 or 0.
749 (display_line): Record whether row ends in mid-ellipsis.
750 (set_cursor_from_row): If ends in ellipsis. find start of it.
751 (cursor_row_p): If PT's at the end of the ellipsis the row
752 ends within, don't display cursor on this row.
753
754 * dispextern.h (struct it): New element ellipsis_p.
755 (struct glyph_row): New element ends_in_ellipsis_p.
756
757 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
758 position if we're reading from something other than the buffer.
759
1db7dd46
RS
760 * window.c (window_scroll_pixel_based): Only look at
761 Vscroll_preserve_screen_position if the old PT can't be kept.
762 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
763
1225f637
KS
7642004-12-30 Kim F. Storm <storm@cua.dk>
765
766 * xdisp.c (get_line_height_property): New function extracted from
767 original calc_line_height_property.
768 (calc_line_height_property): Rework. Handle t and (nil . ratio).
769 (x_produce_glyphs): Use them to handle line-height and
770 line-spacing according to new height spec.
771 (Qtotal): Remove.
33b2f4ea 772 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 773
c243063e
KH
7742004-12-30 Kenichi Handa <handa@m17n.org>
775
776 * fileio.c (Finsert_file_contents): Don't use
777 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 778 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
779
780 * fontset.h (struct font_info): New members space_width and
781 average_width.
782
783 * frame.h (struct frame): New member space_width.
784 (FRAME_SPACE_WIDTH): New macro.
785
786 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
787
788 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
789 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 790 fontp->space_width.
043f7f73 791 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
792 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
793
794 * xdisp.c (x_produce_glyphs): Calculate tab width by
795 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
796
456e761b
ST
7972004-12-29 Sanghyuk Suh <han9kin@mac.com>
798
799 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 800 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 801
188577ce
LT
8022004-12-29 Luc Teirlinck <teirllm@auburn.edu>
803
804 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
805
99ec74b9
RS
8062004-12-29 Richard M. Stallman <rms@gnu.org>
807
808 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
809
30c92fab
ST
8102004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
811
812 * macfns.c (install_window_handler): Modify extern to return OSErr
813 value.
814 (mac_window): Handle return value of install_window_handler.
815
816 * macterm.c (reflect_byte): Remove function.
817 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
818 Lookup table instead.
819 (mac_do_font_lists): Simplify calculation of the longest
820 nonspecial string.
821 (init_mac_drag_n_drop): Remove function and declaration.
822 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
823 init_mac_drag_n_drop.
824 (mac_do_track_drag): New function and declaration.
825 (install_window_handler): Return OSErr value.
043f7f73
SM
826 (install_window_handler) [TARGET_API_MAC_CARBON]:
827 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 828 (do_ae_open_documents): Generate unibyte strings for filenames.
5c243ee4
SM
829<<<<<<< ChangeLog
830 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
831 Reject only non-filename items. Set event modifiers and return value.
832=======
043f7f73
SM
833 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
834 Reject only non-filename items. Set event modifiers, and return value.
5c243ee4 835>>>>>>> 1.4187
30c92fab 836
4b982924
DN
8372004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
838
839 * coding.c (decode_coding): Fix previous change.
840
93fdf45f
RS
8412004-12-28 Richard M. Stallman <rms@gnu.org>
842
843 * xdisp.c (back_to_previous_visible_line_start):
844 Don't call handle_display_prop.
845
5bdca8af
DN
8462004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
847
848 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
849 (decode_coding_emacs_mule, encode_coding_emacs_mule)
850 (decode_coding_iso2022, encode_designation_at_bol)
851 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
852 (decode_coding): Constify arguments and local vars.
853
33385c6f
JD
8542004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
855
856 * xmenu.c (popup_get_selection): Only pop down dialogs
857 on C-g and Escape.
95bdef2e 858 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
859 (create_and_show_popup_menu, create_and_show_dialog):
860 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 861
b15325b2
ST
8622004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
863
864 * dispextern.h: Change HAVE_CARBON to MAC_OS.
865 (struct glyph_string): Likewise.
a2c7e69a 866
b15325b2
ST
867 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
868 mac_initialize.
a2c7e69a 869
b15325b2
ST
870 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
871 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 872
b15325b2 873 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 874
b15325b2
ST
875 * frame.c (x_set_frame_parameters, x_report_frame_params)
876 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
877 (x_set_border_width, Vdefault_frame_scroll_bars):
878 Change HAVE_CARBON to MAC_OS.
a2c7e69a 879
b15325b2
ST
880 * image.c [MAC_OS]: Include sys/stat.h.
881 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
882 QuickTimeComponents.h.
a2c7e69a 883
b15325b2
ST
884 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
885 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 886 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
887 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
888 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
889 (mac_clear_font_name_table): Add extern.
890 (Fmac_clear_font_name_table): New defun.
891 (syms_of_mac): Defsubr it.
892 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
893 [MAC_OSX] (select_and_poll_event): New function.
894 [MAC_OSX] (sys_select): Use it.
895 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
896 [MAC_OSX && SELECT_USE_CFSOCKET]
897 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
898 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
899 RunLoop for simultaneously monitoring two kinds of inputs, window
900 events and process outputs, without periodically polling.
a2c7e69a 901
b15325b2
ST
902 * macfns.c (mac_initialized): Remove extern.
903 (stricmp): Put in #if 0. All callers changed to use xstricmp in
904 xfaces.c.
043f7f73
SM
905 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
906 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
907 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
908 (mac_get_rdb_resource): New function (from w32reg.c).
909 (x_get_string_resource): Use it.
910 (install_window_handler): Add extern.
911 (mac_window): New function.
043f7f73
SM
912 (Fx_create_frame): Use it instead of make_mac_frame.
913 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
914 (Fx_open_connection, Fx_close_connection): New defuns.
915 (syms_of_macfns): Defsubr them.
043f7f73
SM
916 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
917 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
918 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
919 (x_create_tip_frame): Don't call ShowWindow.
920 (Fx_show_tip): Call ShowWindow.
921 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
922 TARGET_API_MAC_CARBON'.
923 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
924 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 925
043f7f73 926 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
927 (Window): Typedef to WindowPtr and move outside `#if
928 TARGET_API_MAC_CARBON'.
929 (XSizeHints): New struct.
a2c7e69a 930
b15325b2
ST
931 * macterm.c (x_update_begin, x_update_end)
932 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
933 frame.
934 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
935 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
936 (construct_mouse_click): Put in #if 0.
937 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
938 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
939 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
940 (activate_scroll_bars, deactivate_scroll_bars)
941 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
942 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
943 if the position is neither user-specified nor program-specified.
944 (x_free_frame_resources): Free size_hints.
5c243ee4
SM
945<<<<<<< ChangeLog
946 (x_wm_set_size_hint): Allocate size_hints if needed.
947 Set size_hints.
948=======
043f7f73 949 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
5c243ee4 950>>>>>>> 1.4187
b15325b2
ST
951 (mac_clear_font_name_table): New function.
952 (mac_do_list_fonts): Initialize font_name_table if needed.
953 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
954 around mac_do_list_fonts.
955 (mac_unload_font): New function.
956 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
957 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
958 and definitions with #if TARGET_API_MAC_CARBON.
959 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
960 (install_window_handler): Add decl.
961 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
962 window. Use UpdateControls. Get the rectangle that should be
963 updated and restrict the target of expose_frame to it.
043f7f73 964 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
965 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
966 (do_zoom_window): Don't use x_set_window_size.
967 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
968 (install_window_handler): New function.
969 [!USE_CARBON_EVENTS] (mouse_region): New variable.
970 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
971 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
972 GetEventDispatcherTarget inside BLOCK_INPUT.
973 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
974 Update mouse_region when mouse is moved.
975 (make_mac_frame): Remove.
043f7f73
SM
976 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
977 Initialize mouse pointer shapes. Change values of f->left_pos and
978 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
979 Don't call ShowWindow.
b15325b2
ST
980 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
981 Vinvocation_name and Vsystem_name.
982 (mac_make_rdb): New function (from w32term.c).
983 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
984 already been opened. Don't pass argument to
985 mac_initialize_display_info. Don't set dpyinfo->height/width.
986 Add entries to x_display_list and x_display_name_list.
987 (x_delete_display): New function.
988 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
989 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
990
b15325b2
ST
991 * macterm.h (check_mac): Add extern.
992 (struct mac_output): New member size_hints.
993 (FRAME_SIZE_HINTS): New macro.
994 (mac_unload_font): Add extern.
a2c7e69a 995
b15325b2 996 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 997
b15325b2
ST
998 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
999
92d2947b
RS
10002004-12-27 Richard M. Stallman <rms@gnu.org>
1001
5c243ee4
SM
1002<<<<<<< ChangeLog
1003 * buffer.c (Fbuffer_disable_undo): Delete (moved to simple.el).
1004=======
043f7f73 1005 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
5c243ee4 1006>>>>>>> 1.4187
ebbd14f1
RS
1007 (syms_of_buffer): Don't defsubr it.
1008
1009 * process.c (list_processes_1): Set undo_list instead
1010 of calling Fbuffer_disable_undo.
1011
043f7f73 1012 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 1013 single_display_prop_string_p.
043f7f73 1014 (single_display_spec_intangible_p): Rename from
92d2947b 1015 single_display_prop_intangible_p.
043f7f73 1016 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
1017 Rewritten to be easier to understand.
1018
a2c7e69a 1019 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
1020 and variables get just NAME.
1021
1022 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
1023
1024 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
1025 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
1026 (Qdefvar): Var deleted.
1027 (syms_of_eval): Don't initialze it.
1028
1029 * lread.c (syms_of_lread) <load-history>: Doc fix.
1030
9f6fcdc5
JD
10312004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1032
1033 * xmenu.c (popup_get_selection): Pop down on C-g.
1034 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
1035 pops down menu on C-g.
1036 (xdialog_show): If dialog popped down and no button in the dialog was
1037 pushed, call Fsignal to quit.
1038 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
1039 Fsignal to quit.
1040
1041 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
1042
1043 * gtkutil.c (xg_initialize): Install bindings for C-g so that
1044 dialogs and menus pop down.
1045
d8ca23a0
KH
10462004-12-27 Kenichi Handa <handa@m17n.org>
1047
1048 * coding.c (code_convert_region): Fix calculation of `ratio'.
1049
857ae68b
JD
10502004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1051
133c0116
JD
1052 * gtkutil.c (update_frame_tool_bar): Make the value of
1053 tool-bar-button-margin control margins of images in tool bar.
1054
857ae68b
JD
1055 * alloc.c (check_depth): New variable.
1056 (overrun_check_malloc, overrun_check_realloc): Only add
1057 overhead and write check pattern if check_depth is 1 (to handle
1058 recursive calls). Increase/decrease check_depth in entry/exit.
1059 (overrun_check_free): Only check for overhead if check_depth is 1.
1060 Increase/decrease check_depth in entry/exit.
1061
bd55c35c
JD
10622004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1063
1064 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
1065 before touching input_available_clear_time, to avoid accessing it
1066 from multiple threads.
1067
66354420
JR
10682004-12-23 Jason Rumney <jasonr@gnu.org>
1069
1070 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
1071 of JPEG library.
1072
55f4edbc
RS
10732004-12-22 Richard M. Stallman <rms@gnu.org>
1074
1075 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
1076
1077 * lisp.h (Vundo_outer_limit): Fix decl.
1078
1079 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
1080 Uses changed.
1081 (syms_of_undo): Initialize appropriately.
1082 (truncate_undo_list): If it's nil, there's no limit.
1083
7a0ea9e3
KH
10842004-12-22 Kenichi Handa <handa@m17n.org>
1085
1086 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
1087
fda2922a
RS
10882004-12-21 Richard M. Stallman <rms@gnu.org>
1089
1090 * eval.c (unwind_to_catch): Clear immediate_quit.
1091
1092 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
1093 specially as `\ ' and `\-'.
1094
1095 * keyboard.c (kbd_buffer_store_event_hold):
1096 In the code for while-no-input, handle immediate_quit.
1097
1098 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
1099 Call that at the very start.
043f7f73 1100 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
1101 (syms_of_alloc): Don't define undo-limit,
1102 undo-strong-limit and undo-outer-limit here.
1103
1104 * undo.c (truncate_undo_list): Return void.
1105 Take just one argument, the buffer.
1106 Make it current, and inhibit recursive GC.
1107 Access and update the undo list directly; return void.
1108 Refer to the undo...limit variables directly.
1109 Test undo_outer_limit only after counting the whole current command.
1110 When it's exceeded, call the function in undo-outer-limit-function.
1111 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
1112 (Vundo_outer_limit_function): New variable.
1113 (syms_of_undo): Define undo-limit, undo-strong-limit
1114 and undo-outer-limit here, and undo-outer-limit-function.
1115 Doc fixes.
1116
1117 * lisp.h (truncate_undo_list): Update decl.
1118
11192004-12-21 Piet van Oostrum <piet@cs.uu.nl>
1120
1121 * fileio.c (Fread_file_name): Delete duplicates in
1122 file-name-history when history_delete_duplicates is true.
1123
68c69027
ST
11242004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1125
1126 * macterm.c (mac_do_list_fonts): Fix memory leak
1127
134579f2
RS
11282004-12-20 Richard M. Stallman <rms@gnu.org>
1129
1130 * regex.c (re_match_2_internal) <symend, wordend>:
1131 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
1132
fbe6152f
ST
11332004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1134
043f7f73
SM
1135 * macterm.c (endif, x_font_name_to_mac_font_name):
1136 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
1137 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
1138 quickly finding a specific font without needing regexps.
1139
fecad3f6
JD
11402004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1141
333f1b6f
JD
1142 * syssignal.h: Declare main_thread.
1143 (SIGNAL_THREAD_CHECK): New macro.
1144
1145 * keyboard.c (input_available_signal): Move thread checking code
1146 to macro SIGNAL_THREAD_CHECK and call that macro.
1147 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
1148
1149 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
1150
1151 * emacs.c: Define main_thread.
1152 (main): Initialize main_thread.
1153 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
1154 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
1155
1156 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
1157
1158 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
1159
1160 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
1161
043f7f73
SM
1162 * process.c (send_process_trap, sigchld_handler):
1163 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
1164
1165 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
1166
1167 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
1168
fecad3f6
JD
1169 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
1170 returning when xg_ignore_gtk_scrollbar is true.
1171
2a84c6da
KS
11722004-12-14 Kim F. Storm <storm@cua.dk>
1173
1174 * keyboard.c (read_char): Save and restore echo_string when
1175 handling input method.
1176
d9c1ce9d
RS
11772004-12-13 Richard M. Stallman <rms@gnu.org>
1178
1179 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
1180
1181 * keyboard.c (Vthrow_on_input): New variable.
1182 (syms_of_keyboard): Defvar and initialize it.
1183 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
1184
1185 * lisp.h (QUIT): Check for Vthrow_on_input.
1186 (Vthrow_on_input): Declare it.
1187
a6495ed5
KS
11882004-12-13 Kim F. Storm <storm@cua.dk>
1189
1190 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
1191 vector.
1192
24a0e22f
RS
11932004-12-12 Richard M. Stallman <rms@gnu.org>
1194
1195 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
1196
1197 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
1198 (Ftry_completion): Really use outer `zero'; eliminate inner one.
1199
d6d31e57
KH
12002004-12-12 Kenichi Handa <handa@m17n.org>
1201
1202 * term.c (encode_terminal_code): Fix previous change.
1203
6f8ffb88
SM
12042004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
1205
fb6f5cbf
SM
1206 * keyboard.c (handle_async_input): Remove pthread mutex handling.
1207 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
1208
6f8ffb88
SM
1209 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
1210 in macro arguments.
1211
1212 * minibuf.c (Ftry_completion, Fall_completions): Don't use
1213 XFASTINT blindly.
1214
1215 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
1216
c83c9f9d
JD
12172004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1218
2f25767f
JD
1219 * w32term.c (x_calc_absolute_position): Remove calculation of
1220 difference between inner and outer window. Don't subtract difference
1221 for left and top calculations.
1222
c83c9f9d
JD
1223 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
1224 for left and top calculations. Remove call to x_real_positions.
24a0e22f 1225 [Bug report by Drew Adams in November]
c83c9f9d
JD
1226 (x_check_expected_move): Do not set change_gravity to 1 when calling
1227 x_set_offset.
1228
cc1caa4e
RS
12292004-12-08 Richard M. Stallman <rms@gnu.org>
1230
1231 * xdisp.c (get_next_display_element): Use `escape-glyph' for
1232 control chars and escaped octal codes.
1233 (Qescape_glyph): New variable.
1234 (syms_of_xdisp): Initialize it.
1235 (escape_glyph_face): New variable.
1236 (redisplay_window): Initialize it.
1237
e0e30823
RS
12382004-12-07 Paul Eggert <eggert@cs.ucla.edu>
1239
1240 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
1241 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
1242
f415cacd
JD
12432004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1244
cf435f39
JD
1245 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
1246 reset_malloc_hooks.
1247
6f8ffb88
SM
1248 * keyboard.c (handle_async_input, input_available_signal):
1249 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 1250
f415cacd
JD
1251 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
1252
043f7f73 12532004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
1254
1255 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
1256
1257 * config.in: Regenerate.
1258
ded997c1
JD
12592004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1260
453a4f1b
JD
1261 * xmenu.c (Fx_popup_menu): Correct documentation about position.
1262 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
1263 if not given by a mouse click to correspond with x-popup-menu
1264 documentation.
1265
9a38524c
JD
1266 * config.in: Regenerate.
1267
aa477689
JD
1268 * gtkutil.c: Include signal.h and syssignal.h.
1269 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
1270
1271 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
1272 new variables main_thread and alloc_mutex,
1273 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
1274 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
1275 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
1276 (UN)BLOCK_INPUT.
1277 (emacs_blocked_free, emacs_blocked_malloc)
1278 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
1279 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
1280 (reset_malloc_hooks): New function.
1281
1282 * lisp.h: Declare reset_malloc_hooks.
1283
1284 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
1285
1286 * keyboard.c: Conditionally include pthread.h
6f8ffb88 1287 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
1288 thread, block signal, send signal to main thread and return.
1289
ded997c1 1290 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 1291 Set current folder in file chooser if default_filename is a directory.
ded997c1 1292
c72b0edd
SM
12932004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
1294
1295 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
1296 Remove redundant correctness checks.
1297 (regex_compile): Fix up error codes for \{..\} expressions.
1298
c721eee5
RS
12992004-12-05 Richard M. Stallman <rms@gnu.org>
1300
1301 * regex.c (regex_compile): Fix end-of-pattern case for space.
1302
d8f96db8
ST
13032004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1304
6108209e
KS
1305 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
1306 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 1307 crashes with invalid characters.
6108209e
KS
1308 * macmenu.c (add_menu_item): Use it.
1309 * image.c (image_load_quartz2d): Likewise.
1310 * macfns.c (x_set_name, x_set_title): Likewise.
1311 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
1312 creating them each time for labels.
d8f96db8 1313
ab67e8b6
RS
13142004-12-02 Richard M. Stallman <rms@gnu.org>
1315
1316 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
1317 don't use it here.
1318
1319 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
1320 (interactive_p): Skip Scalled_interactively_p frames
1321 like Sinteractive_p frames.
b8217ea6 1322 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
1323
1324 * data.c (Fmake_variable_buffer_local): Doc fix.
1325 (Fmake_local_variable): Doc fix.
1326
1327 * insdel.c (insert_from_string_before_markers)
1328 (insert_from_string): Don't modify buffer on empty insertion.
1329
1330 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
1331
f86bdc80
ST
13322004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1333
1334 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
1335 menu text as UTF8 fails.
1336
1cae6d39
KS
13372004-12-01 Kim F. Storm <storm@cua.dk>
1338
1339 * alloc.c: Add commentary for last change.
1340 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
1341 sizeof(size_t) != 4.
1342 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
1343 Use them. Also clear header and trailer of freed memory.
1344 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
1345 (string_overrun_cookie): Rename from string_overrun_pattern.
1346 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
1347
77ea0764
AS
13482004-12-01 Andreas Schwab <schwab@suse.de>
1349
1350 * lisp.h: Declare string_to_multibyte.
1351
2d5cd4e6
KH
13522004-12-01 Kenichi Handa <handa@m17n.org>
1353
1354 * w32console.c (w32con_write_glyphs): Decide coding here.
1355 Adjusted for the change of encode_terminal_code.
1356
1357 * term.c (encode_terminal_code): Don't make it "static".
1358
25a0994a
KH
13592004-11-30 Kenichi Handa <handa@m17n.org>
1360
19b1f29a 1361 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 1362 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
1363 characters at once, and return a pointer to the result of encoding.
1364 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
1365 (insert_glyphs): Likewise.
1366 (term_init): Initialize encode_terminal_bufsize to 0.
1367
1368 * coding.c (Vcode_conversion_workbuf_name): New variable.
1369 (syms_of_coding): Initialize and staticpro it.
1370 (set_conversion_work_buffer): New function.
1371 (run_pre_post_conversion_on_str): Use it.
1372 (run_pre_write_conversin_on_c_str): New function.
1373
1374 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
1375
fc7a70cc
ST
13762004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1377
1378 * keyboard.c: Don't undef SIGIO
1379 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
1380 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
1381 (macfns.o): Don't depend on ccl.h.
1382 * macfns.c (mac_frame_parm_handlers): Set handlers for
1383 Qleft_fringe and Qright_fringe.
1384 * macterm.c (mac_fill_rectangle_to_pixmap)
1385 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
1386 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
1387 Put in #if 0.
1388 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
1389 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
1390 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
1391 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
1392 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
1393 XDrawImageString. Always draw background and foreground separately.
1394 (x_draw_image_foreground): Use clipping instead of computing the
1395 intersection rectangle.
1396 (x_draw_image_glyph_string): Don't draw an image with mask to a
1397 pixmap.
1398 (x_redisplay_interface): Set flush_display_optional member to 0.
1399 (XTread_socket): Correctly reset the TEConverter
1400 object.
1401
fc368889
KS
14022004-11-30 Kim F. Storm <storm@cua.dk>
1403
1404 * lisp.h: New defines to enable buffer overrun checking.
1405 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
1406 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
1407
1408 * alloc.c: Add more checks for buffer overruns.
1409 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
1410 xmalloc_overrun_check_trailer, overrun_check_malloc)
1411 overrun_check_realloc, overrun_check_free): Add.
1412 (GC_STRING_EXTRA, string_overrun_pattern): Add.
1413 (check_sblock, allocate_string_data, compact_small_strings):
1414 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
1415 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
1416 (check_string_free_list): Add.
1417 (allocate_string, sweep_strings): Call check_string_free_list.
1418
1419 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
1420 XMALLOC_OVERRUN_CHECK to avoid crash during load.
1421
0af8cfe1
KS
14222004-11-29 Kim F. Storm <storm@cua.dk>
1423
1424 * fns.c (concat): Use SAFE_ALLOCA.
1425
77220eeb
SM
14262004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
1427
1428 * sysdep.c (emacs_write): Don't use QUIT.
1429
a778cf63
KH
14302004-11-29 Kenichi Handa <handa@m17n.org>
1431
1432 * buffer.c (init_buffer): Set current_buffer->directory to a
1433 multibyte string made by string_to_multibyte.
1434
77220eeb 1435 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 1436
e3177e43
AS
14372004-11-27 Andreas Schwab <schwab@suse.de>
1438
1439 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
1440
1441 * s/gnu-linux.h: Enable no-op gcpros on ia64.
1442 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
1443
77220eeb
SM
1444 * filelock.c (lock_file_1): Call get_boot_time early.
1445 Increase buffer size.
e3177e43 1446
ca5e6fef
EZ
14472004-11-27 Eli Zaretskii <eliz@gnu.org>
1448
1449 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
1450 is not defined.
1451
e2811828
KS
14522004-11-27 Kim F. Storm <storm@cua.dk>
1453
1454 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
1455 marker out of doc string.
1456
7a262394
SM
14572004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
1458
1459 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
1460 which was not mentioned in the log.
1461
f33cc5a9
KS
14622004-11-26 Kim F. Storm <storm@cua.dk>
1463
048bb03f
KS
1464 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
1465 angle bitmaps at top/bottom line.
1466
f33cc5a9
KS
1467 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
1468 set it when it->method is set to next_element_from_display_vector.
1469 (setup_for_ellipsis): Add LEN argument. Callers changed.
1470 Set it->saved_face_id.
1471 (get_next_display_element): Use loop instead of recursion.
1472 Set it->saved_face_id. Combine duplicate code for ctr chars.
1473 (next_element_from_display_vector): Do not set it->saved_face_id.
1474 (next_element_from_ellipsis): Use setup_for_ellipsis.
1475
670e8906
EZ
14762004-11-26 Eli Zaretskii <eliz@gnu.org>
1477
1478 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
1479 prevent compiler warnings.
1480
275464e7
SM
14812004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
1482
1bf0e604
SM
1483 * keyboard.c (command_loop_1): Print a message describing the key
1484 the user just pressed when this key has no binding.
1485
275464e7
SM
1486 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
1487 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
1488
1489 * lread.c (readchar): Check QUIT when `getc' is interrupted.
1490
261b01c6
RS
14912004-11-24 Richard M. Stallman <rms@gnu.org>
1492
1493 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
1494
1495 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
1496
a5bd504e
KS
14972004-11-24 Kim F. Storm <storm@cua.dk>
1498
1499 * xdisp.c (move_it_in_display_line_to, display_line):
1500 Restore saved_face_id also when truncate-lines or hscrolled.
1501
255e4140
JD
15022004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1503
1504 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
1505 x-use-old-gtk-file-dialog.
1506
1507 * xfns.c: Define x_use_old_gtk_file_dialog.
1508 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
1509 outside ifdef USE_GTK.
1510
cab27d04
SM
15112004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
1512
1513 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
1514 Don't use XFASTINT blindly.
1515
1516 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
1517
1518 * indent.c (skip_invisible): Avoid non-idempotent side-effects
1519 in macro arguments.
1520
1521 * keymap.c (Flookup_key): Check INTEGERP before XINT.
1522
1523 * lread.c (oblookup): Don't use XFASTINT blindly.
1524
1525 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
1526 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
1527
11e0be49
KS
15282004-11-23 Kim F. Storm <storm@cua.dk>
1529
4d721114
KS
1530 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
1531 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
1532
11e0be49
KS
1533 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
1534 signal_p is zero and face name is unknown.
1535 (Fx_list_fonts): Don't signal error in lookup_named_face.
1536 (Fface_font): Signal error in lookup_named_face.
1537 (ascii_face_of_lisp_face): Likewise.
1538
1539 * dispextern.h (lookup_named_face): Fix prototype.
1540
1541 * xdisp.c (handle_single_display_prop): Don't signal error in
1542 lookup_named_face for unknown fringe face name.
1543 (highlight_trailing_whitespace): Don't signal error in
1544 lookup_named_face if trailing-whitespace face unknown.
1545 (calc_line_height_property): Don't signal error in
1546 lookup_named_face if specified face name is unknown.
1547
1548 * fringe.c (update_window_fringes): Show top row indicator if
1549 window has header-line. Don't show arrow at bob and eob
1550 if the boundary indicators are not used.
1551 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
1552
1553 * window.c (set_window_buffer): Clear display_error_modiff.
1554
0960a582
KS
15552004-11-22 Kim F. Storm <storm@cua.dk>
1556
1557 * fringe.c (update_window_fringes): Provide sensible fall-back
1558 value for non-nil indicate-buffer-boundaries setting.
1559
b0e9bb28
MR
15602004-11-22 Markus Rost <rost@ias.edu>
1561
1562 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
1563
d0bce91e
SM
15642004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
1565
1566 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
1567
e1814672
KS
15682004-11-21 Kim F. Storm <storm@cua.dk>
1569
b7fd3518
KS
1570 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
1571
1572 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
1573 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1574
1575 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
1576 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1577
1578 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
1579 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1580
d0bce91e
SM
1581 * xdisp.c (move_it_in_display_line_to, display_line):
1582 Restore saved_face_id if overflow-newline-into-fringe is enabled and
1583 line is continued before or in middle of element from display vector.
f01d4d05 1584
f1a61389
KS
1585 * indent.c (Fvertical_motion): Fix last change. Use another
1586 method to detect if iterator moved too far ahead after reseat.
1587
e1814672
KS
1588 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
1589 expand matrix width for overflow in zero-width area.
1590 (append_glyph, append_composite_glyph, produce_image_glyph)
1591 (append_stretch_glyph): Use it to avoid loop in redisplay.
1592 (note_mode_line_or_margin_highlight): Don't let help-echo from
1593 string override help-echo from image map.
1594
2dafe1c9
LT
15952004-11-20 Luc Teirlinck <teirllm@auburn.edu>
1596
d0bce91e 1597 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
1598 * callint.c (Fcall_interactively): Ditto.
1599
fd6866c8 16002004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
1601
1602 * minibuf.c (Fminibuffer_complete_and_exit):
1603 Fixup the case of the completed value, for case-indep completion.
1604
dedbac89
RS
16052004-11-20 Richard M. Stallman <rms@gnu.org>
1606
fd6866c8
RS
1607 * lisp.h (Fread_from_minibuffer): Add arg in decl.
1608
9d00469f 1609 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 1610 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 1611
dedbac89 1612 * search.c (Vsearch_spaces_regexp):
d0bce91e 1613 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 1614
2f672bb5
TTN
16152004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
1616
1617 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
1618
f31a9a68
RS
16192004-11-19 Richard M. Stallman <rms@gnu.org>
1620
1621 * search.c (Vsearch_whitespace_regexp): New variable.
1622 (syms_of_search): Defvar it.
1623 (compile_pattern_1): Call re_set_whitespace_regexp with it.
1624 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
1625 is non-nil.
6de891db
RS
1626 (struct regexp_cache): New element whitespace_regexp.
1627 (syms_of_search): Initialize whitespace_regexp elements.
1628 (compile_pattern): Compare whitespace_regexp elements.
1629 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
1630
1631 * regex.c (regex_compile): Substitute whitespace_regexp
1632 for spaces, if it is nonzero.
1633 (whitespace_regexp): New variable.
1634 (re_set_whitespace_regexp): New function.
1635
cbc34cb3
KS
16362004-11-19 Kim F. Storm <storm@cua.dk>
1637
1638 * indent.c (Fvertical_motion): Fix last change.
1639
b54a7539
KS
16402004-11-18 Kim F. Storm <storm@cua.dk>
1641
1642 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
1643 Instead, move back again if reseating moves too far ahead.
1644
16452004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
1646
1647 * xdisp.c (message3): Call clear_message.
1648
5ff504fe
KS
16492004-11-17 Kim F. Storm <storm@cua.dk>
1650
1651 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
1652
5ae53dcf
JD
16532004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1654
d0bce91e 1655 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 1656
6abf3a27 1657 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
1658 (x_menu_set_in_use): Also set popup_activated_flag.
1659
5ff504fe 1660 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
1661 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
1662
6abf3a27 1663 * xterm.h: (x_menu_in_use): Remove.
5ae53dcf 1664
ee31cd78
RS
16652004-11-16 Richard M. Stallman <rms@gnu.org>
1666
6abf3a27
SM
1667 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
1668 Use map-keymap-internal to implement that.
ee31cd78
RS
1669
1670 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
1671
6abf3a27
SM
16722004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
1673
1674 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
1675 a window before using XWINDOW.
1676
1677 * window.c (make_window, Fselect_window, make_dummy_parent)
1678 (save_window_save):
1679 * frame.c (make_frame):
1680 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
1681
1682 * lisp.h (NILP): Use EQ rather than XFASTINT.
1683
b4d61105
KS
16842004-11-16 Kim F. Storm <storm@cua.dk>
1685
6abf3a27 1686 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 1687
b4d61105
KS
1688 * indent.c (Fvertical_motion): Fix last change. Only reseat when
1689 moving backwards.
1690
16912004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
1692
1693 * dispextern.h: Extern reseat_at_previous_visible_line_start.
1694
ab5b02b0
KH
16952004-11-16 Kenichi Handa <handa@m17n.org>
1696
1697 * xdisp.c (display_mode_element): Fix previous change (calculate
1698 end position of substring to display correctly).
1699
c482cf97
KS
17002004-11-16 Kim F. Storm <storm@cua.dk>
1701
1702 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
1703 Reported by Andrew M. Scott.
1704
9f89426b
KS
17052004-11-15 Kim F. Storm <storm@cua.dk>
1706
1707 * fns.c (Fsafe_plist_get): New defun.
1708 (syms_of_fns): Defsubr it.
1709
1710 * lisp.h (Fsafe_plist_get): Add EXFUN.
1711
1712 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
1713 Use Fsafe_plist_get.
1714 (note_mode_line_or_margin_highlight, note_mouse_highlight):
1715 Fix image map element parsing. Use Fsafe_plist_get.
1716
27418463
RS
17172004-11-15 Richard M. Stallman <rms@gnu.org>
1718
1719 * xdisp.c (get_next_display_element): Fix previous change.
1720
a130b901
JD
17212004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1722
ef614e04
JD
1723 * window.c (shrink_windows): Handle special case of one window left
1724 when trying to shrink the final reminder. Grow windows if
1725 total_removed is less than total_shrink.
1726
a130b901
JD
1727 * xmenu.c (pop_down_menu): Remove global variable current_menu,
1728 extract pointer from arg with XSAVE_VALUE.
46303896
KS
1729 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
1730 Construct arg to record_unwind_protect with make_save_value.
a130b901 1731
d9a03ad2
RS
17322004-11-13 Richard M. Stallman <rms@gnu.org>
1733
1734 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
1735 (get_next_display_element): Fix previous change to apply only to \n.
1736
1737 * indent.c (Fvertical_motion): Scan to PT from start of line to
1738 make iterator consistent.
1739
1740 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
1741
b3935289
JD
17422004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1743
1744 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
1745
1746 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
1747 Record unwind with clean_up_file_dialog.
1748
78819ebb
KS
1749 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
1750 Declare.
b3935289
JD
1751
1752 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
1753
af89e871
JD
17542004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1755
457a8155 1756 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 1757 (xg_file_sel_destroy): Remove.
46303896
KS
1758 (xg_file_response_cb, pop_down_file_dialog)
1759 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 1760 New functions.
6abf3a27
SM
1761 (xg_get_file_with_chooser, xg_get_file_with_selection):
1762 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
1763 Move common code to xg_get_file_name. Return widget created.
1764 (xg_get_file_name): Set name, transient for, modal and destroy
1765 with parent here. Connect response signal to xg_file_response_cb,
1766 connect delete-event to gtk_true. Record pop_down_file_dialog
1767 for unwind. Do event loop and call x_menu_wait_for_event in loop.
1768 (xg_create_widget): Make dialogs modal.
1769
af89e871
JD
1770 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
1771 Lisp_Object.
1772 (popup_get_selection): Move unwind protect ...
1773 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1774 Move destroy of widget to pop_down_menu.
1775 (popup_widget_loop): Move unwind protect ...
1776 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1777 Move destroy of widget to pop_down_menu.
1778 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 1779 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
1780 x_mouse_leave and grabbed = 0 to pop_down_menu.
1781
5596fbf1
KS
17822004-11-13 Kim F. Storm <storm@cua.dk>
1783
1784 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
1785 (syms_of_xdisp): DEFVAR_BOOL it.
1786 (make_cursor_line_fully_visible, try_cursor_movement)
1787 (try_window_id): Use it.
1788
b9de078a
KS
17892004-11-12 Kim F. Storm <storm@cua.dk>
1790
381f7091
KS
1791 * dispextern.h (struct glyph_row): New member extra_line_spacing.
1792 (struct it): New member max_extra_line_spacing.
1793 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
1794 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
1795 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
1796 part of last line is only extra line spacing (so the text on the
1797 line is fully visible). Use helper macros.
1798 Add W arg (to use them). All callers changed.
1799 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
1800 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
1801
6abf3a27
SM
1802 * window.c (window_scroll_pixel_based, Frecenter):
1803 Use move_it_vertically_backward directly.
381f7091
KS
1804 (Frecenter): Fix calculation of new start pos for negative arg.
1805 Before, the new start pos was sometimes chosen too far back, so
1806 the last line became only partially visible, and thus would be
1807 either only semi-visible or automatically scrolled to the middle
1808 of the window by redisplay.
1809
1810 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
1811 (move_it_vertically_backward): Don't recure to move further back.
1812 (move_it_vertically): Remove superfluous condition.
1813 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 1814 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
1815 (display_tool_bar_line): Clear row->extra_line_spacing.
1816 (try_scrolling): Use move_it_vertically_backward directly.
1817 (redisplay_window): Likewise.
1818 (compute_line_metrics): Set row->extra_line_spacing.
1819 (display_line, display_string): Likewise.
1820 (x_produce_glyphs): Update it->max_extra_line_spacing.
1821
b9de078a
KS
1822 * xmenu.c (pop_down_menu): Return nil.
1823
c3438661
JD
18242004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1825
1826 * xmenu.c (x_menu_wait_for_event): New function.
1827 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
1828 to handle timers.
df00f436
JD
1829 (popup_widget_loop): Add argument do_timers.
1830 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
1831 do_timers to popup_widget_loop.
c3438661
JD
1832 (xmenu_show): Call XMenuActivateSetWaitFunction so that
1833 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 1834 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 1835 popup_get_selection.
f1d1cd24
JD
1836 (pop_down_menu): New function.
1837 (popup_get_selection, popup_widget_loop): Unwind protect to
1838 pop_down_menu.
1839 (popup_widget_loop): Add argument widget.
1840 (create_and_show_popup_menu, create_and_show_dialog): Pass new
1841 argument widget to popup_widget_loop.
c3438661 1842
32e2fb04
SM
18432004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1844
1845 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
1846
0faf6806
KS
18472004-11-09 Kim F. Storm <storm@cua.dk>
1848
1849 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
1850 Fix various comments referring to XEvents instead of input events.
1851 (x_queue_event): Fix format strings.
1852 (x_stop_queuing_selection_requests): Likewise.
1853
1854 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
1855 (pint2hrstr): Add extra braces to silence compiler.
1856
1857 * print.c (print_object): Fix format string.
1858
1859 * lread.c (read1): Fix next_char matching.
1860
1861 * lisp.h (Fdelete): Add EXFUN.
1862 (replace_range_2): Add prototype.
1863
1864 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
1865
1866 * intervals.h (NULL_INTERVAL_P): Add separate version when
1867 ENABLE_CHECKING is not defined to silence compiler.
1868 (compare_string_intervals): Add prototype.
1869
1870 * fringe.c (destroy_fringe_bitmap): Fix return type.
1871 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
1872
1873 * emacs.c (Fdump_emacs): Fix format string.
1874
1875 * doc.c: Include <ctype.h>.
1876 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
1877
1878 * data.c (store_symval_forwarding): Remove unused variables.
1879
1880 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
1881
16bf4e32
JD
18822004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1883
1884 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
1885 to ${OLDXMENU}.
1886
cdb805a9
KS
18872004-11-09 Kim F. Storm <storm@cua.dk>
1888
1889 * process.c (Fmake_network_process): Remove kludge for interrupted
1890 connects on BSD. If connect is interrupted, just close socket and
1891 start over rather than sleeping and retry with same socket.
1892
d87a9ab8 18932004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 1894
a8b16c80
JD
1895 * .cvsignore: Add buildobj.lst.
1896
d87a9ab8
JD
1897 * doc.c: New variable Vbuild_files.
1898 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
1899 file names from buildobh.lst. Only attach docstrings from files
1900 that are in Vbuild_files.
1901 (syms_of_doc): Defvar Vbuild_files.
1902
1903 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
1904 and w32*.o.
1905 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 1906 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
1907
1908 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
1909 is linked.
1910
b6709e77
KS
19112004-11-09 Kim F. Storm <storm@cua.dk>
1912
1913 * fringe.c (update_window_fringes): Update fringe bitmaps if
1914 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
1915 also update previous row to get rid of misc. artifacts.
1916
bae9677d
KS
19172004-11-08 Kim F. Storm <storm@cua.dk>
1918
1919 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 1920 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 1921
3f8ea68c
EZ
19222004-11-08 Eli Zaretskii <eliz@gnu.org>
1923
1924 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
1925 Don't include <sys/time.h> explicitly.
1926 Include <stdio.h> unconditionally, not just on MacOS.
1927
a653f812
KH
19282004-11-08 Kenichi Handa <handa@m17n.org>
1929
1930 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
1931 don't pay attention to '\' before '*'.
1932 (fontset_pattern_regexp): Change the meaning of the second arg.
1933 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
1934 (check_fontset_name): Try NAME as literal at first, and if it
1935 failes, try NAME as pattern.
1936
c37caf9d
JD
19372004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1938
1939 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
1940
b72915a7
AS
19412004-11-07 Andreas Schwab <schwab@suse.de>
1942
78819ebb
KS
1943 * lisp.h (Fmsdos_downcase_filename): Declare.
1944 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
1945 * fileio.c: Likewise.
1946
238a44a8
JD
19472004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1948
1949 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
1950 comparisons with integers instead of Lisp_Object address.
1951 (Fmsdos_set_keyboard): Declare argument allkeys.
1952
1953 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
1954
78819ebb 1955 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
1956 int/Lisp_Object mixup.
1957
1958 * fileio.c: Ditto.
1959
31141c13
ST
19602004-11-06 Steven Tamm <steventamm@mac.com>
1961
1962 * editfns.c: Need to include sys/time.h before resource.h on darwin.
1963
f28c1bd9
RS
19642004-11-06 Richard M. Stallman <rms@gnu.org>
1965
1966 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
1967
1968 * xfaces.c (merge_named_face): GCPRO the face_name in the
1969 named_merge_point struct that we make.
1970 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
1971
1972 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
1973 before deciding whether to inactivate mark.
1974
59dede22
EZ
19752004-11-06 Lars Brinkhoff <lars@nocrew.org>
1976
1977 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
1978 * editfns.c (Fget_internal_run_time): New function.
1979 (syms_of_data): Defsubr it.
1980 * fns.c (sxhash): As far as possible, merge calculation of
1981 hash code for symbols and strings.
59dede22 1982
27540e81
EZ
19832004-11-06 Eli Zaretskii <eliz@gnu.org>
1984
1985 * frame.c (syms_of_frame): Fix the example in the doc string.
1986
df470e3b
JD
19872004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1988
1989 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
1990
1991 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
1992 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 1993
4cc8522c
LT
19942004-11-05 Luc Teirlinck <teirllm@auburn.edu>
1995
1996 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
1997
d4a42098
KS
19982004-11-05 Kim F. Storm <storm@cua.dk>
1999
a8490886
KS
2000 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
2001
d4a42098
KS
2002 * fileio.c (Ffile_modes): Doc fix.
2003 (auto_save_1): Check for Ffile_modes nil value.
2004
36a2b04c
KS
20052004-11-05 Kim F. Storm <storm@cua.dk>
2006
2007 * xselect.c (struct selection_event_queue, selection_queue)
2008 (x_queue_selection_requests, x_queue_event)
2009 (x_start_queuing_selection_requests)
2010 (x_stop_queuing_selection_requests): Add new queue for selection
2011 input events to replace previous XEvent queue in xterm.c.
2012 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
2013 (x_reply_selection_request): Adapt to new queue.
2014 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
2015 (x_handle_selection_request, x_handle_selection_clear): Make static.
2016 (x_handle_selection_event): New function. May queue selection events.
2017 (wait_for_property_change_unwind): Use save_value instead of cons.
2018 Clear property_change_reply_object.
2019 (wait_for_property_change): Abort if already waiting.
2020 Use save_value instead of cons for unwind data.
2021 (x_handle_property_notify): Skip events already arrived, but don't
2022 free them, as "arrived" field is checked by wait_for_property_change,
2023 and it will be freed by unwind or explicit unexpect_property_change.
2024 (x_get_foreign_selection): Add to new queue.
2025 (receive_incremental_selection): Don't unexpect wait_object when done
2026 as it has already been freed by previous wait_for_property_change.
2027
2028 * xterm.h (x_start_queuing_selection_requests)
2029 (x_stop_queuing_selection_requests, x_handle_selection_request)
2030 (x_handle_selection_clear): Remove prototypes.
2031 (x_handle_selection_event): Add prototype.
2032
2033 * xterm.c (handle_one_xevent): Don't queue X selection events
2034 here, it may be too late if we start queuing after we have already
2035 stored some selection events into the kbd buffer.
2036 (struct selection_event_queue, queue, x_queue_selection_requests)
2037 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
2038 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
2039 (x_catch_errors_unwind): Block input around final XSync.
2040
2041 * keyboard.h (kbd_buffer_unget_event): Add prototype.
2042
2043 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
2044 (kbd_buffer_unget_event): New function.
2045 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
2046 and use x_handle_selection_event.
2047 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
2048
9c3ad9e1
JD
20492004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2050
2051 * xselect.c (TRACE3): New debug macro.
2052 (x_reply_selection_request): Use it.
2053 (receive_incremental_selection): In call to TRACE0, the name of
2054 a symbol is in xname.
2055
a33b89de
KS
20562004-11-05 Kim F. Storm <storm@cua.dk>
2057
2058 * fontset.c (fontset_pattern_regexp): Use unsigned char.
2059
a872928c
JD
20602004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2061
88208bb8
JD
2062 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
2063
78819ebb 2064 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
2065
2066 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 2067 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
2068 * xfns.c (syms_of_xfns): ... to here.
2069
a872928c
JD
2070 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
2071 it doesn't start with /.
2072
b912921c
KH
20732004-11-04 Kenichi Handa <handa@m17n.org>
2074
2075 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
2076 treat it as a literal character.
2077
c524d9a6
KS
20782004-11-03 Kim F. Storm <storm@cua.dk>
2079
2080 * .gdbinit (ppt): New function.
2081
8cfd0f36
JD
20822004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2083
a11e1dce
JD
2084 * xterm.c (x_window_to_scroll_bar): Only call
2085 xg_get_scroll_id_for_window if toolkit scroll bars are used.
2086
8cfd0f36
JD
2087 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
2088 of save.
2089
a93563fd
AS
20902004-11-02 Andreas Schwab <schwab@suse.de>
2091
2092 * window.c (Fscroll_right): Fix last change.
2093
2b2d59d8
KS
20942004-11-02 Kim F. Storm <storm@cua.dk>
2095
2096 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
2097
20982004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2099
2100 * callproc.c (Fcall_process): Block input around vfork.
2101
ca28104d
KS
21022004-11-02 Kim F. Storm <storm@cua.dk>
2103
2104 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
2105 (syms_of_eval): Defsubr it.
2106
29bb7127
RS
21072004-11-02 Richard M. Stallman <rms@gnu.org>
2108
2109 * insdel.c (replace_range_2): New function.
2110
2111 * casefiddle.c (casify_region): Handle changes in byte-length
2112 using replace_range_2.
2113
2114 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
2115
b6189c3b 2116 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
2117 Subtract 1 from pos when checking previous newline for invisibility.
2118
2119 * window.c (window_scroll_pixel_based): Update preserve_y
2120 for header line if any.
2121 (Fscroll_left, Fscroll_right): Don't call interactive_p;
2122 use a new second argument instead.
2123
2124 * eval.c (Fcall_interactive_p): New function.
2125 (interactive_p): Don't test INTERACTIVE here.
2126 (Finteractive_p): Doc fix.
2127
2128 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
2129
b6189c3b 21302004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
2131
2132 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 2133 comparing font names.
a3fe4aaf 2134
2a00cdb4
JD
21352004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2136
f9d64bb3
JD
2137 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
2138 Fx_file_dialog if only directories should be read.
2139
2140 * lisp.h: Fx_file_dialog takes 5 parameters.
2141
32e2fb04
SM
2142 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
2143 Add parameter only_dir_p.
f9d64bb3
JD
2144 In Motif version, don't put DEFAULT_FILENAME in filter part of the
2145 dialog, just text field part. Do not add DEFAULT_FILENAME
2146 to list of files if it isn't there.
2147 In GTK version, pass only_dir_p parameter to xg_get_file_name.
2148
32e2fb04
SM
2149 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
2150 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
2151 a save dialog, add option kNavDontConfirmReplacement, change title
2152 to "Enter name", change text for save button to "Ok".
2153
32e2fb04
SM
2154 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
2155 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
2156
2157 * gtkutil.c (xg_get_file_with_chooser)
2158 (xg_get_file_with_selection): New functions, only defined ifdef
2159 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
2160 respectively.
2161 (xg_get_file_name): Add parameter only_dir_p.
2162 Call xg_get_file_with_chooser or xg_get_file_with_selection
2163 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
2164 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
2165
2166 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
2167
2a00cdb4
JD
2168 * config.in: Rebuild (added HAVE_GTK_FILE_*).
2169
f6749d5d
KS
21702004-11-01 Kim F. Storm <storm@cua.dk>
2171
32e2fb04
SM
2172 * process.c (connect_wait_mask, num_pending_connects):
2173 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 2174 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
2175 (IF_NON_BLOCKING_CONNECT): New helper macro.
2176 (wait_reading_process_output): Only declare and use local vars
2177 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 2178
1a99fe1a
JR
21792004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
2180
2181 * w32term.c (x_scroll_run): Delete region objects after use.
2182
fcdb28b4
JD
21832004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2184
495ef86b
JD
2185 * xmenu.c: Add prototypes for forward function declarations.
2186 (popup_get_selection): Remove parameter do_timers, remove call to
2187 timer_check.
32e2fb04
SM
2188 (create_and_show_popup_menu, create_and_show_dialog):
2189 Remove parameter do_timers from call to popup_get_selection.
495ef86b 2190
12e6566a
JD
2191 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
2192 tool_bar_items and assign the result to f->tool_bar_items if
2193 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
2194 tool_bar_items to assignment of result.
2195
fcdb28b4
JD
2196 * atimer.c (alarm_signal_handler): Do not call set_alarm if
2197 pending_atmers is non-zero.
2198
1a1a0c4c
KS
21992004-10-31 Kim F. Storm <storm@cua.dk>
2200
2201 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
2202
a36f1680
JW
22032004-10-28 Will <will@glozer.net>
2204
2205 * macterm.c: allow user to assign key modifiers to the Mac Option
2206 key via a 'mac-option-modifier' variable.
2207
32e2fb04 22082004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
2209
2210 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
2211 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
2212 (x_handle_selection_request, x_handle_selection_clear)
2213 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
2214
4f71c13f
RS
22152004-10-28 Richard M. Stallman <rms@gnu.org>
2216
2217 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
2218
2219 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
2220
068f3848
SM
22212004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
2222
2223 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
2224 comment-starter over a 1-char one.
2225
4660a9e3
RS
22262004-10-27 Richard M. Stallman <rms@gnu.org>
2227
2228 * xdisp.c (get_next_display_element): In mode lines,
2229 treat newline and tab like other control characters.
2230
2231 * editfns.c (Fmessage): Doc fix.
2232
2233 * indent.c (vmotion): When moving up, check the newline before.
2234 Make prevline an int, not a Lisp_Object.
2235
233f3db6
KS
22362004-10-27 Kim F. Storm <storm@cua.dk>
2237
2238 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
2239 Only allocate info and discarded tables once.
2240
2241 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
2242 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
2243 (SAFE_FREE): Test it to determine if we need to unwind to free.
2244 Remove size arg. All users changed.
2245 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
2246
1442465d
JD
22472004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2248
2249 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
2250 (xg_destroy_widgets): Rename from remove_from_container.
2251 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
2252 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
2253 instead of remove_from_container.
2254 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
2255 (free_frame_tool_bar): Add comment.
2256
2257 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
2258 is not NULL before strcmp.
2259
c8636435
KS
22602004-10-26 Kim F. Storm <storm@cua.dk>
2261
2262 * callint.c (Fcall_interactively): Add 'U' code to get the
2263 up-event discarded by a previous 'k' or 'K' argument.
2264
5629f29b
DK
22652004-10-26 David Kastrup <dak@gnu.org>
2266
2267 * buffer.c (syms_of_buffer): Fix a few typos.
2268
4f2f546e
JD
22692004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2270
2271 * xsmfns.c: Put empty line between comment and function body.
2272 Use two spaces before comment end.
2273
fc1062f5
KH
22742004-10-25 Kenichi Handa <handa@m17n.org>
2275
2276 * fontset.c (fontset_pattern_regexp): Optimize for the case that
2277 PATTERN is full XLFD.
2278
be13f5e5
KH
22792004-10-24 Kenichi Handa <handa@m17n.org>
2280
2281 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
2282
2283 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
2284 (regex_compile): Return REG_ERANGEX if appropriate.
2285
d0ee2ed3
KH
22862004-10-22 Kenichi Handa <handa@m17n.org>
2287
2288 * editfns.c (Ftranslate_region_internal): New function.
2289 (syms_of_editfns): Defsubr it.
2290
63ea8ea5
JD
22912004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2292
2293 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
2294
c27ed90a
JD
22952004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
2296
068f3848
SM
2297 * xterm.h (x_output): New member `xic_base_fontname'.
2298 (FRAME_XIC_BASE_FONTNAME): New macro.
2299 (xic_free_xfontset): Declare.
c27ed90a 2300
068f3848
SM
2301 * xfns.c (xic_create_xfontset): Share fontsets between frames
2302 based on base_fontname.
2303 (xic_free_xfontset): New function.
2304 (free_frame_xic): Use it.
2305 (xic_set_xfontset): Ditto.
c27ed90a 2306
068f3848 2307 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
2308
2309
59508699
JR
23102004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
2311
2312 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
2313
dede2792
JD
23142004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2315
3aca2078
JD
2316 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
2317 XSync.
2318
dede2792
JD
2319 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
2320 New variables and constant.
2321 (main): Calculate heap_bss_diff. If we are dumping and the
2322 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
2323 and exec ourself again.
2324 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
2325 print a warning.
2326
2327 * lastfile.c: Make my_endbss and my_endbss_static available on all
2328 platforms.
2329
2330 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
2331 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
2332
1dc5ba01
LT
23332004-10-19 Luc Teirlinck <teirllm@auburn.edu>
2334
2335 * data.c (Flocal_variable_if_set_p): Doc fix.
2336
950090be
JR
23372004-10-19 Jason Rumney <jasonr@gnu.org>
2338
2339 * w32.c (init_environment): Set emacs_dir correctly when running
2340 emacs from the build directory.
2341
8550b998
RS
23422004-10-19 Richard M. Stallman <rms@gnu.org>
2343
2344 * editfns.c (Fdelete_and_extract_region):
2345 If region is empty, return null string.
2346
08dedea6
JD
23472004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2348
1dc5ba01 2349 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 2350 and canon_width.
068f3848 2351 (xg_frame_cleared): Remove.
08dedea6 2352
068f3848
SM
2353 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
2354 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
2355 (xg_create_scroll_bar): Put an event box widget between
2356 the scroll bar widget and the edit widget.
2357 (xg_show_scroll_bar): Show the parent widget (the event box).
2358 (xg_remove_scroll_bar): Destroy parent (the event box) also.
2359 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
2360 Move the parent (the event box) widget inside the fixed widget.
2361 Move window clear to xterm.c.
2362
068f3848 2363 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 2364
08dedea6 2365 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
2366 (x_scroll_bar_create, XTset_vertical_scroll_bar):
2367 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
2368 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
2369
8550b998 23702004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
2371
2372 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 2373
84338890
JD
23742004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2375
2376 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
2377 gdk_window_clear and move gdk_window_process_all_updates after
2378 clear so events are sent to the X server in correct order.
2379
6e1b0d8c
KH
23802004-10-18 Kenichi Handa <handa@m17n.org>
2381
2382 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
2383 comparing font names.
8550b998 2384 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
2385 (list_fontsets): Likewise.
2386
2387 * search.c (fast_string_match_ignore_case): New function.
2388
2389 * lisp.h (fast_string_match_ignore_case): Extern it.
2390
345e75a8
KS
23912004-10-17 Kim F. Storm <storm@cua.dk>
2392
2393 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
2394 than bitmap if there is not left fringe.
2395 (get_overlay_arrow_glyph_row): Also used on windows system.
2396 (display_line): Display overlay string if no left fringe.
2397
be13cbb7
JR
23982004-10-16 Jason Rumney <jasonr@gnu.org>
2399
2400 * w32fns.c (w32_font_match): Encode font name being matched.
2401
c2e2ede7
RS
24022004-10-16 Richard M. Stallman <rms@gnu.org>
2403
2404 * window.c (Fspecial_display_p): Doc fix.
2405
043f7f73 24062004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
2407
2408 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
2409 Don't ignore menus, because where-is-internal already does it for us.
2410
699a0392
KS
24112004-10-15 Kim F. Storm <storm@cua.dk>
2412
b3c7a89b
KS
2413 * xdisp.c (redisplay_window): Only update fringes and vertical
2414 border on window frames.
699a0392 2415
4e382b0f
AS
24162004-10-14 Andreas Schwab <schwab@suse.de>
2417
2418 * m/ia64.h (DATA_SEG_BITS): Don't define.
2419
329a7be2
KS
24202004-10-14 Kim F. Storm <storm@cua.dk>
2421
2422 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 2423 in some X versions.
329a7be2 2424
982241b1
SM
24252004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
2426
2427 * fns.c (map_char_table): Add missing gcpros.
2428
9238467d
SM
24292004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
2430
2431 * keymap.c (get_keymap): An autoload form is not a keymap.
2432
2433 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
2434
4440e3ca
KS
24352004-10-13 Kim F. Storm <storm@cua.dk>
2436
7cfdabde
KS
2437 * callproc.c (Fcall_process): Simplify handling of display arg.
2438 Resume `display_on_the_fly' once a coding system is determined.
2439
4440e3ca
KS
2440 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
2441
1c8dec6a
KS
24422004-10-12 Kim F. Storm <storm@cua.dk>
2443
2444 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
2445 caller, such as call-process, is not going to poll for input.
2446 (calc_line_height_property): Handle case where it->object is nil.
2447
2448 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
2449
170b174c
KH
24502004-10-12 Kenichi Handa <handa@m17n.org>
2451
9238467d
SM
2452 * xdisp.c (get_next_display_element):
2453 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
2454 chars in octal in unibyte buffer.
2455
b583964c
KS
24562004-10-12 Kim F. Storm <storm@cua.dk>
2457
2458 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
2459 are no ordinary bindings.
2460
29fabd8c
JD
24612004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2462
9238467d 2463 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 2464
c3f4c690
ST
24652004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2466
9238467d
SM
2467 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
2468 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 2469 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
2470 terminal frame.
2471 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
2472 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
2473 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
2474 Make a cancel file-open dialog be like C-g.
9238467d
SM
2475 * mac.c (mktime): Use emacs_mktime.
2476 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
2477 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 2478
9688f9eb
KS
24792004-10-10 Kim F. Storm <storm@cua.dk>
2480
2481 * keyboard.c (timer_resume_idle): New function to resume idle
2482 timer without resetting timers on the idle list.
2483 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
2484 (timer_start_idle, timer_stop_idle): Declare static.
2485 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
2486
2487 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
2488
f7f3a65f
ST
24892004-10-08 Steven Tamm <steventamm@mac.com>
2490
9238467d 2491 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 2492 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 2493 NULL where 0 should be used.
f7f3a65f
ST
2494 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
2495 objc/malloc.h
9238467d 2496 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 2497
3c7d999a
KS
24982004-10-07 Kim F. Storm <storm@cua.dk>
2499
2500 * xdisp.c (redisplay_window): Fix flicker on vertical line between
2501 windows. Update vertical line after drawing window fringes, but
2502 only if actually drawing any bitmaps--or there is no fringe.
2503
2504 * xterm.c (x_update_window_end): Likewise.
2505 * macterm.c (x_update_window_end): Likewise.
2506 * w32term.c (x_update_window_end): Likewise.
2507
2508 * fringe.c (draw_window_fringes): Return value now indicates if
2509 any fringe bitmaps were redrawn (or there are no fringes).
2510
2511 * dispextern.h (draw_window_fringes): Update prototype.
2512
bf06c82f
ST
25132004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2514
2515 * macfns.c (mac_get_window_bounds): Add extern.
2516 (x_real_positions): Use mac_get_window_bounds.
2517
2518 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
2519 xmenu.c (YAILOM).
3c7d999a 2520
bf06c82f
ST
2521 * macterm.c [!MAC_OSX]: Include Windows.h.
2522 (front_emacs_window): Rename from mac_front_window. All uses
2523 changed. Return the frontmost non-tooltip emacs window.
2524 (mac_get_window_bounds): New function.
2525 (x_calc_absolute_position): Use the difference of width and height
2526 between the inner and outer window.
2527 (x_set_offset): Specify window position by the coordinae of the
2528 outer window. Adjust the position if the title bar is completely
2529 outside the screen.
2530 (app_is_suspended, app_sleep_time): Remove unused variables.
2531 (do_app_resume, do_app_suspend): Remove their contents because
2532 window-activate/deactivate events will do the job.
2533 (do_zoom_window): Remove unused variables. Make compliant to the
2534 standard way of zooming. Set f->left_pos and f->top_pos.
2535 (XTread_socket): Don't use argument `expected'. Don't use
2536 FrontWindow to determine the clicked window. Exclude unprocessed
2537 mouseUp cases in the early stage. Add parentheses to fix operator
2538 precedence.
2539 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
2540
4cbbf6b7 25412004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
2542
2543 * config.in: Regenerate.
2544
2545 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
2546 HAVE_EXECSHIELD.
2547
b90ee8b5
JD
25482004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2549
2550 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
2551 a row if Alt or Meta has been found for that row. Also stop scanning
2552 for Keysyms for that row.
2553
904db1a2
KS
25542004-10-04 Kim F. Storm <storm@cua.dk>
2555
0207b8ad
KS
2556 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
2557 to list. Include overlay arrow bitmap in return value.
2558
25f7220c
KS
2559 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
2560 bars with fractional column width. If scroll bar separates two
2561 windows, move it towards the window it belongs to. Only update
2562 the padding area below the scroll bar widget when necessary,
2563 i.e. when scroll bar widget is created, moved, or resized.
2564
562020fe
KS
2565 * xdisp.c (define_frame_cursor1): Do not change frame cursor
2566 while tracking/dragging mouse.
2567 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
2568
37e34af7
KS
2569 * window.c (coordinates_in_window): Relax check for cursor
2570 on vertial border between mode lines.
2571 (Fset_window_fringes): Do not allow negative widths.
2572 (Fset_window_scroll_bars): Likewise.
2573
904db1a2
KS
2574 * .gdbinit (pp): Shorthand for p ARG + pr.
2575 (ff): New command: flush frame updates (X only).
2576
38fe4f64
MA
25772004-10-03 Michael Albinus <michael.albinus@gmx.de>
2578
2579 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
2580
9de36315
KH
25812004-09-30 Kenichi Handa <handa@m17n.org>
2582
07c381ad 2583 * process.c (send_process): Free composition data.
9de36315 2584
07c381ad 2585 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
2586
2587 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
2588 compositions to encode.
2589 (encode_coding_string): Likewise. Free composition data.
2590
b6189c3b 25912004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
2592
2593 * coding.c (code_convert_region): Free composition data.
9de36315 2594
f2a54fbc
KS
25952004-09-29 Kim F. Storm <storm@cua.dk>
2596
dc5d6435
KS
2597 * fringe.c: Remove limit on number of bitmaps.
2598 (fringe_bitmaps, fringe_faces): Change to pointers.
2599 (max_fringe_bitmaps): New var.
2600 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
2601 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
2602
2603 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
2604 (struct glyph_row): Reorder fringe_bitmap related fields.
2605 (struct it): Likewise.
2606
2607 * w32term.c (fringe_bmp): Change to pointer.
2608 (max_fringe_bmp): New var.
2609 (w32_define_fringe_bitmap): Expand fringe_bmp.
2610 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
2611 (w32_destroy_fringe_bitmap): Likewise.
2612
26132004-09-29 Kim F. Storm <storm@cua.dk>
2614
2615 * fringe.c: Simplify last change.
f2a54fbc
KS
2616 (lookup_fringe_bitmap): New function.
2617 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
2618 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
2619 Keep standard bitmaps in Vfringe_bitmaps.
2620 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
2621 (Fset_fringe_bitmap_face): Likewise.
2622
2623 * dispextern.h (lookup_fringe_bitmap): Add prototype.
2624 (valid_fringe_bitmap_p): Remove prototype.
2625
2626 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
2627
841a8bca
KS
26282004-09-29 Kim F. Storm <storm@cua.dk>
2629
1f2da365
KS
2630 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
2631 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
2632
841a8bca
KS
2633 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
2634
2635 * fringe.c (Vfringe_bitmaps): New variable.
2636 (syms_of_fringe): DEFVAR_LISP it.
2637 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
2638 Change arg to Lisp_Object and fail if not an integer.
2639 (get_fringe_bitmap_name, resolve_fringe_bitmap)
2640 (destroy_fringe_bitmap): New functions.
9238467d
SM
2641 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
2642 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
2643 clear its fringe property.
2644 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
2645 Fdestroy_fringe_bitmap.
2646 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
2647 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
2648 and set fringe property. Signal error if no free slots.
2649 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
2650 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
2651
2652 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
2653 symbols with a fringe property.
2654
4d965590
KS
26552004-09-27 Kim F. Storm <storm@cua.dk>
2656
2657 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
2658 Doc fix. Format may now be a symbol or alist, not a cons.
2659
2660 * fringe.c (update_window_fringes): Handle new formats of
2661 indicate-buffer-boundaries (symbol or alist). No longer
2662 allow a simple cons.
2663 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
2664
e888c2b3
JD
26652004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2666
9238467d 2667 * config.in: Rebuild.
e888c2b3 2668
83f1cb94
JD
26692004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2670
2671 * config.in: Rebuild.
2672
dd3b1d60 2673 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 2674
2c51754c
SM
26752004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
2676
2677 * xterm.c (x_term_init): Work around a bug in some X servers.
2678
3df5f8aa
RS
26792004-09-18 Richard M. Stallman <rms@gnu.org>
2680
557ca2c1
RS
2681 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
2682
3df5f8aa
RS
2683 * xdisp.c (try_window_reusing_current_matrix):
2684 Handle the case where we reach the old displayed text,
2685 out of sync with the old line boundary.
2686
9238467d 26872004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
2688
2689 * fileio.c (Finsert_file_contents): Fix case of replacement in a
2690 narrowed buffer.
2691
bfa02563
KS
26922004-09-14 Kim F. Storm <storm@cua.dk>
2693
a25fe164
KS
2694 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
2695
bfa02563
KS
2696 * xfaces.c (Qface_no_inherit): New var.
2697 (syms_of_xfaces): Intern and staticpro it.
2698 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
2699 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
2700 Don't increment face_change_count when face has non-nil
2701 face-no-inherit property.
2702
126f9c02
SM
27032004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
2704
892a8eb5
SM
2705 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
2706 (Fbyte_code): Remove dead code after `wrong_type_argument'.
2707
126f9c02 2708 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 2709 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 2710
c0ad3b38
KS
27112004-09-12 Kim F. Storm <storm@cua.dk>
2712
2713 * editfns.c (Fformat): Handle format strings with multiple text
2714 properties. Reverse text property list from the format string,
2715 so the positions are in increasing order.
2716
844fc085
JD
27172004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2718
2719 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
2720 x_uncatch_errors so that possible protocol errors are delivered.
2721
b106731c
EZ
27222004-09-10 Eli Zaretskii <eliz@gnu.org>
2723
21065c92
EZ
2724 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
2725 blockinput.h.
2726 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
2727 charset.h, and coding.h
9238467d 2728 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
2729 (term.o): Depend on window.h and keymap.h.
2730 (abbrev.o): Depend on syntax.h.
2731 (callint.o): Depend on keymap.h.
2732 (casefiddle.o): Depend on charset.h and keymap.h.
2733 (category.o): Depend on keymap.h.
2734 (coding.o): Depend on dispextern.h.
2735 (cmds.o): Depend on keyboard.h and keymap.h.
2736 (dispnew.o): Depend on indent.h and intervals.h.
2737 (doc.o): Depend on keymap.h.
2738 (editfns.o): Depend on frame.h.
2739 (emacs.o): Depend on dispextern.h.
2740 (fileio.o): Don't depend on ccl.h.
2741 (filelock.o): Depend on charset.h and coding.h.
2742 (frame.o): Depend on w32term.h and macterm.h.
2743 (insdel.o): Depend on region-cache.h.
2744 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
2745 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
2746 (search.o): Depend on $(INTERVALS_SRC).
2747 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
2748 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
2749 xterm.h, w32term.h, and macterm.h.
2750 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
2751 w32term.h, and macterm.h.
2752 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
2753 region-cache.h, xterm.h, w32term.h, and macterm.h.
2754 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
2755 (data.o): Depend on frame.h.
2756 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
2757 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
2758 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
2759 (intervals.o): Depend on keymap.h.
2760
9238467d
SM
2761 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
2762 Add debugging print-out to termscript.
b106731c 2763
64b7122d
RS
27642004-09-09 Richard M. Stallman <rms@gnu.org>
2765
2766 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
2767
5670531e
RS
27682004-09-08 Richard M. Stallman <rms@gnu.org>
2769
6cb4a892
RS
2770 * window.c (Fset_window_buffer): Doc fix.
2771
5670531e
RS
2772 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
2773
7e388eb7
JL
27742004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
2775
2776 * minibuf.c (history_delete_duplicates): New variable.
2777 (read_minibuf): Use it.
2778 (syms_of_minibuf): Create the corresponding lisp variable.
2779
370e3587
KS
27802004-09-08 Kim F. Storm <storm@cua.dk>
2781
2782 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
2783 overlay just before point.
2784
f844ba4e
LT
27852004-09-07 Luc Teirlinck <teirllm@auburn.edu>
2786
2787 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
2788 * buffer.c (reset_buffer, init_buffer_once):
2789 Handle auto_save_file_format field.
f844ba4e
LT
2790 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
2791 `buffer-auto-save-file-format'.
f844ba4e
LT
2792 * fileio.c: Delete declaration for removed Vauto_save_file_format.
2793 (build_annotations): Adapt to replacement of
2794 `auto-save-file-format' with the new buffer-local variable
2795 `buffer-auto-save-file-format'.
2796 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
2797
f0f90717
JR
27982004-09-07 Jason Rumney <jasonr@gnu.org>
2799
2800 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
2801
9238467d
SM
2802 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
2803 Handle Unicode menu titles.
f0f90717 2804
4e14f66c
KS
28052004-09-07 Kim F. Storm <storm@cua.dk>
2806
2807 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
2808 property from text property or overlay strings at point.
2809
9238467d 28102004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
2811
2812 * xmenu.c (update_submenu_strings): YAILOM.
2813 (set_frame_menubar): Make sure last_i is initialized.
2814
1f06d367
JR
28152004-09-03 Jason Rumney <jasonr@gnu.org>
2816
1806714a 2817 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
2818 (digest_single_submenu): Set lname and lkey in widget_value
2819 instead of name and key.
2820 (update_submenu_strings): New function.
2821 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2822 call update_submenu_strings.
2823
2824 * w32menu.c (globals_of_w32menu): Check for Unicode API.
2825 (digest_single_submenu, w32_menu_show): Encode menu strings as
2826 UTF-8 if Unicode API is available.
2827 (utf8to16): New function.
2828 (add_menu_item): Use it when calling Unicode API.
1806714a 2829
46540080
KS
28302004-09-03 Kim F. Storm <storm@cua.dk>
2831
2832 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
2833 in overlay or text-property strings; set cursor on corresponding
2834 glyph rather than at end of the string.
2835
9277ba61 28362004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 2837
9277ba61 2838 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
2839 set a new one before obtaining the global coordinate.
2840 Use FRAME_MAC_WINDOW.
2841 (x_set_name, x_set_title): Encode title to UTF8.
2842 Use SetWindowTitleWithCFString.
9277ba61
ST
2843 (Fx_server_version): Get correct OS version.
2844
1806714a
SM
2845 * macmenu.c (add_menu_item): Remove unused variable `i'.
2846 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
2847
2848 * macterm.c (x_update_end): Move SetPortWindowPort to inside
2849 BLOCK_INPUT.
2850 (x_set_offset): Use FRAME_MAC_WINDOW.
2851
2852 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
2853 nontext_cursor if it is on a scroll bar.
2854
2855 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
2856 Carbon support.
1806714a
SM
2857 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
2858 Use LIBS_CARBON.
9277ba61 2859
b10daec7
JD
28602004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2861
2862 * xfns.c (x_set_name_internal): New function. Check if we shall call
2863 xfree before ENCODE_UTF_8.
2864 (x_set_name, x_set_title): Call x_set_name_internal.
2865
f7e22385
JR
28662004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
2867
2868 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
2869 reload it.
2870
2bf436c3
JD
28712004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2872
1806714a 2873 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
2874 (single_submenu): Set lname and lkey in widget_value
2875 instead of name and key.
2876 (update_submenu_strings): New function.
2877 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2878 call update_submenu_strings.
2879
2bf436c3
JD
2880 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
2881 instead of name and key.
2882 (update_submenu_strings): New function.
2883 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 2884 call update_submenu_strings.
2bf436c3
JD
2885
2886 * gtkutil.h (_widget_value): Added lname and lkey.
2887
11715f92
ST
28882004-08-30 Steven Tamm <steventamm@mac.com>
2889
2890 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
2891 by using different names for inner loop variables.
2892
5500be54
JD
28932004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2894
059cd329
JD
2895 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
2896 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
2897
5500be54
JD
2898 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
2899 tool bar items is 0.
2900
383418e5
ST
29012004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2902
2903 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
2904 strings in menu items.
2905 (single_submenu): Use ENCODE_MENU_STRING
2906 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
2907 button release isn't passed to event loop
2908 (add_menu_item): Use SetMenuItemWithCFString
2909
6eb3ee72
ST
29102004-08-26 Steven Tamm <steventamm@mac.com>
2911
2912 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
2913 tool-bar/menu click
2914 * macfns.c (Fx_file_dialog): Implemented using NavServices
2915
10b43ac3
JD
29162004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2917
2728b5d0
JD
2918 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
2919
10b43ac3
JD
2920 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2921 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2922 (x_top_window_to_frame): Return 0 if wdesc is None.
2923
2ee3b79e
RS
29242004-08-22 Richard M. Stallman <rms@gnu.org>
2925
2926 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
2927 HAVE_TERMIOS]: If there's no char for this signal, drop through
2928 and use system calls.
2929
2930 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
2931
9a1ba2ea
KS
29322004-08-20 Kim F. Storm <storm@cua.dk>
2933
2934 * process.c (wait_reading_process_output): Rename from
2935 wait_reading_process_input. All uses changed.
2936 (wait_reading_process_output_1): Rename from
2937 wait_reading_process_input_1. All uses changed.
2938
2939 * dispnew.c (Fsleep_for): Remove obsolete code.
2940
295f3b30
KH
29412004-08-20 Kenichi Handa <handa@m17n.org>
2942
2943 * syntax.c (skip_chars): Fix for unibyte case.
2944
27615979
SM
29452004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2946
2947 * syntax.c (char_quoted): Mixup byte/char pos.
2948 (back_comment): Fixup globals in all cases.
2949
00267f94
JD
29502004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2951
2952 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
2953 passing it to gtk_window_set_title.
2954
2439909e
KS
29552004-08-19 Kim F. Storm <storm@cua.dk>
2956
6ba0f14c
KS
2957 * process.c (wait_reading_process_input): Clean up.
2958 Add wait_for_cell, wait_proc, and just_wait_proc args
2959 to avoid overloading `read_kbd' and `do_display' args.
2960 Change read_kbd arg to int. All callers changed.
2961
2439909e
KS
2962 * process.c (process_send_signal): Use CDISABLE.
2963
2964 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
2965
101c421e
KS
29662004-08-18 Kim F. Storm <storm@cua.dk>
2967
2968 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
2969 forward to wait_reading_process_input via DO_DISPLAY arg.
2970 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
2971 object, only process output from that process; also inhibit
2972 running timers if DO_DISPLAY==-2.
2973
c438dc33
KS
29742004-08-17 Kim F. Storm <storm@cua.dk>
2975
2976 * process.c (process_send_signal): Fix last change--use
2977 _POSIX_VDISABLE instead of CVDISABLE when available.
2978
8afc13c6
RS
29792004-08-16 Richard M. Stallman <rms@gnu.org>
2980
2981 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
2982 Set VQUIT and VINTR chars to the standard ones if they are unset.
2983 [AIX]: Don't do that here. And don't force VINTR to standard
2984 when SIGNALS_VIA_CHARACTERS.
2985
c438dc33 2986 * process.c (process_send_signal)
8afc13c6
RS
2987 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
2988 Do nothing if the character is CVDISABLE.
2989
2990 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
2991
c438dc33 2992 * intervals.c (move_if_not_intangible):
8afc13c6
RS
2993 Force POSITION to be between BEGV and ZV.
2994
6dad1714
JPW
29952004-08-14 John Paul Wallington <jpw@gnu.org>
2996
2997 * buffer.c (Frestore_buffer_modified_p): Doc fix.
2998
2999 * fileio.c (Fread_file_name): Doc fix.
3000
3001 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
3002
2bd77330
LT
30032004-08-09 Luc Teirlinck <teirllm@auburn.edu>
3004
3005 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
3006
c90e7e43
LT
30072004-08-08 Luc Teirlinck <teirllm@auburn.edu>
3008
3009 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 3010 Qdisabled_command_hook.
c90e7e43 3011 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 3012 Qdisabled_command_hook.
c90e7e43
LT
3013 (syms_of_keyboard): Ditto.
3014
81909a1a
LT
30152004-08-07 Luc Teirlinck <teirllm@auburn.edu>
3016
3017 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
3018 (syms_of_keymap) <key-translation-map>: Doc fixes.
3019
0cedd530
SM
30202004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
3021
1725a7c9
SM
3022 * window.c (window_list_1): YAILOM.
3023
0cedd530
SM
3024 * fileio.c (make_temp_name): Handle multibyte prefixes.
3025
2515a131
LT
30262004-08-06 Luc Teirlinck <teirllm@auburn.edu>
3027
3028 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
3029 Doc fix.
3030
c8b20fb7
KH
30312004-08-03 Kenichi Handa <handa@m17n.org>
3032
3033 * coding.c (decode_coding_string): Adjust coding->consumed, and
3034 etc. with shrinked_bytes.
3035
fb8b092b
KS
30362004-08-03 Kim F. Storm <storm@cua.dk>
3037
3038 * indent.c (compute_motion): Fix check for full width window
3039 in non-window case. Do not count left truncation glyph on
3040 window systems.
3041
df133612
LT
30422004-08-02 Luc Teirlinck <teirllm@auburn.edu>
3043
3044 * data.c (Finteractive_form): Doc fix.
3045
0f7a93c1
KS
30462004-08-02 Kim F. Storm <storm@cua.dk>
3047
3048 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
3049 properly accounting for continuation glyph on non-window systems.
3050 (Fcompute_motion): Use actual window width if WIDTH is nil, and
3051 actual window width/height if TOPOS is nil, properly accounting for
3052 continuation glyphs on non-window systems, and optional header lines.
3053 (vmotion): Let compute_motion calculate actual window width.
3054
3055 * window.c (window_scroll_line_based): Let compute_motion
3056 calculate actual window width.
3057
f491e1ed
KS
30582004-08-02 Kim F. Storm <storm@cua.dk>
3059
3060 * process.c (read_process_output): Use whole read buffer.
3061 Don't trigger adaptive read buffering on errors.
3062
83f64226
LT
30632004-07-31 Luc Teirlinck <teirllm@auburn.edu>
3064
3065 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
3066
3067 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
3068
3069 * callint.c (Fcall_interactively): Doc fix.
3070
8afc13c6
RS
30712004-07-30 Richard M. Stallman <rms@gnu.org>
3072
3073 * abbrev.c (Fexpand_abbrev): Undo previous change.
3074
7c111482
KS
30752004-07-30 Kim F. Storm <storm@cua.dk>
3076
3077 * editfns.c (Fformat): Allocate extra (dummy) element in info.
3078
ee945d08
LT
30792004-07-28 Luc Teirlinck <teirllm@auburn.edu>
3080
3081 * eval.c (Fdefvar, Fdefconst): Doc fixes.
3082
3f911c94
KS
30832004-07-27 Kim F. Storm <storm@cua.dk>
3084
3085 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
3086 we have ensured that the glyph fits on the current line (or returned
3087 MOVE_LINE_CONTINUED otherwise).
3088
f29ff8c7
KS
30892004-07-26 Kim F. Storm <storm@cua.dk>
3090
3091 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
3092 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
3093 if target position is at end of display line but char is not a newline.
3094
81159bb9
RS
30952004-07-25 Richard M. Stallman <rms@gnu.org>
3096
ab431b61
RS
3097 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
3098 instead of ON_VERTICAL_BORDER, when on scroll bar.
3099 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
3100
3101 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
3102
f29ff8c7 3103 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
3104 Take account of FRAME_INTERNAL_BORDER_WIDTH.
3105
3106 * alloc.c (check_cons_list): New function (contents commented out).
3107
fc820cc5
LT
31082004-07-24 Luc Teirlinck <teirllm@auburn.edu>
3109
3110 * xfaces.c (Fcolor_supported_p): Doc fix.
3111
3112 * frame.c (Fselect_frame, Fset_frame_selected_window)
3113 (Fframe_visible_p, Fraise_frame): Doc fixes.
3114
289978b5
LT
31152004-07-24 Richard M. Stallman <rms@gnu.org>
3116
78819ebb 3117 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
3118
3119 * fileio.c (Fwrite_region): Doc fix.
3120
3121 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
3122
3123 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
3124 only when a real abbrev is present.
3125
289978b5
LT
3126 * xfns.c (x_icon_verify): New function.
3127 (Fx_create_frame): Use it.
3128
63cc10ae
KS
31292004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
3130
3131 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
3132
36f826d4
KS
31332004-07-21 Kim F. Storm <storm@cua.dk>
3134
3135 * window.h (struct glyph_matrix): New members nrows_scale_factor
3136 and ncols_scale_factor.
3137
3138 * window.c (make_window): Initialize nrows_scale_factor and
3139 ncols_scale_factor members.
3140
3141 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
3142 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
3143 (required_matrix_height): Apply nrows_scale_factor.
3144 (required_matrix_width): Apply ncols_scale_factor.
3145
3146 * xdisp.c (display_line): Increment nrows_scale_factor and set
3147 fonts_changed_p if past last allocated row.
3148 (append_glyph, append_composite_glyph, produce_image_glyph)
3149 (append_stretch_glyph): Increment ncols_scale_factor and set
3150 fonts_changed_p if current area is full.
3151
5fc1c546
JD
31522004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3153
3154 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
3155
cb7516e5
LT
31562004-07-19 Luc Teirlinck <teirllm@auburn.edu>
3157
3158 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
3159 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
3160 (Fset_window_start, Fscroll_up, Fscroll_down)
3161 (Fother_window_for_scrolling, Fscroll_other_window)
3162 (Fsave_window_excursion, Fset_window_vscroll)
3163 (syms_of_window) <window-size-fixed>: Doc fixes.
3164
b6189c3b 31652004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
3166
3167 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
3168 ENCODE_SYSTEM for filenames.
3169
bfcf6608
ST
31702004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3171
3172 * mac.c (sys_select): Block input around call to
3173 ReceiveNextEvent to prevent breakage. Correctly handle
3174 blocking on event queue only by calling ReceiveNextEvent
3175 instead of select (since GUI events aren't on an fd).
3176 (sys_read): Remove function
3177 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
3178
e082ac9d
ST
31792004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3180
3181 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 3182 polling instead of 1 sec timeouts (like solaris).
e082ac9d 3183
cb7516e5 3184 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
3185 frame creation.
3186
3187 * keyboard.c: Undef SIGIO on Carbon
3188
3189 * atimer.c (alarm_signal_handler): Call alarm handlers after
3190 scheduling.
3191
3192 * eval.c (Feval): Remove quit_char test
3193
3194 * process.c (wait_reading_process_input): Remove clearing
3195 stdin for select call on process input.
3196
4b9da0fb
LT
31972004-07-18 Luc Teirlinck <teirllm@auburn.edu>
3198
1204e81c
LT
3199 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
3200 capitalization error in docstring.
4b9da0fb 3201
26503ad2
JB
32022004-07-17 Juanma Barranquero <lektu@terra.es>
3203
3204 * keyboard.c (not_single_kboard_state): Do nothing unless
3205 MULTI_KBOARD is defined.
3206
3751eb00
RS
32072004-07-17 Richard M. Stallman <rms@gnu.org>
3208
3209 * window.c (coordinates_in_window): Inside the window but outside
3210 its box to the L or R, return ON_VERTICAL_BORDER.
3211 (window_list_1): Rotate the list to start with WINDOW.
3212
3213 * print.c (print_preprocess): Test for print_depth at limit
3214 before entering in being_printed.
3215
3216 * keyboard.c (not_single_kboard_state): New function.
3217 (stuff_buffered_input): Now no-op only if no SIGTSTP.
3218
3219 * frame.c (Fdelete_frame): If we're in single_bboard_state on
3220 this kboard, and we delete its last frame, go to any_kboard_state.
3221
3222 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
3223
b6189c3b 32242004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
3225
3226 * w32fns.c (Fx_file_dialog): Encode strings in system coding
3227 system before passing them to OS functions for display.
3228
0f6af254
DK
32292004-07-15 David Kastrup <dak@gnu.org>
3230
f9253326
KS
3231 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
3232 Apparently fixes an abort condition.
0f6af254 3233
386c8f42
LT
32342004-07-14 Luc Teirlinck <teirllm@auburn.edu>
3235
3236 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
3237 instead of a cons.
3238
366511da
MB
32392004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
3240
3241 * keyboard.c (echo_dash): Do nothing if there already is a dash
3242 at the end of the echo string.
3243
f85409d3
KS
32442004-07-12 Kim F. Storm <storm@cua.dk>
3245
3246 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
3247 if GC_MARK_STACK.
3248
0ba2e87b
LT
32492004-07-10 Luc Teirlinck <teirllm@auburn.edu>
3250
da38045d
LT
3251 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
3252
0ba2e87b
LT
3253 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
3254 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
3255 (Freplace_buffer_in_windows, Fset_window_buffer)
3256 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
3257 (syms_of_window): Expand docstring of `display-buffer-function'.
3258
5668fbb8
LT
32592004-07-09 Luc Teirlinck <teirllm@auburn.edu>
3260
3261 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
3262 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
3263 that time values of the type (HIGH . LOW) are considered obsolete.
3264
a085bf9d
LT
32652004-07-06 Luc Teirlinck <teirllm@auburn.edu>
3266
669de2fb
LT
3267 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
3268 docstring.
3269
bac66325 3270 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 3271
8e975df9
JPW
32722004-07-06 John Paul Wallington <jpw@gnu.org>
3273
3274 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
3275
fa164e6a
JPW
3276 * fns.c (Fclear_string): Signal an error if STRING is not a string.
3277
2bac9bb1
JD
32782004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3279
3280 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
3281 instead of CGMainDisplayID (only in OSX 10.2 and later).
3282
316ef0dc
JPW
32832004-07-04 John Paul Wallington <jpw@gnu.org>
3284
3285 * fileio.c (read_file_name_completion_ignore_case): New variable.
3286 (syms_of_fileio): Declare and initialise it.
3287 (Fread_file_name): Bind `completion-ignore-case' to respect it.
3288
2a1a35c6
EZ
32892004-07-03 Eli Zaretskii <eliz@gnu.org>
3290
3291 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
3292 for event.x and event.y.
3293
33a72331
KH
32942004-07-01 Kenichi Handa <handa@m17n.org>
3295
3296 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
3297 after getting a new string by pre-write-conversion.
3298
9238467d 32992004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
3300
3301 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
3302 (x_calc_absolute_position): Remove unused var `child'.
3303
3304 * xfaces.c (x_supports_face_attributes_p)
3305 (Fdisplay_supports_face_attributes_p): YAILOM.
3306 (tty_supports_face_attributes_p): Remove unused var `i'.
3307
3308 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
3309 back_unibyte_ok.
3310
3311 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
3312
3313 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
3314
3315 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
3316
f96ec754
AS
33172004-06-30 Andreas Schwab <schwab@suse.de>
3318
3319 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
3320 (Finit_image_library): Pass LIBRARIES through to
3321 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
3322 (lookup_image_type): Pass Qnil as second argument to
3323 Finit_image_library.
3324
78819ebb 3325 * lisp.h (Finit_image_library): Declare.
f96ec754 3326
59feca74 33272004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 3328
31983645
AS
3329 * macterm.c (do_window_activate, do_window_deactivate): Remove.
3330 (XTread_socket): Send mouse button events to the toolbox
3331 dispatcher even when the mouse is grabbed. Don't process window
3332 activate events for non-Emacs windows. Replace function calls to
3333 do_window_activate and do_window_deactivate with their contents.
3334 Reset mouse grabbing status when a window is deactivated.
59feca74 3335
c61278bb
ST
33362004-06-29 Steven Tamm <steventamm@mac.com>
3337
3338 * macterm.c (mac_get_emulated_btn)
3339 (mac_event_to_emacs_modifiers): Fix emulated mouse button
3340 support to correctly mask out modifiers.
3341
c3762cbd
DK
33422004-06-29 David Kastrup <dak@gnu.org>
3343
3344 * search.c (Fset_match_data): Allow buffer before end of list
3345 which can happen if set-match-data is using a pre-consed list.
3346
c61278bb 33472004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
3348
3349 * macterm.c (XTread_socket): Correctly set the frame position
3350 after the window is moved.
3351
74cdfe05
JD
33522004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3353
3354 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
3355 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
3356 (xg_get_image_for_pixmap): Add workaround for monochrome displays
3357 so insensitive and activated icons look ok.
74cdfe05 3358
ef544dc8
JR
33592004-06-27 Jason Rumney <jasonr@gnu.org>
3360
3361 * w32fns.c (file_dialog_callback): Disable edit control if set
3362 to directories only on CDN_INITDONE message.
3363 (Fx_file_dialog): Default to directories only when prompt starts
3364 with "Dired".
3365
7b7990cc
KS
33662004-06-25 Kim F. Storm <storm@cua.dk>
3367
3368 * alloc.c (allocate_misc): Update total_free_markers.
3369 (free_misc): New function.
3370 (safe_alloca_unwind, free_marker): Use it.
3371
3372 * lisp.h (free_misc): Add prototype.
3373
3374 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
3375
d8c379f8
RS
33762004-06-24 Richard M. Stallman <rms@gnu.org>
3377
3378 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
3379 (syms_of_emacs): Lisp variables deleted.
3380
559cdd07
DK
33812004-06-23 David Kastrup <dak@gnu.org>
3382
94939b84
DK
3383 * search.c (Freplace_match): Adjust the match-data more thoroughly
3384 when replacing strings in the buffer.
3385 (Fmatch_data): When INTEGERS is non-nil and the last match was in
3386 a buffer, add the buffer as last element to the match data.
3387 (Fset_match_data): If an additional element of the match-data is a
3388 buffer, restore it to last_thing_searched.
c8d09ad8 3389 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
3390 (restore_match_data): Restore it again.
3391
dce417e7
LT
33922004-06-23 Luc Teirlinck <teirllm@auburn.edu>
3393
3394 * keymap.c (Ftext_char_description): Doc fix.
3395 * doc.c (Fsnarf_documentation): Doc fix.
3396
ef54b2d0
KS
33972004-06-22 Kim F. Storm <storm@cua.dk>
3398
b5bc4d05
KS
3399 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
3400
ef54b2d0
KS
3401 * lisp.h (struct Lisp_Save_Value): New member dogc.
3402 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
3403 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
3404 (SAFE_FREE_LISP): New macro.
3405
3406 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
3407 (make_save_value): Init new dogc member.
3408 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
3409
3410 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
3411 SAFE_FREE_LISP macros.
3412
3d33d993
KS
34132004-06-22 Kim F. Storm <storm@cua.dk>
3414
3415 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
3416 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
3417 in that memory area are unknown to GC. Add comments.
3418
3419 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
3420
5c917f98
KS
34212004-06-21 Kim F. Storm <storm@cua.dk>
3422
3423 * lisp.h (MAX_ALLOCA): Define here.
3424 (safe_alloca_unwind): Add prototype.
3425 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
3426
3427 * alloc.c (safe_alloca_unwind): New function.
3428
3429 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
3430
3431 * charset.c (Fstring): Use SAFE_ALLOCA.
3432
3433 * coding.c (MAX_ALLOCA): Remove define.
3434
3435 * data.c (MAX_ALLOCA): Remove define.
3436 (Faset): Use SAFE_ALLOCA.
3437
3438 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
3439
3440 * fns.c (string_make_multibyte, string_to_multibyte)
3441 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
3442 (MAX_ALLOCA): Remove define.
3443 (Fbase64_encode_region, Fbase64_encode_string)
3444 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
3445 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
3446 memory leak if encoding fails.
3447
3448 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
3449
9a09408e
EZ
34502004-06-21 Eli Zaretskii <eliz@gnu.org>
3451
3452 * print.c (Fwith_output_to_temp_buffer): Doc fix.
3453
376de739
RS
34542004-06-20 Richard M. Stallman <rms@gnu.org>
3455
3456 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
3457
3458 * search.c (match_limit): Cleaner err msg when no match data available.
3459
3460 * window.c (syms_of_window): Doc fix.
3461
3462 * keyboard.c (command_loop_1): Handle values `only' and `identity'
3463 for Vtransient_mark_mode.
3464
3465 * buffer.c (syms_of_buffer): Doc fix.
3466
acd81db9
DK
34672004-06-21 David Kastrup <dak@gnu.org>
3468
3469 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
3470 and unbinding of `case-fold-search' according to
3471 `completion-ignore-case' around calls of string-match and
3472 predicates, respectively. Should give satisfactory performance
3473 in all relevant cases.
3474
f303762d
JD
34752004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3476
95911c74
JD
3477 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
3478 clip_x/y_origin.
3479
a6cb6b78
JD
3480 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
3481
f303762d
JD
3482 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
3483
3484 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
3485 on Mac OSX.
3486
bbdb2684
LT
34872004-06-16 Luc Teirlinck <teirllm@auburn.edu>
3488
3489 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
3490
5ea48b1c
KS
34912004-06-16 Kim F. Storm <storm@cua.dk>
3492
3493 * dispextern.h (Vimage_types): Remove extern.
3494
803aac3e
MB
34952004-06-16 Miles Bader <miles@gnu.org>
3496
3497 * image.c (lookup_image_type): Initialize image type if necessary.
3498
cdc97764
KS
34992004-06-15 Kim F. Storm <storm@cua.dk>
3500
c4a5739c
KS
3501 * xdisp.c (try_cursor_movement): Exclude header line from scroll
3502 margin at top of window.
3503 (try_window_reusing_current_matrix): Calculate proper cursor position
3504 after scrolling up with non-zero scroll margin, as the old cursor
3505 position corresponds to value of PT before executing this command.
3506 (try_window_id): Consider scroll margin at bottom of window too;
3507 otherwise we fail to scroll when hl-line-mode is enabled.
3508
cdc97764
KS
3509 * syntax.c (skip_chars): Only recognize [:class:] when it has the
3510 proper format and class is a lower-case word.
3511
5b166323
JD
35122004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3513
3514 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 3515 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
3516 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
3517 xg_get_gdk_pixmap_and_mask.
cdc97764 3518
5b166323
JD
3519 * xterm.h (struct x_display_info): Typo in comment fixed.
3520
1ebd4f78
JB
35212004-06-14 Juanma Barranquero <lektu@terra.es>
3522
3523 * dispextern.h (Vimage_types): Make it conditional on
3524 HAVE_WINDOW_SYSTEM.
3525
3526 * image.c (Vimage_types): Move from xdisp.c.
3527 (Vimage_type_cache): New variable.
3528 (define_image_type): New argument indicating whether an image
3529 library was loaded; cache loaded status and return t on success,
3530 nil otherwise.
3531 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
3532 (w32_delayed_load): New function to load an image library from a
3533 list of possible filenames.
3534 (init_xpm_functions, init_png_functions, init_jpeg_functions)
3535 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 3536 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
3537 (Finit_image_library): New function, extracted from `init_image'.
3538 Try to initialize an image library on demand and cache whether we
3539 were successful or not.
3540 (syms_of_image): Initialize `Vimage_types' and
3541 `Vimage_type_cache'. Add recognized image types to Vimage_types.
3542 Export `init-image-library'.
3543 (init_image): Remove initialization of all image types, except xbm
3544 and pbm.
3545
3546 * xdisp.c (Vimage_types): Delete (moved to image.c).
3547
904ee128
AS
35482004-06-14 Andreas Schwab <schwab@suse.de>
3549
3550 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
3551 Avoid calling specbind when completion-regexp-list is empty.
3552
092de21d
RS
35532004-06-13 Richard M. Stallman <rms@gnu.org>
3554
3555 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
3556 (re_wctype, re_iswctype, re_wctype_to_bit):
3557 Non-function definitions moved here from regex.c.
1ebd4f78 3558
092de21d
RS
3559 * regex.c (re_wctype, re_iswctype): Function defs longer static.
3560 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
3561 (re_wctype, re_iswctype, re_wctype_to_bit):
3562 Non-function definitions moved to regex.h.
3563
3564 * window.c (Fselect_window): Doc fix.
3565
3566 * syntax.c: Include regex.h.
3567 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
3568 If requested, make a list of classes, then check the scanned
3569 chars for membership in them.
3570 (in_classes): New function.
3571 Doc fix.
3572
3573 * keyboard.c (cmd_error): Don't call any_kboard_state
3574 if inside a recursive edit level.
3575
35762004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
3577
3578 * keyboard.c (command_loop): Call any_kboard_state before
3579 command_loop_2 when at top level.
3580
3ebc0939
AS
35812004-06-13 Andreas Schwab <schwab@suse.de>
3582
cea5d0d4
AS
3583 * print.c (print_object): Always use %ld for printing EMACS_INT.
3584
3585 * keyboard.c (cancel_hourglass_unwind): Return a value.
3586 (modify_event_symbol): Always use %ld for printing EMACS_INT.
3587 (Fexecute_extended_command): Likewise.
3588
3589 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
3590 avoid clashes.
3591 (SYNTAX): Likewise.
3592 (SYNTAX_WITH_FLAGS): Likewise.
3593 (SYNTAX_MATCH): Likewise.
3594
3595 * syntax.c (char_quoted): Avoid warning about undefined operation.
3596 (find_defun_start): Likewise.
3597 (scan_lists): Likewise.
3598 (INC_FROM): Likewise.
3599 (scan_sexps_forward): Likewise.
3600
be8c4ce4
AS
3601 * image.c: Include <ctype.h>.
3602
3ebc0939
AS
3603 * xfaces.c (face_attr_equal_p): Declare parameters.
3604
6fb41b5b
KH
36052004-06-13 Kenichi Handa <handa@m17n.org>
3606
3607 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
3608
fc3095ce
EZ
36092004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
3610
3611 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
3612
66189a40
KH
36132004-06-12 Kenichi Handa <handa@m17n.org>
3614
3615 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
3616 ccl_prog_stack_struct and update it.
3617 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
3618 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
3619 ccl->eof_ic on EOF.
3620 (ccl_debug_hook): New function.
3621 (struct ccl_prog_stack): New member eof_ic.
3622 (ccl_driver): Handle EOF in subrountine call correctly.
3623
36242004-06-11 Kenichi Handa <handa@m17n.org>
3625
3626 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
3627
1da71023
KS
36282004-06-11 Kim F. Storm <storm@cua.dk>
3629
3630 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
3631
e9efcef4
JB
36322004-06-11 Juanma Barranquero <lektu@terra.es>
3633
3634 * keyboard.c (Fposn_at_point): Doc fix.
3635
9b9ceb61
DK
36362004-06-11 David Kastrup <dak@gnu.org>
3637
3638 * search.c (match_limit): Don't flag an error if match-data
3639 exceeding the allocated search_regs.num_regs gets requested, just
3640 return Qnil.
3641
6e87ac8f
MB
36422004-06-08 Miles Bader <miles@gnu.org>
3643
3644 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
3645
0b0dea7b
JB
36462004-06-07 Juanma Barranquero <lektu@terra.es>
3647
3648 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
3649 (Fcurrent_time_string, Fcurrent_time_zone)
3650 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
3651
a0a23346
MB
36522004-06-07 Miles Bader <miles@gnu.org>
3653
08384afd 3654 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
3655 (push_named_merge_point): New function.
3656 (merge_named_face): New function.
3657 (merge_face_ref, face_at_buffer_position, face_at_string_position):
3658 Use `merge_named_face'.
3659 (merge_face_inheritance): Function removed.
c8d09ad8 3660 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
3661 Add new `err_msgs' and `named_merge_points' args. Return error
3662 status. Only print error messages if ERR_MSGS is true. Don't try to
3663 do :inherit attribute validation.
3664 (merge_face_heights): Handle `unspecified' in both directions.
3665 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
3666 Call `merge_face_ref' instead of `merge_face_inheritance'.
3667 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
3668 (compute_char_face, face_at_buffer_position)
3669 (face_at_string_position): Call `merge_face_ref' instead of
3670 `merge_face_vector_with_property'.
3671
12d5b185
KH
36722004-06-07 Kenichi Handa <handa@m17n.org>
3673
3674 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
3675 the necessary places.
3676
2e2d7ee6
KS
36772004-06-07 Kim F. Storm <storm@cua.dk>
3678
3679 * process.c (Fdelete_process): Undo 2004-05-28 change.
3680 Instead, call status_notify also for network process.
3681 (status_message): Use process instead of status as arg.
3682 Give messages "deleted" or "connection broken by remote peer" for
3683 an exited network process.
3684 (status_notify): Change call to status_message.
3685 (read_process_output): Increase readmax to 4096. Do not increase
3686 buffer size for datagram channels (default is now large enough).
3687
fcf0d299
ST
36882004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3689
3690 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
3691 problem due to newly defined variable.
3692
0722292b
MB
36932004-06-06 Miles Bader <miles@gnu.org>
3694
3695 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
3696 immediately if non-interactive or not initialized.
3697
ddfb8369
RS
36982004-06-05 Richard M. Stallman <rms@gnu.org>
3699
3700 * minibuf.c (Fcompleting_read): Doc fix.
3701
57015754
AS
37022004-06-05 Andreas Schwab <schwab@suse.de>
3703
3704 * macfns.c (x_create_tip_frame): Fix declaration after statement.
3705
23715ea6
JB
37062004-06-05 Juanma Barranquero <lektu@terra.es>
3707
3708 * keymap.c (Fdescribe_vector): Fix docstring.
3709 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
3710
8e330b22
MB
37112004-06-05 Miles Bader <miles@gnu.org>
3712
3713 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
3714 attributes have different values than the default face.
3715
9742a3a6
EZ
37162004-06-04 Eli Zaretskii <eliz@gnu.org>
3717
3718 * xfaces.c (x_supports_face_attributes_p): Make this function
3719 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
3720 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
3721 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 3722
9717e36c
MB
37232004-06-04 Miles Bader <miles@gnu.org>
3724
3725 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
3726 from Ftty_supports_face_attributes_p.
3727 (x_supports_face_attributes_p): New function.
3728 (Ftty_supports_face_attributes_p): Function deleted.
3729 (Fdisplay_supports_face_attributes_p): New function.
3730 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 3731 (face_attr_equal_p): New function.
9717e36c
MB
3732 (lface_equal_p): Use it.
3733
52deb19f
JB
37342004-06-03 Juanma Barranquero <lektu@terra.es>
3735
3736 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
3737 (Vw32_color_map): Fix typo in docstring.
3738 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
3739 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
3740 Make argument names match their use in docstring.
3741
86d373e6
JB
37422004-06-02 Juanma Barranquero <lektu@terra.es>
3743
3744 Work around bugs/problems with MinGW builds of graphics libraries
3745 called from MSVC builds of Emacs.
3746
3747 * image.c (lookup_image): Make pointer to img static.
3748 (png_read_from_memory): Disable "global" optimization.
3749
2fb0ce67
SM
37502004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3751
c8d09ad8
SM
3752 * eval.c (Fcondition_case): Fix usage. Simplify.
3753
2fb0ce67
SM
3754 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
3755
50bf7673
ST
37562004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3757
3758 * macfns.c: Don't include ccl.h.
3759 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
3760 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
3761 TextUtils.h.
c8d09ad8 3762 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
3763 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
3764 display height/width.
3765 (compute_tip_xy, Vx_max_tooltip_size): Declare.
3766 (unwind_create_tip_frame, compute_tip_xy): New functions.
3767 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
3768 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
3769 and last_show_tip_args.
2fb0ce67 3770
50bf7673
ST
3771 * macgui.h [!MAC_OSX]: Include Gestalt.h.
3772 (Cursor, No_Cursor): New defines.
c8d09ad8 3773 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
3774 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
3775
3776 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
3777
3778 * macterm.c: Don't include Gestalt.h.
3779 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
3780 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
3781 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
3782 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
3783 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
3784 (construct_mouse_click, XTmouse_position)
3785 (x_scroll_bar_report_motion, x_calc_absolute_position)
3786 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
3787 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
3788 (note_mouse_movement): Clear the mouse face and reset the pointer
3789 shape when the pointer goes outside the frame without grabbing.
3790 (mac_front_window): New function.
3791 (mac_window_to_frame): New macro.
3792 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
3793 (do_window_activate, do_window_deactivate, do_app_resume)
3794 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
3795 (do_zoom_window, mac_do_receive_drag, XTread_socket)
3796 (mac_check_for_quit_char): Use mac_front_window and/or
3797 mac_window_to_frame.
3798 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
3799 scroll-bar click event.
3800 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 3801 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 3802 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 3803 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
3804 (do_window_update): Don't do anything if the updated window is the
3805 tooltip window.
3806 (do_mouse_moved): Handle mouse movement events here (previously in
3807 XTread_socket). Clear the mouse face if
3808 dpyinfo->mouse_face_hidden is set.
3809 (do_os_event, do_events): Remove (now in XTread_socket).
3810 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
3811 Loop until all the events in the queue are processed.
3812 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
3813 contents of do_os_event and do_events. Remove mouse movement
3814 handling (now in do_mouse_moved). Add the case where
3815 Vmouse_highlight has an integer value.
3816 (NewMacWindow): Remove.
3817 (make_mac_frame): Do what NewMacWindow previously did. Don't do
3818 excess initializations.
3819 (make_mac_terminal_frame): Previous initializations in
3820 make_mac_frame are moved here.
c8d09ad8
SM
3821 (mac_initialize_display_info):
3822 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
3823
3824 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
3825 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
3826
08fd1251
RS
38272004-05-29 Richard M. Stallman <rms@gnu.org>
3828
3829 * lisp.h (truncate_undo_list): Update decl.
3830
3831 * alloc.c (undo_outer_limit): New variable.
3832 (syms_of_alloc): Defvar it.
3833 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
3834
3835 * undo.c (truncate_undo_list): New arg LIMITSIZE.
3836
3837 * alloc.c (lisp_align_malloc): Check for base == 0
3838 regardless of HAVE_POSIX_MEMALIGN.
3839 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
3840
227ef0ff
SM
38412004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3842
3843 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
3844 (marker_blocks_pending_free): Remove.
3845 (Fgarbage_collect): Sweep after cleaning up undo-lists.
3846 Mark the undo lists after claning them up.
3847 Don't free block in marker_blocks_pending_free.
3848 (mark_buffer): Don't mark undo_list.
3849 (gc_sweep): Sweep hash-tables and strings first.
3850 Do free marker blocks that are empty.
3851
034a6113
SM
38522004-05-28 Jim Blandy <jimb@redhat.com>
3853
3854 * regex.c (print_partial_compiled_pattern): Add missing 'break'
3855 after 'case wordend'. For symbeg and symend, print to stderr,
3856 like the other cases.
3857
33594a8d
NF
38582004-05-28 Noah Friedman <friedman@splode.com>
3859
3860 * process.c (Fdelete_process): Do not call remove_process.
3861
ce50a847
SM
38622004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3863
3864 * alloc.c (struct backtrace): Remove.
3865 (Fgarbage_collect): Use the new mark_backtrace.
3866
3867 * eval.c (mark_backtrace): New function.
3868
3869 * minibuf.c (run_exit_minibuf_hook): New function.
3870 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
3871 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
3872
1e8dae36
KS
38732004-05-27 Kim F. Storm <storm@cua.dk>
3874
3875 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
3876 over display properties, e.g. images, that replace buffer text.
3877
846faa3b
KS
38782004-05-25 Kim F. Storm <storm@cua.dk>
3879
3880 * alloc.c (marker_blocks_pending_free): New var.
3881 (gc_sweep): Store free marker blocks on that list.
3882 (Fgarbage_collect): Free them after undo-list cleanup.
3883
3884 * process.c (wait_reading_process_input): Check connect_wait_mask
3885 before actually accepting connection in case it has already been
3886 accepted due to recursion.
3887
b6189c3b 38882004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 3889
ce50a847
SM
3890 * coding.c (Fset_safe_terminal_coding_system_internal):
3891 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 3892
71d5a208
RS
38932004-05-22 Richard M. Stallman <rms@gnu.org>
3894
3895 * alloc.c (Fmake_string): Doc fix.
3896
3897 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
3898 and the alist pairs too.
3899
3900 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
3901
3902 * emacs.c (main): Update copyright year.
3903
3904 * fileio.c (Fread_file_name): Expand DIR if not absolute.
3905
3906 * insdel.c (del_range_2, replace_range): Don't write an anchor
3907 if the gap is empty.
3908
3909 * xdisp.c (try_scrolling): If scroll-up-aggressively or
3910 scroll-down-aggressively is small but positive, put point
3911 near the screen edge.
3912
f63fd14e
JB
39132004-05-22 Juanma Barranquero <lektu@terra.es>
3914
3915 * keymap.c (Fdefine_key): Doc fix.
3916
4d12067c
KS
39172004-05-22 Kim F. Storm <storm@cua.dk>
3918
3919 * alloc.c (struct backtrace): Add debug_on_exit member.
3920 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
3921 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
3922 the removed cons cells.
3923 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
3924 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
3925 any cons cells pointing to unallocated stings.
3926 Do not lisp_free any marker blocks, as there may still be pointers
3927 to them from buffer undo lists at this stage of GC.
3928
3929 * keyboard.c (struct backtrace): Add debug_on_exit member.
3930 (Fcommand_execute): Clear it.
3931
931285e2
LT
39322004-05-20 Luc Teirlinck <teirllm@auburn.edu>
3933
3934 * intervals.c (lookup_char_property): Do not prematurely return nil.
3935
669fa600
SM
39362004-05-19 Jim Blandy <jimb@redhat.com>
3937
3938 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 3939 beginning and end of symbols.
4d12067c 3940
669fa600
SM
3941 * regex.c (enum syntaxcode): Add Ssymbol.
3942 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
3943 (re_opcode_t): New opcodes `symbeg' and `symend'.
3944 (print_partial_compiled_pattern): Print the new opcodes properly.
3945 (regex_compile): Parse the new operators.
ce50a847 3946 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
3947 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
3948 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
3949 (re_match_2_internal): Match symbeg and symend.
3950
3951 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
3952
0d8c2e5c
KS
39532004-05-19 Kim F. Storm <storm@cua.dk>
3954
3955 * .gdbinit (xsymbol): Fix last change.
3956
669fa600
SM
39572004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
3958
3959 * .gdbinit (xprintstr): New fun.
3960 (xstring, xprintsym): Use it.
3961
3962 * w32proc.c (create_child): Use INTMASK.
3963
3964 * alloc.c (Fgarbage_collect): Do all the marking before flushing
3965 unmarked elements of the undo list.
3966
9a6a4c40
DP
39672004-05-18 David Ponce <david@dponce.com>
3968
3969 * print.c (print): Reset print_depth before to call print_object.
3970
f3c4ec74
JR
39712004-05-18 Jason Rumney <jasonr@gnu.org>
3972
3973 * w32console.c: Prefix RIF functions with w32con_ to avoid
3974 namespace clash with functions in term.c and w32term.c.
3975
3976 * w32menu.c (add_menu_item, w32_menu_display_help)
3977 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
3978
0d8c2e5c 3979 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 3980
6be49c3a
EZ
39812004-05-18 Eli Zaretskii <eliz@gnu.org>
3982
4d0b9a0a
EZ
3983 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
3984
6be49c3a
EZ
3985 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
3986 with make_number.
3987 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
3988 with XINT.
3989
0bc90bba
KS
39902004-05-18 Kim F. Storm <storm@cua.dk>
3991
89d19988
KS
3992 * blockinput.h (INPUT_BLOCKED_P): New macros.
3993
3994 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
3995 (Ftop_level): Unblock input if blocked.
3996
0bc90bba
KS
3997 * buffer.h (GET_OVERLAYS_AT): New macro.
3998 * msdos.c (IT_note_mouse_highlight): Use it.
3999 * textprop.c (get_char_property_and_overlay): Use it.
4000 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
4001 * xfaces.c (face_at_buffer_position): Use it.
4002
4003 * print.c (print_object): Increase buf size.
4004
653bd0f6
JR
40052004-05-17 Jason Rumney <jasonr@gnu.org>
4006
4007 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
4008 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
4009 Lisp_Object using i member.
4010 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
4011 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
4012 consistently.
4013
4014 * w32proc.c (create_child): Use make_number instead of masking pid.
4015
4016 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
4017 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
4018 Use EQ to compare Lisp_Objects.
4019 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
4020
4021 * w32term.c (w32_num_mouse_buttons): Rename from
4022 Vw32_num_mouse_buttons and make it an int.
4023
4024 * w32.c (init_environment): Use it.
4025
4026 * w32fns.c (w32_wnd_proc): Likewise.
4027
4028 * w32proc.c (w32_pipe_read_delay): Rename from
4029 Vw32_pipe_read_delay and make it an int.
4030
4031 * w32.c (_sys_read_ahead): Use it.
4032
4033 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
4034
4035 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
4036
4037 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
4038 (key_event): Don't mix Lisp_Object and int.
4039
4040 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
4041
4042 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
4043 modifiers in language change event.
4044
54b53ba7
KS
40452004-05-17 Kim F. Storm <storm@cua.dk>
4046
4047 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
4048 Such objects may be freed markers which still exist on an undo list.
4049
6e86a75d
JB
40502004-05-16 Juanma Barranquero <lektu@terra.es>
4051
4052 * data.c (Fset_default): Make argument names match their use in
4053 docstring.
4054
fc80da24
AS
40552004-05-15 Andreas Schwab <schwab@suse.de>
4056
4057 * emacs.c (gdb_array_mark_flag): Define.
4058 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
4059
c1380aa6
EZ
40602004-05-15 Eli Zaretskii <eliz@gnu.org>
4061
4062 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
4063 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
4064 defined for the MS-DOS build.
4065
89458937
SM
40662004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4067
4068 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
4069
08020f9a
KH
40702004-05-14 Kenichi Handa <handa@m17n.org>
4071
4072 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
4073
a433994a
ST
40742004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4075
4076 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
4077 section to frame.c section.
4078 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 4079 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 4080
a433994a 4081 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 4082
a433994a 4083 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 4084
a433994a
ST
4085 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
4086 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
4087 (XTread_socket): Fix int/Lisp_Object mixup.
4088 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 4089
a433994a
ST
4090 * macterm.h (struct frame, struct face, struct image)
4091 (display_x_get_resource, Fx_display_color_p)
89458937
SM
4092 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
4093 Add prototypes.
a433994a 4094
b51a51b9
KS
40952004-05-14 Kim F. Storm <storm@cua.dk>
4096
4097 * process.c (wait_reading_process_input): Make reentrant.
4098 Make Available and Connecting non-static. Save and restore value
4099 of waiting_for_user_input_p.
4100
2bde1dd8
KS
41012004-05-13 Kim F. Storm <storm@cua.dk>
4102
4103 * keyboard.c (mark_kboards): Don't mark x and y members
4104 that are overloaded in selection request events.
4105
a267ab4d
SM
41062004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
4107
4108 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
4109
eb15ce9e
GM
41102004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
4111
4112 * window.c (Fdisplay_buffer, Fsplit_window)
4113 (split-height-threshold): Doc fix.
4114
7fc92635
JB
41152004-05-13 Juanma Barranquero <lektu@terra.es>
4116
4117 * xfaces.c (Ftty_supports_face_attributes_p)
4118 (Finternal_copy_lisp_face): Fix typo in docstring.
4119 (Finternal_get_lisp_face_attribute): Fix docstring.
4120
1ec2a572
JD
41212004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4122
4123 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
4124
ae9292e0
ST
41252004-05-11 Steven Tamm <steventamm@mac.com>
4126
4127 * macfns.c (Fx_create_frame): Default to using tool-bar by
4128 setting tool-bar-lines to 1 in default-frame-alist.
4129
41302004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
4131
4132 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
4133 (xpm_get_color_table_v, xpm_make_color_table_h)
4134 (xpm_put_color_table_h, xpm_get_color_table_h)
4135 (xpm_str_to_color_key, xpm_load_image, xpm_load)
4136 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 4137 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 4138
fe97e8df
ST
41392004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4140
a267ab4d 4141 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
4142 instead of FRAME_X_P
4143
b47e779e
KS
41442004-05-11 Kim F. Storm <storm@cua.dk>
4145
4146 * process.c (read_process_output): Grow decoding_buf when needed;
4147 this could cause a crash in allocate_string and compact_small_strings.
4148
cdc9b845
EZ
41492004-04-29 Jim Blandy <jimb@redhat.com>
4150
4151 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
4152 against proper opcode.
4153
aa7094ba
JB
41542004-05-10 Juanma Barranquero <lektu@terra.es>
4155
4156 * process.c (Fstart_process): Fix docstring.
4157
4158 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
4159 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
4160 (Fsplit_char, Fchar_charset): Make argument names match their use
4161 in docstring.
4162
e109331a
RS
41632004-05-10 Richard M. Stallman <rms@gnu.org>
4164
4165 * print.c (print_preprocess): Use being_printed, loop_count and
4166 halftail to detect overdeep nesting and cyclic cdr chains.
4167
9a28b921
AS
41682004-05-10 Andreas Schwab <schwab@suse.de>
4169
78819ebb 4170 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
4171
4172 * fileio.c (Frename_file): Remove extra argument in call to
4173 Fmake_symbolic_link.
4174
e2c02c1a
KS
41752004-05-10 Kim F. Storm <storm@cua.dk>
4176
4177 * xdisp.c (calc_line_height_property): Use string position when
4178 object is a string.
4179
cfe9d13e
KH
41802004-05-10 Kenichi Handa <handa@m17n.org>
4181
a57e8159
KH
4182 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
4183 inhibit-modification-hooks to t temporarily before calling
4184 Ferase_buffer.
4185
4186 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
4187 inhibit-modification-hooks to t temporarily before calling
4188 Ferase_buffer.
4189
4190 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
4191 inhibit-modification-hooks to t temporarily before calling
4192 Ferase_buffer.
4193
cfe9d13e
KH
4194 * fns.c (count_combining): Delete it.
4195 (concat): Don't check combining bytes.
4196
ceb96489
JR
41972004-05-09 Jason Rumney <jasonr@gnu.org>
4198
4199 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
4200 (globals_of_w32fns): Set it.
4201
b6189c3b 42022004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
4203
4204 * data.c (Fquo): Simplify.
4205
28712a21
JB
42062004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
4207
4208 * data.c (Fquo): If any argument is float, do the computation in
4209 floating point.
4210
0f0af7a8
JB
42112004-05-08 Juanma Barranquero <lektu@terra.es>
4212
88214ef6
JB
4213 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
4214 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
4215 Fix spelling of Emacs on docstring.
4216 (Fset_process_coding_system, Fprocess_coding_system)
4217 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
4218 Make argument names match their use in docstring.
4219 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
4220 Fix docstring.
4221
0f0af7a8
JB
4222 * editfns.c (Finsert_buffer_substring): Make argument names match their
4223 use in docstring.
4224
4225 * syntax.c (Fmodify_syntax_entry): Fix docstring.
4226
2a316a84
ST
42272004-05-07 Steven Tamm <steventamm@mac.com>
4228
4229 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
4230 around call to ReceiveEvent to avoid certain crashes.
4231
42322004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 4233
2a316a84
ST
4234 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
4235 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
4236 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
4237 Save/restore the current graphics port and device handle when
4238 drawing into an offscreen graphics world.
4239
4240 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
4241 (gif_load): Likewise.
4242
ab80314b
JB
42432004-05-07 Juanma Barranquero <lektu@terra.es>
4244
4245 * window.c (Fset_window_buffer): Fix docstring.
4246
70646bb5
TTN
42472004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
4248
4249 * emacs.c (main) [VMS]: Fix var ref.
4250
b6189c3b 42512004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
4252
4253 * data.c (Fsetq_default): Fix docstring.
4254
279d3293
JR
42552004-05-06 Jason Rumney <jasonr@gnu.org>
4256
4257 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
4258 to avoid name clash.
4259
f72b5416
JD
42602004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4261
4262 * fileio.c (barf_or_query_if_file_exists): Use lstat.
4263 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 4264 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 4265
6ab66799
KS
42662004-05-04 Kim F. Storm <storm@cua.dk>
4267
4268 * xdisp.c (Qtotal): New var.
4269 (syms_of_xdisp): Intern and staticpro it.
4270 (calc_line_height_property): New arg total. Set it if
4271 line-spacing property has format (total . VALUE).
4272 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
4273 Handle total line-spacing property.
4274
ab2d724b
JD
42752004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4276
4277 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
4278 "under" scroll bar when size/position changes.
4279
238add5e
JR
42802004-05-03 Jason Rumney <jasonr@gnu.org>
4281
4282 * makefile.nt: Remove.
4283
1644f4e4
EZ
42842004-05-02 Eli Zaretskii <eliz@gnu.org>
4285
a267ab4d
SM
4286 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
4287 Avoid compiler warnings.
05fdbeb8 4288
1644f4e4
EZ
4289 * Makefile.in (region-cache.o): Depend on config.h.
4290
b6189c3b 42912004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
4292
4293 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
4294 with continuation lines, too.
4295
2b98b088
TTN
42962004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
4297
4298 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
4299
d9bf7950
SM
43002004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
4301
4302 * xdisp.c (calc_line_height_property): YAILOM (yet another
4303 int/Lisp_Object mixup).
4304
affa509c
EZ
43052004-05-01 Eli Zaretskii <eliz@gnu.org>
4306
4307 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
4308 undo bad effect of pack(4) in some versions of system headers.
4309
07c07cfe
JR
43102004-05-01 Jason Rumney <jasonr@gnu.org>
4311
4312 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
4313
e71caa4e
KS
43142004-04-30 Kim F. Storm <storm@cua.dk>
4315
4316 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 4317 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
4318
4319 * dispextern.h (struct it): Remove member use_default_face.
4320 Add members override_ascent, override_descent, override_boff.
4321
4322 * xdisp.c (init_iterator): Handle line-spacing float value.
4323 Initialize override_ascent member.
4324 (append_space_for_newline): Reset override_ascent.
4325 Remove use_default_face.
4326 (calc_line_height_property): New function to calculate value of
4327 line-height and line-spacing properties. Look at overlays, too.
4328 Set override_ascent, override_descent, override_boff members when
4329 using another face than the current face. Float values are now
4330 relative to the frame default font, by default; accept a cons
4331 of ratio and face name to specify value relative to a specific face.
4332 (x_produce_glyphs): Use calc_line_height_property.
4333 Use override_ascent etc. when set to handle different face heights.
4334 A negative line-spacing property value is interpreted as a total
4335 line height, rather than inter-line spacing.
4336 (note_mouse_highlight): Allocate room for 40 overlays initially.
4337
0fddae66
SM
43382004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4339
4340 * data.c (Fsubr_name): New fun.
4341 (syms_of_data): Defsubr it.
4342
712d23dc
KS
43432004-04-29 Kim F. Storm <storm@cua.dk>
4344
4345 * xdisp.c (null_glyph_slice): New var.
4346 (append_glyph, append_composite_glyph, append_stretch_glyph):
4347 Use it to initialize glyph slice.
4348
033ad8c6
SM
43492004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
4350
4351 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
4352 (on_hot_spot_p): Make sure we always return a value.
4353 (Flookup_image_map): Remove unused var ix and iy.
4354 (note_mode_line_or_margin_highlight): Remove unused var `image'.
4355
93397360
EZ
43562004-04-27 Eli Zaretskii <eliz@gnu.org>
4357
4358 * msdos.c (init_environment): If one of the TMP... environment
4359 variables is set to a drive letter without a trailing slash,
4360 append a slash.
4361
0c54865e
EZ
43622004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
4363
4364 * editfns.c (lisp_time_argument): Provide externally.
4365
4366 * fileio.c (Fset_file_times): New function.
4367 (syms_of_fileio): Intern and staticpro it.
4368
d3b111bd
KS
43692004-04-27 Kim F. Storm <storm@cua.dk>
4370
07dc1231
KS
4371 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
4372 header line strings.
4373
360fe9d2
KS
4374 * dispextern.h (struct it): New member use_default_face.
4375
d3b111bd
KS
4376 * xdisp.c (Qline_height): New variable.
4377 (syms_of_xdisp): Intern and staticpro it.
4378 (append_space_for_newline): Partially undo 2004-04-25 change;
4379 add default_face_p arg, and restore callers.
4380 Clear it->use_default_face after use.
4381 (x_produce_glyphs): Set default font for ascii char if
4382 it->use_default_font is set. Change line-spacing property to set
4383 just extra line spacing. Handle new line-height property.
4384
0448588b
AS
43852004-04-26 Andreas Schwab <schwab@suse.de>
4386
4387 * print.c (print_object): Print non-ascii characters in bool
4388 vector representation as octal escapes.
4389
4390 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
4391 * print.c (print_object): Use it instead of BITS_PER_CHAR for
4392 bool vectors.
4393 * lread.c (read1): Likewise.
4394 * alloc.c (Fmake_bool_vector): Likewise.
4395 * data.c (Faref, Faset): Likewise.
4396 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
4397 (mapcar1): Likewise.
d3b111bd 4398
536d6baa
ST
43992004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
4400
4401 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
4402
ae11577a
MB
44032004-04-26 Miles Bader <miles@gnu.org>
4404
4405 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
4406
e198ba87
JB
44072004-04-26 Juanma Barranquero <lektu@terra.es>
4408
4409 * buffer.c (Fpop_to_buffer): Fix docstring.
4410
f3d5f92d 44112004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 4412
f3d5f92d
ST
4413 * lread.c (init_lread): Don't display missing lisp directory
4414 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 4415 may be built without correct installation path.
f3d5f92d 4416
03e35edc
KS
44172004-04-25 Kim F. Storm <storm@cua.dk>
4418
9ff3aa31
KS
4419 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
4420
4421 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
4422
03e35edc
KS
4423 * xdisp.c (append_space_for_newline): Rename from append_space.
4424 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
4425 (x_produce_glyphs): Handle line-spacing property on newline char.
4426 If value is t, adjust ascent and descent to fit current row height.
4427 If value is an integer or float, set extra_line_spacing to integer
4428 value, or to float value x current line height.
4429
f24814e0
KH
44302004-04-23 Kenichi Handa <handa@m17n.org>
4431
4432 * fontset.c (Finternal_char_font): If POSITION is nil, return
4433 font for displaying CH with the default face.
4434
d814862a
JB
44352004-04-23 Juanma Barranquero <lektu@terra.es>
4436
4437 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
4438
063a45c5
SM
44392004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
4440
4441 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
4442 Don't make assumptions about the relative place of i and val.
4443 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
4444
ae7ab2d3
KS
44452004-04-21 Kim F. Storm <storm@cua.dk>
4446
4447 * dispextern.h (struct glyph_slice): New struct.
4448 (struct glyph): New member slice.
4449 (GLYPH_SLICE_EQUAL_P): New macro.
4450 (GLYPH_EQUAL_P): Use it.
4451 (struct glyph_string): New member slice.
4452 (struct it_slice): New struct.
4453 (struct it): New member slice, add member to stack too.
4454 New member constrain_row_ascent_descent_p.
4455 (image_ascent): Add prototype.
4456
4457 * dispnew.c (buffer_posn_from_coords): Return full image width
4458 and height even for image slices (posn is relative to full image).
4459 (marginal_area_string): Adjust x0,y0 for image slice.
4460
4461 * image.c (image_ascent): Add slice arg; calculate ascent for
4462 image slice (or full image).
4463
4464 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
4465 (syms_of_keyboard): Defsubr them.
4466
4467 * lisp.h (pos_visible_p): Fix prototype.
4468
c62aec78 4469 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
4470 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4471 (x_draw_image_foreground, x_draw_image_relief)
4472 (x_draw_image_foreground_1, x_draw_image_glyph_string):
4473 Draw sliced images.
4474
4475 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
4476 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4477 (x_draw_image_foreground, x_draw_image_relief)
4478 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
4479 Draw sliced images.
4480
4481 * w32term.h (image_ascent): Remove prototype.
4482
4483 * window.c (Fpos_visible_in_window_p): Return pixel position if
4484 PARTIALLY arg is non-nil. Simplify. Doc fix.
4485 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
4486 to return/set vscroll in pixels.
4487
4488 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
4489
4490 * xdisp.c (Qslice): New variable.
4491 (syms_of_xdisp): Intern and staticpro it.
4492 (pos_visible_p): Return pixel position in new x and y args.
4493 (init_iterator): Reset it->slice info.
4494 (handle_display_prop): Parse (slice ...) property.
4495 (push_it, pop_it): Save/restore slice info.
4496 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
4497 force repositioning of tall row if window is vscrolled, as that
4498 would reset vscroll.
4499 (append_space): Set it->constrain_row_ascent_descent_p to avoid
4500 increasing row height if row is non-empty.
4501 (fill_image_glyph_string): Copy slice info.
4502 (take_vertical_position_into_account): Simplify.
4503 (produce_image_glyph): Handle iterator slice info, setup glyph
4504 slice info. Do not force minimum line height.
4505 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
4506 do not increase height (ascent/descent) of non-empty row when
4507 adding normal character glyph; instead reduce glyph ascent/descent
4508 appropriately; if row is higher than current glyph, adjust glyph
4509 descent/ascent to reposition glyph within the existing row.
4510 Likewise, when char is newline, only set ascent/descent if row is
4511 currently empty.
4512 (note_mouse_highlight): Handle hotspots with sliced image.
4513
4514 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
4515 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4516 (x_draw_image_foreground, x_draw_image_relief)
4517 (x_draw_image_foreground_1, x_draw_image_glyph_string):
4518 Draw sliced images.
4519
4520 * xterm.h (image_ascent): Remove prototype.
4521
d58f8753
SM
45222004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4523
4524 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
4525
4ce2719d
JPW
45262004-04-20 John Paul Wallington <jpw@gnu.org>
4527
4528 * fns.c (Fassoc, Feql): Fix indentation.
4529
d58f8753 4530 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 4531
95f8c3b9
JPW
45322004-04-19 John Paul Wallington <jpw@gnu.org>
4533
4534 * fns.c (Feql): New function.
d58f8753 4535 (syms_of_fns): Defsubr it.
95f8c3b9 4536
b7e85537
JR
45372004-04-18 Jason Rumney <jasonr@gnu.org>
4538
4539 * w32select.c (Fw32_set_clipboard_data): Get sequence number
4540 after closing the clipboard.
4541
5a72efd4
LT
45422004-04-16 Luc Teirlinck <teirllm@auburn.edu>
4543
4544 * buffer.c (Fbuffer_base_buffer): Doc fix.
4545
20dc8583
KS
45462004-04-17 Kim F. Storm <storm@cua.dk>
4547
60962ec4
KS
4548 * keymap.c (Fkey_description): Add optional PREFIX arg.
4549 Combine prefix with KEYS to make up the full key sequence to describe.
4550 Correlate meta_prefix_char and following (simple) key to describe
4551 as meta modifier. All callers changed.
4552 (describe_map): Rename arg `keys' to `prefix'. Remove local
4553 `elt_prefix' var. Use Fkey_description with prefix instead of
4554 elt_prefix combined with Fsingle_key_description.
4555 (describe_vector): Declare static. Replace arg `elt_prefix' with
4556 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
4557 if !KEYMAP_P. Use Fkey_description with prefix instead of
4558 Fsingle_key_description.
4559
4560 * keymap.h (Fkey_description): Fix prototype.
4561 (describe_vector): Remove prototype.
4562
409368b9
KS
4563 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
4564
20dc8583
KS
4565 * image.c (PNG_BG_COLOR_SHIFT): Remove.
4566 (png_load): Fix calculation of transparent background color on X
4567 and W32 platforms.
4568
75c5501b
JB
45692004-04-16 Juanma Barranquero <lektu@terra.es>
4570
4571 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
4572 not too large before computing how much to scroll.
4573
da879ae8
SM
45742004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
4575
4576 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
4577
d01ca4a8
LT
45782004-04-14 Luc Teirlinck <teirllm@auburn.edu>
4579
4580 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
4581 Add hyperlink to Elisp manual to the docstring.
4582
572943b3
SM
45832004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
4584
4585 * callint.c (fix_command): Use XDCR.
4586
5e30a0fb
NR
45872004-04-14 Nick Roberts <nick@nick.uklinux.net>
4588
4589 * window.c (Fget_lru_window): Doc fix.
4590
a27ddfaf
KS
45912004-04-14 Kim F. Storm <storm@cua.dk>
4592
4593 * editfns.c (Fformat): Fix allocation size of precision array.
4594
4595 * dispnew.c (update_window): Only set changed_p if
4596 scrolling_window actually did scroll.
4597 (scrolling_window): Only return 1 if we actually did scroll.
4598
4599 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
4600 height to glyph height when cursor row is not fully visible.
4601 (make_cursor_line_fully_visible): Add FORCE_P arg to return
4602 failure in case row is higher than window. Callers changed.
4603 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
4604 Try to scroll partially visible, higher-than-window cursor row.
4605 (redisplay_window): Always try to scroll partially visible,
4606 higher-than-window cursor row - both initially and again with
4607 centering_position = 0.
4608 Clear desired matrix before retrying with centering_position = 0.
4609
da879ae8
SM
46102004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4611
4612 * syntax.c (scan_lists): Simplify backward string scan.
4613 Fix off-by-one boundary check for string and comment fences.
4614
5fc16e8e
SM
46152004-04-13 Joe Buehler <jbuehler@hekimian.com>
4616
4617 * sheap.c, unexcw.c: New files.
4618
c9aac8e6
LT
46192004-04-12 Luc Teirlinck <teirllm@auburn.edu>
4620
4621 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
4622 base buffer has been killed. Correct the error message if the
4623 base buffer does not exist.
4624
1e88a355
SM
46252004-04-12 Joe Buehler <jbuehler@hekimian.com>
4626
4627 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
4628 Cygwin itself. Add support for Xaw3d scrollbars.
4629
4630 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
4631
4632 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
4633
4634 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
4635 before Cygwin unexec.
4636
4637 * Makefile.in: Link changes for Cygwin unexec() support.
4638
8dbff9a0
AS
46392004-04-12 Andreas Schwab <schwab@suse.de>
4640
4641 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
4642
54dffe35
LT
46432004-04-11 Luc Teirlinck <teirllm@auburn.edu>
4644
4645 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
4646 IGNORE argument equals NAME. Doc fix.
4647
99a72bdf
MY
46482004-04-11 Masatake YAMATO <jet@gyve.org>
4649
1e88a355 4650 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
4651 empty if they are backwards.
4652
40899d7b
SM
46532004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
4654
4655 * xfaces.c (face_color_supported_p): Fix compilation without X11.
4656
f8f853de
SM
46572004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
4658
4659 * doc.c (Fsnarf_documentation): Ignore new file name entries.
4660
c953fe1b
KS
46612004-04-06 Kim F. Storm <storm@cua.dk>
4662
661e85c1
KS
4663 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
4664 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
4665
4666 * w32term.c (w32_read_socket): Set mouse_face_hidden after
4667 clearing highlight.
4668
4669 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
4670
4671 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
4672 clearing highlight.
4673
c953fe1b
KS
4674 * indent.c (vmotion): Do not reserve one column for continuation
4675 marks on window frames.
4676
c1994268
EZ
46772004-04-04 Eli Zaretskii <eliz@gnu.org>
4678
4679 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
4680 from GCC.
4681
9f691b0d
SM
46822004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
4683
4684 * .gdbinit-union: Remove.
4685
4686 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
4687 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
4688 ($nonvalbits): Remove.
4689 ($valmask): Set it by calling xreload to avoid redundancy.
4690
4691 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
4692 (gdb_emacs_intbits): Remove.
4693
7a8560d7
JD
46942004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4695
9f691b0d 4696 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 4697
3c8111fc
KH
46982004-03-30 Kenichi Handa <handa@m17n.org>
4699
4700 * editfns.c (Fformat): Fix initialization of the array info.
4701
48a0bce4
KS
47022004-03-30 Kim F. Storm <storm@cua.dk>
4703
4704 * xterm.c (x_mouse_click_focus_ignore_position): New var.
4705 (syms_of_xterm): DEFVAR_BOOL it.
4706 (ignore_next_mouse_click_timeout): New var.
4707 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
4708 Use it to filter mouse clicks following focus event.
4709
1cd0066c
KS
47102004-03-29 David Ponce <david@dponce.com>
4711
4712 * callint.c (Fcall_interactively): Fix last change.
4713
adb3b353
SM
47142004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4715
4716 * eval.c (Fcommandp): Simplify.
4717
4718 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
4719 Extend to handle all kinds of functions.
4720
4721 * lisp.h (Finteractive_form): Declare.
4722
4723 * callint.c (Fcall_interactively): Use it.
4724
6fc4c9c9
KS
47252004-03-26 Kim F. Storm <storm@cua.dk>
4726
4727 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
4728 to catch errors in calc_pixel_width_or_height during redisplay.
4729
abdb9b83
MY
47302004-03-26 Masatake YAMATO <jet@gyve.org>
4731
b17856dd 4732 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 4733
b17856dd 4734 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 4735
b17856dd 4736 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 4737
b17856dd 4738 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 4739
e8a84b6c
JD
47402004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4741
b17856dd 4742 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 4743
36a3fd05
RS
47442004-03-19 Richard M. Stallman <rms@gnu.org>
4745
4746 * s/sol2-6.h: Delete previous change.
4747
ab24c127
KS
47482004-03-19 Kim F. Storm <storm@cua.dk>
4749
4750 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
4751 to_charpos corresponds to newline in right fringe. Use local
4752 BUFFER_POS_REACHED_P macro.
4753
992126de
JD
47542004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4755
4756 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
4757 to compile on non-window system.
4758
45dbfc84
KS
47592004-03-19 Kim F. Storm <storm@cua.dk>
4760
4761 * dispextern.h (calc_pixel_width_or_height): Add prototype.
4762
4763 * image.c (Qcenter): Move to xdisp.c.
4764
4765 * xdisp.c (Qcenter): Declare here.
adb3b353 4766 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
4767 (handle_single_display_prop): Allow space display property on all
4768 platforms.
4769 (display_mode_line): Set mode_line_p before displaying line.
4770 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
4771 handling. Remove complex cases for fringes and scroll-bars.
4772 Add left, right, and center alignment positions. Add text (area)
4773 width/height. Return width or height for image specs.
4774 (produce_stretch_glyph): Improve handling of :align-to. Is now
4775 relative to left of text area by default, but other base offsets
4776 can be specified -- also for text lines.
4777
4778 * term.c (produce_glyphs): Handle IT_STRETCH.
4779 (produce_stretch_glyph): New function to handle space width and
4780 align-to display properties on non-window systems.
4781
37264101
SM
47822004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4783
4784 * fileio.c (Fread_file_name): Set completion-ignore-case for
4785 case-insensitive systems.
4786
73bc43da
MY
47872004-03-14 Masatake YAMATO <jet@gyve.org>
4788
4789 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
4790 when keymap and cursor are setup.
4791
9062aa89
ST
47922004-03-14 Steven Tamm <steventamm@mac.com>
4793
b17856dd 4794 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 4795
e4b1b5ab
KS
47962004-03-14 Kim F. Storm <storm@cua.dk>
4797
4798 * dispextern.h (x_find_image_file): Add prototype.
4799
4800 * image.c (x_find_image_file): Make extern.
4801
4802 * xfns.c (x_find_image_file): Remove prototype.
4803
a6eeaa81 48042004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 4805
37264101 4806 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 4807
37264101 4808 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 4809
e69cfac2
RS
48102004-03-12 Richard M. Stallman <rms@gnu.org>
4811
4812 * fns.c (internal_equal): New arg PROPS controls comparing
4813 text properties. All callers changed.
4814 (Fequal_including_properties): New function.
4815 (syms_of_fns): defsubr it.
4816
45034953
KS
48172004-03-12 Kim F. Storm <storm@cua.dk>
4818
4819 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 4820
45034953
KS
4821 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
4822 (image_background, image_background_transparent): Fix prototypes.
4823
37264101 4824 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
4825
4826 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
4827 (x_query_font, x_find_ccl_program, x_set_window_size)
4828 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4829 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4830 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
4831
4832 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
4833 (x_query_font, x_find_ccl_program, x_set_window_size)
4834 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4835 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4836 (mac_draw_line_to_pixmap): Add prototypes.
4837
48382004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4839
4840 * macterm.c (XTread_socket): Fix mouse click on tool bar.
4841
a12d3d87
KS
48422004-03-11 Kim F. Storm <storm@cua.dk>
4843
d3ab1cf1
KS
4844 * dispextern.h: Move image related prototypes from xfns.c section
4845 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
4846 HAVE_X_WINDOWS.
37264101 4847
37de9f51 4848 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 4849 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
4850 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
4851 (GTK_OBJ) [USE_GTK]: New declaration.
4852 (obj): Add $(GTK_OBJ) to list.
4853
5243c06a 48542004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 4855
5243c06a
ST
4856 * image.c [MAC_OSX]: Include sys/stat.h
4857
4858 * macfns.c (syms_of_macfns): Remove definitions of things now
4859 defined in image.c
4860
c0f97789
KS
48612004-03-11 Kim F. Storm <storm@cua.dk>
4862
4863 The following changes consolidates the identical/similar image
4864 support code previously found in xfns.c, w32fns.c, and macfns.c
4865 into a new file image.c.
4866
4867 * makefile.w32-in (OBJ1): Add image.o.
4868 ($(BLD)/image.$(O)): Add dependencies.
4869
4870 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
4871 (image.o): Add dependencies.
37264101 4872
c0f97789
KS
4873 * image.c: New file with consolidated image support code.
4874 (COLOR_TABLE_SUPPORT): New define to control whether
4875 color table support is available (X only).
4876 (Bitmap_Record): Common name for x_bitmap_record,
4877 w32_bitmap_record, and mac_bitmap_record.
4878 (XImagePtr): Common name for pointer to XImage or equivalent.
4879 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
4880 to XImagePtr on X+MAC, and to HDC on W32.
4881 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
4882 (NO_PIXMAP): Common name for "None" or equivalent.
4883 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
4884 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
4885 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
4886 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
4887 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
4888 (XDrawLine): Define on MAC for code sharing.
4889 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
4890 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
4891 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4892 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4893 (x_reference_bitmap, x_create_bitmap_from_data)
4894 (x_create_bitmap_from_file, x_destroy_bitmap)
4895 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4896 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4897 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4898 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4899 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4900 (define_image_type, lookup_image_type, valid_image_p)
4901 (image_error, enum image_value_type, struct image_keyword)
4902 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4903 (make_image, free_image, prepare_image_for_display, image_ascent)
4904 (four_corners_best, image_background, image_background_transparent)
4905 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4906 (make_image_cache, free_image_cache, clear_image_cache)
4907 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4908 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4909 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4910 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4911 (init_image_func_pointer, image_load_quartz2d)
4912 (struct ct_color, init_color_table, free_color_table)
4913 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4914 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4915 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4916 (x_disable_image, x_build_heuristic_mask)
4917 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4918 (TIFF support, GIF support, Ghostscript support): Consolidate image
4919 code from xfns.c, w32fns.c, and macfns.c.
4920 (syms_of_image): Consolidate image related symbol setup here.
4921 (init_image): Consolidate image related initializations here.
37264101 4922
c0f97789
KS
4923 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
4924 and init_image. Remove call to init_xfns.
4925
37264101
SM
4926 * macterm.h (struct mac_bitmap_record): Add file member.
4927 Not currently used, but simplifies code sharing.
c0f97789
KS
4928
4929 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4930 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4931 (x_reference_bitmap, x_create_bitmap_from_data)
4932 (x_create_bitmap_from_file, x_destroy_bitmap)
4933 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4934 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4935 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4936 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4937 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4938 (define_image_type, lookup_image_type, valid_image_p)
4939 (image_error, enum image_value_type, struct image_keyword)
4940 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4941 (make_image, free_image, prepare_image_for_display, image_ascent)
4942 (four_corners_best, image_background, image_background_transparent)
4943 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4944 (make_image_cache, free_image_cache, clear_image_cache)
4945 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4946 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4947 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4948 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4949 (init_image_func_pointer, image_load_quartz2d)
4950 (struct ct_color, init_color_table, free_color_table)
4951 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4952 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4953 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4954 (x_disable_image, x_build_heuristic_mask)
4955 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4956 (TIFF support, GIF support, Ghostscript support): Merge with image
4957 code from xfns.c and macfns.c into image.c.
4958 (syms_of_xfns): Move image related symbols to image.c.
4959 (init_external_image_libraries, init_xfns): Remove; initialization
4960 moved to init_image in image.c.
4961
4962 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4963 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4964 (x_reference_bitmap, x_create_bitmap_from_data)
4965 (x_create_bitmap_from_file, x_destroy_bitmap)
4966 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4967 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4968 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4969 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4970 (define_image_type, lookup_image_type, valid_image_p)
4971 (image_error, enum image_value_type, struct image_keyword)
4972 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4973 (make_image, free_image, prepare_image_for_display, image_ascent)
4974 (four_corners_best, image_background, image_background_transparent)
4975 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4976 (make_image_cache, free_image_cache, clear_image_cache)
4977 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4978 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4979 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4980 (struct ct_color, init_color_table, free_color_table)
4981 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4982 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4983 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4984 (x_disable_image, x_build_heuristic_mask)
4985 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4986 (TIFF support, GIF support, Ghostscript support): Merge with image
4987 code from xfns.c and macfns.c into image.c.
4988 (syms_of_xfns): Move image related symbols to image.c.
4989 (init_external_image_libraries, init_xfns): Remove; initialization
4990 moved to init_image in image.c.
4991
4992 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4993 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4994 (x_reference_bitmap, x_create_bitmap_from_data)
4995 (x_create_bitmap_from_file, x_destroy_bitmap)
4996 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4997 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4998 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4999 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5000 (define_image_type, lookup_image_type, valid_image_p)
5001 (image_error, enum image_value_type, struct image_keyword)
5002 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5003 (make_image, free_image, prepare_image_for_display, image_ascent)
5004 (four_corners_best, image_background, image_background_transparent)
5005 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5006 (make_image_cache, free_image_cache, clear_image_cache)
5007 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5008 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5009 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5010 (struct ct_color, init_color_table, free_color_table)
5011 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5012 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5013 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5014 (x_disable_image, x_build_heuristic_mask)
5015 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5016 (TIFF support, GIF support, Ghostscript support): Merge with
5017 w32fns.c and macfns.c image code into image.c.
5018 (syms_of_xfns): Move image related symbols to image.c.
5019 (init_xfns): Remove; initialization moved to init_image in image.c.
5020
5021 * lisp.h (syms_of_image, init_image): Add protoypes.
5022 (init_xfns): Remove prototype.
5023
5024 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5025 (x_reference_bitmap, x_create_bitmap_from_data)
5026 (x_create_bitmap_from_file, x_destroy_bitmap)
5027 (x_create_bitmap_mask): Move prototypes from dispextern.h.
5028 (gamma_correct) [MAC_OS]: Add prototype.
5029
5030 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5031 (x_reference_bitmap, x_create_bitmap_from_data)
5032 (x_create_bitmap_from_file, x_destroy_bitmap)
5033 (x_create_bitmap_mask): Move prototypes to dispextern.h.
5034
6eced09c
KH
50352004-03-09 Kenichi Handa <handa@etlken2>
5036
5037 * coding.c (decode_coding_emacs_mule): Handle insufficent source
5038 correctly.
5039
9a7e95f3
RS
50402004-03-04 Richard M. Stallman <rms@gnu.org>
5041
04a6e76b
RS
5042 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
5043
9a7e95f3
RS
5044 * window.c (Fdisplay_buffer): Doc fix.
5045
5046 * buffer.c (Fpop_to_buffer): Doc fix.
5047
6c2488df
KS
50482004-03-03 Kim F. Storm <storm@cua.dk>
5049
5050 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
5051
d8d95bc7
SM
50522004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
5053
5054 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
5055
357589bf
RS
50562004-03-02 Richard M. Stallman <rms@gnu.org>
5057
5058 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
5059
409949b5
KH
50602004-03-02 Kenichi Handa <handa@m17n.org>
5061
5062 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
5063
d24bc50f
KS
50642004-03-02 Kim F. Storm <storm@cua.dk>
5065
5066 * window.h (struct window): New member overlay_arrow_bitmap.
5067
5068 * window.c (make_window): Initialize overlay_arrow_bitmap.
5069
5070 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
5071 implement and integrate multiple overlay arrows with redisplay.
5072 (syms_of_xdisp): DEFVAR_LISP and initialize it.
5073 (last_arrow_position, last_arrow_string): Replace by properties.
5074 (Qlast_arrow_position, Qlast_arrow_string)
5075 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
5076 (syms_of_xdisp): Intern and staticpro them.
5077 (overlay_arrow_string_or_property, update_overlay_arrows)
5078 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
5079 (overlay_arrow_at_row): New functions for multiple overlay arrows.
5080 (redisplay_internal): Use them instead of directly accessing
5081 Voverlay_arrow_position etc. for multiple overlay arrows.
5082 (mark_window_display_accurate): Use update_overlay_arrows.
5083 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
5084 (try_window_id): Use overlay_arrows_changed_p.
5085 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
5086 (display_line): Use overlay_arrow_at_row to check multiple
5087 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 5088 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
5089 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
5090 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
5091
5092 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
5093 (update_window_fringes): Remove unused code.
5094
c1464661
JR
50952004-03-01 Jason Rumney <jasonr@gnu.org>
5096
5097 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
5098
a64387ee
JB
50992004-03-01 Juanma Barranquero <lektu@terra.es>
5100
5101 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
5102
5103 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
5104
334faa08
JD
51052004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5106
5107 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
5108 how many colors can be displayed.
5109
bb62616f
KH
51102004-03-01 Kenichi Handa <handa@m17n.org>
5111
5112 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
5113 correctly.
5114
0fd16104
KS
51152004-02-28 Kim F. Storm <storm@cua.dk>
5116
5117 * dispnew.c (update_window): Update header line also if there are
5118 no other changes in window (move code after set_cursor label).
5119
5120 * lisp.h (mark_window_display_accurate): Remove prototype.
5121
5122 * window.c (window_loop, Fforce_window_update): Force mode line
5123 updates by setting prevent_redisplay_optimizations_p and
5124 update_mode_lines.
5125
b59dd9c8
JD
51262004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5127
d8d95bc7 5128 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
5129
5130 * xterm.c (x_calc_absolute_position): Call x_real_positions
5131 to get WM window sizes and use those to calculate position.
d8d95bc7 5132 (x_set_offset): Remove code commented out.
b59dd9c8 5133
a874691c
MB
51342004-02-28 Miles Bader <miles@gnu.org>
5135
5136 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
5137
3e0c6482
KS
51382004-02-28 Kim F. Storm <storm@cua.dk>
5139
5140 * keyboard.c (kbd_buffer_store_event_hold): New function to store
5141 an event into kbd fifo, but with special handling of quit event;
5142 a quit event is saved for later, and further events are discarded
5143 until the saved quit event has been processed.
5144 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
5145 (gen_help_event): Store help event in kbd fifo.
5146 (NREAD_INPUT_EVENTS): Remove.
5147 (read_avail_input): Adapt to new read_socket_hook interface.
5148 Remove allocation and initialization of local input_event buffer,
5149 as read_socket_hook stores events directly in fifo. Allocate and
5150 initialize local hold_quit event to handle postponed quit event
5151 (and store it if set by kbd_buffer_store_event_hold).
5152
5153 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
5154 (gen_help_event): Fix prototype.
5155
a64387ee 5156 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 5157 numcharsp args. Add hold_quit arg.
f63fd14e 5158 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
5159 directly in fifo using kbd_buffer_store_event_hold.
5160
5161 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
5162 (read_input_waiting): Adapt to new read_socket_hook interface.
5163 Remove allocation and initialization of local input_event buffer,
5164 as read_socket_hook stores events directly in fifo. Allocate and
5165 initialize local hold_quit event to handle postponed quit event
5166 (and store it if set by kbd_buffer_store_event_hold).
5167
a64387ee 5168 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
5169
5170 * termhooks.h (read_socket_hook): Fix prototype.
5171
5172 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
5173 numcharsp args. Add hold_quit arg.
f63fd14e 5174 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
5175 directly in fifo using kbd_buffer_store_event_hold.
5176
5177 * w32inevt.h (w32_console_mouse_position): Fix prototype.
5178
5179 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
5180 Add hold_quit arg. Rework to use just one, local, inev
5181 input_event. Store inev directly in fifo using
3e0c6482
KS
5182 kbd_buffer_store_event_hold. Update count in one place.
5183 Postpone call to gen_help_event until inev is stored; use new
5184 local do_help for this.
5185 Remove local emacs_event in handing of ButtonPress event; just use
5186 inev instead (so no reason to copy it later).
5187
5188 * xsmfns.c (x_session_check_input): Remove numchars arg.
5189
d8d95bc7
SM
5190 * xterm.c (x_focus_changed, x_detect_focus_change):
5191 Remove numchars arg. Always store event into bufp arg.
5192 Return nothing. Callers changed accordingly.
3e0c6482
KS
5193 (glyph_rect): Simplify.
5194 (STORE_KEYSYM_FOR_DEBUG): New macro.
5195 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
5196 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
5197 (current_hold_quit) [USE_GTK]: Add.
5198 (event_handler_gdk): Adapt to new handle_one_xevent.
5199 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
5200 Add hold_quit arg. Rework to use just one, local, inev
5201 input_event. Store inev directly in fifo using
3e0c6482
KS
5202 kbd_buffer_store_event_hold. Update count in one place.
5203 Postpone call to gen_help_event until inev is stored; use new
5204 local do_help for this.
5205 Simplify handling of keysyms (consolidate common code). Fix bug
5206 where count was updated with nchars instead of nbytes.
5207 Remove local emacs_event in handing of ButtonPress event; just use
5208 inev instead (so no reason to copy it later).
5209 Remove `out' label. Rename label `ret' to `done'; add various
5210 `goto done' to clarify code flow in deeply nested blocks.
5211 (x_dispatch_event): Simplify as handle_one_xevent now calls
5212 kbd_buffer_store_event itself.
f63fd14e 5213 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
5214 arg. Call handle_one_xevent with new arglist. Store event from
5215 x_session_check_input in fifo.
5216 [USE_GTK]: Setup current_hold_quit.
5217 Decrement handling_signal before unblocking input.
5218 (x_initialize) [USE_GTK]: Initialize current_count.
5219
5220 * xterm.h (x_session_check_input): Fix prototype.
5221
e3564461 52222004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 5223
d8d95bc7 5224 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 5225
e3564461
ST
5226 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
5227 macgui.h).
a64387ee 5228
e3564461 5229 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 5230
e3564461
ST
5231 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
5232 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
5233 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
5234 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
5235 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
5236 (Bitmap): Remove typedef.
5237 (Pixmap): Change int to GWorldPtr.
5238
d8d95bc7 5239 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 5240
d8d95bc7
SM
5241 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
5242 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
5243 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
5244 long representation.
5245 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
5246 colors used for masks.
5247 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 5248
e3564461
ST
5249 * macfns.c: Include sys/types.h and sys/stat.h.
5250 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
5251 Include QuickTime/QuickTime.h.
5252 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
5253 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
5254 functions defined in macterm.c.
5255 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
5256 (ZPixmap): New #define for compatibility with xfns.c.
5257 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5258 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
5259 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
5260 New functions.
e3564461 5261 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
5262 (x_destroy_x_image, unwind_create_frame, x_disable_image)
5263 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
5264 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
5265 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
5266 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
5267 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
5268 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
5269 long mixup.
5270 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
5271 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
5272 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
5273 (x_set_cursor_type, Fxw_color_values, valid_image_p)
5274 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
5275 (x_alloc_image_color, clear_image_cache, lookup_image)
5276 (x_find_image_file, xbm_read_bitmap_file_data)
5277 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
5278 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
5279 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
5280 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
5281 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 5282 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
5283 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
5284 #if 0.
5285 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
5286 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
5287 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
5288 New functions (from xfns.c).
e3564461
ST
5289 (Fx_create_frame): Record unwind_create_frame.
5290 (Fxw_display_color_p): Use dpyinfo->color_p.
5291 (Fx_display_grayscale_p, Fx_display_planes): Don't use
5292 dpyinfo->n_cbits.
5293 (Fx_display_color_cells): Use dpyinfo->n_planes;
5294 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
5295 (Qheuristic, cross_disabled_images, emboss_matrix)
5296 (laplace_matrix): New variables (from xfns.c).
5297 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
5298 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
5299 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
5300 (image_background_transparent): New function (from xfns.c).
5301 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
5302 (image_load_quicktime): Add declaration.
5303 [MAC_OSX] (image_load_quartz2d): Likewise.
5304 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
5305 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 5306 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
5307 (xbm_load_image_from_file, x_laplace_read_row)
5308 (x_laplace_write_row, pbm_read_file): Remove functions.
5309 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
5310 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
5311 (colors_in_color_table): Sync with xfns.c (although not used).
5312 (lookup_rgb_color): Don't lookup color table. Just do gamma
5313 correction.
5314 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
5315 (x_disable_image): New function (from xfns.c).
5316 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5317 (x_build_heuristic_mask): Sync with xfns.c.
5318 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
5319 (HAVE_PBM): Remove #ifdef.
5320 (pbm_load): Sync with xfns.c. Set img->width and img->height
5321 before IMAGE_BACKGROUND.
d8d95bc7 5322 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
5323 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
5324 Don't enclose with #if HAVE_PNG.
5325 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
5326 symbol _CGImageCreateWithPNGDataProvider is defined.
5327 Otherwise use image_load_quicktime.
e3564461 5328 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
5329 [HAVE_PNG] (png_load): Sync with xfns.c.
5330 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
5331 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
5332 HAVE_JPEG.
5333 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
5334 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
5335 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
5336 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
5337 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
5338 (tiff_image_p, tiff_load): Don't enclose declarations with #if
5339 HAVE_TIFF.
5340 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
5341 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
5342 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
5343 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
5344 New functions (from xfns.c).
e3564461 5345 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 5346 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
5347 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
5348 Don't enclose with #if HAVE_GIF.
5349 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
5350 animated gif. Otherwise use image_load_quicktime.
5351 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
5352 gif_DrawText to avoid conflict with QuickdrawText.h.
5353 [HAVE_GIF] (gif_load): Sync with xfns.c.
5354 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
5355 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
5356 Ghostscript is not supported yet).
5357 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
5358 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
5359 cross_disabled_images (from xfns.c). Remove #if 0 for supported
5360 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
5361 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
5362 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
5363 HAVE_PNG. Call EnterMovies to support animated gifs.
5364 Call init_image_func_pointer to bind a symbol
e3564461 5365 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 5366
d8d95bc7 5367 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
5368 (x_draw_bar_cursor): Sync declaration with xterm.c.
5369 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
5370 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
5371 graphics).
5372 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
5373 (mac_draw_line_to_pixmap, XCreatePixmap)
5374 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
5375 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
5376 New functions.
5377 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
5378 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
5379 Cast bits to char *.
e3564461
ST
5380 (reflect_byte): New function (from w32fns.c).
5381 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
5382 due to byte alignment.
d8d95bc7
SM
5383 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
5384 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
5385 (XSetForeground): Remove static (now used in macfns.c).
5386 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
5387 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
5388 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
5389 (x_draw_glyph_string_box, x_draw_image_foreground)
5390 (x_draw_image_foreground_1, x_draw_image_glyph_string)
5391 (x_draw_stretch_glyph_string, x_draw_glyph_string)
5392 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
5393 Sync with xterm.c.
5394 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
5395 than the xterm.c version when a strictly horizontal or vertical
5396 line is drawn.
5397 (XTset_terminal_window): Add static.
5398 (x_make_frame_visible): Add UNBLOCK_INPUT.
5399 (x_free_frame_resources): New funcion (from xterm.c).
5400 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
5401 occurs in tool bar area.
d8d95bc7
SM
5402 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
5403 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
5404 Initialize image cache.
5405 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
5406 Enclose unused functions with #if 0.
5407 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
5408 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 5409 from a mac font name to an XLFD font name according to its script code.
e3564461 5410 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 5411 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
5412 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
5413 whose name starts with `.'.
5414 (init_font_name_table): Use decode_mac_font_name. Add both
5415 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
5416 of a font is smJapanese.
5417 (mac_do_list_fonts): New function to list fonts that match a given
5418 pattern.
5419 (x_list_fonts, XLoadQueryFont): Use it.
5420 (XLoadQueryFont): Set rbearing field for each variable width
5421 character to avoid needless redraw.
5422 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
5423
446f5f3d
KS
54242004-02-26 Kim F. Storm <storm@cua.dk>
5425
af617d0f
KS
5426 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
5427 as read_socket_hook handler on X aborts if buffer is too small
5428 and W32 handler doesn't always check buffer limit.
5429
446f5f3d
KS
5430 * xdisp.c (handle_single_display_prop): Handle left-fringe and
5431 right-fringe similar to a display margin image. Specifically,
5432 the characters having the fringe prop are no longer shown, and
5433 we use IT_IMAGE/next_element_from_image with image_id = -1 to
5434 do this. Set fringe bitmap face_id in it->face_id.
5435 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
5436 still realize it->face (i.e. the fringe bitmap face).
5437
7d8a0b55
MB
54382004-02-25 Miles Bader <miles@gnu.org>
5439
5440 * xdisp.c (check_it): Check string/string_pos consistency.
5441 (init_iterator): Initialize string-related fields properly.
5442
54432004-02-11 Miles Bader <miles@gnu.org>
5444
5445 * xdisp.c (produce_image_glyph): Force negative descents to zero.
5446
54472004-02-10 Miles Bader <miles@gnu.org>
5448
5449 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
5450 BLOCK_INPUT can be nested, so it doesn't make much sense.
5451
a64387ee 54522004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
5453
5454 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
5455 (xbm_read_bitmap_data): Use unsigned char for image data.
5456
92f5fba2
LT
54572004-02-23 Luc Teirlinck <teirllm@auburn.edu>
5458
5459 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
5460
8565fb3d
JR
54612004-02-22 Jason Rumney <jasonr@gnu.org>
5462
5463 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
5464 correctly over other bitmaps.
5465
a6eeaa81 54662004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
5467
5468 * emacs.c (USAGE1): Split into two halves.
5469 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
5470 (USAGE3): Rename from USAGE2.
5471 (USAGE4): Rename from USAGE3.
f8125c39 5472
4effffca
EZ
54732004-02-21 Juri Linkov <juri@jurta.org>
5474
5475 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
5476 Fix --multibyte. Move --help, --version to USAGE2. Add alias
5477 --file. Fix -f, -l. Sort options. Untabify.
5478 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
5479
923c1e6f
LT
54802004-02-19 Luc Teirlinck <teirllm@auburn.edu>
5481
5482 * category.c (Fdefine_category, Fcategory_docstring)
5483 (Fget_unused_category, Fset_category_table)
5484 (Fcategory_set_mnemonics): Doc fixes.
5485
b0e225fd
KS
54862004-02-20 Kim F. Storm <storm@cua.dk>
5487
5488 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
5489 The following changes are relative to the 2004-01-21 revision.
5490 (NREAD_INPUT_EVENTS): Define as max number of input events to read
5491 in one call to read_socket_hook. Value is 8.
5492 (read_avail_input): Separate and rework handling of read_socket_hook
5493 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
5494 in read_socket_hook case, and repeat if full buffer is read.
5495 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
5496 In non-read_socket_hook case, just use a single input_event, and
5497 call kbd_buffer_store_event on the fly for each character.
5498
b15aa9f9
SM
54992004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
5500
5501 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
5502 Remove unused `gu' alternative.
5503
83c9aa95
AS
55042004-02-19 Andreas Schwab <schwab@suse.de>
5505
5506 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
5507 warning.
5508
cc808173
KS
55092004-02-18 Kim F. Storm <storm@cua.dk>
5510
5511 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
5512 Fix last change.
5513
ab90a54d
KS
55142004-02-17 Kim F. Storm <storm@cua.dk>
5515
b26f249f
KS
5516 * xdisp.c (fast_find_position): Fix return value of new version;
5517 it was inverted compared to the 21.1 version.
5518 (get_window_cursor_type): Don't look at glyph if NULL.
5519 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 5520
ab90a54d
KS
5521 * keyboard.c: Rework previous change; it didn't consider that the
5522 buf array was allocated on the stack.
5523 (prev_read): Remove variable.
5524 (read_avail_input_buf): New static event buffer array.
b9568dfc 5525 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 5526 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
5527 Use in_read_avail_input to handle re-entrance; when re-entered,
5528 fully initialize and use tmp_buf array instead of read_avail_input_buf.
5529 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
5530 is always cleared on entry. To ensure that, we clear (just) the
5531 entries that were used before we return.
5532 (init_keyboard): Initialize read_avail_input_buf here.
5533
b6189c3b 55342004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
5535
5536 * cmds.c (Fend_of_line): Doc fix.
5537
7b5368c1
EZ
55382004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
5539
5540 * keyboard.c (prev_read): New static variable.
5541 (read_avail_input): Use it to zero out only those slots in buf[]
5542 that were used last time we were called.
5543
a6eeaa81 55442004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
5545
5546 * Makefile.in (obj): Move fringe.o from here...
5547 (XOBJ, MAC_OBJ): ...to here.
5548
159c348e
SE
55492004-02-16 Stephen Eglen <stephen@gnu.org>
5550
5551 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
5552
d2f14999
SM
55532004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
5554
b15aa9f9
SM
5555 * data.c (Fbyteorder):
5556 * fringe.c (Fdefine_fringe_bitmap):
5557 * xdisp.c (handle_single_display_prop):
d2f14999
SM
5558 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
5559
8d50508a
JR
55602004-02-16 Jason Rumney <jasonr@gnu.org>
5561
5562 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
5563
dd4497dc
ST
55642004-02-15 Steven Tamm <steventamm@mac.com>
5565
5566 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
5567 controlling emulation of a three button mouse with option and
5568 command keys.
5569 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 5570 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 5571
c9159cb3
KS
55722004-02-15 Kim F. Storm <storm@cua.dk>
5573
2cc52658
KS
5574 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
5575
c9159cb3
KS
5576 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
5577 Perform byte-swapping.
5578
12fde2dc
KS
55792004-02-14 Kim F. Storm <storm@cua.dk>
5580
5581 * dispextern.h (struct draw_fringe_bitmap_params): Change member
5582 bits from char to short to facilitate wider bitmaps.
5583 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
5584 member.
5585
5586 * fringe.c (struct fringe_bitmap): Change member bits from char to
5587 short to facilitate 16 bits wide bitmaps. Modify all standard
5588 bitmaps accordingly.
5589 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
5590 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
5591 (draw_fringe_bitmap): Ditto.
5592 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
5593 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
5594 handle up to 16 bits wide bitmaps.
5595 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 5596 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
5597
5598 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
5599 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
5600 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
5601
5602 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
5603 so it is no longer necessary to expand them here.
5604
5605 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
5606
9d7271e8
KS
56072004-02-12 Kim F. Storm <storm@cua.dk>
5608
5609 * window.c (Fwindow_fringes): Doc fix.
5610
706c1e4f
JD
56112004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5612
5613 * xselect.c (x_get_foreign_selection): Add new optional parameter
5614 time_stamp.
5615 (Fx_get_selection_internal): Ditto, pass time_stamp to
5616 x_get_foreign_selection.
5617
5618 * data.c (Fbyteorder): New function.
5619
c2d12b5d
JD
56202004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5621
5622 * atimer.c: Move include stdio.h to same place as in other files.
5623
5624 * region-cache.c: Ditto.
5625
5626 * sysdep.c: Ditto.
5627
5628 * xfaces.c: Ditto.
5629
4c1947b9
SS
56302004-02-09 Sam Steingold <sds@gnu.org>
5631
89458937 5632 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 5633
82722af3
KS
56342004-02-09 Kim F. Storm <storm@cua.dk>
5635
5636 * fringe.c: New file. Move original fringe related declarations
5637 and code from dispextern.h and xdisp.c here.
5638 Rework code to support user defined fringe bitmaps, redefining
5639 standard bitmaps, ability to overlay user defined bitmap with
5640 overlay arrow bitmap, and add faces to bitmaps.
5641 (Voverflow_newline_into_fringe): Declare here.
5642 (enum fringe_bitmap_align): New enum.
5643 (..._bits): All bitmaps are now defined without bitswapping; that
5644 is now done in init_fringe_once (if necessary).
5645 (standard_bitmaps): New array with specifications for the
5646 standard fringe bitmaps.
5647 (fringe_faces): New array.
5648 (valid_fringe_bitmap_id_p): New function.
5649 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
5650 (draw_fringe_bitmap): New function which draws fringe bitmap,
5651 possibly overlaying bitmap with cursor in right fringe or the
5652 overlay arrow in the left fringe.
5653 (update_window_fringes): Do not handle overlay arrow here.
5654 Compare and copy fringe bitmap faces.
5655 (init_fringe_bitmap): New function.
5656 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
5657 define and destroy user defined fringe bitmaps.
5658 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
5659 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
5660 (syms_of_fringe): New function. Defsubr new DEFUNs.
5661 DEFVAR_LISP Voverflow_newline_into_fringe.
5662 (init_fringe_once, init_fringe): New functions.
5663 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 5664
82722af3
KS
5665 * Makefile.in (obj): Add fringe.o.
5666 (fringe.o): New dependencies.
5667
5668 * dispextern.h (FRINGE_ID_BITS): New definition for number of
5669 bits allocated to hold a fringe number. Increase number of bits
5670 from 4 to 8 to allow user defined fringe bitmaps.
5671 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
5672 left_user_fringe_face_id, right_user_fringe_bitmap,
5673 right_user_fringe_face_id.
5674 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
5675 Move to new file fringe.c.
5676 (MAX_FRINGE_BITMAPS): Define here.
5677 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
5678 and overlay_p. Change member which to int.
5679 (struct redisplay_interface): New members define_fringe_bitmap
5680 and destroy_fringe_bitmap.
5681 (valid_fringe_bitmap_id_p): Add prototype.
5682 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
5683
5684 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
5685 arrows.
5686 (update_frame): Do flush_display if force_flush_display_p to
5687 ensure display (specifically fringes) are updated in a timely
5688 manner when resizing the frame by dragging the mouse.
5689 (update_window_line): Update row if overlay arrow changed.
5690 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
5691 or overlay arrow changed.
5692
5693 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
5694 syms_of_fringe, and init_fringe.
5695
5696 * frame.h (struct frame): New member force_flush_display_p.
5697
5698 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
5699 Add prototypes.
5700
a3993cc8 5701 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 5702 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
5703 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
5704 Use cursor color for displaying cursor in fringe.
82722af3
KS
5705 (x_redisplay_interface): Add null handlers for
5706 define_fringe_bitmap and destroy_fringe_bitmap functions.
5707
5708 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
5709 xterm.c to handle overlayed fringe bitmaps and to use cursor color
5710 for displaying cursor in fringe.
5711 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
5712 specific functions to define and destroy fringe bitmaps in fringe_bmp.
5713 (w32_redisplay_interface): Add them to redisplay_interface.
5714 (w32_term_init): Call w32_init_fringe instead of explicitly
5715 defining fringe bitmaps in fringe_bmp array.
5716 (x_delete_display): Call w32_reset_fringes instead of explicitly
5717 destroying fringe bitmaps in fringe_bmp array.
5718
5719 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
5720 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
5721 (continued_bits, continuation_bits, ov_bits, first_line_bits)
5722 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
5723 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
5724 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
5725 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
5726 Move fringe handling vars and code to new file fringe.c.
5727 (handle_display_prop): Handle left-fringe and right-fringe
5728 display properties; store user fringe bitmaps in iterator.
5729 (move_it_in_display_line_to): Handle cursor in fringe at eob.
5730 (clear_garbaged_frames): Set force_flush_display_p if resized.
5731 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
5732 (display_line): Handle cursor in fringe at eob.
5733 (display_line): Set row user fringe bitmaps from iterator.
5734
5735 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
5736 Use cursor color for displaying cursor in fringe.
5737 (x_redisplay_interface): Add null handlers for
5738 define_fringe_bitmap and destroy_fringe_bitmap functions.
5739
030400eb
JD
57402004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5741
5742 * macfns.c (Fx_change_window_property): Make doc string and
5743 parameters same as for X version.
5744
5745 * w32fns.c (Fx_change_window_property): Ditto.
5746
3af55251
KS
57472004-02-07 Kim F. Storm <storm@cua.dk>
5748
ec110e9e
KS
5749 * xdisp.c (hscroll_window_tree): Position cursor near to right
5750 margin in hscrolled window when jumping to end of line (rather
5751 than centering cursor).
5752
3af55251
KS
5753 * process.c (wait_reading_process_input): Don't do adaptive read
5754 buffering if waiting for a specific process.
5755
b0c138ce
LT
57562004-02-05 Luc Teirlinck <teirllm@auburn.edu>
5757
5758 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
5759 (Fread_minibuffer, Feval_minibuffer)
5760 (Fread_string, Fread_no_blanks_input)
5761 (Fcompleting_read): Doc fixes.
5762 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
5763 completion-regexp-list. Define Qcase_fold_search and staticpro it.
5764 (read_minibuf): Fix initial comment.
5765 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 5766 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
5767 checking completion-regexp-list.
5768 (Fdisplay_completion_list): Make it handle arguments that are
5769 symbols. Doc fix.
5770
9676f5ad 57712004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 5772
9676f5ad 5773 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 5774
9676f5ad
JD
5775 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
5776 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 5777 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 5778 format. Remove unused variable cons.
5b698285
JD
5779
5780 * xselect.c: Include stdio,h.
5781
fc1d15f6
KH
57822004-02-05 Kenichi Handa <handa@m17n.org>
5783
ebaff4af
KH
5784 * fns.c (Fset_char_table_range): Fix previous change.
5785
fc1d15f6
KH
5786 * buffer.c (Fset_buffer_multibyte): Fix docstring.
5787
9676f5ad
JD
57882004-02-04 Luc Teirlinck <teirllm@auburn.edu>
5789
5790 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
5791
da75761f
SM
57922004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
5793
5794 * keymap.c (Vmouse_events): Rename from Vmenu_events.
5795 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
5796
13c5d120
KH
57972004-02-04 Kenichi Handa <handa@m17n.org>
5798
5799 * fns.c (Fset_char_table_range): Handle charsets ascii,
5800 eight-bit-control, and eight-bit-graphic correctly.
5801
2883d842
JR
58022004-02-03 Jason Rumney <jasonr@gnu.org>
5803
5804 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
5805
5806 * w32fns.c (x_to_w32_font): Likewise.
5807
69eff41f
JD
58082004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5809
5810 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
5811 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
5812
5813 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
5814 ClientMessages.
5815
5816 * xselect.c: Include termhooks.h and X11/Xproto.h
5817 (x_check_property_data, x_fill_property_data)
5818 (x_property_data_to_lisp, mouse_position_for_drop)
5819 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 5820 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
5821 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
5822
da75761f 5823 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
5824 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
5825 OUTER_P.
5826 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
5827 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
5828 if vector_ret_p is true.
5829 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 5830
a6eeaa81 58312004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
5832
5833 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
5834 basename of FILE relative to it, not FILE itself.
5835
09721b31
KH
58362004-02-02 Kenichi Handa <handa@m17n.org>
5837
5838 * coding.c (coding_restore_composition): Check invalid
5839 composition data more rigidly.
5840
eb996101
LT
58412004-01-30 Luc Teirlinck <teirllm@auburn.edu>
5842
5843 * fileio.c (Fread_file_name_internal): Correctly handle the case
5844 where insert-default-directory is nil.
5845 (Fread_file_name): Always return an empty string if the user exits
5846 with an empty minibuffer. Adapt the docstring accordingly.
5847 (syms_of_fileio): Adapt the docstring of insert-default-directory
5848 to the change in Fread_file_name.
5849
a6eeaa81 58502004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
5851
5852 * alloca.c [!alloca]: Fix the prototype for xfree.
5853
13f52ed8
KH
58542004-01-29 Kenichi Handa <handa@m17n.org>
5855
5856 * fns.c (string_char_to_byte): Optimize for ASCII only string.
5857 (string_byte_to_char): Likewise.
5858
d57625a0
JR
58592004-01-28 Peter Runestig <peter@runestig.com>
5860
5861 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
5862
a64387ee 58632004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
5864
5865 * unexmacosx.c (unexec_copy): Do not copy more than was
5866 requested to prevent overwriting during unexec.
5867
eb37b8fd
JD
58682004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5869
ce38070a
JD
5870 * process.c (sigchld_handler): Add comment about not calling malloc.
5871
eb37b8fd
JD
5872 * process.h: Add extern to synch_process_termsig.
5873
a64387ee 58742004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 5875
da75761f
SM
5876 * macterm.c (make_mac_frame, make_mac_terminal_frame):
5877 Move setting of scroll bars from make_mac_frame to
5878 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 5879
d62a265d
RS
58802004-01-26 Richard M. Stallman <rms@gnu.org>
5881
5882 * search.c (Freplace_match): Handle nonexistent
5883 back-references properly.
5884
58852004-01-03 Richard M. Stallman <rms@gnu.org>
5886
5887 * window.c (decode_any_window): New function.
5888 (Fwindow_height, Fwindow_width, Fwindow_edges)
5889 (Fwindow_pixel_edges, Fwindow_inside_edges)
5890 (Fwindow_inside_pixel_edges): Use decode_any_window.
5891
ff236419
JD
58922004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5893
5894 * process.h: synch_process_termsig new variable.
5895
5896 * callproc.c: Define synch_process_termsig.
5897 (Fcall_process): Initiate synch_process_termsig to zero and
5898 check if non-zero and get signal name after subprocess has ended.
5899
5900 * process.c (sigchld_handler): Set synch_process_termsig
5901 if terminated by a signal. synch_process_death setting removed.
5902
5903 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
5904
41b867ea
AS
59052004-01-26 Andreas Schwab <schwab@suse.de>
5906
5907 * print.c (print_preprocess): Declare size as EMACS_INT to not
5908 lose bits.
5909 (print_object): Likewise.
5910 * alloc.c (Fpurecopy): Likewise.
5911
a08084ff
LT
59122004-01-25 Luc Teirlinck <teirllm@auburn.edu>
5913
5914 * window.c (Fwindow_minibuffer_p): Doc fix.
5915
b19ac475
JY
59162004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
5917
5918 * editfns.c (Fformat): Make both passes accept the same set of flags.
5919
fe905025
KH
59202004-01-23 Kenichi Handa <handa@m17n.org>
5921
5922 * fns.c (Fmd5): If OBJECT is a buffer different from the current
5923 one, set buffer to OBJECT temporarily.
5924
438fc6c0
SM
59252004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5926
455316e2
SM
5927 * keyboard.c (kbd_buffer_gcpro): Remove.
5928 (kbd_buffer_store_event, clear_event, Fdiscard_input)
5929 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
5930 Don't initialize and/or maintain the variable any more. It was made
5931 redundant by my commit of 2003-06-15.
5932
438fc6c0
SM
5933 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
5934
5335a4ee
JD
59352004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5936
5937 * lisp.h: Add undef DECL_ALIGN.
5938
dcdaeebc
SM
59392004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5940
5941 * process.c (wait_reading_process_input) [SYNC_INPUT]:
5942 Check interrupt_input_pending explicitly.
5943
5944 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
5945
5946 * keyboard.c (handle_async_input): New fun,
5947 extracted from input_available_signal.
5948 (input_available_signal, reinvoke_input_signal): Use it.
5949
9076a823
SM
59502004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
5951
d7107586
SM
5952 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
5953
5954 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
5955 manipulation macros for when tags are in the lower bits.
5956 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
5957 (DECL_ALIGN): New macro.
5958 (DEFUN): Use it.
5959
5960 * lisp.h [ENABLE_CHECKING]: Don't force union type.
5961
5962 * s/darwin.h (__attribute__): Remove outdated workaround.
5963
5964 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
5965
5966 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
5967 Don't check range of malloc address.
5968 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
5969
9076a823
SM
5970 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
5971
5972 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
5973
ba029065
KH
59742004-01-19 Kenichi Handa <handa@m17n.org>
5975
5976 * fontset.c (fontset_font_pattern): Fix previous change.
5977
7af0e8d7
MB
59782004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
5979
5980 * xdisp.c (Voverflow_newline_into_fringe)
5981 (move_it_in_display_line_to, redisplay_internal)
5982 (update_window_fringes, redisplay_window, display_line, window):
5983 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
5984 that it compiles without a window-system.
5985 * dispnew.c (direct_output_for_insert, update_window): Likewise.
5986
77a9cf69
KS
59872004-01-16 Kim F. Storm <storm@cua.dk>
5988
5989 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
5990
a64387ee 5991 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
5992 buffer_local_flags for indicate_buffer_boundaries.
5993 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
5994 default- variable for it.
5995
5996 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
5997 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 5998 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
5999 overflowing newlines into right fringe.
6000 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
6001 and indicate_bottom_line_p for buffer boundaries and scrolling.
6002 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
6003 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
6004 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
6005 and HOLLOW_SQUARE_BITMAP.
6006 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
6007 Add prototypes.
6008
6009 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
6010 instead of related indicator fields.
6011 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
6012 (direct_output_for_insert): Handle exact width lines like
6013 contined lines. Call update_window_fringes.
6014 (update_window): Call update_window_fringes.
6015 (scrolling_window): Don't skip desired rows with changed bitmaps.
6016 Check if fringe bitmaps changes when assigning scrolled rows.
6017
6018 * xdisp.c (Voverflow_newline_into_fringe): New variable.
6019 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
6020 (move_it_in_display_line_to): Overflow newline into fringe for
6021 rows that are exactly as wide as the window.
6022 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
6023 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
6024 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
6025 (fringe_bitmaps): Add new bitmaps.
6026 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
6027 Select proper bitmap for cursor in fringe when appropriate.
6028 Handle alignment of bitmap to top or bottom of row.
6029 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
6030 done by update_window_fringes.
6031 (update_window_fringes, draw_window_fringes): New functions.
6032 (redisplay_internal): Call update_window_fringes in case only
6033 cursor row is updated.
6034 (redisplay_window): Call update_window_fringes.
6035 Explicitly call draw_window_fringes if redisplay was done using
6036 the current matrix or the overlay arrow is in the window.
6037 (try_window_reusing_current_matrix): Mark scrolled rows for
6038 fringe update (to update buffer-boundaries / scrolling icons).
6039 (find_last_unchanged_at_beg_row): Handle exact width lines line
6040 continued lines.
6041 (display_line): Overflow newline into fringe for rows that are
6042 exactly as wide as the window. Don't append space for newline
d7107586 6043 in this case.
77a9cf69
KS
6044 (notice_overwritten_cursor): Explicitly clear cursor bitmap
6045 in fringe as if it had been overwritten.
6046 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 6047 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
6048 void-text-area-pointer as user options.
6049 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 6050
77a9cf69
KS
6051 * xterm.c (x_update_window_end): Call draw_window_fringes.
6052 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
6053 in row instead of actually drawing fringe bitmaps.
6054 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
6055 (x_draw_window_cursor): Draw cursor in fringe.
6056
6057 * w32term.c (x_update_window_end): Call draw_window_fringes.
6058 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
6059 in row instead of actually drawing fringe bitmaps.
6060 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
6061 (w32_draw_window_cursor): Draw cursor in fringe.
6062
6063 * macterm.c (x_update_window_end): Call draw_window_fringes.
6064 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
6065 in row instead of actually drawing fringe bitmaps.
6066 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
6067 (mac_draw_window_cursor): Draw cursor in fringe.
6068
a633a954
JD
60692004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6070
6071 * xterm.c (handle_one_xevent): Don't handle characters that are part
6072 of an old style (XLookupString) compose sequence.
6073
80460525
KH
60742004-01-15 Kenichi Handa <handa@m17n.org>
6075
6076 * search.c (Freplace_match): Use make_multibyte_string or
6077 make_unibyte_string according to the buffer multibyteness.
6078
7fc34f85
SM
60792004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
6080
6081 * alloc.c (struct interval_block, struct string_block)
6082 (struct symbol_block, struct marker_block, live_string_p)
6083 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
6084 Better preserve alignment for objects in blocks.
6085 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
6086
6087 * lread.c (defvar_per_buffer): Remove dead declaration.
6088
6089 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
6090 space size.
6091
66070bd1
JD
60922004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6093
6094 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
6095 if a key press should pop down. Only pop down if a key is pressed
6096 outside the menu/dialog.
6097 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
6098 popup_get_selection.
6099 (create_and_show_dialog): Pass 1 for down_on_keypress to
6100 popup_get_selection.
6101
de7515d6
JD
61022004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6103
6104 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
6105 BLOCK/UNBLOCK_INPUT.
6106
160b1b50
JD
61072004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6108
6109 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
6110 specified.
6111
3a9f36e6
KH
61122004-01-08 Kenichi Handa <handa@m17n.org>
6113
6114 * editfns.c (Fformat): Fix '&' to '&&'.
6115
3803eb32
AS
61162004-01-08 Andreas Schwab <schwab@suse.de>
6117
6118 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
6119 size if PSEUDOVECTOR_FLAG is set.
6120
9da88f37
KH
61212004-01-07 Kenichi Handa <handa@m17n.org>
6122
74ac5074
KH
6123 * charset.c (Fdeclare_equiv_charset): Fix docstring.
6124
9da88f37
KH
6125 * fontset.c (fontset_ref_via_base): Fix previous change.
6126
05faee07
KS
61272004-01-07 Kim F. Storm <storm@cua.dk>
6128
6129 * process.c (read_process_output): Only activate adaptive
6130 buffering if we read less than 256 bytes at a time.
6131
634910c8
KS
61322004-01-06 Kim F. Storm <storm@cua.dk>
6133
6134 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
6135 object and image object. Return glyph width and height.
6136 (mode_line_string, marginal_area_string): Ditto.
6137
6138 * dispextern.h (buffer_posn_from_coords, mode_line_string)
6139 (marginal_area_string): Fix prototypes.
6140
6141 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 6142 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
6143 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
6144
6145 * keyboard.c (make_lispy_position): Use modified mode_line_string,
6146 buffer_posn_from_coords, and marginal_area_string functions to
6147 include both string object and image object in the lispy position.
6148 Also add actual glyph width and height to position.
6149 (read_key_sequence): Use real buffer position from mouse
6150 event to find keymap property even when click is in marginal area.
6151
6152 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
6153 mode_line_string and marginal_area_string functions to handle
6154 both string object and image object properties.
d7107586 6155
57951c2e
AS
61562004-01-06 Andreas Schwab <schwab@suse.de>
6157
6158 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
6159 character.
6160
181e6a61
AS
61612004-01-02 Andreas Schwab <schwab@suse.de>
6162
d7107586
SM
6163 * macterm.c (emacs_options, x_initialized, same_x_server):
6164 Remove unused (and duplicated) definitions.
181e6a61 6165
31e0fbdd
KS
61662004-01-02 Kim F. Storm <storm@cua.dk>
6167
6168 * process.h (struct Lisp_Process): New members for adaptive read
6169 buffering: adaptive_read_buffering, read_output_delay, and
6170 read_output_skip.
6171
6172 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
6173 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
6174 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
6175 (process_output_delay_count, process_output_skip): New vars.
6176 (Vprocess_adaptive_read_buffering): New variable.
6177 (make_process): Initialize adaptive read buffering members.
6178 (Fstart_process): Set adaptive_read_buffering member.
6179 (deactivate_process): Cleanup adaptive read buffering.
6180 (wait_reading_process_input): Temporarily omit delayed
6181 subprocesses from the set of file descriptors to read from;
6182 adjust the select timeout if we skipped any subprocesses.
6183 (read_process_output): Increase adaptive read buffering delay if
6184 we read less than a full buffer; reduce delay when we read a
6185 full buffer.
6186 (send_process): Simplify using local Lisp_Process var.
6187 Reset adaptive read buffering delay after write.
6188 (init_process): Initialize process_output_delay_count and
6189 process_output_skip.
6190 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
6191
68c6a789
JR
61922004-01-01 Jason Rumney <jasonr@gnu.org>
6193
d7107586 6194 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 6195
3f70fe82
LT
61962003-12-30 Luc Teirlinck <teirllm@auburn.edu>
6197
6198 * print.c (Ferror_message_string): Add hyperlink in the docstring
6199 to the definition of `signal' in the Elisp manual.
6200 * eval.c (Fsignal): Ditto.
6201
b6189c3b 62022003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
6203
6204 * fns.c (internal_equal): Return t for two NaN arguments.
6205
7abd90ea
RS
62062003-12-29 Richard M. Stallman <rms@gnu.org>
6207
6208 * data.c (store_symval_forwarding): Handle setting
6209 default-fill-column, etc., by changing the value in
6210 buffers that use the default.
6211
6212 * minibuf.c (Fset_minibuffer_window): Doc fix.
6213
6214 * fileio.c (choose_write_coding_system): Ignore auto_saving
6215 if using the visited file for auto saves.
6216 (Fwrite_region): Don't update SAVE_MODIFF
6217 if auto-saving in visited file.
6218
3e7cfcdc
KH
62192003-12-29 Kenichi Handa <handa@m17n.org>
6220
6221 * dispextern.h (face_font_available_p): Extern it.
6222
6223 * fontset.c (Voverriding_fontspec_alist): New variable.
6224 (lookup_overriding_fontspec): New function.
d7107586 6225 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
6226 (fontset_font_pattern): Likewise.
6227 (regulalize_fontname): New function.
6228 (Fset_fontset_font): Call regulalize_fontname.
6229 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
6230 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
6231 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
6232
6233 * xfaces.c (face_font_available_p): New function.
6234
7abd90ea
RS
62352003-12-28 Richard M. Stallman <rms@gnu.org>
6236
6237 * buffer.c (Fother_buffer): Don't crash if BUF is nil
6238 or if its name is nil.
6239
6240 * buffer.c (Fkill_buffer): Don't delete auto-save file
6241 if it's the same as the visited file.
6242
de1d1a40
LT
62432003-12-28 Luc Teirlinck <teirllm@auburn.edu>
6244
6245 * coding.c (Fcheck_coding_system): Doc fix.
6246
204fb75e
KS
62472003-12-28 Kim F. Storm <storm@cua.dk>
6248
6249 * Makefile.in (eval.o): Depend on dispextern.h.
6250
6251 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
6252 image glyph using image's ascent.
6253 (mode_line_string): Return image glyph as object clicked on.
6254 Adjust y0 for image glyph using image's ascent.
6255
6256 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
6257 (struct glyph): New members, ascent and descent. Used to save
6258 this glyph's ascent and descent, instead of having.
6259 (struct glyph): Declare member face_id using FACE_ID_BITS.
6260 (find_hot_spot): Add prototype.
6261
6262 * keyboard.c (Qimage): Remove extern (now in lisp.h).
6263 (QCmap): Declare extern.
6264 (make_lispy_position): When position is inside image hot-spot,
6265 use hot-spot element's id as posn element.
6266
6267 * lisp.h (IMAGEP): New macro to test for image object type.
6268 (Qimage): Declare extern.
6269
6270 * macfns.c (Qimage): Remove extern (now in lisp.h).
6271 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6272
6273 * macterm.c (Qface, Qmouse_face): Remove unused externs.
6274
6275 * w32fns.c (Qimage): Remove extern (now in lisp.h).
6276 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6277
6278 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
6279
6280 * w32term.c (Qface, Qmouse_face): Remove unused externs.
6281
6282 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
6283 pointer types.
6284 (Qrelative_width, Qalign_to): Remove unused variables.
6285 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
6286 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
6287 image maps.
d7107586 6288 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
6289 new dx and dy args.
6290 Remove buffer_only_p arg (always 0). Simplify code accordingly.
6291 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
6292 than row's ascent and height, to get sensible height on tall rows.
6293 (build_desired_tool_bar_string): Remove Qimage extern.
6294 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
6295 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
6296 image glyph is alone on the last line.
6297 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 6298 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 6299 (on_hot_spot_p): New function to check if position is inside an
d7107586 6300 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
6301 (find_hot_spot): New function to search for image hot-spot.
6302 (Flookup_image_map): New defun to search for image hot-spot.
6303 (define_frame_cursor1): New aux function to determine frame pointer.
6304 (note_mode_line_or_margin_highlight, note_mouse_highlight):
6305 Handle `pointer' text property and :pointer image property to
6306 control frame pointer shape. Detect image hot-spots for pointer
6307 and help_echo properties. Use define_frame_cursor1.
6308 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 6309 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
6310 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
6311
6312 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
6313
6314 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
6315 (Qimage): Remove extern (now in lisp.h).
6316 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6317
6318 * xmenu.c (show_help_event): Remove unused code.
6319
6320 * xterm.c (Qface, Qmouse_face): Remove unused externs.
6321 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
6322 row's ascent and descent, to get a sensible height on tall rows.
6323
fc052137
LT
63242003-12-25 Luc Teirlinck <teirllm@auburn.edu>
6325
6326 * minibuf.c (Fcompleting_read): Undo previous change.
6327
a64387ee 63282003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
6329
6330 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
6331 Arguments GCPRO'ed in call to file name handler.
6332
56ffd194
TTN
63332003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
6334
6335 * termcap.c (tgetst1): Scan for "%pN"; if all
6336 N are continuous in [1,9], remove all "%pN".
6337
5202d23d
JD
63382003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6339
f26fab36
JD
6340 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
6341
5202d23d
JD
6342 * xfaces.c (lface_fully_specified_p): Take into account that
6343 MAC OS always have unspecified stipple.
6344
8babaa59
TTN
63452003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
6346
6347 * tparam.c (tparam1): Add handling for `%pN', which
6348 means use param N for the next substitution.
6349
2d176448
TTN
63502003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
6351
6352 * xfaces.c (Fcolor_gray_p): Fix omission bug:
6353 In case `frame' is nil, consult the selected frame.
6354 (Fcolor_supported_p): Likewise.
6355
adb0708c
LT
63562003-12-23 Luc Teirlinck <teirllm@auburn.edu>
6357
000eeb15
LT
6358 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
6359 Doc fixes.
0dc72b11
LT
6360
6361 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
6362 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
6363 (Fread_from_minibuffer): Delete code moved into read_minibuf.
6364 Doc fix.
6365 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
6366 read_minibuf.
6367 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 6368 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 6369
2e4d132b
KH
63702003-12-03 Kenichi Handa <handa@m17n.org>
6371
6372 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
6373 encoding sequence.
6374
3999c705
KH
63752003-12-01 Kenichi Handa <handa@m17n.org>
6376
6377 * composite.c (syms_of_composite): Don't make the compostion hash
6378 table week.
6379
d344ecbb
LT
63802003-11-30 Luc Teirlinck <teirllm@auburn.edu>
6381
6382 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
6383 * textprop.c (Fget_char_property_and_overlay): New function.
6384 (syms_of_textprop): Defsubr it.
6385
03d6484e
JD
63862003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6387
019b1f0e
JD
6388 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
6389 to compile on terminal configuration.
6390
03d6484e
JD
6391 * fileio.c (Fread_file_name): Check use_file_dialog also before
6392 calling Fx_file_dialog.
6393
6394 * fns.c: use_file_dialog: New variable.
6395 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
6396
442d3fd0
KS
63972003-11-29 Kim F. Storm <storm@cua.dk>
6398
6399 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
6400 (syms_of_msdos): Don't intern and staticpro them.
6401
0f6a07a8
KS
64022003-11-27 Kim F. Storm <storm@cua.dk>
6403
6404 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
6405 coordinates relative to glyph at posn. If glyph is an image,
6406 return that as object at posn. Callers changed.
6407 (mode_line_string, marginal_area_string): Calculate and return
6408 pixel coordinates relative to glyph. Callers changed.
6409
6410 * dispextern.h (buffer_posn_from_coords, mode_line_string)
6411 (marginal_area_string): Fix prototypes.
6412 (window_box_left_offset, window_box_right_offset): Add prototypes.
6413
6414 * frame.h (get_specified_cursor_type, get_window_cursor_type):
6415 Remove prototypes.
6416
6417 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
6418
6419 * keyboard.c (make_lispy_position): Add x and y coordinates
6420 relative to the current glyph as 7th element of position.
6421 If glyph is an image, return it in the object element.
6422 (read_key_sequence): Skip checks for keymap property in cases
6423 where POSN_STRING is not a string (e.g. an image).
6424
6425 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
6426 (Vshow_text_cursor_in_void): New variable.
6427 (glyph_to_pixel_coords): Don't use negative hpos.
6428 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
6429 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 6430 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
6431 (calc_pixel_width_or_height): New aux function, implementing
6432 pixel based artihmetic for glyph widths and heights.
6433 (produce_stretch_glyph): Use calc_pixel_width_or_height for
6434 :width, :height, :align-to, and :ascent, thus allowing these to
6435 be specified in pixels as well as multiples of characters.
6436 Don't produce stretch glyphs with zero width or height.
6437 (get_specified_cursor_type): Declare static.
6438 (get_window_cursor_type): Declare static. Add glyph arg to be
6439 able to know when cursor is on an image; always substitute
6440 hollow-box cursor for filled-box cursor on images, to avoid
6441 negative images and flicker when blinking the cursor.
6442 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
6443 (note_mode_line_or_margin_highlight): Use non-text cursor rather
6444 than vertical scroll-bar cursor in display margins.
6445 (note_mouse_highlight): Use non-text cursor rather than text
6446 cursor in fringes and over images in the text area.
6447 Use non-text cursor when mouse pointer is outside editable text,
6448 i.e. in the void after end-of-line or end-of-buffer; this was
6449 already done for W32, but is now standard for all systems --
6450 user can toggle show-text-cursor-in-void to get old behaviour.
6451 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
6452 Vdisplay_pixels_per_inch.
6453
00498bfc
AS
64542003-11-25 Andreas Schwab <schwab@suse.de>
6455
6456 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
6457 EMACS_INT to not lose bits.
6458 (Ffillarray): Don't set bits beyond the size of a bool vector.
6459
edaa824d
KS
64602003-11-25 Kim F. Storm <storm@cua.dk>
6461
6462 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
6463 define this defun on systems that cannot use stderr as lvalue.
6464
74d6f539
GM
64652003-11-24 Gerd Moellmann <gerd@gnu.org>
6466
6467 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
6468 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
6469 ld's default is incompatible with unexec.
6470
6a1ff3ba
KS
64712003-11-23 Kim F. Storm <storm@cua.dk>
6472
63dc7c6b
KS
6473 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
6474 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
6475 (Fforce_window_update): New defun.
6476 (syms_of_window): Defsubr it.
6477 (Fset_window_margins, Fset_window_fringes): Doc fix.
6478
6a1ff3ba
KS
6479 * print.c (Fredirect_debugging_output): New defun.
6480 (syms_of_print): Defsubr it.
6481
aef109b7
LT
64822003-11-22 Luc Teirlinck <teirllm@auburn.edu>
6483
6484 * fns.c (Fset_char_table_parent): Doc fix.
6485
6a1ff3ba 64862003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
6487
6488 * dispnew.c (buffer_posn_from_coords): Return actual row/column
6489 for glyph clicked on, rather than (unused) pixel positions.
6490 (mode_line_string, marginal_area_string): Change X and Y args to
6491 pointers for returning actual row/column for glyph clicked on.
6492 Simplify and optimize loops.
6493
aef109b7
LT
6494 * dispextern.h (mode_line_string, marginal_area_string):
6495 Update prototypes.
63ccbe21
KS
6496
6497 * keyboard.c (make_lispy_position): New function for generating
6498 mouse click positions from frame and pixel coordinates.
6499 Enhanced to return buffer position and actual row/column for
6500 events outside the text area using updated mode_line_string and
6501 marginal_area_string functions.
6502 Return left-fringe and right-fringe clicks as such, rather than
6503 clicks in text area.
6504 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
6505 pixel_to_glyph_coords, as we never use the results.
6506 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
6507 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
6508 Eliminate unused code in WHEEL_EVENT handling.
6509 (make_lispy_movement): Use make_lispy_position.
6510
6511 * window.c (coordinates_in_window): Remove redundant tests.
6512 Fix returned X pixel value for left-margin.
6513
6514 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
6515 mode_line_string and marginal_area_string parameters.
6516
a64387ee 65172003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 6518
d7107586
SM
6519 * w32.c (struct the_group, getgrgid): Add.
6520 * mac.c (struct my_group, getgrgid): Add.
aef109b7 6521
3dbf3426
LT
65222003-11-21 Luc Teirlinck <teirllm@auburn.edu>
6523
6524 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
6525
cae8ddbb 65262003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 6527
d7107586
SM
6528 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
6529 include in call to file name handler. Optionally translate numeric
6530 UID and GID to strings. Update docstring.
6531 (directory_files_internal): Add parameter ID-FORMAT.
6532 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
6533 include in call to file name handler and call to
6534 directory_files_internal. Update Docstring.
6535 (Fdirectory_files): Add dummy parameter in call to
6536 directory_files_internal.
6537 * lisp.h (Qinteger): Add.
6538 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
6539 (Ffile_attributes): Add parameter.
6540 * data.c (Qinteger): Export.
cae8ddbb 6541
2550b848
LT
65422003-11-21 Luc Teirlinck <teirllm@auburn.edu>
6543
3dbf3426 6544 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 6545
88380018
KS
65462003-11-19 Kim F. Storm <storm@cua.dk>
6547
6548 * xdisp.c (init_iterator): Initialize it->start to position
6549 before reseating (in case start position is invisible).
6550 (init_to_row_start): Set it->start to row-start.
6551 (redisplay_window): Accept optional_new_start if start position
6552 is invisible (in which case IT_CHARPOS overshoots PT).
6553 (display_line): Setup row->start from it->start (rather than
6554 it->current which is wrong if first char on line is invisible).
6555 When done, reseat it->start to it->current (= start of next row).
6556 (expose_area): Fix exposure of text area when first char (e.g. TAB)
6557 is only partially visible.
6558
6559 * dispextern.h (struct it): New member start.
6560
854c1a59
SM
65612003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6562
455316e2
SM
6563 * alloc.c (make_float, Fcons): Clear the markbit at init time.
6564 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
6565 of block_index outside of the macro call.
6566 (Fgarbage_collect): Remove null code.
6567
6568 * m/amdx86-64.h: Don't redefine XPNTR.
6569
854c1a59
SM
6570 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
6571 of VALMASK.
6572
6573 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
6574 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
6575 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
6576
6577 * lisp.h (VALMASK): Only define for non-union type.
6578 (MARKBIT): Remove.
6579 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
6580 (XTYPE): Define unconditionally.
6581 (XSETTYPE): Remove one more remnant.
6582 (EQ): Define differently for the union and non-union cases.
6583 (INTMASK): New bit mask.
6584 (struct Lisp_Marker): Move down to prepare for upcoming patch.
6585 (GC_EQ): Delegate to EQ.
6586
6587 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
6588
a0c6ef2d
JD
65892003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6590
6591 * xterm.c (x_window_to_scroll_bar): Move check of display to
6592 where window_id is compared.
6593
859492c4
KS
65942003-11-17 Kim F. Storm <storm@cua.dk>
6595
6596 * dispextern.h (struct it): New member first_vpos.
6597
6598 * xdisp.c (start_display): Set it->first_vpos.
6599 (try_window_id): Use first_vpos to start display in first _text_
6600 line if no reusable lines at start of window with header line.
6601
810f2256
JD
66022003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6603
7c402969 6604 * w32fns.c (XPutPixel):
854c1a59
SM
6605 * w32bdf.c (w32_init_bdf_font):
6606 * sunfns.c (sel_read):
6607 * process.c (Fmake_network_process):
6608 * frame.c (store_frame_param):
6609 * fontset.c (Fset_fontset_font):
6610 * emacs.c (shut_down_emacs):
a64387ee 6611 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 6612
a32e9bfd
JD
6613 * config.in: Regenerate.
6614
810f2256
JD
6615 * xfns.c (x_window_to_frame, x_any_window_to_frame)
6616 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
6617 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
6618 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
6619 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
6620
6621 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
6622
6623 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
6624 (XTmouse_position, handle_one_xevent): Pass Display* to
6625 x_window_to_scroll_bar.
6626 (x_window_to_scroll_bar): Take a Display* argument.
6627 Check that display for frame is equal to Display* argument.
854c1a59 6628 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
6629 x_display_info_for_display instead. Use Display in xev instead
6630 of GDK_DISPLAY.
6631 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 6632 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
6633 (x_connection_closed): Call xg_display_close for GTK.
6634 (x_term_init): Call xg_display_open for additional displays.
6635 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
6636 for GTK.
6637
6638 * xmenu.c (single_menu_item, mouse_position_for_popup)
6639 (x_activate_menubar): Formatting adjustments.
6640
6641 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
6642 adjustments.
6643
6644 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
6645 (xg_display_close, xg_create_default_cursor)
6646 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
6647 handling.
854c1a59
SM
6648 (xg_left_ptr_cursor): Remove.
6649 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
6650 cursor here.
6651 (xg_win_to_widget): Take Display* argument, call
6652 gdk_xid_table_lookup_for_display.
6653 (xg_create_frame_widgets, xg_get_file_name, create_menus)
6654 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
6655 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
6656 in FRAME_X_DISPLAY_INFO.
6657 (xg_get_scroll_id_for_window): Take Display* argument.
6658 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 6659 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 6660
78819ebb
KS
6661 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
6662 Display* argument.
6663 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 6664
0b03cc78
JD
66652003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6666
6667 * xterm.c (x_detect_focus_change): Do not change focus frame for
6668 Enter/LeaveNotify if the current focus frame has explicit focus.
6669
77e688fa
KS
66702003-11-14 Kim F. Storm <storm@cua.dk>
6671
6672 * dispnew.c (update_text_area): Fix redisplay error when hscroll
6673 is active and first glyph is only partially visible.
854c1a59 6674
dd429b03
KH
66752003-11-13 Kenichi Handa <handa@m17n.org>
6676
6677 * xdisp.c (select_frame_for_redisplay): New function.
6678 (redisplay_internal): Record also selected_frame for
6679 unwind_redisplay. Call select_frame_for_redisplay before
6680 redrawing each frame.
6681 (unwind_redisplay): Argument changed to a cons.
6682
6d9266f4
LT
66832003-11-12 Luc Teirlinck <teirllm@auburn.edu>
6684
6685 * fns.c (Fstring_to_multibyte): Doc fix.
6686
80060eb3
KH
66872003-11-11 Kenichi Handa <handa@m17n.org>
6688
6689 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
6690
74305183
JD
66912003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6692
6693 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
6694 program specified positions.
6695
cfda993e
JD
66962003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6697
6698 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
6699
df211069
KH
67002003-11-08 Kenichi Handa <handa@m17n.org>
6701
6702 * Makefile.in (lisp): Add kannada.el.
6703 (shortlisp): Likewise.
6704
4307d534
KH
67052003-11-07 Kenichi Handa <handa@m17n.org>
6706
854c1a59
SM
6707 * coding.c (coding_allocate_composition_data):
6708 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
6709 (coding_restore_composition): Detect invalid composition data.
6710 Give Fstring and Fvector a Lispy integer, not C int.
6711
854c1a59
SM
67122003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
6713
6714 * floatfns.c (Flogb): Don't use VALMASK.
6715
6716 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
6717 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
6718
6719 * lisp.h (XINT): Move the cast to clarify what is going on.
6720 (GCTYPEMASK, XSETTYPE): Remove.
6721 (XGCTYPE): Make it an alias of XTYPE.
6722
d04103a1
JD
67232003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6724
6725 * xterm.c (x_term_init): Fix formatting.
6726
da18b5ac
JD
67272003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6728
78819ebb
KS
6729 * gtkutil.h (xg_have_tear_offs): Declare.
6730 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
6731
6732 * gtkutil.c: Remove variable xg_did_tearoff.
6733 (xg_have_tear_offs): New function.
6734 (tearoff_remove): Just decrease xg_detached_menus.
6735 (tearoff_activate): Increase xg_detached_menus and call
6736 tearoff_remove when tearoff is removed.
854c1a59 6737 (xg_keep_popup): Remove function.
da18b5ac
JD
6738 (create_menus): Give add_tearoff_p as argument to recursive
6739 call to create_menus.
6740 (xg_create_widget): Use variables instead of multiple
6741 strcmp. Tell create_menus to create tear off only for
6742 menu bar menus.
6743 (xg_update_menubar): Change title for a detached menu also.
6744 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
6745 of deep_p.
6746 (xg_initialize): Initialize xg_detached_menus, remove
6747 initialization of xg_did_tearoff.
6748
6749 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
6750 xg_have_tear_offs returns non-zero.
6751 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
6752 call to xg_keep_popup.
6753
64d4923e
AC
67542003-11-01 Andrew Choi <akochoi@shaw.ca>
6755
6756 * macterm.c (XTread_socket): Handle menubar selection and grow
6757 window only for mouseDown events.
854c1a59 6758
6cc8bc07
JD
67592003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6760
6761 * xterm.c (x_term_init): For GTK part, increase x_initialized
6762 to check for more than one display. Use error instead of return 0.
6763
043131c4
AC
67642003-10-31 Andrew Choi <akochoi@shaw.ca>
6765
854c1a59 6766 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
6767 (copy_dysymtab): Call it.
6768
bdda99a1
LT
67692003-10-31 Luc Teirlinck <teirllm@auburn.edu>
6770
6771 * eval.c (Fdefvaralias): Doc fix.
6772
800f42ff 67732003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
6774
6775 * data.c (Fsetplist): Doc fix.
6776
ef35b389
LK
67772003-10-14 Lute Kamstra <lute@gnu.org>
6778
6779 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 6780
ef35b389 67812003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 6782
07107abc
KS
6783 * window.c (Fset_window_margins): Simplify arg checking.
6784
f7005886
RS
67852003-10-13 Richard M. Stallman <rms@gnu.org>
6786
6787 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
6788 (print_partial_compiled_pattern): Replace assert with a printout.
6789 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
6790
6791 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
6792
6793 * window.c (Fset_window_margins): Allow only integers as args.
6794 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
6795 Doc fixes.
6796
9c0c2af5
LK
67972003-10-13 Lute Kamstra <lute@gnu.org>
6798
6799 * window.c (Fset_window_fringes): Elaborate docstring.
6800
3f080e4e
AC
68012003-10-12 Andrew Choi <akochoi@shaw.ca>
6802
854c1a59 6803 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 6804
3f080e4e
AC
6805 * s/darwin.h (GC_MARK_STACK): Define.
6806
0aa513ed
JD
68072003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6808
6809 * window.c (shrink_windows): New function.
6810 (size_window): Call shrink_windows to calculate window sizes when
6811 shrinking frame with more than one window.
6812
6aa8858a
KS
68132003-10-12 Kim F. Storm <storm@cua.dk>
6814
6815 * xdisp.c (compute_fringe_widths): Doc fix.
6816
c2164d91
KH
68172003-10-08 Kenichi Handa <handa@m17n.org>
6818
854c1a59 6819 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 6820
f82ac129
KH
68212003-10-07 Kenichi Handa <handa@m17n.org>
6822
6823 * coding.c (Qcoding_system_define_form): New variable.
6824 (syms_of_coding): Intern and staticpro it.
6825 (Fcheck_coding_system): Try to autoload the definition of
6826 CODING-SYSTEM.
6827
9296c947
LT
68282003-10-05 Luc Teirlinck <teirllm@auburn.edu>
6829
6830 * fns.c (Frequire): Doc fix.
6831
c1f0671a
JD
68322003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6833
3d8c3826
JD
6834 * xfns.c (Fx_send_client_event): New function as a base for
6835 manipulating extended window manager hints.
6dc15d98 6836 (Fx_send_client_event): Remove unused variable s.
3d8c3826 6837
068ae0fd
JD
6838 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
6839 that function is removed.
6840
6841 * xterm.c (x_set_offset): Use move_offset_left/top instead of
6842 x/y_pixels_outer_diff.
6843 (x_check_expected_move): Calculate move_offset_left/top.
6844
6845 * xterm.h (struct x_output): New members: move_offset_top/left.
6846
854c1a59 6847 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
6848 call x_set_offset directly.
6849
6850 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
6851
96f09305
JD
6852 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
6853
6854 * xterm.c (x_delete_display): Free font names and font_encoder
6855 in dpyinfo->font_table.
6856
854c1a59
SM
6857 * xfns.c (Fx_close_connection): Only call XFreeFont here.
6858 Move xfree of font names to x_delete_display.
96f09305 6859
c1f0671a
JD
6860 * xterm.h (struct x_display_info): New member, wm_type.
6861 (struct x_output): New members, expected_top/left and
6862 check_expected_move.
6863
6864 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
6865 is received.
854c1a59
SM
6866 (handle_one_xevent): Rename x_check_expected_move from
6867 x_check_fullscreen_move.
c1f0671a
JD
6868 (x_set_offset): Only add WM decoration sizes to modified_top/left
6869 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 6870 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
6871 Removed fullscreen specific code. Use check_expected_move,
6872 expected_left/top instead. Also, set wm_type.
6873 (x_term_init): Initialize wm_type to unknown.
6874
6875 * frame.c (x_fullscreen_move): Remove addition of WM decoration
6876 sizes to move_x/y.
6877
be2fdba9
KH
68782003-10-03 Kenichi Handa <handa@m17n.org>
6879
6880 * macterm.c (x_load_font): Clear all members of FONTP before start
6881 filling them.
6882
68832003-10-02 Kenichi Handa <handa@m17n.org>
6884
6885 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
6886 before calling find_ccl_program_func. Call find_ccl_program_func
6887 only when fontp->font_encoder is not NULL.
6888
6889 * xterm.c (x_load_font): Clear all members of FONTP before start
6890 filling them.
6891
26a6e439
JPW
68922003-10-03 John Paul Wallington <jpw@gnu.org>
6893
6894 * keymap.c (map_keymap): Don't abort when binding is a vector.
6895
0d4c2dc2
JR
68962003-10-02 Jason Rumney <jasonr@gnu.org>
6897
854c1a59
SM
6898 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
6899 Sync dependencies with Makefile.in.
a63cf46f
JR
6900 (alloca.o): Remove.
6901
0d4c2dc2
JR
6902 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
6903 filling them.
6904
6905 * w32bdf.c (w32_load_bdf_font): Likewise.
6906
ab8f7d5c
RS
69072003-09-30 Richard M. Stallman <rms@gnu.org>
6908
6909 * term.c (set_tty_color_mode): Calculate current_mode_spec
6910 regardless of value of VAL.
6911
854c1a59 6912 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
6913 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
6914 Handle over_used when splitting UNDER.
6915
a64387ee 69162003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
6917
6918 * regex.c (regex_compile): Free the stack when returning from function.
6919
3413f972
KH
69202003-09-28 Kenichi Handa <handa@m17n.org>
6921
6922 * fontset.c (Finternal_char_font): Change return value to
6923 cons (FONT-NAME . GLYPH-CODE).
6924
a6eeaa81 69252003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
6926
6927 * term.c (tty_setup_colors): Treat any negative argument as -1.
6928
f98ddc99
KH
69292003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
6930
6931 * process.c (send_process): Delete unused temp_buf.
6932
66c8f1a8
DL
69332003-09-26 Dave Love <fx@gnu.org>
6934
6935 * xterm.c (x_bitmap_mask): Declare.
6936
ca716c26
DL
69372003-09-25 Dave Love <fx@gnu.org>
6938
6939 * Makefile.in (fns.o): Depend on md5.h.
6940
fbe57420
KS
69412003-09-25 Kim F. Storm <storm@cua.dk>
6942
6943 * window.c (set_window_buffer): Fix redisplay problems when
6944 switching between buffers with different display margin widths.
6945
ef6ae4ff
KS
69462003-09-23 Kim F. Storm <storm@cua.dk>
6947
6948 * process.c (set_socket_option): Fix :bindtodevice option.
6949 (Fset_network_process_option): Update process contact list when
6950 setting option succeeds.
6951 (Fmake_network_process): Doc fix.
6952
68e03c1c
DL
69532003-09-23 Dave Love <fx@gnu.org>
6954
7146d1c1 6955 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 6956
a6eeaa81 69572003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
6958
6959 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
6960 color mode is an integer number (it could be -1).
6961
8fe7d8c8
RS
69622003-09-22 Richard M. Stallman <rms@gnu.org>
6963
6964 * intervals.c (graft_intervals_into_buffer): Correct the main loop
6965 in the case where OVER is longer than UNDER.
6966
2f71b5ea
MY
69672003-09-22 Masatake YAMATO <jet@gyve.org>
6968
7146d1c1 6969 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 6970 `vertical_type'.
7146d1c1 6971
0c4da023
KS
69722003-09-21 Kim F. Storm <storm@cua.dk>
6973
6974 * frame.c (Vdefault_frame_scroll_bars): New variable.
6975 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
6976 (syms_of_frame): DEFVAR_LISP it, and initialize according to
6977 window-system default scroll bar position.
6978
b648413b
KS
6979 * window.c (Fwindow_scroll_bars): Doc fix.
6980
8f5b9e34
JD
69812003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6982
854c1a59 6983 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 6984
b0f23edf
RS
69852003-09-19 Richard M. Stallman <rms@gnu.org>
6986
6987 * atimer.h: Don't include lisp.h.
6988 (P_): Define it here (as well as elsewhere).
6989
6990 * print.c (Fprin1_to_string): Move the PRINTPREPARE
6991 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
6992
6993 * data.c (Fvariable_binding_locus): New function.
6994 (syms_of_data): defsubr it.
6995 (Flocal_variable_p): Delete duplicate call to indirect_variable.
6996
e1283999
DL
69972003-09-18 Dave Love <fx@gnu.org>
6998
ad5f3636
DL
6999 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
7000
e1283999
DL
7001 * process.c (Fnetwork_interface_info): Fix type error.
7002 (Fnetwork_interface_list): Doc fix.
7003 (read_process_output, read_process_output): Delete unused var.
7004
b8c7fd71
KS
70052003-09-17 Kim F. Storm <storm@cua.dk>
7006
7007 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
7008 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
7009 (Fnetwork_interface_info): Check that ifreq struct has required
7010 fields before accessing them; this requires that those fields are
7011 defined as macros, which may be too restrictive on some platforms,
7012 but it is better than failing on other platforms.
7013 (syms_of_process): Only defsubr above fns when included.
7014
11e0a411
DL
70152003-09-17 Dave Love <fx@gnu.org>
7016
7017 * unexalpha.c: Don't include varargs.h.
7018
e9c50801
KS
70192003-09-17 Kim F. Storm <storm@cua.dk>
7020
7021 * process.c (Fset_process_sentinel): Add sentinel to childp plist
7022 for network process.
7023 (socket_options): Add `:' prefix to option names. Add optbit field.
7024 (set_socket_option): Remove no_error arg and special handling of s < 0.
7025 Return 1<<optbit for known option, 0 for unknown.
7026 Do not interpret 0 as false for boolean option (only nil).
7027 Pass failed option and value to report_file_error.
7146d1c1 7028 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
7029 (Fset_network_process_option): New function to set just one option.
7030 (Fmake_network_process): Allow :coding arg to be a cons.
7031 Allow :server arg to be an integer specifying backlog size.
7032 Remove :options arg, and allow options to be specified directly
7033 as :KEY, VALUE pairs. Parse these options before binding socket.
7034 As before, :reuseaddr t is default for a server process, but this
7035 can now be disabled by specifying :reuseaddr nil.
7036 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
7037 (init_process): Availability of network options is now checked with
7038 simpler syntax (featurep 'make-network-process :OPTION); use loop to
7039 setup features.
7040 (syms_of_process): Fix defsubr's for the replaced functions.
7041
a0fc3644
DL
70422003-09-16 Dave Love <fx@gnu.org>
7043
7044 * Makefile.in: Depend on coding.h.
7045
6df2a645
KS
70462003-09-14 Kim F. Storm <storm@cua.dk>
7047
7048 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
7049 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
7050 (syms_of_process): Defsubr them.
7051
7052 * config.in: Regenerate.
7146d1c1
SM
7053
70542003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7055
7056 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
7057 * m/news-r6.h (XUNMARK): Remove.
7058 * m/mips.h (XUNMARK): Remove.
7059 * m/mips-siemens.h (XUNMARK): Remove.
7060 * m/iris4d.h (XUNMARK): Remove.
7061 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
7062
0930c1a1
SM
70632003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7064
31003b9e
SM
7065 * lisp.h (VALBITS): Don't remove 1 for the markbit.
7066 (union Lisp_Object): Use unsigned int for types. Remove markbit.
7067 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
7068 (XTYPE): Use unsigned right-shift.
7069 (XMARKBIT, XMARK, XUNMARK): Remove.
7070
0930c1a1
SM
7071 * alloc.c (init_intervals, init_symbol, init_marker):
7072 Don't preallocate anything.
7073 (Fgarbage_collect, mark_object): Ignore the markbit.
7074
7075 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
7076
19bb0fcd 70772003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
7078
7079 * xdisp.c (pint2hrstr): New function.
7080 (decode_mode_spec): Add `%i' and `%I' specs.
7081 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
7082 for `mode-line-format'.
7083
03bb6a06
AS
70842003-09-07 Andreas Schwab <schwab@suse.de>
7085
7086 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
7087 avoid warning.
7088
a6eeaa81 70892003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 7090
0930c1a1 7091 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 7092
ed159bbf
KS
70932003-09-03 Kim F. Storm <storm@cua.dk>
7094
7095 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
7096 change (superseded by 2002-08-30 change); the default blink-off
7097 cursor is now again "no cursor".
7098
fe64a394
JR
70992003-09-01 Jason Rumney <jasonr@gnu.org>
7100
7101 * makefile.w32-in (alloca.o): Remove.
7102 (coding.o): Depend on intervals.h
7103 (emacs.o, bytecode.o): Depend on window.h
7104
c0175e24
DL
71052003-09-01 Dave Love <fx@gnu.org>
7106
7107 * Makefile.in (alloca.o): Remove commands.
7108 (coding.o): Depend on intervals.h composite.h window.h.
7109 (emacs.o): Depend on window.h keyboard.h keymap.h.
7110 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
7111 (bytecode.o): Depend on window.h.
7112
a24d4cb2
JR
71132003-08-31 Jason Rumney <jasonr@gnu.org>
7114
4bc2315e
JR
7115 * w32term.c (w32_per_char_metric): Allow cached metrics to be
7116 returned even when font_type is unknown.
7117
a24d4cb2
JR
7118 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
7119
9d35adc7
JD
71202003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7121
7122 * xterm.c (x_term_init): Initialize new fields in x_display_info.
7123
7124 * xterm.h (struct x_display_info): Add red/green/blue_bits and
7125 *_offset.
7126
7127 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
7128 calculate pixel value.
7129
6f68b035
GM
71302003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
7131
0930c1a1
SM
7132 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
7133 Don't tell redisplay display is accurate when it's actually been
7134 paused for pending input.
6f68b035 7135
4828b4d7
RS
71362003-08-29 Richard M. Stallman <rms@gnu.org>
7137
7138 * dispnew.c (adjust_glyph_matrix): Call window_box
7139 whenever W is nonzero.
7140
7141 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
7142 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 7143 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
7144 Use indirect_variable to trace thru variable aliases.
7145
7146 * config.in: Updated.
7147
7148 * callint.c (Fcall_interactively): Save and restore
7149 Vthis_command, Vthis_original_command, real_this_command,
7150 and current_kboard->Vlast_command.
7151
7152 * abbrev.c (Fexpand_abbrev): Insert before deleting.
7153
e019878d
GM
71542003-08-29 Gerd Moellmann <gerd@gnu.org>
7155
7156 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
7157
85478bc6
KH
71582003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
7159
0930c1a1 7160 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
7161 (decode_coding_sjis_big5): Likewise.
7162
07ce82d3
JR
71632003-08-27 Jason Rumney <jasonr@gnu.org>
7164
d3703de3
JR
7165 * w32.c (sys_pipe): Protect against file descriptor overflow.
7166
ee4a01d1
JR
7167 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
7168
07ce82d3
JR
7169 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
7170
a64387ee 71712003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
7172
7173 * xfns.c (Vgtk_version_string): New variable.
7174 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
7175
a6eeaa81 71762003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 7177
0930c1a1 7178 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 7179
5459e42a
EZ
7180 * Makefile.in (msdos.o): Depend on intervals.h.
7181
0930c1a1 7182 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 7183
231d6cfb
JD
71842003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7185
7186 * xterm.h (struct x_display_info): New fields: client_leader_window
7187 and Xatom_wm_client_leader.
7188
7189 * xterm.c (x_initialize): Move call to x_session_initialize to ...
7190 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
7191
7192 * xsmfns.c (create_client_leader_window): New function.
7193 (x_session_initialize): Call create_client_leader_window, take
7194 dpyinfo as argument.
7195
7196 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
7197
7198 * Makefile.in (xsmfns.o): Add more depenedencies.
7199
afa88464
DL
72002003-08-21 Dave Love <fx@gnu.org>
7201
7202 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
7203
f730033e
KH
72042003-08-21 Kenichi Handa <handa@m17n.org>
7205
7206 * term.c (term_init): Fix previous change; don't rely on the
7207 length of `buffer' if TERMINFO is defined.
7208
6dca786c
DL
72092003-08-20 Dave Love <fx@gnu.org>
7210
7211 * atimer.h: Include lisp.h.
7212
7213 * lisp.h (EMACS_LISP_H): New.
7214 (popup_activated_flag): Don't declare.
7215
7216 * alloca.c: Some merging with gnulib. Change logic and doc
7217 concerning (x)malloc/(x)free -- no longer Emacs-specific.
7218 [DO_BLOCK_INPUT]: Don't include lisp.h.
7219 (xmalloc, xfree): Declare.
7220 (malloc): Don't declare.
7221
0930c1a1 7222 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
7223 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
7224 atimer.h, blockinput.h.
7225
7226 * alloc.c (lisp_align_malloc): Change type of `aligned'.
7227
78819ebb 7228 * alloca.s: Remove.
6dca786c 7229
3a06a6d9
RS
72302003-08-19 Gerd Moellmann <gerd@gnu.org>
7231
7232 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
7233 use -lncurses.
7234
7235 * term.c (term_init): Use a buffer of size 4096 for tgetent since
7236 FreeBSD returns something longer than 2044. Abort if the end of
7237 the buffer is overwritten.
7238
27eeee55
MB
72392003-08-19 Miles Bader <miles@gnu.org>
7240
7241 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
7242
2f297815
GM
72432003-08-19 Gerd Moellmann <gerd@gnu.org>
7244
f4446bbf
GM
7245 * alloc.c (lisp_align_malloc): Check for memory full when
7246 allocating ablocks, which also avoids freeing a pointer into an
7247 ablocks structure.
7248
7249 * puresize.h (BASE_PURESIZE): Increase to 1100000.
7250
0930c1a1 7251 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 7252
0e7d7aae
RS
72532003-08-16 Richard M. Stallman <rms@gnu.org>
7254
7255 * editfns.c (Fencode_time): Doc fix.
7256
72572003-08-16 David Ponce <david@dponce.com>
7258
7259 * fileio.c (Fwrite_region): Fix conditional expression to issue
7260 the right message.
7261
b6189c3b 72622003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
7263
7264 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 7265 Set default value to 1.
0e7d7aae 7266
5d551295
KH
72672003-08-15 Kenichi Handa <handa@m17n.org>
7268
7269 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
7270 what autoscaled.
7271 (best_matching_font): Once we find a better scalable font, set
7272 non_scalable_has_exact_height_p to 1.
7273 (try_font_list): Call try_alternative_families to try any family
7274 with the given registry.
7275
1661e56b
AS
72762003-08-09 Andreas Schwab <schwab@suse.de>
7277
f29181dc
AS
7278 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
7279
1661e56b
AS
7280 * print.c (print_string): Fix printing of multibyte string with
7281 nontrivial printcharfun.
7282
465aa50a
JD
72832003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7284
7285 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
7286
7287 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
7288
e430e5ba
KH
72892003-07-31 Kenichi Handa <handa@m17n.org>
7290
7291 * process.c (read_process_output): Return the actually read bytes
7292 instead of the result of decoding.
7293
97e7188e
KH
72942003-07-31 Kenichi Handa <handa@m17n.org>
7295
7296 * xterm.h (struct x_bitmap_record): New member have_mask.
7297
7298 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
7299 to 0.
7300 (x_create_bitmap_from_file): Likewise.
7301 (x_destroy_bitmap): Check have_mask member before freeing a mask.
7302 (x_destroy_all_bitmaps): Likewise.
7303 (x_create_bitmap_mask): Set have_mask member to 1.
7304
b53094d6
RS
73052003-07-30 Richard M. Stallman <rms@gnu.org>
7306
7307 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
7308
631f2082
JD
73092003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7310
7311 * gtkutil.c (xg_mark_data): Update calls to mark_object.
7312
c855f2ca
RS
73132003-07-29 Richard M. Stallman <rms@gnu.org>
7314
7315 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
7316 Conditionalize XIM code on HAVE_XIM.
7317
7318 * fns.c (Fclear_string): New function.
7319 (syms_of_fns): defsubr it.
7320
b6189c3b 73212003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 7322
0930c1a1 7323 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 7324
29ea8ae9
SM
73252003-07-22 Stefan Monnier <monnier@cs.yale.edu>
7326
7327 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
7328
7329 * buffer.c (delete_all_overlays): New function.
7330 * buffer.h (delete_all_overlays): Declare.
7331 * coding.c (run_pre_post_conversion_on_str):
7332 * print.c (temp_output_buffer_setup):
7333 * fileio.c (Finsert_file_contents):
7334 * minibuf.c (get_minibuffer): Use it.
7335
1dd7ccf2
AC
73362003-07-22 Andrew Choi <akochoi@shaw.ca>
7337
7338 * unexmacosx.c (unexec_regions_sort_compare):
7339 (unexec_regions_merge): New functions. Sort and merge unexec
7340 regions before dumping them.
7341
f57bd967
DL
73422003-07-22 Dave Love <fx@gnu.org>
7343
7344 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
7345
7cdee936
SM
73462003-07-21 Stefan Monnier <monnier@cs.yale.edu>
7347
7348 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
7349 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
7350 MARKBIT as the gcmarkbit for strings.
7351
e50886d3
RS
73522003-07-21 Richard M. Stallman <rms@gnu.org>
7353
7354 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
7355
29ea8ae9 7356 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
7357 (syms_of_fns): Corresponding change.
7358
7359 * alloc.c (syms_of_alloc): Doc fixes.
7360
73612003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
7362
7363 * s/netbsd.h: Use -Wl syntax.
7364
fdc39b59
RS
73652003-07-17 Richard M. Stallman <rms@gnu.org>
7366
7367 * xterm.c (xim_initialize): Redo 6/24 change.
7368
9c53385f
SM
73692003-07-15 Stefan Monnier <monnier@cs.yale.edu>
7370
7371 * buffer.c (copy_overlays): Use EMACS_INT for positions.
7372 (Fswitch_to_buffer): Don't signal an error when switching to the same
7373 buffer in a dedicated window.
7374
7375 * alloc.c: Use bitmaps for cons, as was done for floats.
7376 (init_float, init_cons): Let the normal code allocate the first block.
7377 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
7378 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
7379 New macros.
7380 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
7381 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
7382 (live_cons_p): Check the pointer is not past the `conses' array.
7383 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
7384 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
7385 (survives_gc_p): Use CONS_MARKED_P and simplify.
7386 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
7387
dde13196
PE
73882003-07-13 Paul Eggert <eggert@twinsun.com>
7389
7390 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
7391 puts it into BSS instead, at least on Solaris 8 and 9.
7392 This is a valid optimization, and it may occur on other platforms,
7393 so Emacs should not assume that initializing a static variable to
7394 zero puts it into data.
7395 * alloc.c (pure, staticvec):
7396 Initialize these arrays to nonzero, so that they're not
7397 put into BSS by that optimization.
7398
a801bc34
SM
73992003-07-13 Stefan Monnier <monnier@cs.yale.edu>
7400
7401 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
7402 (lisp_align_malloc): Use posix_memalign is available.
7403 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
7404 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
7405 for consistency. Update users.
7406
0c8b2afa
RS
74072003-07-13 Richard M. Stallman <rms@gnu.org>
7408
7409 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
7410
668c2ab0
JB
74112003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
7412
7413 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
7414 and use the Gtk+ function gtk_window_icon_from_file if available.
7415
7416 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
7417 handle mask of bitmaps.
7418 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
7419 mask property.
7420 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
7421
7422 * xterm.h (xg_set_icon): New function.
7423
800bebe3
RS
74242003-07-12 Paul Eggert <eggert@twinsun.com>
7425
7426 * unexelf.c (unexec): Consider a section to precede the .bss
7427 section if its addresses overlap that of .bss.
7428
69e38995
RS
74292003-07-12 Richard M. Stallman <rms@gnu.org>
7430
7431 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
7432
7433 * config.in (HAVE_CRTIN): Add #undef.
7434 (INLINE): Really inline only if OPTIMIZE is defined.
7435
7436 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
7437 END_FILES_1.
7438 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 7439 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
7440
7441 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
7442 (TERMINFO): Define.
7443 (LIBS_TERMCAP): Define.
7444 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
7445
7446 * xfns.c: Include libpng/png.h instead of png.h.
7447
f1d0c238
AS
74482003-07-11 Andreas Schwab <schwab@suse.de>
7449
7450 * buffer.c (modify_overlay): Update prototype.
7451 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
7452 Likewise.
7453
5f6bf5fe
SM
74542003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7455
7456 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
7457 (struct interval): Move to intervals.h.
7458 (struct Lisp_Marker): Use EMACS_INT for position info.
7459 (forward_point): Remove prototype of defunct function.
7460 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
7461 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
7462 (syms_of_textprop, set_text_properties): Remove prototypes that are
7463 already in intervals.h.
7464
7465 * intervals.h (struct interval): Move from lisp.h.
7466 Use EMACS_INT for position and size info.
7467
7468 * coding.c: Include intervals.h for Fset_text_properties.
7469
7470 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
7471 position and length information.
7472
2765b457
SM
74732003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7474
7475 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
7476 position and length information.
7477
2410d73a
SM
74782003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7479
7480 Change overlays_after and overlays_before so the overlays themselves
7481 are linked into lists, rather than using cons cells. After all each
7482 Lisp_Misc already occupies 5 words, so we can add a `next' field to
7483 Lisp_Overlay for free and save up one cons cell per overlay (not
7484 to mention one indirection when traversing the list of overlay).
7485
7486 * lisp.h (struct Lisp_Overlay): New field `next'.
7487
7488 * buffer.h (struct buffer): Change overlays_before and overlays_after
7489 from Lisp lists of overlays to pointers to overlays.
7490
7491 * buffer.c (overlay_strings, recenter_overlay_lists):
7492 Fix typo in eassert in last commit.
7493 (unchain_overlay): New function.
7494 (add_overlay_mod_hooklist): Use AREF.
7495 (copy_overlays, reset_buffer, overlays_at, overlays_in)
7496 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
7497 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
7498 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
7499 (report_overlay_modification, evaporate_overlays, init_buffer_once):
7500 Adjust to new type of overlays_(before|after).
7501
7502 * alloc.c (mark_object): Mark the new `next' field of overlays.
7503 (mark_buffer): Manually mark the overlays_(after|before) fields.
7504
7505 * coding.c (run_pre_post_conversion_on_str):
7506 * editfns.c (overlays_around):
7507 * xdisp.c (load_overlay_strings):
7508 * fileio.c (Finsert_file_contents):
7509 * indent.c (current_column):
7510 * insdel.c (signal_before_change, signal_after_change):
7511 * intervals.c (set_point_both):
7512 * print.c (temp_output_buffer_setup): Use new type for
7513 overlays_(before|after).
7514
04812929
SM
75152003-07-08 Stefan Monnier <monnier@cs.yale.edu>
7516
7517 * buffer.c (report_overlay_modification): Don't run hooks while
7518 traversing the list of overlays.
7519
7520 * buffer.h (struct buffer): Use an int for overlay_center.
7521 (overlays_at, evaporate_overlays, recenter_overlay_lists)
7522 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
7523
7524 * buffer.c (reset_buffer, recenter_overlay_lists)
7525 (adjust_overlays_for_insert, adjust_overlays_for_delete)
7526 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
7527 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
7528 (overlays_at, evaporate_overlays, recenter_overlay_lists)
7529 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
7530
7531 * xdisp.c (fast_find_position): Remove unused var.
7532
7533 * cmds.c (Qexpand_abbrev): New sym.
7534 (syms_of_cmds): Initialize it.
7535 (internal_self_insert): Use it to call expand-abbrev.
7536
2e7ecf15
KS
75372003-07-09 Kim F. Storm <storm@cua.dk>
7538
f9711de4 7539 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 7540 was configured with --without-xim.
42f81f64 7541 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 7542
c6de56a0
RS
75432003-07-07 Richard M. Stallman <rms@gnu.org>
7544
7545 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
7546
7547 * alloc.c (Fgarbage_collect): Doc fix.
7548
b6189c3b 75492003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
7550
7551 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
7552
bfe1a3f7
SM
75532003-07-06 Stefan Monnier <monnier@cs.yale.edu>
7554
04812929
SM
7555 * minibuf.c (read_minibuf): UNGCPRO before returning.
7556 (Ftry_completion, Fall_completions): Doc fix.
7557
bfe1a3f7
SM
7558 * alloc.c (live_float_p): Check that p is not past the `floats' array,
7559 now that `floats' is not the last element of the struct any more.
7560
ee79d1aa
JR
75612003-07-06 Jason Rumney <jasonr@gnu.org>
7562
7563 * w32term.h (ClipboardSequence_Proc): New type.
7564
7565 * w32fns.c (clipboard_sequence_fn): New variable.
7566 (globals_of_w32fns): Initialize it.
7567
7568 * w32select.c (last_clipboard_sequence_number): New variable.
7569 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
7570 number if possible.
7571
49723c04
SM
75722003-07-06 Stefan Monnier <monnier@cs.yale.edu>
7573
4698665f
SM
7574 * m/amdx86-64.h (MARKBIT):
7575 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
7576 MARKBIT and ARRAY_MARK_FLAG any more.
7577
7578 * m/hp800.h (XSETMARKBIT):
7579 * m/sr2k.h (XSETMARKBIT):
7580 * lisp.h (XSETMARKBIT): Remove unused macro.
7581
49723c04
SM
7582 * lisp.h (mark_object): Change prototype.
7583
7584 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
7585 (last_marked): Change accordingly.
7586 (mark_interval, mark_maybe_object, mark_maybe_pointer)
7587 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
7588 (mark_buffer): Update calls to mark_object.
7589
7590 * bytecode.c (mark_byte_stack):
7591 * fns.c (sweep_weak_table):
7592 * keyboard.c (mark_kboards): Update calls to mark_object.
7593
1d660eca
JR
75942003-07-06 Jason Rumney <jasonr@gnu.org>
7595
7596 * alloc.c (struct ablock): Only include padding when there is some.
7597
618b5ae4
SM
75982003-07-04 Stefan Monnier <monnier@cs.yale.edu>
7599
7600 * alloc.c (ALIGN): Add casts to simplify usage.
7601 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
7602 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
7603 (struct ablock, struct ablocks): New types.
7604 (free_ablock): New global var.
7605 (lisp_align_malloc, lisp_align_free): New functions.
7606 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
7607 (struct float_block): Reorder and add gcmarkbits.
7608 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
7609 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
7610 (init_float, make_float): Use lisp_align_malloc.
7611 (free_float, live_float_p): Don't use `type' any more.
7612 (make_float): Use FLOAT_UNMARK to access to mark bit.
7613 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
7614 Use FLOAT_MARKED_P to access the mark bit.
7615 (pure_alloc): Simplify use of ALIGN.
7616 (mark_object): Use FLOAT_MARK to access the mark bit.
7617 (gc_sweep): Use new macros to access the float's mark bit.
7618 (init_alloc_once): Init free_ablock.
7619
7620 * lisp.h (struct Lisp_Float): Remove unused field `type'.
7621
3ef06d12
SM
76222003-06-27 Stefan Monnier <monnier@cs.yale.edu>
7623
7624 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
7625 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
7626 (allocate_buffer): Move.
7627 (string_bytes): Don't mask markbit of `size_byte'.
7628 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
7629 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
7630 Use the `size' field of buffers (rather than the `name' field) for
7631 the mark bit, as is done for all other vectorlike objects.
7632 Use the new macros to access the mark bit of vectorlike objects.
7633
e81043aa
RS
76342003-06-26 Richard M. Stallman <rms@gnu.org>
7635
7636 * puresize.h (BASE_PURESIZE): Increment base size.
7637
7638 * xdisp.c (fast_find_position): Enable Gerd's new definition.
7639
7640 * xterm.c (xim_initialize): Undo previous change.
7641
2d0834cc
SM
76422003-06-26 Stefan Monnier <monnier@cs.yale.edu>
7643
7644 * alloc.c (survives_gc_p): Simplify.
7645
7646 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
7647
7648 * window.c (Fset_window_dedicated_p): Simplify.
7649 (display_buffer_1): Don't raise the win from which minibuf was entered.
7650 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
7651 (Fminibuffer_selected_window): Simplify.
7652
7653 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
7654
7655 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
7656 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
7657
7658 * insdel.c (check_markers, adjust_markers_for_delete)
7659 (adjust_markers_for_insert, adjust_markers_for_replace)
7660 (prepare_to_modify_buffer, RESTORE_VALUE):
7661 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
7662 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
7663 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
7664 * alloc.c (Fmake_marker, free_marker, gc_sweep):
7665 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
7666 * editfns.c (save_excursion_restore, transpose_markers):
7667 * window.c (delete_window):
7668 * xdisp.c (message_dolog): Update for new types.
7669
d54ae3d8
JD
76702003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7671
a5f696ac
JD
7672 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
7673 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 7674 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
7675
7676 * frame.c (make_frame): Initialize default_face_done_p.
7677
7678 * frame.h (struct frame): Add default_face_done_p.
7679
d54ae3d8
JD
7680 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
7681 will be defined.
7682
2336fe58
SM
76832003-06-25 Stefan Monnier <monnier@cs.yale.edu>
7684
7685 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
7686 Initialize the new field `gcmarkbit'.
7687 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
7688 (mark_interval_tree): Don't mark the tree separately from the nodes.
7689 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
7690 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
7691 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
7692
7693 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
7694 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
7695 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
7696 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
7697 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
7698
bcea31c2
DL
76992003-06-24 Dave Love <fx@gnu.org>
7700
7701 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
7702
7703 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
7704 from gnulib.
7705
2601f59e
RS
77062003-06-21 Richard M. Stallman <rms@gnu.org>
7707
7708 * fileio.c (Fwrite_region): Alternate messages
7709 for append and partial write.
7710
7711 * keyboard.c (read_key_sequence): When converting upcase fn key to
7712 downcase, update fkey and keytran so `backspace' gets translated.
7713
7714 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
7715
7716 * process.c (wait_reading_process_input): Don't signal SIGIO
7717 in batch mode.
7718
b5d2c621
KH
77192003-06-17 Kenichi Handa <handa@m17n.org>
7720
7721 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
7722 composite.h.
7723
7724 * xselect.c: Don't include charset.h, coding.h, composite.h.
7725 (Qforeign_selection): New variable.
7726 (syms_of_xselect): Intern and static it.
7727 (selection_data_to_lisp_data): Return a unibyte string made from
7728 data with `foreign-selection' text property.
7729
6793bc63
SM
77302003-06-15 Stefan Monnier <monnier@cs.yale.edu>
7731
7732 * termhooks.h (EVENT_INIT): New macro.
7733
7734 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
7735
7736 * alloc.c (mark_kboards): Move to keyboard.c.
7737
7738 * keyboard.c (record_asynch_buffer_change, read_avail_input):
7739 * xterm.c (x_dispatch_event):
7740 * xmenu.c (find_and_call_menu_selection):
7741 * xdisp.c (handle_tool_bar_click):
7742 * w32menu.c (menubar_selection_callback):
7743 * sysdep.c (kbd_input_ast, read_input_waiting):
7744 * msdos.c (dos_rawgetc):
7745 * macterm.c (mac_check_for_quit_char):
7746 * macmenu.c (menubar_selection_callback):
7747 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
7748 data to kbd_buffer_store_event.
7749
b3ea810c
KS
77502003-06-15 Kim F. Storm <storm@cua.dk>
7751
7752 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 7753 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 7754
b8f75eda
KG
77552003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
7756
7757 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
7758
ba92ce48
KH
77592003-06-12 Kenichi Handa <handa@m17n.org>
7760
7761 * fileio.c (Fwrite_region): Save and restore restriction.
7762
b80263be
DL
77632003-06-12 Dave Love <fx@gnu.org>
7764
7765 * alloca.c (alloca): Declare arg as size_t.
7766
6793bc63
SM
7767 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
7768 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 7769
b23c0a83
DL
77702003-06-11 Dave Love <fx@gnu.org>
7771
7772 * search.c (shrink_regexp_cache): Use xrealloc.
7773 (syms_of_search): Use xmalloc.
7774
700e47c2
KS
77752003-06-10 Kim F. Storm <storm@cua.dk>
7776
7777 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
7778 Adjust phys_cursor.x to be relative to window box, rather than
7779 text area before checking -- to ensure cursor is redrawn when
7780 exposing window.
7781 Note: This also fixes a similar (older) bug if display margins
7782 are present.
7783
f11aa0b2
KH
77842003-06-06 Kenichi Handa <handa@m17n.org>
7785
7786 * coding.c (encoding_buffer_size): If coding->type is
7787 coding_type_ccl, double magnification on CRLF encoding.
7788
3d143690
JR
77892003-06-06 Jason Rumney <jasonr@gnu.org>
7790
7791 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
7792 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
7793
7794 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
7795 Mac too.
7796
f16205ca
DL
77972003-06-05 Dave Love <fx@gnu.org>
7798
b23c0a83
DL
7799 * strftime.c: Merge changes from gnulib.
7800
f16205ca
DL
7801 * mktime.c (__mktime_internal): Merge changes from gnulib
7802 involving year 69 and dst2.
7803
7804 Changes to merge with gnulib version and be consistent with the
7805 autoconf test:
7806
6793bc63
SM
7807 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
7808 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
7809 [HAVE_LOCALE_H]: Include locale.h.
7810 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
7811
9b87a0bc
KS
78122003-06-05 Kim F. Storm <storm@cua.dk>
7813
7814 * window.c (coordinates_in_window): Convert X and Y to window
7815 relative coordinates inside mode-line and header-line parts.
7816 Convert X and Y to margin area relative coordinates inside left
7817 and right display margin parts.
7818
5a8a15ec
JR
78192003-06-05 Jason Rumney <jasonr@gnu.org>
7820
7821 * w32fns.c (add_system_logical_colors_to_map): New function.
7822 (Fx_open_connection): Use it.
7823
01ed8ff1
SM
78242003-06-04 Stefan Monnier <monnier@cs.yale.edu>
7825
7826 * process.c (allocate_pty): Revert part of the previous patch.
7827 (Faccept_process_output): Simplify.
7828
b427b65d
JR
78292003-06-04 Jason Rumney <jasonr@gnu.org>
7830
7831 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
7832
7833 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
7834 (lispy_mouse_wheel_names): Remove.
7835 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
7836 Always define drag_and_drop_syms.
7837
7838 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
7839 WHEEL_EVENT events.
7840
914a8c47
SM
78412003-06-03 Stefan Monnier <monnier@cs.yale.edu>
7842
01ed8ff1
SM
7843 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
7844
914a8c47
SM
7845 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
7846
adcb132c
JD
78472003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7848
7849 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
7850 menu item label.
7851
be781fa7
RS
78522003-06-03 Richard M. Stallman <rms@gnu.org>
7853
7854 * window.c (Fwindow_edges): Doc fix.
7855 (Fwindow_pixel_edges, Fwindow_inside_edges)
7856 (Fwindow_inside_pixel_edges): New functions.
7857 (syms_of_window): defsubr them.
7858
7859 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
7860 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
7861
914a8c47
SM
78622003-06-02 Stefan Monnier <monnier@cs.yale.edu>
7863
7864 * dispnew.c (Fsit_for): Don't lie about the number of args.
7865
5b07197a
DL
78662003-06-02 Dave Love <fx@gnu.org>
7867
7868 * callproc.c: Use HAVE_FCNTL_H, not USG5.
7869 (syms_of_callproc) <process-environment>: Doc fix.
7870
7871 * doc.c: Use HAVE_FCNTL_H, not USG5.
7872
7873 * xfaces.c (font_rescale_ratio): Fix for K&R.
7874
7875 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
7876
7877 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
7878
7879 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
7880
7881 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
7882 (xg_create_frame_widgets): Use ENCODE_UTF_8.
7883
d7107586 7884 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
7885
7886 * xmenu.c (ENCODE_MENU_STRING): New.
7887 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
7888 Use it.
7889
7890 * coding.h (ENCODE_UTF_8): New.
7891 (Qutf_8): Declare.
7892
7893 * coding.c (Qutf_8): New.
7894 (syms_of_coding): Intern it.
7895
7896 * fns.c: Doc fixes.
7897
7335b336
KH
78982003-06-02 Kenichi Handa <handa@m17n.org>
7899
7900 * buffer.c (Fset_buffer_multibyte): Fix previous change.
7901
914a8c47
SM
79022003-06-01 Stefan Monnier <monnier@cs.yale.edu>
7903
7904 * lread.c (openp): Make sure STR is a string.
7905
9862c135
JR
79062003-06-01 David Ponce <david@dponce.com>
7907
cab27d04 7908 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
7909 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
7910
7911 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
7912 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
7913 (discard_mouse_events): Discard WHEEL_EVENT events too.
7914 (lispy_wheel_names, wheel_syms): New.
7915 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 7916 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 7917 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
7918
7919 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
7920 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7921 WHEEL_EVENT events.
7922
f984e73e
JPW
79232003-05-31 John Paul Wallington <jpw@gnu.org>
7924
7925 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
7926 timer are in lisp/emacs-lisp.
7927
1efcd78f
KH
79282003-05-31 Kenichi Handa <handa@m17n.org>
7929
458c8af4
KH
7930 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
7931 region when a buffer is changed to unibyte.
7932
1efcd78f
KH
7933 * charset.h (VALID_LEADING_CODE_P): New macro.
7934 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
7935
778e2804
KH
7936 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
7937 is nonzero, accept multibyte form of eight-bit-control chars.
7938 (decode_composition_emacs_mule): Likewise.
7939 (decode_coding_emacs_mule): Likewise.
7940 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
7941 multibyte form of eight-bit-control chars.
7942
7943 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
7944 (Finsert_file_contents): If coding-system-for-read is bound to
7945 Qauto_save_coding, use the coding system emacs-mule with special
7946 setting for recovering a file.
7947 (choose_write_coding_system): On auto saving, use the coding
7948 system emacs-mule with special setting for auto saving.
7949 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
7950
034060e4
KH
79512003-05-30 Kenichi Handa <handa@m17n.org>
7952
7953 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
7954 properly before calling ccl_driver.
7955
778e2804 7956 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 7957
cab27d04 7958 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
7959 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
7960 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
7961
595f5aa5
GM
79622003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
7963
7964 * xfaces.c (realize_default_face): Do not abort if lface is
7965 non-existent - reverts change from 2003-05-19.
7966
103e0180
KH
79672003-05-29 Kenichi Handa <handa@m17n.org>
7968
7969 * coding.c (decode_coding_iso2022): Pay attention to the byte
7970 sequence of CTEXT extended segment, and retain those bytes as is.
7971
79722003-05-28 Kenichi Handa <handa@m17n.org>
7973
cab27d04 7974 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
7975 of CODING_REPLACEMENT_CHARACTER.
7976 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
7977 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
7978 check this flag on encoding.
cab27d04
SM
7979 (encode_coding_sjis_big5):
7980 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
7981 (Fset_terminal_coding_system_internal):
7982 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
7983 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
7984
7985 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
7986 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
7987 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
7988
ff6a3bfb 79892003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 7990
ff6a3bfb
RS
7991 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
7992
7993 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 7994
1963c428
KS
79952003-05-28 Kim F. Storm <storm@cua.dk>
7996
7997 * xdisp.c (expose_window): Fix error in calculation of
7998 window relative coordinates of area to redisplay.
7999
2b5d4601
JR
80002003-05-27 Jason Rumney <jasonr@gnu.org>
8001
8002 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
8003
1c64a4a2
JB
80042003-05-27 David Ponce <david@dponce.com>
8005
8006 Handle W32 mouse wheel events as mouse click events, like in X.
8007
8008 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
8009 MOUSE_WHEEL_EVENT anymore.
8010
8011 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
8012 Scrolling down/up the mouse wheel is respectively mapped to mouse
8013 button 4 and 5.
8014 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
8015 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
8016 WM_MOUSEWHEEL events.
8017
2d031b89
AS
80182003-05-27 Andreas Schwab <schwab@suse.de>
8019
20464fdf
AS
8020 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
8021
2d031b89
AS
8022 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
8023 partially visible line.
8024
8025 * alloc.c (Fgarbage_collect): Fix last change.
8026
97bc76d4
JPW
80272003-05-26 John Paul Wallington <jpw@gnu.org>
8028
8029 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
8030
56613f06
SM
80312003-05-25 Stefan Monnier <monnier@cs.yale.edu>
8032
8033 * window.c (Fset_window_buffer): Add type of `keep_margins'.
8034 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
8035
8036 * window.h (window_box_text_cols): Declare.
8037
8038 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
8039 (x_draw_vertical_border): Remove unused var `f'.
8040
8041 * xfaces.c (build_scalable_font_name): Remove `unused var
8042 pixel_size' warning.
8043
8044 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
8045
8046 * unexelf.c (unexec): Remove `unused var n' warning.
8047
8048 * strftime.c (my_strftime_localtime_r): Remove `defined but
8049 unused' warning.
8050
8051 * process.c (allocate_pty): Remove `unused var stb' and
8052 `cp might be used uninitialized' warnings.
8053
8054 * dispnew.c (mode_line_string): Remove unused var `f'.
8055
8056 * coding.c (find_safe_codings): Remove unused var `i'.
8057
8058 * bytecode.c (Fbyte_code): Remove `unused val' warning.
8059
8060 * buffer.c (Fkill_buffer): Remove unused var `list'.
8061
8062 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
8063
93421a1f
JD
80642003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8065
8066 * frame.c (make_frame): Condition want_fullscreen with
8067 HAVE_WINDOW_SYSTEM.
8068
c4b8aebc
JB
80692003-05-25 Juanma Barranquero <lektu@terra.es>
8070
8071 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
8072 (Fwindow_scroll_bars): Fix typo in docstring.
8073
0416870b
KS
80742003-05-24 Kim F. Storm <storm@cua.dk>
8075
8076 The following changes serve several purposes:
8077
8078 1) Swap the position of fringes and display margins in windows, i.e.
8079 the fringes are now displayed between the margins and the text area
8080 (by default).
8081
8082 2) Allow fringe and scroll bar parameters to be set per-buffer and
8083 per-window (like display margins). Such settings are now stored
8084 in window configurations, preserved when frames are resized, and
9018a88e 8085 copied when windows are split vertically or horizontally.
0416870b
KS
8086 Several bugs related to display margins have been fixed.
8087
8088 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 8089
0416870b
KS
8090 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
8091 rather than FRAME_WIDTH (FRAME_FONT (f)).
8092
8093 5) Introduce a consistent naming of variables, members and macros
8094 depending on whether their value is measured in pixels or in
8095 canonical columns/lines. Pixel dimensions are named *_width and
8096 *_height, while canonical columns/lines are named *_cols and
8097 *_lines. Pixel positions are named *_x and *_y, while column/line
8098 positions are named *_col and *_line.
8099
8100 6) Consolidate more of the X, W32, and MAC gui code by moving
8101 common data into struct frame, and generalize it for the non-gui
8102 case by using suitable defaults.
8103
8104 7) Cleanup and consolidate the macros controlling frame and window
8105 layout into frame.h and window.h, and generalize the use of the
8106 various window_box_* functions (enhanced to handle the new fringe
8107 position and the per-window fringe and scroll bar settings).
8108
8109 * frame.h (struct frame): Rename members height to text_lines,
8110 width to text_cols, window_height to total_lines, window_width to
8111 total_cols, new_height to new_text_lines, new_width to
8112 new_text_cols. All uses changed.
8113 (struct frame): New members which consolidate common members of
8114 x_output, w32_output, and mac_output structures: left_pos,
8115 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
8116 win_gravity, size_hint_flags, border_width, internal_border_width,
8117 line_height, fringe_cols, left_fringe_width, right_fringe_width,
8118 want_fullscreen. All uses changed.
8119 (struct frame): New member column_width contaning the canonical
8120 column width, analogue to line_height. All uses changed.
8121 (struct frame): Rename members scroll_bar_pixel_width to
8122 config_scroll_bar_width, and scroll_bar_cols to
8123 config_scroll_bar_cols. All uses changed.
8124 (struct frame): New member scroll_bar_actual_width which
8125 consolidates and renames the vertical_scroll_bar_extra member of
8126 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 8127 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
8128 from x/w32/macterm.h files. All uses changed. Also change code
8129 which referred to f->output_data...->pixel_height.
cab27d04 8130 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 8131 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 8132 which referred to f->output_data...->pixel_width.
cab27d04 8133 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 8134 Also change code which referred to f->height.
cab27d04 8135 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
8136 Also change code which referred to f->width.
8137 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
8138 to update new_text_lines and new_text_cols members directly.
cab27d04 8139 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 8140 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 8141 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
8142 FRAME_SCROLL_BAR_COLS. All uses changed.
8143 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 8144 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
8145 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
8146 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
8147 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
8148 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
8149 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
8150 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
8151 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
8152 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
8153 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
8154 Unconditionally return line_height member (it now has proper value
8155 also for non-window frames).
8156 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
8157 return new column_width member (rather than the default font width).
8158 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 8159 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
8160 from x/w32/macterm.h files. Unconditionally return corresponding
8161 member of frame structure (they now have proper values also for
8162 non-window frames).
cab27d04 8163 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
8164 Calculate return value from left and right widths.
8165 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
8166 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
8167 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
8168 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
8169 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
8170 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
8171 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 8172 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 8173 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 8174 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 8175 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 8176 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 8177 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 8178 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 8179 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 8180 consolidated from x/mac/w32term.h.
cab27d04 8181 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 8182 consolidated from x/mac/w32term.h.
cab27d04 8183 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 8184 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 8185 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
8186 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
8187
8188 * window.h (struct window): Rename members left to left_col,
8189 top to top_line, height to total_lines, width to total_cols,
8190 left_margin_width to left_margin_cols, right_margin_width to
8191 right_margin_cols, orig_height to orig_total_lines, orig_top to
8192 orig_top_line. All uses changed.
8193 (struct window): New members left_fringe_width, right_fringe_width,
8194 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
8195 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
8196 New macros primarily used to simplify other macros.
8197 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
8198 referred to XINT (w->width).
8199 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
8200 referred to XINT (w->height).
8201 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
8202 referred to XINT (w->width) * canon_x_unit.
8203 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
8204 referred to XINT (w->height) * canon_y_unit.
8205 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
8206 referred to XINT (w->left).
cab27d04 8207 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
8208 all uses and code that referred to XINT (w->left) + XINT (w->width).
8209 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
8210 referred to XINT (w->top).
8211 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
8212 referred to XINT (w->top) + XINT (w->height).
8213 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
8214 referred to XINT (w->left) * canon_x_unit.
8215 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
8216 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
8217 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
8218 referred to XINT (w->top) * canon_y_unit.
8219 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
8220 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
8221 (WINDOW_LEFTMOST_P): New macro.
cab27d04 8222 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 8223 All uses changed.
cab27d04 8224 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 8225 All uses changed.
cab27d04 8226 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
8227 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
8228 Do not exclude left fringe width.
cab27d04 8229 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
8230 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
8231 Do not exclude fringe widths.
8232 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
8233 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
8234 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
8235 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
8236 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
8237 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
8238 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
8239 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
8240 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
8241 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
8242 New macros. Change code which referenced corresponding
8243 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
8244 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
8245 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
8246 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
8247 allow per-window scroll-bar settings.
8248 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
8249 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
8250 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
8251 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
8252 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
8253 FRAME_SCROLL_BAR_WIDTH.
8254 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 8255 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 8256 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 8257 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 8258 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 8259 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 8260 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
8261 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
8262 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
8263 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
8264 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
8265 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 8266 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 8267 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
8268 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
8269 (window_from_coordinates): Update prototype.
8270 (Fset_window_buffer): Update EXFUN.
8271 (set_window_buffer): Update prototype.
9018a88e 8272
0416870b 8273 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 8274 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
8275 changed.
8276 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
8277 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
8278 internal_border_width is now set to 0 for non-window frames.
8279 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
8280 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
8281 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
8282 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
8283 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
8284 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
8285 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
8286 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
8287 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 8288 Move to window.h and renamed [see window.h changes].
0416870b
KS
8289 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
8290 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
8291 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
8292 Use WINDOW_TOTAL_LINES.
0416870b
KS
8293 (frame_update_line_height): Remove prototype.
8294
8295 * buffer.h (struct buffer): Rename members measured in columns:
8296 left_margin_width to left_margin_cols, right_margin_width to
8297 right_margin_cols. All uses changed.
8298 New members left_fringe_width, right_fringe_width,
8299 fringes_outside_margins for per-buffer fringe settings.
8300 New members scroll_bar_width and vertical_scroll_bar_type for
8301 per-buffer scroll bar settings.
8302
8303 * buffer.c (init_buffer_once): Set buffer_defaults and
8304 buffer_local_flags for new buffer-local variables
8305 left_fringe_width, right_fringe_width, fringes_outside_margins,
8306 scroll_bar_width, and vertical_scroll_bar_type.
8307 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
8308 default-* variables for them.
8309
8310 * dispnew.c: Make (many) trivial substitutions for renamed and
8311 new macros in dispextern.h, frame.h and window.h.
8312 (mode_line_string): No need to adjust width for mode lines, as it
8313 is already adjusted by the caller.
8314 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 8315
0416870b
KS
8316 * frame.c: Make (many) trivial substitutions for renamed and
8317 new macros in dispextern.h, frame.h and window.h.
8318 (make_frame): Initialize left_fringe_width, right_fringe_width,
8319 fringe_cols, scroll_bar_actual_width, border_width,
8320 internal_border_width, column_width, line_height, x_pixels_diff,
8321 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
8322 members with values suitable for a non-window frames.
8323
8324 * gtkutil.c: Make (many) trivial substitutions for renamed and
8325 new macros in dispextern.h, frame.h and window.h.
9018a88e 8326
0416870b
KS
8327 * indent.c: Make (few) trivial substitutions for renamed and
8328 new macros in dispextern.h, frame.h and window.h.
8329
8330 * keyboard.c: Make (many) trivial substitutions for renamed and
8331 new macros in dispextern.h, frame.h and window.h.
8332 (make_lispy_event): Use window positions returned from
8333 window_from_coordinates when constructing the lisp event for
8334 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
8335 (incorrect) values locally.
8336 (make_lispy_movement): Use window positions returned from
8337 window_from_coordinates when constructing the lisp event, rather
8338 than calculating (incorrect) values locally.
8339
8340 * scroll.c: Make (some) trivial substitutions for renamed and
8341 new macros in dispextern.h, frame.h and window.h.
8342
8343 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
8344 scroll-bars.
8345
8346 * sysdep.c: Make (few) trivial substitutions for renamed and
8347 new macros in dispextern.h, frame.h and window.h.
8348
8349 * term.c: Make (some) trivial substitutions for renamed and
8350 new macros in dispextern.h, frame.h and window.h.
8351
8352 * widget.c: Make (few) trivial substitutions for renamed and
8353 new macros in dispextern.h, frame.h and window.h.
8354
8355 * window.c: Make (many) trivial substitutions for renamed and
8356 new macros in dispextern.h, frame.h and window.h.
8357 (make_window): Initialize new members
8358 left_margin_cols, right_margin_cols, left_fringe_width,
8359 right_fringe_width, fringes_outside_margins, scroll_bar_width,
8360 and vertical_scroll_bar_type.
cab27d04 8361 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 8362 and per-window fringes and scroll-bars.
0416870b 8363 Fix bug related to incorrectly adjusting coordinates by
9018a88e 8364 frame's internal_border_width (the effect normally negible since
0416870b
KS
8365 the internal_border_width is typically 0 or 1 pixel, but very
8366 noticeable for an internal_border_width of e.g. 25 pixels).
8367 Upon successful return (other than ON_NOTHING), the coordinates
8368 are now always properly converted to window relative for the
8369 given display element.
8370 (window_from_coordinates): Add new parameters wx and wy to
8371 return the window relative x and y position in the returned
8372 window and part. A null arg means, don't return the position.
8373 All callers changed.
8374 (adjust_window_margins): New function which may reduce the width
8375 of the display margins if a window's text area is too small after
8376 resizing or splitting windows.
8377 (size_window): Fix bug that did not account for display margin
8378 widths when checking the minimum width of a window; use
8379 adjust_window_margins.
8380 (set_window_buffer): Call Fset_window_fringes and
8381 Fset_window_scroll_bars to setup per-window elements.
8382 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
8383 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
8384 (e.g. after splitting a window or resizing the frame).
8385 All callers changed.
0416870b
KS
8386 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
8387 (Fsplit_window): Duplicate original window's display margin,
8388 fringe, and scroll-bar settings; then call Fset_window_buffer with
8389 KEEP_MARGINS non-nil. This fixes a bug which caused a split
8390 window to only preserve the display margins in one of the windows.
c4b8aebc 8391 When splitting horizontally, call adjust_window_margins on both
0416870b 8392 windows to ensure that the text area of the new windows is non too
f9711de4 8393 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
8394 width of the split window was less than the width of the display
8395 margins.
cab27d04 8396 (window_box_text_cols): Rename from window_internal_width.
9018a88e 8397 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
8398 Fix bug that caused vertical separator to be subtracted also on
8399 window frames. Fix another bug that did not reduce the returned
8400 value by the columns used for display margins.
8401 (window_scroll_line_based): Fix bug related to scrolling too much
8402 when display margins are present (implicitly fixed by the fix to
8403 window_box_text_cols).
8404 (scroll_left, scroll_right): Fix bug related to scrolling too far
8405 by default when display margins are present (implicitly fixed by
8406 the fix to window_box_text_cols).
8407 (struct saved_window): Rename members left to left_col, top to
8408 top_line, width to total_cols, height to total_lines, orig_top to
8409 orig_top_line, orig_height to orig_total_lines. All uses changed.
8410 New members left_margin_cols, right_margin_cols,
8411 left_fringe_width, right_fringe_width, fringes_outside_margins,
8412 scroll_bar_width, and vertical_scroll_bar_type for saving
8413 per-window display elements.
8414 (Fset_window_configuration): Restore display margins, fringes,
8415 and scroll bar settings. This fixes a bug which caused display
8416 margins to be discarded when saving and restoring a window
8417 configuration.
8418 (save_window_save): Save display margins, fringes, and scroll bar
8419 settings. This fixes a bug which caused display margins to be
8420 discarded when saving and restoring a window configuration.
8421 (Fset_window_margins): Do nothing if display margins are not
8422 really changed. Otherwise, call adjust_window_margins to ensure
8423 the text area doesn't get too narrow. This fixes a bug which
f9711de4 8424 could cause Emacs to trap if setting display margins wider than
0416870b
KS
8425 the width of the window.
8426 (Fset_window_fringes): New defun to allow user to specifically set
8427 this window's fringe widths and position vs. display margins.
cab27d04 8428 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
8429 (Fset_window_scroll_bars): New defun to allow user to specifically
8430 set this window's scroll bar width and position.
8431 (Fwindow_scroll_bars): New defun to return window's actual scroll
8432 bar settings.
8433 (compare_window_configurations): Also compare display margins,
8434 fringes, and scroll bar settings.
8435 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
8436
8437 * xdisp.c: Make (many) trivial substitutions for renamed and
8438 new macros in dispextern.h, frame.h and window.h.
8439 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 8440 and new fringe vs. display margin position. Note that returned
0416870b
KS
8441 value is no longer guaranteed to be a whole multiple of the frame
8442 column width, since per-window fringes may now be any width.
8443 (window_box_left_offset): New function like window_box_left, but
8444 value is relative to left border of window (rather than frame).
8445 (window_box_right_offset): New function like window_box_right,
8446 but value is relative to left border of window.
8447 (window_box_left): Adapt to per-window fringes and scroll bars,
8448 and new fringe vs. display margin position. Simplify by using
8449 WINDOW_LEFT_EDGE_X and window_box_left_offset.
8450 (window_box): Allow null args for unnecessary return values;
8451 change/simplify relevant callers.
8452 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
8453 and new fringe vs. display margin position.
8454 Use window_box_left_offset and window_box_right_offset
0416870b 8455 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
8456 scroll bars, and new fringe vs. display margin position.
8457 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
8458 (draw_fringe_bitmap): Rework to handle per-window fringes and new
8459 fringe vs. display margin position.
8460 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
8461 (redisplay_window): Adapt to per-window scroll bars.
8462 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
8463 bars, and new fringe vs. display margin position.
8464 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 8465 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
8466 bars, and new fringe vs. display margin position. Fix bug which
8467 increased total width of full_width rows by width of scroll bars
8468 although window's total width already includes that.
8469 (x_fix_overlapping_area): Simplify using window_box_left_offset.
8470 (expose_area): Simplify using window_box_left_offset.
8471 (x_draw_vertical_border): Handle per-window scroll bar settings,
8472 mixing windows with left, right and no scroll bars.
8473
8474 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
8475 where it's used in x_list_fonts (for clarity).
8476 (frame_update_line_height): Remove unused function; functionality
8477 is now done directly when setting the default font in x_set_font.
8478
8479 * xfns.c: Make (many) trivial substitutions for renamed and
8480 new macros in dispextern.h, frame.h and window.h.
8481
8482 * xmenu.c: Make (some) trivial substitutions for renamed and
8483 new macros in dispextern.h, frame.h and window.h.
8484
8485 * xterm.h (struct x_output): Move members left_pos, top_pos,
8486 border_width, pixel_height, pixel_width, line_height,
8487 internal_border_width, vertical_scroll_bar_extra,
8488 left_fringe_width, right_fringe_width, fringe_cols,
8489 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8490 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
8491 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8492 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8493 (PIXEL_WIDTH, PIXEL_HEIGHT)
8494 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 8495 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
8496 frame.h and renamed [see frame.h changes].
8497 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8498 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 8499 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 8500 and renamed [see frame.h changes].
9018a88e 8501
0416870b
KS
8502 * xterm.c: Make (several) trivial substitutions for renamed and
8503 new macros in dispextern.h, frame.h and window.h.
cab27d04 8504 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
8505 (scroll_run): Adapt to new fringe position.
8506 (glyph_rect): Use window coordinates returned from
8507 window_from_coordinates rather than frame_to_window_pixel_xy.
8508 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8509 scroll-bars.
8510 (handle_one_xevent): Simplify a USE_GTK conditional.
8511 (x_clip_to_row): Remove superfluous whole_line_p arg and code
8512 (fringes are now inside margins, i.e. always in the clipping area).
8513 All callers changed.
8514 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8515 directly, then call compute_fringe_widths. Don't call
8516 frame_update_line_height.
8517
8518 * w32term.h (struct w32_output): Move members left_pos, top_pos,
8519 border_width, pixel_height, pixel_width, line_height,
8520 internal_border_width, vertical_scroll_bar_extra,
8521 left_fringe_width, right_fringe_width, fringe_cols,
8522 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8523 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
8524 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8525 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8526 (PIXEL_WIDTH, PIXEL_HEIGHT)
8527 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 8528 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
8529 frame.h and renamed [see frame.h changes].
8530 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8531 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 8532 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 8533 and renamed [see frame.h changes].
9018a88e 8534
0416870b
KS
8535 * w32term.c: Make (several) trivial substitutions for renamed and
8536 new macros in dispextern.h, frame.h and window.h.
cab27d04 8537 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
8538 (glyph_rect): Use window coordinates returned from
8539 window_from_coordinates rather than frame_to_window_pixel_xy.
8540 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8541 scroll-bars.
8542 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
8543 (fringes are now inside margins, i.e. always in the clipping area).
8544 All callers changed.
8545 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8546 directly, then call compute_fringe_widths. Don't call
8547 frame_update_line_height.
8548
8549 * w32console.c: Make (few) trivial substitutions for renamed and
8550 new macros in dispextern.h, frame.h and window.h.
8551
8552 * w32fns.c: Make (many) trivial substitutions for renamed and
8553 new macros in dispextern.h, frame.h and window.h.
8554
8555 * w32menu.c: Make (few) trivial substitutions for renamed and
8556 new macros in dispextern.h, frame.h and window.h.
8557
8558 * macterm.h (struct mac_output): Move members left_pos, top_pos,
8559 border_width, pixel_height, pixel_width, line_height,
8560 internal_border_width, vertical_scroll_bar_extra,
8561 left_fringe_width, right_fringe_width, fringe_cols,
8562 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8563 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
8564 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8565 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8566 (PIXEL_WIDTH, PIXEL_HEIGHT)
8567 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 8568 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
8569 frame.h and renamed [see frame.h changes].
8570 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8571 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 8572 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 8573 and renamed [see frame.h changes].
9018a88e 8574
0416870b
KS
8575 * macterm.c: Make (several) trivial substitutions for renamed and
8576 new macros in dispextern.h, frame.h and window.h.
cab27d04 8577 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
8578 (glyph_rect): Use window coordinates returned from
8579 window_from_coordinates rather than frame_to_window_pixel_xy.
8580 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8581 scroll-bars.
8582 (x_clip_to_row): Remove superfluous whole_line_p arg and code
8583 (fringes are now inside margins, i.e. always in the clipping area).
8584 All callers changed.
8585 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8586 directly, then call compute_fringe_widths. Don't call
8587 frame_update_line_height.
8588
8589 * macfns.c: Make (several) trivial substitutions for renamed and
8590 new macros in dispextern.h, frame.h and window.h.
9018a88e 8591 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
8592
8593 * macmenu.c: Make (few) trivial substitutions for renamed and
8594 new macros in dispextern.h, frame.h and window.h.
8595
8596 * msdos.h (struct x_output): Remove members left_pos, top_pos,
8597 and line_height, and use corresponding new members in struct
8598 frame. All uses changed.
8599 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
8600 superseeded by corresponding macros in frame.h.
8601
8602 * msdos.c: Make (several) trivial substitutions for renamed and
8603 new macros in dispextern.h, frame.h and window.h.
8604 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 8605 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
8606 (internal_terminal_init): No need to initialize line_height here;
8607 it now defaults to 1.
8608
9018a88e
SM
86092003-05-24 Stefan Monnier <monnier@cs.yale.edu>
8610
8611 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
8612 dropping `down' events.
8613
016bd3c0
AS
86142003-05-24 Andreas Schwab <schwab@suse.de>
8615
8616 * coding.c (find_safe_codings): Fix last change.
8617
4dacadcc
TTN
86182003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
8619
8620 * xfns.c (x_window): Fix typo from 2003-05-21 change.
8621
319830ce
SM
86222003-05-23 Stefan Monnier <monnier@cs.yale.edu>
8623
9018a88e
SM
8624 * xdisp.c (display_mode_element): Increase max depth.
8625 Simplify the error handling code. Use a different error string
8626 for the case where we hit the depth limit.
8627
319830ce
SM
8628 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
8629
8630 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
8631
86322003-05-21 Stefan Monnier <monnier@cs.yale.edu>
8633
8634 * intervals.c (get_local_map): Don't get char-property of previous
8635 point any more: get_pos_property already does it and better.
8636
c67de8ba
DL
86372003-05-21 Dave Love <fx@gnu.org>
8638
8639 [Merged from unicode branch.]
8640
8641 * xfns.c (x_window, x_window): Use use_xim.
8642
8643 * xterm.c (use_xim): Initialize.
8644 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
8645 (x_term_init): Maybe set use_xim.
8646
8647 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
8648
edd3ff1d
JR
86492003-05-21 Jason Rumney <jasonr@gnu.org>
8650
8651 * unexw32.c (_start): Remove _fmode initialization.
8652
8653 * emacs.c (main) [WINDOWSNT]: Move it here.
8654
463f55ee
DL
86552003-05-20 Dave Love <fx@gnu.org>
8656
8657 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
8658
af253914
RS
86592003-05-19 Richard M. Stallman <rms@gnu.org>
8660
8661 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
8662 as value for QCfont attribute.
8663 (realize_default_face): lface should already exist; crash if not.
8664 Specify 0 for FORCE_P when calling set_lface_from_font_name.
8665
8666 * frame.c (Fignore_event): Doc fix.
8667
1d211019
KH
86682003-05-19 Kenichi Handa <handa@m17n.org>
8669
8670 * coding.c (decode_coding_string): Handle post-read-conversion
8671 even if the coding doesn't require decoding.
8672
4dd68254
RS
86732003-05-18 Richard M. Stallman <rms@gnu.org>
8674
8675 * callproc.c (Fcall_process_region): Doc fix.
8676
14d87dc9
SM
86772003-05-17 Stefan Monnier <monnier@cs.yale.edu>
8678
deca5d96
SM
8679 * lread.c (Fload): Print a message if package is obsolete.
8680
14d87dc9
SM
8681 * window.c (Fselect_window): Add optional `norecord' arg.
8682 (select_window_1): Fold into Fselect_window.
8683 (select_window_norecord): New function.
8684 (temp_output_buffer_show): Use it. Preserve current buffer.
8685
8686 * window.h (Fselect_window): Update declaration.
8687
8688 * window.c (delete_window, Fother_window, Fset_window_configuration):
8689 * minibuf.c (read_minibuf):
8690 * macterm.c (x_new_focus_frame):
8691 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
8692 * callint.c (Fcall_interactively):
8693 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
8694
8695 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
8696
78f52183
DK
86972003-05-17 David Kastrup <dak@gnu.org>
8698
8699 * process.c (read_process_output): Back out change from 2003-03-09.
8700
14d87dc9
SM
87012003-05-17 Stefan Monnier <monnier@cs.yale.edu>
8702
8703 * editfns.c (get_pos_property): Don't assume that `object' = nil.
8704
8705 * textprop.c (text_property_stickiness): New arg `buffer'.
8706
8707 * intervals.h (text_property_stickiness): New arg `buffer'.
8708 (get_pos_property): Declare.
8709
8710 * intervals.c (get_local_map): Use get_pos_property, to obey
8711 stickiness and empty overlays.
8712 (create_root_interval, graft_intervals_into_buffer): Use BEG.
8713 (merge_properties, intervals_equal, merge_properties_sticky):
8714 Use XCAR, XCDR.
8715 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
8716
1fd1cc2f
RS
87172003-05-17 Richard M. Stallman <rms@gnu.org>
8718
4f9f637a
RS
8719 * minibuf.c (read_minibuf): If buffer is empty, record the default
8720 in the history.
8721 (Fminibuffer_complete_word): When deleting the overlap, take account
8722 of its real position.
8723
8724 * fns.c (map_char_table): Fix previous change.
8725
1fd1cc2f
RS
8726 * syntax.c (find_defun_start):
8727 When open_paren_in_column_0_is_defun_start,
8728 return beginning of buffer.
8729
8730 * lisp.h (map_char_table): Declare added arg.
8731
8732 * fns.c (map_char_table): New arg TABLE gets the master table.
8733 All calls changed.
8734 Process default and inheritance, resorting to Faref if necessary.
8735
8736 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
8737 (Faccessible_keymaps): Pass new arg to map_char_table.
8738
8739 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
8740
8741 * casetab.c (set_case_table): Pass new arg to map_char_table.
8742
8743 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
8744
8745 * lisp.h (specbinding_func): New typedef.
8746 (struct specbinding): Use specbinding_func, to put the `volatile'
8747 in the right place.
8748
8749 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
8750 to avoid GCC warning.
14d87dc9 8751
b6189c3b 87522003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 8753
14d87dc9 8754 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 8755
35fb885d
SM
87562003-05-15 Stefan Monnier <monnier@cs.yale.edu>
8757
8758 * keyboard.c (apply_modifiers): Don't fill the other cache.
8759
9a274fbd
SM
87602003-05-14 Stefan Monnier <monnier@cs.yale.edu>
8761
c55b5fad
SM
8762 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
8763
9a274fbd
SM
8764 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
8765 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
8766 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
8767 (Fset_window_configuration, Fcurrent_window_configuration)
8768 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
8769 (Fpos_visible_in_window_p, mark_window_cursors_off)
8770 (window_internal_height, window_internal_width, Frecenter)
8771 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
8772 (replace_buffer_in_all_windows, init_window_once, init_window)
8773 (syms_of_window, keys_of_window): Move from lisp.h.
8774 * lisp.h: Move window.c declarations to window.h.
8775
8776 * bytecode.c: Include window.h.
8777 * emacs.c: Include window.h.
8778
14d87dc9 8779 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
8780 (keyremap): Add `parent' field.
8781 (keyremap_step): Use it. Remove `parent' argument.
8782 (read_key_sequence): Setup and use the new `parent' field.
8783
fd93e331
SM
87842003-05-11 Stefan Monnier <monnier@cs.yale.edu>
8785
8786 * keyboard.c (adjust_point_for_property): Ensure termination.
8787
1c4001a1
SM
87882003-05-10 Stefan Monnier <monnier@cs.yale.edu>
8789
8790 * keyboard.c (follow_key): Remove dead variable `did_meta'.
8791 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
8792 duplicated handling of function-key-map and key-translation-map
8793 in read_key_sequence.
8794 (read_key_sequence): Use them.
8795
8796 * keyboard.c (adjust_point_for_property): Try harder to move point
8797 to the non-sticky end of an invisible property.
8798
8799 * xdisp.c (single_display_prop_intangible_p): Make `space' display
8800 property intangible as well.
8801
780379b1
AS
88022003-05-10 Andreas Schwab <schwab@suse.de>
8803
8804 * xmenu.c (single_menu_item): Change last parameter to void* to
8805 avoid warning.
8806
ca2de342
RS
88072003-05-09 Richard M. Stallman <rms@gnu.org>
8808
8809 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
8810 Bind Qinhibit_modification_hooks to t so there will be no GC.
8811 Rename local `tem' to `save_deactivate_mark'.
8812
8813 * eval.c (specpdl_ptr): Declare volatile.
8814 (unbind_to): Copy the whole binding and decrement specpdl_ptr
8815 before doing the work of unbinding it.
8816
8817 * lisp.h (struct specbinding): Declare elements volatile.
8818 (specpdl_ptr): Declare volatile.
8819
8820 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
8821
8822 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
8823 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
8824
347003be
DL
88252003-05-08 Dave Love <fx@gnu.org>
8826
8827 * coding.c (Vlast_coding_system_used): Doc fix.
8828
5adcec23
JR
88292003-05-07 Jason Rumney <jasonr@gnu.org>
8830
8831 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
8832 when system does not support them.
8833
5fe3b8a4
SM
88342003-05-05 Stefan Monnier <monnier@cs.yale.edu>
8835
8836 * fileio.c (Qwrite_region_annotate_functions): New var.
8837 (build_annotations): Use it to process the global part of the hook.
8838 (syms_of_fileio): Init and staticpro it.
8839
8840 * keyboard.c (safe_run_hooks_error): Display a message instead of
8841 silently ignoring the error.
8842
88432003-05-03 Stefan Monnier <monnier@cs.yale.edu>
8844
8845 * keyboard.c (input_available_signal): Mark static.
8846 (menu_bar_items): Use map_keymap.
8847 (menu_bar_one_keymap): Remove.
8848 (menu_bar_item): Adjust arglist (for use in map_keymap).
8849 Properly hide a second binding when not both are keymaps.
8850
8851 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
8852 (single_keymap_panes): Use it and map_keymap.
8853 (single_menu_item): Use skp as well.
8854
8855 * keymap.h (map_keymap_function_t): New type.
8856 (map_keymap): Declare.
8857
8858 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
8859 (map_keymap_call, Fmap_keymap): New functions.
8860 (syms_of_keymap): Defsubr map-keymap.
8861
4b1b4443
JD
88622003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8863
8864 * gtkutil.c (create_dialog, make_widget_for_menu_item)
8865 (make_menu_item, create_menus, xg_update_menu_item): Don't call
8866 ..._with_mnemonic functions for menu items.
8867
1f816871
KH
88682003-05-01 Kenichi Handa <handa@m17n.org>
8869
8870 * coding.c (coding_system_accept_latin_extra_p): Delete this
8871 function.
8872 (find_safe_codings): Pay attention to
8873 the property tranlsation-table-for-encode of each codings.
8874 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
8875
5ed6ba5b
SM
88762003-05-01 Stefan Monnier <monnier@cs.yale.edu>
8877
8878 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
8879
32c06229
SM
88802003-04-30 Stefan Monnier <monnier@cs.yale.edu>
8881
8882 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
8883
8884 * lisp.h (CHECK): Wrap args in parenthesis.
8885 (specbind): Fix doc: symbol = Qnil is not supported any more.
8886
8887 * bytecode.c (Fbyte_code) <unwind-protect>:
8888 Use Fprogn rather than 0 and Qnil.
8889
8890 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
8891 `double', and `triple' modifiers as well.
8892
ed3c3314
RS
88932003-04-30 Richard M. Stallman <rms@gnu.org>
8894
8895 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
8896
8897 * alloc.c (abort_on_gc): New variable.
8898 (Fgarbage_collect): Abort if abort_on_gc is set.
8899
8900 * lisp.h (abort_on_gc): Add decl.
8901
8902 * eval.c (Fsignal): Clear abort_on_gc.
8903
8904 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 8905 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
8906
8907 * xdisp.c (move_it_vertically_backward): Do the final big else
8908 even if nlines is 0.
8909
8910 * xdisp.c (redisplay_internal): Finish the per-frame loop
8911 even if redisplay is suspended by input.
8912
0b325c12
AC
89132003-04-24 Andrew Choi <akochoi@shaw.ca>
8914
8915 * macterm.c (x_list_fonts): Return all fonts that match if
8916 maxnames = -1.
8917
4e837cd0
KH
89182003-04-25 Kenichi Handa <handa@m17n.org>
8919
8920 * syntax.c (skip_chars): Fix previous change.
8921
9af7511a
KH
89222003-04-24 Kenichi Handa <handa@m17n.org>
8923
8924 * syntax.c (skip_chars): Make the code faster by using the common
8925 technique of *p, *stop, and *endp.
8926
e3b2c21f
JD
89272003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8928
8929 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 8930 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
8931 being updated.
8932
32c06229
SM
89332003-04-19 Stefan Monnier <monnier@cs.yale.edu>
8934
8935 * eval.c (Fapply): Undo last change and add a comment about why.
8936
c6464167
MB
89372003-04-18 Miles Bader <miles@gnu.org>
8938
8939 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
8940 pickier PARSE_MULTIBYTE_SEQ.
8941
e509f168
SM
89422003-04-17 Stefan Monnier <monnier@cs.yale.edu>
8943
8944 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
8945 Use XCDR, XCAR, CONSP.
8946 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
8947 (Fapply): Remove unnecessary GCPRO.
8948
8949 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
8950
8951 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
8952
8953 * buffer.h: Don't hardcode BEG==1.
8954
8955 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
8956
5ceea398
RS
89572003-04-16 Richard M. Stallman <rms@gnu.org>
8958
8959 * xdisp.c (try_window, try_window_reusing_current_matrix):
8960 When at end of window, set window_end_pos to Z-ZV.
8961
8962 * buffer.c (Foverlay_recenter): Doc fix.
8963
e509f168
SM
89642003-04-14 Stefan Monnier <monnier@cs.yale.edu>
8965
8966 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
8967
d243e605
AC
89682003-04-14 Andrew Choi <akochoi@shaw.ca>
8969
8970 * macterm.c (mac_check_for_quit_char): Don't check more often than
8971 once a second.
8972
6901b111
SM
89732003-04-11 Stefan Monnier <monnier@cs.yale.edu>
8974
8975 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
8976 specially, so that they can't hide an implicit switch-frame event.
8977 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
8978 (head_table): Use switch-frame as event_kind for select-window.
8979 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
8980
8981 * editfns.c (Fformat): Lisp_Object/int mixup.
8982 (format2): Remove unused var numargs.
8983
e301806f 89842003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 8985
6901b111 8986 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
8987 (Qafter_insert_file_set_coding): New variable.
8988 (syms_of_fileio): Initialize and staticpro it. Delete declaration
8989 for after-insert-file-adjust-coding-function.
8990 (Finsert_file_contents): Call Qafter_insert_file_set_coding
8991 instead of Vafter_insert_file_adjust_coding_function.
8992
38914424
KH
89932003-04-11 Kenichi Handa <handa@m17n.org>
8994
8995 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
8996
8997 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
8998 string. Callers changed.
8999
90002003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 9001
6901b111 9002 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 9003 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
9004 (Finsert_file_contents):
9005 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
9006 decode-format.
9007
f979dc05
JD
90082003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9009
9010 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
9011 get GtkAdjustment as widget now is a GtkRange.
9012
9013 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
9014 GtkRange to avoid memory leak.
9015
f8c6b4c2 90162003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 9017
50ebc53d
KH
9018 * xfaces.c (Vface_font_rescale_alist): New variable.
9019 (struct font_name): New member rescale_ratio.
9020 (font_rescale_ratio): New function.
6901b111 9021 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
9022 (better_font_p): On comparing point sized, pay attention to
9023 recale_ratio member of fonts.
9024 (build_scalable_font_name): Reflect font->rescale_ratio in the
9025 font name.
6901b111 9026 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 9027
cb98871c
KH
9028 * lread.c (read1): Before calling index, check if the 2nd
9029 arguemnt is in ASCII range.
9030
4773b8ca
RS
90312003-04-08 Richard M. Stallman <rms@gnu.org>
9032
b0ada147
RS
9033 * fileio.c (Ffile_symlink_p): Doc fix.
9034
9035 * editfns.c (Fformat): Translate positions of text properties
9036 in the format string to apply them to the result.
9037
4773b8ca
RS
9038 * fileio.c (Finsert_file_contents): Doc fix.
9039 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
9040
90412003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 9042
4773b8ca
RS
9043 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
9044
e8f25745 90452003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 9046
e8f25745
ST
9047 * mac.c (init_mac_osx_environment): Switch libexec and bin so
9048 that self-contained application finds libexec files.
9049
f8c6b4c2 90502003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 9051
6901b111
SM
9052 * coding.c (code_convert_region_unwind):
9053 Set Vlast_coding_system_used to the argument.
2310d84c
KH
9054 (code_convert_region): If post-read-conversion function changed
9055 the value of last-coding-sytem, keep the new value in
9056 coding->symbol so that it won't be overridden.
9057 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
9058 (coding_system_accept_latin_extra_p): New function.
9059 (find_safe_codings): Pay attention to characters registered in
9060 latin-extra-code-table.
2310d84c 9061
39c9a034
TTN
90622003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
9063
9064 * Makefile.in (md5.o): Add missing dependency info.
9065
eb67c5d6
RS
90662003-04-06 Richard M. Stallman <rms@gnu.org>
9067
9068 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
9069
9070 * marker.c (verify_bytepos): New function.
9071
9072 * intervals.c (set_intervals_multibyte_1): When becoming
9073 multibyte, adjust right and left child sizes to a whole set of
9074 characters. If an interval gets zero total-length, delete it.
9075 If an interval consists of just its children, delete one of them.
9076
9077 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
9078 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 9079
eb67c5d6
RS
9080 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
9081 All calls deleted.
9082 (lisp_malloc): Do the work here directly.
9083
b1f81fc5
JB
90842003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
9085
9086 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
9087 char tables.
9088
90892003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
9090
9091 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
9092 destructively change "%S" to "%s".
9093
774666fb
MB
90942003-04-03 Miles Bader <miles@gnu.org>
9095
9096 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
9097 always set.
9098
19c37f01
DL
90992003-04-01 Dave Love <fx@gnu.org>
9100
9101 * xfns.c (xpm_lookup_color): Grok "opaque".
9102
2f4b24c3
AC
91032003-03-31 Andrew Choi <akochoi@shaw.ca>
9104
9105 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
9106 parent window ID.
9107
9108 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
9109
9110 * macterm.h (struct mac_output): Define x_pixels_diff and
9111 y_pixels_diff.
b1f81fc5 9112
9443fcf6
JB
91132003-03-31 Juanma Barranquero <lektu@terra.es>
9114
9115 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
9116 blockinput.h and files included from it.
9117
e072891b
KS
91182003-03-31 Kim F. Storm <storm@cua.dk>
9119
9120 The following changes consolidates the common code related to
9121 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
9122 files into frame.c.
9443fcf6 9123
e072891b
KS
9124 * frame.c: Include blockinput.h.
9125 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
9126 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
9127 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
9128 related vars here.
9129 (struct frame_parm_table, frame_parms): New table for describing
9130 frame parameters and their associated Q-variable.
9131 The order of the parameters corresponds to the sequence of the
9132 frame_parm_handlers table in redisplay_interface.
9133 (x_fullscreen_move, x_set_frame_parameters)
9134 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
9135 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
9136 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9137 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
9138 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
9139 Generic functions for processing of frame parameters.
9140 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
9141 (display_x_get_resource, x_get_resource_string): Functions for
9142 generic access to X resources.
9143 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
9144 (x_default_parameter, Fx_parse_geometry): Functions for generic
9145 access to frame parameters.
6901b111
SM
9146 (x_figure_window_size): Generic calculation of frame size.
9147 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
9148 (syms_of_frame): Intern and staticpro frame parameter variables.
9149 Defvar_lisp Vx_resource_class and Vx_resource_name here.
9150 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 9151
e072891b
KS
9152 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
9153 parameter related vars defined in frame.c.
9154 (EMACS_CLASS): Define here.
9155 (enum FULLSCREEN_*): Define here.
9156 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
9157 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
9158 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
9159 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
9160 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
9161 (x_set_visibility, x_set_autoraise, x_set_autolower)
9162 (x_set_unsplittable, x_set_vertical_scroll_bars)
9163 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
9164 (x_figure_window_size): Add prototypes.
9165
9166 * dispextern.h (frame_parm_handler): New typedef.
9167 (struct redisplay_interface): New member frame_parm_handlers.
9168 (enum resource_types): Move declaration here.
9169 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
9170 (x_default_parameter): Add prototypes.
9171
9172 * window.c: Remove extern decl for frame parameter vars.
9173 (change_window_heights): New generic function;
9174 replaces x_change_window_heights. All users changed.
9175
9176 * window.h (change_window_heights): Add prototype.
9177
9178 * xfaces.c: Remove extern decl for frame parameter vars.
9179
9180 * xterm.h (EMACS_CLASS): Remove. Use generic define.
9181 (struct w32_display_info): Fix type of xrdb member.
9182 (enum FULLSCREEN_*): Remove.
9183 Remove prototypes for generic functions (in frame.h).
9184
9185 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9186 parameters now defined in frame.h and frame.c.
f63fd14e 9187 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
9188 (enum x_frame_parms): Remove (bogus, unused enum).
9189 (check_x_display_info): Make non-static (for frame.c).
9190 (struct x_frame_parm_table, x_frame_parms): Remove.
9191 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9192 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9193 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9194 (x_change_window_heights, x_set_autoraise, x_set_autolower)
9195 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9196 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9197 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9198 Remove. Use generic functions instead.
9199 (enum resource_types): Remove.
9200 (x_set_scroll_bar_default_width): New global function (for frame.c).
9201 (Fx_create_frame): Depend on x_figure_window_size to add space for
9202 toolbar and setup size_hint_flags.
9203 (x_frame_parm_handlers): New table for redisplay_interface.
9204 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 9205
e072891b 9206 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 9207 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
9208 (x_redisplay_interface): Add x_frame_parm_handlers member.
9209
9210 * w32gui.h (XrmDatabase): New (dummy) typedef.
9211
9212 * w32term.h (EMACS_CLASS): Remove. Use generic define.
9213 (struct w32_display_info): Fix type of xrdb member.
9214 (enum FULLSCREEN_*): Remove.
9215 (x_fullscreen_adjust): Remove prototype.
9216
9217 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9218 parameters now defined in frame.h and frame.c.
f63fd14e 9219 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
9220 (enum x_frame_parms): Remove (bogus, unused enum).
9221 (check_x_display_info): Make non-static (for frame.c).
9222 (struct x_frame_parm_table, x_frame_parms): Remove.
9223 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9224 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9225 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9226 (x_change_window_heights, x_set_autoraise, x_set_autolower)
9227 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9228 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9229 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9230 Remove. Use generic functions instead.
9231 (enum resource_types): Remove.
9232 (x_set_scroll_bar_default_width): New global function (for frame.c).
9233 (Fx_create_frame): Depend on x_figure_window_size to add space for
9234 toolbar and setup size_hint_flags.
9235 (w32_frame_parm_handlers): New table for redisplay_interface.
9236 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 9237
e072891b
KS
9238 * w32term.c: Remove unnecessary extern declarations.
9239 (x_fullscreen_adjust): Remove. Use generic instead.
9240 (x_redisplay_interface): Add w32_frame_parm_handlers member.
9241
9242 * w32reg.c (x_get_string_resource): Use XrmDatabase.
9243
9244 * macgui.h (XrmDatabase): New (dummy) typedef.
9245
9246 * macterm.h (EMACS_CLASS): Remove.
9247 (struct mac_display_info): Add xrdb member.
9248 (struct mac_output): Add want_fullscreen member.
9249
9250 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9251 parameters now defined in frame.h and frame.c.
f63fd14e 9252 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
9253 (check_x_display_info): Make non-static (for frame.c).
9254 (struct x_frame_parm_table, x_frame_parms): Remove.
9255 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9256 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9257 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9258 (x_change_window_heights, x_set_autoraise, x_set_autolower)
9259 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9260 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9261 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9262 Remove. Use generic functions instead.
9263 (enum resource_types): Remove.
9264 (x_set_scroll_bar_default_width): New global function (for frame.c).
9265 (mac_frame_parm_handlers): New table for redisplay_interface.
9266 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 9267
e072891b
KS
9268 * macterm.c: Remove unnecessary extern declarations.
9269 (x_redisplay_interface): Add mac_frame_parm_handlers member.
9270
3e6a560b
KS
9271 * Makefile.in (frame.o): Add dependency on blockinput.h and files
9272 included from it (atimer.h and systime.h).
9273
7b7b454e
AS
92742003-03-30 Andreas Schwab <schwab@suse.de>
9275
9276 * xdisp.c (x_insert_glyphs): Fix swapped width and height
9277 parameters for shift_glyphs_for_insert.
9278
9279 * macterm.c (x_redisplay_interface): Add missing entry for
9280 draw_vertical_window_border.
9281
beb402de
KG
92822003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
9283
9284 * fileio.c (Fexpand_file_name): In the no-handler case, after
9285 expanding, look again for a handler and invoke it. This is needed
9286 for filenames like "/foo/../user@host:/bar/../baz" -- the first
9287 expansion produces "/user@host:/bar/../baz" which needs to be
9288 expanded again for the finame result "/user@host:/baz".
9289
b676f356
JD
92902003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9291
9292 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
9293 of area to be redrawn for better performance.
9294
3c671a56
SM
92952003-03-28 Stefan Monnier <monnier@cs.yale.edu>
9296
9297 * xterm.c (take_vertical_position_into_account): Remove.
9298 (xt_action_hook): Call set_vertical_scroll_bar if needed.
9299 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
9300 (xm_scroll_callback, x_create_toolkit_scroll_bar)
9301 (x_set_toolkit_scroll_bar_thumb): Simplify.
9302 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
9303 (XTread_socket): Remove unused var.
9304 (x_make_frame_invisible): Replace goto with else.
9305
9306 * xdisp.c (set_vertical_scroll_bar): New fun.
9307 (redisplay_window): Use it.
9308
84f2e615
RS
93092003-03-26 Richard M. Stallman <rms@gnu.org>
9310
9311 * xdisp.c (update_tool_bar): Recompute tool bar if
9312 update_mode_lines is set. Set w->update_mode_line
9313 only if the tool bar contents actually change.
9314 (update_menu_bar): Undo previous change.
9315
70b6104c
JD
93162003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9317
5fd6f727
JD
9318 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
9319 (xg_frame_set_char_size): Calculate scroll bar width before frame
9320 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
9321 (xg_separator_p): Check for all documented separator types.
9322 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
9323 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
9324
70b6104c
JD
9325 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
9326 so tool bar gets updated.
9327
d9b36d19
SM
93282003-03-26 Stefan Monnier <monnier@cs.yale.edu>
9329
9330 * data.c (store_symval_forwarding): Re-instate part of the code
9331 that was deleted with too much enthusiasm.
9332
93332003-03-25 Stefan Monnier <monnier@cs.yale.edu>
9334
9335 * data.c (store_symval_forwarding): Delete special read-only
9336 hack for type == -1, since we now use ->constant instead.
9337 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
9338
9339 * buffer.c (overlays_in): Declare static.
9340 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
9341 `constant' field rather than the variable's `type' field.
9342
365fa1b3
AC
93432003-03-24 Andrew Choi <akochoi@shaw.ca>
9344
9345 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
9346
9347 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
9348
9349 * fns.c [MAC_OSX]: Do not redefine vector.
9350
9351 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
9352
9353 * macgui.h: Remove definition of No_Cursor.
9354
d9b36d19 9355 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
9356
9357 * xdisp.c: Define No_Cursor.
9358 (x_write_glyphs, notice_overwritten_cursor)
9359 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
9360 (note_mouse_highlight): Remove Mac-specific code.
9361 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 9362
c0bcce6f
JPW
93632003-03-24 John Paul Wallington <jpw@gnu.org>
9364
9365 * xdisp.c (redisplay_window): If mini window's buffer is not
9366 empty, then redisplay it like other windows.
9367
a526b96c
KS
93682003-03-23 Kim F. Storm <storm@cua.dk>
9369
9370 * w32term.c (w32_draw_window_cursor): Fix last change.
9371
37ab321e
KH
93722003-03-23 Kenichi Handa <handa@m17n.org>
9373
a526b96c
KS
9374 * alloc.c (make_string_from_bytes, make_specified_string):
9375 Add `const' for the arg CONTENTS.
37ab321e
KH
9376
9377 * lisp.h (make_string_from_bytes, make_specified_string):
9378 Prototypes adjusted.
9379
7863d625
JD
93802003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9381
a526b96c 9382 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 9383
7863d625
JD
9384 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
9385 (XG_SB_RANGE): New define.
9386
9387 * gtkutil.c (xg_fixed_handle_expose): New function.
9388 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
9389 expose events.
9390 (xg_update_scrollbar_pos): Take two more arguments, left and width
9391 of scroll bar including borders.
9392 Clear left and right part outside scroll bar separately as some
9393 themes have bars that are not an even number of pixels.
d9b36d19 9394 Don't set reallocate_redraws, don't call
7863d625
JD
9395 gdk_window_process_all_updates.
9396 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
9397 so no need to change it. Calculate size and value with XG_SB_RANGE.
9398
d9b36d19
SM
9399 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
9400 Pass left and width of scroll bar including borders to
7863d625
JD
9401 xg_update_scrollbar_pos.
9402
af0ad939
TTN
94032003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
9404
9405 * Makefile.in: Make sure space precedes end-of-line backslashes.
9406
b22139fd
KS
94072003-03-22 Kim F. Storm <storm@cua.dk>
9408
9409 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
9410 Add generic versions here. Remove system specific versions
9411 defined elsewhere.
9412
9413 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
9414 Add prototypes.
9415
6e6410cf
KS
9416 * xterm.h (STORE_NATIVE_RECT): New macro.
9417
5c9cc435
KS
94182003-03-21 Kim F. Storm <storm@cua.dk>
9419
00c64fab
SM
9420 * xdisp.c (get_glyph_string_clip_rect):
9421 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
9422
9423 * dispextern.h (struct redisplay_interface): Add active_p
9424 argument to draw_window_cursor member. All uses changed.
9425
acd37560
KS
94262003-03-21 Kim F. Storm <storm@cua.dk>
9427
9428 The following changes consolidate code related to writing and
9429 inserting glyphs, exposing frame, the tool bar, the mouse face,
9430 the output cursor, and help echo from xterm.c, w32term.c and
9431 macterm.c into xdisp.c. It also generalizes the use of the
9432 window_part enum instead of using numeric values throughout.
af0ad939 9433
acd37560
KS
9434 * xdisp.c: Consolidate gui-independent code here.
9435 Include keymap.h.
9436 (Qhelp_echo): Import.
9437 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
9438 (help_echo_string, help_echo_window, help_echo_object)
9439 (previous_help_echo_string, help_echo_pos): Declare here.
9440 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
9441 (estimate_mode_line_height): Define here. Handle windowing
9442 systems directly (without using estimate_mode_line_height_hook).
9443 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
9444 (update_window_cursor, update_cursor_in_window_tree)
9445 (fast_find_position, fast_find_string_pos)
9446 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
9447 (expose_area, expose_line, expose_overlaps, expose_window)
9448 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
9449 declared static as they are only used locally in xdisp.c.
9450 (draw_glyphs): Rename from x_draw_glyphs and make static.
9451 (tool_bar_item_info, notice_overwritten_cursor): Make static.
9452 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
9453 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 9454 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
9455 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
9456 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
9457 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
9458 (note_mouse_highlight, x_clear_window_mouse_face)
9459 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
9460 (x_intersect_rectangles): New generic functions for use by xdisp.c
9461 and GUI front-ends.
9462 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
9463 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
9464
9465 * dispextern.h (Display_Info): Generic typedef for *_display_info.
9466 (NativeRectangle): Generic typedef for rectangle type.
9467 (enum window_part): Move here from window.c.
9468 (struct redisplay_interface): New members flush_display_optional,
9469 define_frame_cursor, clear_frame_area, draw_window_cursor,
9470 draw_vertical_window_border, shift_glyphs_for_insert.
9471 Rename member clear_mouse_face to clear_window_mouse_face.
9472 (estimate_mode_line_height_hook): Remove hook.
9473 (auto_raise_tool_bar_buttons_p): Don't declare extern.
9474 (tool_bar_item_info): Remove prototype.
9475 (help_echo_string, help_echo_window, help_echo_object)
9476 (previous_help_echo_string, help_echo_pos)
9477 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
9478 (x_stretch_cursor_p, output_cursor): Declare extern.
9479 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
9480 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
9481 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
9482 (display_and_set_cursor, set_output_cursor, x_cursor_to)
9483 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
9484 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
9485 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
9486 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
9487 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
9488 Add prototypes.
9489 (mode_line_string, marginal_area_string): Fix prototypes.
9490
9491 * window.c (enum window_part): Move to dispextern.h.
9492 (coordinates_in_window): Use enum window_part member names
9493 instead of numbers to describe return value.
9494 (struct check_window_data): Change part member to window_part.
9495 (check_window_containing): Return window_part unaltered.
9496 (window_from_coordinates): Change part arg from int to enum
9497 window_part. Allow part arg to be null. All users changed.
9498
9499 * window.h (window_from_coordinates): Fix prototype.
9500
9501 * term.c (estimate_mode_line_height): Move to xdisp.c.
9502
9503 * keyboard.c (make_lispy_event): Use enum window_part.
9504
9505 * dispnew.c (mode_line_string, marginal_area_string): Use enum
9506 window_part instead of int in arg list. Users changed.
9507
9508 * xterm.h (No_Cursor): Declare as None for X.
9509 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 9510
acd37560
KS
9511 * xterm.c: Remove consolidated defines and code.
9512 (BETWEEN): Remove unused macro.
9513 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
9514 (x_define_frame_cursor, x_clear_frame_area)
9515 (x_draw_window_cursor): New X-specific functions for RIF.
9516 (x_redisplay_interface): Add new members.
9517
9518 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
9519
9520 * w32term.h (struct w32_output): Remove cross_cursor member.
9521
9522 * w32term.c: Remove consolidated defines and code.
9523 (BETWEEN): Remove unused macro.
9524 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
9525 (w32_define_frame_cursor, w32_clear_frame_area)
9526 (w32_draw_window_cursor): New W32-specific functions for RIF.
9527 (w32_redisplay_interface): Add new members.
9528
a64387ee 9529 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
9530 (XRectangle): Add X compatible rectangle type.
9531 (NativeRectangle): Declare as RECT for W32.
9532 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
9533
9534 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
9535
9536 * w32console.c: Remove consolidated defines and code.
af0ad939 9537
acd37560
KS
9538 * msdos.h (Display_Info): Add generic typedef.
9539
9540 * msdos.c: Remove consolidated defines and code.
9541 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
9542
9543 * macterm.h (struct mac_output): Replace member cross_cursor by
9544 hand_cursor.
9545 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
9546
9547 * macterm.c: Remove consolidated defines and code.
9548 (BETWEEN): Remove unused macro.
9549 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
9550 (mac_define_frame_cursor, mac_clear_frame_area)
9551 (mac_draw_window_cursor): New Mac-specific functions for RIF.
9552 (x_redisplay_interface): Add new members.
9553
9554 * macgui.h (No_Cursor): Define as 0 for Mac.
9555 (XRectangle): Add X compatible rectangle type.
9556 (NativeRectangle): Declare as Rect for Mac.
9557 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
9558
204ccab1
KS
9559 * macfns.c (x_set_mouse_color): Setup hand_cursor.
9560 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 9561
9443fcf6 9562 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
9563 included from it. Add dependency on keymap.h.
9564
9565 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
9566
8ba01a70 95672003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
9568
9569 * fileio.c (Fexpand_file_name): Fix previous change.
9570
8ba01a70 95712003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
9572
9573 * fileio.c (Ffile_name_directory): Reconstruct file name by
9574 make_specified_string.
9575 (Ffile_name_nondirectory, Ffile_name_as_directory)
9576 (Fdirectory_file_name, Fexpand_file_name)
9577 (Fsubstitute_in_file_name): Likewise.
9578 (Fread_file_name): Compare decoded homedir with DIR and
9579 DEFAULT_FILENAME.
9580
9581 * alloc.c (make_specified_string): If NCHARS is negative, count
9582 the number of characters.
9583
19536747
JD
95842003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9585
de38ae5a
JD
9586 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
9587 all widgets.
9588
19536747
JD
9589 * gtkutil.h: Removed xg_ignore_next_thumb.
9590
37ab321e 95912003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
9592
9593 * coding.c (Vchar_coding_system_table): Remove this variable.
9594 (Vcoding_system_safe_chars): New variable.
9595 (intersection): Remove this function.
9596 (find_safe_codings): Don't use Vchar_coding_system_table, but try
9597 all codings in SAFE_CODINGS.
00c64fab 9598 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
9599 find_safe_codings. Get generic coding systems from
9600 Vcoding_system_safe_chars.
9601 (Fdefine_coding_system_internal): New function.
9602 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
9603 Initialize and staticpro Vcoding_system_safe_chars.
9604
17097258
JD
96052003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9606
2a2071c3
JD
9607 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
9608 equal old values before updating.
9609
17097258
JD
9610 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
9611
9612 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
9613
96142003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9615
9616 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
9617 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
9618 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
9619 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
9620 (xg_create_scroll_bar): Pass bar to button event callback.
9621 (xg_find_top_left_in_fixed): New function.
9622 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
9623 whole scroll bar area. Get old position with
9624 xg_find_top_left_in_fixed, calculate and only clear needed areas.
9625 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
9626 dragging is in progress. Calculate whole as for Motif.
9627 Remove code that saved last values. Call gtk_range functions to
9628 set scroll bar sizes.
9629
9630 * gtkutil.h: Removed xg_ignore_next_thumb.
9631
8cb9dfbf
JB
96322003-03-17 Juanma Barranquero <lektu@terra.es>
9633
9634 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
9635 and files included from it.
9636
00c64fab
SM
96372003-03-18 Stefan Monnier <monnier@cs.yale.edu>
9638
9639 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
9640 multiple occurrences of the same keymap under different prefixes.
9641 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
9642
c45bb3b2
JR
96432003-03-16 Jason Rumney <jasonr@gnu.org>
9644
9645 * w32gui.h: Use HDC for Display.
9646
9647 * w32term.c (w32_encode_char): Prevent double-byte chars from
9648 crashing Emacs.
9649
9650 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
9651 as binary.
9652
2a6d0874
JB
96532003-03-16 Juanma Barranquero <lektu@terra.es>
9654
9655 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
9656
03eb5fab
KS
96572003-03-16 Kim F. Storm <storm@cua.dk>
9658
9659 The following changes consolidate some of the gui-independent
9660 parts of the processing and drawing of "glyph strings" from
9661 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 9662
03eb5fab
KS
9663 * dispextern.h (struct glyph): Reduce face_id member from 22 to
9664 21 bits (this reduces number of faces from 4M to 2M).
9665 Replace W32 specific w32_font_type member (2 bits) by generic
9666 font_type member (3 bits) for portability.
9667 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
9668 (enum draw_glyphs_face): Define here.
9669 (struct glyph_string): Define here. Merge W32 and X versions.
9670 (struct redisplay_interface): New members per_char_metric,
9671 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
9672 (VCENTER_BASELINE_OFFSET): Define here.
9673 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
9674 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
9675
9676 * xdisp.c: Consolidate gui-independent "glyph string" code here.
9677 (dump_glyph_string): Moved here.
9678 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
9679 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
9680 (fill_composite_glyph_string, fill_glyph_string)
9681 (fill_image_glyph_string, fill_stretch_glyph_string)
9682 (left_overwritten, left_overwriting, right_overwritten)
9683 (right_overwriting, get_char_face_and_encoding)
9684 (set_glyph_string_background_width, compute_overhangs_and_x)
9685 (append_glyph, append_composite_glyph, produce_image_glyph)
9686 (take_vertical_position_into_account, append_stretch_glyph)
9687 (produce_stretch_glyph): New generic functions (based on X version).
9688 Call platform specific functions through rif.
9689 (INIT_GLYPH_STRING): New macro, hides W32 details.
9690 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
9691 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
9692 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
9693 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
9694 (notice_overwritten_cursor):
9695 Generic functions exported to platform modules. Users changed.
9696
9697 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
9698 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
9699 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 9700 New macros for consolidated code.
2a6d0874 9701
03eb5fab
KS
9702 * xterm.c: Remove consolidated defines and code.
9703 (x_per_char_metric, x_encode_char)
9704 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
9705 (x_redisplay_interface): Add new members.
9706
9707 * w32gui.h (Display): Add dummy typedef for consolidation.
9708 (XChar2b): Define alias for wchar_t for consolidation.
9709 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9710
9711 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 9712 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
9713 New macros for consolidation.
9714
fad49844 9715 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
9716 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
9717 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
9718 (w32_per_char_metric): Change font_type arg to int for RIF.
9719 (w32_encode_char): Return int according to RIF requirements.
9720 (w32_compute_glyph_string_overhangs): Adapt to RIF.
9721 (w32_get_glyph_overhangs): New function for RIF. Uses generic
9722 x_get_glyph_overhangs.
9723 (w32_redisplay_interface): Add new members.
9724
9725 * macgui.h (XChar2b): Move typedef here for consolidation.
9726 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9727
9728 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
9729 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
9730 consolidation.
9731
9732 * macterm.c: Remove consolidated defines and code.
9733 (mac_per_char_metric): New function for RIF.
00c64fab 9734 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
9735 (mac_compute_glyph_string_overhangs): Adapt for RIF.
9736 (x_redisplay_interface): Add new members.
9737
00c64fab
SM
97382003-03-15 Stefan Monnier <monnier@cs.yale.edu>
9739
9740 * keymap.c (Vmenu_events): New var.
9741 (syms_of_keymap): Initialize it.
9742 (where_is_internal): Check more carefully what is a menu event.
9743
225c7a07
RS
97442003-03-14 Richard M. Stallman <rms@gnu.org>
9745
9746 * lread.c (read1): After #!, exit loop on eof.
9747
cea9be54
JD
97482003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9749
9ea0e54d
JD
9750 * gtkutil.h: Add declaration for xg_frame_cleared.
9751
0cb35f4e
JD
9752 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
9753
cea9be54
JD
9754 * gtkutil.c (struct xg_last_sb_pos): New structure.
9755 (handle_fixed_child): New function.
9756 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
9757 and force a redraw on them.
9758 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
9759 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
9760 so we can avoid unneeded redraws.
9761 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
9762 and force a redraw on the scroll bar.
9763 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
9764 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 9765 (xg_frame_cleared): New function.
cea9be54 9766
20b853f3
KH
97672003-03-13 Kenichi Handa <handa@m17n.org>
9768
9769 * coding.c (Fdetect_coding_region): Fix docstring.
9770 (Fdetect_coding_string): Fix docstring.
9771
7a555aff
AS
97722003-03-13 Andreas Schwab <schwab@suse.de>
9773
25cc0080
AS
9774 * gtkutil.c: Add prototype for create_menus.
9775
30225431
AS
9776 * data.c (long_to_cons): Fix type of top.
9777
9778 * xselect.c (selection_data_to_lisp_data): Use int instead of
9779 long for an integer of size 4.
9780
7a555aff 9781 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 9782 (xg_tool_bar_help_callback): Likewise.
7a555aff 9783
a3e4741f
AS
97842003-03-12 Andreas Schwab <schwab@suse.de>
9785
9786 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
9787
9668be7c
KS
97882003-03-12 Kim F. Storm <storm@cua.dk>
9789
03eb5fab 9790 The following changes consolidate the fringe handling from
9668be7c 9791 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 9792
9668be7c
KS
9793 * xdisp.c: Consolidate fringe handling code here.
9794 (left_bits, right_bits, continued_bits, continuation_bits)
9795 (ov_bits, zv_bits): Define fringe bitmaps.
9796 (fringe_bitmaps): New array holding fringe bitmaps.
9797 (draw_fringe_bitmap): Draw a specific bitmap; call display
9798 specific drawing routine via rif->draw_fringe_bitmap.
9799 (draw_row_fringe_bitmaps): Generic replacement for
9800 x_draw_row_fringe_bitmaps; all callers changed.
9801 (compute_fringe_widths): Generic replacement for
9802 x_compute_fringe_widths; all callers changed.
9803
9804 * dispextern.h (enum fringe_bitmap_type): Define here.
9805 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
9806 (fringe_bitmaps): Declare extern.
9807 (struct redisplay_interface): New member draw_fringe_bitmap.
9808 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
9809
9810 * xterm.c: Remove generic fringe code.
9811 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9812 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9813
9814 * w32term.c: Remove generic fringe code.
9815 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
9816 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 9817
9668be7c
KS
9818 * macterm.c: Remove generic fringe code.
9819 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9820 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9821
00a88f32
SM
98222003-03-11 Stefan Monnier <monnier@cs.yale.edu>
9823
9824 * print.c (Fprin1_to_string): Return unibyte string if possible.
9825
1d1de695
DK
98262003-03-09 David Kastrup <dak@gnu.org>
9827
9828 * process.c (read_process_output): We have allocated enough space
9829 for readmax and carryover, so actually use the alloted space.
9830
257f40f2
JD
98312003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9832
9833 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
9834 toolkit scrollbar click.
9835
9836 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
9837 for USE_GTK.
9838 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
9839 also.
9840 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
9841 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 9842
78819ebb 9843 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
9844
9845 * gtkutil.c (xg_get_scroll_id_for_window): New function.
9846 (xg_tool_bar_item_expose_callback): New function.
9847 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
9848 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
9849 on the tool bar widget.
9850 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
9851 to expose on the tool bar item widgets.
9852
15213141
JD
98532003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9854
26b74a0b 9855 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 9856 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
9857 deleted from the image cache).
9858
15213141
JD
9859 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
9860 the event isn't for a frame (i.e. for dialogs).
9861
20b853f3 98622003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
9863
9864 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
9865 composition components reaches the limit, terminate composing.
9866 (COMPOSITION_OK): New macro.
00a88f32 9867 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
9868 composition is found.
9869 (coding_restore_composition): Adjust the number of composition
9870 components if it is not sane.
9871
c9029fe5
JB
98722003-03-06 Juanma Barranquero <lektu@terra.es>
9873
9874 * w32term.h (struct w32_display_info): Add xrdb member to support
9875 passing resources via -xrm on Windows.
9876
9877 * w32term.c (w32_make_rdb): New function.
9878 (w32_term_init): Use it to initialize xrdb member of w32_display_info
9879 struct. Delete leftover code.
9880
9881 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
9882 for resources passed on the command line.
9883
9884 * w32reg.c (w32_get_rdb_resource): New function.
9885 (x_get_string_resource): Use it, so resources passed with -xrm
9886 supercede the ones in the registry.
9887
9d00001f
JD
98882003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9889
9890 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
9891 instead of x_top_window_to_frame.
9892
ca2417b9
JD
98932003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9894
9895 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
9896 when restarting Emacs.
9897
5b20caf0
RS
98982003-03-03 Richard M. Stallman <rms@gnu.org>
9899
9900 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
9901 to run kill-buffer-query-functions.
9902 (Qkill_buffer_query_functions): New var.
9903 (syms_of_buffer): Init and staticpro it.
9904
58e91b77
JD
99052003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9906
9907 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
9908
932357b4
KS
99092003-02-25 Kim F. Storm <storm@cua.dk>
9910
9911 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
9912 If centering point failed to make whole line visible and vscroll
9913 is non-zero, disable vscroll and try centering point again.
9914
9915 * lread.c (read1): Accept `single space' syntax like (? x).
9916
bb8db7e1
JD
99172003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9918
9919 * keyboard.c (cancel_hourglass_unwind): Surround with
9920 #ifdef HAVE_X_WINDOWS
9921
47d77aab
KH
99222003-02-25 Kenichi Handa <handa@m17n.org>
9923
9924 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
9925 process only when "subprocesses" is defined.
9926
6a097c0c
SM
99272003-02-24 Stefan Monnier <monnier@cs.yale.edu>
9928
9929 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
9930
0b063c27
JB
99312003-02-24 Juanma Barranquero <lektu@terra.es>
9932
d1135afc
JB
9933 * callint.c (fix_command): Declare as static void and move before
9934 Fcall_interactively.
9935
0b063c27
JB
9936 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
9937 (syms_of_xdisp): Don't initialize Qwhen.
9938
0af912f0
JD
99392003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9940
9941 * keyboard.c (cancel_hourglass_unwind): New function.
9942 (command_loop_1): Cancel hourglass with unwind-protect.
9943
120d0a23
RS
99442003-02-23 Richard M. Stallman <rms@gnu.org>
9945
9946 * callint.c (fix_command): New subroutine, from Fcall_interactively.
9947 Detect (when ... (region-beginning)) etc.
9948 (Fcall_interactively): Call fix_command.
9949 (Qif, Qwhen): New variables.
9950 (syms_of_callint): Init and staticpro them.
0b063c27 9951
120d0a23
RS
9952 * regex.c (print_partial_compiled_pattern): Output to stderr.
9953
4ece81a6
KG
99542003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9955
9956 * dired.c (directory_files_internal): Don't expand directory.
9957 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
9958 instead. From Lars Hansen <larsh@math.ku.dk>.
9959
e52bd6b7
SM
99602003-02-22 Stefan Monnier <monnier@cs.yale.edu>
9961
9962 * fns.c (string_to_multibyte): Remove unused var i.
9963 (Flanginfo): Fix int/Lisp_Object mixup.
9964 (void_call2): New fun.
9965 (Fmap_char_table): Use it in place of call2.
9966
9967 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
9968
9969 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
9970
9971 * keymap.c (copy_keymap_1): Make it static.
9972
9973 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
9974
c33ef7c4
JB
99752003-02-22 David Ponce <david@dponce.com>
9976
9977 * lread.c (Fload): Don't check STRING_MULTIBYTE.
9978
16782258
JD
99792003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9980
9981 * process.h: Removed subtty field from struct Lisp_Process.
9982
9983 * process.c (create_process): Remove setting of subtty.
9984 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
9985 (Fprocess_running_child_p, process_send_signal):
9986 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
9987 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
9988
3abeca61
KG
99892003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9990
9991 * keymap.c (Fdefine_key): Doc fix.
9992
92a8ce63
JB
99932003-02-21 Juanma Barranquero <lektu@terra.es>
9994
9995 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
9996
9997 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
9998 POLLING_PROBLEM_IN_SELECT.
9999
10000 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
10001 Delete #undef of POLLING_PROBLEM_IN_SELECT.
10002
10003 * s/hpux10-20.h: New file.
10004
e52bd6b7
SM
10005 * process.c (wait_reading_process_input):
10006 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 10007
20f1ef2e
KH
100082003-02-20 Kenichi Handa <handa@m17n.org>
10009
32d0a9dc
KH
10010 * fontset.c (check_fontset_name): If NAME is nil, return the
10011 default fontset.
10012 (override_font_info): New function.
e52bd6b7 10013 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
10014 (Ffontset_info): If FONTSET is not the default fontset, merge
10015 FONTSET onto the copy of the default fontset, and work on that
10016 copy. Document that NAME nil means the default fontset.
10017 (Ffontset_font): Document that NAME nil means the default fontset.
10018
20f1ef2e
KH
10019 * process.c (setup_process_coding_systems): If the process's
10020 in/out descriptor is -1, do nothing.
10021
77d1daf2
AS
100222003-02-19 Andreas Schwab <schwab@suse.de>
10023
e52bd6b7
SM
10024 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
10025 Add prototypes.
77d1daf2 10026
f9a45bb3
KH
100272003-02-19 Kenichi Handa <handa@m17n.org>
10028
10029 * xfaces.c (try_alternative_families): Try all scalable fonts if
10030 Vscalable_fonts_allowed is not Qt.
10031
72ecb43c
JD
100322003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10033
10034 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
10035
ee5be7c3
JD
100362003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10037
10038 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
10039 names.
10040
10041 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 10042 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
10043 x_face_list_fonts.
10044 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
10045 (Fx_list_fonts): Set maxnames to -1 to get all font names.
10046
4cd519a7
KS
100472003-02-18 Kim F. Storm <storm@cua.dk>
10048
068f9882
KS
10049 * lread.c (read1): Fix last change.
10050 "`" is not always special. Allow "?" after a character constant.
4cd519a7 10051
7290a344
AC
100522003-02-18 Andrew Choi <akochoi@shaw.ca>
10053
10054 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
10055
1f7fa69b
AS
100562003-02-18 Andreas Schwab <schwab@suse.de>
10057
10058 * window.c (window_scroll_pixel_based): Move outside a
10059 multi-glyph character before setting new window start.
10060
10061 * xdisp.c (in_display_vector_p): New function.
10062 * dispextern.h (in_display_vector_p): Declare.
10063
23e21195
KS
100642003-02-18 Kim F. Storm <storm@cua.dk>
10065
10066 * lread.c (read1): Fix and relax read syntax.
10067 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
10068 Only recognize "," after dotted-pair dot if inside backquote.
10069 Never include "`" or "," (inside backquote) in a symbol.
10070 Allow dotted-pair dot after a character constant.
10071 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 10072
f098b121
JD
100732003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10074
10075 * gtkutil.c (xg_tool_bar_expose_callback): New function.
10076 (xg_create_tool_bar): Force style of tool bar to be horizontal with
10077 icons. Set name of tool bar to emacs-toolbar.
10078 (update_frame_tool_bar): Connect expose event to
10079 xg_tool_bar_expose_callback.
10080
63020c46
RS
100812003-02-17 Richard M. Stallman <rms@gnu.org>
10082
10083 * keyboard.c (this_command_key_count_reset): New variable.
10084 Initiatize to 0 where this_command_key_count is set.
10085 (read_char): Save and restore this_command_key_count_reset
10086 around input method code.
10087 (read_char): If this_command_key_count_reset, echo reread commands.
10088 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
10089
fb4452cc
KH
100902003-02-17 Kenichi Handa <handa@m17n.org>
10091
10092 * fns.c (string_to_multibyte): Always return a multibyte string.
10093
bd11cc09
JR
100942003-02-16 Jason Rumney <jasonr@gnu.org>
10095
e52bd6b7
SM
10096 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
10097 Negative max_fonts parameter means list all.
bd11cc09 10098
4cdf4bde
DL
100992003-02-14 Dave Love <fx@gnu.org>
10100
10101 * fns.c (Flanginfo): Doc fix.
10102
023b93f6
KS
101032003-02-13 Kim F. Storm <storm@cua.dk>
10104
37cd4238
KS
10105 * lread.c (read_escape): Interpret \s as a SPACE character, except
10106 for \s-X in a character constant which still is the super modifier.
10107 (read1): Signal an `invalid read syntax' error if a character
10108 constant is immediately followed by a digit or symbol character.
10109
140a6b7e
KS
10110 * search.c (Fmatch_data): Doc fix. Explicitly state that
10111 match-data is undefined if last search failed.
10112
3419757d 10113 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
10114 All uses changed.
10115
7d5c86e5
JB
101162003-02-12 Juanma Barranquero <lektu@terra.es>
10117
10118 * eval.c (Fdefmacro): Fix typo.
10119
295fff2c
KS
101202003-02-12 Kim F. Storm <storm@cua.dk>
10121
10122 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
10123 macro is a string, convert meta modifiers in string when copying
10124 the string into a vector.
10125
60f3202d
KS
101262003-02-11 Kim F. Storm <storm@cua.dk>
10127
10128 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
10129
61cb0b53
KH
101302003-02-11 Kenichi Handa <handa@m17n.org>
10131
10132 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
10133
7392e23c
KS
101342003-02-10 Kim F. Storm <storm@cua.dk>
10135
10136 * process.c: Doc fixes.
10137 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
10138
ce4254bd
KH
101392003-02-10 Kenichi Handa <handa@m17n.org>
10140
9c7a329a
KH
10141 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
10142
ce4254bd
KH
10143 * process.c (QCfilter_multibyte): New variable.
10144 (setup_process_coding_systems): New function.
e52bd6b7
SM
10145 (Fset_process_buffer, Fset_process_filter):
10146 Call setup_process_coding_systems.
ce4254bd
KH
10147 (Fstart_process): Initialize the member `filter_multibyte' of
10148 struct Lisp_Process.
10149 (create_process): Call setup_process_coding_systems.
10150 (Fmake_network_process): New keyward `:filter-multibyte'.
10151 Initialize the member `filter_multibyte' of struct Lisp_Process.
10152 Call setup_process_coding_systems.
10153 (server_accept_connection): Call setup_process_coding_systems.
10154 (read_process_output): If the process has a filter, decide the
10155 multibyteness of a string to given to the filter by
10156 `filter_multibyte' member of the process. If the process doesn't
10157 have a filter and the result of conversion is unibyte, use
10158 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
10159 multibyte form.
10160 (Fset_process_coding_system): Call setup_process_coding_systems.
10161 (Fset_process_filter_multibyte): New function.
10162 (Fprocess_filter_multibyte_p): New function.
10163 (syms_of_process): Intern and staticpro QCfilter_multibyte.
10164 Defsubr Sset_process_filter_multibyte and
10165 Sprocess_filter_multibyte_p.
10166
10167 * process.h (struct Lisp_Process): New member filter_multibyte.
10168
10169 * lisp.h (setup_process_coding_systems): Add prototype.
10170
10171 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
10172 process, update coding systems for the process.
10173
b08d5f59
KH
101742003-02-09 Kenichi Handa <handa@m17n.org>
10175
10176 * fns.c (string_to_multibyte): New function.
10177 (Fstring_to_multibyte): New function.
10178 (syms_of_fns): Defsubr it.
10179
0dfd93c0
AS
101802003-02-08 Andreas Schwab <schwab@suse.de>
10181
10182 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
10183 instead of the substitution.
10184
7b76ca1c
JD
101852003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10186
10187 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
10188
10189 * xmenu.c (menu_position_func): Adjust menu popup position so that
10190 the menu is fully visible.
7b76ca1c 10191
2436a4e4
JD
101922003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10193
10194 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
10195 (x_make_frame_invisible, x_wm_set_icon_position):
10196 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
10197
10198 * xfns.c (x_set_name, x_set_title): Ditto.
10199
37d1e680
RS
102002003-02-04 Richard M. Stallman <rms@gnu.org>
10201
10202 * keyboard.c (echo_now): Update before_command_echo_length.
10203 (Freset_this_command_lengths): Reset this_command_key_count etc.
10204 immediately rather than arranging to do it later.
10205 (before_command_key_count_1, before_command_echo_length_1)
10206 (before_command_restore_flag): Vars deleted.
10207 (add_command_key): Don't handle before_command_restore_flag.
10208 (read_char, record_menu_key): Don't update before_command_key_count or
10209 before_command_echo_length.
10210 (read_char): Don't handle before_command_restore_flag.
10211
10212 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
10213 in direct-output clauses if it wouldn't be called in the ordinary case.
10214
578846a3
KS
102152003-02-04 Kim F. Storm <storm@cua.dk>
10216
10217 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
10218
49853a4d
JD
102192003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10220
10221 * gtkutil.c (remove_from_container): Copying list is not needed.
10222 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
10223 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
10224 on list returned from gtk_container_get_children to avoid memory leak.
10225
8b53dc06
JR
102262003-02-01 Jason Rumney <jasonr@gnu.org>
10227
5d54d177
JR
10228 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
10229 local malloc.
10230 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
10231 definitions in xpm.h.
10232 (init_xpm_functions): New function.
f63fd14e 10233 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
10234 (init_external_image_libraries): Try to load libXpm.dll.
10235
8b53dc06
JR
10236 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
10237 timestamp.
10238
b222e415
DL
102392003-01-31 Dave Love <fx@gnu.org>
10240
10241 * syntax.c (Fskip_chars_forward)
10242 (open-paren-in-column-0-is-defun-start): Doc fix.
10243
c60ee5e7
JB
102442003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
10245
10246 * fileio.c: Support // at start of name for Cygwin (just added proper
10247 preprocessor tests).
10248
10249 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
10250
10251 * Makefile.in: Use @EXEEXT@ for Cygwin.
10252
10253 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
10254
10255 * s/cygwin.h: Added for Cygwin port.
10256
53b37591
JB
102572003-01-31 Juanma Barranquero <lektu@terra.es>
10258
10259 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
10260 when including gif_lib.h.
fe929957 10261 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
10262 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
10263 Windows. Disable color table lookups. Call library functions
53b37591 10264 through pointers determined at runtime.
fe929957
JB
10265 (init_external_image_libraries): Try to load libungif.dll and
10266 libtiff.dll.
53b37591 10267
45415a8f
KH
102682003-01-31 Kenichi Handa <handa@m17n.org>
10269
10270 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 10271 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 10272
a97e4138
JD
102732003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10274
e52bd6b7 10275 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 10276
6eed9bed
DL
102772003-01-30 Dave Love <fx@gnu.org>
10278
10279 * alloc.c (Vgc_elapsed, gcs_done): New variables.
10280 (Fgarbage_collect): Use them.
10281 (init_alloc, syms_of_alloc): Set them up.
10282
100dcd40
JB
102832003-01-30 Juanma Barranquero <lektu@terra.es>
10284
10285 * w32fns.c (init_external_image_libraries): Add missing operator.
10286
fbd852af
JR
102872003-01-29 Jason Rumney <jasonr@gnu.org>
10288
10289 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
10290 an alternative name for jpeg.dll.
10291
8a2d8020
KH
102922003-01-29 Kenichi Handa <handa@m17n.org>
10293
10294 * xdisp.c (set_cursor_from_row): Pay attention to string display
10295 properties.
10296
058c18c7
AC
102972003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
10298
10299 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
10300 <escape>.
10301 (keycode_to_xkeysym_table): Reformat and add more comments.
10302 (XTread_socket): Drop special case for backspace.
10303
385f11cf
AC
103042003-01-28 Andrew Choi <akochoi@shaw.ca>
10305
10306 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
10307 values in old-style RGB specs.
10308
c922a224
JB
103092003-01-27 Juanma Barranquero <lektu@terra.es>
10310
10311 * w32fns.c (init_external_image_libraries): Try alternate names for the
10312 jpeg dll.
10313
0a1d6de0
JD
103142003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10315
10316 * gtkutil.c (create_dialog, xg_separator_p)
10317 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
10318 before calling strcmp or strlen.
10319
a97e4138 103202003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
10321
10322 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
10323 and handle image load failure.
10324
28908312
JR
103252003-01-26 Jason Rumney <jasonr@gnu.org>
10326
10327 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
10328 New functions.
f63fd14e
JB
10329 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
10330 Disable color table lookups. Call jpeg library functions
28908312
JR
10331 through pointers determined at runtime.
10332 (init_external_image_libraries): Try to load jpeg.dll.
10333
84e47416
RS
103342003-01-25 Richard M. Stallman <rms@gnu.org>
10335
10336 * lisp.h: Declare format2 instead of format1.
10337
10338 * fileio.c (barf_or_query_if_file_exists):
10339 Call format2 instead of format1.
10340
10341 * editfns.c (format2): New function, replaces format1
10342 but takes exactly two Lisp Objects as format args.
10343
10344 * buffer.c (Fkill_buffer): Call format2 instead of format1.
10345
a97e4138 103462003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
10347
10348 * xterm.h: Change to return value of x_dispatch_event to int.
10349
10350 * xterm.c (x_filter_event): New function.
10351 (event_handler_gdk, XTread_socket): Call x_filter_event.
10352 (x_dispatch_event): Change to return value of finish.
10353 (event_handler_gdk): Use return value from x_dispatch_event.
10354
10355 * xfns.c (x_window): Call create_frame_xic for GTK version to
10356 initialize input methods.
10357
10358 * gtkutil.h: Add (void) prototypes.
10359
10360 * gtkutil.c (create_menus): Remove code that puts the help menu to
10361 the right.
10362
54eefef1
JR
103632003-01-25 Jason Rumney <jasonr@gnu.org>
10364
10365 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
10366 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
10367 (png_load): Adjust colors for Windows. Use Windows
10368 bitmaps. Disable color table lookups.
c262430d
JR
10369 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
10370 (init_png_functions): New function.
10371 (png_read_from_memory, png_load): Call png library functions
10372 through pointers determined at runtime.
10373 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
10374 (init_external_image_libraries): New function.
10375 (init_xfns): Call it.
54eefef1 10376
1a9e275b
AS
103772003-01-24 Andreas Schwab <schwab@suse.de>
10378
10379 * minibuf.c (Fminibuffer_message): Verify type of parameter.
10380
a97e4138 103812003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
10382
10383 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
10384 of static initializer.
10385
422eec7e
DL
103862003-01-24 Dave Love <fx@gnu.org>
10387
10388 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
10389 architectures.
10390
10391 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
10392 Use __alignof__.
10393
2a026b04
KH
103942003-01-24 Kenichi Handa <handa@m17n.org>
10395
10396 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 10397 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
10398 (command_loop_1): Call adjust_point_for_property with proper
10399 second arg.
10400
a18bb28d
JR
104012003-01-22 Jason Rumney <jasonr@gnu.org>
10402
10403 Sync changes with xterm.c and xfns.c.
10404
10405 * w32term.c (x_draw_glyph_string_foreground)
10406 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10407
10408 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
10409 phys_cursor's hpos is overwritten. This is still not completely
10410 correct, as it doesn't really make sense to use hpos at all to
10411 get the cursor glyph (as that is relative to the width of the
10412 characters on the line, which may have changed during the update).
10413
10414 * w32term.c (notice_overwritten_cursor): Handle the special case
10415 of the cursor being in the first blank non-text line at the
10416 end of a window.
10417
10418 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
10419 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
10420 Compute from the x position returned by x_draw_glyphs.
10421
10422 (x_display_and_set_cursor): Don't set phys_cursor_width here,
10423 except for NO_CURSOR and system caret, to make phys_cursor_width
10424 contain what its name suggests.
10425 (notice_overwritten_cursor): Consider the cursor image erased if
10426 the output area intersects the cursor image in y-direction.
10427
6a097c0c
SM
10428 * w32term.c (note_mode_line_or_margin_highlight): Rename from
10429 note_mode_line_highlight and extend.
a18bb28d
JR
10430
10431 * w32term.c (last_window): New variable.
10432 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
10433 (note_mouse_movement): Remove reimplemented code in #if 0.
10434
10435 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
10436 not update_mode_lines, and always set it to 1.
10437
ac6e47ef
JR
104382003-01-21 Jason Rumney <jasonr@gnu.org>
10439
10440 * w32fns.c (IDC_HAND): Define it if system headers don't.
10441
104422003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
10443
10444 * w32term.h (struct w32_output): New member hand_cursor.
10445 (WM_EMACS_SETCURSOR): New message definition.
10446
10447 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
10448 function w32_define_cursor.
10449 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
10450 position, change member name output_data.x to output_data.w32 and
10451 add function w32_define_cursor.
10452 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
10453 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
10454 (w32_initialize_display_info):
10455 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
10456
10457 * w32fns.c (Vx_hand_shape): New variable.
10458 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
10459 WM_EMACS_SETCURSOR.
10460 (x-create-frame): Setup Cursor types.
10461
ceb39a17
JB
104622003-01-21 David Ponce <david@dponce.com>
10463
ac6e47ef 10464 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 10465 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 10466 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 10467 2002-09-30.)
ac6e47ef
JR
10468 (w32_draw_relief_rect): Declare all args.
10469 (w32_define_cursor): New.
10470
10471 * w32fns.c (w32_load_cursor): New function.
10472 (w32_init_class): Use it.
10473 (x_put_x_image): Declare all args.
10474
b6189c3b 104752003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
10476
10477 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
10478
a97e4138 104792003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
10480
10481 * gtkutil.c: Must include stdio.h before termhooks.h
10482
83fc9c63
DL
104832003-01-21 Dave Love <fx@gnu.org>
10484
10485 * alloc.c (Fgc_status): Print zombie list.
10486 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
10487 Fix assignment of zombies.
10488 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
10489 Don't take car of non-cons.
10490
10491 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10492
10493 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10494
fe04b8c8
JR
104952003-01-20 David Ponce <david@dponce.com>
10496
10497 * w32menu.c (digest_single_submenu): Declare all args.
10498
10499 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
10500 changes in xmenu.c:
10501
10502 (parse_single_submenu): Use individual keymap's prompt
10503 string as pane name, if there is one.
10504 (set_frame_menubar): Save menu_items_n_panes from each call to
10505 parse_single_submenu and use it when calling digest_single_submenu.
10506
539e69a9
ST
105072003-01-20 Steven Tamm <steventamm@mac.com>
10508
10509 * macterm.c (XTread_socket): Checks for valid, visible window
10510 before sending a scroll-wheel event.
10511
675d000f
RS
105122003-01-20 Richard M. Stallman <rms@gnu.org>
10513
10514 * xdisp.c (redisplay_window): If mini window's buffer is not
10515 a minibuffer, then redisplay it like other windows.
10516
a97e4138 105172003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
10518
10519 * gtkutil.c (xg_create_frame_widgets): Check if there is an
10520 external tool bar before setting tool bar height.
10521
048addec
JD
105222003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10523
10524 * xterm.c (handle_one_xevent): Surround popup_activated
10525 with #ifdef:s for non-toolkit version.
10526
10527 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
10528 (gtkutil.o): New file.
10529 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
10530 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
10531
10532 * gtkutil.c: New file for GTK version.
10533
10534 * gtkutil.h: New file for GTK version.
10535
10536 * xterm.h: Add xt_or_gtk_widget.
10537 Include gtk files for USE_GTK.
10538 (struct x_output): Add toolbar_height.
10539 (struct x_output): Add GTK widgets and Gdk size_hints.
10540 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
10541 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
10542 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
10543
10544 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 10545 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
10546 (note_mouse_highlight): Check popup_activated for USE_GTK.
10547 (xt_action_hook): Don't compile if USE_GTK.
10548 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
10549 (xg_scroll_callback): New function.
10550 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
10551 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
10552 for USE_GTK.
10553 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
10554 xg_show_scroll_bar for USE_GTK.
10555 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
10556 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
10557 (event_handler_gdk): New function for USE_GTK.
10558 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
10559 (handle_one_xevent): Make sure widget is mapped before
10560 calling x_real_positions for USE_GTK.
10561 (XTread_socket): Add GTK event loop for USE_GTK.
10562 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
10563 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
10564 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
10565 (x_iconify_frame): Add code for USE_GTK.
10566 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
10567 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
10568 is in gtkutil.c.
10569 (x_term_init): Add initialization for GTK.
10570 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
10571
10572 * xmenu.c: Include gtkutil.h for USE_GTK.
10573 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
10574 (single_menu_item, single_menu_item, Fx_popup_dialog):
10575 Check for USE_GTK.
048addec
JD
10576 (popup_widget_loop): New function for USE_GTK.
10577 (x_activate_menubar): Add code for USE_GTK.
10578 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
10579 (menu_highlight_callback, menubar_selection_callback):
10580 Add USE_GTK versions.
048addec
JD
10581 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
10582 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
10583 (free_frame_menubar): Only compile if not USE_GTK. GTK version
10584 is in gtkutil.c.
10585 (popup_selection_callback): New version for USE_GTK.
10586 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 10587 one USE_X_TOOLKIT version.
048addec
JD
10588 (xmenu_show): Call create_and_show_popup_menu.
10589 (dialog_selection_callback): New version for USE_GTK.
10590 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 10591 one USE_X_TOOLKIT version.
048addec
JD
10592 (xdialog_show): Call create_and_show_dialog.
10593
10594 * xfns.c: Include gtkutil for USE_GTK.
10595 (x_window_to_frame, x_any_window_to_frame)
10596 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
10597 (x_top_window_to_frame): Add code for USE_GTK.
10598 (x_set_background_color): Call xg_set_background_color for GTK.
10599 (x_set_menu_bar_lines): Check for USE_GTK.
10600 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
10601 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
10602 (x_window): Call xg_create_frame_widgets for USE_GTK.
10603 (Fx_create_frame): Check for USE_GTK
10604 (Fx_file_dialog): New implementation for USE_GTK.
10605
10606 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
10607 (update_menu_bar): Add check for USE_GTK.
10608 (update_tool_bar): Add check for USE_GTK and external tool bar.
10609 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
10610 (redisplay_internal): Add check for USE_GTK and popup_activated.
10611 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
10612 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
10613 (display_menu_bar): Add check for USE_GTK
10614
78819ebb 10615 * lisp.h (Vx_resource_name): Declare extern.
048addec 10616
a64387ee 10617 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
10618 for USE_GTK.
10619 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
10620
10621 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
10622 (FRAME_EXTERNAL_TOOL_BAR): New macro.
10623 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
10624
10625 * fileio.c (Fread_file_name): Add check for USE_GTK.
10626
6bdb309a
SM
10627 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
10628 Add check for USE_GTK.
048addec
JD
10629
10630 * config.in: Added HAVE_GTK
10631
10632 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
10633
106342003-01-18 Stefan Monnier <monnier@cs.yale.edu>
10635
10636 * charset.h (Funibyte_char_to_multibyte): Export.
10637
106382003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10639
10640 * xmenu.c (mouse_position_for_popup): New function.
10641 (Fx_popup_menu): Call mouse_position_for_popup for X and
10642 mouse_position_hook for others.
10643
106442003-01-17 Kim F. Storm <storm@cua.dk>
10645
10646 * editfns.c (Finsert): Mention `string-make-multibyte' and
10647 `string-as-multibyte' in doc string.
10648
106492003-01-17 Kenichi Handa <handa@m17n.org>
10650
10651 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 10652
048addec
JD
10653 * editfns.c (Fformat): Convert an unibyte char argument that is
10654 formatted by "%c" to multibyte if the total result must be a
10655 multibyte string.
cd7df9c0 10656
048addec 106572003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 10658
048addec
JD
10659 * process.c (set-process-filter): Document unibyte/multibyte-ness
10660 of string argument.
56210ecd 10661
048addec 106622003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 10663
048addec 10664 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 10665
048addec
JD
10666 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
10667 (re_search_2): Likewise.
6df8b9fe 10668
048addec 106692003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 10670
048addec
JD
10671 * xdisp.c (message_dolog): Fix bug of the case that *Message*
10672 buffer is unibyte.
292ddc31 10673
048addec 106742003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 10675
048addec 10676 * fns.c (Fsubstring): Clarify doc string.
292ddc31 10677
048addec
JD
10678 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
10679 (Fprevious_char_property_change)
10680 (Fnext_single_char_property_change)
10681 (Fprevious_single_char_property_change, Fnext_property_change)
10682 (Fnext_single_property_change, Fprevious_property_change)
10683 (Fprevious_single_property_change, Fadd_text_properties)
10684 (Fput_text_property, Fset_text_properties)
10685 (Fremove_text_properties, Fremove_list_of_text_properties)
10686 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 10687
048addec 106882003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 10689
048addec
JD
10690 * process.h (struct Lisp_Process): New member plist replaces old
10691 member private_vars. All uses changed.
63e4e4c6 10692
048addec 10693 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 10694 (QCplist): Rename from QCvars. Change all uses.
048addec 10695 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 10696 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 10697 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 10698 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 10699
048addec 107002003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 10701
6bdb309a 10702 * m/delta.h: Remove (obsolete).
e833850f 10703
048addec 107042003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 10705
048addec
JD
10706 * fileio.c (Fdelete_directory, Fdelete_file): Document the
10707 behaviour in front of symlinks.
10708 (Fdelete_file): Raise an error on directories.
817cb127 10709
048addec 107102003-01-13 Dave Love <fx@gnu.org>
817cb127 10711
048addec 10712 * fns.c (Freverse): Use QUIT.
3e8cf2ea 10713
048addec 107142003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 10715
048addec
JD
10716 * minibuf.c (minibuffer_completion_contents):
10717 Error if point is inside prompt.
3e8cf2ea 10718
048addec
JD
10719 * keyboard.c (command_loop_1): Don't redisplay directly
10720 if there's a post-command-hook.
3e8cf2ea 10721
048addec
JD
10722 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
10723 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 10724
048addec 107252003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 10726
048addec 10727 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 10728
048addec
JD
10729 * process.c (QCvars): New variable.
10730 (syms_of_process): Intern and staticpro it.
10731 (Fset_process_contact): Removed function.
10732 (Fprocess_variable, Fset_process_variable): New functions.
10733 (syms_of_process): Defsubr them.
10734 (Fstart_process): Initialize private_vars plist to nil.
10735 (Fmake_network_process): New arg :vars to setup the private
10736 variables for new network process.
10737 (server_accept_connection): Copy server's private variables to
10738 client process.
2c10f029 10739
048addec
JD
10740 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
10741 crashes). Code rewritten and simplified. Now directly aligns the
10742 pointer and recalculates pure_bytes_used, rather than aligning the
10743 size and adjusting the pointer.
b8a76c6c 10744
048addec 107452003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 10746
048addec
JD
10747 * process.c (Fset_process_contact): New function.
10748 (syms_of_process): defsubr it.
10749 (make-network-process): Update doc.
3a8d0899 10750
048addec 107512003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 10752
048addec
JD
10753 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
10754 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 10755
048addec 107562003-01-10 Dave Love <fx@gnu.org>
4abc7470 10757
048addec 10758 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 10759
048addec 107602003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 10761
048addec
JD
10762 * process.c (Fmake_network_process): Convert new port number
10763 to host byte order for `:service t' case. From Mario Lang.
bf338245 10764
048addec 107652003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 10766
048addec
JD
10767 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
10768 instead of XtAppProcessEvent.
bf338245 10769
048addec
JD
10770 * xterm.c (handle_one_xevent): New function.
10771 (x_dispatch_event): New function.
10772 (XTread_socket): Call handle_one_xevent.
bf338245 10773
048addec 10774 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 10775
048addec
JD
10776 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
10777 call XQueryPointer to get coordinates.
10778 (popup_get_selection): Do not set popup_activated_flag to zero,
10779 let popup_deactivate_callback do that. Needed for Motif.
10780 Call x_dispatch_event instead of XtDispatchEvent.
10781 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 10782
048addec 107832003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 10784
6bdb309a 10785 * process.c (server_accept_connection): Fix recording of new
048addec
JD
10786 connection's local address in :local property of contact info.
10787 (Fmake_network_process): Record local network address for new
10788 client processes in :local property of contact info.
6bdb309a 10789 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 10790
048addec 107912003-01-07 Dave Love <fx@gnu.org>
00e3ab56 10792
048addec 10793 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 10794
048addec 107952003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 10796
048addec 10797 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 10798
048addec
JD
10799 * eval.c (Fuser_variable_p): Doc change. For custom variables,
10800 use the same test as for custom-variable-p.
8c6d74c6 10801
048addec 108022003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 10803
048addec
JD
10804 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
10805 Count LAST_LINE_MISFIT in scroll margin for end of window.
10806 Move label too_near_end before setting SCROLL_MARGIN_POS.
10807 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 10808
048addec
JD
10809 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
10810 scroll_conservatively case. If scrolling that much doesn't change
10811 STARTP, move it down one line.
e833850f 10812
048addec
JD
10813 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
10814 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 10815
048addec
JD
10816 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
10817 selected frame.
8c6d74c6 10818
048addec 10819 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 10820 (syms_of_keymap): Staticpro them.
048addec
JD
10821 (Fapropos_internal): Initialize them and clear them out.
10822 Don't GCPRO them.
8c6d74c6 10823
048addec
JD
10824 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
10825 Doc fixes.
8c6d74c6 10826
048addec
JD
10827 * lisp.h: New misc type Lisp_Save_Value.
10828 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
10829 (XSAVE_VALUE): New macro.
10830 (struct Lisp_Save_Value): New data type.
10831 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 10832 (make_save_value): Declare.
8c6d74c6 10833
048addec 10834 * alloc.c (make_save_value): New function.
8c6d74c6 10835
048addec
JD
10836 * xterm.c (x_catch_errors): Save dpy using make_save_value.
10837 (x_catch_errors_unwind): Call XSync.
8c6d74c6 10838
048addec 108392003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 10840
048addec 10841 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 10842
048addec
JD
10843 * keyboard.c (command_loop_1): Call adjust_point_for_property
10844 in direct action cases for Qforward_char and Qbackward_char.
10845 Set already_adjusted so it won't be done twice.
8c6d74c6 10846
b6189c3b 108472002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 10848
048addec
JD
10849 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
10850 type definition of size_t.
8c609cff 10851
048addec 108522003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 10853
048addec
JD
10854 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
10855 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 10856
048addec 108572002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 10858
048addec
JD
10859 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
10860 to default to t.
fa634a5e 10861
048addec 108622002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 10863
048addec 10864 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 10865
048addec 108662002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 10867
048addec
JD
10868 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
10869 allow building in a different directory than source. Uses some
10870 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 10871
048addec 108722002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 10873
048addec
JD
10874 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
10875 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
10876 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
10877 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 10878
048addec 108792002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 10880
048addec
JD
10881 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
10882 <scroll-down-aggressively>: Doc fix.
2155ecf3 10883
048addec
JD
10884 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
10885 string as pane name, if there is one.
10886 (set_frame_menubar): Save menu_items_n_panes from each call to
10887 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 10888
048addec
JD
10889 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
10890 Don't try to make last line fully visible if it is past end of window.
61f1d295 10891
048addec 108922002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 10893
048addec
JD
10894 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
10895 (mac_menu_show): Add support for hierarchical popup menus.
10896 (add_menu_item): Remove indentation support.
10897 (fill_submenu, fill_menu): Create hierarchical menus
10898 instead of using indentation.
0b17a217 10899
048addec 109002002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 10901
048addec
JD
10902 * xdisp.c (try_cursor_movement): Don't call try_window here.
10903 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 10904
048addec 10905 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 10906
048addec 109072002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 10908
048addec
JD
10909 * macterm.c (XTread_socket): Call KeyTranslate for control and
10910 meta to deal correctly shifted non-alpha characters, like C-S-5
10911 being treated like C-%. Does not look for shift key to deal
10912 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 10913
048addec 109142002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 10915
048addec
JD
10916 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
10917 If it is non-nil, run timers. Use an unwind-protect to requeue
10918 the events that were read ahead.
10919 (popup_get_selection_unwind): New subroutine.
10920 (popup_get_selection_queue): File-scope variable now holds that queue.
10921 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
10922 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
10923 Use an unwind-protect to pop down the dialog box.
10924 (xdialog_show_unwind): New subroutine implements that.
f02cac82 10925
048addec
JD
10926 * xdisp.c (row_containing_pos): Change exit test using last_y.
10927 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 10928
048addec
JD
10929 * lread.c (load_error_handler): New function.
10930 (Fload): Handle errors in Fsubstitute_in_file_name.
10931 Don't expect Fsignal to return.
f02cac82 10932
048addec
JD
10933 * eval.c: Errors and throws work right with interrupt blocking.
10934 (struct catchtag): New elt interrupt_input_blocked.
10935 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
10936 (internal_catch, Fcondition_case, internal_condition_case)
10937 (internal_condition_case_1, internal_condition_case_2): Save it.
10938 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 10939
048addec 10940 * editfns.c (Fformat): Add parens.
f02cac82 10941
048addec
JD
10942 * dired.c (file_name_completion): Fix that change.
10943 Delete special quit-handling code; just use QUIT.
f02cac82 10944
b6189c3b 109452002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 10946
048addec
JD
10947 * dired.c (file_name_completion): Close directory on error
10948 just as in directory_files_internal.
1a590729 10949
048addec 109502002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 10951
048addec
JD
10952 * window.c (Fset_window_configuration): Set old_point to correct
10953 value when new_current_buffer == current_buffer.
f02cac82 10954
048addec 109552002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 10956
048addec
JD
10957 Revisited my earlier fix for the following entry in etc/PROBLEMS:
10958 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10959 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 10960
048addec
JD
10961 These changes were in part based upon suggestions made by Peter
10962 'Luna' Runestig [peter@runestig.com].
9785d95b 10963
048addec
JD
10964 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
10965 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 10966 g_b_init_get_sid_identifier_authority ): Add several static
048addec 10967 global variables.
9785d95b 10968
048addec
JD
10969 * w32.c (globals_of_w32): New function. Used to initialize those
10970 global variables that must always be initialized on startup even
10971 when the global variable initialized is non zero. Its primary
10972 purpose at this time is to set the global variables
10973 g_b_init_is_windows_9x, g_b_init_open_process_token,
10974 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
10975 g_b_init_get_sid_identifier_authority to 0 on startup.
10976 Called from main.
9785d95b 10977
048addec
JD
10978 * w32.c (is_windows_9x): Perform initialization only if
10979 g_b_init_is_windows_9x is equal to 0. On initialization set
10980 g_b_init_is_windows_9x equal to 1.
2308af15 10981
048addec
JD
10982 * w32.c (open_process_token): Perform initialization only if
10983 g_b_init_open_process_token is equal to 0. On initialization set
10984 g_b_init_open_process_token equal to 1.
2308af15 10985
048addec
JD
10986 * w32.c (get_token_information): Perform initialization only if
10987 g_b_init_get_token_information is equal to 0. On initialization
10988 set g_b_init_get_token_information equal to 1.
9785d95b 10989
048addec
JD
10990 * w32.c (lookup_account_sid): Perform initialization only if
10991 g_b_init_lookup_account_sid is equal to 0. On initialization
10992 set g_b_init_lookup_account_sid equal to 1.
9785d95b 10993
048addec
JD
10994 * w32.c (get_sid_identifier_authority): Perform initialization
10995 only if g_b_init_get_sid_identifier_authority is equal to 0.
10996 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 10997
f63fd14e 10998 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
10999 those global variables that must always be initialized on startup
11000 even when the global variable initialized is non zero.
11001 Its primary purpose at this time is to initialize the global variable
11002 track_mouse_event_fn.
9785d95b 11003
a64387ee 11004 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 11005 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 11006
048addec 11007 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 11008
f63fd14e 11009 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
11010 initialize those global variables that must always be initialized
11011 on startup even when the global variable initialized is non zero.
11012 Its primary purpose at this time is to initialize the global
11013 variables get_menu_item_info and set_menu_item_info.
9785d95b 11014
048addec
JD
11015 * w32menu.c (initialize_frame_menubar): Remove initialization of
11016 get_menu_item_info and set_menu_item_info.
9785d95b 11017
048addec 11018 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 11019
048addec
JD
11020 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
11021 Declare them.
9785d95b 11022
048addec
JD
11023 * emacs.c (main): Call globals_of_w32 prior to calling
11024 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
11025 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
11026 is defined.
9785d95b 11027
048addec
JD
11028 * w32term.c (x_update_window_begin): Fix Windows API error
11029 detected by BoundsChecker. Test to determine if
11030 w32_system_caret_hwnd is NULL prior to attempting to use
11031 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 11032
048addec
JD
11033 * w32term.c (x_update_window_end): Fix Windows API error
11034 detected by BoundsChecker. Test to determine if
11035 w32_system_caret_hwnd is NULL prior to attempting to use
11036 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 11037
048addec 110382002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 11039
048addec
JD
11040 * coding.c (coding_system_require_warning): New variable.
11041 (syms_of_coding): DEFVAR it.
b6da19ef 11042
048addec 11043 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 11044
048addec
JD
11045 * fileio.c (choose_write_coding_system): Even if
11046 Vcoding_system_for_write is non-nil, if
11047 coding_system_require_warning is nonzero, call
11048 Vselect_safe_coding_system_function.
bfcf6dbe 11049
048addec 110502002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 11051
048addec
JD
11052 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
11053 (lisp): Add font-core.
2c568af5 11054
048addec 110552002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 11056
048addec
JD
11057 * textprop.c (text_read_only): New arg `propval'.
11058 (get_char_property_and_overlay): Remove unused var `next_overlay'.
11059 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 11060
048addec 110612002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 11062
048addec 11063 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 11064
048addec 110652002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 11066
048addec
JD
11067 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
11068 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
11069 Be more careful about when help_events are generated.
96720f09 11070
048addec 110712002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 11072
048addec
JD
11073 * macterm.c (mac_check_for_quit_char): Correctly set the
11074 modifiers of the event to 0.
11075 * mac.c (sys_select): Duplicate rfds before calling select to
11076 ensure that rfds survive the while loop.
e5ae1c49 11077
048addec 110782002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 11079
048addec
JD
11080 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
11081 row_containing_pos returned NULL.
2eb46b2d 11082
048addec 110832002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 11084
6bdb309a 11085 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 11086 non-blocking.
6bdb309a 11087 (sys_select): Fix sys_select to not use a timeout larger than
048addec 11088 the one given.
b11f1d8a 11089
048addec 110902002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 11091
048addec 11092 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 11093
048addec 110942002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 11095
048addec
JD
11096 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
11097 as the last thing.
a4ac5b17 11098
048addec 110992002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 11100
048addec 11101 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 11102
048addec 111032002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 11104
048addec
JD
11105 * editfns.c (Fformat): Handle precision in string conversion
11106 specifiers like libc functions do (ie, print at most that many
11107 characters).
85cce843 11108
048addec 111092002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 11110
048addec
JD
11111 * xdisp.c (row_containing_pos): Check more carefully
11112 whether charpos is really in the row before returning it.
0d4d26a7 11113
048addec 111142002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 11115
048addec 11116 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 11117
048addec
JD
11118 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
11119 each stack frame. This may change as it could be time consuming.
0d4d26a7 11120
048addec
JD
11121 * macterm.c (mac_check_for_quit_char, quit_char_comp)
11122 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 11123 (mac_initialize): Add code to check for pressing of quit_char
048addec 11124 in the OS event queue.
b11f1d8a 11125
048addec
JD
11126 * mac.c (sys_select): Call mac_check_for_quit_char every second
11127 while blocking on select.
0d4d26a7 11128
048addec
JD
11129 * mac.c (sys_read): Use sys_select to test for input first
11130 before calling read, to allow C-g to break.
9252f7bc 11131
048addec 111322002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 11133
048addec 11134 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 11135
048addec 11136 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 11137
048addec 11138 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 11139
048addec
JD
11140 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
11141 autoload.
9252f7bc 11142
048addec 11143 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 11144
048addec 11145 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 11146
048addec 111472002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 11148
048addec 11149 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 11150
048addec 111512002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 11152
048addec 11153 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 11154
048addec 11155 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 11156
048addec 11157 * alloca.c: Don't use #error.
02d588e2 11158
048addec 111592002-12-03 Dave Love <fx@gnu.org>
02d588e2 11160
048addec
JD
11161 * buffer.c (Qucs_set_table_for_input): New.
11162 (Fget_buffer_create): Use it.
11163 (Qset_buffer_major_mode_hook): Deleted.
11164 (Fset_buffer_major_mode): Revert previous change.
11165 (init_buffer_once): Intern ucs-set-table-for-input.
11166 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
11167 Add &Qucs_set_table_for_input.
451e2697 11168
048addec 111692002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 11170
048addec
JD
11171 * callint.c (Fcall_interactively): Use next_event only if less
11172 than key_count.
72742a99 11173
048addec 111742002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 11175
048addec
JD
11176 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
11177 names to 255 characters.
72742a99 11178
048addec
JD
11179 * macterm.c (XTread_socket): If all frames have been collapsed,
11180 expand the first one before handling drag-and-drop events.
72742a99 11181
048addec
JD
11182 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
11183 which is detected by autoconf.
40e6ff95 11184
048addec 111852002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 11186
048addec
JD
11187 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
11188 offset in two hints table to allow prebinding to be redone and
11189 allow the executable to be stripped.
c02138c6 11190
048addec 111912002-11-29 Dave Love <fx@gnu.org>
c02138c6 11192
048addec
JD
11193 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
11194 already provided.
0e47bbf7 11195
048addec 111962002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 11197
048addec
JD
11198 * xdisp.c (start_display): Check more intelligently for
11199 whether the line is continued.
11200 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 11201
048addec 112022002-11-28 Dave Love <fx@gnu.org>
44129dcb 11203
048addec
JD
11204 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
11205 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 11206
048addec 112072002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 11208
048addec
JD
11209 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
11210 more descriptive error output from lread.c:Fload upon most require
11211 cycles during boostrapping.
1637fd2c 11212
048addec 112132002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 11214
048addec
JD
11215 * fileio.c (Finsert_file_contents): Give a more appropriate error
11216 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 11217
048addec
JD
11218 * dired.c (Ffile_attributes): Don't return negative file sizes for
11219 files bigger than 2Gb when off_t is 32 bit.
540c2788 11220
048addec 112212002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 11222
048addec 11223 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 11224
048addec
JD
11225 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
11226 Test GETPGRP_VOID instead.
11227 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 11228
048addec
JD
11229 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
11230 Don't define.
11231 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 11232
048addec 11233 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 11234
048addec 112352002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 11236
048addec
JD
11237 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
11238 supported.
4042a81a 11239
048addec 112402002-11-25 Dave Love <fx@gnu.org>
4042a81a 11241
048addec 11242 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 11243
048addec 11244 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 11245
048addec 112462002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 11247
048addec 11248 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 11249
048addec 112502002-11-24 Steven Tamm <steventamm@mac.com>
82122254 11251
048addec
JD
11252 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
11253 determine the size of pointers alloced in unexed space instead
11254 of using possibly invalid emacs_zone pointers. This fixes the
11255 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 11256
048addec 112572002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 11258
048addec 11259 * search.c (Fstring_match): Doc fix.
c1ee53bc 11260
048addec
JD
11261 * callint.c (Fcall_interactively): If a command fails because
11262 `*' detects a read-only buffer, but RECORD_FLAG is set,
11263 record it anyway if the args don't actually do tty input.
5598c32e 11264
048addec 112652002-11-22 Dave Love <fx@gnu.org>
5598c32e 11266
048addec 11267 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 11268
048addec
JD
11269 * keyboard.c (interrupt_signal): Provide forward declaration.
11270 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 11271
048addec 11272 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 11273
048addec 112742002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 11275
048addec
JD
11276 * eval.c (interactive_p): Skip any number of bytecode
11277 and special form frames, in any order.
516eea8e 11278
048addec 112792002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 11280
048addec
JD
11281 * w32fns.c (convert_mono_to_color_image): New function.
11282 (xbm_load, xbm_load_image): Use it when foreground or background
11283 is explicitly set.
04dbfa08 11284
048addec 112852002-11-19 Dave Love <fx@gnu.org>
04dbfa08 11286
048addec 11287 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 11288
048addec 112892002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 11290
048addec
JD
11291 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
11292 (XPutPixel): Swap blue and red.
11293 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
11294 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
11295 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
11296 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 11297
048addec 112982002-11-18 Dave Love <fx@gnu.org>
d824beee 11299
048addec 11300 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 11301
048addec 11302 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 11303
048addec 11304 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 11305
048addec
JD
11306 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
11307 malloc, realloc, calloc.
d824beee 11308
048addec
JD
11309 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
11310 (bcmp): Don't define.
d824beee 11311
048addec 11312 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 11313
048addec 11314 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 11315
048addec 11316 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 11317
048addec 11318 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 11319
048addec
JD
11320 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
11321 Don't include alloca.h.
d824beee 11322
048addec 11323 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 11324
048addec 11325 * regex.c (_GNU_SOURCE): Don't define.
1998560a 11326
048addec 11327 * process.c (_GNU_SOURCE): Don't define.
1998560a 11328
048addec 11329 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 11330
048addec 113312002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 11332
048addec 11333 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 11334
048addec 113352002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 11336
048addec
JD
11337 * dispextern.h (struct face): Add `overstrike' field.
11338 * xterm.c (x_draw_glyph_string_foreground)
11339 (x_draw_composite_glyph_string_foreground): Implement overstriking.
11340 * xfaces.c (load_face_font): Set `face->overstrike' based on
11341 result from choose_face_font.
11342 (best_matching_font, choose_face_font): Add `needs_overstrike'
11343 argument, and use it to return whether overstriking is desirable
11344 for this face/font combo.
11345 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 11346
048addec 113472002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 11348
048addec
JD
11349 This change is my fix for the following entry in etc/PROBLEMS:
11350 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
11351 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 11352
048addec
JD
11353 * w32.c: Added wrapper functions around the win32 API functions
11354 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
11355 GetSidIdentifierAuthority. These wrapper functions serve two
11356 purposes:
11357 1. They ensure that the wrapped function can never be called
11358 when Emacs is running on an operating system on which they are
11359 not supported (Microsoft Windows 95 / 98 / ME).
11360 2. They call the wrapped functions via function pointers rather
11361 than calling them directly. This avoids taking advantage of the
11362 undocumented fact that although these functions are not supported
11363 in the 9x branch of Microsoft Windows, the functions do exist in
11364 the version of advapi32.dll that is found in the 9x branch of
11365 Microsoft Windows.
f60ae425 11366
6bdb309a 11367 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
11368 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
11369 and GetSidIdentifierAuthority with calls to the newly added
11370 wrapper functions.
f60ae425 11371
048addec
JD
11372 * w32.h: Added extern declarations for the following functions:
11373 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
11374 syms_of_w32menu, and void syms_of_fontset.
f60ae425 11375
6bdb309a 11376 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
11377 function pointer track_mouse_event_fn in the handler for the
11378 WM_SETFOCUS message.
3582b6a3 11379
6bdb309a 11380 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
11381 reinitialize the function pointers set_menu_item_info and
11382 get_menu_item_info.
f60ae425 11383
048addec 113842002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 11385
048addec
JD
11386 * sound.c: Added a partial implementation of play-sound-internal
11387 for Microsoft Windows. Added various #ifdef / #else / #endif
11388 code blocks to separate the code that will compile under
11389 Microsoft Windows from the code that is specific to Gnu/Linux.
11390 Moved several blocks of code around to make this separation of code
11391 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 11392
048addec 11393 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 11394
048addec
JD
11395 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
11396 added support for play-sound-internal under Windows would be
11397 included in the build of Emacs.
517f42a0 11398
048addec 113992002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 11400
048addec 11401 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 11402
048addec 11403 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 11404
048addec 114052002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 11406
048addec
JD
11407 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
11408 (adjust_point_for_property): Move out of display and invisible even if
11409 we were already inside before (in case a property was added while
11410 we weren't looking). Be more careful when handling invisible props.
11411 Skip invisible text as if it really wasn't there at all.
aab83f91 11412
048addec 114132002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 11414
048addec
JD
11415 * w32term.c (x_draw_image_foreground)
11416 (w32_draw_image_foreground_1): Use standard copy and invert
11417 operations to draw images.
aab83f91 11418
048addec
JD
11419 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
11420 depth of 1.
11421 (xbm_read_bitmap_data): Invert bits as xbm is read in.
11422 (XPutPixel): Don't invert bits here.
a4478a76 11423
048addec 114242002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 11425
048addec
JD
11426 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
11427 (w32_draw_image_foreground_1): Handle image masks.
11428 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 11429
048addec
JD
11430 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
11431 (x_from_xcolors): Adjust RGB values for W32.
11432 (image_background, image_background_transparent)
11433 (postprocess_image, x_to_xcolors, x_disable_image)
11434 (x_build_heuristic_mask): Adapt for W32 and enable.
11435 (x_create_x_image_and_pixmap): Mark images with palettes as such.
11436 (xbm_load): Remove unused variable.
03670a65 11437
048addec 114382002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 11439
048addec 11440 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 11441
048addec 114422002-11-14 Dave Love <fx@gnu.org>
59daa29a 11443
048addec 11444 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 11445
048addec
JD
11446 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
11447 * xmenu.c (unuse_menu_items, digest_single_submenu):
11448 * xfns.c (x_put_x_image):
11449 * xdisp.c (message2_nolog, set_message):
11450 * undo.c (record_point):
11451 * terminfo.c (tparam):
11452 * syntax.c (scan_sexps_forward):
11453 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
11454 * composite.c (update_compositions):
11455 * cm.c (calccost, cmgoto):
11456 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 11457
048addec 11458 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 11459
048addec
JD
11460 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
11461 Don't declare.
59daa29a 11462
048addec 11463 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 11464
048addec
JD
11465 * fns.c (Fcopy_sequence): Doc fix.
11466 (Fmap_char_table): Cast `call2'.
3947677c 11467
048addec
JD
114682002-11-14 Francesco Potorti` <pot@gnu.org>
11469
11470 * s/sol2-8.h: New file.
11471
114722002-11-14 Kim F. Storm <storm@cua.dk>
11473
11474 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
11475 dependency on `risky-local-variable' and the :propertize form.
11476
114772002-11-12 Stefan Monnier <monnier@cs.yale.edu>
11478
11479 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
11480
11481 * syntax.c (scan_sexps_forward): Undo last patch.
11482 Use a more obvious fix: check eob before updating the syntax table.
11483
114842002-11-09 Stefan Monnier <monnier@cs.yale.edu>
11485
11486 * syntax.c (scan_sexps_forward): Update syntax table before reading
11487 a char rather than after so we don't update the table past eob.
11488
114892002-11-09 Dave Love <fx@gnu.org>
11490
11491 * buffer.c (Fset_buffer_major_mode): Fix last change.
11492
11493 * regex.c (regexec): Fix pmatch declaration.
11494
11495 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
11496
11497 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
11498 to self-inserting characters.
11499 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
11500
11501 * coding.c (Vtranslation_table_for_input): New.
11502 (syms_of_coding): DEFVAR it.
11503
115042002-11-08 Juanma Barranquero <lektu@terra.es>
11505
11506 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
11507 window.
11508
115092002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11510
6bdb309a 11511 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
11512 cp, and i.
11513
115142002-11-06 Dave Love <fx@gnu.org>
11515
11516 * buffer.c (Qset_buffer_major_mode_hook): New.
11517 (Fset_buffer_major_mode): Use it.
11518
115192002-11-06 Richard M. Stallman <rms@gnu.org>
11520
11521 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
11522 and stop_polling.
11523
11524 * process.c (wait_reading_process_input):
11525 Test POLLING_PROBLEM_IN_SELECT, not hpux.
11526 Avoid initialization for auto Lisp_Object var.
11527
11528 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
11529
11530 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
11531
115322002-11-05 Richard M. Stallman <rms@gnu.org>
11533
11534 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
11535
11536 * callint.c (Fcall_interactively): New local filter_specs.
11537 (Fcall_interactively): Check for progn as well as let.
11538 Add a gcpro.
11539 (Qprogn): New variable.
11540 (syms_of_callint): Staticpro and init Qprogn.
11541
115422002-11-04 John Paul Wallington <jpw@shootybangbang.com>
11543
11544 * lread.c (Feval_buffer): Doc fix.
11545
115462002-11-04 Dave Love <fx@gnu.org>
11547
11548 * keyboard.c (read_char): Always translate iff
11549 Vkeyboard_translate_table is a char table and c is valid.
11550
11551 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
11552 and fix C types.
11553
115542002-11-03 Stefan Monnier <monnier@cs.yale.edu>
11555
11556 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
11557
11558 * editfns.c (get_pos_property): Don't hardcode Qfield.
11559
11560 * keyboard.c (adjust_point_for_property): Handle `display' prop on
11561 overlays. Also handle `invisible' prop.
11562
115632002-11-02 Stefan Monnier <monnier@cs.yale.edu>
11564
11565 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
11566 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
11567
115682002-11-01 Andreas Schwab <schwab@suse.de>
11569
11570 * editfns.c (Fmessage): Revert last change to properly handle %%.
11571
115722002-11-01 Stefan Monnier <monnier@cs.yale.edu>
11573
11574 * xmenu.c (unuse_menu_items): New fun.
11575 (menu_items_inuse): New var.
11576 (syms_of_xmenu): Initialize it.
11577 (init_menu_items): Use it to detect re-entrance.
11578 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
11579 (Fx_popup_menu): Remove spurious XSETFRAME.
11580
11581 * editfns.c (find_field): Make an exception for nil fields.
11582
115832002-11-01 Dave Love <fx@gnu.org>
11584
11585 * m/gec63.h: Deleted.
11586
115872002-10-31 Dave Love <fx@gnu.org>
11588
11589 * xterm.c (XTread_socket): Fix last change.
11590 (xaw_scroll_callback): Cast call_data to long to avoid warning.
11591
115922002-10-31 Stefan Monnier <monnier@cs.yale.edu>
11593
11594 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
11595
115962002-10-30 Stefan Monnier <monnier@cs.yale.edu>
11597
11598 * editfns.c (overlays_around, get_pos_property): New funs.
11599 (find_field): Use them.
11600 Also be careful not to modify POS before its last use.
11601 (Fmessage): Don't Fformat if there's nothing to format.
11602
116032002-10-30 Dave Love <fx@gnu.org>
11604
11605 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
11606 [HAVE_PTY_H]; Include pty.h.
11607
11608 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
11609
11610 * xterm.c (Qeql): Declare.
11611 (Vx_keysym_table): New.
11612 (syms_of_xterm): Initialize it.
11613 (XTread_socket): Use it. Deal with ASCII keysyms.
11614 (XSetIMValues) [HAVE_X11R6]: Prototype.
11615
11616 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
11617 (lispy_kana_keys): Comment out.
11618 (make_lispy_event) [XK_kana_A]: Comment out.
11619 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
11620 Fix sprintf call.
11621
11622 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
11623 regexp.h change).
11624 (TERMINFO, LIBS_TERMCAP): Define.
11625
11626 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
11627 (bcmp): Define conditional on HAVE_BCMP.
11628 (NO_SIOCTL_H): Don't define.
11629 (TIOCSIGSEND): Don't make conditional on IRIX6.
11630
11631 * s/sol2-5.h: Don't include strings.h.
11632 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
11633
11634 * s/irix6-0.h (IRIX6): Don't define.
11635 (bcopy, bcmp, bzero): Don't undef.
11636
11637 * s/irix6-5.h: Don't include strings.h.
11638 (IRIX6): Don't define.
11639 (bcopy, bcmp, bzero): Don't undef.
11640
11641 * syntax.c (Fforward_comment): Doc fix.
11642
116432002-10-29 Kim F. Storm <storm@cua.dk>
11644
11645 * process.c (Fsignal_process): Allow PROCESS to be specified by
11646 name in addition to pid (as integer or string).
11647
116482002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
11649
11650 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
11651 environments.
11652
116532002-10-27 Kim F. Storm <storm@cua.dk>
11654
11655 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
11656
11657 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
11658
11659 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
11660
11661 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
11662
116632002-10-26 Richard M. Stallman <rms@gnu.org>
11664
11665 * editfns.c (Fformat): Detect invalid format letters for floats.
11666
116672002-10-25 Kenichi Handa <handa@m17n.org>
11668
11669 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
11670 (x_set_title): Likewise.
11671
116722002-10-25 Juanma Barranquero <lektu@terra.es>
11673
11674 * macgui.h:
11675 * w32gui.h: Remove definition of XColor.
11676
11677 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
11678
116792002-10-24 Kim F. Storm <storm@cua.dk>
11680
11681 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
11682 Callers changed (supply dummy arg).
11683
11684 * lisp.h (get_window_cursor_type): Update prototype.
11685
11686 * w32term.c (x_display_and_set_cursor): Get active_cursor from
11687 get_window_cursor_type to track system caret.
11688
116892002-10-24 Kim F. Storm <storm@cua.dk>
11690
11691 * process.c (Fformat_network_address): New function.
11692 (syms_of_process): Defsubr it.
11693 (list_processes_1): Use it to format :local/:remote address if
f9711de4 11694 service/host is not set; before Emacs would crash in that case.
048addec
JD
11695 (Fmake_network_process): Don't use Ffind_operation_coding_system
11696 to setup coding system if host or service is not set.
11697
116982002-10-23 Juanma Barranquero <lektu@terra.es>
11699
11700 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
11701
11702 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
11703 COLORREF.
11704
11705 * macgui.h:
11706 * w32gui.h: Add definition of XColor.
11707
11708 * macfns.c:
11709 * w32fns.c:
11710 * xfaces.c: Remove definition of XColor.
11711
117122002-10-22 Stefan Monnier <monnier@cs.yale.edu>
11713
11714 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
11715
11716 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
11717 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
11718 window if it is dedicated.
11719 (Fshrink_window): Add preserve_before as was done for enlarge_window.
11720 (Vspecial_display_function): Update docstring.
11721
11722 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
11723 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
11724 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
11725
117262002-10-21 Stefan Monnier <monnier@cs.yale.edu>
11727
11728 * casefiddle.c (casify_region): Don't treat a prefix char as part
11729 of a word when at the beginning.
11730
117312002-10-17 Juanma Barranquero <lektu@terra.es>
11732
11733 * lread.c (syms_of_lread): Fix typos.
11734
117352002-10-17 Dave Love <fx@gnu.org>
11736
11737 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
11738
117392002-10-16 Richard M. Stallman <rms@gnu.org>
11740
11741 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
11742
117432002-10-14 Juanma Barranquero <lektu@terra.es>
11744
11745 * w16select.c (syms_of_win16select): Fix docstring for
11746 `selection-coding-system'.
11747
11748 * w32select.c (syms_of_w32select): Likewise.
11749
117502002-10-14 Stefan Monnier <monnier@cs.yale.edu>
11751
11752 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
11753 a backslash-quoted char.
11754 (scan_lists, scan_sexps_forward): Pacify the compiler.
11755
117562002-10-13 Richard M. Stallman <rms@gnu.org>
11757
11758 * window.c (window_scroll): Set immediate_quit.
11759
11760 * print.c (print): When backquote form is the car of a list,
11761 output in old style. Use old_backquote_output to output all
11762 comma forms inside it in old style too.
11763
11764 * buffer.h (struct buffer): Move `undo_list' down below `name'.
11765
117662002-10-11 Markus Rost <rost@math.ohio-state.edu>
11767
11768 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
11769 batch mode).
11770
11771 * lread.c (Fload): Doc fix (load-suffixes).
11772
117732002-10-10 Steven Tamm <steventamm@mac.com>
11774
11775 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
11776 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
11777 Also switch the default to Qnil from Qt.
11778
117792002-10-08 Kenichi Handa <handa@m17n.org>
11780
11781 * coding.c (code_convert_region): When we need more GAP for
11782 conversion, pay attention to the case that coding->produced is not
11783 greater than coding->consumed.
11784
117852002-10-07 Richard M. Stallman <rms@gnu.org>
11786
11787 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
11788
117892002-10-06 Andrew Choi <akochoi@shaw.ca>
11790
11791 * macmenu.c (mac_menu_show): Add j to count menu items; match
11792 menu_item_selection to it to find selected item.
11793
117942002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11795
11796 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
11797 cases. The correct fix is to pass ReparentNotify to Xt.
11798 The shell widget interprets ConfigureNotify differently depending
11799 on if it has been reparented or not.
11800
118012002-10-05 Markus Rost <rost@math.ohio-state.edu>
11802
11803 * editfns.c (Fformat_time_string): Doc fix.
11804
118052002-10-05 John Paul Wallington <jpw@shootybangbang.com>
11806
11807 * fns.c (Flength): Doc fix.
11808
118092002-10-04 Stefan Monnier <monnier@cs.yale.edu>
11810
11811 * keyboard.c (keyremap): New struct.
11812 (read_key_sequence): Use it: globally replace keytran_foo with
11813 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
11814 keytran_next and fkey_next to just `next'.
11815
118162002-10-04 Steven Tamm <steventamm@mac.com>
11817
11818 * macterm.c (keycode_to_xkeysym_table): Change return to be
11819 treated like an X keysym.
11820
118212002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11822
11823 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
11824 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
11825 This is to also handle x/y changes that occur because of a resize.
11826
118272002-10-02 John Paul Wallington <jpw@shootybangbang.com>
11828
11829 * frame.c (Vdelete_frame_functions): New variable.
11830 (syms_of_frame): Initialize and defvar it.
11831 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
11832 it when frame's `tooltip' parameter is non-nil.
11833
11834 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
11835
11836 * w32fns.c (x_create_tip_frame): Likewise.
11837
11838 * macfns.c (x_create_tip_frame): Likewise.
11839
118402002-09-30 Kenichi Handa <handa@m17n.org>
11841
11842 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
11843 -1 before calling ccl_driver.
11844
11845 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
11846 Only when it is non-nil, handle composition sequence.
11847 (setup_coding_system) <0>: Don't force composition handling.
11848
11849 * Makefile.in (lisp, shortlisp): Add utf-16.elc
11850
118512002-09-29 Richard M. Stallman <rms@gnu.org>
11852
11853 * search.c (Freplace_match): Adjust match data for the substitution
11854 just made in the buffer.
11855
11856 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
11857 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
11858
118592002-09-27 Richard M. Stallman <rms@gnu.org>
11860
11861 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
11862 (read_char): Use them. Do all exits thru the end of the function.
11863
118642002-09-27 Kenichi Handa <handa@etl.go.jp>
11865
11866 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
11867 is nil.
11868
118692002-09-26 Richard M. Stallman <rms@gnu.org>
11870
11871 * regex.h (__restrict_arr): Don't define if already defined.
11872
11873 * coding.c (run_pre_post_conversion_on_str):
11874 Save and restore Vdeactivate_mark.
11875
118762002-09-26 John Paul Wallington <jpw@shootybangbang.com>
11877
11878 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
11879
118802002-09-26 Kenichi Handa <handa@etl.go.jp>
11881
11882 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
11883 nonzero, try face's family at first. Otherwise try FAMILY at first.
11884 (choose_face_font): If C is a single byte char or latin-1, call
11885 try_font_list with PREFER_FACE_FAMILY 1.
11886
118872002-09-21 Richard M. Stallman <rms@gnu.org>
11888
11889 * window.c (select_window_1): Don't select frame.
11890 Set frame's selected window only when frame itself is selected.
11891 (Fselect_window): Doc fix.
11892
118932002-09-18 Kim F. Storm <storm@cua.dk>
11894
11895 * process.c (make-network-process): Doc fix (there is no
11896 network-server-log-function hook).
11897
118982002-09-18 Richard M. Stallman <rms@gnu.org>
11899
11900 * print.c (print): Clear out the unused parts of Vprint_number_table.
11901 (syms_of_print): Doc fix for `print-number-table'.
11902
11903 * unexelf.c (unexec): Undo previous change.
11904
119052002-09-17 Andreas Schwab <schwab@suse.de>
11906
11907 * m/alpha.h [LINUX]: Don't define DATA_START.
11908
119092002-09-16 Dave Love <fx@gnu.org>
11910
11911 * unexelf.c (unexec): Deal with .got, reinstating change from
11912 25-08-1999.
11913
119142002-09-13 Richard M. Stallman <rms@gnu.org>
11915
11916 * s/sol2-6.h (UNEXEC): Comment out definition.
11917
11918 * unexsol.c (unexec): Don't downcase first letter of error msg.
11919
11920 * xfaces.c (Fcolor_supported_p): Just one arg is required.
11921
119222002-09-12 Markus Rost <rost@math.ohio-state.edu>
11923
11924 * unexsol.c: Include buffer.h, charset.h, coding.h.
11925
119262002-09-11 Richard M. Stallman <rms@gnu.org>
11927
11928 * unexsol.c: Don't use report_file_error; do it by hand
11929 using dlerror.
11930
11931 * process.c (wait_reading_process_input, both versions):
11932 Before calling turn_on_atimers, call stop_polling.
11933
11934 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
11935
11936 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
11937 we go to too_near_end, call clear_glyph_matrix.
11938 (redisplay_window): After make_cursor_line_fully_visible,
11939 call clear_glyph_matrix and bypass `goto done'.
11940
11941 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
11942 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
11943
119442002-09-10 Richard M. Stallman <rms@gnu.org>
11945
11946 * fileio.c (Fdo_auto_save): Catch error making directory.
11947 Only call push_message if we need to.
11948 At the same time, make an unwind-protect to pop it.
11949 Rename local message_p to old_message_p.
11950 (do_auto_save_make_dir, do_auto_save_eh): New functions.
11951 (do_auto_save_unwind): Don't call pop_message.
11952
11953 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
11954
11955 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
11956
11957 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
11958
11959 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
11960
119612002-09-10 Stefan Monnier <monnier@cs.yale.edu>
11962
11963 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
11964 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
11965 (re_match_2_internal): Be more careful with infinite loops.
11966
119672002-09-10 Kim F. Storm <storm@cua.dk>
11968
11969 * macros.c (end_kbd_macro): New function.
11970 (Fend_kbd_macro): Use it.
11971
11972 * macros.h (end_kbd_macro): Declare extern.
11973
11974 * keyboard.c (Fdiscard_input): If defining keyboard macro,
11975 end and save it instead of discarding it.
11976
119772002-09-09 Markus Rost <rost@math.ohio-state.edu>
11978
11979 * s/sol2-6.h: Fix typo. Add comment.
11980
119812002-09-09 Richard M. Stallman <rms@gnu.org>
11982
11983 * regex.c (regnum_t): Use signed int, not unsigned int.
11984
11985 * s/sol2-6.h: New file.
11986
11987 * s/sol2-5.h (UNEXEC): Definition deleted.
11988
119892002-09-08 Kim F. Storm <storm@cua.dk>
11990
11991 * macros.c (executing_macro_index): Change type to EMACS_INT.
11992 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
11993
11994 * macros.h (executing_macro_index): Change type to EMACS_INT.
11995
119962002-09-06 Richard M. Stallman <rms@gnu.org>
11997
11998 * casetab.c (set_case_table): Make canon table point to eqv table.
11999
120002002-09-06 Juanma Barranquero <lektu@terra.es>
12001
12002 * coding.c (syms_of_coding): Fix spacing.
12003
12004 * composite.c (Fcompose_region_internal)
12005 (Fcompose_string_internal): Likewise.
12006
12007 * data.c (Flsh): Likewise.
12008
12009 * fontset.c (Fset_fontset_font): Likewise.
12010
12011 * macfns.c (Fx_server_max_request_size): Likewise.
12012
12013 * w16select.c (syms_of_win16select): Likewise.
12014
12015 * w32select.c (syms_of_w32select): Likewise.
12016
12017 * xselect.c (syms_of_xselect): Likewise.
12018
120192002-09-05 Richard M. Stallman <rms@gnu.org>
12020
12021 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
12022 call EXTEND_RANGE_TABLE and return a proper value.
12023 (set_image_of_range): Don't call set_image_of_range_1
12024 if no TRANSLATE or if range includes all of Latin-1.
12025 Only call it for the Latin-1 part of the range.
12026 For other cases, make two separate ranges,
12027 one for the original specified characters and one for
12028 their case-conversions.
12029
120302002-09-04 Richard M. Stallman <rms@gnu.org>
12031
12032 * s/sol2-5.h (UNEXEC): Use unexsol.o.
12033
12034 * window.c (displayed_window_lines): Correct for one-off bug
12035 in HEIGHT on non-window displays.
12036
12037 * regex.c (set_image_of_range_1): New function.
12038 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
12039 Return a value to indicate running out of memory.
12040 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
12041 (extend_range_table_work_area): New subroutine.
12042 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
12043 Different calling conventions, and used from set_image_of_range{,_1}.
12044 (IMMEDIATE_QUIT_CHECK): Definitions moved.
12045
120462002-09-04 Juanma Barranquero <lektu@terra.es>
12047
12048 * makefile.w32-in: All dependencies updated.
12049
120502002-09-01 Richard M. Stallman <rms@gnu.org>
12051
12052 * unexsol.c: New file.
12053
12054 * xfns.c (Qbox): Declare external, don't define.
12055
12056 * xdisp.c (redisplay_window) <force-start case>:
12057 If point is on semi-visible last line, reposition
12058 it at previous line.
12059
12060 * alloc.c (display_malloc_warning): Use display-warning.
12061 (malloc_warning_1): Function deleted.
12062
12063 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
12064
12065 * lread.c (read1): Handle #! by skipping the line.
12066
120672002-08-31 Richard M. Stallman <rms@gnu.org>
12068
12069 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
12070 Don't include LDFLAGS.
12071 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
12072
120732002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
12074
12075 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
12076 member of x_display_info unless we compile for some window system.
12077
120782002-08-31 Kim F. Storm <storm@cua.dk>
12079
12080 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
12081 (get_window_cursor_type): Don't use them.
12082 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
12083
120842002-08-30 Kenichi Handa <handa@etl.go.jp>
12085
12086 * xdisp.c (get_next_display_element): Fix previous change.
12087
120882002-08-30 Andrew Choi <akochoi@shaw.ca>
12089
12090 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
12091 (expose_window): Use it to fix the display of overlapping
12092 rows (merge code from xterm.c).
12093
12094 * macfns.c (Qbox): Add extern declaration.
12095
120962002-08-30 Juanma Barranquero <lektu@terra.es>
12097
12098 * w32fns.c (Qbox): Make extern.
12099 (syms_of_w32fns): Remove initialization of Qbox.
12100
121012002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
12102
12103 * xfns.c (Fx_open_connection): Fix error message.
12104
121052002-08-30 Kim F. Storm <storm@cua.dk>
12106
12107 The following changes consolidates the handling of the cursor
12108 type in xdisp.c, moving duplicate code and functionality from
12109 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
12110
12111 * frame.h (enum text_cursor_kinds): Consolidated here.
12112 Added DEFAULT_CURSOR value.
12113 (struct frame) <desired_cursor, cursor_width>
12114 <blink_off_cursor, blink_off_cursor_width>: New fields.
12115 Consolidated from output_x, output_w32 and output_mac structs.
12116 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12117 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
12118
12119 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
12120 Variables consolidated here.
12121 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
12122 (Vcursor_in_non_selected_windows): Renamed from
12123 cursor_in_non_selected_windows and changed to Lisp_Object.
12124 (syms_of_xdisp): Define and staticpro new and moved variables.
12125 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
12126 consolidated here. Recognize Qhollow setting.
12127 (set_frame_cursor_types): New function to set frame cursor types
12128 based on the frame parameters.
12129 (get_window_cursor_type): New function to calculate new cursor
12130 type and width for the specified window. Based on duplicated
12131 code consolidated here.
12132 Enhancements: cursor-in-non-selected-windows may be a cursor type,
12133 check buffer-local alternate-cursor-type and blink-cursor-alist
12134 before using built-in blink off methods.
12135
12136 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
12137
12138 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
12139 (get_specified_cursor_type, get_window_cursor_type)
12140 (set_frame_cursor_types): Added prototypes.
12141
12142 * macfns.c (x_specified_cursor_type): Removed.
12143 (x_set_cursor_type): Use set_frame_cursor_types.
12144 (Qbar, Qbox): Removed.
12145 (syms_of_macfns): Don't intern or staticpro them.
12146
12147 * macterm.c (x_specified_cursor_type): Remove prototype.
12148 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12149 (x_display_and_set_cursor): Use get_window_cursor_type.
12150 Remove unused local variables cursor_non_selected, active_cursor.
12151 Redraw cursor if hbar cursor width changes.
12152 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
12153
12154 * macterm.h (enum text_cursor_kinds): Removed.
12155 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
12156 <blink_off_cursor, blink_off_cursor_width>: Members removed.
12157 (FRAME_DESIRED_CURSOR): Macro removed.
12158
12159 * w32fns.c (Vblink_cursor_alist): Removed.
12160 (Qbar, Qhbar, Qbox, Qhollow): Removed.
12161 (syms_of_w32fns): Don't intern, staticpro, or define them.
12162 (x_specified_cursor_type): Removed.
12163 (x_set_cursor_type): Use set_frame_cursor_types.
12164
12165 * w32term.c (x_specified_cursor_type): Remove prototype.
12166 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12167 (x_display_and_set_cursor): Use get_window_cursor_type.
12168 Remove unused local variables cursor_off_state.
12169 Redraw cursor if hbar cursor width changes.
12170 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
12171
12172 * w32term.h (enum text_cursor_kinds): Removed.
12173 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
12174 <blink_off_cursor, blink_off_cursor_width>: Members removed.
12175 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12176 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
12177 (struct w32_display_info) <x_highlight_frame>: Renamed member from
12178 w32_highlight_frame.
12179
12180 * xfns.c (Vblink_cursor_alist): Removed.
12181 (Qbar, Qhbar, Qbox, Qhollow): Removed.
12182 (syms_of_xfns): Don't intern, staticpro, or define them.
12183 (x_specified_cursor_type): Removed.
12184 (x_set_cursor_type): Use set_frame_cursor_types.
12185
12186 * xterm.c (x_specified_cursor_type): Remove prototype.
12187 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12188 (x_display_and_set_cursor): Use get_window_cursor_type.
12189 Remove unused local variables cursor_off_state.
12190 Redraw cursor if hbar cursor width changes.
12191
12192 * xterm.h (enum text_cursor_kinds): Removed.
12193 (struct output_x) <current_cursor, desired_cursor, cursor_width>
12194 <blink_off_cursor, blink_off_cursor_width>: Members removed.
12195 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12196 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
12197 (x_specified_cursor_type): Remove prototype.
12198
121992002-08-28 Richard M. Stallman <rms@gnu.org>
12200
12201 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
12202 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
12203 (Vblink_cursor_alist): New variable.
12204 (syms_of_w32fns): Initialize and defvar it.
12205 (x_specified_cursor_type): Recognize Qbox for filled box.
12206 Exceptions are hollow boxes.
12207 (Qbox, Qhollow): New variables.
12208 (syms_of_w32fns): Initialize and staticpro them.
12209
12210 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
12211 New macros.
12212 (struct w32_output): New fields blink_off_cursor,
12213 blink_off_cursor_width.
12214 (FRAME_CURSOR_WIDTH): New macro.
12215
12216 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
12217 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
12218
12219 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
12220 for bar cursor.
12221
12222 * w32term.c (expose_overlaps): New function.
12223 (expose_window): Use it to fix the display of overlapping rows.
12224
122252002-08-28 Simon Josefsson <jas@extundo.com>
12226
12227 * xfns.c (Fx_open_connection): Improve help when X connection
12228 fails, xhost is insecure and xauth is better.
12229
122302002-08-28 Juanma Barranquero <lektu@terra.es>
12231
12232 * makefile.w32-in: Add missing dependencies on w32term.h and
12233 composite.h.
12234
12235 * emacs.c (USAGE1): Add missing newline.
12236
122372002-08-27 Andrew Choi <akochoi@shaw.ca>
12238
12239 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
12240
122412002-08-27 Richard M. Stallman <rms@gnu.org>
12242
12243 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
12244 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
12245 (Vblink_cursor_alist): New variable.
12246 (syms_of_xfns): Initialize and defvar it.
12247 (x_specified_cursor_type): Recognize Qbox for filled box.
12248 Exceptions are hollow boxes.
12249 (Qbox, Qhollow): New variables.
12250 (syms_of_xfns): Initialize and staticpro them.
12251
12252 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
12253 New macros.
12254 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
12255
12256 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
12257 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
12258
12259 * emacs.c (main): Handle --script.
12260 (USAGE1): Mention --script.
12261 (standard_args): Define sort order for --script.
12262
122632002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
12264
12265 * xdisp.c (redisplay_updating_p): Variable removed.
12266 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
12267 New variables.
12268 (init_iterator): Don't free realized faces if
12269 inhibit_free_realized_faces is set.
12270 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
12271 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
12272 initialize Qinhibit_free_realized_faces.
12273
12274 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
12275 when iterator is adding glyphs to a glyph matrix.
12276
122772002-08-27 Kenichi Handa <handa@etl.go.jp>
12278
12279 * xdisp.c (get_next_display_element): In unibyte case, don't use
12280 octal form for such eight-bit characters that can be converted to
12281 multibyte char.
12282
122832002-08-26 Kim F. Storm <storm@cua.dk>
12284
b6189c3b
KS
12285 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
12286 foreground and background colors. From Joe Buehler.
048addec
JD
12287
122882002-08-26 Miles Bader <miles@gnu.org>
12289
12290 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
12291
122922002-08-25 Andrew Choi <akochoi@shaw.ca>
12293
12294 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
12295 defined instead of MAC_OSX.
12296
12297 * s/darwin.h (select): Define select to sys_select only if
12298 HAVE_CARBON is defined.
12299 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
12300 (DONT_REOPEN_PTY): #def it.
12301
12302 * macterm.c (XTread_socket): Remove code to call
12303 SendEventToEventTarget for keys with command modifiers when
12304 mac_command_key_is_meta is nil.
12305
123062002-08-24 Andreas Schwab <schwab@suse.de>
12307
12308 * eval.c (Fdefvar): Fix last change.
12309
123102002-08-23 Richard M. Stallman <rms@gnu.org>
12311
12312 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
12313 Record variables in load history as (defvar . VAR).
12314 (Fdefvar): Don't record in load history if no initial value.
12315 (Qdefvar): New variable.
12316 (syms_of_eval): Init and staticpro it.
12317
12318 * lread.c (syms_of_lread): Doc fix.
12319 (build_load_history): Use Fmember to see if a definition
12320 is already in the Vload_history element.
12321
12322 * process.c (Fstart_process): Remove /: from program name.
12323
12324 * emacs.c (decode_env_path): Don't add /: if file name handler
12325 has a `safe-magic' property.
12326
12327 * callproc.c (Fcall_process): Remove /: from program name.
12328
123292002-08-23 Stefan Monnier <monnier@cs.yale.edu>
12330
12331 * regex.c (PATFETCH): Remove the translating fetch.
12332 (PATFETCH_RAW): Rename to PATFETCH.
12333 (set_image_of_range): New fun.
12334 (SET_RANGE_TABLE_WORK_AREA): Use it.
12335 (regex_compile): Don't translate the pattern chars so eagerly.
12336 Only do it when inserting an `exactn' bytecode or when handling
12337 a char-range.
12338 (mutually_exclusive_p): Avoid empty statement.
12339
123402002-08-22 Kim F. Storm <storm@cua.dk>
12341
12342 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
12343 end up on a partially visible line; this reverts a specific part
12344 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
12345 display error which has been reported several times now.
12346 However it introduces the problem that changes was supposed to fix.
12347 See my comments in the source if you want to debug this further.
12348
123492002-08-20 Kenichi Handa <handa@etl.go.jp>
12350
12351 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
12352
123532002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
12354
12355 * msdos.c (croak): Add `void' to definition.
12356
c1380aa6 12357 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
12358 Don't define them, they are defined in msdos.c.
12359
12360 * mem-limits.h [MSDOS]: Declare etext.
12361
12362 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
12363 `const' since CORRECT_DIR_SEPS modifies its target.
12364
123652002-08-19 Kim F. Storm <storm@cua.dk>
12366
2fb0ce67 12367 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
12368 KEEP-RECORD to avoid clearing lossage when we just want to clear
12369 the current key sequence (kmacro needs this).
12370
123712002-08-19 Kenichi Handa <handa@localhost>
12372
12373 * composite.c (run_composition_function): Call FUNC if it is fboundp.
12374
12375 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
12376 cons, return Qnil.
12377
123782002-08-17 Richard M. Stallman <rms@gnu.org>
12379
12380 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
12381
12382 * sysdep.c [!VMS]: Include sys/files.h.
12383
12384 * editfns.c (save_restriction_restore): Defend from unchained marker.
12385
12386 * buffer.c (overlays_at): Handle extending vec uniformly.
12387 (overlays_in): Handle extending vec from length 0 as in overlays_at.
12388
123892002-08-15 Andrew Choi <akochoi@shaw.ca>
12390
12391 * mac.c (init_mac_osx_environment): New function.
12392
12393 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
12394
123952002-08-14 Kim F. Storm <storm@cua.dk>
12396
12397 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
12398 executing macro before appending to it (when used from Lisp).
12399 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
12400 which is called prior to each iteration of macro (for kmacro.el).
12401 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
12402
12403 * lisp.h (Fexecute_kbd_macro): Update prototype.
12404
12405 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
12406
124072002-08-14 Kenichi Handa <handa@etl.go.jp>
12408
12409 * xselect.c (QUTF8_STRING): New variable.
12410 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
12411 (x_atom_to_symbol): Likewise.
12412 (x_get_local_selection): New argument local_request. If it is
12413 nonzero, call handler_fn with the second arg nil.
12414 (x_handle_selection_request): Call x_get_local_selection with
12415 local_request 0.
12416 (lisp_data_to_selection_data): Don't encode the string here.
12417 (Fx_get_selection_internal): Call x_get_local_selection with
12418 local_request 1.
12419 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
12420
12421 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
12422
12423 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
12424
124252002-08-13 Richard M. Stallman <rms@gnu.org>
12426
12427 * minibuf.c (Fminibufferp): New function.
12428 (syms_of_minibuf): Defsubr it.
12429 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
12430
124312002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
12432
12433 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
12434
124352002-08-12 Richard M. Stallman <rms@gnu.org>
12436
12437 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
12438 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
12439 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
12440 already.
12441
12442 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
12443
124442002-08-11 Andrew Choi <akochoi@shaw.ca>
12445
12446 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
12447 (Vmac_pass_command_to_system): New variable.
12448 (Vmac_pass_control_to_system): New variable.
12449 (do_mouse_moved): Check wp with is_emacs_window.
12450 (XTread_socket): Check window_ptr with is_emacs_window.
12451 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
12452 events back to Mac Toolbox for processing, depending on values of
12453 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
12454 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
12455 Vmac_pass_control_to_system.
12456
124572002-08-10 Kenichi Handa <handa@etl.go.jp>
12458
12459 * coding.c (unencodable_char_position): New function.
12460 (Funencodable_char_position): New function.
12461 (syms_of_coding): Defsubr Funencodable_char_position.
12462
124632002-08-10 Andrew Choi <akochoi@shaw.ca>
12464
12465 * mac.c (sys_select) [MAC_OSX]: New function.
12466
12467 * macterm.c (MakeMeTheFrontProcess): New function.
12468 (mac_initialize): Call MakeMeTheFrontProcess.
12469
12470 * s/darwin.h: Define select to sys_select.
12471
124722002-08-09 Richard M. Stallman <rms@gnu.org>
12473
12474 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
12475
124762002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
12477
12478 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
12479 end of the buffer.
12480
124812002-08-08 Ken Raeburn <raeburn@mit.edu>
12482
12483 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
12484
12485 * puresize.h (BASE_PURESIZE): Increase to 910000.
12486
124872002-08-08 Kenichi Handa <handa@etl.go.jp>
12488
12489 * coding.c (Ffind_operation_coding_system): For write-region, if
12490 VISIT is a filename, make it the target.
12491
124922002-08-07 Richard M. Stallman <rms@gnu.org>
12493
12494 * alloc.c (mark_object): Detect long lists for debugging.
12495 (mark_object_loop_halt): New variable.
12496
12497 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
12498
12499 * data.c (Fmake_variable_frame_local): Doc fix.
12500
125012002-08-01 David Ponce <david@dponce.com>
12502
12503 * w32menu.c (local_heap, local_alloc, local_free): New macros.
12504 (malloc_widget_value, free_widget_value)
12505 (w32_free_submenu_strings): Use them.
12506
12507 (push_submenu_start, push_submenu_end, push_left_right_boundary)
12508 (push_menu_pane, push_menu_item, single_keymap_panes)
12509 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
12510 (single_submenu, set_frame_menubar)
12511 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
12512
12513 (Fx_popup_menu): Don't show pop up menu until preceding one is
12514 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
12515
12516 * w32menu.c: Changes adapted from xmenu.c
12517 (set_frame_menubar): First parse all submenus,
12518 then make widget_value trees from them.
12519 Don't allocate any widget_value objects
12520 until we are done with the parsing.
12521 (parse_single_submenu): New function.
12522 (digest_single_submenu): New function.
12523 (single_submenu): Function deleted, replaced by those two.
12524
125252002-08-04 Andrew Choi <akochoi@shaw.ca>
12526
12527 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
12528 returns a valid window pointer before proceeding for keyDown and
12529 autoKey events.
12530
125312002-08-03 Andrew Choi <akochoi@shaw.ca>
12532
12533 * macterm.c (USE_CARBON_EVENTS): New macro.
12534 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
12535 (x_iconify_frame): Call CollapseWindow.
12536 (Vmac_reverse_ctrl_meta): New variable.
12537 (Vmac_wheel_button_is_mouse_2): New variable.
12538 (init_mac_drag_n_drop): New function.
12539 (mac_do_receive_drag): New function.
12540 (mac_handle_service_event): New function.
12541 (init_service_handler): New function.
12542 (mac_to_emacs_modifiers): New function.
12543 (mac_event_to_emacs_modifiers): New function.
12544 (mac_get_mouse_btn): New function.
12545 (mac_convert_event_ref): New function.
12546 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
12547 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
12548 mac_get_mouse_btn.
12549 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
12550
12551 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
12552 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
12553 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
12554 TOOL_BAR_EVENT for MAC_OS as well.
12555 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
12556 as for WINDOWS_NT.
12557 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
12558
12559 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
12560
125612002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
12562
12563 * xdisp.c (forward_to_next_line_start): Fix a condition that
12564 lead to a newline being skipped.
12565
125662002-08-02 Andrew Choi <akochoi@shaw.ca>
12567
12568 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
12569
125702002-08-01 Richard M. Stallman <rms@gnu.org>
12571
12572 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
12573
125742002-07-31 Andrew Choi <akochoi@shaw.ca>
12575
12576 * macfns.c: #undef init_process before #define-ing it.
12577
12578 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
12579 HAVE_CARBON is defined.
12580
125812002-07-31 Richard M. Stallman <rms@gnu.org>
12582
12583 * xmenu.c (set_frame_menubar): First parse all submenus,
12584 then make widget_value trees from them.
12585 Don't allocate any widget_value objects
12586 until we are done with the parsing.
12587 (parse_single_submenu): New function.
12588 (digest_single_submenu): New function.
12589 (single_submenu): Function deleted, replaced by those two.
12590
125912002-07-30 Juanma Barranquero <lektu@terra.es>
12592
12593 * w32proc.c (syms_of_ntproc): Fix docstring of
12594 `w32-get-true-file-attributes'.
12595
125962002-07-28 Richard M. Stallman <rms@gnu.org>
12597
12598 * s/hpux8.h (HPUX8): Define this before including hpux.h.
12599 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
12600
12601 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
12602
12603 * keyboard.c (make_lispy_event):
12604 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
12605 Explicitly clear up_modifier in event->modifiers.
12606
126072002-07-27 Richard M. Stallman <rms@gnu.org>
12608
12609 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
12610
12611 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
12612 for bar cursor.
12613
126142002-07-26 Kenichi Handa <handa@etl.go.jp>
12615
12616 * coding.c (detect_coding_iso2022): While checking a byte sequence
12617 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
12618 it in the normal loop.
12619
126202002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
12621
12622 * xterm.c (expose_overlaps): New function.
12623 (expose_window): Use it to fix the display of overlapping rows.
12624
12625 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
12626
126272002-07-23 Ken Raeburn <raeburn@gnu.org>
12628
12629 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
12630 since it only depends on XUINT.
12631
12632 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
12633 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
12634 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
12635 Macros deleted.
3947677c 12636
77d1daf2
AS
12637 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
12638 its value over other approaches.
12639 * sysdep.c (start_of_data): Don't define the function if a macro
12640 form has been defined.
8a8e19a3 12641
048addec
JD
126422002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
12643
12644 * xdisp.c (redisplay_updating_p): New variable.
12645 (init_iterator): Don't free realized faces when
12646 redisplay_updating_p is set.
12647 (redisplay_internal): Set redisplay_updating_p while updating
12648 the display.
12649
126502002-07-23 Richard M. Stallman <rms@gnu.org>
12651
12652 * editfns.c (Fmessage): Treat "" like nil.
12653
126542002-07-23 Kenichi Handa <handa@etl.go.jp>
12655
12656 * xdisp.c (face_before_or_after_it_pos):
12657 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
12658
126592002-07-22 Juanma Barranquero <lektu@terra.es>
12660
12661 * callproc.c (init_callproc) [DOS_NT]:
12662 Initialize Vshared_game_score_directory to nil.
12663 (syms_of_callproc) [DOS_NT]: Likewise.
12664
126652002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
12666
12667 * xdisp.c (display_line): Replace an abort with xassert.
12668
126692002-07-21 Richard M. Stallman <rms@gnu.org>
12670
12671 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
12672 and END_UNCHANGED when setting buffer_unchanged_p.
12673 Use current_matrix_up_to_date_p to decide whether to use
12674 try_cursor_movement.
12675
12676 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
12677
12678 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
12679
12680 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
12681 Set to nil if dir does not exist.
12682 (syms_of_callproc): Init unconditionally and simply.
12683
12684 * buffer.c (Fbuffer_list): Doc fix.
12685
126862002-07-21 Ken Raeburn <raeburn@gnu.org>
12687
12688 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
12689
12690 * buffer.c (mmap_realloc): When shrinking, make sure number of
12691 pages to unmap is rounded towards zero.
12692
12693 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
12694 (XSETINT): Deleted.
12695
12696 * m/att3b.h (XINT): Don't define.
12697 (VALBITS, VALMASK, XTYPE): Deleted.
12698 (DATA_SEG_BITS): Define.
12699 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
12700 ARRAY_MARK_FLAG): Deleted.
12701 (DATA_SEG_BITS): Define.
12702 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
12703 (DATA_SEG_BITS): Define.
12704
127052002-07-20 Richard M. Stallman <rms@gnu.org>
12706
12707 * print.c (print_error_message): New args CONTEXT and CALLER.
12708 Calls changed.
12709
12710 * lisp.h (print_error_message): Declare new args.
12711
12712 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
12713 and CONTEXT to print_error_message, don't print them here.
12714 For a Quit, don't use Vsignaling_function.
12715 Call message_log_maybe_newline.
12716
12717 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
12718
127192002-07-20 Kim F. Storm <storm@cua.dk>
12720
12721 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
12722
127232002-07-19 Ken Raeburn <raeburn@gnu.org>
12724
12725 * bytecode.c (struct byte_stack): Pointers into byte string now
12726 point to const.
12727 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
12728 const.
12729 * charset.h (BCOPY_SHORT): Source pointer now points to const.
12730 * coding.c (encode_eol, detect_coding, detect_eol):
12731 (decode_coding, encode_coding, detect_coding_system):
12732 Source strings now treated as const.
12733 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
12734 modify Lisp string contents.
12735 * coding.h (decode_coding, encode_coding, detect_coding,
12736 detect_eol): Declarations updated.
12737 * composite.c (compose_chars_in_text): Treat Lisp string contents
12738 as const.
12739 * dispnew.c (safe_bcopy): Source pointer now points to const.
12740 * lisp.h (STRING_COPYIN): New macro.
12741 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
12742 (internal_with_output_to_temp_buffer): Declarations updated.
12743 * print.c (temp_output_buffer_setup):
12744 (internal_with_output_to_temp_buffer): Buffer name argument is now
12745 pointer to const.
12746 * sound.c (struct sound_device): Function pointer field "write"
12747 buffer argument now points to const.
12748 (vox_write): Buffer argument points to const.
12749 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
12750 contents as const.
12751 * sysdep.c (emacs_write): Buffer pointer now const.
12752 * term.c (encode_terminal_code): Buffer pointer now const.
12753 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
12754 (x_face_list_fonts, x_update_menu_appearance):
12755 (hash_string_case_insensitive): Treat Lisp string contents as const.
12756
127572002-07-19 Juanma Barranquero <lektu@terra.es>
12758
048addec
JD
12759 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
12760
12761 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
12762 (Ffile_name_as_directory): Fix argument name in docstring.
12763 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
12764
127652002-07-18 Richard M. Stallman <rms@gnu.org>
12766
12767 * data.c (Fdefalias): Doc fix.
12768
127692002-07-17 Dave Love <fx@gnu.org>
12770
12771 * intervals.h (text_property_stickiness): Use P_.
12772
12773 * ccl.c: Remove `emacs' conditionals.
12774 (ccl_backtrace_table): Fix size spec.
12775 (ccl_driver): Fix type errors.
12776
127772002-07-16 Ken Raeburn <raeburn@gnu.org>
12778
12779 * alloc.c (xstrdup, make_string, make_unibyte_string)
12780 (make_multibyte_string, build_string): String pointer args now
12781 point to const.
12782 * charset.c (find_charset_in_text, c_string_width):
12783 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
12784 * fileio.c (report_file_error):
12785 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
12786 (count_combining_before, count_combining_after, insert_1_both):
12787 (insert, insert_and_inherit, insert_string):
12788 (insert_before_markers, insert_before_markers_and_inherit):
12789 * lread.c (intern, oblookup, hash_string):
12790 * minibuf.c (temp_echo_area_glyphs):
12791 * search.c (fast_c_string_match_ignore_case):
12792 * sysdep.c (emacs_open, set_file_times):
12793 * xfaces.c (xstricmp):
12794 * xdisp.c (store_frame_title, string_char_and_length):
12795 (message_dolog, message2, message2_nolog, set_message): Likewise.
12796 (set_message_1): Cast message string argument to const pointer.
12797 * editfns.c (general_insert_function): Insertion function now
12798 takes pointer to const for input data.
12799 * charset.h (find_charset_in_text, c_string_width):
12800 (parse_str_as_multibyte): Declarations updated.
12801 * dispextern.h (xstricmp): Declaration updated.
12802 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
12803 (count_size_as_multibyte, count_combining_before):
12804 (count_combining_after, insert_1, insert_1_both, message_dolog):
12805 (insert, insert_and_inherit, insert_before_markers)
12806 (insert_before_markers_and_inherit, set_message, message2):
12807 (message2_dolog, build_string, make_string, make_unibyte_string):
12808 (make_multibyte_string, intern, oblookup, report_file_error):
12809 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
12810 (emacs_open, xstrdup): Declarations updated.
12811 * systime.h (set_file_times): Declaration updated.
12812
12813 * charset.c (find_charset_in_text, lisp_string_width): Use const
12814 for pointer to lisp string data.
12815 * charset.h (FETCH_STRING_CHAR_ADVANCE):
12816 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
12817 * coding.c (Ffind_coding_systems_region_interval):
12818 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
12819 (Fmake_directory_internal, Fdelete_directory):
12820 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
12821 * fontset.c (font_family_registry, fs_query_fontset):
12822 (list_fontsets):
12823 * frame.c (Fframe_parameter):
12824 * keyboard.c (cmd_error_internal):
12825 * keymap.c (Fdescribe_buffer_bindings):
12826 * lread.c (complete_filename_p, openp):
12827 * minibuf.c (Fminibuffer_complete_word):
12828 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
12829 (face_before_or_after_it_pos, next_element_from_string):
12830 (get_overlay_arrow_glyph_row, display_mode_element):
12831 (decode_mode_spec_coding):
12832 * xterm.c (same_x_server): Likewise.
12833
12834 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
12835 settings of non-existent fields.
12836
12837 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
12838 copy a lisp value.
12839
12840 * lread.c (Fintern_soft): Use string macros instead of
12841 Lisp_String fields.
12842 * keyboard.c (echo_char, parse_modifiers_uncached):
12843 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
12844 * textprop.c (validate_interval_range, interval_of): Likewise.
12845
12846 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
12847
12848 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12849 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
12850 XSTRING()->size_byte.
12851
12852 * lisp.h (SDATA, SREF): Produce rvalue.
12853 (SSET): New macro.
12854 * alloc.c (make_event_array): Use SSET for storing into a string.
12855 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
12856 a string.
12857 * casefiddle.c (casify_object): Use SSET.
12858 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12859 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
12860 address of string contents.
12861 * data.c (Faref): Use SDATA.
12862 (Faset): Use SDATA, SSET.
12863 * dired.c (directory_files_internal): Use SSET.
12864 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
12865 (Fread_file_name): Use SREF, SSET.
12866 * fns.c (concat): Use SSET.
12867 (concat, Fdelete): Use SDATA.
12868 * insdel.c (insert_from_string_1): Use SDATA.
12869 * keyboard.c (Fevent_convert_list): Use SREF.
12870 * lread.c (Fload): Use SDATA, SSET.
12871 * macfns.c (validate_x_resource_name): Use SSET.
12872 * process.c (status_message): Use SSET.
12873 * search.c (wordify): Use SDATA.
12874 (Freplace_match): Use SREF.
12875 * w32fns.c (validate_x_resource_name): Use SSET.
12876 * xfns.c (validate_x_resource_name): Use SSET.
12877 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
12878
128792002-07-16 Richard M. Stallman <rms@gnu.org>
12880
12881 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
12882
12883 * xdisp.c (reconsider_clip_changes):
12884 Don't test prevent_redisplay_optimizations_p.
12885 (redisplay_internal): Test prevent_redisplay_optimizations_p
12886 along with clip_changed in some cases.
12887 (try_window_id): Likewise.
12888 (redisplay_window): New local var buffer_unchanged_p.
12889
12890 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
12891
12892 * process.c (create_process): Test USG_SUBTTY_WORKS.
12893 (process_send_signal): Clean up handling of GID.
12894 Detect errors in ioctls meant to set GID.
12895
12896 * window.c (temp_output_buffer_show):
12897 Don't set prevent_redisplay_optimizations_p.
12898
128992002-07-15 Juanma Barranquero <lektu@terra.es>
12900
12901 * eval.c (Fdefvaralias): Add docstring argument.
12902
129032002-07-15 Ken Raeburn <raeburn@gnu.org>
12904
12905 * lisp.h (STRING_INTERVALS): Produce rvalue.
12906 (STRING_SET_INTERVALS): New macro.
12907 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
12908 * fns.c (Fstring_as_multibyte): Likewise.
12909 * intervals.c (balance_possible_root_interval, delete_interval)
12910 (create_root_interval, copy_intervals_to_string): Likewise.
12911 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
12912 instead of 0.
12913
129142002-07-14 Ken Raeburn <raeburn@gnu.org>
12915
12916 * lisp.h (STRING_SET_CHARS): New macro.
12917 (SCHARS, SBYTES): Produce rvalues.
12918 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
12919 * fns.c (concat): Likewise.
12920 * lread.c (read_vector): Likewise.
12921
3419757d 12922 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 12923 (STRING_SET_UNIBYTE): New macro.
3419757d 12924 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
12925 length of -1) changed to use STRING_SET_UNIBYTE.
12926 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
12927 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
12928 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
12929 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
12930 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
12931 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
12932 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
12933 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
12934 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
12935 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
12936 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
12937 STRING_BYTES or indirection changed to SCHARS, SBYTES,
12938 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
12939 unchanged for now.
12940
129412002-07-13 Kim F. Storm <storm@cua.dk>
12942
12943 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
12944
129452002-07-12 Richard M. Stallman <rms@gnu.org>
12946
12947 * fileio.c (Fwrite_region): Doc fix.
12948
12949 * print.c (print_error_message): Don't handle Vsignaling_function here.
12950
12951 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
12952 (command_loop_1): Avoid certain actions after memory-full error.
12953
12954 * eval.c (Fsignal): Don't call cancel_hourglass.
12955 For a memory-full error, don't call Vsignal_hook_function
12956 and don't set Vsignaling_function.
12957
12958 * process.c (process_send_signal): Add abort call.
12959
129602002-07-11 Markus Rost <rost@math.ohio-state.edu>
12961
12962 * keymap.c (Fkey_binding): Fix typo.
12963
129642002-07-11 Richard M. Stallman <rms@gnu.org>
12965
12966 * alloc.c (Vmemory_full): New variable.
3419757d 12967 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
12968 Uses changed.
12969 (syms_of_alloc): Defvar them.
12970 (memory_full, buffer_memory_full): Set Vmemory_full.
12971
12972 * lisp.h (Vmemory_full): Add declaration.
12973 (current_column, indented_beyond_p): Change declaration.
12974
12975 * indent.c (last_known_column): Declare as double, not float.
12976 (current_column, current_column_1, string_display_width)
12977 (position_indentation): Return `double'.
12978 (indented_beyond_p): Arg `column' is `double'. Callers changed.
12979
12980 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
12981 (back_to_previous_visible_line_start)
12982 (reseat_at_next_visible_line_start, next_element_from_buffer):
12983 Use `double', not `float', when calling indented_beyond_p.
12984
3419757d 12985 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
12986
12987 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
12988
129892002-07-11 Juanma Barranquero <lektu@terra.es>
12990
12991 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
12992 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
12993 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
12994 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
12995 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
12996 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
12997
129982002-07-10 Juanma Barranquero <lektu@terra.es>
12999
d814862a
JB
13000 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
13001 All callers changed.
048addec
JD
13002
130032002-07-09 Stefan Monnier <monnier@cs.yale.edu>
13004
13005 * data.c (Fdefalias): Add an optional `docstring' argument.
13006 (set_internal, Fsetq_default): Use XCAR/XCDR.
13007
13008 * composite.c (HASH_VALUE, HASH_KEY):
13009 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
13010
130112002-07-09 Kenichi Handa <handa@etl.go.jp>
13012
13013 * callproc.c (Fcall_process): Fix previous change.
13014
130152002-07-07 Stefan Monnier <monnier@cs.yale.edu>
13016
13017 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
13018 Add support for hash-tables.
13019 (Ftry_completion): Return t even if the string appears multiple times.
13020
13021 * fns.c (Fnconc): Use XCDR.
13022 (Fprovide): Use CONSP and XCDR.
13023 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
13024 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
13025 (Fmake_hash_table): Accept `:size nil'.
13026 (Fmakehash): Delete: moved to subr.el.
13027 (syms_of_fns): Don't defsubr makehash.
13028
13029 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
13030 (HASH_TABLE_SIZE): Move from fns.c.
13031
130322002-07-07 Richard M. Stallman <rms@gnu.org>
13033
13034 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
13035 Instead just return 0 when there is something to be done.
13036 (try_scrolling): If make_cursor_line_fully_visible returns 0,
13037 retry scrolling as if cursor were off the bottom.
13038 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
13039 return CURSOR_MOVEMENT_MUST_SCROLL.
13040 (redisplay_window): If make_cursor_line_fully_visible returns 0,
13041 go to try_to_scroll.
13042
13043 * buffer.c (Fbuffer_local_value): Store current value into its binding
13044 so we get the up-to-date value for the binding that is loaded.
13045
13046 * eval.c (Fdefmacro): Doc fix.
13047
130482002-07-05 Dave Love <fx@gnu.org>
13049
13050 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
13051 correctly.
13052
13053 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
13054 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
13055 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
13056 CCL_LookupCharConstTbl.
13057 (syms_of_ccl): Defvar translation-hash-table-vector.
13058
130592002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13060
13061 * xdisp.c: Remove unused variable `face'.
13062
130632002-07-04 Juanma Barranquero <lektu@terra.es>
13064
13065 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
13066 obsolescence information.
13067
130682002-07-03 Andrew Choi <akochoi@shaw.ca>
13069
13070 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
13071 pattern. Search cache first.
13072 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
13073 for Japanese font.
13074 (XLoadQueryFont): Use it.
13075
130762002-07-02 Richard M. Stallman <rms@gnu.org>
13077
13078 * keymap.c (Fdefine_key): Doc fix.
13079
13080 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
13081
130822002-07-02 Juanma Barranquero <lektu@terra.es>
13083
13084 * keymap.c (syms_of_keymap): Fix typo.
13085
130862002-07-01 Andrew Choi <akochoi@shaw.ca>
13087
13088 * s/darwin.h: Define POSIX_SIGNALS.
13089
13090 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
13091 and FSRefMakePath to convert FSSpec returned with Apple Event to
13092 Posix pathname.
13093 (mac_initialize) [TARGET_API_MAC_CARBON]:
13094 Call init_required_apple_events and disable the `Quit' menu item
13095 provided automatically by the Carbon Toolbox.
13096
130972002-07-01 Dave Love <fx@gnu.org>
13098
13099 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
13100 for K&R.
13101
13102 * xterm.c: Fix prototype for K&R.
13103
13104 * term.c (costs_set): Declare static, non-initialized for pcc.
13105
131062002-07-01 Richard M. Stallman <rms@gnu.org>
13107
13108 * keyboard.c (timer_last_idleness_start_time): New variable.
13109 (timer_start_idle): Set that.
13110 (read_key_sequence): Use that to reset timer_idleness_start_time
13111 to previous value.
13112
13113 * window.c (Frecenter): With arg, set optional_new_start.
13114
13115 * xdisp.c (redisplay_internal): Make optional_new_start really work.
13116
13117 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
13118 buffer for completion.
13119
131202002-06-29 Ken Raeburn <raeburn@gnu.org>
13121
13122 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
13123
131242002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13125
13126 * keyboard.c (readable_filtered_events): New function that filters
13127 FOCUS_IN_EVENT depending on parameter.
13128 (readable_events): Calls readable_filtered_events, not filtering
13129 FOCUS_IN_EVENT.
13130 (get_filtered_input_pending): New function, filtering parameter passed
13131 to readable_filtered_events.
13132 (get_input_pending): Calls get_filtered_input_pending, not filtering
13133 FOCUS_IN_EVENT.
13134 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
13135 FOCUS_IN_EVENT.
13136
13137 * xterm.h (struct x_output): Add focus_state.
13138
13139 * xterm.c (x_focus_changed): New function.
13140 (x_detect_focus_change): New function.
13141 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
13142 EnterNotify and LeaveNotify to track X focus changes.
13143
131442002-06-28 Andreas Schwab <schwab@suse.de>
13145
13146 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
13147
131482002-06-27 Kim F. Storm <storm@cua.dk>
13149
13150 * xdisp.c: (mode_line_string_list, mode_line_string_face)
13151 (mode_line_string_face_prop): New variables.
13152 (store_mode_line_string): New function.
13153 (display_mode_element): Use store_mode_line_string to
13154 add mode-line string elements to mode_line_string_list
13155 when mode_line_string_list is non-nil.
13156 (Fformat_mode_line): Now returns propertized string by
13157 default. New arg NO-PROPS to ignore properties.
13158 (decode_mode_spec): Only add two dashes for %- in propertized
13159 mode-line string.
13160 (syms_of_xdisp): Init and staticpro mode_line_string_list.
13161
131622002-06-27 Stefan Monnier <monnier@cs.yale.edu>
13163
13164 * minibuf.c (minibuffer_completion_contents): Add return type.
13165
131662002-06-27 Juanma Barranquero <lektu@terra.es>
13167
13168 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
13169
131702002-06-26 Juanma Barranquero <lektu@terra.es>
13171
13172 * fileio.c (read_file_name_cleanup): Add missing return.
13173
131742002-06-26 Richard M. Stallman <rms@gnu.org>
13175
13176 * window.c (Frecenter): Don't set force_start flag.
13177
13178 * minibuf.c (do_completion, Fminibuffer_complete_word)
13179 (Fminibuffer_completion_help): Complete just the text before point.
13180 (minibuffer_completion_contents): New function.
13181
13182 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
13183
13184 * frame.c (frames_bury_buffer): Function deleted.
13185
131862002-06-25 Miles Bader <miles@gnu.org>
13187
13188 * callint.c (Fcall_interactively): When checking to see if doprnt hit
13189 the end of callint_message, allow for a terminating '\0'.
13190
131912002-06-24 Juanma Barranquero <lektu@terra.es>
13192
13193 * w32select.c: Include composite.h
13194
13195 * w16select.c: Likewise.
13196
131972002-06-24 Kenichi Handa <handa@etl.go.jp>
13198
13199 * callproc.c (Fcall_process): If code detection is necessary,
13200 call detect_coding directly here.
13201
13202 * coding.c (detect_eol): Preserve coding->cmp_data.
13203
13204 * w16select.c (Fw16_get_clipboard_data):
13205 * w32fns.c (w32_to_x_font):
13206 * w32select.c (Fw32_get_clipboard_data):
13207 * xselect.c (selection_data_to_lisp_data):
13208 * xterm.c (XTread_socket): Disable composition handling.
13209
132102002-06-24 Stefan Monnier <monnier@cs.yale.edu>
13211
13212 * print.c (temp_output_buffer_setup): Kill all local variables.
13213
132142002-06-22 Stefan Monnier <monnier@cs.yale.edu>
13215
13216 * lread.c (Fread): Remove redundant and imprecise declaration.
13217
13218 * xfns.c (check_x_display_info): Use check_x_frame.
13219
13220 * .gdbinit (xprintsym): Use the new `xname' field.
13221 (xsymbol): Use it.
13222
132232002-06-22 Jason Rumney <jasonr@gnu.org>
13224
13225 * w32fns.c (file_dialog_callback): New function.
13226 (Fx_file_dialog): Allow selecting directories as well as files.
13227
132282002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13229
13230 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 13231 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
13232
132332002-06-17 Andrew Choi <akochoi@shaw.ca>
13234
13235 * macterm.c (mac_scroll_area): Set foreground and backcolor to
13236 black and white before scrolling. Restore frame background and
13237 foreground color after scrolling.
13238 (do_window_update): Call XClearWindow before calling expose_frame.
13239 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
13240 FRAME_FOREGROUND_PIXEL of frame.
13241
13242 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
13243 test Mac command key as <ALT> key.
13244
132452002-06-17 Stefan Monnier <monnier@cs.yale.edu>
13246
13247 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
13248
13249 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
13250 Lookup keys in function-key-map immediately so that key-translation-map
13251 can be applied earlier.
13252 Remove function_key_possible and key_translation_possible, replaced
13253 by checking `keytran_start < t'.
13254
13255 * .gdbinit (xsymbol): Use the new `xname' field.
13256
132572002-06-17 Andrew Choi <akochoi@shaw.ca>
13258
13259 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
13260 test Mac command key as <ALT> key.
13261
13262 * mac.c (do_applescript): Call initialize_applescript if necessary
13263 when first called. Dispose of result_desc only when there is no error.
13264 (Fdo_applescript): Use %d format specifier instead of %ld.
13265
132662002-06-16 Andrew Choi <akochoi@shaw.ca>
13267
13268 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
13269 of FrontWindow for cases keyDown and autoKey.
13270
13271 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
13272 Vdefault_fontset to Monaco with mac-roman coding.
13273
13274 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
13275 init_process before and after inclusion of Carbon/Carbon.h, resp.
13276
13277 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
13278 cursor_gc.
13279 (add_font_name_table_entry): New function.
13280 (init_font_name_table): Use add_font_name_table_entry; add italic,
13281 bold, and bold-italic entries for truetype fonts.
13282
13283 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
13284 for Mac too.
13285 (try_font_list) [MAC_OS]: If no font matches given registry, try
13286 fonts with any registry matching face_family.
13287 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
13288
13289 * s/darwin.h: If autoconf detects the Ncurses library, define
13290 LIBS_TERMCAP to -lncurses to use it.
13291
132922002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
13293
13294 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
13295
132962002-06-15 Richard M. Stallman <rms@gnu.org>
13297
13298 * window.c (Fset_window_configuration): Explicitly preserve
13299 the point value that new_current_buffer had at the start.
13300
133012002-06-14 Juanma Barranquero <lektu@terra.es>
13302
13303 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
13304 Fix typos.
13305
133062002-06-14 Kim F. Storm <storm@cua.dk>
13307
13308 * insdel.c (insert_1_both, insert_from_string_1)
13309 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
13310 insert happened in the end_unchanged region. Otherwise, the
13311 redisplay may be confused and duplicate the last line in the
13312 buffer [seen after save-buffer when require-final-newline==t].
13313
133142002-06-13 Jason Rumney <jasonr@gnu.org>
13315
13316 * w32.c (init_environment): Remove EMACSLOCKDIR.
13317 (stat): Swap _S_IFDIR and _S_IFREG.
13318
133192002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13320
13321 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
13322 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
13323 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
13324 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
13325 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
13326 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
13327 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
13328 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
13329 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
13330 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
13331 SELECTION_REQUEST_EVENT, selection_clear_event to
13332 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
13333 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
13334 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
13335 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
13336 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
13337 no_event to NO_EVENT.
13338
133392002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13340
13341 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
13342
133432002-06-12 Stefan Monnier <monnier@cs.yale.edu>
13344
13345 * intervals.c (textget): Don't forget to `return'.
13346 (lookup_char_property): Use XCAR/XCDR.
13347
133482002-06-12 Juanma Barranquero <lektu@terra.es>
13349
13350 * xdisp.c (Fformat_mode_line): Fix typo.
13351
133522002-06-12 Kim F. Storm <storm@cua.dk>
13353
13354 * xdisp.c (Fformat_mode_line): New function.
13355 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
13356 (store_frame_title_char, store_frame_title): Use unconditionally.
13357 (init_xdisp): Defsubr Fformat_mode_line.
13358 Initialize frame_title_buf etc. unconditionally.
13359
133602002-06-11 Stefan Monnier <monnier@cs.yale.edu>
13361
13362 * keyboard.c (read_key_sequence):
13363 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
13364 things through those maps after downcasing events.
13365 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
13366 applies after function-key-map.
13367 Make sure that keytran can be done in the middle in the sequence.
13368 Be careful not to throw away events past the one we downcase.
13369
13370 * lread.c (read_integer): Remove unused var `tem'.
13371 (read1): Fix int/Lisp_Object mixup.
13372
13373 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
13374
133752002-06-11 Richard M. Stallman <rms@gnu.org>
13376
13377 * keyboard.c (readable_events): Ignore any number of
13378 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
13379
133802002-06-09 Miles Bader <miles@gnu.org>
13381
13382 * xfaces.c (Ftty_supports_face_attributes_p): New function.
13383 (parse_rgb_list, tty_lookup_color): New functions.
13384 (tty_defined_color): Use `tty_lookup_color' to do all the work.
13385 (color_distance, Fcolor_distance): New functions.
13386 (TTY_SAME_COLOR_THRESHOLD): New macro.
13387 (Qtty_color_standard_values): New variable.
13388 (syms_of_xfaces): Initialize new vars & functions.
13389
133902002-06-08 Colin Walters <walters@verbum.org>
13391
13392 * textprop.c (Vchar_property_alias_alist): New variable.
13393 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
13394
13395 * intervals.c (lookup_char_property): New function for looking up
13396 overlay and text properties, created from textget.
13397 (textget): Use it.
13398
13399 * intervals.h (lookup_char_property): Declare.
13400 (Vchar_property_alias_alist): Declare.
13401
13402 * buffer.c (Foverlay_get): Use lookup_char_property.
13403
134042002-06-07 Sam Steingold <sds@gnu.org>
13405
13406 * xselect.c (lisp_data_to_selection_data): Fix last change:
13407 *data_ret is not a Lisp string, while unibyte_string is.
13408
134092002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
13410
13411 * xselect.c (lisp_data_to_selection_data): Fix last change:
13412 set size_ret.
13413
134142002-06-07 Andreas Schwab <schwab@suse.de>
13415
13416 * m/amdx86-64.h: New file.
13417
134182002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
13419
13420 * fns.c (Fstring_make_unibyte): Doc fix.
13421
13422 * xselect.c (lisp_data_to_selection_data): If the requested type
13423 is STRING, call string_make_unibyte to encode the selected text
13424 as a string.
13425
13426 * window.c (Fset_window_hscroll): Doc fix.
13427
134282002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13429
13430 * fileio.c (choose_write_coding_system):
13431 Call select-safe-coding-system properly.
13432
134332002-06-03 Richard M. Stallman <rms@gnu.org>
13434
13435 * xdisp.c (message_with_string): Error if STRING is not a string.
13436
13437 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
13438
13439 * fileio.c (choose_write_coding_system): Pass FILE arg to
13440 Vselect_safe_coding_system_function.
13441
134422002-06-03 Ken Raeburn <raeburn@gnu.org>
13443
13444 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
13445
134462002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
13447
13448 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
13449 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
13450 * keymap.c (describe_command): Likewise.
13451 * minibuf.c (read_minibuf): Likewise.
13452
13453 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
13454 Cast `current_column' return value to int.
13455 (back_to_previous_visible_line_start)
13456 (reseat_at_next_visible_line_start, next_element_from_buffer):
13457 Cast `indented_beyond_p' 3rd arg to float.
13458
13459 * indent.c (last_known_column): Now a float.
13460 (current_column_1, position_indentation, current_column)
13461 (string_display_width): Return float.
13462 (Fcurrent_column): Cast `current_column' return value to int.
13463 (Fcurrent_indentation): Cast `position_indentation' retval to int.
13464 (indented_beyond_p): Third arg now a float.
13465 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
13466
13467 * lisp.h (current_column): Now returns float.
13468 (indented_beyond_p): 3rd arg now a float.
13469
134702002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
13471
13472 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
13473 is Qcompound_text_with_extensions.
13474
13475 * xselect.c (lisp_data_to_selection_data): Always set selection
13476 type as string if x_encode_text returns streingp non-NULL.
13477
13478 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
13479
134802002-05-30 Richard M. Stallman <rms@gnu.org>
13481
13482 * window.c (Fset_window_configuration): Correct the handling
13483 of point in current buffer, to work with multiple windows.
13484
134852002-05-29 Colin Walters <walters@verbum.org>
13486
13487 * lread.c (Fread_from_string): Don't depend on order of evaluation
13488 for C function parameters.
13489
134902002-05-28 Richard M. Stallman <rms@gnu.org>
13491
13492 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
13493 way for blinked-off state and for a nonselected window.
13494
13495 * window.c (window_scroll_pixel_based): Don't call Fbolp;
13496 instead, see if the new start pos is at beginning of line.
13497
13498 * fileio.c (Fwrite_region): If START is a string, don't
13499 make any annotations.
13500
13501 * eval.c (syms_of_eval): Doc fix.
13502
135032002-05-28 Colin Walters <walters@debian.org>
13504
13505 * emacs.c (USAGE1): Add --no-splash.
13506 (standard_args): Ditto.
13507
135082002-05-28 Colin Walters <walters@gnu.org>
13509
13510 * lread.c (readchar_count): New variable.
13511 (readchar): Increment it.
13512 (unreadchar): Decrement it.
13513 (read_multibyte): Decrement it.
13514 (Vread_with_symbol_positions): New variable.
13515 (Vread_symbol_positions_list): New variable.
13516 (read_internal_start): New function, created from Fread and
13517 Fread_from_string. Handle Vread_symbol_positions_list and
13518 Vread_with_symbol_positions.
13519 (readevalloop, Fread, Fread_from_string): Use it.
13520 (read1): Use readchar_count to add symbol positions to
13521 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
13522 (syms_of_lread): DEFVAR_LISP and initialize them.
13523
13524 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
13525 (substitute_object_recurse, substitute_object_in_subtree)
13526 (substitute_in_interval): Prototype.
13527 (read_multibyte): Return c if it's less than zero.
13528
135292002-05-28 Kim F. Storm <storm@cua.dk>
13530
13531 * fileio.c (Fread_file_name_internal): Added brute-force
13532 speed up for using predicate file-directory-p.
13533
135342002-05-28 Kim F. Storm <storm@cua.dk>
13535
13536 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
13537 New variables.
13538 (syms_of_fileio): DEFVAR_LISP them.
13539 (read_file_name_cleanup): New unwind function.
13540 (Fread_file_name_internal): Only return completions satifying
13541 Vread_file_name_predicate. Temporarily unwind protect and rebind
13542 default-directory while checking completions against the predicate.
13543 (Fread_file_name): Added PREDICATE argument. Specbind it to
13544 Vread_file_name_predicate during completion.
13545 Call Vread_file_name_function to read the file name if non-nil.
13546
13547 * lisp.h (Fread_file_name): Now has 6 args.
13548
13549 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
13550 predicate for Fread_file_name when reading directory name.
13551 Supply Qnil for predicate in other calls to Fread_file_name.
13552
135532002-05-26 Miles Bader <miles@gnu.org>
13554
13555 * term.c (tty_capable_p): New function.
13556 * dispextern.h (tty_capable_p): New function declaration.
13557 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
13558 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
13559
135602002-05-23 Stefan Monnier <monnier@cs.yale.edu>
13561
13562 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
13563 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
13564 (Vwrite_region_annotate_functions): Docstring fix.
13565
135662002-05-23 Kim F. Storm <storm@cua.dk>
13567
13568 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
13569 phys_cursor's hpos is overwritten. This is still not completely
13570 correct, as it doesn't really make sense to use hpos at all to
13571 get the cursor glyph (as that is relative to the width of the
13572 characters on the line, which may have changed during the update).
13573
135742002-05-22 Jason Rumney <jasonr@gnu.org>
13575
13576 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
13577 Lisp_Object.
13578 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
13579 Use modified enumfont_t struct.
13580
13581 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13582
13583 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
13584 Handle the `hbar' cursor type.
13585 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13586
13587 * w32fns.c (Qhbar): New variable.
13588 (x_specified_cursor_type): Use it.
13589
135902002-05-21 Ken Raeburn <raeburn@gnu.org>
13591
13592 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
13593 now, when the address is needed.
13594
135952002-05-21 Colin Walters <walters@gnu.org>
13596
13597 * Makefile.in (shortlisp): Add font-core.el.
13598
135992002-05-20 Richard M. Stallman <rms@gnu.org>
13600
13601 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
13602
13603 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
13604 equivalent key bindings here.
13605
136062002-05-20 Ken Raeburn <raeburn@gnu.org>
13607
13608 Change symbol structure to contain a lisp object for the symbol
13609 name:
13610 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
13611 object field named "xname".
13612 (SYMBOL_NAME): New macro.
13613 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
13614 name field.
13615 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
13616 (mark_object, gc_sweep): Use symbol xname field and XSTRING
13617 instead of name field.
13618 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
13619 SYMBOL_NAME instead of XSYMBOL and name field.
13620 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
13621 instead of XSYMBOL and name field.
13622 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
13623 and SYMBOL_NAME instead of XSYMBOL and name field.
13624 * coding.c (Fread_coding_system, code_convert_region1)
13625 (code_convert_string1, code_convert_string_norecord)
13626 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
13627 XSYMBOL and name field.
13628 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
13629 (Fmake_variable_buffer_local, Fmake_local_variable)
13630 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
13631 of XSYMBOL and name field.
13632 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
13633 XSYMBOL and name field.
13634 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
13635 instead of XSYMBOL and name field.
13636 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
13637 XSYMBOL and name field.
13638 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
13639 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13640 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
13641 instead of XSYMBOL and name field.
13642 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
13643 (parse_modifiers, apply_modifiers, Fevent_convert_list)
13644 (parse_solitary_modifier, Fexecute_extended_command):
13645 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13646 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
13647 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
13648 of XSYMBOL and name field.
13649 (describe_command, describe_translation): Use SYMBOL_NAME and
13650 assignment instead of XSYMBOL and name field and XSETSTRING.
13651 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
13652 instead of XSYMBOL and name field.
13653 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
13654 name field and XSETSTRING.
13655 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
13656 of XSYMBOL and name field.
13657 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
13658 assignment instead of XSYMBOL and name field and XSETSTRING.
13659 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
13660 XSTRING instead of XSYMBOL and name field.
13661 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
13662 and XSTRING instead of XSYMBOL and name field.
13663 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
13664 and XSTRING instead of XSYMBOL and name field.
13665 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
13666 XSTRING instead of XSYMBOL and name field.
13667 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
13668 of XSYMBOL and name field.
13669 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
13670 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13671
136722002-05-19 Ken Raeburn <raeburn@gnu.org>
13673
13674 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
13675 and XCDR real rvalues in most configurations.
13676
13677 * buffer.c (fix_overlays_in_range, fix_overlays_before):
13678 Don't take the address of the cdr part of a cons cell; instead, track
13679 the parent cell and call XSETCDR, or set the variable for the head
13680 of the list if we haven't started down the list yet.
13681
136822002-05-19 Richard M. Stallman <rms@gnu.org>
13683
13684 * doc.c (reread_doc_file): Don't ask for confirmation.
13685
136862002-05-18 Jason Rumney <jasonr@gnu.org>
13687
13688 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
13689 (xbm_load_image): Use it.
13690 (xbm_load): Ditto.
13691 (xbm_read_bitmap_data): Reverted to xfns.c version.
13692 From David Ponce <david@dponce.com>.
13693
136942002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
13695
13696 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
13697 2.02 and later.
13698
136992002-05-16 Juanma Barranquero <lektu@terra.es>
13700
13701 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
13702
137032002-05-15 Stefan Monnier <monnier@cs.yale.edu>
13704
13705 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
13706 meaningful test.
13707 (read_char_minibuf_menu_prompt): Fix typo.
13708
137092002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
13710
13711 * eval.c (Fcommandp): Doc fix.
13712
137132002-05-13 Stefan Monnier <monnier@cs.yale.edu>
13714
13715 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
13716 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
13717 (Fset_keymap_parent): Gcpro a bit more.
13718 (access_keymap): Gcpro around meta_map call and around the main loop.
13719 (get_keyelt): Gcpro when following indirect references.
13720 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
13721 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
13722 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
13723 Remove useless ad-hoc remap code.
13724
137252002-05-13 Richard M. Stallman <rms@gnu.org>
13726
13727 * search.c (search_buffer): Give up boyer moore search if inverse
13728 translation change charset_base.
13729
137302002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
13731
13732 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
13733 characters is carried over from the previous block of text, adjust
13734 coding->produced to account for the extra character.
13735
137362002-05-11 Andreas Schwab <schwab@suse.de>
13737
13738 * coding.c (intersection): Keep the elements of the returned list
13739 in the same order as in the first list.
13740
137412002-05-11 Kim F. Storm <storm@cua.dk>
13742
3419757d 13743 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
13744 only update cmm_size if realloc actually succeeds.
13745 Testing with initial size of 2 elements revealed that using
13746 realloc on GNU/Linux would cause a random trap in xmalloc
13747 later on, so I rewrote the code to use malloc/bcopy/free instead
13748 of realloc.
13749
137502002-05-10 Jason Rumney <jasonr@gnu.org>
13751
13752 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
13753
137542002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
13755
13756 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
13757 parens, to ensure correct evaluation order.
13758
137592002-05-10 Kim F. Storm <storm@cua.dk>
13760
13761 * keymap.c (Vemulation_mode_map_alists): New variable.
13762 (syms_of_keymap): DEFVAR_LISP it.
13763 (current_minor_maps): Process keymap alists in that list before
13764 minor-mode-overriding-map-alist and minor-mode-map-alist.
13765
137662002-05-09 Richard M. Stallman <rms@gnu.org>
13767
13768 * search.c (Freplace_match): Doc fix.
13769
137702002-05-09 Kim F. Storm <storm@cua.dk>
13771
13772 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13773 Enlarge cursor rectangle drawn around image with non-zero relief.
13774
13775 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
13776 Enlarge cursor rectangle drawn around image with non-zero relief.
13777
13778 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13779 Enlarge cursor rectangle drawn around image with non-zero relief.
13780
137812002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
13782
13783 * xselect.c (lisp_data_to_selection_data): Don't set selection
13784 type if comes from the Lisp object's car. If the selection
13785 contains a pure ASCII text, always return QSTRING as its type.
13786
137872002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13788
13789 * mac.c (mac-cut-function): Doc fix.
13790
137912002-05-05 Richard M. Stallman <rms@gnu.org>
13792
13793 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
13794
137952002-05-04 Jason Rumney <jasonr@gnu.org>
13796
13797 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
13798 for event-click-count.
13799
13800 * process.c (init_process): Only add server subfeature if we can
13801 use non-blocking I/O.
13802
138032002-05-04 Andrew Choi <akochoi@shaw.ca>
13804
13805 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
13806 repeatedly.
13807
138082002-05-03 Jason Rumney <jasonr@gnu.org>
13809
13810 * process.c (Fmake_network_process): Only support server sockets
13811 when we can make them non-blocking.
13812
13813 * s/ms-w32.h (HAVE_SELECT): Define.
13814
13815 * w32.h (FILE_NDELAY): New flag.
13816
13817 * w32.c (sys_getpeername, fcntl): New functions.
13818 (_sys_read_ahead): Temporarily block on non-blocking sockets.
13819
13820 * w32proc.c: include sys/file.h.
13821
138222002-05-03 Colin Walters <walters@verbum.org>
13823
13824 * callproc.c (Vgame_score_directory): Renamed to
13825 Vshared_game_score_directory.
13826
138272002-04-30 Richard M. Stallman <rms@gnu.org>
13828
13829 * s/gnu.h [emacs]: Include stdio.h.
13830 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
13831
13832 * eval.c (do_autoload): Error if called while preparing to dump.
13833
13834 * fns.c (Frequire): Error if need to load while preparing to dump.
13835
138362002-04-28 Colin Walters <walters@verbum.org>
13837
13838 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
13839 Default to "~/.emacs.d/games".
13840
138412002-04-29 Stefan Monnier <monnier@cs.yale.edu>
13842
13843 * lread.c (openp): Change arg exec_only to predicate.
13844 (build_load_history): Use XCAR/XCDR.
13845 (Flocate_file_internal): New fun.
13846 (syms_of_lread): Defsubr it.
13847 (Fload): Update call to openp.
13848
13849 * lisp.h (openp): Update prototype.
13850
13851 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
13852 * w32proc.c (sys_spawnve):
13853 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
13854 * w32.c (check_windows_init_file):
13855 * sound.c (Fplay_sound_internal):
13856 * process.c (Fstart_process):
13857 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
13858 * mac.c (run_mac_command):
13859 * emacs.c (init_cmdargs):
13860 * callproc.c (Fcall_process): Update call to openp.
13861
13862 * textprop.c (remove_properties): Don't use XCAR without CONSP.
13863
13864 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
13865
138662002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13867
13868 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
13869 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
13870
138712002-04-28 Richard M. Stallman <rms@gnu.org>
13872
13873 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
13874
13875 * eval.c (Fcommandp): New arg for_call_interactively.
13876 * lisp.h (Fcommandp): Declare new arg.
13877
138782002-04-28 Jason Rumney <jasonr@gnu.org>
13879
13880 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
13881
13882 * w32.c (stat, fstat): Use file index information to generate
13883 inodes for directories where available.
13884
138852002-04-26 Andrew Choi <akochoi@shaw.ca>
13886
13887 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
13888 [HAVE_CARBON]: Include Mac object files.
13889
13890 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
13891 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
13892 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
13893 MAC_OSX, and MAC_OS instead of macintosh.
13894
13895 * editfns.c [MAC_OS8]: Include stdio.h.
13896
13897 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
13898
13899 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
13900 Apple Monaco.
13901
78819ebb 13902 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
13903 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
13904 calling select.
13905
13906 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
13907
13908 * tparam.c [MAC_OSX]: Don't define BC and UP.
13909
13910 * config.in [HAVE_CARBON]: Add.
13911
13912 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
13913 Move here from mac/src and mac/inc.
13914
13915 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
13916
139172002-04-26 Gerd Moellmann <gerd@gnu.org>
13918
13919 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
13920 Compute phys_cursor_width from the x position returned
13921 by x_draw_glyhs, which is cheaper.
13922 (x_display_and_set_cursor): Compute the buffer-local value
13923 of `cursor-in-non-selected-windows' only when needed.
13924
139252002-04-25 Gerd Moellmann <gerd@gnu.org>
13926
13927 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
13928 cursor on a stretch glyph has a width that depends on
13929 x_stretch_cursor_p.
13930
139312002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13932
13933 * abbrev.c (abbrev-start-location): Doc fix.
13934
13935 * indent.c (Fvertical_motion): Fix last change.
13936
139372002-04-25 Gerd Moellmann <gerd@gnu.org>
13938
13939 * indent.c (Fvertical_motion): Move to the start of the line
13940 containing PT before moving up or down.
13941
139422002-04-24 Gerd Moellmann <gerd@gnu.org>
13943
13944 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
13945 case of writing a whole row, more or less analogous to the case of
13946 writing only parts of a row.
13947
13948 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
13949 0 for NO_CURSOR.
13950
13951 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
13952
139532002-04-23 Colin Walters <walters@verbum.org>
13954
13955 * buffer.c (syms_of_buffer): Doc fix.
13956
139572002-04-23 Gerd Moellmann <gerd@gnu.org>
13958
13959 * xterm.c (notice_overwritten_cursor): Handle the special case
13960 of the cursor being in the first blank non-text line at the
13961 end of a window.
13962
13963 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
13964 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
13965 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
13966 bar cursors only, to make phys_cursor_width contain what its name
13967 suggests.
13968 (notice_overwritten_cursor): Consider the cursor image erased if
13969 the output area intersects the cursor image in y-direction.
13970
139712002-04-23 Simon Marshall <simon@gnu.org>
13972
13973 * xfns.c (x_set_mouse_color): Change default for cross_cursor
13974 to XC_hand2.
13975
139762002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13977
13978 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
13979
139802002-04-22 Kim F. Storm <storm@cua.dk>
13981
13982 * textprop.c (remove_properties): Fixed trap for malformed plist.
13983
139842002-04-22 Richard M. Stallman <rms@gnu.org>
13985
13986 * cmds.c (Fend_of_line): Handle intangible text in mid line.
13987
13988 * window.c (make_window): Initialize height_fixed_p,
13989 last_cursor_off_p, and p->cursor_off_p slots.
13990
139912002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13992
13993 * fns.c (use-dialog-box): Doc fix.
13994
139952002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13996
13997 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
13998 variables `row', `i' and `area'.
13999 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
14000 toolkit library.
14001
140022002-04-19 Stefan Monnier <monnier@cs.yale.edu>
14003
14004 * xfaces.c (clear_font_table): Don't free the default font of
14005 a frame even if it's on another display.
14006 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
14007 that could be Qt.
14008
140092002-04-19 Juanma Barranquero <lektu@terra.es>
14010
14011 * indent.c (Fmove_to_column): Remove unused local variable
14012 `next_boundary_byte'.
14013 (current_column_1): Likewise.
14014
140152002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
14016
14017 * msdos.c (Qhbar): New variable.
14018 (syms_of_msdos): Intern and staticpro it.
14019 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
14020 cursor type.
14021
140222002-04-19 Dave Lambert <dlambert@acm.org>
14023
14024 Theses change implement an underscore-like (`hbar') cursor.
14025
14026 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
14027
14028 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
14029 Handle the `hbar' cursor type.
14030 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
14031
14032 * xfns.c (Qhbar): New variable.
14033 (syms_of_xfns): Intern and staticpro it.
14034 (x_specified_cursor_type): Handle `hbar' cursor.
14035
14036 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
14037 not defined.
14038
140392002-04-18 Richard M. Stallman <rms@gnu.org>
14040
14041 * textprop.c (remove_properties): New arg LIST allows scanning
14042 either a list or a plist.
14043 (interval_has_some_properties_list): New function, like
14044 interval_has_some_properties using list instead of plist.
14045 All callers changed.
14046 (Fremove_list_of_text_properties): New function.
14047 (syms_of_textprop): Defsubr it.
14048
140492002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
14050
14051 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
14052
140532002-04-17 Juanma Barranquero <lektu@terra.es>
14054
14055 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
14056
140572002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
14058
14059 * window.c (coordinates_in_window): Don't report on margin area
14060 if its width is zero.
14061
140622002-04-16 Jason Rumney <jasonr@gnu.org>
14063
14064 * w32fns.c (Fx_file_dialog): Decode file name before using.
14065
14066 * w32term.c (construct_drag_n_drop): Likewise.
14067
140682002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
14069
14070 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
14071 store load-history in pure space.
14072
14073 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
14074
140752002-04-16 Stefan Monnier <monnier@cs.yale.edu>
14076
14077 * xterm.c (Qlatin_1, Qutf_8): New vars.
14078 (syms_of_xterm): Initialize them.
14079 (XTread_socket): Eliminate incorrect optimization that tried to avoid
14080 decoding the output of X*LookupString.
14081 Always use latin-1 to decode the output of XLookupString.
14082 Try Xutf8LookupString if XmbLookupString failed.
14083
14084 * region-cache.c (new_region_cache): Use BEG.
14085
140862002-04-16 Gerd Moellmann <gerd@gnu.org>
14087
14088 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
14089 configuration files.
14090 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
14091 returns 0.
14092
140932002-04-15 Andreas Schwab <schwab@suse.de>
14094
14095 * config.in: Regenerated using autoheader.
14096
14097 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
14098 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
14099 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
14100 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
14101 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
14102 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
14103 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
14104 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
14105 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
14106 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
14107 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
14108 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
14109 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
14110 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
14111 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
14112 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
14113 STACK_DIRECTION, now set by autoconf.
14114
141152002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14116
14117 * dispnew.c (marginal_area_string): Sort arguments.
14118
14119 * dispextern.h (marginal_area_string): Add prototype.
14120
141212002-04-13 Richard M. Stallman <rms@gnu.org>
14122
14123 * fileio.c (Finsert_file_contents):
14124 Don't call temp_output_buffer_setup--do just part, by hand.
14125
14126 * coding.c (run_pre_post_conversion_on_str):
14127 Don't call temp_output_buffer_setup--do just part, by hand.
14128
14129 * keyboard.c (command_loop_1): Don't call start_hourglass
14130 or cancel_hourglass when executing a macro.
14131
14132 * marker.c (count_markers): New function.
14133
14134 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
14135 grow without limit. Move recently used elements to the front.
14136
141372002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
14138
14139 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
14140
141412002-04-12 Gerd Moellmann <gerd@gnu.org>
14142
14143 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
14144 rows marginal areas.
14145 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
14146 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
14147
14148 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
14149
141502002-04-12 Dave Love <fx@gnu.org>
14151
14152 * dispnew.c (marginal_area_string): New.
14153
14154 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
14155 (Qleft_margin, Qright_margin): Declare.
14156 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
14157
14158 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
14159 note_mode_line_highlight and extended.
14160
14161 * keyboard.c (Qleft_margin, Qright_margin): Declare.
14162 (make_lispy_event): Deal with mouse events in margins.
14163
141642002-04-12 Stefan Monnier <monnier@cs.yale.edu>
14165
14166 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
14167
14168 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
14169 than deactivating the mark if tmm is set to `lambda'.
14170 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
14171 Use a single event for HELP_EVENT.
14172 (Fexecute_extended_command): Save last_point_position.
14173
141742002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14175
14176 * lisp.h (Fpropertize): Add prototype.
14177
14178 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
14179
141802002-04-10 Colin Walters <walters@verbum.org>
14181
14182 * config.in: Add HAVE_SHARED_GAME_DIR.
14183
14184 * callproc.c: (Vgame_score_directory): New variable.
14185 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
14186
141872002-04-10 Richard M. Stallman <rms@gnu.org>
14188
14189 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
14190
141912002-04-09 Stefan Monnier <monnier@cs.yale.edu>
14192
14193 * minibuf.c (read_minibuf): Use empty_string.
14194 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
14195 Short-circuit the search as soon as it "failed".
14196 (Fall_completions): Allow lambda forms and lists of strings for alist.
14197 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
14198 when require_match is nil.
14199 (Ftest_completion): Rename from `test_completion' and export to elisp.
14200 Call the predicate also when alist is a list.
14201 Obey Vcompletion_regexp_list.
14202 (do_completion, Fminibuffer_complete_and_exit): Use it.
14203 (Fassoc_string): Rename from `assoc_for_completion'.
14204 Allow list of strings as well and export to elisp.
14205
142062002-04-08 Stefan Monnier <monnier@cs.yale.edu>
14207
14208 * puresize.h (BASE_PURESIZE): Increase to 900KB.
14209
142102002-04-08 Juanma Barranquero <lektu@terra.es>
14211
14212 * w32.c (sys_accept): Don't hide variable `s'.
14213
142142002-04-05 Gerd Moellmann <gerd@gnu.org>
14215
14216 * callint.c (Fcall_interactively): Use INTEGERP instead of
14217 NUMBERP for checking Vhistory_length.
14218
142192002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14220
14221 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
14222 Doc fix to reflect it.
14223
142242002-04-04 Richard M. Stallman <rms@gnu.org>
14225
14226 * xdisp.c (display_mode_element): New arg RISKY.
14227 Disregard text props found or specified within a variable
14228 that isn't marked risky-local-variable.
14229 (Qrisky_local_variable): New variable.
14230 (syms_of_xdisp): Init and staticpro it.
14231
142322002-04-04 Stefan Monnier <monnier@cs.yale.edu>
14233
14234 * undo.c (record_point): New fun.
14235 (record_delete, record_insert): Use it.
14236
142372002-04-03 Juanma Barranquero <lektu@terra.es>
14238
14239 * doc.c (Fdocumentation): Add missing parentheses.
14240 (Fdocumentation_property): Likewise.
14241
142422002-04-03 Stefan Monnier <monnier@cs.yale.edu>
14243
14244 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
14245 data is 0, just return nil.
14246
142472002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
14248
14249 * msdos.c (syms_of_msdos): Fix last change with
14250 mouse_autoselect_window.
14251
142522002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14253
14254 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
14255 mouse_autoselect_window.
14256
142572002-04-02 Stefan Monnier <monnier@cs.yale.edu>
14258
14259 * keyboard.c (make_lispy_event): Handle unknown keysyms together
14260 with system-specific keysyms. Use it also for unknown function keys.
14261
14262 * doc.c (reread_doc_file): Return whether reload was attempted.
14263 (Fdocumentation, Fdocumentation_property): Don't try to reload
14264 if the doc is 0 and only ask once.
14265
14266 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
14267
142682002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
14269
14270 * keyboard.c (read_char): If the event was Qselect_window,
14271 restore timer_idleness_start_time to its previous value.
14272
14273 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
14274
142752002-04-01 Stefan Monnier <monnier@cs.yale.edu>
14276
14277 * region-cache.c (new_region_cache): Use BEG.
14278
14279 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
14280 Use BEG and BEG_BYTE.
14281
14282 * doc.c (get_doc_string): Return nil if the location is wrong.
14283 (reread_doc_file): New fun.
14284 (Fdocumentation, Fdocumentation_property):
14285 Call it if get_doc_string fails.
14286 (Fsnarf_documentation): Make it work for a dumped Emacs.
14287
14288 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
14289 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
14290
14291 * charset.c (Fstring): Allow 0 arguments.
14292
14293 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
14294
14295 * process.c (DATAGRAM_CONN_P, list_processes_1)
14296 (Fprocess_datagram_address, Fset_process_datagram_address)
14297 (Fset_network_process_options, server_accept_connection):
14298 Fix some int/Lisp_Object confusions (thank you union types).
14299
143002002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14301
14302 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
14303
14304 * w32term.c: Likewise.
14305 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
14306
14307 * keyboard.c (Qselect_window): New symbol.
14308 (head_table): Use it.
14309 (keys_of_keyboard): Bound select-window event to handle-select-window.
14310 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
14311
14312 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
14313 (last_window): New variable.
14314 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
14315 (note_mouse_movement): Remove reimplemented code in #if 0.
14316 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
14317 Emacs windows.
14318
14319 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
14320
143212002-03-31 Gerd Moellmann <gerd@gnu.org>
14322
14323 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
14324 Callers changed.
14325
143262002-03-30 Richard M. Stallman <rms@gnu.org>
14327
14328 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
14329 loop whenever it stops making progress.
14330
14331 * widget.c (set_frame_size): Don't call change_frame_size.
14332
143332002-03-30 Gerd Moellmann <gerd@gnu.org>
14334
14335 * dispnew.c (direct_output_for_insert):
14336 Call mark_window_display_accurate.
14337
143382002-03-29 Jason Rumney <jasonr@gnu.org>
14339
14340 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
14341
143422002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
14343
14344 * Makefile.in (lread.o): Depend on coding.h.
14345
14346 * lread.c (openp, Fload): Encode the file name before passing it
14347 to `stat', `access', and `emacs_open'.
14348 (openp): GCPRO the encoded file name. Don't recompute Lisp
14349 strings unnecessarily.
14350
143512002-03-29 Kim F. Storm <storm@cua.dk>
14352
14353 * fns.c (Flax_plist_put): Doc fix.
14354
143552002-03-28 Miles Bader <miles@gnu.org>
14356
14357 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
14358
143592002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14360
14361 * process.c (set-network-process-options): Add usage.
14362 (make-network-process): Doc fix.
14363
143642002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
14365
14366 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
14367
143682002-03-26 Richard M. Stallman <rms@gnu.org>
14369
14370 * fns.c (Fsubstring_no_properties): New function.
14371 (Flax_plist_get, Flax_plist_put): New functions.
14372 (syms_of_fns): defsubr them.
14373
14374 * xdisp.c (update_menu_bar): Test only update_mode_lines;
14375 don't test or alter w->update_mode_line.
14376
14377 * window.c (Fdisplay_buffer): Doc fix.
14378
143792002-03-24 Richard M. Stallman <rms@gnu.org>
14380
14381 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
14382
143832002-03-24 Gerd Moellmann <gerd@gnu.org>
14384
14385 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
14386 (Fdefmacro): Handle `(declare ...)'.
14387 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
14388 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
14389
143902002-03-24 Jason Rumney <jasonr@gnu.org>
14391
14392 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
14393 (xbm_file_p): Add prototypes.
14394 (xbm_format, xbm_image_p): Sync with xfns.c.
14395 (reflect_byte): New function.
14396 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
14397 (xbm_load_image): Create bitmaps with a depth of 1.
14398 (init_xfns): Enable XBM images.
14399
144002002-03-23 Jason Rumney <jasonr@gnu.org>
14401
14402 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
14403 correctly. Do not pass up_modifier to keyboard buffer.
14404
14405 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
14406
144072002-03-22 Stefan Monnier <monnier@cs.yale.edu>
14408
14409 * Makefile.in (bootstrapclean): New target.
14410 (bootstrap-temacs, bootstrap-doc): Remove.
14411 (bootstrap-emacs): Use a bog-standard `temacs'.
14412 Don't bother to build a DOC file.
14413
14414 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
14415
14416 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
14417 in temacs even if !CANNOT_DUMP.
14418 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
14419
14420 * alloc.c (check_pure_size): Only output a warning.
14421
144222002-03-22 Jason Rumney <jasonr@gnu.org>
14423
14424 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
14425 supported.
14426
14427 * w32term.c (zv_bits): Declare as short, for word alignment.
14428 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
14429 (syms_of_w32term): Define x-use-underline-position-properties.
14430
14431 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
14432 (clear_image_cache): Block input, fix logic, clear matrices in
14433 all frames that share this cache.
14434
144352002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
14436
14437 * emacs.c (main): Update the Copyright year in the blurb printed
14438 by "emacs --version".
14439
14440 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
14441
14442 * xterm.c (XTread_socket): If XK_ISO_Lock and
14443 XK_ISO_Last_Group_Lock are defined, handle keysyms between
14444 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
14445
144462002-03-21 Kim F. Storm <storm@cua.dk>
14447
14448 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
14449 menu-bar bindings in keymap and local-map properties _are_ used.
14450 But try keymap property first in accordance with 2002-01-03 patch.
14451 Added comment describing why this is not always reliable.
14452 (tool_bar_items): Ditto for tool-bar.
14453
144542002-03-21 Jason Rumney <jasonr@gnu.org>
14455
14456 * w32fns.c (x_clear_image_1): Disable color table code.
14457
144582002-03-21 Kim F. Storm <storm@cua.dk>
14459
14460 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
14461 removed the wrong version of the DEFUN macro; fixed it.
14462
14463 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
14464 Fmember rather than Fmemq).
14465 (Fprovide): Check that subfeatures is a list.
14466
14467 * process.c (QCfeature, QCdatagram): Removed variables.
14468 (QCtype, Qdatagram): New variables.
14469 (network_process_featurep): Removed function.
14470 (Fmake_network_process): Removed :feature check.
14471 Use :type 'datagram instead of :datagram t to create a datagram
14472 socket. This allows us to add other connection types (e.g. raw
14473 sockets) later in a consistent manner.
14474 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
14475 supported subfeatures for feature make-network-process.
14476 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
14477 Intern and staticpro QCtype and Qdatagram.
14478 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
14479
14480 * xfns.c: (QCtype): Remove duplicate declaration and
14481 initialization (is now declared in process.c).
14482
14483 * w32fns.c: (QCtype): Remove duplicate declaration and
14484 initialization (is now declared in process.c).
14485
144862002-03-21 Richard M. Stallman <rms@gnu.org>
14487
14488 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
14489 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
14490 when jumping to `fail' to avoid undoing reg changes in the
14491 last iteration of the loop.
14492 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
14493
14494 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
14495 Depend on process.h.
14496
144972002-03-20 Jason Rumney <jasonr@gnu.org>
14498
14499 Most of the following changes are still conditional on HAVE_IMAGES
14500 which is not set by default on Windows.
14501
14502 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
14503
14504 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
14505 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
14506 (four_corners_best, x_clear_image_1, x_clear_image)
14507 (x_alloc_image_color, postprocess_image)
14508 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
14509 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
14510 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
14511
14512 * w32gui.h (struct XImage): Define.
14513
14514 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
14515 extract mouse co-ordinates.
14516
145172002-03-20 Jason Rumney <jasonr@gnu.org>
14518
14519 * w32.c (init_winsock): Dynamically load new server and UDP
14520 socket functions.
14521 (socket_to_fd): New function.
14522 (sys_socket): Use it.
14523 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
14524 (sys_recvfrom, sys_sendto): New wrapper functions.
14525
14526 * process.c (QCfamily, QCfilter): Remove duplicate declaration
14527 and initialization.
14528
14529 * makefile.w32-in (LIBS): Remove $(WSOCK32).
14530
145312002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
14532
14533 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
14534 Don't use "sun" as a variable, it's a predefined constant on Sun
14535 machines.
14536
145372002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14538
14539 * bytecode.c (Fbyte_code): Revert last change.
14540
145412002-03-19 Kim F. Storm <storm@cua.dk>
14542
14543 * makefile.w32-in (LIBS): Add $(WSOCK32).
14544 From David Ponce <dponce@voila.fr>.
14545
145462002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14547
14548 * process.c (wait_reading_process_input): Move variables `pname'
14549 and `pnamelen' down where they are used.
14550
14551 * bytecode.c (Fbyte_code): Discard unused computed value to
14552 prevent gcc warning.
14553
14554 * lisp.h (Fplist_member): Add prototype.
14555
145562002-03-18 Kim F. Storm <storm@cua.dk>
14557
14558 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
14559 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
14560
14561 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
14562 Remove explicit GNU_LINUX settings for datagram support.
14563
145642002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14565
14566 * process.c (Fmake_network_process): Remove unused variable `sa'.
14567 Doc fix. Add usage:.
14568 (set_socket_options): Remove unused variables `optnum' and `opttype'.
14569
145702002-03-17 Richard M. Stallman <rms@gnu.org>
14571
14572 * xdisp.c (cursor_type_changed): New variable.
14573 (redisplay_internal): Redisplay all windows if cursor_type_changed.
14574 Clear it when clearing windows_or_buffers_changed.
14575 (try_cursor_movement, redisplay_window, try_window_id)
14576 (try_window_reusing_current_matrix): Test cursor_type_changed
14577 along with windows_or_buffers_changed.
14578
14579 * window.h (cursor_type_changed): New variable.
14580
14581 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
14582 not update_mode_lines, and always set it to 1.
14583
14584 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
14585 if no frames needed redrawing.
14586
145872002-03-17 Kim F. Storm <storm@cua.dk>
14588
14589 The following changes add support for network server processes,
14590 datagram connections, and local (unix) sockets.
14591
14592 * process.h (struct Lisp_Process): New member log.
14593 Doc fix: Member command used to indicate stopped network process.
14594 Doc fix: Member childp contains plist for network process.
14595 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
14596
14597 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
14598 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
14599 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
14600 New variables.
14601 (NETCONN1_P): New macro.
14602 (DATAGRAM_SOCKETS): New conditional symbol.
14603 (datagram_address): New array.
14604 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
14605 (status_message): Use concat3.
14606 (Fprocess_status): Add `listen' status to doc string. Return `stop'
14607 for a stopped network process.
14608 (Fset_process_buffer): Update contact plist for network process.
14609 (Fset_process_filter): Ditto. Don't enable input for stopped
14610 network processes. Server must listen, even if filter is t.
14611 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
14612 New functions.
14613 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
14614 (Fprocess_contact): Added KEY argument. Handle datagrams.
14615 (list_processes_1): Optionally show only processes with the query
14616 on exit flag set. Dynamically adjust column widths. Omit tty
14617 column if not needed. Report stopped network processes.
14618 Identify server and datagram network processes.
14619 (Flist_processes): New optional arg `query-only'.
14620 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
14621 (conv_lisp_to_sockaddr, set_socket_options)
14622 (network_process_featurep, unwind_request_sigio): New helper functions.
14623 (Fprocess_datagram_address, Fset_process_datagram_address):
14624 (Fset_network_process_options): New lisp functions.
14625 (Fopen_network_stream): Removed. Now defined in simple.el.
14626 (Fmake_network_process): New lisp function. Code is based on previous
14627 Fopen_network_stream, but heavily reworked with new property list based
14628 argument list, support for datagrams, server processes, and local
14629 sockets in addition to old client-only functionality.
14630 (server_accept_connection): New function.
14631 (wait_reading_process_input): Use it to handle incoming connects.
14632 Do not enable input on a new connection if process is stopped.
f63fd14e 14633 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
14634 (send_process): Handle datagram sockets.
14635 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
14636 network process is indicated by setting command field to t .
14637 (Fprocess_send_eof): No-op if datagram connection.
14638 (Fstatus_notify): Don't read input for a stream server socket or a
14639 stopped network process.
14640 (init_process): Initialize datagram_address array.
14641 (syms_of_process): Intern and staticpro new variables, defsubr new
14642 functions.
14643
146442002-03-16 Jason Rumney <jasonr@gnu.org>
14645
14646 * w32fns.c (w32_to_all_x_charsets): Return correct type in
14647 startup case.
14648
146492002-03-16 Richard M. Stallman <rms@gnu.org>
14650
14651 * xdisp.c (redisplay_internal, redisplay_windows):
14652 Use list_of_error to call internal_condition_case_1.
14653 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
14654 so as to catch all errors with no possibility of debugger redisplay.
14655 (list_of_error): New variable.
14656 (syms_of_xdisp): Init and staticpro it.
14657
14658 * print.c (print_object): Delete `\ ' from printed rep of frame.
14659
146602002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
14661
14662 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
14663 until its implementation is fixed.
14664
146652002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14666
14667 * xfns.c (png_load): Remove unused variable `gamma_str'.
14668
146692002-03-14 Richard M. Stallman <rms@gnu.org>
14670
14671 * xfns.c (x_real_positions): Handle failure in XQueryTree.
14672
146732002-03-14 Miles Bader <miles@gnu.org>
14674
14675 * intervals.c (adjust_for_invis_intang): New function.
14676 (set_point_both): Use `adjust_for_invis_intang' to do most of the
14677 work for dealing with invisible+intangible regions. Do so before
14678 and after both forward and backward movements, to handle both
14679 front-sticky and rear-sticky cases.
14680 * textprop.c (text_property_stickiness): Function moved here from
14681 `editfns.c'.
14682 * intervals.h (text_property_stickiness): New declaration.
14683 * editfns.c (char_property_eq): Function removed.
14684 (text_property_stickiness): Function moved to `textprop.c'.
14685
146862002-03-13 Jason Rumney <jasonr@gnu.org>
14687
14688 * config.in: Add STRFTIME_NO_POSIX2.
14689
14690 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
14691 and %OX when underlying strftime does not.
14692
146932002-03-13 Stefan Monnier <monnier@cs.yale.edu>
14694
14695 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
14696 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
14697 line) to avoid annoying flicker.
14698 (xm_scroll_callback): Get rid of the now unnecessary kludge.
14699 (XTread_socket): Mark it static.
14700
14701 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
14702
147032002-03-13 Kim F. Storm <storm@cua.dk>
14704
14705 * puresize.h (BASE_PURESIZE): Increase to 775000.
14706
147072002-03-12 Juanma Barranquero <lektu@terra.es>
14708
14709 * editfns.c (syms_of_editfns): Fix typo.
14710
147112002-03-12 Gerd Moellmann <gerd@gnu.org>
14712
14713 * xsmfns.c: Include stdio.h because termhooks.h needs it.
14714 Include termopt.h for interrupt_input.
14715
147162002-03-11 Andreas Schwab <schwab@suse.de>
14717
14718 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
14719
147202002-03-11 Gerd Moellmann <gerd@gnu.org>
14721
14722 * xterm.c (note_mouse_movement): Put code for
14723 x_autoselect_window_p in #if 0.
14724
14725 * lread.c (Fload): Don't assume that message_with_string uses the
14726 string it is given like a C string.
14727
147282002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14729
78819ebb 14730 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec
JD
14731
14732 * xterm.c: (XTread_socket): Add call to x_session_check_input and
14733 x_session_have_connection.
14734 (x_initialize): Add call to x_session_initialize.
14735
14736 * termhooks.h (enum event_kind): Add save_session_event.
14737
14738 * keyboard.c: Add Emacs event save_session_event.
14739
14740 * emacs.c (main): Add call to syms_of_xsmfns.
14741
78819ebb 14742 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
14743
14744 * config.in: Add HAVE_X_SM.
14745
14746 * Makefile.in (LIBXT): Add -lSM -lICE
14747 if HAVE_X_SM and not USE_X_TOOLKIT.
14748 (XOBJ): New file xsmfns.c added.
14749
14750 * xsmfns.c: New file for X session management.
14751
147522002-03-09 Jason Rumney <jasonr@gnu.org>
14753
14754 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
14755 read-only when setting modified time.
14756
147572002-03-08 Gerd Moellmann <gerd@gnu.org>
14758
14759 * xdisp.c (move_it_vertically_backward): At the end of the function,
14760 when moving forward by lines, treat terminal frames specially.
14761
14762 * keyboard.c (echo_char): Make sure to add a separator between
14763 keys even if echo_dash hasn't been called.
14764
14765 * xdisp.c: Use new string macros.
14766 (update_echo_area): Pass number of bytes to message3 instead of
14767 number of chars.
14768 (set_message_1): Don't access a string's size_byte directly.
14769 (decode_mode_spec_coding): Use number of bytes of eoltype string
14770 instead number of chars.
14771
14772 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
14773
147742002-03-08 Juanma Barranquero <lektu@terra.es>
14775
14776 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
14777 24-bit.
14778
147792002-03-06 Jason Rumney <jasonr@gnu.org>
14780
14781 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
14782
147832002-03-06 Gerd Moellmann <gerd@gnu.org>
14784
14785 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
14786 (cancel_echoing, echo_length, echo_truncate): Changed to
14787 work with new kboard definition.
14788 (echo_now): Use message3_nolog instead of message2_nolog.
14789
14790 * alloc.c (mark_kboards): Mark echo_string.
14791
14792 * keyboard.h (ECHOBUFSIZE): Removed.
14793 (struct kboard): Member echoptr removed, member echobuf renamed
14794 to echo_string.
14795
14796 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
14797 message3 instead of message2 to display the message using STRING's
14798 text properties.
14799
148002002-03-05 Andreas Schwab <schwab@suse.de>
14801
14802 * xdisp.c (hscroll_margin): Change to EMACS_INT.
14803
148042002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
14805
14806 * frame.c (default-frame-alist): Explain that setting it doesn't
14807 affect existing frames.
14808
148092002-03-05 Stefan Monnier <monnier@cs.yale.edu>
14810
14811 * indent.c (skip_invisible): Fix my brain fart.
14812
14813 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
14814
148152002-03-04 Stefan Monnier <monnier@cs.yale.edu>
14816
14817 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
14818 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
14819 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
14820 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
14821 and variables to use EMACS_INT instead of just int.
14822
14823 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
14824
148252002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
14826
14827 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
14828 environment, pass it down with corrected value.
14829
148302002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14831
14832 * lread.c (read_filtered_event): Do not call start_hourglass
14833 before returning.
14834
148352002-03-04 Juanma Barranquero <lektu@terra.es>
14836
14837 * w32term.c (x_display_and_set_cursor): Fix typo.
14838
148392002-03-03 Richard M. Stallman <rms@gnu.org>
14840
14841 * fileio.c (Fmake_temp_name): Doc fix.
14842
148432002-03-03 Gary Wong <gtw@gnu.org>
14844
14845 * termcap.c [!emacs]: Replace ospeed for building standalone
14846 libtermcap, for binary compatibility.
14847
14848 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
14849
148502002-03-03 Richard M. Stallman <rms@gnu.org>
14851
14852 * xrdb.c (file_p): Rename arg `path' to `filename'.
14853
14854 * abbrev.c (Fexpand_abbrev): Increment plist as use count
14855 only if it is an integer.
14856
14857 * xfns.c (png_load): Set screen_gamma based on f->gamma.
14858 If png_get_sRGB gives an answer, call png_set_gamma
14859 using the default image gamma value.
14860
14861 * lread.c (read1): When reading from a file, default string to
14862 multibyte only if it has some multibyte characters.
14863
14864 * print.c (print_object): Output multibyte chars 128...255
14865 using \x even if ! print_escape_multibyte.
14866
14867 * xdisp.c (display_mode_element): Move the places where
14868 bytepos, charpos, this, and lisp_string are set.
14869 Use lisp_string to set bytepos.
14870
14871 * xdisp.c (redisplay_internal):
14872 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
14873
14874 * xdisp.c (display_mode_element): Merge properties specified with
14875 :propertize onto those that come with the string.
14876
148772002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
14878
14879 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
14880 automatic-hscrolling. Users changed.
14881 <hscroll-margin>: Renamed from automatic-hscroll-margin.
14882 Users changed.
14883 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
14884
148852002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14886
14887 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
14888
148892002-03-02 Kim F. Storm <storm@cua.dk>
14890
14891 * window.c (Fminibuffer_selected_window): New function.
14892 (syms_of_window): Defsubr it.
14893
148942002-03-01 Kim F. Storm <storm@cua.dk>
14895
14896 * window.h (struct window): New member phys_cursor_width.
14897
14898 * window.c (make_window, replace_window): Init phys_cursor_width.
14899
14900 * xterm.c (x_display_and_set_cursor): Blink box cursor using
14901 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14902
14903 * w32term.c (x_display_and_set_cursor): Blink box cursor using
14904 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14905
14906 * lisp.h (GCPRO6): New macro.
14907
14908 * process.c (Fopen_network_stream): Use GCPRO6.
14909
149102002-03-01 Kim F. Storm <storm@cua.dk>
14911
14912 * process.c (Qconnect, Qfailed): New variables.
14913 (syms_of_process): Intern and staticpro them.
14914 (Fprocess_status): Document connect and failed return values.
14915 [NON_BLOCKING_CONNECT]: New conditional.
14916 (connect_wait_mask, num_pending_connects): New variables.
14917 (status_message): Convert Qfailed status.
14918 (Fopen_network_stream): Added support for non-blocking connect.
14919 New optional args: filter, sentinel, non_blocking. Doc updated.
14920 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
14921 (deactivate_process): Handle pending non-blocking connect.
14922 (wait_reading_process_input): Poll for status of non-blocking
14923 connects. Exec sentinel directly when connect succeeds.
14924 (status_notify): Don't read process output if not yet connected.
14925
149262002-02-28 Kim F. Storm <storm@cua.dk>
14927
14928 * window.c: (minibuf_selected_window): Renamed from
14929 Vminibuf_selected_window. Users changed.
14930 (syms_of_window): Staticpro it.
14931
149322002-02-26 Kim F. Storm <storm@cua.dk>
14933
14934 The following changes add a new Vminibuf_selected_window variable
14935 which is similar to Vminibuf_scroll_window, but which is only set
14936 on entry to the minibuffer (from a non-minibuffer window):
14937
14938 * window.c: (Vminibuf_selected_window): New variable.
14939 (struct save_window_data): New member minibuf_selected_window.
14940 (Fset_window_configuration): Restore Vminibuf_selected_window.
14941 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
14942 Set minibuf_scroll_window member to nil if minibuf_level is 0.
14943 (compare_window_configurations): Compare minibuf_selected_window.
14944
14945 * window.h: (Vminibuf_selected_window): Declare extern.
14946
14947 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
14948 entry to minibuffer or on entry from a non-minibuffer window.
14949
14950 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
14951 Vminibuf_selected_window instead of Vminibuf_scroll_window.
14952
14953 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
14954 instead of Vminibuf_scroll_window when deciding in which window
14955 the region should be highlighted. Consequently, the region remains
14956 highlighteded even when a completion buffer is also displayed.
14957
149582002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
14959
14960 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
14961
14962 * xselect.c (Qcompound_text_with_extensions): Renamed from
14963 Qcompound_text_no_extensions.
14964 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
14965
149662002-02-26 Juanma Barranquero <lektu@terra.es>
14967
14968 * w32proc.c (syms_of_ntproc): Doc fix.
14969
149702002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14971
14972 * intervals.h: Include "dispextern.h" unconditionally.
14973
149742002-02-24 Jason Rumney <jasonr@gnu.org>
14975
14976 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
14977 and disp-table.elc.
14978 (lisp): Add emacs-lisp/backquote.elc.
14979
149802002-02-24 Kim F. Storm <storm@cua.dk>
14981
3419757d 14982 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
14983 The validation of the event type was too strict as it didn't
14984 allow string events; buffer names are used in bindings for
14985 menu-bar-select-buffer (see `menu-bar-update-buffers').
14986
149872002-02-23 Kim F. Storm <storm@cua.dk>
14988
14989 The following changes rework my patch of 2002-02-06 which
14990 added command remapping by entering the commands directly into
14991 the keymaps. Now, command remapping uses an explicit `remap'
14992 prefix in the keymaps, i.e. [remap COMMAND].
14993
14994 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 14995 (is_command_symbol): Remove function.
048addec
JD
14996 (Fdefine_key): No longer accept a symbol for KEY.
14997 Added validation of [remap COMMAND] argument for KEY.
14998 The DEF is no longer required to be a symbol when remapping a command.
14999 (Fremap_command): New function to remap command through keymaps.
15000 (Flookup_key): Perform command remapping initiated by
15001 Fremap_command directly for speed.
15002 (Fkey_binding): Use Fremap_command for command remapping.
15003 (where_is_internal): Handle new command remapping representation.
15004 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
15005 staticpro them. Defsubr Fremap_command.
15006
15007 * keymap.h (Fremap_command): Declare extern.
15008 (is_command_symbol): Remove extern.
15009
15010 * keyboard.c (command_loop_1): Use Fremap_command for command
15011 remapping; now try command remapping for all symbols.
15012
150132002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
15014
15015 * coding.h (run_pre_post_conversion_on_str): Add prototype.
15016
150172002-02-23 Jason Rumney <jasonr@gnu.org>
15018
15019 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
15020 on the string before encoding it.
15021 (Fw32_get_clipboard_data): Run post-read-conversion on the string
15022 after decoding it.
15023
15024 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
15025
150262002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15027
15028 * w32term.c (enter_timestamp): Remove unused static variable to
15029 prevent warning.
15030
15031 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
15032
150332002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
15034
15035 * w16select.c (Fw16_get_clipboard_data): Fix last change.
15036
15037 * xselect.c (selection_data_to_lisp_data): Fix last change.
15038
150392002-02-22 Jason Rumney <jasonr@gnu.org>
15040
15041 * w32term.h (struct w32_output): New member menu_command_in_progress.
15042
15043 * w32menu.c (menubar_selection_callback): Free the menu and
15044 clear the menu_command_in_progress flag.
15045
15046 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
15047 (menu_free_timer): New variable.
15048 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
15049 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
15050 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
15051 menu command is in progress.
15052 <WM_COMMAND>: Set the menu_command_in_progress flag.
15053 Kill any menu_free_timer that is running.
15054
15055 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
15056 Call ExtTextOutA rather than ExtTextOut.
15057
150582002-02-22 Eli Zaretskii <eliz@gnu.org>
15059
15060 * puresize.h (BASE_PURESIZE): Increase to 755000.
15061
150622002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
15063
15064 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
15065 on the string before encoding it.
15066 (Fw16_get_clipboard_data): Run post-read-conversion on the string
15067 after decoding it.
15068
150692002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
15070
15071 Support for ICCCM Extended Segments in X selections:
15072
15073 * xselect.c <Qcompound_text_no_extensions>: New variable.
15074 (syms_of_xselect): Intern and staticpro it.
15075 (selection_data_to_lisp_data): Run post-read-conversion on decoded
15076 selection text.
15077 (lisp_data_to_selection_data): If next-selection-coding-system is
15078 compound-text-no-extensions, set the type of selection to be
15079 compound-text.
15080
15081 * xterm.h (x_encode_text): Update prototype.
15082
15083 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
15084 callers changed. If SELECTIONP is non-zero, run the
15085 pre-write-conversion function before encoding the selection text.
15086
150872002-02-21 Kim F. Storm <storm@cua.dk>
15088
15089 * frame.c (syms_of_frame): Change mouse-highlight default to t.
15090
15091 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
15092 Correct composing of language-change event.
15093
150942002-02-20 Kim F. Storm <storm@cua.dk>
15095
15096 * keyboard.c (menu_bar_items): Don't include keymap or local-map
15097 bindings at PT when building menu (the menu is not updated often
15098 enough for this to work reliable).
15099 (tool_bar_items): Likewise.
15100 (current_active_maps): Removed unused (and buggy) function.
15101
151022002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15103
15104 * xfns.c (gif_load): Use correct width and height for GIF images.
15105
151062002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
15107
15108 * floatfns.c (Fatan): Accept an optional second arg and call
15109 atan2 if passed 2 args.
15110
151112002-02-18 Jason Rumney <jasonr@gnu.org>
15112
15113 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
15114
151152002-02-17 Jason Rumney <jasonr@gnu.org>
15116
15117 * w32term.c (x_autoselect_window_p): New variable.
15118 (syms_of_w32term): DEFVAR_BOOL and initialize it.
15119 (note_mouse_movement): Use it.
15120
15121 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
15122
15123 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
15124
15125 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
15126 New variables.
15127 (syms_of_w32fns): Intern and staticpro them.
15128 (x_frame_parms) <"fullscreen">: New parameter.
15129 (x_fullscreen_move, x_set_fullscreen): New functions.
15130 (x_set_frame_parameters): Support Qfullscreen.
15131 (x_real_positions): Save x/y_pixels_diff frame params.
15132 (x_figure_window_size): Support full-screen frames.
15133 (Fx_create_frame): Default the fullscreen parameter.
15134
15135 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
15136 (x_fullscreen_adjust): New functions.
15137 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
15138 fullscreen. Call x_check_fullscreen_move, and set the
15139 want_fullscreen member of output_data.w32
15140 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
15141
15142 * w32term.h: New enum for FULLSCREEN_* constants.
15143 (struct w32_output): New members want_fullscreen, x_pixels_diff,
15144 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
15145 (x-fullscreen-adjust): New prototype.
15146
151472002-02-17 Kim F. Storm <storm@cua.dk>
15148
15149 * frame.c: (Vmouse_highlight): New variable.
15150 (syms_of_frame): DEFVAR_LISP it.
15151
15152 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 15153
048addec 15154 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 15155
048addec
JD
15156 * xterm.c (disable_mouse_highlight): Removed variable.
15157 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
15158 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15159 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
15160 and on after keyboard input.
15161 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 15162
048addec 15163 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 15164
048addec
JD
15165 * msdos.c (disable_mouse_highlight): Removed variable.
15166 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15167 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
15168 (internal_terminal_init): Initialize mouse_face_hidden.
15169 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
15170 and on after keyboard input.
4f1b1854 15171
048addec 15172 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 15173
048addec
JD
15174 * w32term.c (disable_mouse_highlight): Removed variable.
15175 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
15176 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15177 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
15178 and on after keyboard input.
15179 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 15180
048addec 151812002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 15182
048addec
JD
15183 * msdos.c (last_mouse_window): New variable.
15184 (dos_rawgetc): Fix last change--if the mouse is in the same window
15185 as recorded in last_mouse_window, don't select this window.
5cb6905d 15186
048addec 15187 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 15188
048addec
JD
15189 * msdos.c (x_autoselect_window_p): New variable.
15190 (syms_of_msdos): Defvar it.
15191 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
15192 which the last mouse movement occured, unless it is already selected.
437dfb9f 15193
048addec
JD
15194 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
15195 New variables.
15196 (syms_of_xdisp): DEVFAR them.
15197 (hscroll_window_tree): Use automatic_hscroll_margin and
15198 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 15199
048addec 152002002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 15201
048addec
JD
15202 * xterm.c (x-autoselect-window): New variable.
15203 (note_mouse_movement): Use it.
9f696a00 15204
048addec 15205 * keyboard.c: Do not include "systime.h" twice.
d57966d7 15206
048addec 152072002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 15208
bfa02563 15209 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 15210
048addec 15211 * alloc.c (NSTATICS): Increase to 1280.
74779f52 15212
048addec 152132002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 15214
048addec 15215 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 15216
048addec
JD
15217 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
15218 (Vx_super_keysym): New variables.
15219 (syms_of_xterm): DEFVAR_LISP them.
15220 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
15221 variables to determine which keys to use for the various modifiers.
a474d59c 15222
048addec 152232002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 15224
048addec
JD
15225 * window.c: (Vmode_line_in_non_selected_windows): Removed.
15226 (mode_line_in_non_selected_windows): New variable.
15227 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 15228
048addec
JD
15229 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
15230 Use mode_line_in_non_selected_windows.
15231 (mode_line_in_non_selected_windows): Declare extern.
15232 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 15233
048addec 152342002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 15235
048addec
JD
15236 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
15237 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
15238 (Fclear_this_command_keys): Doc fixes.
2d10309f 15239
048addec
JD
15240 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
15241 (update_face_from_frame_parameter): Increment face_change_count
15242 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 15243
048addec
JD
15244 * xdisp.c (QCpropertize): New variable.
15245 (mode_line_proptrans_alist): New variable.
15246 (display_mode_element): New arg PROPS; all calls changed.
15247 Implement this, for strings.
15248 Handle literal output of strings by sharing the
15249 main-line code for strings, using local var `literal'.
15250 Handle :propertize feature.
15251 (syms_of_xdisp): Initialze and staticpro QCpropertize and
15252 mode_line_proptrans_alist.
0b1e6b54 15253
048addec 152542002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 15255
048addec
JD
15256 * window.c: (Vmode_line_in_non_selected_windows): New variable.
15257 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 15258
048addec
JD
15259 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
15260 (CURRENT_MODE_LINE_FACE_ID): Use it.
15261 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 15262
048addec
JD
15263 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
15264 to get mode line face.
e17144de 15265
048addec 152662002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 15267
048addec
JD
15268 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
15269 variables; cus-start.el doesn't need them anymore.
44368f8f 15270
048addec 152712002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 15272
048addec
JD
15273 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
15274 reduction. This fixes a display problem where stray newlines were
15275 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 15276
048addec 152772002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 15278
048addec 15279 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 15280
048addec 15281 * xdisp.c (display_mode_lines): Fix last change.
453c5510 15282
048addec 152832002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 15284
048addec
JD
15285 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
15286 match each other.
15287 (w32_load_system_font): Prevent Cleartype fonts from loading.
15288 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 15289
048addec 152902002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 15291
048addec
JD
15292 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
15293 (CURRENT_MODE_LINE_HEIGHT): Use it.
15294 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 15295
048addec
JD
15296 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
15297 (pos_visible_p, handle_face_prop): Likewise.
15298 (display_mode_lines): Likewise, but for the real selected window.
15299 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 15300
048addec
JD
15301 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
15302 in non-selected windows.
15303 (realize_basic_faces): Realize it.
15304 (syms_of_term): Intern and staticpro it.
308dd672 15305
048addec 153062002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 15307
048addec
JD
15308 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
15309 Changed mail addresses to emacs-devel@gnu.org.
308dd672 15310
048addec 153112002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 15312
048addec
JD
15313 * fileio.c (Fsubstitute_in_file_name): If the file name includes
15314 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 15315
048addec 15316 * floatfns.c (Fround): Doc fix.
3c1e6b46 15317
048addec 153182002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 15319
048addec 15320 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 15321
048addec 153222002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 15323
048addec 15324 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 15325
048addec 153262002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 15327
048addec
JD
15328 * keymap.c (where_is_internal): Only check whether definition is
15329 remapped if it fulfills is_command_symbol.
0065bb74 15330
048addec 153312002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 15332
048addec 15333 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 15334
048addec 15335 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 15336
048addec 153372002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 15338
048addec
JD
15339 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
15340 defining command remapping. Doc updated.
15341 (Flookup_key): Remap command through keymap if KEY is a symbol.
15342 (is_command_symbol): New function.
15343 (Fkey_binding): Use it. New optional argument NO-REMAP.
15344 Doc updated. Callers changed. Perform command remapping via
15345 recursive call unless that arg is non-nil.
15346 (where_is_internal): New argument no_remap. Callers changed.
15347 Call recursively to find original key bindings for a remapped
15348 comand unless that arg is non-nil.
15349 (Fwhere_is_internal): New optional argument NO-REMAP.
15350 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 15351
048addec 15352 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 15353 (is_command_symbol): Add prototype.
0d8466cc 15354
048addec
JD
15355 * keyboard.c (Vthis_original_command): New variable.
15356 (syms_of_keyboard): DEFVAR_LISP it.
15357 (command_loop_1): Set it, and perform command remapping.
15fff01d 15358
048addec 153592002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 15360
048addec 15361 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 15362
048addec 153632002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 15364
048addec 15365 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 15366
048addec 153672002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 15368
048addec 15369 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 15370
048addec 153712002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 15372
048addec 15373 * filelock.c (S_ISLNK): Define if not defined.
3a232704 15374
048addec 153752002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 15376
048addec 15377 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 15378
048addec
JD
15379 * lread.c (read1): Redesign strategy for force_multibyte and
15380 force_singlebyte. Now is_multibyte records whether read_buffer
15381 is multibyte. Encountering any multibyte character makes it so.
4e02881b 15382
048addec 153832002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 15384
048addec
JD
15385 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
15386 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 15387
048addec 153882002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 15389
048addec
JD
15390 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
15391 latter never being defined on GNU/Linux.
749f499f 15392
048addec 153932002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 15394
048addec
JD
15395 * xfaces.c (realize_default_face): Don't set the weight and slant of
15396 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 15397
048addec 153982002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 15399
048addec
JD
15400 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
15401 Call cancel_hourglass unconditionally.
d0fd26dd 15402
048addec
JD
15403 * eval.c (Fsignal): Remove duplicated declaration of
15404 the variable `display_hourglass_p'.
b4c45162 15405
048addec 154062002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 15407
048addec 15408 * editfns.c (region_limit): Nicer error message.
c95eaa61 15409
048addec
JD
15410 * coding.c (decode_composition_emacs_mule):
15411 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 15412
048addec
JD
15413 * callint.c (check_mark): New arg to specify clearer error message.
15414 Callers changed.
c95eaa61 15415
048addec 154162002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 15417
048addec 15418 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 15419
048addec 154202002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 15421
048addec
JD
15422 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
15423 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
15424 Fix doc-strings.
c95eaa61 15425
048addec 154262002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 15427
048addec 15428 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 15429
048addec
JD
15430 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
15431 and scroll_up_aggressively.
c95eaa61 15432
048addec 154332002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 15434
048addec 15435 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 15436
048addec 154372002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 15438
048addec
JD
15439 * textprop.c (Fnext_property_change, Fnext_single_property_change)
15440 (Fprevious_property_change, Fprevious_single_property_change):
15441 Stay within the narrowed-buffer boundaries.
e2c3786a 15442
048addec 154432002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 15444
048addec
JD
15445 * term.c (Ftty_display_color_cells): New function.
15446 (syms_of_term): Defsubr it.
15447 (Ftty_display_color_cells, Ftty_display_color_p): Change the
15448 argument name to DISPLAY. Doc fix.
bf794306 15449
048addec
JD
15450 * dispextern.h: Add prototype for set_tty_color_mode and
15451 tty_setup_colors.
bf794306 15452
048addec 154532002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 15454
048addec
JD
15455 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
15456 If region left to draw is not what was expected, mark the frame as
15457 garbaged.
62582985 15458
048addec
JD
15459 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
15460 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 15461
048addec 154622002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 15463
048addec
JD
15464 * w32term.c (x_update_window_begin): Only hide caret if
15465 w32_use_visible_system_caret is set.
15466 (x_update_window_end): Only show caret if
15467 w32_use_visible_system_caret is set.
15468 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 15469
048addec 15470 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 15471
048addec 154722002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 15473
048addec
JD
15474 * unexelf.c (unexec): Define n so as to cause compilation error
15475 for the code where people have often written n instead of nn.
1e9a6186 15476
048addec 15477 * .gdbinit (hookpost-run): Defined.
1e9a6186 15478
048addec 154792002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 15480
048addec 15481 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 15482
048addec 154832002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 15484
048addec
JD
15485 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
15486 if fullscreen is being set.
7c75be36 15487
048addec 154882002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 15489
048addec
JD
15490 * minibuf.c (Fminibuffer_contents)
15491 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
15492 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 15493
048addec 154942002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 15495
048addec 15496 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 15497
048addec 154982002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 15499
048addec
JD
15500 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
15501 height before comparison.
15502 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 15503
048addec 155042002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 15505
048addec
JD
15506 * w32term.c (w32_system_caret_width): Remove.
15507 (w32_use_visible_system_caret): New user flag.
15508 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
15509 Windows reports a screen reader running.
15510 (x_update_window_begin): Hide the system caret.
15511 (x_update_window_end): Show the system caret.
15512 (x_display_and_set_cursor): Don't draw a cursor when
15513 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 15514
048addec
JD
15515 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
15516 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
15517 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
15518 the user requests it. Use system default width when creating.
15519 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 15520
048addec
JD
15521 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
15522 New window messages.
905cc05a 15523
048addec 155242002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 15525
048addec 15526 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 15527
048addec 155282002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 15529
048addec 15530 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 15531
048addec 155322002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 15533
048addec 15534 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 15535
048addec 155362002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 15537
048addec
JD
15538 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
15539 that Windows returns. If a double check fails, try to guess how
15540 ExtTextOut is going to act.
4d0fa4f3 15541
048addec
JD
15542 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
15543 in place of stricmp.
15544 (w32_list_synthesized_fonts): Removed.
15545 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
15546 (struct enumfont_t): New element; list.
15547 (enum_font_cb2): List all style and charset variations of a font.
15548 (Fw32_select_font): New optional argument; include_proportional.
15549 Exclude vertical fonts. Exclude proportional fonts unless
15550 include_proportional is non-nil.
15551 (w32_enable_synthesized_fonts): Change to a boolean.
15552 (Fw32_send_sys_command): Doc fix.
493faf20 15553
048addec 155542002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 15555
048addec
JD
15556 * dispnew.c (update_frame): Move the variable `tem' to the block
15557 where it is used.
4971e491 15558
048addec 155592002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 15560
048addec
JD
15561 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
15562 call to face-set-after-frame-default.
4971e491 15563
048addec 155642002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 15565
048addec
JD
15566 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
15567 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 15568
048addec 155692002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 15570
048addec
JD
15571 * window.c (enlarge_window): When exceeding size of parent,
15572 directly delete all the siblings instead of trying to resize it.
201c831a 15573
048addec 155742002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 15575
048addec 15576 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 15577
048addec 155782002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 15579
048addec 15580 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 15581
048addec 155822002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 15583
048addec
JD
15584 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
15585 is invisible. This can happen if cursor is on top line of a
15586 window, and we switch to a buffer with a header line.
d77fbc16 15587
048addec 15588 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 15589
048addec 155902002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 15591
048addec
JD
15592 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
15593 `dont_resize' only when used.
61e3b944 15594
048addec 15595 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 15596
048addec 155972002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 15598
048addec
JD
15599 * xdisp.c (display_mode_element): When computing charpos, depend
15600 on multibyteness of elt, not the text in field.
8af01033 15601
048addec 156022002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 15603
048addec
JD
15604 * buffer.c (Fkill_all_local_variables):
15605 Increment `update_mode_lines' only once.
7363986a 15606
048addec 156072002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 15608
048addec
JD
15609 * lisp.h (adjust_after_replace_noundo)
15610 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 15611
048addec 15612 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 15613
048addec 156142002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 15615
048addec
JD
15616 Support for the --color command-line argument and tty-color-mode
15617 frame parameter:
f1a85b89 15618
048addec
JD
15619 * term.c (tty_default_color_capabilities, tty_setup_colors)
15620 (set_tty_color_mode): New functions.
15621 (term_init): Call tty_default_color_capabilities.
15622 (Qtty_color_mode_alist): New variable.
15623 (syms_of_term): Intern and staticpro it.
f1a85b89 15624
048addec
JD
15625 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
15626 frames.
15627 (do_switch_frame): For termcap frames, switch the tty
15628 color mode as specified by the frame's parameters.
15629 (Qtty_color_mode): New variable.
15630 (syms_of_frame): Intern and staticpro it.
3a62677f 15631
048addec
JD
15632 * emacs.c (USAGE2): Add the --color option.
15633 (standard_args): Ditto.
72244db2 15634
048addec
JD
156352002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15636
15637 * xterm.h (struct x_output): New members want_fullscreen,
15638 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
15639 y_pixels_outer_diff.
15640 New enum for FULLSCREEN_* constants.
15641 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
15642 is NULL.
15643 (x_fullscreen_adjust): Add prototype.
3a62677f 15644
048addec
JD
15645 * emacs.c (USAGE2): Add the new full-screen arguments.
15646 (standard_args): Ditto.
3a62677f 15647
048addec
JD
15648 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
15649 New variables.
15650 (syms_of_xfns): Intern and staticpro them.
15651 (x_frame_parms) <"fullscreen">: New parameter.
15652 (x_fullscreen_move, x_set_fullscreen): New functions.
15653 (x_set_frame_parameters): Support for Qfullscreen.
15654 (x_real_positions): More accurate computation of the frame position.
15655 (x_figure_window_size): Support full-screen frames.
15656 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 15657
048addec
JD
15658 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
15659 (XTread_socket) <Expose>: Call x_check_fullscreen.
15660 <ConfigureNotify>: Don't resize to fullscreen.
15661 Call x_check_fullscreen_move, and set the want_fullscreen member of
15662 output_data.x.
3a62677f 15663
048addec 156642002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 15665
048addec
JD
15666 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
15667 for mice with more than 3 buttons.
b8523839 15668
048addec
JD
15669 * w32term.c (parse_button): New parameter xbutton. Callers changed.
15670 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 15671
048addec
JD
15672 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
15673 (syms_of_w32fns): DEFVAR_BOOL it.
15674 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 15675
048addec 156762002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 15677
048addec 15678 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 15679
048addec 156802002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 15681
048addec 15682 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 15683
048addec 156842002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 15685
048addec
JD
15686 * .gdbinit (xbuffer): Remove address operator since data is now a
15687 pointer.
c93674bb 15688
048addec 156892002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 15690
048addec 15691 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 15692
048addec 15693 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 15694
048addec 156952002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 15696
048addec
JD
15697 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
15698 when checking for multiple frames.
91175673 15699
048addec 157002002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 15701
048addec
JD
15702 * window.c (delete_window): Rewrite the code for changing the
15703 selected window to handle the case where WINDOW is not a leaf.
91175673 15704
048addec 157052002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 15706
048addec
JD
15707 * process.c (send_process): Set src_multibyte to 1 after the call
15708 top setup_coding_system, not before the call.
e0fead5d 15709
048addec 157102002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 15711
048addec
JD
15712 * xmenu.c (set_frame_menubar, xmenu_show):
15713 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 15714
048addec
JD
15715 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
15716 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 15717
048addec 157182002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 15719
048addec 15720 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 15721
048addec 15722 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 15723
048addec 15724 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 15725
048addec 157262002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 15727
048addec
JD
15728 * insdel.c (make_gap_larger): Make sure buffer size does not
15729 overflow range of int.
62854fe2 15730
048addec 157312002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 15732
048addec
JD
15733 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15734 OVERLAPS_P.
656f46bb 15735
048addec 15736 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 15737
048addec
JD
15738 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
15739 to the left or to the right of the pointer, put it against
15740 the left screen edge.
15741 (x_frame_parms): Add missing braces around initializer.
036e218d 15742
048addec
JD
15743 * w32term.c (x_setup_relief_colors): Don't compute an image's
15744 background color if it doesn't have a Pixmap.
15745 (notice_overwritten_cursor): Don't depend on
15746 output_cursor and updated_area. Compare pixel coordinates with
15747 window's cursor pixel coordinates.
15748 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15749 Call notice_overwritten_cursor with new arg list.
15750 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15751 unconditionally.
15752 (x_draw_image_relief): Use predefined macro instead of
15753 constant when the value of `tool_bar_button_relief' is negative.
036e218d 15754
048addec 15755 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 15756
048addec 157572002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 15758
048addec 15759 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 15760
048addec 157612002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 15762
048addec
JD
15763 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
15764 (Fkey_binding): Try the `keymap' property map first.
15765 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
15766 minor mode bindings.
90647b07 15767
048addec 157682002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 15769
3419757d 15770 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 15771
048addec 157722002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 15773
048addec
JD
15774 * keyboard.c (read_key_sequence): Handle the keymap property
15775 before minor mode maps.
9fbc32aa 15776
048addec
JD
15777 * editfns.c (Fformat): Update thissize from field_width
15778 based on the actual width, in the string case.
036e218d 15779
048addec 157802002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 15781
048addec
JD
15782 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
15783 when used as truth value to prevent gcc warnings.
9fbc32aa 15784
048addec
JD
15785 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
15786 * w32proc.c: Include <config.h>.
9fbc32aa 15787
048addec 157882002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 15789
048addec
JD
15790 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
15791 not EMACS_INT, to make them compatible with DEFVAR_INT.
15792 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 15793
048addec 157942002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 15795
048addec
JD
15796 * print.c (print_object): Test print_escape_nonascii only for
15797 unibyte strings.
15798 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
15799 when outputting to a multibyte buffer.
9fbc32aa 15800
048addec 158012001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 15802
048addec
JD
15803 * print.c (print_object): In multibyte string, use hex escapes.
15804 Use octal only for unibyte strings.
15805 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 15806
048addec
JD
15807 * lread.c (read_escape): New arg BYTEREP for reporting whether
15808 escape forces unibyte or multibyte.
15809 (read1): When reading a string, take note of that info.
0142178a 15810
048addec 158112001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 15812
048addec
JD
15813 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
15814 comparison to test lisp value returned by Fget.
d4824a5d 15815
048addec 158162001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 15817
048addec 15818 * lisp.h (max_specpdl_size): Add declaration.
b1356234 15819
048addec 15820 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 15821
048addec
JD
15822 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
15823 Handle modifier bits. Correct typo in error message.
99e380ee 15824
048addec 158252001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 15826
048addec
JD
15827 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
15828 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
15829 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
15830 Update calls to Fdefine_abbrev.
15831 (write_abbrev): Update for changed data format.
15832 Don't list "system" abbrevs.
15833 (Fexpand_abbrev): Update use count with new data format.
15834 (describe_abbrev): Update for changed data format.
15835 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 15836
048addec 15837 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 15838
048addec 15839 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 15840
048addec
JD
15841 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
15842 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 15843
048addec
JD
15844 * keymap.c (Flookup_key): Error message if key has wrong data type.
15845 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
15846 (exclude_key): New variable.
59a86c99 15847
048addec 158482001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 15849
048addec
JD
15850 * xterm.c (x_setup_relief_colors): Don't compute an image's
15851 background color if it doesn't have a Pixmap.
eb77a5f4 15852
048addec
JD
15853 * xterm.c (notice_overwritten_cursor): Don't depend on
15854 output_cursor and updated_area. Compare pixel coordinates with
15855 window's cursor pixel coordinates.
15856 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15857 Call notice_overwritten_cursor with new arg list.
15858 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15859 unconditionally.
eb77a5f4 15860
048addec
JD
15861 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
15862 height of the cursor line to the amount to scroll.
eb77a5f4 15863
048addec 158642001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 15865
048addec
JD
15866 * intervals.c (set_point_both): The position after an invisible,
15867 intangible character is not an acceptable stopping point.
bb313871 15868
048addec 158692001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 15870
048addec
JD
15871 * window.c (enlarge_window): In new preserve_before code, convert
15872 CURBEG from lisp object to integer before doing arithmetic.
6052529b 15873
048addec 158742001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 15875
048addec 15876 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 15877
048addec 158782001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 15879
048addec
JD
15880 * keyboard.c (record_char): Ignore duplicate help-echo events only
15881 separated by mouse-movement. When tracking mouse, only record
15882 first and last mouse-movement event in same window.
15883 Don't record mouse-movement events in keyboard macros.
3ce081f5 15884
048addec 158852001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 15886
048addec
JD
15887 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
15888 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 15889
048addec
JD
15890 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
15891 instead of Fstring_as_unibyte.
9fabb2f5 15892
048addec 158932001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 15894
048addec 15895 The following changes remove mocklisp support:
9fabb2f5 15896
048addec 15897 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 15898
048addec
JD
15899 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
15900 `Qmocklisp' and `Qmocklisp_arguments'.
15901 Remove prototype of syms_of_mocklisp.
2fa0eedf 15902
048addec 15903 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 15904
048addec
JD
15905 * callint.c: Do not include mocklisp.h.
15906 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 15907
048addec
JD
15908 * eval.c: Remove variables `Qmocklisp_arguments',
15909 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
15910 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
15911 Do not test for mocklisp case.
15912 (Fwhile): Remove unused variable `tem'.
15913 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 15914
048addec 15915 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 15916
048addec 15917 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 15918
048addec 15919 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 15920
048addec 159212001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 15922
048addec
JD
15923 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
15924 to the left or to the right of the pointer, put it against
15925 the left screen edge.
6108b49c 15926
048addec 159272001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 15928
048addec
JD
15929 * Makefile.in (distclean): Remove .gdbinit if we are building
15930 outside the source tree.
5eea19a4 15931
048addec 159322001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 15933
048addec 15934 * w32.c (emacs_root_dir): New function.
5eea19a4 15935
048addec 15936 * msdos.c (emacs_root_dir): New function.
5eea19a4 15937
048addec
JD
15938 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
15939 of the current drive as the fallback for default_directory.
438e57dd 15940
048addec
JD
15941 * dired.c (file_name_completion): Run the elements of
15942 completion-ignored-extensions through ENCODE_FILE.
438e57dd 15943
048addec
JD
15944 * lisp.h (scmp): Remove prototype, since it's now a static
15945 function private to dired.c.
c88e5347 15946
048addec 159472001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 15948
048addec
JD
15949 * dired.c (scmp): Function moved from minibuf.c.
15950 Delete multibyte handling--used only on encoded strings.
59ce1461 15951
048addec 15952 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 15953
048addec 15954 * fns.c (merge): Add QUIT call.
59ce1461 15955
048addec 159562001-12-18 Dave Love <fx@gnu.org>
8727d588 15957
048addec
JD
15958 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
15959 language/georgian.el.
8727d588 15960
048addec 159612001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 15962
048addec
JD
15963 * Makefile.in (lisp, shortlisp): Synchronize with changes to
15964 lisp/Makefile.in:DONTCOMPILE.
cc63037e 15965
048addec 159662001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 15967
048addec
JD
15968 * xdisp.c (window_box_height): Do not return negative values.
15969 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 15970
048addec 15971 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 15972
048addec 15973 * term.c (keys): Likewise.
deece6f5 15974
048addec 15975 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 15976
048addec 159772001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 15978
048addec
JD
15979 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
15980 patch (COMPOSING_P, not COMPOSING).
28ff4293 15981
048addec 159822001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 15983
048addec 15984 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 15985
048addec
JD
15986 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
15987 before calling decode_coding.
9b46de40 15988
048addec 15989 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 15990
048addec
JD
15991 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
15992 instead of only for COMPOSITION_DISABLED.
9b46de40 15993
048addec 159942001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 15995
048addec 15996 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 15997
048addec 15998 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 15999
048addec
JD
16000 * buffer.h (struct buffer): New field `display_error_modiff'.
16001 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 16002
048addec 16003 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 16004
048addec
JD
16005 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
16006 Call redisplay_window, but not if display_error_modiff field says no.
16007 (redisplay_window_error): New function.
16008 (displayed_buffer): New variable.
16009 (redisplay_internal, redisplay_windows): Call the new functions
16010 instead of redisplay_window directly.
2cd23960 16011
048addec 160122001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 16013
048addec 16014 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 16015
048addec 160162001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 16017
048addec 16018 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 16019 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 16020 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 16021
048addec 160222001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 16023
048addec
JD
16024 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
16025 parameter have a numeric value all the time.
f6fa0866 16026
048addec 16027 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 16028
048addec 160292001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 16030
048addec 16031 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 16032
048addec
JD
16033 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
16034 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 16035
048addec 160362001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 16037
048addec
JD
16038 * xdisp.c (move_it_vertically_backward): Change heuristic
16039 for the case that we didn't move far enough initially.
91c153e2 16040
048addec
JD
16041 * window.c (Frecenter): Simplify computation in the case of window
16042 system frames and ARG < 0; use window_box_height.
65b7d3e7 16043
048addec 160442001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 16045
048addec
JD
16046 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
16047 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 16048
048addec 160492001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 16050
048addec
JD
16051 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
16052 arg is negative.
be676094 16053
048addec 160542001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 16055
048addec
JD
16056 * m/hp800.h: Split the __hpux conditional into the parts
16057 that are right for GNU/Linux too and the parts that are not.
16058 Use the former if GNU_LINUX.
16059 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 16060
048addec 16061 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 16062
048addec 160632001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 16064
048addec
JD
16065 * macros.c, msdos.c, w16select.c: Change doc-string comments to
16066 `new style' [w/`doc:' keyword].
032a857d 16067
048addec 160682001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 16069
048addec
JD
16070 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
16071 before using.
b6270150 16072
048addec 160732001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 16074
048addec
JD
16075 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
16076 keyword].
98cbb9fa 16077
048addec 160782001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 16079
048addec 16080 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 16081
048addec 16082 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 16083
048addec 160842001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 16085
048addec 16086 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 16087 Add comment to explain where the struct came from.
048addec
JD
16088 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
16089 (add_menu_item): Process pop-up menus first to avoid memory leak.
16090 (add_menu_item, w32_menu_display_help): Use `help' field as
16091 Lisp_Object.
16092 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 16093
048addec 160942001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 16095
048addec 16096 * COPYING: Moved back.
fa336b91 16097
048addec
JD
16098 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
16099 Add parentheses around && within ||.
077907d4 16100
048addec 16101 * indent.c (compute_motion): Likewise.
aa2af83a 16102
048addec 16103 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 16104
048addec
JD
16105 * coding.c (setup_coding_system, shrink_encoding_region)
16106 (Fdecode_sjis_char): Likewise.
60a653f1 16107
048addec 161082001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 16109
048addec
JD
16110 * xdisp.c (display_mode_element): Don't read past end of string if
16111 it ends with '%'.
60a653f1 16112
048addec
JD
16113 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
16114 can hold.
60a653f1 16115
048addec
JD
16116 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
16117 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
16118 type changed to Lisp_Object.
16119 (syms_of_data): DEFVAR_LISP them.
60a653f1 16120
048addec 161212001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 16122
048addec
JD
16123 * callproc.c (init_callproc): Set Vdata_directory based on the source
16124 location whenever Emacs was run uninstalled.
60a653f1 16125
048addec 161262001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 16127
048addec
JD
16128 * config.in (HAVE_WORKING_VFORK): New #undefs.
16129 * process.c (create_process):
16130 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
16131 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
16132 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
16133 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
16134 * m/intel386.h (HAVE_VFORK): Likewise.
16135 * m/mips-siemens.h (HAVE_VFORK): Likewise.
16136 * m/mips.h (HAVE_VFORK): Likewise.
16137 * s/freebsd.h (vfork): Remove #define.
16138 * s/lynxos.h (HAVE_VFORK): Remove #undef.
16139 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 16140
048addec 161412001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 16142
048addec
JD
16143 * s/hpux10.h (random): Add undef.
16144 (HAVE_RANDOM): Define it just once.
60a653f1 16145
048addec 161462001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16147
048addec 16148 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 16149
048addec 161502001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 16151
048addec
JD
16152 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
16153 scroll bars of the frame before deleting the frame itself. If the
16154 frame has a widget, delete the frame with XtDestroyWidget, and do
16155 not call XDestroyWindow before that.
60a653f1 16156
048addec 161572001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 16158
048addec 16159 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 16160
048addec 16161 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 16162
048addec 161632001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 16164
048addec
JD
16165 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
16166 excessively large.
60a653f1 16167
048addec
JD
16168 * insdel.c (make_gap_larger): New function.
16169 (make_gap_smaller): New function.
16170 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
16171 Call make_gap_smaller if arg is negative.
60a653f1 16172
048addec 161732001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16174
048addec
JD
16175 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
16176 Pass a dummy argument when calling interrupt_signal.
16177 (parse_menu_item): Mark disabled items before checking for empty def.
16178 (read_char_minibuf_menu_prompt): Make safety more visible.
16179 (read_key_sequence): Add a `first_unbound' variable.
16180 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
16181 unbound prefix as soon as we can detect it.
60a653f1 16182
048addec
JD
16183 * doc.c (Fsnarf_documentation): Add prototype.
16184 (get_doc_string): Handle negative arguments.
16185 (Fdocumentation): Use AREF and ASIZE.
16186 Move the calls to get_doc_string to a single place.
16187 Don't confuse an interactive-spec for a docstring reference.
16188 (Fdocumentation_property): Take advantage of the fact that
16189 get_doc_string now ignores the sign of the docstring position.
60a653f1 16190
048addec 16191 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 16192
048addec 161932001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16194
a64387ee 16195 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 16196
048addec 161972001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16198
048addec
JD
16199 * xterm.c (x_draw_image_relief): Use predefined macro instead of
16200 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 16201
048addec 162022001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 16203
048addec
JD
16204 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
16205 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 16206
048addec 16207 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 16208
048addec 162092001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16210
048addec 16211 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 16212
048addec 162132001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 16214
048addec 16215 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 16216
048addec 162172001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 16218
f63fd14e 16219 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 16220
048addec
JD
16221 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
16222 [!WM_MOUSELEAVE]: Define.
60a653f1 16223
048addec
JD
16224 * w32menu.c (current_popup_menu, get_menu_item_info):
16225 (set_menu_item_info): New vars.
16226 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
16227 (w32_menu_show): Set current_popup_menu.
16228 (add_menu_item): Allocate new strings for owner-drawn menu items
16229 and help strings.
16230 Use owner-draw for disabled menu items again.
16231 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
16232 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 16233
048addec
JD
16234 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
16235 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
16236 <WM_EXITMENULOOP>: Free menu strings.
16237 <WM_MOUSELEAVE>: Stop tracking mouse.
16238 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 16239
048addec
JD
16240 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
16241 and mouse face.
60a653f1 16242
048addec 162432001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 16244
048addec
JD
16245 The following changes add left-fringe and right-fringe
16246 frame parameters to adjust fringe widths, or remove one or
16247 both fringes.
60a653f1 16248
048addec
JD
16249 * frame.h (struct frame): Remove trunc_area_pixel_width and
16250 trunc_area_cols fields.
16251 (Qleft_fringe, Qright_fringe): Declare.
16252 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 16253
048addec
JD
16254 * frame.c (Qleft_fringe, Qright_fringe): New vars.
16255 (syms_of_frame): Initialize them.
60a653f1 16256
048addec
JD
16257 * window.c (coordinates_in_window): Handle separate left and right
16258 fringe widths.
60a653f1 16259
048addec
JD
16260 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
16261 and fringe_cols fields.
16262 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
16263 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
16264 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
16265 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
16266 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
16267 (x_compute_fringe_widths): Add prototype.
60a653f1 16268
048addec
JD
16269 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
16270 fill fringe evenly with small dashes.
f63fd14e 16271 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
16272 clip the new ZV bitmap to avoid jitter between rows.
16273 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
16274 background. Don't draw fringe bitmaps if fringe width is zero.
16275 (x_compute_fringe_widths): New function.
16276 (x_new_font, x_set_window_size_1): Use it.
60a653f1 16277
048addec
JD
16278 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
16279 (x_set_frame_parameters): Process `font' parameter before other
16280 parameters as fringe widths depend on it.
16281 (x_set_fringe_width): New function.
16282 (x_figure_window_size): Use x_compute_fringe_widths.
16283 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
16284 parameters.
60a653f1 16285
048addec
JD
16286 * widget.c (set_frame_size): Use x_compute_fringe_widths.
16287 (EmacsFrameSetCharSize): Ditto.
60a653f1 16288
048addec
JD
16289 * w32term.h: Merged changes from xterm.h.
16290 * w32term.c: Merged changes from xterm.c.
16291 * w32fns.c: Merged changes from xfns.c.
60a653f1 16292
048addec 162932001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16294
048addec 16295 * COPYING: Removed.
60a653f1 16296
048addec 162972001-11-29 Dave Love <fx@gnu.org>
60a653f1 16298
048addec
JD
16299 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
16300 extra extra slot.
16301 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 16302
048addec 163032001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16304
048addec
JD
16305 * fileio.c (file-name-coding-system)
16306 (default-file-name-coding-system): Doc fix (links to referenced
16307 variables added).
60a653f1 16308
048addec 163092001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16310
048addec
JD
16311 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
16312 Add dummy uses of gcproN variables.
60a653f1 16313
048addec
JD
16314 * category.c (describe_category, describe_category_1)
16315 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
16316 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 16317
048addec 163182001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 16319
048addec 16320 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 16321
048addec
JD
16322 * Makefile.in (lispdir): New variable, referring to build dir.
16323 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 16324
048addec 163252001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 16326
048addec
JD
16327 * w32menu.c (w32_menu_display_help): Actually add the new argument
16328 OWNER.
60a653f1 16329
048addec 163302001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 16331
048addec
JD
16332 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
16333 menu items. From David Ponce <dponce@wanadoo.fr>.
16334 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
16335 conditionally.
f63fd14e 16336 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 16337 help event in the owner frame's keyboard buffer.
60a653f1 16338
048addec
JD
16339 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
16340 (Fx_show_tip): Don't subtract last width from row width.
16341
16342 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
16343 (w32_read_socket): Use EQ to compare frames.
60a653f1 16344
048addec 163452001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 16346
048addec
JD
16347 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
16348 OVERLAPS_P.
60a653f1 16349
048addec 163502001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16351
048addec
JD
16352 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
16353 `gcpro3' and `gcpro4'.
60a653f1 16354
048addec 16355 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 16356
048addec 163572001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16358
048addec 16359 * ccl.c: Use AREF and ASIZE.
60a653f1 16360
048addec 163612001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16362
048addec
JD
16363 * lisp.h (run_hook_list_with_args): Remove.
16364 (LIST_END_P): Fix call to wrong_type_argument.
16365 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 16366
048addec 163672001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16368
048addec
JD
16369 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
16370 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 16371
048addec
JD
16372 * eval.c: Use AREF and ASIZE.
16373 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 16374
048addec
JD
16375 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
16376 which match the end of the file-name.
16377 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
16378 is not a valid env var, but leave it as is instead.
60a653f1 16379
048addec
JD
16380 * keymap.c (access_keymap): Handle t bindings like nil bindings.
16381 Make nil bindings in char-tables transparent.
16382 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 16383
048addec 163842001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 16385
048addec
JD
16386 * textprop.c (set_text_properties_1): Allow START, END in either order.
16387 Do nothing if range is empty.
60a653f1 16388
048addec 16389 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 16390
048addec
JD
16391 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
16392 (clean): Not here.
60a653f1 16393
048addec 163942001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16395
048addec
JD
16396 * textprop.c (set_text_properties_1): Clearly mark that the
16397 interval should not be empty.
60a653f1 16398
048addec
JD
16399 * intervals.c (graft_intervals_into_buffer):
16400 Don't call set_text_properties_1 on an empty interval.
60a653f1 16401
048addec 164022001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 16403
048addec 16404 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 16405
048addec
JD
16406 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
16407 don't lose the data in it.
60a653f1 16408
048addec 164092001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 16410
048addec 16411 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 16412
c62aec78 16413 * buffer.c (Fkill_buffer): Likewise.
60a653f1 16414
c62aec78 16415 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 16416
048addec 164172001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16418
048addec 16419 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 16420
048addec 164212001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 16422
048addec
JD
16423 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
16424 Niemitalo <kon@iki.fi>.
60a653f1 16425
048addec 164262001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 16427
048addec 16428 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 16429
048addec
JD
16430 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
16431 (Fx_show_tip): Block input during frame creation.
16432 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 16433
048addec 164342001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 16435
048addec
JD
16436 * lread.c (Fload): Detect recursive load error for more than 3
16437 nestings of the same file.
16438 (Vrecursive_load_depth_limit): Variable deleted.
16439 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 16440
048addec 164412001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 16442
048addec
JD
16443 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
16444 mouse position if either left or top is not specified.
60a653f1 16445
048addec
JD
16446 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
16447 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
16448 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
16449 (my_create_tip_window): Assign tip_window.
16450 (x_create_tip_frame): Use same defaults as X.
16451 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 16452 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 16453
048addec
JD
16454 * w32term.c (x_after_update_window_line): Doc fix.
16455 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
16456 frames.
16457 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 16458
048addec
JD
16459 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
16460 for all Windowed systems.
60a653f1 16461
048addec 164622001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 16463
048addec
JD
16464 * msdos.c (IT_clear_screen): If the frame's faces are not yet
16465 realized, use the initial screen colors to clear the screen.
60a653f1 16466
048addec 164672001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16468
048addec
JD
16469 * textprop.c (Fset_text_properties): Remove unused variables
16470 `unchanged', `prev_changed', `s' and `len'.
60a653f1 16471
048addec
JD
16472 * search.c (Freplace_match): Remove unused variable `inslen'.
16473
16474 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
16475
164762001-11-22 Jason Rumney <jasonr@gnu.org>
16477
16478 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
16479 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
16480 (my_create_tip_window): New function.
16481 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
16482 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
16483
164842001-11-20 Jason Rumney <jasonr@gnu.org>
16485
16486 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
16487 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
16488
16489 * w32fns.c (Vw32_system_coding_system): Remove.
16490 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
16491
164922001-11-19 Stefan Monnier <monnier@cs.yale.edu>
16493
16494 * fileio.c (Fwrite_region): Move choose_write_coding_system to
16495 after build_annotations.
16496
16497 * syntax.c (describe_syntax): Add dummy arg.
16498 (describe_syntax_1): Update call to describe_vector.
16499
16500 * category.c (describe_category): Add dummy arg.
16501 (describe_category_1): Update call to describe_vector.
16502
16503 * keymap.c (Fdescribe_vector): Add `describer' parameter.
16504 (describe_command, describe_translation): Add dummy second param.
16505 (describe_map): Call elt_describer with two arguments.
16506 (describe_vector_princ): Add `fun' parameter.
16507 Call it instead of the hardcoded `princ'.
16508 (describe_vector): Add arg `args'.
16509 Pass it as a new second argument to elt_describer.
60a653f1 16510
048addec 16511 * keymap.h (describe_vector): Update prototype.
60a653f1 16512
048addec
JD
16513 * frame.c: Don't include keymap.h any more.
16514 (keys_of_frame): Remove.
60a653f1 16515
048addec 16516 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 16517
048addec 16518 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 16519
048addec 165202001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 16521
048addec
JD
16522 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
16523 if defined, 0 otherwise.
16524 (MAP_FAILED): Define if not defined and use it to test mmap failure.
16525 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 16526
048addec 165272001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 16528
048addec 16529 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 16530
048addec 165312001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 16532
048addec
JD
16533 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
16534 (x_draw_bar_cursor): If the background color of the glyph under
16535 the cursor equals the frame's cursor color, use the glyph's
16536 foreground color for drawing the bar cursor.
16537 (x_after_update_window_line): Clear internal border in different
16538 circumstances.
16539 (w32_set_vertical_scroll_bar): Check for width and height > 0.
16540 (w32_draw_relief_rect): Correct relief by 1 pixel.
16541 (x_set_glyph_string_background_width):
16542 Set extends_to_end_of_line_p if the row's fill_line_p is set and
16543 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
16544 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
16545 if cursor_in_non_selected_windows is false.
16546 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
16547 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
16548 Notice if cursor gets overwritten.
16549 (notice_overwritten_cursor): Renamed from
16550 note_overwritten_text_cursor. Rewritten to take glyph widths
16551 into account, and to take X positions as parameters.
16552 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
16553 around call to x_draw_glyphs.
16554 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16555 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16556 color to use for image glyph reliefs.
16557 (x_draw_image_relief): Accept zero tool_bar_button_relief.
16558 (glyph_rect): Remove unused variable `area'.
60a653f1 16559
048addec
JD
16560 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
16561 some items.
16562 (x_set_internal_border_width): Set frame garbaged when window
16563 doesn't exist yet.
16564 (Fx_create_frame): Accept zero tool_bar_button_relief.
16565 (x_clear_image_1, four_corners_best, image_background)
16566 (image_background_transparent): New functions.
16567 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
16568 (gs_format): Add `:background' entry.
16569 (lookup_image): Set IMG's background color if specified.
16570 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16571 when appropriate.
16572 (x_clear_image_1): Reset `background_valid' and
16573 `background_transparent_valid' fields.
16574 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16575 calculating it here. Set IMG's background_transparent field.
16576 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16577 (enum png_keyword_index): Add PNG_BACKGROUND.
16578 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16579 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16580 (enum gif_keyword_index): Add GIF_BACKGROUND.
16581 (enum gs_keyword_index): Add GS_BACKGROUND.
16582 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
16583 Pre-calculate image background color where necessary.
16584 (x_create_x_image_and_pixmap, xbm_load, gs_load):
16585 Use display info's n_cbits entry for screen depth.
16586 (Fx_show_tip): Remove unused variables `buffer', `top',
16587 `left', `max_width' and `max_height'.
60a653f1 16588
048addec 16589 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 16590
048addec 165912001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 16592
048addec 16593 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 16594
048addec 165952001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16596
048addec 16597 * frame.c (Fframe_live_p): Doc fix.
60a653f1 16598
048addec 165992001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 16600
048addec
JD
16601 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
16602 (message_dolog_marker3): New static variables hold three markers.
16603 (syms_of_xdisp): Initialize and staticpro them.
16604 (message_dolog): Use message_dolog_marker1..3 instead of
16605 allocating markers each time. Unchain them when done.
60a653f1 16606
048addec 166072001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 16608
048addec 16609 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 16610
048addec 166112001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 16612
048addec 16613 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 16614
048addec 166152001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 16616
048addec 16617 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 16618
048addec 166192001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 16620
048addec 16621 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 16622
048addec 166232001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 16624
048addec
JD
16625 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
16626 with invalid position.
60a653f1 16627
048addec 166282001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 16629
048addec 16630 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 16631
048addec
JD
16632 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
16633 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
16634 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 16635
048addec 16636 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 16637
048addec 166382001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16639
048addec
JD
16640 * fileio.c (build_annotations): Split off the tail.
16641 (build_annotations_2): New fun. Extracted from build_annotations.
16642 (Fwrite_region): Split the call to build_annotations into two
16643 calls to build_annotations and build_annotations_2.
077907d4 16644
048addec 166452001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 16646
048addec
JD
16647 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
16648 clear_waiting_for_input with argument.
1756e2fb 16649
048addec 16650 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 16651
048addec 16652 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 16653
048addec 16654 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 16655
048addec 16656 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 16657
048addec 166582001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 16659
048addec
JD
16660 * fileio.c (choose_write_coding_system): New fun, extracted
16661 from Fwrite_region.
16662 (Fwrite_region): Use it.
fa336b91 16663
048addec
JD
16664 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
16665 (funcall_lambda, run_hook_with_args): Make static and add prototype.
16666 (ml_apply, find_handler_clause): Add prototype.
fa336b91 16667
048addec 166682001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 16669
048addec 16670 * config.in: Add #undef HAVE_COFF_H.
fa336b91 16671
048addec
JD
16672 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
16673 Required for ISC 4.1.
fa336b91 16674
048addec 166752001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 16676
048addec
JD
16677 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
16678 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 16679
048addec 166802001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 16681
048addec
JD
16682 The following changes are made to clean up the various internal
16683 references to the fringes to actually use the term `fringe' for
16684 them. Previously, they were called `flags areas', `bitmap areas',
16685 `left/right side of windows', or implicitly as `flags' or
16686 `bitmaps':
fa336b91 16687
048addec 16688 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 16689 Comments fixed. Use renamed symbols.
06e8f738 16690
f63fd14e 16691 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 16692
048addec
JD
16693 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
16694 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
16695 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 16696
048addec 16697 * msdos.c: Comment fix.
9ce647f4 16698
048addec 16699 * w32fns.c: Use renamed symbols.
9b784ab8 16700
f63fd14e 16701 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
16702 (fringe_bitmap_type): Renamed from bitmap_type.
16703 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16704 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
16705 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 16706
f63fd14e 16707 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
16708 (fringes_extra): Renamed from flags_areas_extra.
16709 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16710 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16711 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16712 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16713 (FRAME_X_LEFT_FRINGE_WIDTH):
16714 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16715 (FRAME_X_RIGHT_FRINGE_WIDTH):
16716 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 16717
048addec 16718 * widget.c: Use renamed symbols.
9f7e52b4 16719
f63fd14e 16720 * window.c: Comment fixes. Use renamed symbols.
048addec 16721 (coordinates-in-window-p): Doc fix.
fa336b91 16722
f63fd14e 16723 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 16724
048addec 16725 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 16726
048addec 16727 * xfns.c: Use renamed symbols.
89512fcd 16728
f63fd14e 16729 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
16730 (fringe_bitmap_type): Renamed from bitmap_type.
16731 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16732 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
16733 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 16734
f63fd14e 16735 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
16736 (fringes_extra): Renamed from flags_areas_extra.
16737 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16738 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16739 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16740 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16741 (FRAME_X_LEFT_FRINGE_WIDTH):
16742 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16743 (FRAME_X_RIGHT_FRINGE_WIDTH):
16744 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
16745
167462001-11-15 Jason Rumney <jasonr@gnu.org>
16747
16748 * w32menu.c (add-menu-item): Make help_echo and radio buttons
16749 work for most menu items. From David Ponce
16750 <david.ponce@wanadoo.fr>.
16751
167522001-11-15 Gerd Moellmann <gerd@gnu.org>
16753
16754 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
16755 Some x_set_* function expect to be called even if old and new
16756 value are equal.
16757
16758 * xdisp.c (build_desired_tool_bar_string): Accept zero
16759 tool_bar_button_relief.
16760
16761 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
16762
16763 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
16764
16765 * xterm.c (x_draw_bar_cursor): If the background color of the
16766 glyph under the cursor equals the frame's cursor color, use
16767 the glyph's foreground color for drawing the bar cursor.
16768
16769 * dispnew.c (direct_output_forward_char): Fix character/byte
16770 position comparison.
7d18891d 16771
048addec 167722001-11-15 Miles Bader <miles@gnu.org>
d2936d21 16773
048addec
JD
16774 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
16775 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
16776 Update arguments to find_field.
16777 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
16778 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
16779 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
16780 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 16781
048addec 167822001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 16783
048addec 16784 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 16785
048addec
JD
16786 * dispextern.h (image_background, image_background_transparent):
16787 Conditionalize on HAVE_X_WINDOWS.
7d18891d 16788
048addec 167892001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 16790
048addec 16791 * print.c (Fprin1_to_string): Doc fix.
7d18891d 16792
048addec 16793 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 16794
048addec 16795 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 16796
048addec 16797 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 16798
048addec 16799 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 16800
048addec 16801 * eval.c (syms_of_eval): Doc fix.
7d18891d 16802
048addec 16803 * coding.c (syms_of_coding): Doc fix.
7d18891d 16804
048addec 16805 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 16806
048addec 16807 * dispnew.c (syms_of_display): Doc fix.
9474c847 16808
048addec 16809 * category.c (Fget_unused_category): Doc fix.
9474c847 16810
048addec 16811 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 16812
048addec 168132001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 16814
048addec 16815 * print.c (prin1, print): Doc fix.
e3059a5d 16816
048addec 168172001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 16818
048addec
JD
16819 * fontset.h: Remove declarations of variables
16820 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 16821
048addec
JD
16822 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
16823 `Vclip_large_size_font'.
eae936e2 16824
048addec 168252001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 16826
048addec 16827 * w32fns.c: Doc fix.
ddb67bdc 16828
048addec 168292001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 16830
048addec 16831 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 16832
048addec 16833 * fns.c: Doc fix.
6e1b91d7 16834
048addec 16835 * emacs.c: Doc fix.
1c1d3d69 16836
048addec 16837 * coding.c: Doc fix.
1c1d3d69 16838
048addec
JD
16839 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
16840 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
16841 `new style' [w/`doc:' keyword].
b6f4c7ba 16842
048addec 168432001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 16844
048addec
JD
16845 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
16846 LeaveNotify events. Only FocusIn and FocusOut do that now.
16847 (x_display_and_set_cursor): Do display hollow cursors in active
16848 minibuffer windows when they are not selected.
b6f4c7ba 16849
048addec 168502001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 16851
048addec 16852 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
16853 * w32term.c: Change doc-string comments to `new style'
16854 [w/`doc:' keyword]. Doc fixes.
a89f435d 16855
048addec
JD
16856 * w32fns.c: Don't define max.
16857 (Fx_open_connection): Only execute once.
a4cd0cd7 16858
048addec 168592001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 16860
048addec
JD
16861 * ccl.c: Change macros to use do-while block instead of if-else.
16862 Use braces to follow GNU Coding Standards.
eafb659a 16863
048addec 168642001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 16865
048addec 16866 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 16867
048addec 16868 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 16869
048addec
JD
16870 * insdel.c (replace_range): Use adjust_markers_for_replace
16871 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 16872
78819ebb 16873 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 16874
048addec
JD
16875 * textprop.c (set_text_properties_1): New subroutine
16876 broken out of set_text_properties.
16877 (set_text_properties): Use set_text_properties_1.
91823618 16878
048addec
JD
16879 * intervals.c (graft_intervals_into_buffer):
16880 Use set_text_properties_1 to clear out properties.
91823618 16881
048addec
JD
16882 * search.c (Freplace_match): Use replace_range to insert
16883 and delete. Don't request property inheritance from
16884 surrounding text.
86928dfb 16885
048addec 168862001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 16887
048addec 16888 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 16889 vertical fonts. Allow them if face name is explicitly specified.
048addec 16890 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 16891
048addec 168922001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 16893
048addec
JD
16894 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
16895 instead of malloc/free.
a78e0303 16896
048addec 168972001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 16898
048addec
JD
16899 * xfaces.c (merge_face_vectors): Use braces to follow GNU
16900 Coding Standards.
16901 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 16902
048addec 16903 * buffer.c (Fbury_buffer): Likewise.
0c99b139 16904
048addec 16905 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 16906
048addec
JD
16907 * coding.c (encode_coding): Use precomputed value of `src'.
16908 (encode_coding): Remove unused variable `src_end'.
16909 (code_convert_region): Remove unused variables `count'.
830ddd77 16910
048addec 169112001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 16912
048addec
JD
16913 * w32term.c (x_display_and_set_cursor): Do not move system caret
16914 if cursor_glyph is NULL.
55c6d645 16915
048addec 169162001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 16917
048addec 16918 * keymap.c (access_keymap): Fix compilation error.
5de38842 16919
048addec 169202001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 16921
048addec 16922 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 16923
048addec 169242001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 16925
048addec
JD
16926 * intervals.c (graft_intervals_into_buffer):
16927 Remove #ifdef'd-out code.
16928 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 16929
048addec
JD
16930 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
16931 code (eval-current-buffer).
16932 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 16933
048addec 169342001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 16935
048addec 16936 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 16937
048addec 169382001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 16939
048addec 16940 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 16941
048addec
JD
16942 * keyboard.c (make_lispy_event): Check integerness and fix
16943 Lisp_Object/int mixup.
17893c65 16944
048addec 169452001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 16946
048addec 16947 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 16948
048addec
JD
16949 * fontset.c (fontset_font_pattern): Remove unused variable
16950 `family_registry'.
d5360cc7 16951
048addec 16952 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 16953
048addec 169542001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 16955
048addec 16956 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 16957
048addec
JD
16958 * buffer.c (Fkill_buffer): Don't delete auto save file
16959 if buffer is modified.
d9d54213 16960
048addec 169612001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 16962
048addec
JD
16963 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
16964 CHECK_NUMBER_CDR.
b116830b 16965
048addec 169662001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 16967
048addec 16968 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 16969
048addec 169702001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 16971
048addec 16972 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 16973
048addec 169742001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 16975
048addec 16976 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 16977
048addec 169782001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 16979
048addec
JD
16980 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
16981 the program image directly.
982f6c7e 16982
048addec 169832001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 16984
048addec 16985 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 16986
048addec 169872001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 16988
048addec
JD
16989 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
16990 and CHECK_BUFFER.
d31053f9 16991
048addec
JD
16992 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
16993 (record_char): Likewise.
d31053f9 16994
048addec
JD
16995 * keyboard.c (make_lispy_event): Don't insist a drag event must
16996 move to a different buffer position. Instead, check for moving at
16997 least double_click_fuzz.
982f6c7e 16998
048addec 16999 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 17000
048addec 17001 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 17002
048addec
JD
17003 * indent.c (current_column_1, Fmove_to_column): Separate the code
17004 for display-table glyphs from the code for buffer text, to fix
17005 bugs in the former.
830047fd 17006
048addec 170072001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 17008
048addec
JD
17009 * buffer.c (Fbuffer_local_value): New function.
17010 (syms_of_buffer): Defsubr it.
2df5238c 17011
048addec
JD
17012 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
17013 value of `cursor-in-non-selected-windows'.
4e397688 17014
048addec
JD
17015 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
17016 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
17017 (syms_of_xdisp): Initialize it.
48b0f3ae 17018
048addec 170192001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 17020
048addec 17021 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 17022
048addec
JD
17023 * coding.c: Change doc-string comments to `new style' [w/`doc:'
17024 keyword].
3ecaf7e5 17025
048addec
JD
17026 * eval.c (top_level_value, top_level_set): Remove commented and
17027 #ifdef'd-out code.
17028 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 17029
048addec 170302001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 17031
048addec 17032 * xfns.c: Include unistd.h, if it exists.
8db2e33b 17033
048addec 17034 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 17035
048addec 17036 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 17037
048addec 170382001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 17039
048addec
JD
17040 * lisp.h (CHECK_STRING_CAR): New macro.
17041 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
17042 treating XCAR and XCDR as lvalues.
17043 (openp): Use CHECK_STRING_CAR.
17044 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 17045
048addec 170462001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 17047
048addec
JD
17048 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
17049 (SIGMASKTYPE): Define.
1b1acc13 17050
048addec 17051 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 17052
048addec 170532001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 17054
048addec
JD
17055 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
17056 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
17057 Fix typos in comments.
6cb16f95 17058
048addec
JD
17059 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
17060 and #ifdef'd-out code.
17061 Fix and reindent comments.
6cb16f95 17062
048addec 17063 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 17064
048addec
JD
17065 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
17066 argument `i' in macros.
6cb16f95 17067
048addec
JD
17068 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
17069 `i' in macros.
7e9d3c2f 17070
048addec
JD
17071 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
17072 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
17073 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
17074 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
17075 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
17076 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
17077 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
17078 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
17079 in macros.
7e9d3c2f 17080
048addec
JD
17081 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
17082 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
17083 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
17084 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
17085 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
17086 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
17087 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
17088 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
17089 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
17090 (remove unused second argument).
7e9d3c2f 17091
048addec 170922001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 17093
048addec
JD
17094 * syntax.c (describe_syntax): New wrapper.
17095 (Finternal_describe_syntax_value): Rename from describe_syntax.
17096 Don't insert space at front and \n at the end.
17097 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 17098
048addec
JD
17099 * regex.c (re_wctype): Try to fix some warnings.
17100 (regcomp, regexec): Don't forget the __restrict.
9ba48103 17101
048addec 171022001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 17103
048addec 17104 * textprop.c (Fget_char_property): Doc fix.
9ba48103 17105
048addec 171062001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 17107
048addec 17108 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 17109
048addec 17110 * data.c (Fsetq_default): Ditto.
c22e59e1 17111
048addec 17112 * callint.c (Finteractive): Ditto.
9271ed2c 17113
048addec 171142001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 17115
048addec
JD
17116 * macros.c: Don't include keymap.h any more.
17117
171182001-11-01 Richard M. Stallman <rms@gnu.org>
17119
17120 * data.c (Fmake_local_variable): Doc fix.
17121
17122 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
17123 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 17124
048addec 17125 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
17126 bindings along with or instead of the buffer local map.
17127 Make the overriding maps override what they should.
17128
f00691a3 171292001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
17130
17131 * window.c (grow_mini_window): Fix typo in comment.
17132
27188d11
GM
171332001-11-01 Gerd Moellmann <gerd@gnu.org>
17134
7b49b9d2
GM
17135 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
17136 (XTset_vertical_scroll_bar): Likewise.
17137
43f7c3ea
GM
17138 * xfns.c (x_build_heuristic_mask): Use four_corners_best
17139 instead of IMAGE_BACKGROUND.
c22e59e1 17140
b350c2e5
GM
17141 * xfns.c (four_corners_best): Reindent.
17142
c22e59e1 17143 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
17144 Handle :box so that it is possible to specify sexprs.
17145
bf00d461
EZ
171462001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
17147
17148 * s/hpux11.h: New file.
17149
f00691a3 171502001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 17151
2b209b97
PJ
17152 * emacs.c (USAGE1): Show command line option --no-window-system
17153 instead of --no-windows in usage.
17154 (standard_args): Rename --no-windows to --no-window-system.
17155 (bug_reporting_address): Follow Emacs coding conventions.
17156
9dbc9081
PJ
17157 * eval.c (Fcommandp): Doc fix.
17158 Change doc-string comments to `new style' [w/`doc:' keyword].
17159
4e10df59
PJ
17160 * frame.c (Fframe_live_p): Doc fix.
17161
17162 * buffer.c (selective-display-ellipses): Doc fix.
17163
dd387b25
GM
171642001-10-31 Gerd Moellmann <gerd@gnu.org>
17165
fe957e65
GM
17166 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
17167
dd387b25
GM
17168 * xfaces.c (realize_x_face): If C is not a single-byte character,
17169 set the face's colors_copied_bitwise_p instead of the defaulted_p
17170 members which have a different meaning.
17171 (free_face_colors): Do nothing for a face whose colors have been
17172 copied bitwise.
17173
c22e59e1 17174 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 17175
f00691a3 171762001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 17177
687784e8
PJ
17178 * marker.c, mocklisp.c: Change doc-string comments to `new style'
17179 [w/`doc:' keyword].
2e1280f8 17180
b9d9a9b9
GM
171812001-10-31 Gerd Moellmann <gerd@gnu.org>
17182
17183 * fns.c (require_unwind): Return Lisp_Object.
17184
f00691a3 171852001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 17186
fa1361cb
PJ
17187 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
17188 (last-input-char): Revert doc-string to be the same as the
17189 doc-string of `last-input-event'.
17190
6c465a15 17191 * xdisp.c: Fix typos in comments.
48400103 17192
eafa3196
GM
171932001-10-31 Gerd Moellmann <gerd@gnu.org>
17194
17195 * window.c (grow_mini_window): Handle case that the root
17196 window is already smaller than the nominal mininum height.
17197
747d3f2a
SM
171982001-10-30 Stefan Monnier <monnier@cs.yale.edu>
17199
bf9bb76f
SM
17200 * emacs.c (main): Don't call keys_of_macros any more.
17201
17202 * lisp.h (keys_of_macros): Remove.
17203
17204 * macros.c (keys_of_macros): Remove.
17205
747d3f2a
SM
17206 * xfaces.c (Fface_attribute_relative_p): Declare args.
17207
5e905a57
JR
172082001-10-30 Jason Rumney <jasonr@gnu.org>
17209
17210 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
17211 (enum_font_cb2): Ignore fonts with vertical orientation.
17212
3a426197
RS
172132001-10-30 Richard M. Stallman <rms@gnu.org>
17214
17215 * keyboard.c (Finput_pending_p): Doc fix.
17216
a742d646
GM
172172001-10-30 Gerd Moellmann <gerd@gnu.org>
17218
259cf6bc
GM
17219 * xterm.c (x_after_update_window_line): Don't run the code
17220 clearing in borders for rows whose visible height is 0.
17221
3f99f948
GM
17222 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
17223 resized_p flag is set. If not set, use the much less flickering
17224 method previously used.
17225
17226 * dispnew.c (change_frame_size_1): Set frame's resized_p.
17227
17228 * frame.h (struct frame) <resized_p>: New member.
17229
b4a3be43
GM
17230 * lread.c (to_multibyte): Ensure read_buffer is at least twice
17231 as large as the number of bytes to convert.
747d3f2a 17232
a742d646
GM
17233 * lread.c (to_multibyte): New function.
17234 (read1): Use it.
17235
cacbb9e9
EZ
172362001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
17237
17238 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
17239
99cb6b2f
GM
172402001-10-30 Gerd Moellmann <gerd@gnu.org>
17241
327f42ee 17242 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
17243 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
17244 if the row's fill_line_p is set and drawing the last glyph with
17245 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 17246
99cb6b2f
GM
17247 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
17248
8e8223e2
SM
172492001-10-29 Stefan Monnier <monnier@cs.yale.edu>
17250
17251 * xmenu.c: Include coding.h and charset.h.
17252 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
17253 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
17254 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
17255 Explicitly set wv->help. Use `TRUE' rather than `True'.
17256 (menu_help_callback): Use empty_string.
17257
17258 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
17259 (Fx_popup_dialog): Explicitly init f.
17260 (w32_menu_display_help): Use empty_string.
17261
4d083a8f
RS
172622001-10-29 Richard M. Stallman <rms@gnu.org>
17263
b2304472
RS
17264 * fns.c (Frequire): Detect recursive try to require the same
17265 feature 3 or more levels deep, and get error.
17266 (require_unwind): New subroutine.
17267 (require_nesting_list): New variable.
17268 (syms_of_fns): Init and staticpro it.
17269
4d083a8f
RS
17270 * print.c (print_object): Clarify indication of insertion type.
17271
2fe41216
EZ
172722001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
17273
90480000
EZ
17274 * coding.c (syms_of_coding): Document that locale-coding-system is
17275 used for decoding input on X.
17276
2fe41216
EZ
17277 * window.c (Fscroll_left, Fscroll_right): Doc fix.
17278
f00691a3 172792001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
17280
17281 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
17282 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
17283
60ebcfe8
GM
172842001-10-29 Gerd Moellmann <gerd@gnu.org>
17285
9a7bdceb
GM
17286 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
17287 use NO_CURSOR if cursor_in_non_selected_windows is false.
17288
3f08fcd2
GM
17289 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
17290 the slant attribute if FRAME is t.
17291
0ccfdad2
GM
17292 * xfns.c (x_set_internal_border_width): Set frame garbaged
17293 when X window doesn't exist yet.
17294
ef253080
GM
17295 * xterm.c (x_after_update_window_line): Clear internal border
17296 in different circumstances.
b116830b 17297
60ebcfe8
GM
17298 * xterm.c (XTread_socket) <KeyPress>: Don't use
17299 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
17300 <handa@etl.go.jp>.
17301
73d25f9c
EZ
173022001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
17303
17304 * m/ibms390.h: New file. From Adam Thornton
17305 <athornton@sinenomine.net>.
17306
cac1daf0
GM
173072001-10-28 Gerd Moellmann <gerd@gnu.org>
17308
053b3256 17309 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 17310
cac1daf0
GM
17311 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
17312 a loop counter.
17313
f00691a3 173142001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 17315
f9711de4 17316 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 17317
4707d2d0
PJ
17318 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
17319 keyword].
17320 Fix typos in comments.
b116830b 17321
d883731c
PJ
17322 * emacs.c (bug_reporting_address): New function.
17323 Use it when displaying usage message.
17324
04012254
PJ
17325 * minibuf.c (read_minibuf): Remove unused external declaration of
17326 variable `Qread_only'.
17327
13b1a09c
PJ
17328 * keymap.c (access_keymap): Remove unused variable `charset'.
17329
5bbf4378
MB
173302001-10-28 Miles Bader <miles@gnu.org>
17331
17332 * xfaces.c (merge_face_heights): Handle TO being relative as well.
17333 Remove #ifdef'd-out code.
17334 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
17335 (syms_of_xfaces): Initialize them.
17336
1ce1e4ee
JR
173372001-10-27 Jason Rumney <jasonr@gnu.org>
17338
17339 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
17340 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
17341 position using the system caret.
17342
17343 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
17344 (w32_system_caret_height, w32_system_caret_x)
17345 (w32_system_caret_y): New variables for tracking system caret.
17346 (w32_initialize): Initialize them.
c2d53558 17347 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 17348
c2d53558
SM
17349 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
17350 New messages types.
1ce1e4ee
JR
17351
17352 * w32term.c (note_mouse_highlight): Clear old help_echo.
17353
f00691a3 173542001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 17355
bb4600a4
PJ
17356 * xterm.c: Fix typo in a comment.
17357
7db35a48
PJ
17358 * emacs.c: Fix typos in comments.
17359 Remove unnecessary spaces.
17360 Change doc-string comments to `new style' [w/`doc:' keyword].
17361 (USAGE2): Fix typos in usage string.
17362
a7248e4f
PJ
17363 * xterm.c: Fix typo in a comment.
17364
4e30ce42
PJ
17365 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
17366 emacs.c.
17367
62725a92
GM
173682001-10-27 Gerd Moellmann <gerd@gnu.org>
17369
798dbe1f 17370 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 17371 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
17372 farther backward when target_y was not reached.
17373
62725a92
GM
17374 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
17375 Display errno only if non-zero.
17376 (sound_warning): New function.
17377 (vox_configure): Don't treat failing to set sample rate as error.
17378 (various places): Improve error messages.
17379
d4e34d24
EZ
173802001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
17381
944e6f60
EZ
17382 * fileio.c (Faccess_file): Run the argument filename through
17383 Fexpand_file_name, before using it.
17384
d4e34d24
EZ
17385 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
17386 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
17387
38d2af0c
GM
173882001-10-26 Gerd Moellmann <gerd@gnu.org>
17389
da80a8d5
GM
17390 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
17391
38d2af0c
GM
17392 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
17393 Fix clearing in the case of scroll bars on the right.
c2d53558 17394
45de4a6f 173952001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
17396
17397 * w32gui.h (XImage): Add a dummy typedef.
17398
fbd5ceb2
GM
173992001-10-26 Gerd Moellmann <gerd@gnu.org>
17400
c2d53558 17401 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 17402
b23236fb
EZ
174032001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
17404
17405 * frame.c (Fframe_parameter): Fix last change.
17406
5d991fc4
EZ
17407 * fileio.c: Revert last change (which removed old commented-out
17408 version of expand-file-name). Add a comment that explains why
17409 this old version should not be removed.
17410
879eadc3
GM
174112001-10-25 Gerd Moellmann <gerd@gnu.org>
17412
75700ff2
GM
17413 * frame.c (Fframe_parameter): Fix a bug whereby some
17414 ``artificial'' frame parameters, like `minibuffer' were not
17415 obtained by calling Fframe_parameters.
17416
dfe92a6a
GM
17417 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
17418 cursor differently.
17419
879eadc3
GM
17420 * xdisp.c (move_it_vertically_backward): Compute line height
17421 differently. Add heuristic to try to be more compatible to 20.x.
17422
e1010ebe
SM
174232001-10-25 Stefan Monnier <monnier@cs.yale.edu>
17424
d73a471b
SM
17425 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
17426
d6da5a06
GM
17427 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
17428 boolean.
e1010ebe 17429
f66bd220
MB
174302001-10-25 Miles Bader <miles@gnu.org>
17431
17432 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
17433 BG is a pointer to a structure, not a structure.
17434 (gif_format, png_format): Add missing commas.
17435
d436d538
RS
174362001-10-24 Richard M. Stallman <rms@gnu.org>
17437
17438 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 17439 (syms_of_xfaces): Defsubr it.
d436d538 17440
f00691a3 174412001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
17442
17443 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
17444 variable `area'.
17445
f00691a3 174462001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 17447
c2d53558 17448 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 17449
e2a57b34
MB
174502001-10-25 Miles Bader <miles@gnu.org>
17451
17452 * dispextern.h (struct image): Add `background',
17453 `background_valid', and `background_transparent' fields.
17454 (image_background, image_background_transparent): New declarations.
17455 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
17456 * xfns.c (image_background, image_background_transparent)
17457 (four_corners_best): New functions.
c2d53558 17458 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
17459 (gs_format): Add `:background' entry.
17460 (lookup_image): Set IMG's background color if specified.
17461 (pbm_load, xbm_load_image, png_load): Set IMG's background field
17462 when appropriate.
17463 (x_clear_image_1): Reset `background_valid' and
17464 `background_transparent_valid' fields.
17465 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
17466 calculating it here. Set IMG's background_transparent field.
17467 (enum xpm_keyword_index): Add XPM_BACKGROUND.
17468 (enum png_keyword_index): Add PNG_BACKGROUND.
17469 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
17470 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
17471 (enum gif_keyword_index): Add GIF_BACKGROUND.
17472 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 17473 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
17474 Pre-calculate image background color where necessary.
17475 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
17476 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
17477 color to use for image glyph reliefs.
17478
b547b6e8
GM
174792001-10-24 Gerd Moellmann <gerd@gnu.org>
17480
d9e3b8c6
GM
17481 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
17482 in full-width rows.
c2d53558 17483
b547b6e8
GM
17484 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
17485 Fix clearing of area not covered by scroll bar.
17486
f00691a3 174872001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
17488
17489 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
17490 and `real_start'.
c2d53558 17491 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
17492 (glyph_rect): Remove unused variable `area'.
17493
76cb5e06
GM
174942001-10-24 Gerd Moellmann <gerd@gnu.org>
17495
bdbdebff 17496 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
17497
17498 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
17499 (row_containing_pos): Take additional argument DY.
17500 Treat rows ending in middle of char differently.
62e33982
GM
17501 (display_line): Handle tabs on window systems differently.
17502
17503 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
17504 with additional argument.
17505
17506 * dispextern.h (row_containing_pos): Adjust prototype.
17507
76cb5e06
GM
17508 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
17509 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
17510 (try_window_id, try_window_reusing_current_matrix)
17511 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 17512 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 17513
f00691a3 175142001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 17515
c9e60620
PJ
17516 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
17517 gnuemacs).
17518 (HAVE_BOXES): Fix typo in comment.
17519 (push_menu_pane): Fix typo in comment.
17520
3b552d56
PJ
17521 * xdisp.c: (display_prop_string_p): Remove unused local declaration
17522 of `Qwhen'.
17523 (single_display_prop_string_p): Remove unused local declarations
17524 of `Qwhen' and `Qmargin'.
17525 (string_buffer_position): Remove unused variable `around'.
17526 (store_frame_title): Remove unused variable `width'.
17527
15c565ac
PJ
17528 * window.c: Don't define max.
17529 (coordinates_in_window): Remove unused variable `uy'.
17530
a8818eb9
PJ
17531 * widget.c: Don't define max.
17532
996fee11
PJ
17533 * process.c: Don't define max.
17534 (create_process): Remove unused variable `buffer'.
17535
496e1a5b
GM
175362001-10-23 Gerd Moellmann <gerd@gnu.org>
17537
c2d53558 17538 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 17539
5905ae8b
EZ
175402001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
17541
17542 * xfaces.c (Finternal_set_lisp_face_attribute)
17543 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
17544 frame is on a windowed display.
17545
24db49fb
GM
175462001-10-23 Gerd Moellmann <gerd@gnu.org>
17547
c2d53558
SM
17548 * dispnew.c (sync_window_with_frame_matrix_rows):
17549 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
17550 of marginal areas.
17551
c2d53558 17552 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 17553
f0487f05
EZ
175542001-10-23 Andreas Schwab <schwab@suse.de>
17555
17556 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
17557 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
17558
f0a48a01
GM
175592001-10-23 Gerd Moellmann <gerd@gnu.org>
17560
c2d53558 17561 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
17562 REAL_END. Notice if cursor gets overwritten.
17563 (notice_overwritten_cursor): Take X positions as parameters.
17564 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
17565 around call to x_draw_glyphs.
17566
f00691a3 175672001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 17568
fc11dff0
PJ
17569 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
17570 instead of C) and usage.
a50a10a0 17571
fc11dff0
PJ
17572 * editfns.c (char-to-string): Fix argument names (use CHAR instead
17573 of C) and usage.
a50a10a0
PJ
17574
17575 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
17576 `left', `max_width' and `max_height'.
17577
8738febd
GM
175782001-10-23 Gerd Moellmann <gerd@gnu.org>
17579
17580 * xdisp.c (display_line): For a tab continued to the next line,
17581 set row's ends_in_middle_of_char_p.
17582
653c329b
GM
175832001-10-22 Gerd Moellmann <gerd@gnu.org>
17584
17585 * xdisp.c (display_line): Fix computation of continuation lines
17586 width for TABs.
17587
f00691a3 175882001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 17589
7ba51063
PJ
17590 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
17591 `Qlaplace'.
17592
f958c5ac
PJ
17593 * fileio.c: Remove unused code.
17594
eb360291
MB
175952001-10-22 Miles Bader <miles@gnu.org>
17596
17597 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
17598 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
17599 Remove `DOC_STRINGS_IN_COMMENTS' cases.
17600
98515cf0
JR
176012001-10-21 Jason Rumney <jasonr@gnu.org>
17602
17603 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
17604
93026d88
EZ
176052001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
17606
17607 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
17608 (Finsert_string): Avoid the multi-line string literals warning.
17609
c9a95b79
MB
176102001-10-22 Miles Bader <miles@gnu.org>
17611
17612 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
17613 (Fdocumentation): Don't use it.
17614 (syms_of_doc): Don't initialize it.
17615
17616 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
17617 * print.c (Fwith_output_to_temp_buffer): Likewise.
17618 * window.c (Fsave_window_excursion): Likewise.
c2d53558 17619 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 17620 (Fsave_restriction): Likewise.
c2d53558
SM
17621 * eval.c (Frun_hooks, Frun_hook_with_args)
17622 (Frun_hook_with_args_until_failure)
17623 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
17624 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
17625 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
17626 (Funwind_protect, Fcondition_case): Likewise.
17627 * coding.c (Ffind_operation_coding_system): Likewise.
17628 * keyboard.c (Ftrack_mouse): Likewise.
17629
a3b10252
MB
176302001-10-21 Miles Bader <miles@gnu.org>
17631
c2d53558 17632 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
17633 (Fmake_hash_table): Add usage: string to doc string.
17634 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 17635 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
17636 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
17637 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
17638 (Fml_prefix_argument_loop): Likewise.
17639
f00691a3 176402001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 17641
c2d53558 17642 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 17643
c6f73eec
PJ
17644 * sysdep.c (init_sys_modes): Change doc-string comments to `new
17645 style' [w/`doc:' keyword].
17646
17647 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
17648 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
17649 comments to `new style' [w/`doc:' keyword].
17650
3cf3436e
JR
176512001-10-21 Jason Rumney <jasonr@gnu.org>
17652
17653 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
17654
c169b8f1
JR
17655 * w32term.c (remember_mouse_glyph): New function.
17656 (w32_mouse_position): Use it.
17657 (note_mouse_movement): If the mouse moved off the glyph, remember
17658 its new position.
c2d53558 17659
4fdd691b
JR
17660 * w32term.h (struct w32_output): Correct spelling of x_compatible.
17661 (w32_display_info): Add mouse_face_overlay.
17662
c169b8f1
JR
17663 * w32term.c (notice_overwritten_cursor): Renamed from
17664 note_overwritten_text_cursor. Rewritten to take glyph widths into
17665 account.
17666 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
17667 (fast_find_string_pos): New function.
17668 (fast_find_position): Return the correct vpos. Add parameter
17669 STOP. In the final row, stop before glyphs having STOP as object.
17670 Don't consider glyphs that are not from a buffer.
17671 (fast_find_position) [0]: Add a presumably more correct version
17672 for after 21.1.
17673 (expose_window_tree, expose_frame): Don't compute intersections here.
17674 (expose_window): Do it here instead.
17675 (expose_window_tree, expose_window, expose_line): Return 1 when
17676 overwriting mouse-face.
17677 (expose_window): If W is the window currently being updated, mark
17678 the frame garbaged.
17679 (expose_frame): If mouse-face was overwritten, redo it.
17680 (x_use_underline_position_properties): New variable.
17681 (syms_of_xterm): DEFVAR_BOOL it.
17682 (x_draw_glyph_string): Add comment to use it in future.
17683 (x_draw_glyph_string): Restore clipping after drawing box.
17684 Fix a computation of the underline position.
17685 (w32_get_glyph_string_clip_rect): Minor cleanup.
17686 (x_fill_stretch_glyph_string): Remove an assertion.
17687 (x_produce_glyphs): Don't convert multibyte characters
17688 to unibyte characters in unibyte buffers.
17689 (cursor_in_mouse_face_p): New function.
17690 (x_draw_stretch_glyph_string): Use it to choose a different GC
17691 when drawing a cursor within highlighted text. Don't draw
17692 background again if it has already been drawn.
17693 (x_draw_glyph_string_box): Don't draw a full-width
17694 box just because the glyph row's full_width_p flag is set.
17695 (x_draw_glyphs): Fix computation of rightmost x for
17696 full-width rows.
17697 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
17698 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 17699 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
17700 (x_update_window_end): Handle overwritten mouse face
17701 also for tool bar windows.
17702 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
17703 DRAW is DRAW_IMAGE_RAISED.
17704 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
17705 actually redrawn. Make the function static.
17706 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
17707 optimize away highlighting if we pass over that same overlay again.
17708 (note_mouse_highlight): Call mouse_face_overlay_overlaps
17709 to detect a case where we have to highlight a different region
17710 despite not having left the currently highlighted region.
17711 Set mouse_face_overlay in the x_display_info. Avoid changing the
17712 mouse pointer shape when show_mouse_face has already done it, or
17713 there is no need. Handle mouse-face and help-echo in strings.
17714 (glyph_rect): New function.
17715 (w32_mouse_position): Use it to raise the threshold for mouse
17716 movement event generation.
17717 (w32_initialize_display_info): Initialize the x_display_info's
17718 mouse_face_overlay.
17719 (w32_set_vertical_scroll_bar): Don't clear a zero height
17720 or width area.
17721 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
17722 a widget to zero height.
17723
3cf3436e 17724 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 17725 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
17726 equivalents in menu_items.
17727 (w32_menu_show): Don't overwrite an item's name with its key
17728 description in case the description is a multibyte string.
17729 (single_submenu): Some cleanup.
17730
17731 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
17732 (postprocess_image): New function.
17733 (lookup_image): Call it for all image types except PostScript.
17734 (x_kill_gs_process): Call postprocess_image.
17735 (tiff_error_handler, tiff_warning_handler): New functions.
17736 (tiff_load): Install them as handlers.
17737 (x_kill_gs_process): Recognize if someone has cleared the image
17738 cache under us.
17739 (valid_image_p): Protect better against invalid image
17740 specifications. Previous code could signal an error.
17741 (Fx_hide_tip, Fshow_tip): Doc fix.
17742 (Fv_max_tooltip_size): New variable.
17743 (syns_of_xfns): DEFVAR_LISP it.
17744 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 17745 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
17746 window_width. Use a maximum tooltip size specified by
17747 Vx_max_tooltip_size, if that has valid contents.
17748 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
17749 Make sure the tooltip is completely visible.
17750 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
17751 (Fx_create_frame): Adjust the frame's height for presence
17752 of the tool bar before calling x_figure_window_size.
17753 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
17754 when the window gets smaller.
17755 (x_set_foreground_color): Set frame's cursor_pixel.
17756 (x_set_foreground_color, x_set_background_color): Cleaned up.
17757 (x_set_font): Handle case of x_new_fontset returning the same name
17758 as before, although there was a change in fontsets.
17759
386ca361
MB
177602001-10-21 Miles Bader <miles@gnu.org>
17761
c2d53558 17762 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
17763 (Flogxor): Add usage: string to doc string.
17764 * charset.c (Fstring): Likewise.
17765 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
17766 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
17767
f00691a3 177682001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 17769
03be2694
PJ
17770 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
17771
17772 * alloc.c: Reindent DEFUNs with doc: keywords.
17773
17774 * abbrev.c (Finsert_abbrev_table_description): Reindent.
17775
14ff1ee0
PJ
17776 * frame.c: Change doc-string comments to `new style' [w/`doc:'
17777 keyword].
17778
2f147815 17779See ChangeLog.9 for earlier changes.
6922b018
KH
17780
17781;; Local Variables:
49b3bd82 17782;; coding: iso-2022-7bit
6922b018 17783;; End:
2a34a036 17784
2f147815 17785 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
17786 Copying and distribution of this file, with or without modification,
17787 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
17788
17789;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4