Add note about Unicode clipboard support on Windows.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
6407f07b
RS
12005-02-15 Richard M. Stallman <rms@gnu.org>
2
3 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
4 for mode and header lines.
5
6 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
7
8 * keymap.h (describe_map_tree): Change decl.
9
10 * keyboard.c (command_loop_1): Always use safe_run_hooks
11 to run Qdeferred_action_function.
12
13 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
14 (describe_map, describe_vector): Likewise. When it's 1,
15 don't omit shadowed bindings, instead mark them as shadowed.
16
17 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
18 for describe_map_tree. Pass 1 for MENTION_SHADOW.
19
20 * data.c (Fsetq_default): Allow no arg case.
21
3bb917bf
KH
222005-02-14 Kenichi Handa <handa@m17n.org>
23
24 * coding.c (encode_coding_string): Always return a unibyte string.
25 If NOCOPY is nonzero and there's no need of encoding, make STR
26 unibyte directly.
27
28 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
29 multibyte string, signal an error instead of aborting.
30
e31d908f
DN
312005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
32
33 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
34
48e029b6
KS
352005-02-12 Kim F. Storm <storm@cua.dk>
36
37 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
38
c10bb00a
KS
392005-02-10 Kim F. Storm <storm@cua.dk>
40
41 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
42 if it moves outside window or it doesn't display text.
43
9ca0f64a
KS
442005-02-09 Kim F. Storm <storm@cua.dk>
45
46 * undo.c (Fprimitive_undo): Check that undo function does not
47 switch buffer.
48
b8d6f4af
JD
492005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
50
51 * xselect.c (selection_data_to_lisp_data): For the special case
52 type == XA_ATOM, data contains array of int, not array of Atom.
53 (x_property_data_to_lisp, selection_data_to_lisp_data): Comment
54 update: data must be array of int for format == 32.
55
3419757d
SM
562005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
57
58 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
59
3a441526
JD
602005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
61
fc34503b
JD
62 * xfns.c (Fx_change_window_property): Use long array when format is 32.
63 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
64 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
65 (x_set_tool_bar_lines): Check that width and height is greater than
66 zero before clearing area.
fc34503b
JD
67
68 * xselect.c (x_reply_selection_request): Pass long array to
69 XChangeProperty so that 64 bit longs are handeled correctly.
70 (x_get_window_property): If format is 32 and long is bigger than 32
71 bits convert data from XGetWindowProperty from long array to int array.
72 (lisp_data_to_selection_data): When the input is a vector and the
73 format is 32, allocate a long array even if long is bigger than 32 bits.
74 (x_fill_property_data): Use char, short and long as the man page
75 for XChangeProperty specifies. This way the data returned is OK for
76 both 32 and 64 bit machines.
77 (x_handle_dnd_message): Calculate size correctly even for 64 bit
78 machines.
79 (Fx_send_client_event): Undo change from 2005-02-05,
80 x_fill_property_data now handles that case.
81
3419757d 82 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
83 reason for the approach in the code.
84
82ec225b
KS
852005-02-07 Kim F. Storm <storm@cua.dk>
86
87 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
88
ba2c991c
RS
892005-02-06 Richard M. Stallman <rms@gnu.org>
90
91 * eval.c (Frun_hook_with_args)
92 (Frun_hook_with_args_until_success)
93 (Frun_hook_with_args_until_failure): Doc fixes.
94
e120ea40
AS
952005-02-05 Andreas Schwab <schwab@suse.de>
96
3419757d 97 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 98
31f16913
JD
992005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
100
101 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
102 the longs in a XClientMessageEvent correctly when long is 64 bits.
103
6082a820
EZ
1042005-02-05 Eli Zaretskii <eliz@gnu.org>
105
106 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
107 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
108
0e95095b
JD
1092005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
110
111 * xmenu.c (menubar_selection_callback): Force out GTK buffered
112 events so the menu event comes after them. This is to prevent sit-for
113 from exiting on buffered events directly after a menu selection,
114 lisp code for Help => About Emacs uses sit-for.
115
116 * gtkutil.c (create_menus): Connect selection-done event instead of
117 the deactivate event to deactivate_cb. This will make the last
118 leave event come before the call to deactivate_cb, so the leave
119 event does not make sit-for exit after a menu selection.
120
5bb6a3c1
KS
1212005-02-03 Kim F. Storm <storm@cua.dk>
122
123 * dispnew.c (build_frame_matrix_from_leaf_window)
124 [!GLYPH_DEBUG]: Fix xassert.
125
126 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
127
128 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
129
e9859e26
YM
1302005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
131
132 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
133 the compiling OS version.
134
135 * macfns.c (x_create_tip_frame): Likewise.
136
3419757d 137 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 138
4e07258f
RS
1392005-02-03 Richard M. Stallman <rms@gnu.org>
140
141 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
142
143 * xdisp.c (echo_area_display): Clear echo_message_buffer.
144
145 * buffer.c (Fbury_buffer): Doc fix.
146
4a34b529
ST
1472005-02-02 Steven Tamm <steventamm@mac.com>
148
f6c62d96
ST
149 * macfns.c (unwind_create_frame): Fixing compile error due to
150 xassert being uncondition, but predicate is.
4a34b529 151 * dispnew.c (update_window): Fixing compile error due to
f6c62d96 152 xassert being uncondition, but predicate is.
4a34b529 153
d78f30b8
MB
1542005-02-02 Miles Bader <miles@gnu.org>
155
156 * dispextern.h (xassert): Enable unconditionally.
157
b044278d
KS
1582005-02-02 Kim F. Storm <storm@cua.dk>
159
160 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
161
56072160
KH
1622005-02-02 Kenichi Handa <handa@m17n.org>
163
164 * casefiddle.c (casify_object): Enable changing characters of
165 different byte length.
166 (casify_region): Fix loop condition, args to replace_range_2, and
167 update opoint_byte.
168
169 * insdel.c (replace_range_2): Fix bugs in adjusting markers and
170 point.
171
5e1674c5
KS
1722005-02-01 Kim F. Storm <storm@cua.dk>
173
174 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
175 stack before calling handle_display_prop.
176
fb89c330
KS
1772005-01-31 Kim F. Storm <storm@cua.dk>
178
179 * undo.c (Qapply): New lisp var.
180 (syms_of_undo): Intern and staticpro it.
181 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
182 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
183
184 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
185
7bf72fa6
JH
1862005-01-30 Jesper Harder <harder@phys.au.dk>
187
a050b1a9
KS
188 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
189 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 190
03c64f2e
LT
1912005-01-29 Luc Teirlinck <teirllm@auburn.edu>
192
193 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 194 Increase value to 3 Meg.
03c64f2e 195
49b8b5dc
JD
1962005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
197
198 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
199 button events are not received otherwise.
200
5a92a9eb
RS
2012005-01-29 Richard M. Stallman <rms@gnu.org>
202
203 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
204
205 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
206
5c243ee4
SM
2072005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
208
209 * keymap.c (access_keymap): YAILOM.
210
caf533af
KS
2112005-01-27 Kim F. Storm <storm@cua.dk>
212
213 * xdisp.c (get_phys_cursor_geometry): New function to calculate
214 phys cursor position and size for hollow cursor. Position is
215 aligned with get_glyph_string_clip_rect and ensures that a hollow
216 cursor is shown, even when the actual glyph is not visible.
217
218 * dispextern.h (get_phys_cursor_geometry): Add prototype.
219
220 * xterm.c (x_clip_to_row): Ensure y >= 0.
221 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
222
223 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
224
225 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
226
043f7f73
SM
2272005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
228
229 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
230
889f3641
KS
2312005-01-27 Kim F. Storm <storm@cua.dk>
232
233 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
234 glyph, even when row is only partially visible and actual cursor
235 position is not visible.
236
29099c2f
RS
2372005-01-24 Richard M. Stallman <rms@gnu.org>
238
239 * xterm.c (x_error_quitter): No longer static, and moved after
240 x_error_handler.
241
6adb6f01
KS
2422005-01-24 Kim F. Storm <storm@cua.dk>
243
244 * xdisp.c (move_it_by_lines): If we move forward after going too
245 far back, cancel move if end position is same as start position.
246
4d904fa0
ST
2472005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
248
249 * dispextern.h (struct glyph_string): New members clip_head and
250 clip_tail.
6adb6f01 251
4d904fa0
ST
252 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
253 region to the area between clip_head and clip_tail.
254 (draw_glyphs): Record the area that need to be actually redrawn to
255 the new variables clip_head and clip_tail when there are
256 overhangs. Set values of these variables to the corresponding
257 members in struct glyph_string. Refine x coordinates for
258 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 259
4d904fa0
ST
260 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
261
262 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
263 QDTextBounds.
264 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 265 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 266 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 267 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 268
f2417699
KS
2692005-01-24 Kim F. Storm <storm@cua.dk>
270
6f67f013
KS
271 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
272 direction if window height was smaller than next-screen-context-lines.
273 Now always scroll at least one line in the requested direction.
274 Ensure that we actually do scroll backwards when requested to do so.
275
f2417699
KS
276 * xdisp.c (redisplay_window): Only try to make cursor line fully
277 visible once (to avoid redisplay loop).
278
a354b72c
KS
2792005-01-23 Kim F. Storm <storm@cua.dk>
280
6b3d88f7 281 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 282 partially visible rows.
6b3d88f7
KS
283 (window_scroll_pixel_based): Adapt to that change.
284
5c20cae2
KS
285 * window.c (window_scroll_pixel_based): Force moving to next line
286 if scrolling doesn't move start point, e.g. if looking at tall image.
287
a354b72c 288 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
289 Clear last_height before calling line_bottom_y to get real height.
290 Fix calculation of y.
a354b72c 291
d9e7c622
ST
2922005-01-22 Steven Tamm <steventamm@mac.com>
293
294 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 295 (DARWIN): Define.
d9e7c622
ST
296 * process.c (init_process): Default process-connection-type to
297 nil on darwin 6 or less, t if it is 7 or higher. This way the
298 broken pty behavior is still allowed on darwin 6 for interactive
299 processes for people that know what they are doing.
300
d00e399a
KS
3012005-01-22 Kim F. Storm <storm@cua.dk>
302
303 * window.c (auto_window_vscroll_p): New boolean.
304 (syms_of_window): DEFVAR_BOOL it.
305 (Fpos_visible_in_window_p): Extend return value to include RTOP
306 and RBOT values if FULLY is nil.
307 (window_scroll_pixel_based): Adjust vscroll for partially visible
308 rows if auto_window_vscroll_p is set.
309 (Fset_window_vscroll): Do nothing if vscroll is not modified.
310
311 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
312 to return number of partially invisible pixels at top and bottom
313 of the dislay row at POS.
314
315 * lisp.h (pos_visible_p): Fix prototype.
316
f95a20e7
RS
3172005-01-21 Richard M. Stallman <rms@gnu.org>
318
319 * fileio.c (Fcopy_file): Doc fix.
320
eee141ce
JD
3212005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
322
323 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
324 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
325 start of function for older compilers.
326
6f771c32
RS
3272005-01-20 Richard M. Stallman <rms@gnu.org>
328
329 * editfns.c (Fmessage): If arg is "", return "" (as before).
330
331 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
332
333 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
334 variable.
335
a15252fd
ST
3362005-01-20 Steven Tamm <steventamm@mac.com>
337
043f7f73 338 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
339 (init_editfns): Assign new variable operating-system-release
340 based on call to uname if available.
043f7f73 341 (get_operating_system_release): Add function to
d00e399a 342 allow c-level access to operating system release.
a15252fd
ST
343
344 * config.h: Regenerated.
345
043f7f73
SM
346 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
347 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
348 using ptys as '7'.
349
3d6a4b2d
KS
3502005-01-20 Kim F. Storm <storm@cua.dk>
351
62fc9b0f
KS
352 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
353
c310aca4
KS
354 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
355 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
356
357 * macterm.c (x_draw_glyph_string_box): Likewise.
358
359 * w32term.c (x_draw_glyph_string_box): Likewise.
360
3d6a4b2d
KS
361 * indent.c (Fvertical_motion): Temporarily disable selective display.
362
27c8be45
KS
3632005-01-19 Kim F. Storm <storm@cua.dk>
364
77db5cf3
KS
365 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
366 image property.
367
27c8be45
KS
368 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
369
81f498dc
KS
3702005-01-18 Kim F. Storm <storm@cua.dk>
371
372 * xdisp.c (fast_find_position): Backtrack to find first row if
373 charpos is inside a display overlay that spans multiple lines.
374
1cdb0707
KH
3752005-01-18 Kenichi Handa <handa@m17n.org>
376
377 * coding.c (decode_coding_iso2022): Translate invalid codes if
378 translation-table is specified.
379
677159ce
KS
3802005-01-18 Kim F. Storm <storm@cua.dk>
381
382 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
383 change. If handle_display_prop indicates newline is replaced by
384 image or text, move back to start of relevant overlay or interval
385 and continue scan from there. Simplify.
386
977284cc
KS
3872005-01-17 Kim F. Storm <storm@cua.dk>
388
043f7f73
SM
389 * dispnew.c (mode_line_string, marginal_area_string):
390 Fix off-by-one error in search for glyph.
977284cc 391
e24531b7
KS
3922005-01-16 Kim F. Storm <storm@cua.dk>
393
394 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
395
5ddd7664
ST
3962005-01-16 Steven Tamm <steventamm@mac.com>
397
043f7f73 398 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 399
fc2ff44b
AS
4002005-01-16 Andreas Schwab <schwab@suse.de>
401
402 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
403
50af5100
JD
4042005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
405
406 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
407 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
408
a2d5fca0
JD
4092005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
410
411 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
412 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
413 New flags for readable_events.
043f7f73 414 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
415 (tracking_off): Call readable_events and get_input_pending with
416 flag READABLE_EVENTS_DO_TIMERS_NOW.
417 (readable_events): Move code from old readable_filtered_events here,
418 but check new READABLE_EVENTS_* in argument flags instead of previous
419 two boolean arguments do_timers_now and filter_events.
420 If we are doing mouse tracking and the mouse moved, return only if
421 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
422 (swallow_events): Call get_input_pending with flag
423 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 424 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
425 here. Replace boolean arguments do_timers_now, filter_events with
426 flags, and pass flags to readable_events. Document new
427 READABLE_EVENTS_* flags.
428 (detect_input_pending_ignore_squeezables): New function.
429 (detect_input_pending_run_timers): Call get_input_pending with flag
430 READABLE_EVENTS_DO_TIMERS_NOW.
431 (Finput_pending_p): Call get_input_pending with flags
432 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
433
434 * dispnew.c (update_window, update_frame_1): Replace calls to
435 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 436 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
437 mouse movements.
438
439 * lisp.h: Declare detect_input_pending_ignore_squeezables.
440
42afbcda
ST
4412005-01-15 Steven Tamm <steventamm@mac.com>
442
e24531b7
KS
443 * macterm.c (Vmac_use_core_graphics): Declare variable for
444 mac-allow-anti-aliasing.
445 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 446 (mac_draw_string_common): Use core graphics text rendering if
0530c679 447 mac-allow-anti-aliasing is enabled.
743d0696 448
42afbcda
ST
449 * macfns.c (Fx_file_dialog): Save As dialog includes only the
450 file name in the text box.
451
9cdd4884
ST
4522005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
453
043f7f73
SM
454 * macfns.c (x_set_foreground_color, x_set_background_color):
455 Sync with xfns.c.
9cdd4884
ST
456 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
457 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
458 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
459
88948d55
KS
4602005-01-14 Kim F. Storm <storm@cua.dk>
461
462 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
463
20d6de82
RS
4642005-01-13 Richard M. Stallman <rms@gnu.org>
465
466 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
467 if Voverriding_terminal_local_map is non-nil.
468
469 * keyboard.c (syms_of_keyboard): Doc fix.
470
f75a592e
KS
4712005-01-13 Kim F. Storm <storm@cua.dk>
472
473 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
474 (specify 0 for FACE instead). Reorder arg list. Doc fix.
475
28f94a34
RS
4762005-01-12 Richard M. Stallman <rms@gnu.org>
477
478 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
479 face property for characters that don't specify one.
480
481 * fns.c (Frequire): Record in load-history unconditionally.
482
57a230b1
KS
4832005-01-10 Kim F. Storm <storm@cua.dk>
484
485 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
486
487 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
488 Callers changed.
489 Add support to merge with lisp face id too (if face_name is t).
490
491 * xdisp.c (get_next_display_element, next_element_from_display_vector):
492 Don't lookup lface_id from display table glyphs here; instead use
493 merge_faces to merge the lisp face id into current face.
494
8ab2c119
KS
4952005-01-09 Kim F. Storm <storm@cua.dk>
496
497 * dispextern.h (struct it): New member dpvec_face_id.
498 (merge_into_realized_face): Add prototype.
499
500 * xfaces.c (merge_into_realized_face): New function. Used to
501 merge escape-glyph face or face from display table into current face.
502
503 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
504 (syms_of_xdisp): DEFVAR_LISP it.
505 (escape_glyph_face): Remove var.
506 (redisplay_window): Don't initialize it.
507 (setup_for_ellipsis, get_next_display_element):
508 Set it->dpvec_face_id to -1.
509 (get_next_display_element): Test Vshow_nonbreak_escape.
510 Do not setup escape_glyph_face.
511 Properly merge escape-glyph face or face from display table with
043f7f73
SM
512 current face for escape and control characters.
513 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
514 element of display vector.
515 (next_element_from_display_vector): If it->dpvec_face_id is set,
516 use that instead of lface_id from glyph itself.
517
e0910857
JD
5182005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
519
520 * xterm.h (struct x_output): New member, toolbar_detached.
521
522 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
523 38.
524 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
525 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
526 (xg_create_tool_bar): Initialize toolbar_detached.
527 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
528 toolbar_detached is zero.
529
ff59904a
JD
5302005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
531
9b85e63d
JD
532 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
533 gtk_menu_popup if not for_click, so callbacks for the menu are called.
534
ff59904a
JD
535 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
536 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 537 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
538
539 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 540 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
541 XFLOAT_DATA to get extract number from Lisp object.
542
f9a23a6f
KS
5432005-01-07 Kim F. Storm <storm@cua.dk>
544
545 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
546 Set stop_charpos to current charpos instead of 0.
547
28f94a34
RS
5482005-01-06 Nick Roberts <nickrob@snap.net.nz>
549
550 * xdisp.c (Fformat_mode_line): First arg now required.
551
a6fffcdc
ST
5522005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
553
554 * macterm.c (XLoadQueryFont): Correctly handle 0 size
555 font widths that are returned from some Japanese fonts.
556
c35b0c6b
KS
5572005-01-06 Kim F. Storm <storm@cua.dk>
558
559 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
560 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
561 (destroy_fringe_bitmap): Set fringe_faces element to nil.
562 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
563 fringe_faces array and init elements to nil.
564 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
565 non-persistent face id.
566 (mark_fringe_data): New function for GC.
567
568 * alloc.c (mark_fringe_data): Declare extern.
569 (Fgarbage_collect): Call mark_fringe_data.
570
571 * alloc.c (overrun_check_free): Invalidate freed memory if
572 XMALLOC_CLEAR_FREE_MEMORY is defined.
573
e0e76ab9
ST
5742005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
575
576 * macfns.c: Include sys/param.h.
577 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
578 and function.
579 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
580 of filename string. Set event callback function when creating
581 dialog boxes. Add code conversions for filenames. Don't dispose
582 apple event descriptor record if failed to create it.
583
584 * macterm.c: Include sys/param.h.
585 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
586 kEventWindowUpdate.
587 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
588 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
589 of FSSpec from apple event descriptor record.
590 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
591 size of filename string.
592 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
593 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
594 file dialog is in action.
043f7f73
SM
595 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
596 Reject only when there are no filename items. Set background color
e0e76ab9
ST
597 before (un)highlighting the window below the dragged items.
598 (XTread_socket) [!USE_CARBON_EVENTS]: Don't call do_window_update.
599
043bc640
KH
6002005-01-05 Romain Francoise <romain@orebokech.com>
601
602 * term.c (encode_terminal_code): Fix buffer size computation.
603
dd496df6
RS
6042005-01-04 Richard M. Stallman <rms@gnu.org>
605
606 * xdisp.c (Fformat_mode_line): Doc fix.
607
026cdede
SM
6082005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
609
610 * alloc.c (refill_memory_reserve): Move.
611 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
612 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
613
d57c7572
RS
6142005-01-03 Richard M. Stallman <rms@gnu.org>
615
616 * window.c (window_scroll_pixel_based): Don't correct preserve_y
617 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
618
b14f868c
JR
6192005-01-03 Jason Rumney <jasonr@gnu.org>
620
621 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
622 fontp->space_width to FONT_WIDTH so they are valid.
623
624 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
625 average width. Set fontp->average_width and fontp->space_width to
626 their appropriate values.
627
628 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
629 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
630 fontp->space_width.
631
e169f939
ST
6322005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
633
634 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
635 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
636 metrics for max and min bounds.
637 (x_load_font): Correctly calculate average font width metrics.
638
19996af4
RS
6392005-01-02 Richard M. Stallman <rms@gnu.org>
640
641 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
642
42d02da0
JD
6432004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
644
645 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
646
1db7dd46
RS
6472004-12-31 Richard M. Stallman <rms@gnu.org>
648
b437860a
RS
649 * xdisp.c (setup_for_ellipsis, get_next_display_element):
650 Set it->ellipsis_p to 1 or 0.
651 (display_line): Record whether row ends in mid-ellipsis.
652 (set_cursor_from_row): If ends in ellipsis. find start of it.
653 (cursor_row_p): If PT's at the end of the ellipsis the row
654 ends within, don't display cursor on this row.
655
656 * dispextern.h (struct it): New element ellipsis_p.
657 (struct glyph_row): New element ends_in_ellipsis_p.
658
659 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
660 position if we're reading from something other than the buffer.
661
1db7dd46
RS
662 * window.c (window_scroll_pixel_based): Only look at
663 Vscroll_preserve_screen_position if the old PT can't be kept.
664 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
665
1225f637
KS
6662004-12-30 Kim F. Storm <storm@cua.dk>
667
668 * xdisp.c (get_line_height_property): New function extracted from
669 original calc_line_height_property.
670 (calc_line_height_property): Rework. Handle t and (nil . ratio).
671 (x_produce_glyphs): Use them to handle line-height and
672 line-spacing according to new height spec.
673 (Qtotal): Remove.
33b2f4ea 674 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 675
c243063e
KH
6762004-12-30 Kenichi Handa <handa@m17n.org>
677
678 * fileio.c (Finsert_file_contents): Don't use
679 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 680 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
681
682 * fontset.h (struct font_info): New members space_width and
683 average_width.
684
685 * frame.h (struct frame): New member space_width.
686 (FRAME_SPACE_WIDTH): New macro.
687
688 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
689
690 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
691 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 692 fontp->space_width.
043f7f73 693 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
694 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
695
696 * xdisp.c (x_produce_glyphs): Calculate tab width by
697 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
698
456e761b
ST
6992004-12-29 Sanghyuk Suh <han9kin@mac.com>
700
701 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 702 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 703
188577ce
LT
7042004-12-29 Luc Teirlinck <teirllm@auburn.edu>
705
706 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
707
99ec74b9
RS
7082004-12-29 Richard M. Stallman <rms@gnu.org>
709
710 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
711
30c92fab
ST
7122004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
713
714 * macfns.c (install_window_handler): Modify extern to return OSErr
715 value.
716 (mac_window): Handle return value of install_window_handler.
717
718 * macterm.c (reflect_byte): Remove function.
719 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
720 Lookup table instead.
721 (mac_do_font_lists): Simplify calculation of the longest
722 nonspecial string.
723 (init_mac_drag_n_drop): Remove function and declaration.
724 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
725 init_mac_drag_n_drop.
726 (mac_do_track_drag): New function and declaration.
727 (install_window_handler): Return OSErr value.
043f7f73
SM
728 (install_window_handler) [TARGET_API_MAC_CARBON]:
729 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 730 (do_ae_open_documents): Generate unibyte strings for filenames.
5c243ee4
SM
731<<<<<<< ChangeLog
732 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
733 Reject only non-filename items. Set event modifiers and return value.
734=======
043f7f73
SM
735 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
736 Reject only non-filename items. Set event modifiers, and return value.
5c243ee4 737>>>>>>> 1.4187
30c92fab 738
4b982924
DN
7392004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
740
741 * coding.c (decode_coding): Fix previous change.
742
93fdf45f
RS
7432004-12-28 Richard M. Stallman <rms@gnu.org>
744
745 * xdisp.c (back_to_previous_visible_line_start):
746 Don't call handle_display_prop.
747
5bdca8af
DN
7482004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
749
750 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
751 (decode_coding_emacs_mule, encode_coding_emacs_mule)
752 (decode_coding_iso2022, encode_designation_at_bol)
753 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
754 (decode_coding): Constify arguments and local vars.
755
33385c6f
JD
7562004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
757
758 * xmenu.c (popup_get_selection): Only pop down dialogs
759 on C-g and Escape.
95bdef2e 760 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
761 (create_and_show_popup_menu, create_and_show_dialog):
762 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 763
b15325b2
ST
7642004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
765
766 * dispextern.h: Change HAVE_CARBON to MAC_OS.
767 (struct glyph_string): Likewise.
a2c7e69a 768
b15325b2
ST
769 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
770 mac_initialize.
a2c7e69a 771
b15325b2
ST
772 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
773 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 774
b15325b2 775 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 776
b15325b2
ST
777 * frame.c (x_set_frame_parameters, x_report_frame_params)
778 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
779 (x_set_border_width, Vdefault_frame_scroll_bars):
780 Change HAVE_CARBON to MAC_OS.
a2c7e69a 781
b15325b2
ST
782 * image.c [MAC_OS]: Include sys/stat.h.
783 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
784 QuickTimeComponents.h.
a2c7e69a 785
b15325b2
ST
786 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
787 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 788 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
789 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
790 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
791 (mac_clear_font_name_table): Add extern.
792 (Fmac_clear_font_name_table): New defun.
793 (syms_of_mac): Defsubr it.
794 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
795 [MAC_OSX] (select_and_poll_event): New function.
796 [MAC_OSX] (sys_select): Use it.
797 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
798 [MAC_OSX && SELECT_USE_CFSOCKET]
799 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
800 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
801 RunLoop for simultaneously monitoring two kinds of inputs, window
802 events and process outputs, without periodically polling.
a2c7e69a 803
b15325b2
ST
804 * macfns.c (mac_initialized): Remove extern.
805 (stricmp): Put in #if 0. All callers changed to use xstricmp in
806 xfaces.c.
043f7f73
SM
807 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
808 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
809 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
810 (mac_get_rdb_resource): New function (from w32reg.c).
811 (x_get_string_resource): Use it.
812 (install_window_handler): Add extern.
813 (mac_window): New function.
043f7f73
SM
814 (Fx_create_frame): Use it instead of make_mac_frame.
815 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
816 (Fx_open_connection, Fx_close_connection): New defuns.
817 (syms_of_macfns): Defsubr them.
043f7f73
SM
818 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
819 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
820 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
821 (x_create_tip_frame): Don't call ShowWindow.
822 (Fx_show_tip): Call ShowWindow.
823 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
824 TARGET_API_MAC_CARBON'.
825 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
826 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 827
043f7f73 828 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
829 (Window): Typedef to WindowPtr and move outside `#if
830 TARGET_API_MAC_CARBON'.
831 (XSizeHints): New struct.
a2c7e69a 832
b15325b2
ST
833 * macterm.c (x_update_begin, x_update_end)
834 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
835 frame.
836 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
837 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
838 (construct_mouse_click): Put in #if 0.
839 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
840 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
841 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
842 (activate_scroll_bars, deactivate_scroll_bars)
843 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
844 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
845 if the position is neither user-specified nor program-specified.
846 (x_free_frame_resources): Free size_hints.
5c243ee4
SM
847<<<<<<< ChangeLog
848 (x_wm_set_size_hint): Allocate size_hints if needed.
849 Set size_hints.
850=======
043f7f73 851 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
5c243ee4 852>>>>>>> 1.4187
b15325b2
ST
853 (mac_clear_font_name_table): New function.
854 (mac_do_list_fonts): Initialize font_name_table if needed.
855 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
856 around mac_do_list_fonts.
857 (mac_unload_font): New function.
858 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
859 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
860 and definitions with #if TARGET_API_MAC_CARBON.
861 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
862 (install_window_handler): Add decl.
863 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
864 window. Use UpdateControls. Get the rectangle that should be
865 updated and restrict the target of expose_frame to it.
043f7f73 866 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
867 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
868 (do_zoom_window): Don't use x_set_window_size.
869 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
870 (install_window_handler): New function.
871 [!USE_CARBON_EVENTS] (mouse_region): New variable.
872 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
873 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
874 GetEventDispatcherTarget inside BLOCK_INPUT.
875 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
876 Update mouse_region when mouse is moved.
877 (make_mac_frame): Remove.
043f7f73
SM
878 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
879 Initialize mouse pointer shapes. Change values of f->left_pos and
880 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
881 Don't call ShowWindow.
b15325b2
ST
882 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
883 Vinvocation_name and Vsystem_name.
884 (mac_make_rdb): New function (from w32term.c).
885 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
886 already been opened. Don't pass argument to
887 mac_initialize_display_info. Don't set dpyinfo->height/width.
888 Add entries to x_display_list and x_display_name_list.
889 (x_delete_display): New function.
890 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
891 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
892
b15325b2
ST
893 * macterm.h (check_mac): Add extern.
894 (struct mac_output): New member size_hints.
895 (FRAME_SIZE_HINTS): New macro.
896 (mac_unload_font): Add extern.
a2c7e69a 897
b15325b2 898 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 899
b15325b2
ST
900 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
901
92d2947b
RS
9022004-12-27 Richard M. Stallman <rms@gnu.org>
903
5c243ee4
SM
904<<<<<<< ChangeLog
905 * buffer.c (Fbuffer_disable_undo): Delete (moved to simple.el).
906=======
043f7f73 907 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
5c243ee4 908>>>>>>> 1.4187
ebbd14f1
RS
909 (syms_of_buffer): Don't defsubr it.
910
911 * process.c (list_processes_1): Set undo_list instead
912 of calling Fbuffer_disable_undo.
913
043f7f73 914 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 915 single_display_prop_string_p.
043f7f73 916 (single_display_spec_intangible_p): Rename from
92d2947b 917 single_display_prop_intangible_p.
043f7f73 918 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
919 Rewritten to be easier to understand.
920
a2c7e69a 921 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
922 and variables get just NAME.
923
924 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
925
926 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
927 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
928 (Qdefvar): Var deleted.
929 (syms_of_eval): Don't initialze it.
930
931 * lread.c (syms_of_lread) <load-history>: Doc fix.
932
9f6fcdc5
JD
9332004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
934
935 * xmenu.c (popup_get_selection): Pop down on C-g.
936 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
937 pops down menu on C-g.
938 (xdialog_show): If dialog popped down and no button in the dialog was
939 pushed, call Fsignal to quit.
940 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
941 Fsignal to quit.
942
943 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
944
945 * gtkutil.c (xg_initialize): Install bindings for C-g so that
946 dialogs and menus pop down.
947
d8ca23a0
KH
9482004-12-27 Kenichi Handa <handa@m17n.org>
949
950 * coding.c (code_convert_region): Fix calculation of `ratio'.
951
857ae68b
JD
9522004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
953
133c0116
JD
954 * gtkutil.c (update_frame_tool_bar): Make the value of
955 tool-bar-button-margin control margins of images in tool bar.
956
857ae68b
JD
957 * alloc.c (check_depth): New variable.
958 (overrun_check_malloc, overrun_check_realloc): Only add
959 overhead and write check pattern if check_depth is 1 (to handle
960 recursive calls). Increase/decrease check_depth in entry/exit.
961 (overrun_check_free): Only check for overhead if check_depth is 1.
962 Increase/decrease check_depth in entry/exit.
963
bd55c35c
JD
9642004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
965
966 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
967 before touching input_available_clear_time, to avoid accessing it
968 from multiple threads.
969
66354420
JR
9702004-12-23 Jason Rumney <jasonr@gnu.org>
971
972 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
973 of JPEG library.
974
55f4edbc
RS
9752004-12-22 Richard M. Stallman <rms@gnu.org>
976
977 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
978
979 * lisp.h (Vundo_outer_limit): Fix decl.
980
981 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
982 Uses changed.
983 (syms_of_undo): Initialize appropriately.
984 (truncate_undo_list): If it's nil, there's no limit.
985
7a0ea9e3
KH
9862004-12-22 Kenichi Handa <handa@m17n.org>
987
988 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
989
fda2922a
RS
9902004-12-21 Richard M. Stallman <rms@gnu.org>
991
992 * eval.c (unwind_to_catch): Clear immediate_quit.
993
994 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
995 specially as `\ ' and `\-'.
996
997 * keyboard.c (kbd_buffer_store_event_hold):
998 In the code for while-no-input, handle immediate_quit.
999
1000 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
1001 Call that at the very start.
043f7f73 1002 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
1003 (syms_of_alloc): Don't define undo-limit,
1004 undo-strong-limit and undo-outer-limit here.
1005
1006 * undo.c (truncate_undo_list): Return void.
1007 Take just one argument, the buffer.
1008 Make it current, and inhibit recursive GC.
1009 Access and update the undo list directly; return void.
1010 Refer to the undo...limit variables directly.
1011 Test undo_outer_limit only after counting the whole current command.
1012 When it's exceeded, call the function in undo-outer-limit-function.
1013 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
1014 (Vundo_outer_limit_function): New variable.
1015 (syms_of_undo): Define undo-limit, undo-strong-limit
1016 and undo-outer-limit here, and undo-outer-limit-function.
1017 Doc fixes.
1018
1019 * lisp.h (truncate_undo_list): Update decl.
1020
10212004-12-21 Piet van Oostrum <piet@cs.uu.nl>
1022
1023 * fileio.c (Fread_file_name): Delete duplicates in
1024 file-name-history when history_delete_duplicates is true.
1025
68c69027
ST
10262004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1027
1028 * macterm.c (mac_do_list_fonts): Fix memory leak
1029
134579f2
RS
10302004-12-20 Richard M. Stallman <rms@gnu.org>
1031
1032 * regex.c (re_match_2_internal) <symend, wordend>:
1033 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
1034
fbe6152f
ST
10352004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1036
043f7f73
SM
1037 * macterm.c (endif, x_font_name_to_mac_font_name):
1038 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
1039 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
1040 quickly finding a specific font without needing regexps.
1041
fecad3f6
JD
10422004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1043
333f1b6f
JD
1044 * syssignal.h: Declare main_thread.
1045 (SIGNAL_THREAD_CHECK): New macro.
1046
1047 * keyboard.c (input_available_signal): Move thread checking code
1048 to macro SIGNAL_THREAD_CHECK and call that macro.
1049 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
1050
1051 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
1052
1053 * emacs.c: Define main_thread.
1054 (main): Initialize main_thread.
1055 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
1056 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
1057
1058 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
1059
1060 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
1061
1062 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
1063
043f7f73
SM
1064 * process.c (send_process_trap, sigchld_handler):
1065 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
1066
1067 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
1068
1069 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
1070
fecad3f6
JD
1071 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
1072 returning when xg_ignore_gtk_scrollbar is true.
1073
2a84c6da
KS
10742004-12-14 Kim F. Storm <storm@cua.dk>
1075
1076 * keyboard.c (read_char): Save and restore echo_string when
1077 handling input method.
1078
d9c1ce9d
RS
10792004-12-13 Richard M. Stallman <rms@gnu.org>
1080
1081 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
1082
1083 * keyboard.c (Vthrow_on_input): New variable.
1084 (syms_of_keyboard): Defvar and initialize it.
1085 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
1086
1087 * lisp.h (QUIT): Check for Vthrow_on_input.
1088 (Vthrow_on_input): Declare it.
1089
a6495ed5
KS
10902004-12-13 Kim F. Storm <storm@cua.dk>
1091
1092 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
1093 vector.
1094
24a0e22f
RS
10952004-12-12 Richard M. Stallman <rms@gnu.org>
1096
1097 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
1098
1099 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
1100 (Ftry_completion): Really use outer `zero'; eliminate inner one.
1101
d6d31e57
KH
11022004-12-12 Kenichi Handa <handa@m17n.org>
1103
1104 * term.c (encode_terminal_code): Fix previous change.
1105
6f8ffb88
SM
11062004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
1107
fb6f5cbf
SM
1108 * keyboard.c (handle_async_input): Remove pthread mutex handling.
1109 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
1110
6f8ffb88
SM
1111 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
1112 in macro arguments.
1113
1114 * minibuf.c (Ftry_completion, Fall_completions): Don't use
1115 XFASTINT blindly.
1116
1117 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
1118
c83c9f9d
JD
11192004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1120
2f25767f
JD
1121 * w32term.c (x_calc_absolute_position): Remove calculation of
1122 difference between inner and outer window. Don't subtract difference
1123 for left and top calculations.
1124
c83c9f9d
JD
1125 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
1126 for left and top calculations. Remove call to x_real_positions.
24a0e22f 1127 [Bug report by Drew Adams in November]
c83c9f9d
JD
1128 (x_check_expected_move): Do not set change_gravity to 1 when calling
1129 x_set_offset.
1130
cc1caa4e
RS
11312004-12-08 Richard M. Stallman <rms@gnu.org>
1132
1133 * xdisp.c (get_next_display_element): Use `escape-glyph' for
1134 control chars and escaped octal codes.
1135 (Qescape_glyph): New variable.
1136 (syms_of_xdisp): Initialize it.
1137 (escape_glyph_face): New variable.
1138 (redisplay_window): Initialize it.
1139
e0e30823
RS
11402004-12-07 Paul Eggert <eggert@cs.ucla.edu>
1141
1142 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
1143 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
1144
f415cacd
JD
11452004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1146
cf435f39
JD
1147 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
1148 reset_malloc_hooks.
1149
6f8ffb88
SM
1150 * keyboard.c (handle_async_input, input_available_signal):
1151 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 1152
f415cacd
JD
1153 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
1154
043f7f73 11552004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
1156
1157 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
1158
1159 * config.in: Regenerate.
1160
ded997c1
JD
11612004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1162
453a4f1b
JD
1163 * xmenu.c (Fx_popup_menu): Correct documentation about position.
1164 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
1165 if not given by a mouse click to correspond with x-popup-menu
1166 documentation.
1167
9a38524c
JD
1168 * config.in: Regenerate.
1169
aa477689
JD
1170 * gtkutil.c: Include signal.h and syssignal.h.
1171 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
1172
1173 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
1174 new variables main_thread and alloc_mutex,
1175 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
1176 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
1177 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
1178 (UN)BLOCK_INPUT.
1179 (emacs_blocked_free, emacs_blocked_malloc)
1180 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
1181 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
1182 (reset_malloc_hooks): New function.
1183
1184 * lisp.h: Declare reset_malloc_hooks.
1185
1186 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
1187
1188 * keyboard.c: Conditionally include pthread.h
6f8ffb88 1189 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
1190 thread, block signal, send signal to main thread and return.
1191
ded997c1 1192 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 1193 Set current folder in file chooser if default_filename is a directory.
ded997c1 1194
c72b0edd
SM
11952004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
1196
1197 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
1198 Remove redundant correctness checks.
1199 (regex_compile): Fix up error codes for \{..\} expressions.
1200
c721eee5
RS
12012004-12-05 Richard M. Stallman <rms@gnu.org>
1202
1203 * regex.c (regex_compile): Fix end-of-pattern case for space.
1204
d8f96db8
ST
12052004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1206
6108209e
KS
1207 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
1208 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 1209 crashes with invalid characters.
6108209e
KS
1210 * macmenu.c (add_menu_item): Use it.
1211 * image.c (image_load_quartz2d): Likewise.
1212 * macfns.c (x_set_name, x_set_title): Likewise.
1213 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
1214 creating them each time for labels.
d8f96db8 1215
ab67e8b6
RS
12162004-12-02 Richard M. Stallman <rms@gnu.org>
1217
1218 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
1219 don't use it here.
1220
1221 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
1222 (interactive_p): Skip Scalled_interactively_p frames
1223 like Sinteractive_p frames.
b8217ea6 1224 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
1225
1226 * data.c (Fmake_variable_buffer_local): Doc fix.
1227 (Fmake_local_variable): Doc fix.
1228
1229 * insdel.c (insert_from_string_before_markers)
1230 (insert_from_string): Don't modify buffer on empty insertion.
1231
1232 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
1233
f86bdc80
ST
12342004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1235
1236 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
1237 menu text as UTF8 fails.
1238
1cae6d39
KS
12392004-12-01 Kim F. Storm <storm@cua.dk>
1240
1241 * alloc.c: Add commentary for last change.
1242 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
1243 sizeof(size_t) != 4.
1244 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
1245 Use them. Also clear header and trailer of freed memory.
1246 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
1247 (string_overrun_cookie): Rename from string_overrun_pattern.
1248 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
1249
77ea0764
AS
12502004-12-01 Andreas Schwab <schwab@suse.de>
1251
1252 * lisp.h: Declare string_to_multibyte.
1253
2d5cd4e6
KH
12542004-12-01 Kenichi Handa <handa@m17n.org>
1255
1256 * w32console.c (w32con_write_glyphs): Decide coding here.
1257 Adjusted for the change of encode_terminal_code.
1258
1259 * term.c (encode_terminal_code): Don't make it "static".
1260
25a0994a
KH
12612004-11-30 Kenichi Handa <handa@m17n.org>
1262
19b1f29a 1263 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 1264 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
1265 characters at once, and return a pointer to the result of encoding.
1266 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
1267 (insert_glyphs): Likewise.
1268 (term_init): Initialize encode_terminal_bufsize to 0.
1269
1270 * coding.c (Vcode_conversion_workbuf_name): New variable.
1271 (syms_of_coding): Initialize and staticpro it.
1272 (set_conversion_work_buffer): New function.
1273 (run_pre_post_conversion_on_str): Use it.
1274 (run_pre_write_conversin_on_c_str): New function.
1275
1276 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
1277
fc7a70cc
ST
12782004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1279
1280 * keyboard.c: Don't undef SIGIO
1281 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
1282 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
1283 (macfns.o): Don't depend on ccl.h.
1284 * macfns.c (mac_frame_parm_handlers): Set handlers for
1285 Qleft_fringe and Qright_fringe.
1286 * macterm.c (mac_fill_rectangle_to_pixmap)
1287 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
1288 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
1289 Put in #if 0.
1290 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
1291 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
1292 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
1293 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
1294 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
1295 XDrawImageString. Always draw background and foreground separately.
1296 (x_draw_image_foreground): Use clipping instead of computing the
1297 intersection rectangle.
1298 (x_draw_image_glyph_string): Don't draw an image with mask to a
1299 pixmap.
1300 (x_redisplay_interface): Set flush_display_optional member to 0.
1301 (XTread_socket): Correctly reset the TEConverter
1302 object.
1303
fc368889
KS
13042004-11-30 Kim F. Storm <storm@cua.dk>
1305
1306 * lisp.h: New defines to enable buffer overrun checking.
1307 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
1308 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
1309
1310 * alloc.c: Add more checks for buffer overruns.
1311 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
1312 xmalloc_overrun_check_trailer, overrun_check_malloc)
1313 overrun_check_realloc, overrun_check_free): Add.
1314 (GC_STRING_EXTRA, string_overrun_pattern): Add.
1315 (check_sblock, allocate_string_data, compact_small_strings):
1316 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
1317 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
1318 (check_string_free_list): Add.
1319 (allocate_string, sweep_strings): Call check_string_free_list.
1320
1321 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
1322 XMALLOC_OVERRUN_CHECK to avoid crash during load.
1323
0af8cfe1
KS
13242004-11-29 Kim F. Storm <storm@cua.dk>
1325
1326 * fns.c (concat): Use SAFE_ALLOCA.
1327
77220eeb
SM
13282004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
1329
1330 * sysdep.c (emacs_write): Don't use QUIT.
1331
a778cf63
KH
13322004-11-29 Kenichi Handa <handa@m17n.org>
1333
1334 * buffer.c (init_buffer): Set current_buffer->directory to a
1335 multibyte string made by string_to_multibyte.
1336
77220eeb 1337 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 1338
e3177e43
AS
13392004-11-27 Andreas Schwab <schwab@suse.de>
1340
1341 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
1342
1343 * s/gnu-linux.h: Enable no-op gcpros on ia64.
1344 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
1345
77220eeb
SM
1346 * filelock.c (lock_file_1): Call get_boot_time early.
1347 Increase buffer size.
e3177e43 1348
ca5e6fef
EZ
13492004-11-27 Eli Zaretskii <eliz@gnu.org>
1350
1351 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
1352 is not defined.
1353
e2811828
KS
13542004-11-27 Kim F. Storm <storm@cua.dk>
1355
1356 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
1357 marker out of doc string.
1358
7a262394
SM
13592004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
1360
1361 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
1362 which was not mentioned in the log.
1363
f33cc5a9
KS
13642004-11-26 Kim F. Storm <storm@cua.dk>
1365
048bb03f
KS
1366 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
1367 angle bitmaps at top/bottom line.
1368
f33cc5a9
KS
1369 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
1370 set it when it->method is set to next_element_from_display_vector.
1371 (setup_for_ellipsis): Add LEN argument. Callers changed.
1372 Set it->saved_face_id.
1373 (get_next_display_element): Use loop instead of recursion.
1374 Set it->saved_face_id. Combine duplicate code for ctr chars.
1375 (next_element_from_display_vector): Do not set it->saved_face_id.
1376 (next_element_from_ellipsis): Use setup_for_ellipsis.
1377
670e8906
EZ
13782004-11-26 Eli Zaretskii <eliz@gnu.org>
1379
1380 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
1381 prevent compiler warnings.
1382
275464e7
SM
13832004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
1384
1bf0e604
SM
1385 * keyboard.c (command_loop_1): Print a message describing the key
1386 the user just pressed when this key has no binding.
1387
275464e7
SM
1388 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
1389 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
1390
1391 * lread.c (readchar): Check QUIT when `getc' is interrupted.
1392
261b01c6
RS
13932004-11-24 Richard M. Stallman <rms@gnu.org>
1394
1395 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
1396
1397 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
1398
a5bd504e
KS
13992004-11-24 Kim F. Storm <storm@cua.dk>
1400
1401 * xdisp.c (move_it_in_display_line_to, display_line):
1402 Restore saved_face_id also when truncate-lines or hscrolled.
1403
255e4140
JD
14042004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1405
1406 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
1407 x-use-old-gtk-file-dialog.
1408
1409 * xfns.c: Define x_use_old_gtk_file_dialog.
1410 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
1411 outside ifdef USE_GTK.
1412
cab27d04
SM
14132004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
1414
1415 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
1416 Don't use XFASTINT blindly.
1417
1418 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
1419
1420 * indent.c (skip_invisible): Avoid non-idempotent side-effects
1421 in macro arguments.
1422
1423 * keymap.c (Flookup_key): Check INTEGERP before XINT.
1424
1425 * lread.c (oblookup): Don't use XFASTINT blindly.
1426
1427 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
1428 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
1429
11e0be49
KS
14302004-11-23 Kim F. Storm <storm@cua.dk>
1431
4d721114
KS
1432 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
1433 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
1434
11e0be49
KS
1435 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
1436 signal_p is zero and face name is unknown.
1437 (Fx_list_fonts): Don't signal error in lookup_named_face.
1438 (Fface_font): Signal error in lookup_named_face.
1439 (ascii_face_of_lisp_face): Likewise.
1440
1441 * dispextern.h (lookup_named_face): Fix prototype.
1442
1443 * xdisp.c (handle_single_display_prop): Don't signal error in
1444 lookup_named_face for unknown fringe face name.
1445 (highlight_trailing_whitespace): Don't signal error in
1446 lookup_named_face if trailing-whitespace face unknown.
1447 (calc_line_height_property): Don't signal error in
1448 lookup_named_face if specified face name is unknown.
1449
1450 * fringe.c (update_window_fringes): Show top row indicator if
1451 window has header-line. Don't show arrow at bob and eob
1452 if the boundary indicators are not used.
1453 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
1454
1455 * window.c (set_window_buffer): Clear display_error_modiff.
1456
0960a582
KS
14572004-11-22 Kim F. Storm <storm@cua.dk>
1458
1459 * fringe.c (update_window_fringes): Provide sensible fall-back
1460 value for non-nil indicate-buffer-boundaries setting.
1461
b0e9bb28
MR
14622004-11-22 Markus Rost <rost@ias.edu>
1463
1464 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
1465
d0bce91e
SM
14662004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
1467
1468 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
1469
e1814672
KS
14702004-11-21 Kim F. Storm <storm@cua.dk>
1471
b7fd3518
KS
1472 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
1473
1474 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
1475 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1476
1477 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
1478 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1479
1480 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
1481 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1482
d0bce91e
SM
1483 * xdisp.c (move_it_in_display_line_to, display_line):
1484 Restore saved_face_id if overflow-newline-into-fringe is enabled and
1485 line is continued before or in middle of element from display vector.
f01d4d05 1486
f1a61389
KS
1487 * indent.c (Fvertical_motion): Fix last change. Use another
1488 method to detect if iterator moved too far ahead after reseat.
1489
e1814672
KS
1490 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
1491 expand matrix width for overflow in zero-width area.
1492 (append_glyph, append_composite_glyph, produce_image_glyph)
1493 (append_stretch_glyph): Use it to avoid loop in redisplay.
1494 (note_mode_line_or_margin_highlight): Don't let help-echo from
1495 string override help-echo from image map.
1496
2dafe1c9
LT
14972004-11-20 Luc Teirlinck <teirllm@auburn.edu>
1498
d0bce91e 1499 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
1500 * callint.c (Fcall_interactively): Ditto.
1501
fd6866c8 15022004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
1503
1504 * minibuf.c (Fminibuffer_complete_and_exit):
1505 Fixup the case of the completed value, for case-indep completion.
1506
dedbac89
RS
15072004-11-20 Richard M. Stallman <rms@gnu.org>
1508
fd6866c8
RS
1509 * lisp.h (Fread_from_minibuffer): Add arg in decl.
1510
9d00469f 1511 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 1512 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 1513
dedbac89 1514 * search.c (Vsearch_spaces_regexp):
d0bce91e 1515 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 1516
2f672bb5
TTN
15172004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
1518
1519 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
1520
f31a9a68
RS
15212004-11-19 Richard M. Stallman <rms@gnu.org>
1522
1523 * search.c (Vsearch_whitespace_regexp): New variable.
1524 (syms_of_search): Defvar it.
1525 (compile_pattern_1): Call re_set_whitespace_regexp with it.
1526 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
1527 is non-nil.
6de891db
RS
1528 (struct regexp_cache): New element whitespace_regexp.
1529 (syms_of_search): Initialize whitespace_regexp elements.
1530 (compile_pattern): Compare whitespace_regexp elements.
1531 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
1532
1533 * regex.c (regex_compile): Substitute whitespace_regexp
1534 for spaces, if it is nonzero.
1535 (whitespace_regexp): New variable.
1536 (re_set_whitespace_regexp): New function.
1537
cbc34cb3
KS
15382004-11-19 Kim F. Storm <storm@cua.dk>
1539
1540 * indent.c (Fvertical_motion): Fix last change.
1541
b54a7539
KS
15422004-11-18 Kim F. Storm <storm@cua.dk>
1543
1544 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
1545 Instead, move back again if reseating moves too far ahead.
1546
15472004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
1548
1549 * xdisp.c (message3): Call clear_message.
1550
5ff504fe
KS
15512004-11-17 Kim F. Storm <storm@cua.dk>
1552
1553 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
1554
5ae53dcf
JD
15552004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1556
d0bce91e 1557 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 1558
6abf3a27 1559 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
1560 (x_menu_set_in_use): Also set popup_activated_flag.
1561
5ff504fe 1562 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
1563 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
1564
6abf3a27 1565 * xterm.h: (x_menu_in_use): Remove.
5ae53dcf 1566
ee31cd78
RS
15672004-11-16 Richard M. Stallman <rms@gnu.org>
1568
6abf3a27
SM
1569 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
1570 Use map-keymap-internal to implement that.
ee31cd78
RS
1571
1572 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
1573
6abf3a27
SM
15742004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
1575
1576 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
1577 a window before using XWINDOW.
1578
1579 * window.c (make_window, Fselect_window, make_dummy_parent)
1580 (save_window_save):
1581 * frame.c (make_frame):
1582 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
1583
1584 * lisp.h (NILP): Use EQ rather than XFASTINT.
1585
b4d61105
KS
15862004-11-16 Kim F. Storm <storm@cua.dk>
1587
6abf3a27 1588 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 1589
b4d61105
KS
1590 * indent.c (Fvertical_motion): Fix last change. Only reseat when
1591 moving backwards.
1592
15932004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
1594
1595 * dispextern.h: Extern reseat_at_previous_visible_line_start.
1596
ab5b02b0
KH
15972004-11-16 Kenichi Handa <handa@m17n.org>
1598
1599 * xdisp.c (display_mode_element): Fix previous change (calculate
1600 end position of substring to display correctly).
1601
c482cf97
KS
16022004-11-16 Kim F. Storm <storm@cua.dk>
1603
1604 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
1605 Reported by Andrew M. Scott.
1606
9f89426b
KS
16072004-11-15 Kim F. Storm <storm@cua.dk>
1608
1609 * fns.c (Fsafe_plist_get): New defun.
1610 (syms_of_fns): Defsubr it.
1611
1612 * lisp.h (Fsafe_plist_get): Add EXFUN.
1613
1614 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
1615 Use Fsafe_plist_get.
1616 (note_mode_line_or_margin_highlight, note_mouse_highlight):
1617 Fix image map element parsing. Use Fsafe_plist_get.
1618
27418463
RS
16192004-11-15 Richard M. Stallman <rms@gnu.org>
1620
1621 * xdisp.c (get_next_display_element): Fix previous change.
1622
a130b901
JD
16232004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1624
ef614e04
JD
1625 * window.c (shrink_windows): Handle special case of one window left
1626 when trying to shrink the final reminder. Grow windows if
1627 total_removed is less than total_shrink.
1628
a130b901
JD
1629 * xmenu.c (pop_down_menu): Remove global variable current_menu,
1630 extract pointer from arg with XSAVE_VALUE.
46303896
KS
1631 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
1632 Construct arg to record_unwind_protect with make_save_value.
a130b901 1633
d9a03ad2
RS
16342004-11-13 Richard M. Stallman <rms@gnu.org>
1635
1636 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
1637 (get_next_display_element): Fix previous change to apply only to \n.
1638
1639 * indent.c (Fvertical_motion): Scan to PT from start of line to
1640 make iterator consistent.
1641
1642 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
1643
b3935289
JD
16442004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1645
1646 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
1647
1648 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
1649 Record unwind with clean_up_file_dialog.
1650
78819ebb
KS
1651 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
1652 Declare.
b3935289
JD
1653
1654 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
1655
af89e871
JD
16562004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1657
457a8155 1658 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 1659 (xg_file_sel_destroy): Remove.
46303896
KS
1660 (xg_file_response_cb, pop_down_file_dialog)
1661 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 1662 New functions.
6abf3a27
SM
1663 (xg_get_file_with_chooser, xg_get_file_with_selection):
1664 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
1665 Move common code to xg_get_file_name. Return widget created.
1666 (xg_get_file_name): Set name, transient for, modal and destroy
1667 with parent here. Connect response signal to xg_file_response_cb,
1668 connect delete-event to gtk_true. Record pop_down_file_dialog
1669 for unwind. Do event loop and call x_menu_wait_for_event in loop.
1670 (xg_create_widget): Make dialogs modal.
1671
af89e871
JD
1672 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
1673 Lisp_Object.
1674 (popup_get_selection): Move unwind protect ...
1675 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1676 Move destroy of widget to pop_down_menu.
1677 (popup_widget_loop): Move unwind protect ...
1678 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1679 Move destroy of widget to pop_down_menu.
1680 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 1681 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
1682 x_mouse_leave and grabbed = 0 to pop_down_menu.
1683
5596fbf1
KS
16842004-11-13 Kim F. Storm <storm@cua.dk>
1685
1686 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
1687 (syms_of_xdisp): DEFVAR_BOOL it.
1688 (make_cursor_line_fully_visible, try_cursor_movement)
1689 (try_window_id): Use it.
1690
b9de078a
KS
16912004-11-12 Kim F. Storm <storm@cua.dk>
1692
381f7091
KS
1693 * dispextern.h (struct glyph_row): New member extra_line_spacing.
1694 (struct it): New member max_extra_line_spacing.
1695 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
1696 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
1697 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
1698 part of last line is only extra line spacing (so the text on the
1699 line is fully visible). Use helper macros.
1700 Add W arg (to use them). All callers changed.
1701 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
1702 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
1703
6abf3a27
SM
1704 * window.c (window_scroll_pixel_based, Frecenter):
1705 Use move_it_vertically_backward directly.
381f7091
KS
1706 (Frecenter): Fix calculation of new start pos for negative arg.
1707 Before, the new start pos was sometimes chosen too far back, so
1708 the last line became only partially visible, and thus would be
1709 either only semi-visible or automatically scrolled to the middle
1710 of the window by redisplay.
1711
1712 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
1713 (move_it_vertically_backward): Don't recure to move further back.
1714 (move_it_vertically): Remove superfluous condition.
1715 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 1716 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
1717 (display_tool_bar_line): Clear row->extra_line_spacing.
1718 (try_scrolling): Use move_it_vertically_backward directly.
1719 (redisplay_window): Likewise.
1720 (compute_line_metrics): Set row->extra_line_spacing.
1721 (display_line, display_string): Likewise.
1722 (x_produce_glyphs): Update it->max_extra_line_spacing.
1723
b9de078a
KS
1724 * xmenu.c (pop_down_menu): Return nil.
1725
c3438661
JD
17262004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1727
1728 * xmenu.c (x_menu_wait_for_event): New function.
1729 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
1730 to handle timers.
df00f436
JD
1731 (popup_widget_loop): Add argument do_timers.
1732 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
1733 do_timers to popup_widget_loop.
c3438661
JD
1734 (xmenu_show): Call XMenuActivateSetWaitFunction so that
1735 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 1736 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 1737 popup_get_selection.
f1d1cd24
JD
1738 (pop_down_menu): New function.
1739 (popup_get_selection, popup_widget_loop): Unwind protect to
1740 pop_down_menu.
1741 (popup_widget_loop): Add argument widget.
1742 (create_and_show_popup_menu, create_and_show_dialog): Pass new
1743 argument widget to popup_widget_loop.
c3438661 1744
32e2fb04
SM
17452004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1746
1747 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
1748
0faf6806
KS
17492004-11-09 Kim F. Storm <storm@cua.dk>
1750
1751 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
1752 Fix various comments referring to XEvents instead of input events.
1753 (x_queue_event): Fix format strings.
1754 (x_stop_queuing_selection_requests): Likewise.
1755
1756 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
1757 (pint2hrstr): Add extra braces to silence compiler.
1758
1759 * print.c (print_object): Fix format string.
1760
1761 * lread.c (read1): Fix next_char matching.
1762
1763 * lisp.h (Fdelete): Add EXFUN.
1764 (replace_range_2): Add prototype.
1765
1766 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
1767
1768 * intervals.h (NULL_INTERVAL_P): Add separate version when
1769 ENABLE_CHECKING is not defined to silence compiler.
1770 (compare_string_intervals): Add prototype.
1771
1772 * fringe.c (destroy_fringe_bitmap): Fix return type.
1773 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
1774
1775 * emacs.c (Fdump_emacs): Fix format string.
1776
1777 * doc.c: Include <ctype.h>.
1778 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
1779
1780 * data.c (store_symval_forwarding): Remove unused variables.
1781
1782 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
1783
16bf4e32
JD
17842004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1785
1786 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
1787 to ${OLDXMENU}.
1788
cdb805a9
KS
17892004-11-09 Kim F. Storm <storm@cua.dk>
1790
1791 * process.c (Fmake_network_process): Remove kludge for interrupted
1792 connects on BSD. If connect is interrupted, just close socket and
1793 start over rather than sleeping and retry with same socket.
1794
d87a9ab8 17952004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 1796
a8b16c80
JD
1797 * .cvsignore: Add buildobj.lst.
1798
d87a9ab8
JD
1799 * doc.c: New variable Vbuild_files.
1800 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
1801 file names from buildobh.lst. Only attach docstrings from files
1802 that are in Vbuild_files.
1803 (syms_of_doc): Defvar Vbuild_files.
1804
1805 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
1806 and w32*.o.
1807 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 1808 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
1809
1810 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
1811 is linked.
1812
b6709e77
KS
18132004-11-09 Kim F. Storm <storm@cua.dk>
1814
1815 * fringe.c (update_window_fringes): Update fringe bitmaps if
1816 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
1817 also update previous row to get rid of misc. artifacts.
1818
bae9677d
KS
18192004-11-08 Kim F. Storm <storm@cua.dk>
1820
1821 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 1822 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 1823
3f8ea68c
EZ
18242004-11-08 Eli Zaretskii <eliz@gnu.org>
1825
1826 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
1827 Don't include <sys/time.h> explicitly.
1828 Include <stdio.h> unconditionally, not just on MacOS.
1829
a653f812
KH
18302004-11-08 Kenichi Handa <handa@m17n.org>
1831
1832 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
1833 don't pay attention to '\' before '*'.
1834 (fontset_pattern_regexp): Change the meaning of the second arg.
1835 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
1836 (check_fontset_name): Try NAME as literal at first, and if it
1837 failes, try NAME as pattern.
1838
c37caf9d
JD
18392004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1840
1841 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
1842
b72915a7
AS
18432004-11-07 Andreas Schwab <schwab@suse.de>
1844
78819ebb
KS
1845 * lisp.h (Fmsdos_downcase_filename): Declare.
1846 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
1847 * fileio.c: Likewise.
1848
238a44a8
JD
18492004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1850
1851 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
1852 comparisons with integers instead of Lisp_Object address.
1853 (Fmsdos_set_keyboard): Declare argument allkeys.
1854
1855 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
1856
78819ebb 1857 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
1858 int/Lisp_Object mixup.
1859
1860 * fileio.c: Ditto.
1861
31141c13
ST
18622004-11-06 Steven Tamm <steventamm@mac.com>
1863
1864 * editfns.c: Need to include sys/time.h before resource.h on darwin.
1865
f28c1bd9
RS
18662004-11-06 Richard M. Stallman <rms@gnu.org>
1867
1868 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
1869
1870 * xfaces.c (merge_named_face): GCPRO the face_name in the
1871 named_merge_point struct that we make.
1872 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
1873
1874 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
1875 before deciding whether to inactivate mark.
1876
59dede22
EZ
18772004-11-06 Lars Brinkhoff <lars@nocrew.org>
1878
1879 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
1880 * editfns.c (Fget_internal_run_time): New function.
1881 (syms_of_data): Defsubr it.
1882 * fns.c (sxhash): As far as possible, merge calculation of
1883 hash code for symbols and strings.
59dede22 1884
27540e81
EZ
18852004-11-06 Eli Zaretskii <eliz@gnu.org>
1886
1887 * frame.c (syms_of_frame): Fix the example in the doc string.
1888
df470e3b
JD
18892004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1890
1891 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
1892
1893 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
1894 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 1895
4cc8522c
LT
18962004-11-05 Luc Teirlinck <teirllm@auburn.edu>
1897
1898 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
1899
d4a42098
KS
19002004-11-05 Kim F. Storm <storm@cua.dk>
1901
a8490886
KS
1902 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
1903
d4a42098
KS
1904 * fileio.c (Ffile_modes): Doc fix.
1905 (auto_save_1): Check for Ffile_modes nil value.
1906
36a2b04c
KS
19072004-11-05 Kim F. Storm <storm@cua.dk>
1908
1909 * xselect.c (struct selection_event_queue, selection_queue)
1910 (x_queue_selection_requests, x_queue_event)
1911 (x_start_queuing_selection_requests)
1912 (x_stop_queuing_selection_requests): Add new queue for selection
1913 input events to replace previous XEvent queue in xterm.c.
1914 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
1915 (x_reply_selection_request): Adapt to new queue.
1916 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
1917 (x_handle_selection_request, x_handle_selection_clear): Make static.
1918 (x_handle_selection_event): New function. May queue selection events.
1919 (wait_for_property_change_unwind): Use save_value instead of cons.
1920 Clear property_change_reply_object.
1921 (wait_for_property_change): Abort if already waiting.
1922 Use save_value instead of cons for unwind data.
1923 (x_handle_property_notify): Skip events already arrived, but don't
1924 free them, as "arrived" field is checked by wait_for_property_change,
1925 and it will be freed by unwind or explicit unexpect_property_change.
1926 (x_get_foreign_selection): Add to new queue.
1927 (receive_incremental_selection): Don't unexpect wait_object when done
1928 as it has already been freed by previous wait_for_property_change.
1929
1930 * xterm.h (x_start_queuing_selection_requests)
1931 (x_stop_queuing_selection_requests, x_handle_selection_request)
1932 (x_handle_selection_clear): Remove prototypes.
1933 (x_handle_selection_event): Add prototype.
1934
1935 * xterm.c (handle_one_xevent): Don't queue X selection events
1936 here, it may be too late if we start queuing after we have already
1937 stored some selection events into the kbd buffer.
1938 (struct selection_event_queue, queue, x_queue_selection_requests)
1939 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
1940 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
1941 (x_catch_errors_unwind): Block input around final XSync.
1942
1943 * keyboard.h (kbd_buffer_unget_event): Add prototype.
1944
1945 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
1946 (kbd_buffer_unget_event): New function.
1947 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
1948 and use x_handle_selection_event.
1949 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
1950
9c3ad9e1
JD
19512004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1952
1953 * xselect.c (TRACE3): New debug macro.
1954 (x_reply_selection_request): Use it.
1955 (receive_incremental_selection): In call to TRACE0, the name of
1956 a symbol is in xname.
1957
a33b89de
KS
19582004-11-05 Kim F. Storm <storm@cua.dk>
1959
1960 * fontset.c (fontset_pattern_regexp): Use unsigned char.
1961
a872928c
JD
19622004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1963
88208bb8
JD
1964 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
1965
78819ebb 1966 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
1967
1968 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 1969 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
1970 * xfns.c (syms_of_xfns): ... to here.
1971
a872928c
JD
1972 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
1973 it doesn't start with /.
1974
b912921c
KH
19752004-11-04 Kenichi Handa <handa@m17n.org>
1976
1977 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
1978 treat it as a literal character.
1979
c524d9a6
KS
19802004-11-03 Kim F. Storm <storm@cua.dk>
1981
1982 * .gdbinit (ppt): New function.
1983
8cfd0f36
JD
19842004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1985
a11e1dce
JD
1986 * xterm.c (x_window_to_scroll_bar): Only call
1987 xg_get_scroll_id_for_window if toolkit scroll bars are used.
1988
8cfd0f36
JD
1989 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
1990 of save.
1991
a93563fd
AS
19922004-11-02 Andreas Schwab <schwab@suse.de>
1993
1994 * window.c (Fscroll_right): Fix last change.
1995
2b2d59d8
KS
19962004-11-02 Kim F. Storm <storm@cua.dk>
1997
1998 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
1999
20002004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2001
2002 * callproc.c (Fcall_process): Block input around vfork.
2003
ca28104d
KS
20042004-11-02 Kim F. Storm <storm@cua.dk>
2005
2006 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
2007 (syms_of_eval): Defsubr it.
2008
29bb7127
RS
20092004-11-02 Richard M. Stallman <rms@gnu.org>
2010
2011 * insdel.c (replace_range_2): New function.
2012
2013 * casefiddle.c (casify_region): Handle changes in byte-length
2014 using replace_range_2.
2015
2016 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
2017
b6189c3b 2018 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
2019 Subtract 1 from pos when checking previous newline for invisibility.
2020
2021 * window.c (window_scroll_pixel_based): Update preserve_y
2022 for header line if any.
2023 (Fscroll_left, Fscroll_right): Don't call interactive_p;
2024 use a new second argument instead.
2025
2026 * eval.c (Fcall_interactive_p): New function.
2027 (interactive_p): Don't test INTERACTIVE here.
2028 (Finteractive_p): Doc fix.
2029
2030 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
2031
b6189c3b 20322004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
2033
2034 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 2035 comparing font names.
a3fe4aaf 2036
2a00cdb4
JD
20372004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2038
f9d64bb3
JD
2039 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
2040 Fx_file_dialog if only directories should be read.
2041
2042 * lisp.h: Fx_file_dialog takes 5 parameters.
2043
32e2fb04
SM
2044 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
2045 Add parameter only_dir_p.
f9d64bb3
JD
2046 In Motif version, don't put DEFAULT_FILENAME in filter part of the
2047 dialog, just text field part. Do not add DEFAULT_FILENAME
2048 to list of files if it isn't there.
2049 In GTK version, pass only_dir_p parameter to xg_get_file_name.
2050
32e2fb04
SM
2051 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
2052 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
2053 a save dialog, add option kNavDontConfirmReplacement, change title
2054 to "Enter name", change text for save button to "Ok".
2055
32e2fb04
SM
2056 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
2057 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
2058
2059 * gtkutil.c (xg_get_file_with_chooser)
2060 (xg_get_file_with_selection): New functions, only defined ifdef
2061 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
2062 respectively.
2063 (xg_get_file_name): Add parameter only_dir_p.
2064 Call xg_get_file_with_chooser or xg_get_file_with_selection
2065 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
2066 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
2067
2068 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
2069
2a00cdb4
JD
2070 * config.in: Rebuild (added HAVE_GTK_FILE_*).
2071
f6749d5d
KS
20722004-11-01 Kim F. Storm <storm@cua.dk>
2073
32e2fb04
SM
2074 * process.c (connect_wait_mask, num_pending_connects):
2075 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 2076 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
2077 (IF_NON_BLOCKING_CONNECT): New helper macro.
2078 (wait_reading_process_output): Only declare and use local vars
2079 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 2080
1a99fe1a
JR
20812004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
2082
2083 * w32term.c (x_scroll_run): Delete region objects after use.
2084
fcdb28b4
JD
20852004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2086
495ef86b
JD
2087 * xmenu.c: Add prototypes for forward function declarations.
2088 (popup_get_selection): Remove parameter do_timers, remove call to
2089 timer_check.
32e2fb04
SM
2090 (create_and_show_popup_menu, create_and_show_dialog):
2091 Remove parameter do_timers from call to popup_get_selection.
495ef86b 2092
12e6566a
JD
2093 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
2094 tool_bar_items and assign the result to f->tool_bar_items if
2095 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
2096 tool_bar_items to assignment of result.
2097
fcdb28b4
JD
2098 * atimer.c (alarm_signal_handler): Do not call set_alarm if
2099 pending_atmers is non-zero.
2100
1a1a0c4c
KS
21012004-10-31 Kim F. Storm <storm@cua.dk>
2102
2103 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
2104
a36f1680
JW
21052004-10-28 Will <will@glozer.net>
2106
2107 * macterm.c: allow user to assign key modifiers to the Mac Option
2108 key via a 'mac-option-modifier' variable.
2109
32e2fb04 21102004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
2111
2112 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
2113 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
2114 (x_handle_selection_request, x_handle_selection_clear)
2115 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
2116
4f71c13f
RS
21172004-10-28 Richard M. Stallman <rms@gnu.org>
2118
2119 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
2120
2121 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
2122
068f3848
SM
21232004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
2124
2125 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
2126 comment-starter over a 1-char one.
2127
4660a9e3
RS
21282004-10-27 Richard M. Stallman <rms@gnu.org>
2129
2130 * xdisp.c (get_next_display_element): In mode lines,
2131 treat newline and tab like other control characters.
2132
2133 * editfns.c (Fmessage): Doc fix.
2134
2135 * indent.c (vmotion): When moving up, check the newline before.
2136 Make prevline an int, not a Lisp_Object.
2137
233f3db6
KS
21382004-10-27 Kim F. Storm <storm@cua.dk>
2139
2140 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
2141 Only allocate info and discarded tables once.
2142
2143 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
2144 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
2145 (SAFE_FREE): Test it to determine if we need to unwind to free.
2146 Remove size arg. All users changed.
2147 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
2148
1442465d
JD
21492004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2150
2151 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
2152 (xg_destroy_widgets): Rename from remove_from_container.
2153 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
2154 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
2155 instead of remove_from_container.
2156 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
2157 (free_frame_tool_bar): Add comment.
2158
2159 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
2160 is not NULL before strcmp.
2161
c8636435
KS
21622004-10-26 Kim F. Storm <storm@cua.dk>
2163
2164 * callint.c (Fcall_interactively): Add 'U' code to get the
2165 up-event discarded by a previous 'k' or 'K' argument.
2166
5629f29b
DK
21672004-10-26 David Kastrup <dak@gnu.org>
2168
2169 * buffer.c (syms_of_buffer): Fix a few typos.
2170
4f2f546e
JD
21712004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2172
2173 * xsmfns.c: Put empty line between comment and function body.
2174 Use two spaces before comment end.
2175
fc1062f5
KH
21762004-10-25 Kenichi Handa <handa@m17n.org>
2177
2178 * fontset.c (fontset_pattern_regexp): Optimize for the case that
2179 PATTERN is full XLFD.
2180
be13f5e5
KH
21812004-10-24 Kenichi Handa <handa@m17n.org>
2182
2183 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
2184
2185 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
2186 (regex_compile): Return REG_ERANGEX if appropriate.
2187
d0ee2ed3
KH
21882004-10-22 Kenichi Handa <handa@m17n.org>
2189
2190 * editfns.c (Ftranslate_region_internal): New function.
2191 (syms_of_editfns): Defsubr it.
2192
63ea8ea5
JD
21932004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2194
2195 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
2196
c27ed90a
JD
21972004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
2198
068f3848
SM
2199 * xterm.h (x_output): New member `xic_base_fontname'.
2200 (FRAME_XIC_BASE_FONTNAME): New macro.
2201 (xic_free_xfontset): Declare.
c27ed90a 2202
068f3848
SM
2203 * xfns.c (xic_create_xfontset): Share fontsets between frames
2204 based on base_fontname.
2205 (xic_free_xfontset): New function.
2206 (free_frame_xic): Use it.
2207 (xic_set_xfontset): Ditto.
c27ed90a 2208
068f3848 2209 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
2210
2211
59508699
JR
22122004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
2213
2214 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
2215
dede2792
JD
22162004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2217
3aca2078
JD
2218 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
2219 XSync.
2220
dede2792
JD
2221 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
2222 New variables and constant.
2223 (main): Calculate heap_bss_diff. If we are dumping and the
2224 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
2225 and exec ourself again.
2226 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
2227 print a warning.
2228
2229 * lastfile.c: Make my_endbss and my_endbss_static available on all
2230 platforms.
2231
2232 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
2233 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
2234
1dc5ba01
LT
22352004-10-19 Luc Teirlinck <teirllm@auburn.edu>
2236
2237 * data.c (Flocal_variable_if_set_p): Doc fix.
2238
950090be
JR
22392004-10-19 Jason Rumney <jasonr@gnu.org>
2240
2241 * w32.c (init_environment): Set emacs_dir correctly when running
2242 emacs from the build directory.
2243
8550b998
RS
22442004-10-19 Richard M. Stallman <rms@gnu.org>
2245
2246 * editfns.c (Fdelete_and_extract_region):
2247 If region is empty, return null string.
2248
08dedea6
JD
22492004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2250
1dc5ba01 2251 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 2252 and canon_width.
068f3848 2253 (xg_frame_cleared): Remove.
08dedea6 2254
068f3848
SM
2255 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
2256 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
2257 (xg_create_scroll_bar): Put an event box widget between
2258 the scroll bar widget and the edit widget.
2259 (xg_show_scroll_bar): Show the parent widget (the event box).
2260 (xg_remove_scroll_bar): Destroy parent (the event box) also.
2261 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
2262 Move the parent (the event box) widget inside the fixed widget.
2263 Move window clear to xterm.c.
2264
068f3848 2265 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 2266
08dedea6 2267 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
2268 (x_scroll_bar_create, XTset_vertical_scroll_bar):
2269 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
2270 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
2271
8550b998 22722004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
2273
2274 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 2275
84338890
JD
22762004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2277
2278 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
2279 gdk_window_clear and move gdk_window_process_all_updates after
2280 clear so events are sent to the X server in correct order.
2281
6e1b0d8c
KH
22822004-10-18 Kenichi Handa <handa@m17n.org>
2283
2284 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
2285 comparing font names.
8550b998 2286 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
2287 (list_fontsets): Likewise.
2288
2289 * search.c (fast_string_match_ignore_case): New function.
2290
2291 * lisp.h (fast_string_match_ignore_case): Extern it.
2292
345e75a8
KS
22932004-10-17 Kim F. Storm <storm@cua.dk>
2294
2295 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
2296 than bitmap if there is not left fringe.
2297 (get_overlay_arrow_glyph_row): Also used on windows system.
2298 (display_line): Display overlay string if no left fringe.
2299
be13cbb7
JR
23002004-10-16 Jason Rumney <jasonr@gnu.org>
2301
2302 * w32fns.c (w32_font_match): Encode font name being matched.
2303
c2e2ede7
RS
23042004-10-16 Richard M. Stallman <rms@gnu.org>
2305
2306 * window.c (Fspecial_display_p): Doc fix.
2307
043f7f73 23082004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
2309
2310 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
2311 Don't ignore menus, because where-is-internal already does it for us.
2312
699a0392
KS
23132004-10-15 Kim F. Storm <storm@cua.dk>
2314
b3c7a89b
KS
2315 * xdisp.c (redisplay_window): Only update fringes and vertical
2316 border on window frames.
699a0392 2317
4e382b0f
AS
23182004-10-14 Andreas Schwab <schwab@suse.de>
2319
2320 * m/ia64.h (DATA_SEG_BITS): Don't define.
2321
329a7be2
KS
23222004-10-14 Kim F. Storm <storm@cua.dk>
2323
2324 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 2325 in some X versions.
329a7be2 2326
982241b1
SM
23272004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
2328
2329 * fns.c (map_char_table): Add missing gcpros.
2330
9238467d
SM
23312004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
2332
2333 * keymap.c (get_keymap): An autoload form is not a keymap.
2334
2335 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
2336
4440e3ca
KS
23372004-10-13 Kim F. Storm <storm@cua.dk>
2338
7cfdabde
KS
2339 * callproc.c (Fcall_process): Simplify handling of display arg.
2340 Resume `display_on_the_fly' once a coding system is determined.
2341
4440e3ca
KS
2342 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
2343
1c8dec6a
KS
23442004-10-12 Kim F. Storm <storm@cua.dk>
2345
2346 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
2347 caller, such as call-process, is not going to poll for input.
2348 (calc_line_height_property): Handle case where it->object is nil.
2349
2350 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
2351
170b174c
KH
23522004-10-12 Kenichi Handa <handa@m17n.org>
2353
9238467d
SM
2354 * xdisp.c (get_next_display_element):
2355 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
2356 chars in octal in unibyte buffer.
2357
b583964c
KS
23582004-10-12 Kim F. Storm <storm@cua.dk>
2359
2360 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
2361 are no ordinary bindings.
2362
29fabd8c
JD
23632004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2364
9238467d 2365 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 2366
c3f4c690
ST
23672004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2368
9238467d
SM
2369 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
2370 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 2371 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
2372 terminal frame.
2373 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
2374 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
2375 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
2376 Make a cancel file-open dialog be like C-g.
9238467d
SM
2377 * mac.c (mktime): Use emacs_mktime.
2378 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
2379 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 2380
9688f9eb
KS
23812004-10-10 Kim F. Storm <storm@cua.dk>
2382
2383 * keyboard.c (timer_resume_idle): New function to resume idle
2384 timer without resetting timers on the idle list.
2385 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
2386 (timer_start_idle, timer_stop_idle): Declare static.
2387 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
2388
2389 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
2390
f7f3a65f
ST
23912004-10-08 Steven Tamm <steventamm@mac.com>
2392
9238467d 2393 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 2394 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 2395 NULL where 0 should be used.
f7f3a65f
ST
2396 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
2397 objc/malloc.h
9238467d 2398 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 2399
3c7d999a
KS
24002004-10-07 Kim F. Storm <storm@cua.dk>
2401
2402 * xdisp.c (redisplay_window): Fix flicker on vertical line between
2403 windows. Update vertical line after drawing window fringes, but
2404 only if actually drawing any bitmaps--or there is no fringe.
2405
2406 * xterm.c (x_update_window_end): Likewise.
2407 * macterm.c (x_update_window_end): Likewise.
2408 * w32term.c (x_update_window_end): Likewise.
2409
2410 * fringe.c (draw_window_fringes): Return value now indicates if
2411 any fringe bitmaps were redrawn (or there are no fringes).
2412
2413 * dispextern.h (draw_window_fringes): Update prototype.
2414
bf06c82f
ST
24152004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2416
2417 * macfns.c (mac_get_window_bounds): Add extern.
2418 (x_real_positions): Use mac_get_window_bounds.
2419
2420 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
2421 xmenu.c (YAILOM).
3c7d999a 2422
bf06c82f
ST
2423 * macterm.c [!MAC_OSX]: Include Windows.h.
2424 (front_emacs_window): Rename from mac_front_window. All uses
2425 changed. Return the frontmost non-tooltip emacs window.
2426 (mac_get_window_bounds): New function.
2427 (x_calc_absolute_position): Use the difference of width and height
2428 between the inner and outer window.
2429 (x_set_offset): Specify window position by the coordinae of the
2430 outer window. Adjust the position if the title bar is completely
2431 outside the screen.
2432 (app_is_suspended, app_sleep_time): Remove unused variables.
2433 (do_app_resume, do_app_suspend): Remove their contents because
2434 window-activate/deactivate events will do the job.
2435 (do_zoom_window): Remove unused variables. Make compliant to the
2436 standard way of zooming. Set f->left_pos and f->top_pos.
2437 (XTread_socket): Don't use argument `expected'. Don't use
2438 FrontWindow to determine the clicked window. Exclude unprocessed
2439 mouseUp cases in the early stage. Add parentheses to fix operator
2440 precedence.
2441 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
2442
4cbbf6b7 24432004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
2444
2445 * config.in: Regenerate.
2446
2447 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
2448 HAVE_EXECSHIELD.
2449
b90ee8b5
JD
24502004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2451
2452 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
2453 a row if Alt or Meta has been found for that row. Also stop scanning
2454 for Keysyms for that row.
2455
904db1a2
KS
24562004-10-04 Kim F. Storm <storm@cua.dk>
2457
0207b8ad
KS
2458 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
2459 to list. Include overlay arrow bitmap in return value.
2460
25f7220c
KS
2461 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
2462 bars with fractional column width. If scroll bar separates two
2463 windows, move it towards the window it belongs to. Only update
2464 the padding area below the scroll bar widget when necessary,
2465 i.e. when scroll bar widget is created, moved, or resized.
2466
562020fe
KS
2467 * xdisp.c (define_frame_cursor1): Do not change frame cursor
2468 while tracking/dragging mouse.
2469 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
2470
37e34af7
KS
2471 * window.c (coordinates_in_window): Relax check for cursor
2472 on vertial border between mode lines.
2473 (Fset_window_fringes): Do not allow negative widths.
2474 (Fset_window_scroll_bars): Likewise.
2475
904db1a2
KS
2476 * .gdbinit (pp): Shorthand for p ARG + pr.
2477 (ff): New command: flush frame updates (X only).
2478
38fe4f64
MA
24792004-10-03 Michael Albinus <michael.albinus@gmx.de>
2480
2481 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
2482
9de36315
KH
24832004-09-30 Kenichi Handa <handa@m17n.org>
2484
07c381ad 2485 * process.c (send_process): Free composition data.
9de36315 2486
07c381ad 2487 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
2488
2489 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
2490 compositions to encode.
2491 (encode_coding_string): Likewise. Free composition data.
2492
b6189c3b 24932004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
2494
2495 * coding.c (code_convert_region): Free composition data.
9de36315 2496
f2a54fbc
KS
24972004-09-29 Kim F. Storm <storm@cua.dk>
2498
dc5d6435
KS
2499 * fringe.c: Remove limit on number of bitmaps.
2500 (fringe_bitmaps, fringe_faces): Change to pointers.
2501 (max_fringe_bitmaps): New var.
2502 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
2503 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
2504
2505 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
2506 (struct glyph_row): Reorder fringe_bitmap related fields.
2507 (struct it): Likewise.
2508
2509 * w32term.c (fringe_bmp): Change to pointer.
2510 (max_fringe_bmp): New var.
2511 (w32_define_fringe_bitmap): Expand fringe_bmp.
2512 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
2513 (w32_destroy_fringe_bitmap): Likewise.
2514
25152004-09-29 Kim F. Storm <storm@cua.dk>
2516
2517 * fringe.c: Simplify last change.
f2a54fbc
KS
2518 (lookup_fringe_bitmap): New function.
2519 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
2520 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
2521 Keep standard bitmaps in Vfringe_bitmaps.
2522 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
2523 (Fset_fringe_bitmap_face): Likewise.
2524
2525 * dispextern.h (lookup_fringe_bitmap): Add prototype.
2526 (valid_fringe_bitmap_p): Remove prototype.
2527
2528 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
2529
841a8bca
KS
25302004-09-29 Kim F. Storm <storm@cua.dk>
2531
1f2da365
KS
2532 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
2533 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
2534
841a8bca
KS
2535 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
2536
2537 * fringe.c (Vfringe_bitmaps): New variable.
2538 (syms_of_fringe): DEFVAR_LISP it.
2539 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
2540 Change arg to Lisp_Object and fail if not an integer.
2541 (get_fringe_bitmap_name, resolve_fringe_bitmap)
2542 (destroy_fringe_bitmap): New functions.
9238467d
SM
2543 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
2544 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
2545 clear its fringe property.
2546 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
2547 Fdestroy_fringe_bitmap.
2548 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
2549 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
2550 and set fringe property. Signal error if no free slots.
2551 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
2552 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
2553
2554 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
2555 symbols with a fringe property.
2556
4d965590
KS
25572004-09-27 Kim F. Storm <storm@cua.dk>
2558
2559 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
2560 Doc fix. Format may now be a symbol or alist, not a cons.
2561
2562 * fringe.c (update_window_fringes): Handle new formats of
2563 indicate-buffer-boundaries (symbol or alist). No longer
2564 allow a simple cons.
2565 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
2566
e888c2b3
JD
25672004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2568
9238467d 2569 * config.in: Rebuild.
e888c2b3 2570
83f1cb94
JD
25712004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2572
2573 * config.in: Rebuild.
2574
dd3b1d60 2575 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 2576
2c51754c
SM
25772004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
2578
2579 * xterm.c (x_term_init): Work around a bug in some X servers.
2580
3df5f8aa
RS
25812004-09-18 Richard M. Stallman <rms@gnu.org>
2582
557ca2c1
RS
2583 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
2584
3df5f8aa
RS
2585 * xdisp.c (try_window_reusing_current_matrix):
2586 Handle the case where we reach the old displayed text,
2587 out of sync with the old line boundary.
2588
9238467d 25892004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
2590
2591 * fileio.c (Finsert_file_contents): Fix case of replacement in a
2592 narrowed buffer.
2593
bfa02563
KS
25942004-09-14 Kim F. Storm <storm@cua.dk>
2595
a25fe164
KS
2596 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
2597
bfa02563
KS
2598 * xfaces.c (Qface_no_inherit): New var.
2599 (syms_of_xfaces): Intern and staticpro it.
2600 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
2601 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
2602 Don't increment face_change_count when face has non-nil
2603 face-no-inherit property.
2604
126f9c02
SM
26052004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
2606
892a8eb5
SM
2607 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
2608 (Fbyte_code): Remove dead code after `wrong_type_argument'.
2609
126f9c02 2610 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 2611 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 2612
c0ad3b38
KS
26132004-09-12 Kim F. Storm <storm@cua.dk>
2614
2615 * editfns.c (Fformat): Handle format strings with multiple text
2616 properties. Reverse text property list from the format string,
2617 so the positions are in increasing order.
2618
844fc085
JD
26192004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2620
2621 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
2622 x_uncatch_errors so that possible protocol errors are delivered.
2623
b106731c
EZ
26242004-09-10 Eli Zaretskii <eliz@gnu.org>
2625
21065c92
EZ
2626 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
2627 blockinput.h.
2628 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
2629 charset.h, and coding.h
9238467d 2630 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
2631 (term.o): Depend on window.h and keymap.h.
2632 (abbrev.o): Depend on syntax.h.
2633 (callint.o): Depend on keymap.h.
2634 (casefiddle.o): Depend on charset.h and keymap.h.
2635 (category.o): Depend on keymap.h.
2636 (coding.o): Depend on dispextern.h.
2637 (cmds.o): Depend on keyboard.h and keymap.h.
2638 (dispnew.o): Depend on indent.h and intervals.h.
2639 (doc.o): Depend on keymap.h.
2640 (editfns.o): Depend on frame.h.
2641 (emacs.o): Depend on dispextern.h.
2642 (fileio.o): Don't depend on ccl.h.
2643 (filelock.o): Depend on charset.h and coding.h.
2644 (frame.o): Depend on w32term.h and macterm.h.
2645 (insdel.o): Depend on region-cache.h.
2646 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
2647 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
2648 (search.o): Depend on $(INTERVALS_SRC).
2649 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
2650 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
2651 xterm.h, w32term.h, and macterm.h.
2652 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
2653 w32term.h, and macterm.h.
2654 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
2655 region-cache.h, xterm.h, w32term.h, and macterm.h.
2656 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
2657 (data.o): Depend on frame.h.
2658 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
2659 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
2660 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
2661 (intervals.o): Depend on keymap.h.
2662
9238467d
SM
2663 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
2664 Add debugging print-out to termscript.
b106731c 2665
64b7122d
RS
26662004-09-09 Richard M. Stallman <rms@gnu.org>
2667
2668 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
2669
5670531e
RS
26702004-09-08 Richard M. Stallman <rms@gnu.org>
2671
6cb4a892
RS
2672 * window.c (Fset_window_buffer): Doc fix.
2673
5670531e
RS
2674 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
2675
7e388eb7
JL
26762004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
2677
2678 * minibuf.c (history_delete_duplicates): New variable.
2679 (read_minibuf): Use it.
2680 (syms_of_minibuf): Create the corresponding lisp variable.
2681
370e3587
KS
26822004-09-08 Kim F. Storm <storm@cua.dk>
2683
2684 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
2685 overlay just before point.
2686
f844ba4e
LT
26872004-09-07 Luc Teirlinck <teirllm@auburn.edu>
2688
2689 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
2690 * buffer.c (reset_buffer, init_buffer_once):
2691 Handle auto_save_file_format field.
f844ba4e
LT
2692 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
2693 `buffer-auto-save-file-format'.
f844ba4e
LT
2694 * fileio.c: Delete declaration for removed Vauto_save_file_format.
2695 (build_annotations): Adapt to replacement of
2696 `auto-save-file-format' with the new buffer-local variable
2697 `buffer-auto-save-file-format'.
2698 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
2699
f0f90717
JR
27002004-09-07 Jason Rumney <jasonr@gnu.org>
2701
2702 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
2703
9238467d
SM
2704 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
2705 Handle Unicode menu titles.
f0f90717 2706
4e14f66c
KS
27072004-09-07 Kim F. Storm <storm@cua.dk>
2708
2709 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
2710 property from text property or overlay strings at point.
2711
9238467d 27122004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
2713
2714 * xmenu.c (update_submenu_strings): YAILOM.
2715 (set_frame_menubar): Make sure last_i is initialized.
2716
1f06d367
JR
27172004-09-03 Jason Rumney <jasonr@gnu.org>
2718
1806714a 2719 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
2720 (digest_single_submenu): Set lname and lkey in widget_value
2721 instead of name and key.
2722 (update_submenu_strings): New function.
2723 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2724 call update_submenu_strings.
2725
2726 * w32menu.c (globals_of_w32menu): Check for Unicode API.
2727 (digest_single_submenu, w32_menu_show): Encode menu strings as
2728 UTF-8 if Unicode API is available.
2729 (utf8to16): New function.
2730 (add_menu_item): Use it when calling Unicode API.
1806714a 2731
46540080
KS
27322004-09-03 Kim F. Storm <storm@cua.dk>
2733
2734 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
2735 in overlay or text-property strings; set cursor on corresponding
2736 glyph rather than at end of the string.
2737
9277ba61 27382004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 2739
9277ba61 2740 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
2741 set a new one before obtaining the global coordinate.
2742 Use FRAME_MAC_WINDOW.
2743 (x_set_name, x_set_title): Encode title to UTF8.
2744 Use SetWindowTitleWithCFString.
9277ba61
ST
2745 (Fx_server_version): Get correct OS version.
2746
1806714a
SM
2747 * macmenu.c (add_menu_item): Remove unused variable `i'.
2748 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
2749
2750 * macterm.c (x_update_end): Move SetPortWindowPort to inside
2751 BLOCK_INPUT.
2752 (x_set_offset): Use FRAME_MAC_WINDOW.
2753
2754 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
2755 nontext_cursor if it is on a scroll bar.
2756
2757 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
2758 Carbon support.
1806714a
SM
2759 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
2760 Use LIBS_CARBON.
9277ba61 2761
b10daec7
JD
27622004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2763
2764 * xfns.c (x_set_name_internal): New function. Check if we shall call
2765 xfree before ENCODE_UTF_8.
2766 (x_set_name, x_set_title): Call x_set_name_internal.
2767
f7e22385
JR
27682004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
2769
2770 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
2771 reload it.
2772
2bf436c3
JD
27732004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2774
1806714a 2775 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
2776 (single_submenu): Set lname and lkey in widget_value
2777 instead of name and key.
2778 (update_submenu_strings): New function.
2779 (set_frame_menubar): Remove call to inhibit_garbage_collection,
2780 call update_submenu_strings.
2781
2bf436c3
JD
2782 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
2783 instead of name and key.
2784 (update_submenu_strings): New function.
2785 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 2786 call update_submenu_strings.
2bf436c3
JD
2787
2788 * gtkutil.h (_widget_value): Added lname and lkey.
2789
11715f92
ST
27902004-08-30 Steven Tamm <steventamm@mac.com>
2791
2792 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
2793 by using different names for inner loop variables.
2794
5500be54
JD
27952004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2796
059cd329
JD
2797 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
2798 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
2799
5500be54
JD
2800 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
2801 tool bar items is 0.
2802
383418e5
ST
28032004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2804
2805 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
2806 strings in menu items.
2807 (single_submenu): Use ENCODE_MENU_STRING
2808 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
2809 button release isn't passed to event loop
2810 (add_menu_item): Use SetMenuItemWithCFString
2811
6eb3ee72
ST
28122004-08-26 Steven Tamm <steventamm@mac.com>
2813
2814 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
2815 tool-bar/menu click
2816 * macfns.c (Fx_file_dialog): Implemented using NavServices
2817
10b43ac3
JD
28182004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2819
2728b5d0
JD
2820 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
2821
10b43ac3
JD
2822 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2823 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2824 (x_top_window_to_frame): Return 0 if wdesc is None.
2825
2ee3b79e
RS
28262004-08-22 Richard M. Stallman <rms@gnu.org>
2827
2828 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
2829 HAVE_TERMIOS]: If there's no char for this signal, drop through
2830 and use system calls.
2831
2832 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
2833
9a1ba2ea
KS
28342004-08-20 Kim F. Storm <storm@cua.dk>
2835
2836 * process.c (wait_reading_process_output): Rename from
2837 wait_reading_process_input. All uses changed.
2838 (wait_reading_process_output_1): Rename from
2839 wait_reading_process_input_1. All uses changed.
2840
2841 * dispnew.c (Fsleep_for): Remove obsolete code.
2842
295f3b30
KH
28432004-08-20 Kenichi Handa <handa@m17n.org>
2844
2845 * syntax.c (skip_chars): Fix for unibyte case.
2846
27615979
SM
28472004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2848
2849 * syntax.c (char_quoted): Mixup byte/char pos.
2850 (back_comment): Fixup globals in all cases.
2851
00267f94
JD
28522004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2853
2854 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
2855 passing it to gtk_window_set_title.
2856
2439909e
KS
28572004-08-19 Kim F. Storm <storm@cua.dk>
2858
6ba0f14c
KS
2859 * process.c (wait_reading_process_input): Clean up.
2860 Add wait_for_cell, wait_proc, and just_wait_proc args
2861 to avoid overloading `read_kbd' and `do_display' args.
2862 Change read_kbd arg to int. All callers changed.
2863
2439909e
KS
2864 * process.c (process_send_signal): Use CDISABLE.
2865
2866 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
2867
101c421e
KS
28682004-08-18 Kim F. Storm <storm@cua.dk>
2869
2870 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
2871 forward to wait_reading_process_input via DO_DISPLAY arg.
2872 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
2873 object, only process output from that process; also inhibit
2874 running timers if DO_DISPLAY==-2.
2875
c438dc33
KS
28762004-08-17 Kim F. Storm <storm@cua.dk>
2877
2878 * process.c (process_send_signal): Fix last change--use
2879 _POSIX_VDISABLE instead of CVDISABLE when available.
2880
8afc13c6
RS
28812004-08-16 Richard M. Stallman <rms@gnu.org>
2882
2883 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
2884 Set VQUIT and VINTR chars to the standard ones if they are unset.
2885 [AIX]: Don't do that here. And don't force VINTR to standard
2886 when SIGNALS_VIA_CHARACTERS.
2887
c438dc33 2888 * process.c (process_send_signal)
8afc13c6
RS
2889 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
2890 Do nothing if the character is CVDISABLE.
2891
2892 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
2893
c438dc33 2894 * intervals.c (move_if_not_intangible):
8afc13c6
RS
2895 Force POSITION to be between BEGV and ZV.
2896
6dad1714
JPW
28972004-08-14 John Paul Wallington <jpw@gnu.org>
2898
2899 * buffer.c (Frestore_buffer_modified_p): Doc fix.
2900
2901 * fileio.c (Fread_file_name): Doc fix.
2902
2903 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
2904
2bd77330
LT
29052004-08-09 Luc Teirlinck <teirllm@auburn.edu>
2906
2907 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
2908
c90e7e43
LT
29092004-08-08 Luc Teirlinck <teirllm@auburn.edu>
2910
2911 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 2912 Qdisabled_command_hook.
c90e7e43 2913 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 2914 Qdisabled_command_hook.
c90e7e43
LT
2915 (syms_of_keyboard): Ditto.
2916
81909a1a
LT
29172004-08-07 Luc Teirlinck <teirllm@auburn.edu>
2918
2919 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
2920 (syms_of_keymap) <key-translation-map>: Doc fixes.
2921
0cedd530
SM
29222004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
2923
1725a7c9
SM
2924 * window.c (window_list_1): YAILOM.
2925
0cedd530
SM
2926 * fileio.c (make_temp_name): Handle multibyte prefixes.
2927
2515a131
LT
29282004-08-06 Luc Teirlinck <teirllm@auburn.edu>
2929
2930 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
2931 Doc fix.
2932
c8b20fb7
KH
29332004-08-03 Kenichi Handa <handa@m17n.org>
2934
2935 * coding.c (decode_coding_string): Adjust coding->consumed, and
2936 etc. with shrinked_bytes.
2937
fb8b092b
KS
29382004-08-03 Kim F. Storm <storm@cua.dk>
2939
2940 * indent.c (compute_motion): Fix check for full width window
2941 in non-window case. Do not count left truncation glyph on
2942 window systems.
2943
df133612
LT
29442004-08-02 Luc Teirlinck <teirllm@auburn.edu>
2945
2946 * data.c (Finteractive_form): Doc fix.
2947
0f7a93c1
KS
29482004-08-02 Kim F. Storm <storm@cua.dk>
2949
2950 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
2951 properly accounting for continuation glyph on non-window systems.
2952 (Fcompute_motion): Use actual window width if WIDTH is nil, and
2953 actual window width/height if TOPOS is nil, properly accounting for
2954 continuation glyphs on non-window systems, and optional header lines.
2955 (vmotion): Let compute_motion calculate actual window width.
2956
2957 * window.c (window_scroll_line_based): Let compute_motion
2958 calculate actual window width.
2959
f491e1ed
KS
29602004-08-02 Kim F. Storm <storm@cua.dk>
2961
2962 * process.c (read_process_output): Use whole read buffer.
2963 Don't trigger adaptive read buffering on errors.
2964
83f64226
LT
29652004-07-31 Luc Teirlinck <teirllm@auburn.edu>
2966
2967 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
2968
2969 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
2970
2971 * callint.c (Fcall_interactively): Doc fix.
2972
8afc13c6
RS
29732004-07-30 Richard M. Stallman <rms@gnu.org>
2974
2975 * abbrev.c (Fexpand_abbrev): Undo previous change.
2976
7c111482
KS
29772004-07-30 Kim F. Storm <storm@cua.dk>
2978
2979 * editfns.c (Fformat): Allocate extra (dummy) element in info.
2980
ee945d08
LT
29812004-07-28 Luc Teirlinck <teirllm@auburn.edu>
2982
2983 * eval.c (Fdefvar, Fdefconst): Doc fixes.
2984
3f911c94
KS
29852004-07-27 Kim F. Storm <storm@cua.dk>
2986
2987 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
2988 we have ensured that the glyph fits on the current line (or returned
2989 MOVE_LINE_CONTINUED otherwise).
2990
f29ff8c7
KS
29912004-07-26 Kim F. Storm <storm@cua.dk>
2992
2993 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
2994 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
2995 if target position is at end of display line but char is not a newline.
2996
81159bb9
RS
29972004-07-25 Richard M. Stallman <rms@gnu.org>
2998
ab431b61
RS
2999 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
3000 instead of ON_VERTICAL_BORDER, when on scroll bar.
3001 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
3002
3003 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
3004
f29ff8c7 3005 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
3006 Take account of FRAME_INTERNAL_BORDER_WIDTH.
3007
3008 * alloc.c (check_cons_list): New function (contents commented out).
3009
fc820cc5
LT
30102004-07-24 Luc Teirlinck <teirllm@auburn.edu>
3011
3012 * xfaces.c (Fcolor_supported_p): Doc fix.
3013
3014 * frame.c (Fselect_frame, Fset_frame_selected_window)
3015 (Fframe_visible_p, Fraise_frame): Doc fixes.
3016
289978b5
LT
30172004-07-24 Richard M. Stallman <rms@gnu.org>
3018
78819ebb 3019 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
3020
3021 * fileio.c (Fwrite_region): Doc fix.
3022
3023 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
3024
3025 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
3026 only when a real abbrev is present.
3027
289978b5
LT
3028 * xfns.c (x_icon_verify): New function.
3029 (Fx_create_frame): Use it.
3030
63cc10ae
KS
30312004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
3032
3033 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
3034
36f826d4
KS
30352004-07-21 Kim F. Storm <storm@cua.dk>
3036
3037 * window.h (struct glyph_matrix): New members nrows_scale_factor
3038 and ncols_scale_factor.
3039
3040 * window.c (make_window): Initialize nrows_scale_factor and
3041 ncols_scale_factor members.
3042
3043 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
3044 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
3045 (required_matrix_height): Apply nrows_scale_factor.
3046 (required_matrix_width): Apply ncols_scale_factor.
3047
3048 * xdisp.c (display_line): Increment nrows_scale_factor and set
3049 fonts_changed_p if past last allocated row.
3050 (append_glyph, append_composite_glyph, produce_image_glyph)
3051 (append_stretch_glyph): Increment ncols_scale_factor and set
3052 fonts_changed_p if current area is full.
3053
5fc1c546
JD
30542004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3055
3056 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
3057
cb7516e5
LT
30582004-07-19 Luc Teirlinck <teirllm@auburn.edu>
3059
3060 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
3061 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
3062 (Fset_window_start, Fscroll_up, Fscroll_down)
3063 (Fother_window_for_scrolling, Fscroll_other_window)
3064 (Fsave_window_excursion, Fset_window_vscroll)
3065 (syms_of_window) <window-size-fixed>: Doc fixes.
3066
b6189c3b 30672004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
3068
3069 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
3070 ENCODE_SYSTEM for filenames.
3071
bfcf6608
ST
30722004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3073
3074 * mac.c (sys_select): Block input around call to
3075 ReceiveNextEvent to prevent breakage. Correctly handle
3076 blocking on event queue only by calling ReceiveNextEvent
3077 instead of select (since GUI events aren't on an fd).
3078 (sys_read): Remove function
3079 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
3080
e082ac9d
ST
30812004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3082
3083 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 3084 polling instead of 1 sec timeouts (like solaris).
e082ac9d 3085
cb7516e5 3086 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
3087 frame creation.
3088
3089 * keyboard.c: Undef SIGIO on Carbon
3090
3091 * atimer.c (alarm_signal_handler): Call alarm handlers after
3092 scheduling.
3093
3094 * eval.c (Feval): Remove quit_char test
3095
3096 * process.c (wait_reading_process_input): Remove clearing
3097 stdin for select call on process input.
3098
4b9da0fb
LT
30992004-07-18 Luc Teirlinck <teirllm@auburn.edu>
3100
1204e81c
LT
3101 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
3102 capitalization error in docstring.
4b9da0fb 3103
26503ad2
JB
31042004-07-17 Juanma Barranquero <lektu@terra.es>
3105
3106 * keyboard.c (not_single_kboard_state): Do nothing unless
3107 MULTI_KBOARD is defined.
3108
3751eb00
RS
31092004-07-17 Richard M. Stallman <rms@gnu.org>
3110
3111 * window.c (coordinates_in_window): Inside the window but outside
3112 its box to the L or R, return ON_VERTICAL_BORDER.
3113 (window_list_1): Rotate the list to start with WINDOW.
3114
3115 * print.c (print_preprocess): Test for print_depth at limit
3116 before entering in being_printed.
3117
3118 * keyboard.c (not_single_kboard_state): New function.
3119 (stuff_buffered_input): Now no-op only if no SIGTSTP.
3120
3121 * frame.c (Fdelete_frame): If we're in single_bboard_state on
3122 this kboard, and we delete its last frame, go to any_kboard_state.
3123
3124 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
3125
b6189c3b 31262004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
3127
3128 * w32fns.c (Fx_file_dialog): Encode strings in system coding
3129 system before passing them to OS functions for display.
3130
0f6af254
DK
31312004-07-15 David Kastrup <dak@gnu.org>
3132
f9253326
KS
3133 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
3134 Apparently fixes an abort condition.
0f6af254 3135
386c8f42
LT
31362004-07-14 Luc Teirlinck <teirllm@auburn.edu>
3137
3138 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
3139 instead of a cons.
3140
366511da
MB
31412004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
3142
3143 * keyboard.c (echo_dash): Do nothing if there already is a dash
3144 at the end of the echo string.
3145
f85409d3
KS
31462004-07-12 Kim F. Storm <storm@cua.dk>
3147
3148 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
3149 if GC_MARK_STACK.
3150
0ba2e87b
LT
31512004-07-10 Luc Teirlinck <teirllm@auburn.edu>
3152
da38045d
LT
3153 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
3154
0ba2e87b
LT
3155 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
3156 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
3157 (Freplace_buffer_in_windows, Fset_window_buffer)
3158 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
3159 (syms_of_window): Expand docstring of `display-buffer-function'.
3160
5668fbb8
LT
31612004-07-09 Luc Teirlinck <teirllm@auburn.edu>
3162
3163 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
3164 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
3165 that time values of the type (HIGH . LOW) are considered obsolete.
3166
a085bf9d
LT
31672004-07-06 Luc Teirlinck <teirllm@auburn.edu>
3168
669de2fb
LT
3169 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
3170 docstring.
3171
bac66325 3172 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 3173
8e975df9
JPW
31742004-07-06 John Paul Wallington <jpw@gnu.org>
3175
3176 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
3177
fa164e6a
JPW
3178 * fns.c (Fclear_string): Signal an error if STRING is not a string.
3179
2bac9bb1
JD
31802004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3181
3182 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
3183 instead of CGMainDisplayID (only in OSX 10.2 and later).
3184
316ef0dc
JPW
31852004-07-04 John Paul Wallington <jpw@gnu.org>
3186
3187 * fileio.c (read_file_name_completion_ignore_case): New variable.
3188 (syms_of_fileio): Declare and initialise it.
3189 (Fread_file_name): Bind `completion-ignore-case' to respect it.
3190
2a1a35c6
EZ
31912004-07-03 Eli Zaretskii <eliz@gnu.org>
3192
3193 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
3194 for event.x and event.y.
3195
33a72331
KH
31962004-07-01 Kenichi Handa <handa@m17n.org>
3197
3198 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
3199 after getting a new string by pre-write-conversion.
3200
9238467d 32012004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
3202
3203 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
3204 (x_calc_absolute_position): Remove unused var `child'.
3205
3206 * xfaces.c (x_supports_face_attributes_p)
3207 (Fdisplay_supports_face_attributes_p): YAILOM.
3208 (tty_supports_face_attributes_p): Remove unused var `i'.
3209
3210 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
3211 back_unibyte_ok.
3212
3213 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
3214
3215 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
3216
3217 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
3218
f96ec754
AS
32192004-06-30 Andreas Schwab <schwab@suse.de>
3220
3221 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
3222 (Finit_image_library): Pass LIBRARIES through to
3223 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
3224 (lookup_image_type): Pass Qnil as second argument to
3225 Finit_image_library.
3226
78819ebb 3227 * lisp.h (Finit_image_library): Declare.
f96ec754 3228
59feca74 32292004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 3230
31983645
AS
3231 * macterm.c (do_window_activate, do_window_deactivate): Remove.
3232 (XTread_socket): Send mouse button events to the toolbox
3233 dispatcher even when the mouse is grabbed. Don't process window
3234 activate events for non-Emacs windows. Replace function calls to
3235 do_window_activate and do_window_deactivate with their contents.
3236 Reset mouse grabbing status when a window is deactivated.
59feca74 3237
c61278bb
ST
32382004-06-29 Steven Tamm <steventamm@mac.com>
3239
3240 * macterm.c (mac_get_emulated_btn)
3241 (mac_event_to_emacs_modifiers): Fix emulated mouse button
3242 support to correctly mask out modifiers.
3243
c3762cbd
DK
32442004-06-29 David Kastrup <dak@gnu.org>
3245
3246 * search.c (Fset_match_data): Allow buffer before end of list
3247 which can happen if set-match-data is using a pre-consed list.
3248
c61278bb 32492004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
3250
3251 * macterm.c (XTread_socket): Correctly set the frame position
3252 after the window is moved.
3253
74cdfe05
JD
32542004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3255
3256 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
3257 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
3258 (xg_get_image_for_pixmap): Add workaround for monochrome displays
3259 so insensitive and activated icons look ok.
74cdfe05 3260
ef544dc8
JR
32612004-06-27 Jason Rumney <jasonr@gnu.org>
3262
3263 * w32fns.c (file_dialog_callback): Disable edit control if set
3264 to directories only on CDN_INITDONE message.
3265 (Fx_file_dialog): Default to directories only when prompt starts
3266 with "Dired".
3267
7b7990cc
KS
32682004-06-25 Kim F. Storm <storm@cua.dk>
3269
3270 * alloc.c (allocate_misc): Update total_free_markers.
3271 (free_misc): New function.
3272 (safe_alloca_unwind, free_marker): Use it.
3273
3274 * lisp.h (free_misc): Add prototype.
3275
3276 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
3277
d8c379f8
RS
32782004-06-24 Richard M. Stallman <rms@gnu.org>
3279
3280 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
3281 (syms_of_emacs): Lisp variables deleted.
3282
559cdd07
DK
32832004-06-23 David Kastrup <dak@gnu.org>
3284
94939b84
DK
3285 * search.c (Freplace_match): Adjust the match-data more thoroughly
3286 when replacing strings in the buffer.
3287 (Fmatch_data): When INTEGERS is non-nil and the last match was in
3288 a buffer, add the buffer as last element to the match data.
3289 (Fset_match_data): If an additional element of the match-data is a
3290 buffer, restore it to last_thing_searched.
c8d09ad8 3291 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
3292 (restore_match_data): Restore it again.
3293
dce417e7
LT
32942004-06-23 Luc Teirlinck <teirllm@auburn.edu>
3295
3296 * keymap.c (Ftext_char_description): Doc fix.
3297 * doc.c (Fsnarf_documentation): Doc fix.
3298
ef54b2d0
KS
32992004-06-22 Kim F. Storm <storm@cua.dk>
3300
b5bc4d05
KS
3301 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
3302
ef54b2d0
KS
3303 * lisp.h (struct Lisp_Save_Value): New member dogc.
3304 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
3305 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
3306 (SAFE_FREE_LISP): New macro.
3307
3308 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
3309 (make_save_value): Init new dogc member.
3310 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
3311
3312 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
3313 SAFE_FREE_LISP macros.
3314
3d33d993
KS
33152004-06-22 Kim F. Storm <storm@cua.dk>
3316
3317 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
3318 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
3319 in that memory area are unknown to GC. Add comments.
3320
3321 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
3322
5c917f98
KS
33232004-06-21 Kim F. Storm <storm@cua.dk>
3324
3325 * lisp.h (MAX_ALLOCA): Define here.
3326 (safe_alloca_unwind): Add prototype.
3327 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
3328
3329 * alloc.c (safe_alloca_unwind): New function.
3330
3331 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
3332
3333 * charset.c (Fstring): Use SAFE_ALLOCA.
3334
3335 * coding.c (MAX_ALLOCA): Remove define.
3336
3337 * data.c (MAX_ALLOCA): Remove define.
3338 (Faset): Use SAFE_ALLOCA.
3339
3340 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
3341
3342 * fns.c (string_make_multibyte, string_to_multibyte)
3343 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
3344 (MAX_ALLOCA): Remove define.
3345 (Fbase64_encode_region, Fbase64_encode_string)
3346 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
3347 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
3348 memory leak if encoding fails.
3349
3350 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
3351
9a09408e
EZ
33522004-06-21 Eli Zaretskii <eliz@gnu.org>
3353
3354 * print.c (Fwith_output_to_temp_buffer): Doc fix.
3355
376de739
RS
33562004-06-20 Richard M. Stallman <rms@gnu.org>
3357
3358 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
3359
3360 * search.c (match_limit): Cleaner err msg when no match data available.
3361
3362 * window.c (syms_of_window): Doc fix.
3363
3364 * keyboard.c (command_loop_1): Handle values `only' and `identity'
3365 for Vtransient_mark_mode.
3366
3367 * buffer.c (syms_of_buffer): Doc fix.
3368
acd81db9
DK
33692004-06-21 David Kastrup <dak@gnu.org>
3370
3371 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
3372 and unbinding of `case-fold-search' according to
3373 `completion-ignore-case' around calls of string-match and
3374 predicates, respectively. Should give satisfactory performance
3375 in all relevant cases.
3376
f303762d
JD
33772004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3378
95911c74
JD
3379 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
3380 clip_x/y_origin.
3381
a6cb6b78
JD
3382 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
3383
f303762d
JD
3384 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
3385
3386 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
3387 on Mac OSX.
3388
bbdb2684
LT
33892004-06-16 Luc Teirlinck <teirllm@auburn.edu>
3390
3391 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
3392
5ea48b1c
KS
33932004-06-16 Kim F. Storm <storm@cua.dk>
3394
3395 * dispextern.h (Vimage_types): Remove extern.
3396
803aac3e
MB
33972004-06-16 Miles Bader <miles@gnu.org>
3398
3399 * image.c (lookup_image_type): Initialize image type if necessary.
3400
cdc97764
KS
34012004-06-15 Kim F. Storm <storm@cua.dk>
3402
c4a5739c
KS
3403 * xdisp.c (try_cursor_movement): Exclude header line from scroll
3404 margin at top of window.
3405 (try_window_reusing_current_matrix): Calculate proper cursor position
3406 after scrolling up with non-zero scroll margin, as the old cursor
3407 position corresponds to value of PT before executing this command.
3408 (try_window_id): Consider scroll margin at bottom of window too;
3409 otherwise we fail to scroll when hl-line-mode is enabled.
3410
cdc97764
KS
3411 * syntax.c (skip_chars): Only recognize [:class:] when it has the
3412 proper format and class is a lower-case word.
3413
5b166323
JD
34142004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3415
3416 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 3417 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
3418 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
3419 xg_get_gdk_pixmap_and_mask.
cdc97764 3420
5b166323
JD
3421 * xterm.h (struct x_display_info): Typo in comment fixed.
3422
1ebd4f78
JB
34232004-06-14 Juanma Barranquero <lektu@terra.es>
3424
3425 * dispextern.h (Vimage_types): Make it conditional on
3426 HAVE_WINDOW_SYSTEM.
3427
3428 * image.c (Vimage_types): Move from xdisp.c.
3429 (Vimage_type_cache): New variable.
3430 (define_image_type): New argument indicating whether an image
3431 library was loaded; cache loaded status and return t on success,
3432 nil otherwise.
3433 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
3434 (w32_delayed_load): New function to load an image library from a
3435 list of possible filenames.
3436 (init_xpm_functions, init_png_functions, init_jpeg_functions)
3437 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 3438 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
3439 (Finit_image_library): New function, extracted from `init_image'.
3440 Try to initialize an image library on demand and cache whether we
3441 were successful or not.
3442 (syms_of_image): Initialize `Vimage_types' and
3443 `Vimage_type_cache'. Add recognized image types to Vimage_types.
3444 Export `init-image-library'.
3445 (init_image): Remove initialization of all image types, except xbm
3446 and pbm.
3447
3448 * xdisp.c (Vimage_types): Delete (moved to image.c).
3449
904ee128
AS
34502004-06-14 Andreas Schwab <schwab@suse.de>
3451
3452 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
3453 Avoid calling specbind when completion-regexp-list is empty.
3454
092de21d
RS
34552004-06-13 Richard M. Stallman <rms@gnu.org>
3456
3457 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
3458 (re_wctype, re_iswctype, re_wctype_to_bit):
3459 Non-function definitions moved here from regex.c.
1ebd4f78 3460
092de21d
RS
3461 * regex.c (re_wctype, re_iswctype): Function defs longer static.
3462 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
3463 (re_wctype, re_iswctype, re_wctype_to_bit):
3464 Non-function definitions moved to regex.h.
3465
3466 * window.c (Fselect_window): Doc fix.
3467
3468 * syntax.c: Include regex.h.
3469 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
3470 If requested, make a list of classes, then check the scanned
3471 chars for membership in them.
3472 (in_classes): New function.
3473 Doc fix.
3474
3475 * keyboard.c (cmd_error): Don't call any_kboard_state
3476 if inside a recursive edit level.
3477
34782004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
3479
3480 * keyboard.c (command_loop): Call any_kboard_state before
3481 command_loop_2 when at top level.
3482
3ebc0939
AS
34832004-06-13 Andreas Schwab <schwab@suse.de>
3484
cea5d0d4
AS
3485 * print.c (print_object): Always use %ld for printing EMACS_INT.
3486
3487 * keyboard.c (cancel_hourglass_unwind): Return a value.
3488 (modify_event_symbol): Always use %ld for printing EMACS_INT.
3489 (Fexecute_extended_command): Likewise.
3490
3491 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
3492 avoid clashes.
3493 (SYNTAX): Likewise.
3494 (SYNTAX_WITH_FLAGS): Likewise.
3495 (SYNTAX_MATCH): Likewise.
3496
3497 * syntax.c (char_quoted): Avoid warning about undefined operation.
3498 (find_defun_start): Likewise.
3499 (scan_lists): Likewise.
3500 (INC_FROM): Likewise.
3501 (scan_sexps_forward): Likewise.
3502
be8c4ce4
AS
3503 * image.c: Include <ctype.h>.
3504
3ebc0939
AS
3505 * xfaces.c (face_attr_equal_p): Declare parameters.
3506
6fb41b5b
KH
35072004-06-13 Kenichi Handa <handa@m17n.org>
3508
3509 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
3510
fc3095ce
EZ
35112004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
3512
3513 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
3514
66189a40
KH
35152004-06-12 Kenichi Handa <handa@m17n.org>
3516
3517 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
3518 ccl_prog_stack_struct and update it.
3519 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
3520 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
3521 ccl->eof_ic on EOF.
3522 (ccl_debug_hook): New function.
3523 (struct ccl_prog_stack): New member eof_ic.
3524 (ccl_driver): Handle EOF in subrountine call correctly.
3525
35262004-06-11 Kenichi Handa <handa@m17n.org>
3527
3528 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
3529
1da71023
KS
35302004-06-11 Kim F. Storm <storm@cua.dk>
3531
3532 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
3533
e9efcef4
JB
35342004-06-11 Juanma Barranquero <lektu@terra.es>
3535
3536 * keyboard.c (Fposn_at_point): Doc fix.
3537
9b9ceb61
DK
35382004-06-11 David Kastrup <dak@gnu.org>
3539
3540 * search.c (match_limit): Don't flag an error if match-data
3541 exceeding the allocated search_regs.num_regs gets requested, just
3542 return Qnil.
3543
6e87ac8f
MB
35442004-06-08 Miles Bader <miles@gnu.org>
3545
3546 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
3547
0b0dea7b
JB
35482004-06-07 Juanma Barranquero <lektu@terra.es>
3549
3550 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
3551 (Fcurrent_time_string, Fcurrent_time_zone)
3552 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
3553
a0a23346
MB
35542004-06-07 Miles Bader <miles@gnu.org>
3555
08384afd 3556 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
3557 (push_named_merge_point): New function.
3558 (merge_named_face): New function.
3559 (merge_face_ref, face_at_buffer_position, face_at_string_position):
3560 Use `merge_named_face'.
3561 (merge_face_inheritance): Function removed.
c8d09ad8 3562 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
3563 Add new `err_msgs' and `named_merge_points' args. Return error
3564 status. Only print error messages if ERR_MSGS is true. Don't try to
3565 do :inherit attribute validation.
3566 (merge_face_heights): Handle `unspecified' in both directions.
3567 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
3568 Call `merge_face_ref' instead of `merge_face_inheritance'.
3569 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
3570 (compute_char_face, face_at_buffer_position)
3571 (face_at_string_position): Call `merge_face_ref' instead of
3572 `merge_face_vector_with_property'.
3573
12d5b185
KH
35742004-06-07 Kenichi Handa <handa@m17n.org>
3575
3576 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
3577 the necessary places.
3578
2e2d7ee6
KS
35792004-06-07 Kim F. Storm <storm@cua.dk>
3580
3581 * process.c (Fdelete_process): Undo 2004-05-28 change.
3582 Instead, call status_notify also for network process.
3583 (status_message): Use process instead of status as arg.
3584 Give messages "deleted" or "connection broken by remote peer" for
3585 an exited network process.
3586 (status_notify): Change call to status_message.
3587 (read_process_output): Increase readmax to 4096. Do not increase
3588 buffer size for datagram channels (default is now large enough).
3589
fcf0d299
ST
35902004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3591
3592 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
3593 problem due to newly defined variable.
3594
0722292b
MB
35952004-06-06 Miles Bader <miles@gnu.org>
3596
3597 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
3598 immediately if non-interactive or not initialized.
3599
ddfb8369
RS
36002004-06-05 Richard M. Stallman <rms@gnu.org>
3601
3602 * minibuf.c (Fcompleting_read): Doc fix.
3603
57015754
AS
36042004-06-05 Andreas Schwab <schwab@suse.de>
3605
3606 * macfns.c (x_create_tip_frame): Fix declaration after statement.
3607
23715ea6
JB
36082004-06-05 Juanma Barranquero <lektu@terra.es>
3609
3610 * keymap.c (Fdescribe_vector): Fix docstring.
3611 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
3612
8e330b22
MB
36132004-06-05 Miles Bader <miles@gnu.org>
3614
3615 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
3616 attributes have different values than the default face.
3617
9742a3a6
EZ
36182004-06-04 Eli Zaretskii <eliz@gnu.org>
3619
3620 * xfaces.c (x_supports_face_attributes_p): Make this function
3621 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
3622 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
3623 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 3624
9717e36c
MB
36252004-06-04 Miles Bader <miles@gnu.org>
3626
3627 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
3628 from Ftty_supports_face_attributes_p.
3629 (x_supports_face_attributes_p): New function.
3630 (Ftty_supports_face_attributes_p): Function deleted.
3631 (Fdisplay_supports_face_attributes_p): New function.
3632 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 3633 (face_attr_equal_p): New function.
9717e36c
MB
3634 (lface_equal_p): Use it.
3635
52deb19f
JB
36362004-06-03 Juanma Barranquero <lektu@terra.es>
3637
3638 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
3639 (Vw32_color_map): Fix typo in docstring.
3640 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
3641 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
3642 Make argument names match their use in docstring.
3643
86d373e6
JB
36442004-06-02 Juanma Barranquero <lektu@terra.es>
3645
3646 Work around bugs/problems with MinGW builds of graphics libraries
3647 called from MSVC builds of Emacs.
3648
3649 * image.c (lookup_image): Make pointer to img static.
3650 (png_read_from_memory): Disable "global" optimization.
3651
2fb0ce67
SM
36522004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3653
c8d09ad8
SM
3654 * eval.c (Fcondition_case): Fix usage. Simplify.
3655
2fb0ce67
SM
3656 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
3657
50bf7673
ST
36582004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3659
3660 * macfns.c: Don't include ccl.h.
3661 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
3662 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
3663 TextUtils.h.
c8d09ad8 3664 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
3665 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
3666 display height/width.
3667 (compute_tip_xy, Vx_max_tooltip_size): Declare.
3668 (unwind_create_tip_frame, compute_tip_xy): New functions.
3669 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
3670 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
3671 and last_show_tip_args.
2fb0ce67 3672
50bf7673
ST
3673 * macgui.h [!MAC_OSX]: Include Gestalt.h.
3674 (Cursor, No_Cursor): New defines.
c8d09ad8 3675 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
3676 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
3677
3678 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
3679
3680 * macterm.c: Don't include Gestalt.h.
3681 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
3682 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
3683 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
3684 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
3685 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
3686 (construct_mouse_click, XTmouse_position)
3687 (x_scroll_bar_report_motion, x_calc_absolute_position)
3688 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
3689 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
3690 (note_mouse_movement): Clear the mouse face and reset the pointer
3691 shape when the pointer goes outside the frame without grabbing.
3692 (mac_front_window): New function.
3693 (mac_window_to_frame): New macro.
3694 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
3695 (do_window_activate, do_window_deactivate, do_app_resume)
3696 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
3697 (do_zoom_window, mac_do_receive_drag, XTread_socket)
3698 (mac_check_for_quit_char): Use mac_front_window and/or
3699 mac_window_to_frame.
3700 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
3701 scroll-bar click event.
3702 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 3703 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 3704 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 3705 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
3706 (do_window_update): Don't do anything if the updated window is the
3707 tooltip window.
3708 (do_mouse_moved): Handle mouse movement events here (previously in
3709 XTread_socket). Clear the mouse face if
3710 dpyinfo->mouse_face_hidden is set.
3711 (do_os_event, do_events): Remove (now in XTread_socket).
3712 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
3713 Loop until all the events in the queue are processed.
3714 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
3715 contents of do_os_event and do_events. Remove mouse movement
3716 handling (now in do_mouse_moved). Add the case where
3717 Vmouse_highlight has an integer value.
3718 (NewMacWindow): Remove.
3719 (make_mac_frame): Do what NewMacWindow previously did. Don't do
3720 excess initializations.
3721 (make_mac_terminal_frame): Previous initializations in
3722 make_mac_frame are moved here.
c8d09ad8
SM
3723 (mac_initialize_display_info):
3724 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
3725
3726 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
3727 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
3728
08fd1251
RS
37292004-05-29 Richard M. Stallman <rms@gnu.org>
3730
3731 * lisp.h (truncate_undo_list): Update decl.
3732
3733 * alloc.c (undo_outer_limit): New variable.
3734 (syms_of_alloc): Defvar it.
3735 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
3736
3737 * undo.c (truncate_undo_list): New arg LIMITSIZE.
3738
3739 * alloc.c (lisp_align_malloc): Check for base == 0
3740 regardless of HAVE_POSIX_MEMALIGN.
3741 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
3742
227ef0ff
SM
37432004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3744
3745 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
3746 (marker_blocks_pending_free): Remove.
3747 (Fgarbage_collect): Sweep after cleaning up undo-lists.
3748 Mark the undo lists after claning them up.
3749 Don't free block in marker_blocks_pending_free.
3750 (mark_buffer): Don't mark undo_list.
3751 (gc_sweep): Sweep hash-tables and strings first.
3752 Do free marker blocks that are empty.
3753
034a6113
SM
37542004-05-28 Jim Blandy <jimb@redhat.com>
3755
3756 * regex.c (print_partial_compiled_pattern): Add missing 'break'
3757 after 'case wordend'. For symbeg and symend, print to stderr,
3758 like the other cases.
3759
33594a8d
NF
37602004-05-28 Noah Friedman <friedman@splode.com>
3761
3762 * process.c (Fdelete_process): Do not call remove_process.
3763
ce50a847
SM
37642004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3765
3766 * alloc.c (struct backtrace): Remove.
3767 (Fgarbage_collect): Use the new mark_backtrace.
3768
3769 * eval.c (mark_backtrace): New function.
3770
3771 * minibuf.c (run_exit_minibuf_hook): New function.
3772 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
3773 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
3774
1e8dae36
KS
37752004-05-27 Kim F. Storm <storm@cua.dk>
3776
3777 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
3778 over display properties, e.g. images, that replace buffer text.
3779
846faa3b
KS
37802004-05-25 Kim F. Storm <storm@cua.dk>
3781
3782 * alloc.c (marker_blocks_pending_free): New var.
3783 (gc_sweep): Store free marker blocks on that list.
3784 (Fgarbage_collect): Free them after undo-list cleanup.
3785
3786 * process.c (wait_reading_process_input): Check connect_wait_mask
3787 before actually accepting connection in case it has already been
3788 accepted due to recursion.
3789
b6189c3b 37902004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 3791
ce50a847
SM
3792 * coding.c (Fset_safe_terminal_coding_system_internal):
3793 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 3794
71d5a208
RS
37952004-05-22 Richard M. Stallman <rms@gnu.org>
3796
3797 * alloc.c (Fmake_string): Doc fix.
3798
3799 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
3800 and the alist pairs too.
3801
3802 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
3803
3804 * emacs.c (main): Update copyright year.
3805
3806 * fileio.c (Fread_file_name): Expand DIR if not absolute.
3807
3808 * insdel.c (del_range_2, replace_range): Don't write an anchor
3809 if the gap is empty.
3810
3811 * xdisp.c (try_scrolling): If scroll-up-aggressively or
3812 scroll-down-aggressively is small but positive, put point
3813 near the screen edge.
3814
f63fd14e
JB
38152004-05-22 Juanma Barranquero <lektu@terra.es>
3816
3817 * keymap.c (Fdefine_key): Doc fix.
3818
4d12067c
KS
38192004-05-22 Kim F. Storm <storm@cua.dk>
3820
3821 * alloc.c (struct backtrace): Add debug_on_exit member.
3822 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
3823 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
3824 the removed cons cells.
3825 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
3826 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
3827 any cons cells pointing to unallocated stings.
3828 Do not lisp_free any marker blocks, as there may still be pointers
3829 to them from buffer undo lists at this stage of GC.
3830
3831 * keyboard.c (struct backtrace): Add debug_on_exit member.
3832 (Fcommand_execute): Clear it.
3833
931285e2
LT
38342004-05-20 Luc Teirlinck <teirllm@auburn.edu>
3835
3836 * intervals.c (lookup_char_property): Do not prematurely return nil.
3837
669fa600
SM
38382004-05-19 Jim Blandy <jimb@redhat.com>
3839
3840 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 3841 beginning and end of symbols.
4d12067c 3842
669fa600
SM
3843 * regex.c (enum syntaxcode): Add Ssymbol.
3844 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
3845 (re_opcode_t): New opcodes `symbeg' and `symend'.
3846 (print_partial_compiled_pattern): Print the new opcodes properly.
3847 (regex_compile): Parse the new operators.
ce50a847 3848 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
3849 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
3850 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
3851 (re_match_2_internal): Match symbeg and symend.
3852
3853 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
3854
0d8c2e5c
KS
38552004-05-19 Kim F. Storm <storm@cua.dk>
3856
3857 * .gdbinit (xsymbol): Fix last change.
3858
669fa600
SM
38592004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
3860
3861 * .gdbinit (xprintstr): New fun.
3862 (xstring, xprintsym): Use it.
3863
3864 * w32proc.c (create_child): Use INTMASK.
3865
3866 * alloc.c (Fgarbage_collect): Do all the marking before flushing
3867 unmarked elements of the undo list.
3868
9a6a4c40
DP
38692004-05-18 David Ponce <david@dponce.com>
3870
3871 * print.c (print): Reset print_depth before to call print_object.
3872
f3c4ec74
JR
38732004-05-18 Jason Rumney <jasonr@gnu.org>
3874
3875 * w32console.c: Prefix RIF functions with w32con_ to avoid
3876 namespace clash with functions in term.c and w32term.c.
3877
3878 * w32menu.c (add_menu_item, w32_menu_display_help)
3879 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
3880
0d8c2e5c 3881 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 3882
6be49c3a
EZ
38832004-05-18 Eli Zaretskii <eliz@gnu.org>
3884
4d0b9a0a
EZ
3885 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
3886
6be49c3a
EZ
3887 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
3888 with make_number.
3889 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
3890 with XINT.
3891
0bc90bba
KS
38922004-05-18 Kim F. Storm <storm@cua.dk>
3893
89d19988
KS
3894 * blockinput.h (INPUT_BLOCKED_P): New macros.
3895
3896 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
3897 (Ftop_level): Unblock input if blocked.
3898
0bc90bba
KS
3899 * buffer.h (GET_OVERLAYS_AT): New macro.
3900 * msdos.c (IT_note_mouse_highlight): Use it.
3901 * textprop.c (get_char_property_and_overlay): Use it.
3902 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
3903 * xfaces.c (face_at_buffer_position): Use it.
3904
3905 * print.c (print_object): Increase buf size.
3906
653bd0f6
JR
39072004-05-17 Jason Rumney <jasonr@gnu.org>
3908
3909 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
3910 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
3911 Lisp_Object using i member.
3912 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
3913 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
3914 consistently.
3915
3916 * w32proc.c (create_child): Use make_number instead of masking pid.
3917
3918 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
3919 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
3920 Use EQ to compare Lisp_Objects.
3921 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
3922
3923 * w32term.c (w32_num_mouse_buttons): Rename from
3924 Vw32_num_mouse_buttons and make it an int.
3925
3926 * w32.c (init_environment): Use it.
3927
3928 * w32fns.c (w32_wnd_proc): Likewise.
3929
3930 * w32proc.c (w32_pipe_read_delay): Rename from
3931 Vw32_pipe_read_delay and make it an int.
3932
3933 * w32.c (_sys_read_ahead): Use it.
3934
3935 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
3936
3937 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
3938
3939 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
3940 (key_event): Don't mix Lisp_Object and int.
3941
3942 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
3943
3944 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
3945 modifiers in language change event.
3946
54b53ba7
KS
39472004-05-17 Kim F. Storm <storm@cua.dk>
3948
3949 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
3950 Such objects may be freed markers which still exist on an undo list.
3951
6e86a75d
JB
39522004-05-16 Juanma Barranquero <lektu@terra.es>
3953
3954 * data.c (Fset_default): Make argument names match their use in
3955 docstring.
3956
fc80da24
AS
39572004-05-15 Andreas Schwab <schwab@suse.de>
3958
3959 * emacs.c (gdb_array_mark_flag): Define.
3960 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
3961
c1380aa6
EZ
39622004-05-15 Eli Zaretskii <eliz@gnu.org>
3963
3964 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
3965 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
3966 defined for the MS-DOS build.
3967
89458937
SM
39682004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3969
3970 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
3971
08020f9a
KH
39722004-05-14 Kenichi Handa <handa@m17n.org>
3973
3974 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
3975
a433994a
ST
39762004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3977
3978 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
3979 section to frame.c section.
3980 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 3981 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 3982
a433994a 3983 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 3984
a433994a 3985 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 3986
a433994a
ST
3987 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
3988 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
3989 (XTread_socket): Fix int/Lisp_Object mixup.
3990 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 3991
a433994a
ST
3992 * macterm.h (struct frame, struct face, struct image)
3993 (display_x_get_resource, Fx_display_color_p)
89458937
SM
3994 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
3995 Add prototypes.
a433994a 3996
b51a51b9
KS
39972004-05-14 Kim F. Storm <storm@cua.dk>
3998
3999 * process.c (wait_reading_process_input): Make reentrant.
4000 Make Available and Connecting non-static. Save and restore value
4001 of waiting_for_user_input_p.
4002
2bde1dd8
KS
40032004-05-13 Kim F. Storm <storm@cua.dk>
4004
4005 * keyboard.c (mark_kboards): Don't mark x and y members
4006 that are overloaded in selection request events.
4007
a267ab4d
SM
40082004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
4009
4010 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
4011
eb15ce9e
GM
40122004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
4013
4014 * window.c (Fdisplay_buffer, Fsplit_window)
4015 (split-height-threshold): Doc fix.
4016
7fc92635
JB
40172004-05-13 Juanma Barranquero <lektu@terra.es>
4018
4019 * xfaces.c (Ftty_supports_face_attributes_p)
4020 (Finternal_copy_lisp_face): Fix typo in docstring.
4021 (Finternal_get_lisp_face_attribute): Fix docstring.
4022
1ec2a572
JD
40232004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4024
4025 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
4026
ae9292e0
ST
40272004-05-11 Steven Tamm <steventamm@mac.com>
4028
4029 * macfns.c (Fx_create_frame): Default to using tool-bar by
4030 setting tool-bar-lines to 1 in default-frame-alist.
4031
40322004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
4033
4034 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
4035 (xpm_get_color_table_v, xpm_make_color_table_h)
4036 (xpm_put_color_table_h, xpm_get_color_table_h)
4037 (xpm_str_to_color_key, xpm_load_image, xpm_load)
4038 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 4039 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 4040
fe97e8df
ST
40412004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4042
a267ab4d 4043 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
4044 instead of FRAME_X_P
4045
b47e779e
KS
40462004-05-11 Kim F. Storm <storm@cua.dk>
4047
4048 * process.c (read_process_output): Grow decoding_buf when needed;
4049 this could cause a crash in allocate_string and compact_small_strings.
4050
cdc9b845
EZ
40512004-04-29 Jim Blandy <jimb@redhat.com>
4052
4053 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
4054 against proper opcode.
4055
aa7094ba
JB
40562004-05-10 Juanma Barranquero <lektu@terra.es>
4057
4058 * process.c (Fstart_process): Fix docstring.
4059
4060 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
4061 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
4062 (Fsplit_char, Fchar_charset): Make argument names match their use
4063 in docstring.
4064
e109331a
RS
40652004-05-10 Richard M. Stallman <rms@gnu.org>
4066
4067 * print.c (print_preprocess): Use being_printed, loop_count and
4068 halftail to detect overdeep nesting and cyclic cdr chains.
4069
9a28b921
AS
40702004-05-10 Andreas Schwab <schwab@suse.de>
4071
78819ebb 4072 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
4073
4074 * fileio.c (Frename_file): Remove extra argument in call to
4075 Fmake_symbolic_link.
4076
e2c02c1a
KS
40772004-05-10 Kim F. Storm <storm@cua.dk>
4078
4079 * xdisp.c (calc_line_height_property): Use string position when
4080 object is a string.
4081
cfe9d13e
KH
40822004-05-10 Kenichi Handa <handa@m17n.org>
4083
a57e8159
KH
4084 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
4085 inhibit-modification-hooks to t temporarily before calling
4086 Ferase_buffer.
4087
4088 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
4089 inhibit-modification-hooks to t temporarily before calling
4090 Ferase_buffer.
4091
4092 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
4093 inhibit-modification-hooks to t temporarily before calling
4094 Ferase_buffer.
4095
cfe9d13e
KH
4096 * fns.c (count_combining): Delete it.
4097 (concat): Don't check combining bytes.
4098
ceb96489
JR
40992004-05-09 Jason Rumney <jasonr@gnu.org>
4100
4101 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
4102 (globals_of_w32fns): Set it.
4103
b6189c3b 41042004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
4105
4106 * data.c (Fquo): Simplify.
4107
28712a21
JB
41082004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
4109
4110 * data.c (Fquo): If any argument is float, do the computation in
4111 floating point.
4112
0f0af7a8
JB
41132004-05-08 Juanma Barranquero <lektu@terra.es>
4114
88214ef6
JB
4115 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
4116 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
4117 Fix spelling of Emacs on docstring.
4118 (Fset_process_coding_system, Fprocess_coding_system)
4119 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
4120 Make argument names match their use in docstring.
4121 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
4122 Fix docstring.
4123
0f0af7a8
JB
4124 * editfns.c (Finsert_buffer_substring): Make argument names match their
4125 use in docstring.
4126
4127 * syntax.c (Fmodify_syntax_entry): Fix docstring.
4128
2a316a84
ST
41292004-05-07 Steven Tamm <steventamm@mac.com>
4130
4131 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
4132 around call to ReceiveEvent to avoid certain crashes.
4133
41342004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 4135
2a316a84
ST
4136 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
4137 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
4138 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
4139 Save/restore the current graphics port and device handle when
4140 drawing into an offscreen graphics world.
4141
4142 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
4143 (gif_load): Likewise.
4144
ab80314b
JB
41452004-05-07 Juanma Barranquero <lektu@terra.es>
4146
4147 * window.c (Fset_window_buffer): Fix docstring.
4148
70646bb5
TTN
41492004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
4150
4151 * emacs.c (main) [VMS]: Fix var ref.
4152
b6189c3b 41532004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
4154
4155 * data.c (Fsetq_default): Fix docstring.
4156
279d3293
JR
41572004-05-06 Jason Rumney <jasonr@gnu.org>
4158
4159 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
4160 to avoid name clash.
4161
f72b5416
JD
41622004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4163
4164 * fileio.c (barf_or_query_if_file_exists): Use lstat.
4165 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 4166 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 4167
6ab66799
KS
41682004-05-04 Kim F. Storm <storm@cua.dk>
4169
4170 * xdisp.c (Qtotal): New var.
4171 (syms_of_xdisp): Intern and staticpro it.
4172 (calc_line_height_property): New arg total. Set it if
4173 line-spacing property has format (total . VALUE).
4174 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
4175 Handle total line-spacing property.
4176
ab2d724b
JD
41772004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4178
4179 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
4180 "under" scroll bar when size/position changes.
4181
238add5e
JR
41822004-05-03 Jason Rumney <jasonr@gnu.org>
4183
4184 * makefile.nt: Remove.
4185
1644f4e4
EZ
41862004-05-02 Eli Zaretskii <eliz@gnu.org>
4187
a267ab4d
SM
4188 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
4189 Avoid compiler warnings.
05fdbeb8 4190
1644f4e4
EZ
4191 * Makefile.in (region-cache.o): Depend on config.h.
4192
b6189c3b 41932004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
4194
4195 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
4196 with continuation lines, too.
4197
2b98b088
TTN
41982004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
4199
4200 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
4201
d9bf7950
SM
42022004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
4203
4204 * xdisp.c (calc_line_height_property): YAILOM (yet another
4205 int/Lisp_Object mixup).
4206
affa509c
EZ
42072004-05-01 Eli Zaretskii <eliz@gnu.org>
4208
4209 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
4210 undo bad effect of pack(4) in some versions of system headers.
4211
07c07cfe
JR
42122004-05-01 Jason Rumney <jasonr@gnu.org>
4213
4214 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
4215
e71caa4e
KS
42162004-04-30 Kim F. Storm <storm@cua.dk>
4217
4218 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 4219 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
4220
4221 * dispextern.h (struct it): Remove member use_default_face.
4222 Add members override_ascent, override_descent, override_boff.
4223
4224 * xdisp.c (init_iterator): Handle line-spacing float value.
4225 Initialize override_ascent member.
4226 (append_space_for_newline): Reset override_ascent.
4227 Remove use_default_face.
4228 (calc_line_height_property): New function to calculate value of
4229 line-height and line-spacing properties. Look at overlays, too.
4230 Set override_ascent, override_descent, override_boff members when
4231 using another face than the current face. Float values are now
4232 relative to the frame default font, by default; accept a cons
4233 of ratio and face name to specify value relative to a specific face.
4234 (x_produce_glyphs): Use calc_line_height_property.
4235 Use override_ascent etc. when set to handle different face heights.
4236 A negative line-spacing property value is interpreted as a total
4237 line height, rather than inter-line spacing.
4238 (note_mouse_highlight): Allocate room for 40 overlays initially.
4239
0fddae66
SM
42402004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4241
4242 * data.c (Fsubr_name): New fun.
4243 (syms_of_data): Defsubr it.
4244
712d23dc
KS
42452004-04-29 Kim F. Storm <storm@cua.dk>
4246
4247 * xdisp.c (null_glyph_slice): New var.
4248 (append_glyph, append_composite_glyph, append_stretch_glyph):
4249 Use it to initialize glyph slice.
4250
033ad8c6
SM
42512004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
4252
4253 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
4254 (on_hot_spot_p): Make sure we always return a value.
4255 (Flookup_image_map): Remove unused var ix and iy.
4256 (note_mode_line_or_margin_highlight): Remove unused var `image'.
4257
93397360
EZ
42582004-04-27 Eli Zaretskii <eliz@gnu.org>
4259
4260 * msdos.c (init_environment): If one of the TMP... environment
4261 variables is set to a drive letter without a trailing slash,
4262 append a slash.
4263
0c54865e
EZ
42642004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
4265
4266 * editfns.c (lisp_time_argument): Provide externally.
4267
4268 * fileio.c (Fset_file_times): New function.
4269 (syms_of_fileio): Intern and staticpro it.
4270
d3b111bd
KS
42712004-04-27 Kim F. Storm <storm@cua.dk>
4272
07dc1231
KS
4273 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
4274 header line strings.
4275
360fe9d2
KS
4276 * dispextern.h (struct it): New member use_default_face.
4277
d3b111bd
KS
4278 * xdisp.c (Qline_height): New variable.
4279 (syms_of_xdisp): Intern and staticpro it.
4280 (append_space_for_newline): Partially undo 2004-04-25 change;
4281 add default_face_p arg, and restore callers.
4282 Clear it->use_default_face after use.
4283 (x_produce_glyphs): Set default font for ascii char if
4284 it->use_default_font is set. Change line-spacing property to set
4285 just extra line spacing. Handle new line-height property.
4286
0448588b
AS
42872004-04-26 Andreas Schwab <schwab@suse.de>
4288
4289 * print.c (print_object): Print non-ascii characters in bool
4290 vector representation as octal escapes.
4291
4292 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
4293 * print.c (print_object): Use it instead of BITS_PER_CHAR for
4294 bool vectors.
4295 * lread.c (read1): Likewise.
4296 * alloc.c (Fmake_bool_vector): Likewise.
4297 * data.c (Faref, Faset): Likewise.
4298 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
4299 (mapcar1): Likewise.
d3b111bd 4300
536d6baa
ST
43012004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
4302
4303 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
4304
ae11577a
MB
43052004-04-26 Miles Bader <miles@gnu.org>
4306
4307 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
4308
e198ba87
JB
43092004-04-26 Juanma Barranquero <lektu@terra.es>
4310
4311 * buffer.c (Fpop_to_buffer): Fix docstring.
4312
f3d5f92d 43132004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 4314
f3d5f92d
ST
4315 * lread.c (init_lread): Don't display missing lisp directory
4316 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 4317 may be built without correct installation path.
f3d5f92d 4318
03e35edc
KS
43192004-04-25 Kim F. Storm <storm@cua.dk>
4320
9ff3aa31
KS
4321 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
4322
4323 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
4324
03e35edc
KS
4325 * xdisp.c (append_space_for_newline): Rename from append_space.
4326 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
4327 (x_produce_glyphs): Handle line-spacing property on newline char.
4328 If value is t, adjust ascent and descent to fit current row height.
4329 If value is an integer or float, set extra_line_spacing to integer
4330 value, or to float value x current line height.
4331
f24814e0
KH
43322004-04-23 Kenichi Handa <handa@m17n.org>
4333
4334 * fontset.c (Finternal_char_font): If POSITION is nil, return
4335 font for displaying CH with the default face.
4336
d814862a
JB
43372004-04-23 Juanma Barranquero <lektu@terra.es>
4338
4339 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
4340
063a45c5
SM
43412004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
4342
4343 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
4344 Don't make assumptions about the relative place of i and val.
4345 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
4346
ae7ab2d3
KS
43472004-04-21 Kim F. Storm <storm@cua.dk>
4348
4349 * dispextern.h (struct glyph_slice): New struct.
4350 (struct glyph): New member slice.
4351 (GLYPH_SLICE_EQUAL_P): New macro.
4352 (GLYPH_EQUAL_P): Use it.
4353 (struct glyph_string): New member slice.
4354 (struct it_slice): New struct.
4355 (struct it): New member slice, add member to stack too.
4356 New member constrain_row_ascent_descent_p.
4357 (image_ascent): Add prototype.
4358
4359 * dispnew.c (buffer_posn_from_coords): Return full image width
4360 and height even for image slices (posn is relative to full image).
4361 (marginal_area_string): Adjust x0,y0 for image slice.
4362
4363 * image.c (image_ascent): Add slice arg; calculate ascent for
4364 image slice (or full image).
4365
4366 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
4367 (syms_of_keyboard): Defsubr them.
4368
4369 * lisp.h (pos_visible_p): Fix prototype.
4370
c62aec78 4371 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
4372 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4373 (x_draw_image_foreground, x_draw_image_relief)
4374 (x_draw_image_foreground_1, x_draw_image_glyph_string):
4375 Draw sliced images.
4376
4377 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
4378 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4379 (x_draw_image_foreground, x_draw_image_relief)
4380 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
4381 Draw sliced images.
4382
4383 * w32term.h (image_ascent): Remove prototype.
4384
4385 * window.c (Fpos_visible_in_window_p): Return pixel position if
4386 PARTIALLY arg is non-nil. Simplify. Doc fix.
4387 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
4388 to return/set vscroll in pixels.
4389
4390 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
4391
4392 * xdisp.c (Qslice): New variable.
4393 (syms_of_xdisp): Intern and staticpro it.
4394 (pos_visible_p): Return pixel position in new x and y args.
4395 (init_iterator): Reset it->slice info.
4396 (handle_display_prop): Parse (slice ...) property.
4397 (push_it, pop_it): Save/restore slice info.
4398 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
4399 force repositioning of tall row if window is vscrolled, as that
4400 would reset vscroll.
4401 (append_space): Set it->constrain_row_ascent_descent_p to avoid
4402 increasing row height if row is non-empty.
4403 (fill_image_glyph_string): Copy slice info.
4404 (take_vertical_position_into_account): Simplify.
4405 (produce_image_glyph): Handle iterator slice info, setup glyph
4406 slice info. Do not force minimum line height.
4407 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
4408 do not increase height (ascent/descent) of non-empty row when
4409 adding normal character glyph; instead reduce glyph ascent/descent
4410 appropriately; if row is higher than current glyph, adjust glyph
4411 descent/ascent to reposition glyph within the existing row.
4412 Likewise, when char is newline, only set ascent/descent if row is
4413 currently empty.
4414 (note_mouse_highlight): Handle hotspots with sliced image.
4415
4416 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
4417 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4418 (x_draw_image_foreground, x_draw_image_relief)
4419 (x_draw_image_foreground_1, x_draw_image_glyph_string):
4420 Draw sliced images.
4421
4422 * xterm.h (image_ascent): Remove prototype.
4423
d58f8753
SM
44242004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4425
4426 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
4427
4ce2719d
JPW
44282004-04-20 John Paul Wallington <jpw@gnu.org>
4429
4430 * fns.c (Fassoc, Feql): Fix indentation.
4431
d58f8753 4432 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 4433
95f8c3b9
JPW
44342004-04-19 John Paul Wallington <jpw@gnu.org>
4435
4436 * fns.c (Feql): New function.
d58f8753 4437 (syms_of_fns): Defsubr it.
95f8c3b9 4438
b7e85537
JR
44392004-04-18 Jason Rumney <jasonr@gnu.org>
4440
4441 * w32select.c (Fw32_set_clipboard_data): Get sequence number
4442 after closing the clipboard.
4443
5a72efd4
LT
44442004-04-16 Luc Teirlinck <teirllm@auburn.edu>
4445
4446 * buffer.c (Fbuffer_base_buffer): Doc fix.
4447
20dc8583
KS
44482004-04-17 Kim F. Storm <storm@cua.dk>
4449
60962ec4
KS
4450 * keymap.c (Fkey_description): Add optional PREFIX arg.
4451 Combine prefix with KEYS to make up the full key sequence to describe.
4452 Correlate meta_prefix_char and following (simple) key to describe
4453 as meta modifier. All callers changed.
4454 (describe_map): Rename arg `keys' to `prefix'. Remove local
4455 `elt_prefix' var. Use Fkey_description with prefix instead of
4456 elt_prefix combined with Fsingle_key_description.
4457 (describe_vector): Declare static. Replace arg `elt_prefix' with
4458 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
4459 if !KEYMAP_P. Use Fkey_description with prefix instead of
4460 Fsingle_key_description.
4461
4462 * keymap.h (Fkey_description): Fix prototype.
4463 (describe_vector): Remove prototype.
4464
409368b9
KS
4465 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
4466
20dc8583
KS
4467 * image.c (PNG_BG_COLOR_SHIFT): Remove.
4468 (png_load): Fix calculation of transparent background color on X
4469 and W32 platforms.
4470
75c5501b
JB
44712004-04-16 Juanma Barranquero <lektu@terra.es>
4472
4473 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
4474 not too large before computing how much to scroll.
4475
da879ae8
SM
44762004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
4477
4478 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
4479
d01ca4a8
LT
44802004-04-14 Luc Teirlinck <teirllm@auburn.edu>
4481
4482 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
4483 Add hyperlink to Elisp manual to the docstring.
4484
572943b3
SM
44852004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
4486
4487 * callint.c (fix_command): Use XDCR.
4488
5e30a0fb
NR
44892004-04-14 Nick Roberts <nick@nick.uklinux.net>
4490
4491 * window.c (Fget_lru_window): Doc fix.
4492
a27ddfaf
KS
44932004-04-14 Kim F. Storm <storm@cua.dk>
4494
4495 * editfns.c (Fformat): Fix allocation size of precision array.
4496
4497 * dispnew.c (update_window): Only set changed_p if
4498 scrolling_window actually did scroll.
4499 (scrolling_window): Only return 1 if we actually did scroll.
4500
4501 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
4502 height to glyph height when cursor row is not fully visible.
4503 (make_cursor_line_fully_visible): Add FORCE_P arg to return
4504 failure in case row is higher than window. Callers changed.
4505 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
4506 Try to scroll partially visible, higher-than-window cursor row.
4507 (redisplay_window): Always try to scroll partially visible,
4508 higher-than-window cursor row - both initially and again with
4509 centering_position = 0.
4510 Clear desired matrix before retrying with centering_position = 0.
4511
da879ae8
SM
45122004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4513
4514 * syntax.c (scan_lists): Simplify backward string scan.
4515 Fix off-by-one boundary check for string and comment fences.
4516
5fc16e8e
SM
45172004-04-13 Joe Buehler <jbuehler@hekimian.com>
4518
4519 * sheap.c, unexcw.c: New files.
4520
c9aac8e6
LT
45212004-04-12 Luc Teirlinck <teirllm@auburn.edu>
4522
4523 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
4524 base buffer has been killed. Correct the error message if the
4525 base buffer does not exist.
4526
1e88a355
SM
45272004-04-12 Joe Buehler <jbuehler@hekimian.com>
4528
4529 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
4530 Cygwin itself. Add support for Xaw3d scrollbars.
4531
4532 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
4533
4534 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
4535
4536 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
4537 before Cygwin unexec.
4538
4539 * Makefile.in: Link changes for Cygwin unexec() support.
4540
8dbff9a0
AS
45412004-04-12 Andreas Schwab <schwab@suse.de>
4542
4543 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
4544
54dffe35
LT
45452004-04-11 Luc Teirlinck <teirllm@auburn.edu>
4546
4547 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
4548 IGNORE argument equals NAME. Doc fix.
4549
99a72bdf
MY
45502004-04-11 Masatake YAMATO <jet@gyve.org>
4551
1e88a355 4552 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
4553 empty if they are backwards.
4554
40899d7b
SM
45552004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
4556
4557 * xfaces.c (face_color_supported_p): Fix compilation without X11.
4558
f8f853de
SM
45592004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
4560
4561 * doc.c (Fsnarf_documentation): Ignore new file name entries.
4562
c953fe1b
KS
45632004-04-06 Kim F. Storm <storm@cua.dk>
4564
661e85c1
KS
4565 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
4566 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
4567
4568 * w32term.c (w32_read_socket): Set mouse_face_hidden after
4569 clearing highlight.
4570
4571 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
4572
4573 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
4574 clearing highlight.
4575
c953fe1b
KS
4576 * indent.c (vmotion): Do not reserve one column for continuation
4577 marks on window frames.
4578
c1994268
EZ
45792004-04-04 Eli Zaretskii <eliz@gnu.org>
4580
4581 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
4582 from GCC.
4583
9f691b0d
SM
45842004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
4585
4586 * .gdbinit-union: Remove.
4587
4588 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
4589 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
4590 ($nonvalbits): Remove.
4591 ($valmask): Set it by calling xreload to avoid redundancy.
4592
4593 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
4594 (gdb_emacs_intbits): Remove.
4595
7a8560d7
JD
45962004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4597
9f691b0d 4598 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 4599
3c8111fc
KH
46002004-03-30 Kenichi Handa <handa@m17n.org>
4601
4602 * editfns.c (Fformat): Fix initialization of the array info.
4603
48a0bce4
KS
46042004-03-30 Kim F. Storm <storm@cua.dk>
4605
4606 * xterm.c (x_mouse_click_focus_ignore_position): New var.
4607 (syms_of_xterm): DEFVAR_BOOL it.
4608 (ignore_next_mouse_click_timeout): New var.
4609 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
4610 Use it to filter mouse clicks following focus event.
4611
1cd0066c
KS
46122004-03-29 David Ponce <david@dponce.com>
4613
4614 * callint.c (Fcall_interactively): Fix last change.
4615
adb3b353
SM
46162004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4617
4618 * eval.c (Fcommandp): Simplify.
4619
4620 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
4621 Extend to handle all kinds of functions.
4622
4623 * lisp.h (Finteractive_form): Declare.
4624
4625 * callint.c (Fcall_interactively): Use it.
4626
6fc4c9c9
KS
46272004-03-26 Kim F. Storm <storm@cua.dk>
4628
4629 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
4630 to catch errors in calc_pixel_width_or_height during redisplay.
4631
abdb9b83
MY
46322004-03-26 Masatake YAMATO <jet@gyve.org>
4633
b17856dd 4634 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 4635
b17856dd 4636 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 4637
b17856dd 4638 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 4639
b17856dd 4640 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 4641
e8a84b6c
JD
46422004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4643
b17856dd 4644 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 4645
36a3fd05
RS
46462004-03-19 Richard M. Stallman <rms@gnu.org>
4647
4648 * s/sol2-6.h: Delete previous change.
4649
ab24c127
KS
46502004-03-19 Kim F. Storm <storm@cua.dk>
4651
4652 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
4653 to_charpos corresponds to newline in right fringe. Use local
4654 BUFFER_POS_REACHED_P macro.
4655
992126de
JD
46562004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4657
4658 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
4659 to compile on non-window system.
4660
45dbfc84
KS
46612004-03-19 Kim F. Storm <storm@cua.dk>
4662
4663 * dispextern.h (calc_pixel_width_or_height): Add prototype.
4664
4665 * image.c (Qcenter): Move to xdisp.c.
4666
4667 * xdisp.c (Qcenter): Declare here.
adb3b353 4668 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
4669 (handle_single_display_prop): Allow space display property on all
4670 platforms.
4671 (display_mode_line): Set mode_line_p before displaying line.
4672 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
4673 handling. Remove complex cases for fringes and scroll-bars.
4674 Add left, right, and center alignment positions. Add text (area)
4675 width/height. Return width or height for image specs.
4676 (produce_stretch_glyph): Improve handling of :align-to. Is now
4677 relative to left of text area by default, but other base offsets
4678 can be specified -- also for text lines.
4679
4680 * term.c (produce_glyphs): Handle IT_STRETCH.
4681 (produce_stretch_glyph): New function to handle space width and
4682 align-to display properties on non-window systems.
4683
37264101
SM
46842004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4685
4686 * fileio.c (Fread_file_name): Set completion-ignore-case for
4687 case-insensitive systems.
4688
73bc43da
MY
46892004-03-14 Masatake YAMATO <jet@gyve.org>
4690
4691 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
4692 when keymap and cursor are setup.
4693
9062aa89
ST
46942004-03-14 Steven Tamm <steventamm@mac.com>
4695
b17856dd 4696 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 4697
e4b1b5ab
KS
46982004-03-14 Kim F. Storm <storm@cua.dk>
4699
4700 * dispextern.h (x_find_image_file): Add prototype.
4701
4702 * image.c (x_find_image_file): Make extern.
4703
4704 * xfns.c (x_find_image_file): Remove prototype.
4705
a6eeaa81 47062004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 4707
37264101 4708 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 4709
37264101 4710 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 4711
e69cfac2
RS
47122004-03-12 Richard M. Stallman <rms@gnu.org>
4713
4714 * fns.c (internal_equal): New arg PROPS controls comparing
4715 text properties. All callers changed.
4716 (Fequal_including_properties): New function.
4717 (syms_of_fns): defsubr it.
4718
45034953
KS
47192004-03-12 Kim F. Storm <storm@cua.dk>
4720
4721 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 4722
45034953
KS
4723 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
4724 (image_background, image_background_transparent): Fix prototypes.
4725
37264101 4726 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
4727
4728 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
4729 (x_query_font, x_find_ccl_program, x_set_window_size)
4730 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4731 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4732 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
4733
4734 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
4735 (x_query_font, x_find_ccl_program, x_set_window_size)
4736 (x_make_frame_visible, mac_initialize, XCreatePixmap)
4737 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4738 (mac_draw_line_to_pixmap): Add prototypes.
4739
47402004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4741
4742 * macterm.c (XTread_socket): Fix mouse click on tool bar.
4743
a12d3d87
KS
47442004-03-11 Kim F. Storm <storm@cua.dk>
4745
d3ab1cf1
KS
4746 * dispextern.h: Move image related prototypes from xfns.c section
4747 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
4748 HAVE_X_WINDOWS.
37264101 4749
37de9f51 4750 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 4751 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
4752 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
4753 (GTK_OBJ) [USE_GTK]: New declaration.
4754 (obj): Add $(GTK_OBJ) to list.
4755
5243c06a 47562004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 4757
5243c06a
ST
4758 * image.c [MAC_OSX]: Include sys/stat.h
4759
4760 * macfns.c (syms_of_macfns): Remove definitions of things now
4761 defined in image.c
4762
c0f97789
KS
47632004-03-11 Kim F. Storm <storm@cua.dk>
4764
4765 The following changes consolidates the identical/similar image
4766 support code previously found in xfns.c, w32fns.c, and macfns.c
4767 into a new file image.c.
4768
4769 * makefile.w32-in (OBJ1): Add image.o.
4770 ($(BLD)/image.$(O)): Add dependencies.
4771
4772 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
4773 (image.o): Add dependencies.
37264101 4774
c0f97789
KS
4775 * image.c: New file with consolidated image support code.
4776 (COLOR_TABLE_SUPPORT): New define to control whether
4777 color table support is available (X only).
4778 (Bitmap_Record): Common name for x_bitmap_record,
4779 w32_bitmap_record, and mac_bitmap_record.
4780 (XImagePtr): Common name for pointer to XImage or equivalent.
4781 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
4782 to XImagePtr on X+MAC, and to HDC on W32.
4783 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
4784 (NO_PIXMAP): Common name for "None" or equivalent.
4785 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
4786 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
4787 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
4788 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
4789 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
4790 (XDrawLine): Define on MAC for code sharing.
4791 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
4792 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
4793 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4794 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4795 (x_reference_bitmap, x_create_bitmap_from_data)
4796 (x_create_bitmap_from_file, x_destroy_bitmap)
4797 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4798 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4799 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4800 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4801 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4802 (define_image_type, lookup_image_type, valid_image_p)
4803 (image_error, enum image_value_type, struct image_keyword)
4804 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4805 (make_image, free_image, prepare_image_for_display, image_ascent)
4806 (four_corners_best, image_background, image_background_transparent)
4807 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4808 (make_image_cache, free_image_cache, clear_image_cache)
4809 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4810 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4811 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4812 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4813 (init_image_func_pointer, image_load_quartz2d)
4814 (struct ct_color, init_color_table, free_color_table)
4815 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4816 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4817 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4818 (x_disable_image, x_build_heuristic_mask)
4819 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4820 (TIFF support, GIF support, Ghostscript support): Consolidate image
4821 code from xfns.c, w32fns.c, and macfns.c.
4822 (syms_of_image): Consolidate image related symbol setup here.
4823 (init_image): Consolidate image related initializations here.
37264101 4824
c0f97789
KS
4825 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
4826 and init_image. Remove call to init_xfns.
4827
37264101
SM
4828 * macterm.h (struct mac_bitmap_record): Add file member.
4829 Not currently used, but simplifies code sharing.
c0f97789
KS
4830
4831 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4832 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4833 (x_reference_bitmap, x_create_bitmap_from_data)
4834 (x_create_bitmap_from_file, x_destroy_bitmap)
4835 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4836 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4837 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4838 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4839 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4840 (define_image_type, lookup_image_type, valid_image_p)
4841 (image_error, enum image_value_type, struct image_keyword)
4842 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4843 (make_image, free_image, prepare_image_for_display, image_ascent)
4844 (four_corners_best, image_background, image_background_transparent)
4845 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4846 (make_image_cache, free_image_cache, clear_image_cache)
4847 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4848 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4849 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4850 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4851 (init_image_func_pointer, image_load_quartz2d)
4852 (struct ct_color, init_color_table, free_color_table)
4853 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4854 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4855 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4856 (x_disable_image, x_build_heuristic_mask)
4857 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4858 (TIFF support, GIF support, Ghostscript support): Merge with image
4859 code from xfns.c and macfns.c into image.c.
4860 (syms_of_xfns): Move image related symbols to image.c.
4861 (init_external_image_libraries, init_xfns): Remove; initialization
4862 moved to init_image in image.c.
4863
4864 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4865 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4866 (x_reference_bitmap, x_create_bitmap_from_data)
4867 (x_create_bitmap_from_file, x_destroy_bitmap)
4868 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4869 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4870 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4871 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4872 (define_image_type, lookup_image_type, valid_image_p)
4873 (image_error, enum image_value_type, struct image_keyword)
4874 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4875 (make_image, free_image, prepare_image_for_display, image_ascent)
4876 (four_corners_best, image_background, image_background_transparent)
4877 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4878 (make_image_cache, free_image_cache, clear_image_cache)
4879 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4880 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4881 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4882 (struct ct_color, init_color_table, free_color_table)
4883 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4884 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4885 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4886 (x_disable_image, x_build_heuristic_mask)
4887 (XBM support, XPM support, PBM support, PNG support, JPEG support)
4888 (TIFF support, GIF support, Ghostscript support): Merge with image
4889 code from xfns.c and macfns.c into image.c.
4890 (syms_of_xfns): Move image related symbols to image.c.
4891 (init_external_image_libraries, init_xfns): Remove; initialization
4892 moved to init_image in image.c.
4893
4894 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4895 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4896 (x_reference_bitmap, x_create_bitmap_from_data)
4897 (x_create_bitmap_from_file, x_destroy_bitmap)
4898 (x_destroy_all_bitmaps, x_create_bitmap_mask)
4899 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4900 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4901 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4902 (define_image_type, lookup_image_type, valid_image_p)
4903 (image_error, enum image_value_type, struct image_keyword)
4904 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4905 (make_image, free_image, prepare_image_for_display, image_ascent)
4906 (four_corners_best, image_background, image_background_transparent)
4907 (x_clear_image_1, x_clear_image, x_alloc_image_color)
4908 (make_image_cache, free_image_cache, clear_image_cache)
4909 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4910 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4911 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
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): Merge with
4919 w32fns.c and macfns.c image code into image.c.
4920 (syms_of_xfns): Move image related symbols to image.c.
4921 (init_xfns): Remove; initialization moved to init_image in image.c.
4922
4923 * lisp.h (syms_of_image, init_image): Add protoypes.
4924 (init_xfns): Remove prototype.
4925
4926 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4927 (x_reference_bitmap, x_create_bitmap_from_data)
4928 (x_create_bitmap_from_file, x_destroy_bitmap)
4929 (x_create_bitmap_mask): Move prototypes from dispextern.h.
4930 (gamma_correct) [MAC_OS]: Add prototype.
4931
4932 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4933 (x_reference_bitmap, x_create_bitmap_from_data)
4934 (x_create_bitmap_from_file, x_destroy_bitmap)
4935 (x_create_bitmap_mask): Move prototypes to dispextern.h.
4936
6eced09c
KH
49372004-03-09 Kenichi Handa <handa@etlken2>
4938
4939 * coding.c (decode_coding_emacs_mule): Handle insufficent source
4940 correctly.
4941
9a7e95f3
RS
49422004-03-04 Richard M. Stallman <rms@gnu.org>
4943
04a6e76b
RS
4944 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
4945
9a7e95f3
RS
4946 * window.c (Fdisplay_buffer): Doc fix.
4947
4948 * buffer.c (Fpop_to_buffer): Doc fix.
4949
6c2488df
KS
49502004-03-03 Kim F. Storm <storm@cua.dk>
4951
4952 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
4953
d8d95bc7
SM
49542004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
4955
4956 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
4957
357589bf
RS
49582004-03-02 Richard M. Stallman <rms@gnu.org>
4959
4960 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
4961
409949b5
KH
49622004-03-02 Kenichi Handa <handa@m17n.org>
4963
4964 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
4965
d24bc50f
KS
49662004-03-02 Kim F. Storm <storm@cua.dk>
4967
4968 * window.h (struct window): New member overlay_arrow_bitmap.
4969
4970 * window.c (make_window): Initialize overlay_arrow_bitmap.
4971
4972 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
4973 implement and integrate multiple overlay arrows with redisplay.
4974 (syms_of_xdisp): DEFVAR_LISP and initialize it.
4975 (last_arrow_position, last_arrow_string): Replace by properties.
4976 (Qlast_arrow_position, Qlast_arrow_string)
4977 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
4978 (syms_of_xdisp): Intern and staticpro them.
4979 (overlay_arrow_string_or_property, update_overlay_arrows)
4980 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
4981 (overlay_arrow_at_row): New functions for multiple overlay arrows.
4982 (redisplay_internal): Use them instead of directly accessing
4983 Voverlay_arrow_position etc. for multiple overlay arrows.
4984 (mark_window_display_accurate): Use update_overlay_arrows.
4985 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
4986 (try_window_id): Use overlay_arrows_changed_p.
4987 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
4988 (display_line): Use overlay_arrow_at_row to check multiple
4989 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 4990 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
4991 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
4992 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
4993
4994 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
4995 (update_window_fringes): Remove unused code.
4996
c1464661
JR
49972004-03-01 Jason Rumney <jasonr@gnu.org>
4998
4999 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
5000
a64387ee
JB
50012004-03-01 Juanma Barranquero <lektu@terra.es>
5002
5003 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
5004
5005 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
5006
334faa08
JD
50072004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5008
5009 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
5010 how many colors can be displayed.
5011
bb62616f
KH
50122004-03-01 Kenichi Handa <handa@m17n.org>
5013
5014 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
5015 correctly.
5016
0fd16104
KS
50172004-02-28 Kim F. Storm <storm@cua.dk>
5018
5019 * dispnew.c (update_window): Update header line also if there are
5020 no other changes in window (move code after set_cursor label).
5021
5022 * lisp.h (mark_window_display_accurate): Remove prototype.
5023
5024 * window.c (window_loop, Fforce_window_update): Force mode line
5025 updates by setting prevent_redisplay_optimizations_p and
5026 update_mode_lines.
5027
b59dd9c8
JD
50282004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5029
d8d95bc7 5030 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
5031
5032 * xterm.c (x_calc_absolute_position): Call x_real_positions
5033 to get WM window sizes and use those to calculate position.
d8d95bc7 5034 (x_set_offset): Remove code commented out.
b59dd9c8 5035
a874691c
MB
50362004-02-28 Miles Bader <miles@gnu.org>
5037
5038 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
5039
3e0c6482
KS
50402004-02-28 Kim F. Storm <storm@cua.dk>
5041
5042 * keyboard.c (kbd_buffer_store_event_hold): New function to store
5043 an event into kbd fifo, but with special handling of quit event;
5044 a quit event is saved for later, and further events are discarded
5045 until the saved quit event has been processed.
5046 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
5047 (gen_help_event): Store help event in kbd fifo.
5048 (NREAD_INPUT_EVENTS): Remove.
5049 (read_avail_input): Adapt to new read_socket_hook interface.
5050 Remove allocation and initialization of local input_event buffer,
5051 as read_socket_hook stores events directly in fifo. Allocate and
5052 initialize local hold_quit event to handle postponed quit event
5053 (and store it if set by kbd_buffer_store_event_hold).
5054
5055 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
5056 (gen_help_event): Fix prototype.
5057
a64387ee 5058 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 5059 numcharsp args. Add hold_quit arg.
f63fd14e 5060 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
5061 directly in fifo using kbd_buffer_store_event_hold.
5062
5063 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
5064 (read_input_waiting): Adapt to new read_socket_hook interface.
5065 Remove allocation and initialization of local input_event buffer,
5066 as read_socket_hook stores events directly in fifo. Allocate and
5067 initialize local hold_quit event to handle postponed quit event
5068 (and store it if set by kbd_buffer_store_event_hold).
5069
a64387ee 5070 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
5071
5072 * termhooks.h (read_socket_hook): Fix prototype.
5073
5074 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
5075 numcharsp args. Add hold_quit arg.
f63fd14e 5076 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
5077 directly in fifo using kbd_buffer_store_event_hold.
5078
5079 * w32inevt.h (w32_console_mouse_position): Fix prototype.
5080
5081 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
5082 Add hold_quit arg. Rework to use just one, local, inev
5083 input_event. Store inev directly in fifo using
3e0c6482
KS
5084 kbd_buffer_store_event_hold. Update count in one place.
5085 Postpone call to gen_help_event until inev is stored; use new
5086 local do_help for this.
5087 Remove local emacs_event in handing of ButtonPress event; just use
5088 inev instead (so no reason to copy it later).
5089
5090 * xsmfns.c (x_session_check_input): Remove numchars arg.
5091
d8d95bc7
SM
5092 * xterm.c (x_focus_changed, x_detect_focus_change):
5093 Remove numchars arg. Always store event into bufp arg.
5094 Return nothing. Callers changed accordingly.
3e0c6482
KS
5095 (glyph_rect): Simplify.
5096 (STORE_KEYSYM_FOR_DEBUG): New macro.
5097 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
5098 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
5099 (current_hold_quit) [USE_GTK]: Add.
5100 (event_handler_gdk): Adapt to new handle_one_xevent.
5101 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
5102 Add hold_quit arg. Rework to use just one, local, inev
5103 input_event. Store inev directly in fifo using
3e0c6482
KS
5104 kbd_buffer_store_event_hold. Update count in one place.
5105 Postpone call to gen_help_event until inev is stored; use new
5106 local do_help for this.
5107 Simplify handling of keysyms (consolidate common code). Fix bug
5108 where count was updated with nchars instead of nbytes.
5109 Remove local emacs_event in handing of ButtonPress event; just use
5110 inev instead (so no reason to copy it later).
5111 Remove `out' label. Rename label `ret' to `done'; add various
5112 `goto done' to clarify code flow in deeply nested blocks.
5113 (x_dispatch_event): Simplify as handle_one_xevent now calls
5114 kbd_buffer_store_event itself.
f63fd14e 5115 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
5116 arg. Call handle_one_xevent with new arglist. Store event from
5117 x_session_check_input in fifo.
5118 [USE_GTK]: Setup current_hold_quit.
5119 Decrement handling_signal before unblocking input.
5120 (x_initialize) [USE_GTK]: Initialize current_count.
5121
5122 * xterm.h (x_session_check_input): Fix prototype.
5123
e3564461 51242004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 5125
d8d95bc7 5126 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 5127
e3564461
ST
5128 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
5129 macgui.h).
a64387ee 5130
e3564461 5131 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 5132
e3564461
ST
5133 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
5134 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
5135 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
5136 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
5137 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
5138 (Bitmap): Remove typedef.
5139 (Pixmap): Change int to GWorldPtr.
5140
d8d95bc7 5141 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 5142
d8d95bc7
SM
5143 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
5144 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
5145 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
5146 long representation.
5147 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
5148 colors used for masks.
5149 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 5150
e3564461
ST
5151 * macfns.c: Include sys/types.h and sys/stat.h.
5152 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
5153 Include QuickTime/QuickTime.h.
5154 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
5155 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
5156 functions defined in macterm.c.
5157 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
5158 (ZPixmap): New #define for compatibility with xfns.c.
5159 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5160 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
5161 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
5162 New functions.
e3564461 5163 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
5164 (x_destroy_x_image, unwind_create_frame, x_disable_image)
5165 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
5166 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
5167 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
5168 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
5169 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
5170 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
5171 long mixup.
5172 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
5173 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
5174 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
5175 (x_set_cursor_type, Fxw_color_values, valid_image_p)
5176 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
5177 (x_alloc_image_color, clear_image_cache, lookup_image)
5178 (x_find_image_file, xbm_read_bitmap_file_data)
5179 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
5180 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
5181 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
5182 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
5183 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 5184 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
5185 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
5186 #if 0.
5187 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
5188 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
5189 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
5190 New functions (from xfns.c).
e3564461
ST
5191 (Fx_create_frame): Record unwind_create_frame.
5192 (Fxw_display_color_p): Use dpyinfo->color_p.
5193 (Fx_display_grayscale_p, Fx_display_planes): Don't use
5194 dpyinfo->n_cbits.
5195 (Fx_display_color_cells): Use dpyinfo->n_planes;
5196 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
5197 (Qheuristic, cross_disabled_images, emboss_matrix)
5198 (laplace_matrix): New variables (from xfns.c).
5199 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
5200 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
5201 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
5202 (image_background_transparent): New function (from xfns.c).
5203 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
5204 (image_load_quicktime): Add declaration.
5205 [MAC_OSX] (image_load_quartz2d): Likewise.
5206 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
5207 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 5208 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
5209 (xbm_load_image_from_file, x_laplace_read_row)
5210 (x_laplace_write_row, pbm_read_file): Remove functions.
5211 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
5212 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
5213 (colors_in_color_table): Sync with xfns.c (although not used).
5214 (lookup_rgb_color): Don't lookup color table. Just do gamma
5215 correction.
5216 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
5217 (x_disable_image): New function (from xfns.c).
5218 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5219 (x_build_heuristic_mask): Sync with xfns.c.
5220 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
5221 (HAVE_PBM): Remove #ifdef.
5222 (pbm_load): Sync with xfns.c. Set img->width and img->height
5223 before IMAGE_BACKGROUND.
d8d95bc7 5224 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
5225 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
5226 Don't enclose with #if HAVE_PNG.
5227 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
5228 symbol _CGImageCreateWithPNGDataProvider is defined.
5229 Otherwise use image_load_quicktime.
e3564461 5230 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
5231 [HAVE_PNG] (png_load): Sync with xfns.c.
5232 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
5233 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
5234 HAVE_JPEG.
5235 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
5236 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
5237 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
5238 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
5239 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
5240 (tiff_image_p, tiff_load): Don't enclose declarations with #if
5241 HAVE_TIFF.
5242 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
5243 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
5244 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
5245 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
5246 New functions (from xfns.c).
e3564461 5247 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 5248 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
5249 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
5250 Don't enclose with #if HAVE_GIF.
5251 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
5252 animated gif. Otherwise use image_load_quicktime.
5253 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
5254 gif_DrawText to avoid conflict with QuickdrawText.h.
5255 [HAVE_GIF] (gif_load): Sync with xfns.c.
5256 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
5257 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
5258 Ghostscript is not supported yet).
5259 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
5260 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
5261 cross_disabled_images (from xfns.c). Remove #if 0 for supported
5262 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
5263 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
5264 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
5265 HAVE_PNG. Call EnterMovies to support animated gifs.
5266 Call init_image_func_pointer to bind a symbol
e3564461 5267 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 5268
d8d95bc7 5269 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
5270 (x_draw_bar_cursor): Sync declaration with xterm.c.
5271 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
5272 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
5273 graphics).
5274 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
5275 (mac_draw_line_to_pixmap, XCreatePixmap)
5276 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
5277 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
5278 New functions.
5279 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
5280 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
5281 Cast bits to char *.
e3564461
ST
5282 (reflect_byte): New function (from w32fns.c).
5283 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
5284 due to byte alignment.
d8d95bc7
SM
5285 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
5286 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
5287 (XSetForeground): Remove static (now used in macfns.c).
5288 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
5289 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
5290 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
5291 (x_draw_glyph_string_box, x_draw_image_foreground)
5292 (x_draw_image_foreground_1, x_draw_image_glyph_string)
5293 (x_draw_stretch_glyph_string, x_draw_glyph_string)
5294 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
5295 Sync with xterm.c.
5296 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
5297 than the xterm.c version when a strictly horizontal or vertical
5298 line is drawn.
5299 (XTset_terminal_window): Add static.
5300 (x_make_frame_visible): Add UNBLOCK_INPUT.
5301 (x_free_frame_resources): New funcion (from xterm.c).
5302 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
5303 occurs in tool bar area.
d8d95bc7
SM
5304 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
5305 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
5306 Initialize image cache.
5307 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
5308 Enclose unused functions with #if 0.
5309 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
5310 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 5311 from a mac font name to an XLFD font name according to its script code.
e3564461 5312 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 5313 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
5314 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
5315 whose name starts with `.'.
5316 (init_font_name_table): Use decode_mac_font_name. Add both
5317 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
5318 of a font is smJapanese.
5319 (mac_do_list_fonts): New function to list fonts that match a given
5320 pattern.
5321 (x_list_fonts, XLoadQueryFont): Use it.
5322 (XLoadQueryFont): Set rbearing field for each variable width
5323 character to avoid needless redraw.
5324 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
5325
446f5f3d
KS
53262004-02-26 Kim F. Storm <storm@cua.dk>
5327
af617d0f
KS
5328 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
5329 as read_socket_hook handler on X aborts if buffer is too small
5330 and W32 handler doesn't always check buffer limit.
5331
446f5f3d
KS
5332 * xdisp.c (handle_single_display_prop): Handle left-fringe and
5333 right-fringe similar to a display margin image. Specifically,
5334 the characters having the fringe prop are no longer shown, and
5335 we use IT_IMAGE/next_element_from_image with image_id = -1 to
5336 do this. Set fringe bitmap face_id in it->face_id.
5337 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
5338 still realize it->face (i.e. the fringe bitmap face).
5339
7d8a0b55
MB
53402004-02-25 Miles Bader <miles@gnu.org>
5341
5342 * xdisp.c (check_it): Check string/string_pos consistency.
5343 (init_iterator): Initialize string-related fields properly.
5344
53452004-02-11 Miles Bader <miles@gnu.org>
5346
5347 * xdisp.c (produce_image_glyph): Force negative descents to zero.
5348
53492004-02-10 Miles Bader <miles@gnu.org>
5350
5351 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
5352 BLOCK_INPUT can be nested, so it doesn't make much sense.
5353
a64387ee 53542004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
5355
5356 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
5357 (xbm_read_bitmap_data): Use unsigned char for image data.
5358
92f5fba2
LT
53592004-02-23 Luc Teirlinck <teirllm@auburn.edu>
5360
5361 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
5362
8565fb3d
JR
53632004-02-22 Jason Rumney <jasonr@gnu.org>
5364
5365 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
5366 correctly over other bitmaps.
5367
a6eeaa81 53682004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
5369
5370 * emacs.c (USAGE1): Split into two halves.
5371 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
5372 (USAGE3): Rename from USAGE2.
5373 (USAGE4): Rename from USAGE3.
f8125c39 5374
4effffca
EZ
53752004-02-21 Juri Linkov <juri@jurta.org>
5376
5377 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
5378 Fix --multibyte. Move --help, --version to USAGE2. Add alias
5379 --file. Fix -f, -l. Sort options. Untabify.
5380 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
5381
923c1e6f
LT
53822004-02-19 Luc Teirlinck <teirllm@auburn.edu>
5383
5384 * category.c (Fdefine_category, Fcategory_docstring)
5385 (Fget_unused_category, Fset_category_table)
5386 (Fcategory_set_mnemonics): Doc fixes.
5387
b0e225fd
KS
53882004-02-20 Kim F. Storm <storm@cua.dk>
5389
5390 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
5391 The following changes are relative to the 2004-01-21 revision.
5392 (NREAD_INPUT_EVENTS): Define as max number of input events to read
5393 in one call to read_socket_hook. Value is 8.
5394 (read_avail_input): Separate and rework handling of read_socket_hook
5395 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
5396 in read_socket_hook case, and repeat if full buffer is read.
5397 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
5398 In non-read_socket_hook case, just use a single input_event, and
5399 call kbd_buffer_store_event on the fly for each character.
5400
b15aa9f9
SM
54012004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
5402
5403 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
5404 Remove unused `gu' alternative.
5405
83c9aa95
AS
54062004-02-19 Andreas Schwab <schwab@suse.de>
5407
5408 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
5409 warning.
5410
cc808173
KS
54112004-02-18 Kim F. Storm <storm@cua.dk>
5412
5413 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
5414 Fix last change.
5415
ab90a54d
KS
54162004-02-17 Kim F. Storm <storm@cua.dk>
5417
b26f249f
KS
5418 * xdisp.c (fast_find_position): Fix return value of new version;
5419 it was inverted compared to the 21.1 version.
5420 (get_window_cursor_type): Don't look at glyph if NULL.
5421 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 5422
ab90a54d
KS
5423 * keyboard.c: Rework previous change; it didn't consider that the
5424 buf array was allocated on the stack.
5425 (prev_read): Remove variable.
5426 (read_avail_input_buf): New static event buffer array.
b9568dfc 5427 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 5428 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
5429 Use in_read_avail_input to handle re-entrance; when re-entered,
5430 fully initialize and use tmp_buf array instead of read_avail_input_buf.
5431 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
5432 is always cleared on entry. To ensure that, we clear (just) the
5433 entries that were used before we return.
5434 (init_keyboard): Initialize read_avail_input_buf here.
5435
b6189c3b 54362004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
5437
5438 * cmds.c (Fend_of_line): Doc fix.
5439
7b5368c1
EZ
54402004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
5441
5442 * keyboard.c (prev_read): New static variable.
5443 (read_avail_input): Use it to zero out only those slots in buf[]
5444 that were used last time we were called.
5445
a6eeaa81 54462004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
5447
5448 * Makefile.in (obj): Move fringe.o from here...
5449 (XOBJ, MAC_OBJ): ...to here.
5450
159c348e
SE
54512004-02-16 Stephen Eglen <stephen@gnu.org>
5452
5453 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
5454
d2f14999
SM
54552004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
5456
b15aa9f9
SM
5457 * data.c (Fbyteorder):
5458 * fringe.c (Fdefine_fringe_bitmap):
5459 * xdisp.c (handle_single_display_prop):
d2f14999
SM
5460 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
5461
8d50508a
JR
54622004-02-16 Jason Rumney <jasonr@gnu.org>
5463
5464 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
5465
dd4497dc
ST
54662004-02-15 Steven Tamm <steventamm@mac.com>
5467
5468 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
5469 controlling emulation of a three button mouse with option and
5470 command keys.
5471 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 5472 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 5473
c9159cb3
KS
54742004-02-15 Kim F. Storm <storm@cua.dk>
5475
2cc52658
KS
5476 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
5477
c9159cb3
KS
5478 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
5479 Perform byte-swapping.
5480
12fde2dc
KS
54812004-02-14 Kim F. Storm <storm@cua.dk>
5482
5483 * dispextern.h (struct draw_fringe_bitmap_params): Change member
5484 bits from char to short to facilitate wider bitmaps.
5485 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
5486 member.
5487
5488 * fringe.c (struct fringe_bitmap): Change member bits from char to
5489 short to facilitate 16 bits wide bitmaps. Modify all standard
5490 bitmaps accordingly.
5491 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
5492 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
5493 (draw_fringe_bitmap): Ditto.
5494 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
5495 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
5496 handle up to 16 bits wide bitmaps.
5497 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 5498 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
5499
5500 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
5501 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
5502 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
5503
5504 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
5505 so it is no longer necessary to expand them here.
5506
5507 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
5508
9d7271e8
KS
55092004-02-12 Kim F. Storm <storm@cua.dk>
5510
5511 * window.c (Fwindow_fringes): Doc fix.
5512
706c1e4f
JD
55132004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5514
5515 * xselect.c (x_get_foreign_selection): Add new optional parameter
5516 time_stamp.
5517 (Fx_get_selection_internal): Ditto, pass time_stamp to
5518 x_get_foreign_selection.
5519
5520 * data.c (Fbyteorder): New function.
5521
c2d12b5d
JD
55222004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5523
5524 * atimer.c: Move include stdio.h to same place as in other files.
5525
5526 * region-cache.c: Ditto.
5527
5528 * sysdep.c: Ditto.
5529
5530 * xfaces.c: Ditto.
5531
4c1947b9
SS
55322004-02-09 Sam Steingold <sds@gnu.org>
5533
89458937 5534 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 5535
82722af3
KS
55362004-02-09 Kim F. Storm <storm@cua.dk>
5537
5538 * fringe.c: New file. Move original fringe related declarations
5539 and code from dispextern.h and xdisp.c here.
5540 Rework code to support user defined fringe bitmaps, redefining
5541 standard bitmaps, ability to overlay user defined bitmap with
5542 overlay arrow bitmap, and add faces to bitmaps.
5543 (Voverflow_newline_into_fringe): Declare here.
5544 (enum fringe_bitmap_align): New enum.
5545 (..._bits): All bitmaps are now defined without bitswapping; that
5546 is now done in init_fringe_once (if necessary).
5547 (standard_bitmaps): New array with specifications for the
5548 standard fringe bitmaps.
5549 (fringe_faces): New array.
5550 (valid_fringe_bitmap_id_p): New function.
5551 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
5552 (draw_fringe_bitmap): New function which draws fringe bitmap,
5553 possibly overlaying bitmap with cursor in right fringe or the
5554 overlay arrow in the left fringe.
5555 (update_window_fringes): Do not handle overlay arrow here.
5556 Compare and copy fringe bitmap faces.
5557 (init_fringe_bitmap): New function.
5558 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
5559 define and destroy user defined fringe bitmaps.
5560 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
5561 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
5562 (syms_of_fringe): New function. Defsubr new DEFUNs.
5563 DEFVAR_LISP Voverflow_newline_into_fringe.
5564 (init_fringe_once, init_fringe): New functions.
5565 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 5566
82722af3
KS
5567 * Makefile.in (obj): Add fringe.o.
5568 (fringe.o): New dependencies.
5569
5570 * dispextern.h (FRINGE_ID_BITS): New definition for number of
5571 bits allocated to hold a fringe number. Increase number of bits
5572 from 4 to 8 to allow user defined fringe bitmaps.
5573 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
5574 left_user_fringe_face_id, right_user_fringe_bitmap,
5575 right_user_fringe_face_id.
5576 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
5577 Move to new file fringe.c.
5578 (MAX_FRINGE_BITMAPS): Define here.
5579 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
5580 and overlay_p. Change member which to int.
5581 (struct redisplay_interface): New members define_fringe_bitmap
5582 and destroy_fringe_bitmap.
5583 (valid_fringe_bitmap_id_p): Add prototype.
5584 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
5585
5586 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
5587 arrows.
5588 (update_frame): Do flush_display if force_flush_display_p to
5589 ensure display (specifically fringes) are updated in a timely
5590 manner when resizing the frame by dragging the mouse.
5591 (update_window_line): Update row if overlay arrow changed.
5592 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
5593 or overlay arrow changed.
5594
5595 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
5596 syms_of_fringe, and init_fringe.
5597
5598 * frame.h (struct frame): New member force_flush_display_p.
5599
5600 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
5601 Add prototypes.
5602
a3993cc8 5603 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 5604 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
5605 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
5606 Use cursor color for displaying cursor in fringe.
82722af3
KS
5607 (x_redisplay_interface): Add null handlers for
5608 define_fringe_bitmap and destroy_fringe_bitmap functions.
5609
5610 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
5611 xterm.c to handle overlayed fringe bitmaps and to use cursor color
5612 for displaying cursor in fringe.
5613 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
5614 specific functions to define and destroy fringe bitmaps in fringe_bmp.
5615 (w32_redisplay_interface): Add them to redisplay_interface.
5616 (w32_term_init): Call w32_init_fringe instead of explicitly
5617 defining fringe bitmaps in fringe_bmp array.
5618 (x_delete_display): Call w32_reset_fringes instead of explicitly
5619 destroying fringe bitmaps in fringe_bmp array.
5620
5621 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
5622 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
5623 (continued_bits, continuation_bits, ov_bits, first_line_bits)
5624 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
5625 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
5626 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
5627 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
5628 Move fringe handling vars and code to new file fringe.c.
5629 (handle_display_prop): Handle left-fringe and right-fringe
5630 display properties; store user fringe bitmaps in iterator.
5631 (move_it_in_display_line_to): Handle cursor in fringe at eob.
5632 (clear_garbaged_frames): Set force_flush_display_p if resized.
5633 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
5634 (display_line): Handle cursor in fringe at eob.
5635 (display_line): Set row user fringe bitmaps from iterator.
5636
5637 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
5638 Use cursor color for displaying cursor in fringe.
5639 (x_redisplay_interface): Add null handlers for
5640 define_fringe_bitmap and destroy_fringe_bitmap functions.
5641
030400eb
JD
56422004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5643
5644 * macfns.c (Fx_change_window_property): Make doc string and
5645 parameters same as for X version.
5646
5647 * w32fns.c (Fx_change_window_property): Ditto.
5648
3af55251
KS
56492004-02-07 Kim F. Storm <storm@cua.dk>
5650
ec110e9e
KS
5651 * xdisp.c (hscroll_window_tree): Position cursor near to right
5652 margin in hscrolled window when jumping to end of line (rather
5653 than centering cursor).
5654
3af55251
KS
5655 * process.c (wait_reading_process_input): Don't do adaptive read
5656 buffering if waiting for a specific process.
5657
b0c138ce
LT
56582004-02-05 Luc Teirlinck <teirllm@auburn.edu>
5659
5660 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
5661 (Fread_minibuffer, Feval_minibuffer)
5662 (Fread_string, Fread_no_blanks_input)
5663 (Fcompleting_read): Doc fixes.
5664 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
5665 completion-regexp-list. Define Qcase_fold_search and staticpro it.
5666 (read_minibuf): Fix initial comment.
5667 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 5668 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
5669 checking completion-regexp-list.
5670 (Fdisplay_completion_list): Make it handle arguments that are
5671 symbols. Doc fix.
5672
9676f5ad 56732004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 5674
9676f5ad 5675 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 5676
9676f5ad
JD
5677 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
5678 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 5679 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 5680 format. Remove unused variable cons.
5b698285
JD
5681
5682 * xselect.c: Include stdio,h.
5683
fc1d15f6
KH
56842004-02-05 Kenichi Handa <handa@m17n.org>
5685
ebaff4af
KH
5686 * fns.c (Fset_char_table_range): Fix previous change.
5687
fc1d15f6
KH
5688 * buffer.c (Fset_buffer_multibyte): Fix docstring.
5689
9676f5ad
JD
56902004-02-04 Luc Teirlinck <teirllm@auburn.edu>
5691
5692 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
5693
da75761f
SM
56942004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
5695
5696 * keymap.c (Vmouse_events): Rename from Vmenu_events.
5697 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
5698
13c5d120
KH
56992004-02-04 Kenichi Handa <handa@m17n.org>
5700
5701 * fns.c (Fset_char_table_range): Handle charsets ascii,
5702 eight-bit-control, and eight-bit-graphic correctly.
5703
2883d842
JR
57042004-02-03 Jason Rumney <jasonr@gnu.org>
5705
5706 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
5707
5708 * w32fns.c (x_to_w32_font): Likewise.
5709
69eff41f
JD
57102004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5711
5712 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
5713 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
5714
5715 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
5716 ClientMessages.
5717
5718 * xselect.c: Include termhooks.h and X11/Xproto.h
5719 (x_check_property_data, x_fill_property_data)
5720 (x_property_data_to_lisp, mouse_position_for_drop)
5721 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 5722 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
5723 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
5724
da75761f 5725 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
5726 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
5727 OUTER_P.
5728 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
5729 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
5730 if vector_ret_p is true.
5731 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 5732
a6eeaa81 57332004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
5734
5735 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
5736 basename of FILE relative to it, not FILE itself.
5737
09721b31
KH
57382004-02-02 Kenichi Handa <handa@m17n.org>
5739
5740 * coding.c (coding_restore_composition): Check invalid
5741 composition data more rigidly.
5742
eb996101
LT
57432004-01-30 Luc Teirlinck <teirllm@auburn.edu>
5744
5745 * fileio.c (Fread_file_name_internal): Correctly handle the case
5746 where insert-default-directory is nil.
5747 (Fread_file_name): Always return an empty string if the user exits
5748 with an empty minibuffer. Adapt the docstring accordingly.
5749 (syms_of_fileio): Adapt the docstring of insert-default-directory
5750 to the change in Fread_file_name.
5751
a6eeaa81 57522004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
5753
5754 * alloca.c [!alloca]: Fix the prototype for xfree.
5755
13f52ed8
KH
57562004-01-29 Kenichi Handa <handa@m17n.org>
5757
5758 * fns.c (string_char_to_byte): Optimize for ASCII only string.
5759 (string_byte_to_char): Likewise.
5760
d57625a0
JR
57612004-01-28 Peter Runestig <peter@runestig.com>
5762
5763 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
5764
a64387ee 57652004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
5766
5767 * unexmacosx.c (unexec_copy): Do not copy more than was
5768 requested to prevent overwriting during unexec.
5769
eb37b8fd
JD
57702004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5771
ce38070a
JD
5772 * process.c (sigchld_handler): Add comment about not calling malloc.
5773
eb37b8fd
JD
5774 * process.h: Add extern to synch_process_termsig.
5775
a64387ee 57762004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 5777
da75761f
SM
5778 * macterm.c (make_mac_frame, make_mac_terminal_frame):
5779 Move setting of scroll bars from make_mac_frame to
5780 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 5781
d62a265d
RS
57822004-01-26 Richard M. Stallman <rms@gnu.org>
5783
5784 * search.c (Freplace_match): Handle nonexistent
5785 back-references properly.
5786
57872004-01-03 Richard M. Stallman <rms@gnu.org>
5788
5789 * window.c (decode_any_window): New function.
5790 (Fwindow_height, Fwindow_width, Fwindow_edges)
5791 (Fwindow_pixel_edges, Fwindow_inside_edges)
5792 (Fwindow_inside_pixel_edges): Use decode_any_window.
5793
ff236419
JD
57942004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5795
5796 * process.h: synch_process_termsig new variable.
5797
5798 * callproc.c: Define synch_process_termsig.
5799 (Fcall_process): Initiate synch_process_termsig to zero and
5800 check if non-zero and get signal name after subprocess has ended.
5801
5802 * process.c (sigchld_handler): Set synch_process_termsig
5803 if terminated by a signal. synch_process_death setting removed.
5804
5805 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
5806
41b867ea
AS
58072004-01-26 Andreas Schwab <schwab@suse.de>
5808
5809 * print.c (print_preprocess): Declare size as EMACS_INT to not
5810 lose bits.
5811 (print_object): Likewise.
5812 * alloc.c (Fpurecopy): Likewise.
5813
a08084ff
LT
58142004-01-25 Luc Teirlinck <teirllm@auburn.edu>
5815
5816 * window.c (Fwindow_minibuffer_p): Doc fix.
5817
b19ac475
JY
58182004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
5819
5820 * editfns.c (Fformat): Make both passes accept the same set of flags.
5821
fe905025
KH
58222004-01-23 Kenichi Handa <handa@m17n.org>
5823
5824 * fns.c (Fmd5): If OBJECT is a buffer different from the current
5825 one, set buffer to OBJECT temporarily.
5826
438fc6c0
SM
58272004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5828
455316e2
SM
5829 * keyboard.c (kbd_buffer_gcpro): Remove.
5830 (kbd_buffer_store_event, clear_event, Fdiscard_input)
5831 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
5832 Don't initialize and/or maintain the variable any more. It was made
5833 redundant by my commit of 2003-06-15.
5834
438fc6c0
SM
5835 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
5836
5335a4ee
JD
58372004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5838
5839 * lisp.h: Add undef DECL_ALIGN.
5840
dcdaeebc
SM
58412004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
5842
5843 * process.c (wait_reading_process_input) [SYNC_INPUT]:
5844 Check interrupt_input_pending explicitly.
5845
5846 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
5847
5848 * keyboard.c (handle_async_input): New fun,
5849 extracted from input_available_signal.
5850 (input_available_signal, reinvoke_input_signal): Use it.
5851
9076a823
SM
58522004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
5853
d7107586
SM
5854 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
5855
5856 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
5857 manipulation macros for when tags are in the lower bits.
5858 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
5859 (DECL_ALIGN): New macro.
5860 (DEFUN): Use it.
5861
5862 * lisp.h [ENABLE_CHECKING]: Don't force union type.
5863
5864 * s/darwin.h (__attribute__): Remove outdated workaround.
5865
5866 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
5867
5868 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
5869 Don't check range of malloc address.
5870 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
5871
9076a823
SM
5872 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
5873
5874 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
5875
ba029065
KH
58762004-01-19 Kenichi Handa <handa@m17n.org>
5877
5878 * fontset.c (fontset_font_pattern): Fix previous change.
5879
7af0e8d7
MB
58802004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
5881
5882 * xdisp.c (Voverflow_newline_into_fringe)
5883 (move_it_in_display_line_to, redisplay_internal)
5884 (update_window_fringes, redisplay_window, display_line, window):
5885 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
5886 that it compiles without a window-system.
5887 * dispnew.c (direct_output_for_insert, update_window): Likewise.
5888
77a9cf69
KS
58892004-01-16 Kim F. Storm <storm@cua.dk>
5890
5891 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
5892
a64387ee 5893 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
5894 buffer_local_flags for indicate_buffer_boundaries.
5895 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
5896 default- variable for it.
5897
5898 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
5899 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 5900 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
5901 overflowing newlines into right fringe.
5902 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
5903 and indicate_bottom_line_p for buffer boundaries and scrolling.
5904 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
5905 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
5906 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
5907 and HOLLOW_SQUARE_BITMAP.
5908 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
5909 Add prototypes.
5910
5911 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
5912 instead of related indicator fields.
5913 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
5914 (direct_output_for_insert): Handle exact width lines like
5915 contined lines. Call update_window_fringes.
5916 (update_window): Call update_window_fringes.
5917 (scrolling_window): Don't skip desired rows with changed bitmaps.
5918 Check if fringe bitmaps changes when assigning scrolled rows.
5919
5920 * xdisp.c (Voverflow_newline_into_fringe): New variable.
5921 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
5922 (move_it_in_display_line_to): Overflow newline into fringe for
5923 rows that are exactly as wide as the window.
5924 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
5925 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
5926 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
5927 (fringe_bitmaps): Add new bitmaps.
5928 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
5929 Select proper bitmap for cursor in fringe when appropriate.
5930 Handle alignment of bitmap to top or bottom of row.
5931 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
5932 done by update_window_fringes.
5933 (update_window_fringes, draw_window_fringes): New functions.
5934 (redisplay_internal): Call update_window_fringes in case only
5935 cursor row is updated.
5936 (redisplay_window): Call update_window_fringes.
5937 Explicitly call draw_window_fringes if redisplay was done using
5938 the current matrix or the overlay arrow is in the window.
5939 (try_window_reusing_current_matrix): Mark scrolled rows for
5940 fringe update (to update buffer-boundaries / scrolling icons).
5941 (find_last_unchanged_at_beg_row): Handle exact width lines line
5942 continued lines.
5943 (display_line): Overflow newline into fringe for rows that are
5944 exactly as wide as the window. Don't append space for newline
d7107586 5945 in this case.
77a9cf69
KS
5946 (notice_overwritten_cursor): Explicitly clear cursor bitmap
5947 in fringe as if it had been overwritten.
5948 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 5949 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
5950 void-text-area-pointer as user options.
5951 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 5952
77a9cf69
KS
5953 * xterm.c (x_update_window_end): Call draw_window_fringes.
5954 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5955 in row instead of actually drawing fringe bitmaps.
5956 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5957 (x_draw_window_cursor): Draw cursor in fringe.
5958
5959 * w32term.c (x_update_window_end): Call draw_window_fringes.
5960 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5961 in row instead of actually drawing fringe bitmaps.
5962 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5963 (w32_draw_window_cursor): Draw cursor in fringe.
5964
5965 * macterm.c (x_update_window_end): Call draw_window_fringes.
5966 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
5967 in row instead of actually drawing fringe bitmaps.
5968 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
5969 (mac_draw_window_cursor): Draw cursor in fringe.
5970
a633a954
JD
59712004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5972
5973 * xterm.c (handle_one_xevent): Don't handle characters that are part
5974 of an old style (XLookupString) compose sequence.
5975
80460525
KH
59762004-01-15 Kenichi Handa <handa@m17n.org>
5977
5978 * search.c (Freplace_match): Use make_multibyte_string or
5979 make_unibyte_string according to the buffer multibyteness.
5980
7fc34f85
SM
59812004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
5982
5983 * alloc.c (struct interval_block, struct string_block)
5984 (struct symbol_block, struct marker_block, live_string_p)
5985 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
5986 Better preserve alignment for objects in blocks.
5987 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
5988
5989 * lread.c (defvar_per_buffer): Remove dead declaration.
5990
5991 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
5992 space size.
5993
66070bd1
JD
59942004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5995
5996 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
5997 if a key press should pop down. Only pop down if a key is pressed
5998 outside the menu/dialog.
5999 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
6000 popup_get_selection.
6001 (create_and_show_dialog): Pass 1 for down_on_keypress to
6002 popup_get_selection.
6003
de7515d6
JD
60042004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6005
6006 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
6007 BLOCK/UNBLOCK_INPUT.
6008
160b1b50
JD
60092004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6010
6011 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
6012 specified.
6013
3a9f36e6
KH
60142004-01-08 Kenichi Handa <handa@m17n.org>
6015
6016 * editfns.c (Fformat): Fix '&' to '&&'.
6017
3803eb32
AS
60182004-01-08 Andreas Schwab <schwab@suse.de>
6019
6020 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
6021 size if PSEUDOVECTOR_FLAG is set.
6022
9da88f37
KH
60232004-01-07 Kenichi Handa <handa@m17n.org>
6024
74ac5074
KH
6025 * charset.c (Fdeclare_equiv_charset): Fix docstring.
6026
9da88f37
KH
6027 * fontset.c (fontset_ref_via_base): Fix previous change.
6028
05faee07
KS
60292004-01-07 Kim F. Storm <storm@cua.dk>
6030
6031 * process.c (read_process_output): Only activate adaptive
6032 buffering if we read less than 256 bytes at a time.
6033
634910c8
KS
60342004-01-06 Kim F. Storm <storm@cua.dk>
6035
6036 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
6037 object and image object. Return glyph width and height.
6038 (mode_line_string, marginal_area_string): Ditto.
6039
6040 * dispextern.h (buffer_posn_from_coords, mode_line_string)
6041 (marginal_area_string): Fix prototypes.
6042
6043 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 6044 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
6045 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
6046
6047 * keyboard.c (make_lispy_position): Use modified mode_line_string,
6048 buffer_posn_from_coords, and marginal_area_string functions to
6049 include both string object and image object in the lispy position.
6050 Also add actual glyph width and height to position.
6051 (read_key_sequence): Use real buffer position from mouse
6052 event to find keymap property even when click is in marginal area.
6053
6054 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
6055 mode_line_string and marginal_area_string functions to handle
6056 both string object and image object properties.
d7107586 6057
57951c2e
AS
60582004-01-06 Andreas Schwab <schwab@suse.de>
6059
6060 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
6061 character.
6062
181e6a61
AS
60632004-01-02 Andreas Schwab <schwab@suse.de>
6064
d7107586
SM
6065 * macterm.c (emacs_options, x_initialized, same_x_server):
6066 Remove unused (and duplicated) definitions.
181e6a61 6067
31e0fbdd
KS
60682004-01-02 Kim F. Storm <storm@cua.dk>
6069
6070 * process.h (struct Lisp_Process): New members for adaptive read
6071 buffering: adaptive_read_buffering, read_output_delay, and
6072 read_output_skip.
6073
6074 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
6075 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
6076 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
6077 (process_output_delay_count, process_output_skip): New vars.
6078 (Vprocess_adaptive_read_buffering): New variable.
6079 (make_process): Initialize adaptive read buffering members.
6080 (Fstart_process): Set adaptive_read_buffering member.
6081 (deactivate_process): Cleanup adaptive read buffering.
6082 (wait_reading_process_input): Temporarily omit delayed
6083 subprocesses from the set of file descriptors to read from;
6084 adjust the select timeout if we skipped any subprocesses.
6085 (read_process_output): Increase adaptive read buffering delay if
6086 we read less than a full buffer; reduce delay when we read a
6087 full buffer.
6088 (send_process): Simplify using local Lisp_Process var.
6089 Reset adaptive read buffering delay after write.
6090 (init_process): Initialize process_output_delay_count and
6091 process_output_skip.
6092 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
6093
68c6a789
JR
60942004-01-01 Jason Rumney <jasonr@gnu.org>
6095
d7107586 6096 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 6097
3f70fe82
LT
60982003-12-30 Luc Teirlinck <teirllm@auburn.edu>
6099
6100 * print.c (Ferror_message_string): Add hyperlink in the docstring
6101 to the definition of `signal' in the Elisp manual.
6102 * eval.c (Fsignal): Ditto.
6103
b6189c3b 61042003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
6105
6106 * fns.c (internal_equal): Return t for two NaN arguments.
6107
7abd90ea
RS
61082003-12-29 Richard M. Stallman <rms@gnu.org>
6109
6110 * data.c (store_symval_forwarding): Handle setting
6111 default-fill-column, etc., by changing the value in
6112 buffers that use the default.
6113
6114 * minibuf.c (Fset_minibuffer_window): Doc fix.
6115
6116 * fileio.c (choose_write_coding_system): Ignore auto_saving
6117 if using the visited file for auto saves.
6118 (Fwrite_region): Don't update SAVE_MODIFF
6119 if auto-saving in visited file.
6120
3e7cfcdc
KH
61212003-12-29 Kenichi Handa <handa@m17n.org>
6122
6123 * dispextern.h (face_font_available_p): Extern it.
6124
6125 * fontset.c (Voverriding_fontspec_alist): New variable.
6126 (lookup_overriding_fontspec): New function.
d7107586 6127 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
6128 (fontset_font_pattern): Likewise.
6129 (regulalize_fontname): New function.
6130 (Fset_fontset_font): Call regulalize_fontname.
6131 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
6132 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
6133 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
6134
6135 * xfaces.c (face_font_available_p): New function.
6136
7abd90ea
RS
61372003-12-28 Richard M. Stallman <rms@gnu.org>
6138
6139 * buffer.c (Fother_buffer): Don't crash if BUF is nil
6140 or if its name is nil.
6141
6142 * buffer.c (Fkill_buffer): Don't delete auto-save file
6143 if it's the same as the visited file.
6144
de1d1a40
LT
61452003-12-28 Luc Teirlinck <teirllm@auburn.edu>
6146
6147 * coding.c (Fcheck_coding_system): Doc fix.
6148
204fb75e
KS
61492003-12-28 Kim F. Storm <storm@cua.dk>
6150
6151 * Makefile.in (eval.o): Depend on dispextern.h.
6152
6153 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
6154 image glyph using image's ascent.
6155 (mode_line_string): Return image glyph as object clicked on.
6156 Adjust y0 for image glyph using image's ascent.
6157
6158 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
6159 (struct glyph): New members, ascent and descent. Used to save
6160 this glyph's ascent and descent, instead of having.
6161 (struct glyph): Declare member face_id using FACE_ID_BITS.
6162 (find_hot_spot): Add prototype.
6163
6164 * keyboard.c (Qimage): Remove extern (now in lisp.h).
6165 (QCmap): Declare extern.
6166 (make_lispy_position): When position is inside image hot-spot,
6167 use hot-spot element's id as posn element.
6168
6169 * lisp.h (IMAGEP): New macro to test for image object type.
6170 (Qimage): Declare extern.
6171
6172 * macfns.c (Qimage): Remove extern (now in lisp.h).
6173 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6174
6175 * macterm.c (Qface, Qmouse_face): Remove unused externs.
6176
6177 * w32fns.c (Qimage): Remove extern (now in lisp.h).
6178 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6179
6180 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
6181
6182 * w32term.c (Qface, Qmouse_face): Remove unused externs.
6183
6184 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
6185 pointer types.
6186 (Qrelative_width, Qalign_to): Remove unused variables.
6187 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
6188 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
6189 image maps.
d7107586 6190 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
6191 new dx and dy args.
6192 Remove buffer_only_p arg (always 0). Simplify code accordingly.
6193 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
6194 than row's ascent and height, to get sensible height on tall rows.
6195 (build_desired_tool_bar_string): Remove Qimage extern.
6196 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
6197 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
6198 image glyph is alone on the last line.
6199 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 6200 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 6201 (on_hot_spot_p): New function to check if position is inside an
d7107586 6202 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
6203 (find_hot_spot): New function to search for image hot-spot.
6204 (Flookup_image_map): New defun to search for image hot-spot.
6205 (define_frame_cursor1): New aux function to determine frame pointer.
6206 (note_mode_line_or_margin_highlight, note_mouse_highlight):
6207 Handle `pointer' text property and :pointer image property to
6208 control frame pointer shape. Detect image hot-spots for pointer
6209 and help_echo properties. Use define_frame_cursor1.
6210 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 6211 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
6212 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
6213
6214 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
6215
6216 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
6217 (Qimage): Remove extern (now in lisp.h).
6218 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6219
6220 * xmenu.c (show_help_event): Remove unused code.
6221
6222 * xterm.c (Qface, Qmouse_face): Remove unused externs.
6223 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
6224 row's ascent and descent, to get a sensible height on tall rows.
6225
fc052137
LT
62262003-12-25 Luc Teirlinck <teirllm@auburn.edu>
6227
6228 * minibuf.c (Fcompleting_read): Undo previous change.
6229
a64387ee 62302003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
6231
6232 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
6233 Arguments GCPRO'ed in call to file name handler.
6234
56ffd194
TTN
62352003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
6236
6237 * termcap.c (tgetst1): Scan for "%pN"; if all
6238 N are continuous in [1,9], remove all "%pN".
6239
5202d23d
JD
62402003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6241
f26fab36
JD
6242 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
6243
5202d23d
JD
6244 * xfaces.c (lface_fully_specified_p): Take into account that
6245 MAC OS always have unspecified stipple.
6246
8babaa59
TTN
62472003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
6248
6249 * tparam.c (tparam1): Add handling for `%pN', which
6250 means use param N for the next substitution.
6251
2d176448
TTN
62522003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
6253
6254 * xfaces.c (Fcolor_gray_p): Fix omission bug:
6255 In case `frame' is nil, consult the selected frame.
6256 (Fcolor_supported_p): Likewise.
6257
adb0708c
LT
62582003-12-23 Luc Teirlinck <teirllm@auburn.edu>
6259
000eeb15
LT
6260 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
6261 Doc fixes.
0dc72b11
LT
6262
6263 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
6264 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
6265 (Fread_from_minibuffer): Delete code moved into read_minibuf.
6266 Doc fix.
6267 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
6268 read_minibuf.
6269 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 6270 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 6271
2e4d132b
KH
62722003-12-03 Kenichi Handa <handa@m17n.org>
6273
6274 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
6275 encoding sequence.
6276
3999c705
KH
62772003-12-01 Kenichi Handa <handa@m17n.org>
6278
6279 * composite.c (syms_of_composite): Don't make the compostion hash
6280 table week.
6281
d344ecbb
LT
62822003-11-30 Luc Teirlinck <teirllm@auburn.edu>
6283
6284 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
6285 * textprop.c (Fget_char_property_and_overlay): New function.
6286 (syms_of_textprop): Defsubr it.
6287
03d6484e
JD
62882003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6289
019b1f0e
JD
6290 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
6291 to compile on terminal configuration.
6292
03d6484e
JD
6293 * fileio.c (Fread_file_name): Check use_file_dialog also before
6294 calling Fx_file_dialog.
6295
6296 * fns.c: use_file_dialog: New variable.
6297 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
6298
442d3fd0
KS
62992003-11-29 Kim F. Storm <storm@cua.dk>
6300
6301 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
6302 (syms_of_msdos): Don't intern and staticpro them.
6303
0f6a07a8
KS
63042003-11-27 Kim F. Storm <storm@cua.dk>
6305
6306 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
6307 coordinates relative to glyph at posn. If glyph is an image,
6308 return that as object at posn. Callers changed.
6309 (mode_line_string, marginal_area_string): Calculate and return
6310 pixel coordinates relative to glyph. Callers changed.
6311
6312 * dispextern.h (buffer_posn_from_coords, mode_line_string)
6313 (marginal_area_string): Fix prototypes.
6314 (window_box_left_offset, window_box_right_offset): Add prototypes.
6315
6316 * frame.h (get_specified_cursor_type, get_window_cursor_type):
6317 Remove prototypes.
6318
6319 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
6320
6321 * keyboard.c (make_lispy_position): Add x and y coordinates
6322 relative to the current glyph as 7th element of position.
6323 If glyph is an image, return it in the object element.
6324 (read_key_sequence): Skip checks for keymap property in cases
6325 where POSN_STRING is not a string (e.g. an image).
6326
6327 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
6328 (Vshow_text_cursor_in_void): New variable.
6329 (glyph_to_pixel_coords): Don't use negative hpos.
6330 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
6331 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 6332 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
6333 (calc_pixel_width_or_height): New aux function, implementing
6334 pixel based artihmetic for glyph widths and heights.
6335 (produce_stretch_glyph): Use calc_pixel_width_or_height for
6336 :width, :height, :align-to, and :ascent, thus allowing these to
6337 be specified in pixels as well as multiples of characters.
6338 Don't produce stretch glyphs with zero width or height.
6339 (get_specified_cursor_type): Declare static.
6340 (get_window_cursor_type): Declare static. Add glyph arg to be
6341 able to know when cursor is on an image; always substitute
6342 hollow-box cursor for filled-box cursor on images, to avoid
6343 negative images and flicker when blinking the cursor.
6344 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
6345 (note_mode_line_or_margin_highlight): Use non-text cursor rather
6346 than vertical scroll-bar cursor in display margins.
6347 (note_mouse_highlight): Use non-text cursor rather than text
6348 cursor in fringes and over images in the text area.
6349 Use non-text cursor when mouse pointer is outside editable text,
6350 i.e. in the void after end-of-line or end-of-buffer; this was
6351 already done for W32, but is now standard for all systems --
6352 user can toggle show-text-cursor-in-void to get old behaviour.
6353 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
6354 Vdisplay_pixels_per_inch.
6355
00498bfc
AS
63562003-11-25 Andreas Schwab <schwab@suse.de>
6357
6358 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
6359 EMACS_INT to not lose bits.
6360 (Ffillarray): Don't set bits beyond the size of a bool vector.
6361
edaa824d
KS
63622003-11-25 Kim F. Storm <storm@cua.dk>
6363
6364 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
6365 define this defun on systems that cannot use stderr as lvalue.
6366
74d6f539
GM
63672003-11-24 Gerd Moellmann <gerd@gnu.org>
6368
6369 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
6370 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
6371 ld's default is incompatible with unexec.
6372
6a1ff3ba
KS
63732003-11-23 Kim F. Storm <storm@cua.dk>
6374
63dc7c6b
KS
6375 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
6376 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
6377 (Fforce_window_update): New defun.
6378 (syms_of_window): Defsubr it.
6379 (Fset_window_margins, Fset_window_fringes): Doc fix.
6380
6a1ff3ba
KS
6381 * print.c (Fredirect_debugging_output): New defun.
6382 (syms_of_print): Defsubr it.
6383
aef109b7
LT
63842003-11-22 Luc Teirlinck <teirllm@auburn.edu>
6385
6386 * fns.c (Fset_char_table_parent): Doc fix.
6387
6a1ff3ba 63882003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
6389
6390 * dispnew.c (buffer_posn_from_coords): Return actual row/column
6391 for glyph clicked on, rather than (unused) pixel positions.
6392 (mode_line_string, marginal_area_string): Change X and Y args to
6393 pointers for returning actual row/column for glyph clicked on.
6394 Simplify and optimize loops.
6395
aef109b7
LT
6396 * dispextern.h (mode_line_string, marginal_area_string):
6397 Update prototypes.
63ccbe21
KS
6398
6399 * keyboard.c (make_lispy_position): New function for generating
6400 mouse click positions from frame and pixel coordinates.
6401 Enhanced to return buffer position and actual row/column for
6402 events outside the text area using updated mode_line_string and
6403 marginal_area_string functions.
6404 Return left-fringe and right-fringe clicks as such, rather than
6405 clicks in text area.
6406 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
6407 pixel_to_glyph_coords, as we never use the results.
6408 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
6409 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
6410 Eliminate unused code in WHEEL_EVENT handling.
6411 (make_lispy_movement): Use make_lispy_position.
6412
6413 * window.c (coordinates_in_window): Remove redundant tests.
6414 Fix returned X pixel value for left-margin.
6415
6416 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
6417 mode_line_string and marginal_area_string parameters.
6418
a64387ee 64192003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 6420
d7107586
SM
6421 * w32.c (struct the_group, getgrgid): Add.
6422 * mac.c (struct my_group, getgrgid): Add.
aef109b7 6423
3dbf3426
LT
64242003-11-21 Luc Teirlinck <teirllm@auburn.edu>
6425
6426 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
6427
cae8ddbb 64282003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 6429
d7107586
SM
6430 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
6431 include in call to file name handler. Optionally translate numeric
6432 UID and GID to strings. Update docstring.
6433 (directory_files_internal): Add parameter ID-FORMAT.
6434 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
6435 include in call to file name handler and call to
6436 directory_files_internal. Update Docstring.
6437 (Fdirectory_files): Add dummy parameter in call to
6438 directory_files_internal.
6439 * lisp.h (Qinteger): Add.
6440 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
6441 (Ffile_attributes): Add parameter.
6442 * data.c (Qinteger): Export.
cae8ddbb 6443
2550b848
LT
64442003-11-21 Luc Teirlinck <teirllm@auburn.edu>
6445
3dbf3426 6446 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 6447
88380018
KS
64482003-11-19 Kim F. Storm <storm@cua.dk>
6449
6450 * xdisp.c (init_iterator): Initialize it->start to position
6451 before reseating (in case start position is invisible).
6452 (init_to_row_start): Set it->start to row-start.
6453 (redisplay_window): Accept optional_new_start if start position
6454 is invisible (in which case IT_CHARPOS overshoots PT).
6455 (display_line): Setup row->start from it->start (rather than
6456 it->current which is wrong if first char on line is invisible).
6457 When done, reseat it->start to it->current (= start of next row).
6458 (expose_area): Fix exposure of text area when first char (e.g. TAB)
6459 is only partially visible.
6460
6461 * dispextern.h (struct it): New member start.
6462
854c1a59
SM
64632003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6464
455316e2
SM
6465 * alloc.c (make_float, Fcons): Clear the markbit at init time.
6466 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
6467 of block_index outside of the macro call.
6468 (Fgarbage_collect): Remove null code.
6469
6470 * m/amdx86-64.h: Don't redefine XPNTR.
6471
854c1a59
SM
6472 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
6473 of VALMASK.
6474
6475 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
6476 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
6477 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
6478
6479 * lisp.h (VALMASK): Only define for non-union type.
6480 (MARKBIT): Remove.
6481 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
6482 (XTYPE): Define unconditionally.
6483 (XSETTYPE): Remove one more remnant.
6484 (EQ): Define differently for the union and non-union cases.
6485 (INTMASK): New bit mask.
6486 (struct Lisp_Marker): Move down to prepare for upcoming patch.
6487 (GC_EQ): Delegate to EQ.
6488
6489 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
6490
a0c6ef2d
JD
64912003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6492
6493 * xterm.c (x_window_to_scroll_bar): Move check of display to
6494 where window_id is compared.
6495
859492c4
KS
64962003-11-17 Kim F. Storm <storm@cua.dk>
6497
6498 * dispextern.h (struct it): New member first_vpos.
6499
6500 * xdisp.c (start_display): Set it->first_vpos.
6501 (try_window_id): Use first_vpos to start display in first _text_
6502 line if no reusable lines at start of window with header line.
6503
810f2256
JD
65042003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6505
7c402969 6506 * w32fns.c (XPutPixel):
854c1a59
SM
6507 * w32bdf.c (w32_init_bdf_font):
6508 * sunfns.c (sel_read):
6509 * process.c (Fmake_network_process):
6510 * frame.c (store_frame_param):
6511 * fontset.c (Fset_fontset_font):
6512 * emacs.c (shut_down_emacs):
a64387ee 6513 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 6514
a32e9bfd
JD
6515 * config.in: Regenerate.
6516
810f2256
JD
6517 * xfns.c (x_window_to_frame, x_any_window_to_frame)
6518 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
6519 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
6520 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
6521 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
6522
6523 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
6524
6525 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
6526 (XTmouse_position, handle_one_xevent): Pass Display* to
6527 x_window_to_scroll_bar.
6528 (x_window_to_scroll_bar): Take a Display* argument.
6529 Check that display for frame is equal to Display* argument.
854c1a59 6530 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
6531 x_display_info_for_display instead. Use Display in xev instead
6532 of GDK_DISPLAY.
6533 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 6534 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
6535 (x_connection_closed): Call xg_display_close for GTK.
6536 (x_term_init): Call xg_display_open for additional displays.
6537 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
6538 for GTK.
6539
6540 * xmenu.c (single_menu_item, mouse_position_for_popup)
6541 (x_activate_menubar): Formatting adjustments.
6542
6543 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
6544 adjustments.
6545
6546 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
6547 (xg_display_close, xg_create_default_cursor)
6548 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
6549 handling.
854c1a59
SM
6550 (xg_left_ptr_cursor): Remove.
6551 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
6552 cursor here.
6553 (xg_win_to_widget): Take Display* argument, call
6554 gdk_xid_table_lookup_for_display.
6555 (xg_create_frame_widgets, xg_get_file_name, create_menus)
6556 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
6557 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
6558 in FRAME_X_DISPLAY_INFO.
6559 (xg_get_scroll_id_for_window): Take Display* argument.
6560 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 6561 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 6562
78819ebb
KS
6563 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
6564 Display* argument.
6565 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 6566
0b03cc78
JD
65672003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6568
6569 * xterm.c (x_detect_focus_change): Do not change focus frame for
6570 Enter/LeaveNotify if the current focus frame has explicit focus.
6571
77e688fa
KS
65722003-11-14 Kim F. Storm <storm@cua.dk>
6573
6574 * dispnew.c (update_text_area): Fix redisplay error when hscroll
6575 is active and first glyph is only partially visible.
854c1a59 6576
dd429b03
KH
65772003-11-13 Kenichi Handa <handa@m17n.org>
6578
6579 * xdisp.c (select_frame_for_redisplay): New function.
6580 (redisplay_internal): Record also selected_frame for
6581 unwind_redisplay. Call select_frame_for_redisplay before
6582 redrawing each frame.
6583 (unwind_redisplay): Argument changed to a cons.
6584
6d9266f4
LT
65852003-11-12 Luc Teirlinck <teirllm@auburn.edu>
6586
6587 * fns.c (Fstring_to_multibyte): Doc fix.
6588
80060eb3
KH
65892003-11-11 Kenichi Handa <handa@m17n.org>
6590
6591 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
6592
74305183
JD
65932003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6594
6595 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
6596 program specified positions.
6597
cfda993e
JD
65982003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6599
6600 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
6601
df211069
KH
66022003-11-08 Kenichi Handa <handa@m17n.org>
6603
6604 * Makefile.in (lisp): Add kannada.el.
6605 (shortlisp): Likewise.
6606
4307d534
KH
66072003-11-07 Kenichi Handa <handa@m17n.org>
6608
854c1a59
SM
6609 * coding.c (coding_allocate_composition_data):
6610 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
6611 (coding_restore_composition): Detect invalid composition data.
6612 Give Fstring and Fvector a Lispy integer, not C int.
6613
854c1a59
SM
66142003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
6615
6616 * floatfns.c (Flogb): Don't use VALMASK.
6617
6618 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
6619 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
6620
6621 * lisp.h (XINT): Move the cast to clarify what is going on.
6622 (GCTYPEMASK, XSETTYPE): Remove.
6623 (XGCTYPE): Make it an alias of XTYPE.
6624
d04103a1
JD
66252003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6626
6627 * xterm.c (x_term_init): Fix formatting.
6628
da18b5ac
JD
66292003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6630
78819ebb
KS
6631 * gtkutil.h (xg_have_tear_offs): Declare.
6632 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
6633
6634 * gtkutil.c: Remove variable xg_did_tearoff.
6635 (xg_have_tear_offs): New function.
6636 (tearoff_remove): Just decrease xg_detached_menus.
6637 (tearoff_activate): Increase xg_detached_menus and call
6638 tearoff_remove when tearoff is removed.
854c1a59 6639 (xg_keep_popup): Remove function.
da18b5ac
JD
6640 (create_menus): Give add_tearoff_p as argument to recursive
6641 call to create_menus.
6642 (xg_create_widget): Use variables instead of multiple
6643 strcmp. Tell create_menus to create tear off only for
6644 menu bar menus.
6645 (xg_update_menubar): Change title for a detached menu also.
6646 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
6647 of deep_p.
6648 (xg_initialize): Initialize xg_detached_menus, remove
6649 initialization of xg_did_tearoff.
6650
6651 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
6652 xg_have_tear_offs returns non-zero.
6653 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
6654 call to xg_keep_popup.
6655
64d4923e
AC
66562003-11-01 Andrew Choi <akochoi@shaw.ca>
6657
6658 * macterm.c (XTread_socket): Handle menubar selection and grow
6659 window only for mouseDown events.
854c1a59 6660
6cc8bc07
JD
66612003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6662
6663 * xterm.c (x_term_init): For GTK part, increase x_initialized
6664 to check for more than one display. Use error instead of return 0.
6665
043131c4
AC
66662003-10-31 Andrew Choi <akochoi@shaw.ca>
6667
854c1a59 6668 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
6669 (copy_dysymtab): Call it.
6670
bdda99a1
LT
66712003-10-31 Luc Teirlinck <teirllm@auburn.edu>
6672
6673 * eval.c (Fdefvaralias): Doc fix.
6674
800f42ff 66752003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
6676
6677 * data.c (Fsetplist): Doc fix.
6678
ef35b389
LK
66792003-10-14 Lute Kamstra <lute@gnu.org>
6680
6681 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 6682
ef35b389 66832003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 6684
07107abc
KS
6685 * window.c (Fset_window_margins): Simplify arg checking.
6686
f7005886
RS
66872003-10-13 Richard M. Stallman <rms@gnu.org>
6688
6689 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
6690 (print_partial_compiled_pattern): Replace assert with a printout.
6691 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
6692
6693 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
6694
6695 * window.c (Fset_window_margins): Allow only integers as args.
6696 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
6697 Doc fixes.
6698
9c0c2af5
LK
66992003-10-13 Lute Kamstra <lute@gnu.org>
6700
6701 * window.c (Fset_window_fringes): Elaborate docstring.
6702
3f080e4e
AC
67032003-10-12 Andrew Choi <akochoi@shaw.ca>
6704
854c1a59 6705 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 6706
3f080e4e
AC
6707 * s/darwin.h (GC_MARK_STACK): Define.
6708
0aa513ed
JD
67092003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6710
6711 * window.c (shrink_windows): New function.
6712 (size_window): Call shrink_windows to calculate window sizes when
6713 shrinking frame with more than one window.
6714
6aa8858a
KS
67152003-10-12 Kim F. Storm <storm@cua.dk>
6716
6717 * xdisp.c (compute_fringe_widths): Doc fix.
6718
c2164d91
KH
67192003-10-08 Kenichi Handa <handa@m17n.org>
6720
854c1a59 6721 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 6722
f82ac129
KH
67232003-10-07 Kenichi Handa <handa@m17n.org>
6724
6725 * coding.c (Qcoding_system_define_form): New variable.
6726 (syms_of_coding): Intern and staticpro it.
6727 (Fcheck_coding_system): Try to autoload the definition of
6728 CODING-SYSTEM.
6729
9296c947
LT
67302003-10-05 Luc Teirlinck <teirllm@auburn.edu>
6731
6732 * fns.c (Frequire): Doc fix.
6733
c1f0671a
JD
67342003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6735
3d8c3826
JD
6736 * xfns.c (Fx_send_client_event): New function as a base for
6737 manipulating extended window manager hints.
6dc15d98 6738 (Fx_send_client_event): Remove unused variable s.
3d8c3826 6739
068ae0fd
JD
6740 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
6741 that function is removed.
6742
6743 * xterm.c (x_set_offset): Use move_offset_left/top instead of
6744 x/y_pixels_outer_diff.
6745 (x_check_expected_move): Calculate move_offset_left/top.
6746
6747 * xterm.h (struct x_output): New members: move_offset_top/left.
6748
854c1a59 6749 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
6750 call x_set_offset directly.
6751
6752 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
6753
96f09305
JD
6754 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
6755
6756 * xterm.c (x_delete_display): Free font names and font_encoder
6757 in dpyinfo->font_table.
6758
854c1a59
SM
6759 * xfns.c (Fx_close_connection): Only call XFreeFont here.
6760 Move xfree of font names to x_delete_display.
96f09305 6761
c1f0671a
JD
6762 * xterm.h (struct x_display_info): New member, wm_type.
6763 (struct x_output): New members, expected_top/left and
6764 check_expected_move.
6765
6766 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
6767 is received.
854c1a59
SM
6768 (handle_one_xevent): Rename x_check_expected_move from
6769 x_check_fullscreen_move.
c1f0671a
JD
6770 (x_set_offset): Only add WM decoration sizes to modified_top/left
6771 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 6772 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
6773 Removed fullscreen specific code. Use check_expected_move,
6774 expected_left/top instead. Also, set wm_type.
6775 (x_term_init): Initialize wm_type to unknown.
6776
6777 * frame.c (x_fullscreen_move): Remove addition of WM decoration
6778 sizes to move_x/y.
6779
be2fdba9
KH
67802003-10-03 Kenichi Handa <handa@m17n.org>
6781
6782 * macterm.c (x_load_font): Clear all members of FONTP before start
6783 filling them.
6784
67852003-10-02 Kenichi Handa <handa@m17n.org>
6786
6787 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
6788 before calling find_ccl_program_func. Call find_ccl_program_func
6789 only when fontp->font_encoder is not NULL.
6790
6791 * xterm.c (x_load_font): Clear all members of FONTP before start
6792 filling them.
6793
26a6e439
JPW
67942003-10-03 John Paul Wallington <jpw@gnu.org>
6795
6796 * keymap.c (map_keymap): Don't abort when binding is a vector.
6797
0d4c2dc2
JR
67982003-10-02 Jason Rumney <jasonr@gnu.org>
6799
854c1a59
SM
6800 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
6801 Sync dependencies with Makefile.in.
a63cf46f
JR
6802 (alloca.o): Remove.
6803
0d4c2dc2
JR
6804 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
6805 filling them.
6806
6807 * w32bdf.c (w32_load_bdf_font): Likewise.
6808
ab8f7d5c
RS
68092003-09-30 Richard M. Stallman <rms@gnu.org>
6810
6811 * term.c (set_tty_color_mode): Calculate current_mode_spec
6812 regardless of value of VAL.
6813
854c1a59 6814 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
6815 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
6816 Handle over_used when splitting UNDER.
6817
a64387ee 68182003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
6819
6820 * regex.c (regex_compile): Free the stack when returning from function.
6821
3413f972
KH
68222003-09-28 Kenichi Handa <handa@m17n.org>
6823
6824 * fontset.c (Finternal_char_font): Change return value to
6825 cons (FONT-NAME . GLYPH-CODE).
6826
a6eeaa81 68272003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
6828
6829 * term.c (tty_setup_colors): Treat any negative argument as -1.
6830
f98ddc99
KH
68312003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
6832
6833 * process.c (send_process): Delete unused temp_buf.
6834
66c8f1a8
DL
68352003-09-26 Dave Love <fx@gnu.org>
6836
6837 * xterm.c (x_bitmap_mask): Declare.
6838
ca716c26
DL
68392003-09-25 Dave Love <fx@gnu.org>
6840
6841 * Makefile.in (fns.o): Depend on md5.h.
6842
fbe57420
KS
68432003-09-25 Kim F. Storm <storm@cua.dk>
6844
6845 * window.c (set_window_buffer): Fix redisplay problems when
6846 switching between buffers with different display margin widths.
6847
ef6ae4ff
KS
68482003-09-23 Kim F. Storm <storm@cua.dk>
6849
6850 * process.c (set_socket_option): Fix :bindtodevice option.
6851 (Fset_network_process_option): Update process contact list when
6852 setting option succeeds.
6853 (Fmake_network_process): Doc fix.
6854
68e03c1c
DL
68552003-09-23 Dave Love <fx@gnu.org>
6856
7146d1c1 6857 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 6858
a6eeaa81 68592003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
6860
6861 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
6862 color mode is an integer number (it could be -1).
6863
8fe7d8c8
RS
68642003-09-22 Richard M. Stallman <rms@gnu.org>
6865
6866 * intervals.c (graft_intervals_into_buffer): Correct the main loop
6867 in the case where OVER is longer than UNDER.
6868
2f71b5ea
MY
68692003-09-22 Masatake YAMATO <jet@gyve.org>
6870
7146d1c1 6871 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 6872 `vertical_type'.
7146d1c1 6873
0c4da023
KS
68742003-09-21 Kim F. Storm <storm@cua.dk>
6875
6876 * frame.c (Vdefault_frame_scroll_bars): New variable.
6877 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
6878 (syms_of_frame): DEFVAR_LISP it, and initialize according to
6879 window-system default scroll bar position.
6880
b648413b
KS
6881 * window.c (Fwindow_scroll_bars): Doc fix.
6882
8f5b9e34
JD
68832003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6884
854c1a59 6885 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 6886
b0f23edf
RS
68872003-09-19 Richard M. Stallman <rms@gnu.org>
6888
6889 * atimer.h: Don't include lisp.h.
6890 (P_): Define it here (as well as elsewhere).
6891
6892 * print.c (Fprin1_to_string): Move the PRINTPREPARE
6893 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
6894
6895 * data.c (Fvariable_binding_locus): New function.
6896 (syms_of_data): defsubr it.
6897 (Flocal_variable_p): Delete duplicate call to indirect_variable.
6898
e1283999
DL
68992003-09-18 Dave Love <fx@gnu.org>
6900
ad5f3636
DL
6901 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
6902
e1283999
DL
6903 * process.c (Fnetwork_interface_info): Fix type error.
6904 (Fnetwork_interface_list): Doc fix.
6905 (read_process_output, read_process_output): Delete unused var.
6906
b8c7fd71
KS
69072003-09-17 Kim F. Storm <storm@cua.dk>
6908
6909 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
6910 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
6911 (Fnetwork_interface_info): Check that ifreq struct has required
6912 fields before accessing them; this requires that those fields are
6913 defined as macros, which may be too restrictive on some platforms,
6914 but it is better than failing on other platforms.
6915 (syms_of_process): Only defsubr above fns when included.
6916
11e0a411
DL
69172003-09-17 Dave Love <fx@gnu.org>
6918
6919 * unexalpha.c: Don't include varargs.h.
6920
e9c50801
KS
69212003-09-17 Kim F. Storm <storm@cua.dk>
6922
6923 * process.c (Fset_process_sentinel): Add sentinel to childp plist
6924 for network process.
6925 (socket_options): Add `:' prefix to option names. Add optbit field.
6926 (set_socket_option): Remove no_error arg and special handling of s < 0.
6927 Return 1<<optbit for known option, 0 for unknown.
6928 Do not interpret 0 as false for boolean option (only nil).
6929 Pass failed option and value to report_file_error.
7146d1c1 6930 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
6931 (Fset_network_process_option): New function to set just one option.
6932 (Fmake_network_process): Allow :coding arg to be a cons.
6933 Allow :server arg to be an integer specifying backlog size.
6934 Remove :options arg, and allow options to be specified directly
6935 as :KEY, VALUE pairs. Parse these options before binding socket.
6936 As before, :reuseaddr t is default for a server process, but this
6937 can now be disabled by specifying :reuseaddr nil.
6938 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
6939 (init_process): Availability of network options is now checked with
6940 simpler syntax (featurep 'make-network-process :OPTION); use loop to
6941 setup features.
6942 (syms_of_process): Fix defsubr's for the replaced functions.
6943
a0fc3644
DL
69442003-09-16 Dave Love <fx@gnu.org>
6945
6946 * Makefile.in: Depend on coding.h.
6947
6df2a645
KS
69482003-09-14 Kim F. Storm <storm@cua.dk>
6949
6950 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
6951 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
6952 (syms_of_process): Defsubr them.
6953
6954 * config.in: Regenerate.
7146d1c1
SM
6955
69562003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6957
6958 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
6959 * m/news-r6.h (XUNMARK): Remove.
6960 * m/mips.h (XUNMARK): Remove.
6961 * m/mips-siemens.h (XUNMARK): Remove.
6962 * m/iris4d.h (XUNMARK): Remove.
6963 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
6964
0930c1a1
SM
69652003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6966
31003b9e
SM
6967 * lisp.h (VALBITS): Don't remove 1 for the markbit.
6968 (union Lisp_Object): Use unsigned int for types. Remove markbit.
6969 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
6970 (XTYPE): Use unsigned right-shift.
6971 (XMARKBIT, XMARK, XUNMARK): Remove.
6972
0930c1a1
SM
6973 * alloc.c (init_intervals, init_symbol, init_marker):
6974 Don't preallocate anything.
6975 (Fgarbage_collect, mark_object): Ignore the markbit.
6976
6977 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
6978
19bb0fcd 69792003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
6980
6981 * xdisp.c (pint2hrstr): New function.
6982 (decode_mode_spec): Add `%i' and `%I' specs.
6983 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
6984 for `mode-line-format'.
6985
03bb6a06
AS
69862003-09-07 Andreas Schwab <schwab@suse.de>
6987
6988 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
6989 avoid warning.
6990
a6eeaa81 69912003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 6992
0930c1a1 6993 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 6994
ed159bbf
KS
69952003-09-03 Kim F. Storm <storm@cua.dk>
6996
6997 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
6998 change (superseded by 2002-08-30 change); the default blink-off
6999 cursor is now again "no cursor".
7000
fe64a394
JR
70012003-09-01 Jason Rumney <jasonr@gnu.org>
7002
7003 * makefile.w32-in (alloca.o): Remove.
7004 (coding.o): Depend on intervals.h
7005 (emacs.o, bytecode.o): Depend on window.h
7006
c0175e24
DL
70072003-09-01 Dave Love <fx@gnu.org>
7008
7009 * Makefile.in (alloca.o): Remove commands.
7010 (coding.o): Depend on intervals.h composite.h window.h.
7011 (emacs.o): Depend on window.h keyboard.h keymap.h.
7012 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
7013 (bytecode.o): Depend on window.h.
7014
a24d4cb2
JR
70152003-08-31 Jason Rumney <jasonr@gnu.org>
7016
4bc2315e
JR
7017 * w32term.c (w32_per_char_metric): Allow cached metrics to be
7018 returned even when font_type is unknown.
7019
a24d4cb2
JR
7020 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
7021
9d35adc7
JD
70222003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7023
7024 * xterm.c (x_term_init): Initialize new fields in x_display_info.
7025
7026 * xterm.h (struct x_display_info): Add red/green/blue_bits and
7027 *_offset.
7028
7029 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
7030 calculate pixel value.
7031
6f68b035
GM
70322003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
7033
0930c1a1
SM
7034 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
7035 Don't tell redisplay display is accurate when it's actually been
7036 paused for pending input.
6f68b035 7037
4828b4d7
RS
70382003-08-29 Richard M. Stallman <rms@gnu.org>
7039
7040 * dispnew.c (adjust_glyph_matrix): Call window_box
7041 whenever W is nonzero.
7042
7043 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
7044 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 7045 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
7046 Use indirect_variable to trace thru variable aliases.
7047
7048 * config.in: Updated.
7049
7050 * callint.c (Fcall_interactively): Save and restore
7051 Vthis_command, Vthis_original_command, real_this_command,
7052 and current_kboard->Vlast_command.
7053
7054 * abbrev.c (Fexpand_abbrev): Insert before deleting.
7055
e019878d
GM
70562003-08-29 Gerd Moellmann <gerd@gnu.org>
7057
7058 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
7059
85478bc6
KH
70602003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
7061
0930c1a1 7062 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
7063 (decode_coding_sjis_big5): Likewise.
7064
07ce82d3
JR
70652003-08-27 Jason Rumney <jasonr@gnu.org>
7066
d3703de3
JR
7067 * w32.c (sys_pipe): Protect against file descriptor overflow.
7068
ee4a01d1
JR
7069 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
7070
07ce82d3
JR
7071 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
7072
a64387ee 70732003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
7074
7075 * xfns.c (Vgtk_version_string): New variable.
7076 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
7077
a6eeaa81 70782003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 7079
0930c1a1 7080 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 7081
5459e42a
EZ
7082 * Makefile.in (msdos.o): Depend on intervals.h.
7083
0930c1a1 7084 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 7085
231d6cfb
JD
70862003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7087
7088 * xterm.h (struct x_display_info): New fields: client_leader_window
7089 and Xatom_wm_client_leader.
7090
7091 * xterm.c (x_initialize): Move call to x_session_initialize to ...
7092 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
7093
7094 * xsmfns.c (create_client_leader_window): New function.
7095 (x_session_initialize): Call create_client_leader_window, take
7096 dpyinfo as argument.
7097
7098 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
7099
7100 * Makefile.in (xsmfns.o): Add more depenedencies.
7101
afa88464
DL
71022003-08-21 Dave Love <fx@gnu.org>
7103
7104 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
7105
f730033e
KH
71062003-08-21 Kenichi Handa <handa@m17n.org>
7107
7108 * term.c (term_init): Fix previous change; don't rely on the
7109 length of `buffer' if TERMINFO is defined.
7110
6dca786c
DL
71112003-08-20 Dave Love <fx@gnu.org>
7112
7113 * atimer.h: Include lisp.h.
7114
7115 * lisp.h (EMACS_LISP_H): New.
7116 (popup_activated_flag): Don't declare.
7117
7118 * alloca.c: Some merging with gnulib. Change logic and doc
7119 concerning (x)malloc/(x)free -- no longer Emacs-specific.
7120 [DO_BLOCK_INPUT]: Don't include lisp.h.
7121 (xmalloc, xfree): Declare.
7122 (malloc): Don't declare.
7123
0930c1a1 7124 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
7125 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
7126 atimer.h, blockinput.h.
7127
7128 * alloc.c (lisp_align_malloc): Change type of `aligned'.
7129
78819ebb 7130 * alloca.s: Remove.
6dca786c 7131
3a06a6d9
RS
71322003-08-19 Gerd Moellmann <gerd@gnu.org>
7133
7134 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
7135 use -lncurses.
7136
7137 * term.c (term_init): Use a buffer of size 4096 for tgetent since
7138 FreeBSD returns something longer than 2044. Abort if the end of
7139 the buffer is overwritten.
7140
27eeee55
MB
71412003-08-19 Miles Bader <miles@gnu.org>
7142
7143 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
7144
2f297815
GM
71452003-08-19 Gerd Moellmann <gerd@gnu.org>
7146
f4446bbf
GM
7147 * alloc.c (lisp_align_malloc): Check for memory full when
7148 allocating ablocks, which also avoids freeing a pointer into an
7149 ablocks structure.
7150
7151 * puresize.h (BASE_PURESIZE): Increase to 1100000.
7152
0930c1a1 7153 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 7154
0e7d7aae
RS
71552003-08-16 Richard M. Stallman <rms@gnu.org>
7156
7157 * editfns.c (Fencode_time): Doc fix.
7158
71592003-08-16 David Ponce <david@dponce.com>
7160
7161 * fileio.c (Fwrite_region): Fix conditional expression to issue
7162 the right message.
7163
b6189c3b 71642003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
7165
7166 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 7167 Set default value to 1.
0e7d7aae 7168
5d551295
KH
71692003-08-15 Kenichi Handa <handa@m17n.org>
7170
7171 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
7172 what autoscaled.
7173 (best_matching_font): Once we find a better scalable font, set
7174 non_scalable_has_exact_height_p to 1.
7175 (try_font_list): Call try_alternative_families to try any family
7176 with the given registry.
7177
1661e56b
AS
71782003-08-09 Andreas Schwab <schwab@suse.de>
7179
f29181dc
AS
7180 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
7181
1661e56b
AS
7182 * print.c (print_string): Fix printing of multibyte string with
7183 nontrivial printcharfun.
7184
465aa50a
JD
71852003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7186
7187 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
7188
7189 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
7190
e430e5ba
KH
71912003-07-31 Kenichi Handa <handa@m17n.org>
7192
7193 * process.c (read_process_output): Return the actually read bytes
7194 instead of the result of decoding.
7195
97e7188e
KH
71962003-07-31 Kenichi Handa <handa@m17n.org>
7197
7198 * xterm.h (struct x_bitmap_record): New member have_mask.
7199
7200 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
7201 to 0.
7202 (x_create_bitmap_from_file): Likewise.
7203 (x_destroy_bitmap): Check have_mask member before freeing a mask.
7204 (x_destroy_all_bitmaps): Likewise.
7205 (x_create_bitmap_mask): Set have_mask member to 1.
7206
b53094d6
RS
72072003-07-30 Richard M. Stallman <rms@gnu.org>
7208
7209 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
7210
631f2082
JD
72112003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7212
7213 * gtkutil.c (xg_mark_data): Update calls to mark_object.
7214
c855f2ca
RS
72152003-07-29 Richard M. Stallman <rms@gnu.org>
7216
7217 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
7218 Conditionalize XIM code on HAVE_XIM.
7219
7220 * fns.c (Fclear_string): New function.
7221 (syms_of_fns): defsubr it.
7222
b6189c3b 72232003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 7224
0930c1a1 7225 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 7226
29ea8ae9
SM
72272003-07-22 Stefan Monnier <monnier@cs.yale.edu>
7228
7229 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
7230
7231 * buffer.c (delete_all_overlays): New function.
7232 * buffer.h (delete_all_overlays): Declare.
7233 * coding.c (run_pre_post_conversion_on_str):
7234 * print.c (temp_output_buffer_setup):
7235 * fileio.c (Finsert_file_contents):
7236 * minibuf.c (get_minibuffer): Use it.
7237
1dd7ccf2
AC
72382003-07-22 Andrew Choi <akochoi@shaw.ca>
7239
7240 * unexmacosx.c (unexec_regions_sort_compare):
7241 (unexec_regions_merge): New functions. Sort and merge unexec
7242 regions before dumping them.
7243
f57bd967
DL
72442003-07-22 Dave Love <fx@gnu.org>
7245
7246 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
7247
7cdee936
SM
72482003-07-21 Stefan Monnier <monnier@cs.yale.edu>
7249
7250 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
7251 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
7252 MARKBIT as the gcmarkbit for strings.
7253
e50886d3
RS
72542003-07-21 Richard M. Stallman <rms@gnu.org>
7255
7256 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
7257
29ea8ae9 7258 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
7259 (syms_of_fns): Corresponding change.
7260
7261 * alloc.c (syms_of_alloc): Doc fixes.
7262
72632003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
7264
7265 * s/netbsd.h: Use -Wl syntax.
7266
fdc39b59
RS
72672003-07-17 Richard M. Stallman <rms@gnu.org>
7268
7269 * xterm.c (xim_initialize): Redo 6/24 change.
7270
9c53385f
SM
72712003-07-15 Stefan Monnier <monnier@cs.yale.edu>
7272
7273 * buffer.c (copy_overlays): Use EMACS_INT for positions.
7274 (Fswitch_to_buffer): Don't signal an error when switching to the same
7275 buffer in a dedicated window.
7276
7277 * alloc.c: Use bitmaps for cons, as was done for floats.
7278 (init_float, init_cons): Let the normal code allocate the first block.
7279 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
7280 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
7281 New macros.
7282 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
7283 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
7284 (live_cons_p): Check the pointer is not past the `conses' array.
7285 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
7286 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
7287 (survives_gc_p): Use CONS_MARKED_P and simplify.
7288 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
7289
dde13196
PE
72902003-07-13 Paul Eggert <eggert@twinsun.com>
7291
7292 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
7293 puts it into BSS instead, at least on Solaris 8 and 9.
7294 This is a valid optimization, and it may occur on other platforms,
7295 so Emacs should not assume that initializing a static variable to
7296 zero puts it into data.
7297 * alloc.c (pure, staticvec):
7298 Initialize these arrays to nonzero, so that they're not
7299 put into BSS by that optimization.
7300
a801bc34
SM
73012003-07-13 Stefan Monnier <monnier@cs.yale.edu>
7302
7303 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
7304 (lisp_align_malloc): Use posix_memalign is available.
7305 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
7306 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
7307 for consistency. Update users.
7308
0c8b2afa
RS
73092003-07-13 Richard M. Stallman <rms@gnu.org>
7310
7311 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
7312
668c2ab0
JB
73132003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
7314
7315 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
7316 and use the Gtk+ function gtk_window_icon_from_file if available.
7317
7318 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
7319 handle mask of bitmaps.
7320 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
7321 mask property.
7322 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
7323
7324 * xterm.h (xg_set_icon): New function.
7325
800bebe3
RS
73262003-07-12 Paul Eggert <eggert@twinsun.com>
7327
7328 * unexelf.c (unexec): Consider a section to precede the .bss
7329 section if its addresses overlap that of .bss.
7330
69e38995
RS
73312003-07-12 Richard M. Stallman <rms@gnu.org>
7332
7333 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
7334
7335 * config.in (HAVE_CRTIN): Add #undef.
7336 (INLINE): Really inline only if OPTIMIZE is defined.
7337
7338 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
7339 END_FILES_1.
7340 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 7341 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
7342
7343 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
7344 (TERMINFO): Define.
7345 (LIBS_TERMCAP): Define.
7346 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
7347
7348 * xfns.c: Include libpng/png.h instead of png.h.
7349
f1d0c238
AS
73502003-07-11 Andreas Schwab <schwab@suse.de>
7351
7352 * buffer.c (modify_overlay): Update prototype.
7353 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
7354 Likewise.
7355
5f6bf5fe
SM
73562003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7357
7358 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
7359 (struct interval): Move to intervals.h.
7360 (struct Lisp_Marker): Use EMACS_INT for position info.
7361 (forward_point): Remove prototype of defunct function.
7362 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
7363 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
7364 (syms_of_textprop, set_text_properties): Remove prototypes that are
7365 already in intervals.h.
7366
7367 * intervals.h (struct interval): Move from lisp.h.
7368 Use EMACS_INT for position and size info.
7369
7370 * coding.c: Include intervals.h for Fset_text_properties.
7371
7372 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
7373 position and length information.
7374
2765b457
SM
73752003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7376
7377 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
7378 position and length information.
7379
2410d73a
SM
73802003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7381
7382 Change overlays_after and overlays_before so the overlays themselves
7383 are linked into lists, rather than using cons cells. After all each
7384 Lisp_Misc already occupies 5 words, so we can add a `next' field to
7385 Lisp_Overlay for free and save up one cons cell per overlay (not
7386 to mention one indirection when traversing the list of overlay).
7387
7388 * lisp.h (struct Lisp_Overlay): New field `next'.
7389
7390 * buffer.h (struct buffer): Change overlays_before and overlays_after
7391 from Lisp lists of overlays to pointers to overlays.
7392
7393 * buffer.c (overlay_strings, recenter_overlay_lists):
7394 Fix typo in eassert in last commit.
7395 (unchain_overlay): New function.
7396 (add_overlay_mod_hooklist): Use AREF.
7397 (copy_overlays, reset_buffer, overlays_at, overlays_in)
7398 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
7399 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
7400 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
7401 (report_overlay_modification, evaporate_overlays, init_buffer_once):
7402 Adjust to new type of overlays_(before|after).
7403
7404 * alloc.c (mark_object): Mark the new `next' field of overlays.
7405 (mark_buffer): Manually mark the overlays_(after|before) fields.
7406
7407 * coding.c (run_pre_post_conversion_on_str):
7408 * editfns.c (overlays_around):
7409 * xdisp.c (load_overlay_strings):
7410 * fileio.c (Finsert_file_contents):
7411 * indent.c (current_column):
7412 * insdel.c (signal_before_change, signal_after_change):
7413 * intervals.c (set_point_both):
7414 * print.c (temp_output_buffer_setup): Use new type for
7415 overlays_(before|after).
7416
04812929
SM
74172003-07-08 Stefan Monnier <monnier@cs.yale.edu>
7418
7419 * buffer.c (report_overlay_modification): Don't run hooks while
7420 traversing the list of overlays.
7421
7422 * buffer.h (struct buffer): Use an int for overlay_center.
7423 (overlays_at, evaporate_overlays, recenter_overlay_lists)
7424 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
7425
7426 * buffer.c (reset_buffer, recenter_overlay_lists)
7427 (adjust_overlays_for_insert, adjust_overlays_for_delete)
7428 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
7429 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
7430 (overlays_at, evaporate_overlays, recenter_overlay_lists)
7431 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
7432
7433 * xdisp.c (fast_find_position): Remove unused var.
7434
7435 * cmds.c (Qexpand_abbrev): New sym.
7436 (syms_of_cmds): Initialize it.
7437 (internal_self_insert): Use it to call expand-abbrev.
7438
2e7ecf15
KS
74392003-07-09 Kim F. Storm <storm@cua.dk>
7440
f9711de4 7441 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 7442 was configured with --without-xim.
42f81f64 7443 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 7444
c6de56a0
RS
74452003-07-07 Richard M. Stallman <rms@gnu.org>
7446
7447 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
7448
7449 * alloc.c (Fgarbage_collect): Doc fix.
7450
b6189c3b 74512003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
7452
7453 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
7454
bfe1a3f7
SM
74552003-07-06 Stefan Monnier <monnier@cs.yale.edu>
7456
04812929
SM
7457 * minibuf.c (read_minibuf): UNGCPRO before returning.
7458 (Ftry_completion, Fall_completions): Doc fix.
7459
bfe1a3f7
SM
7460 * alloc.c (live_float_p): Check that p is not past the `floats' array,
7461 now that `floats' is not the last element of the struct any more.
7462
ee79d1aa
JR
74632003-07-06 Jason Rumney <jasonr@gnu.org>
7464
7465 * w32term.h (ClipboardSequence_Proc): New type.
7466
7467 * w32fns.c (clipboard_sequence_fn): New variable.
7468 (globals_of_w32fns): Initialize it.
7469
7470 * w32select.c (last_clipboard_sequence_number): New variable.
7471 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
7472 number if possible.
7473
49723c04
SM
74742003-07-06 Stefan Monnier <monnier@cs.yale.edu>
7475
4698665f
SM
7476 * m/amdx86-64.h (MARKBIT):
7477 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
7478 MARKBIT and ARRAY_MARK_FLAG any more.
7479
7480 * m/hp800.h (XSETMARKBIT):
7481 * m/sr2k.h (XSETMARKBIT):
7482 * lisp.h (XSETMARKBIT): Remove unused macro.
7483
49723c04
SM
7484 * lisp.h (mark_object): Change prototype.
7485
7486 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
7487 (last_marked): Change accordingly.
7488 (mark_interval, mark_maybe_object, mark_maybe_pointer)
7489 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
7490 (mark_buffer): Update calls to mark_object.
7491
7492 * bytecode.c (mark_byte_stack):
7493 * fns.c (sweep_weak_table):
7494 * keyboard.c (mark_kboards): Update calls to mark_object.
7495
1d660eca
JR
74962003-07-06 Jason Rumney <jasonr@gnu.org>
7497
7498 * alloc.c (struct ablock): Only include padding when there is some.
7499
618b5ae4
SM
75002003-07-04 Stefan Monnier <monnier@cs.yale.edu>
7501
7502 * alloc.c (ALIGN): Add casts to simplify usage.
7503 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
7504 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
7505 (struct ablock, struct ablocks): New types.
7506 (free_ablock): New global var.
7507 (lisp_align_malloc, lisp_align_free): New functions.
7508 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
7509 (struct float_block): Reorder and add gcmarkbits.
7510 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
7511 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
7512 (init_float, make_float): Use lisp_align_malloc.
7513 (free_float, live_float_p): Don't use `type' any more.
7514 (make_float): Use FLOAT_UNMARK to access to mark bit.
7515 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
7516 Use FLOAT_MARKED_P to access the mark bit.
7517 (pure_alloc): Simplify use of ALIGN.
7518 (mark_object): Use FLOAT_MARK to access the mark bit.
7519 (gc_sweep): Use new macros to access the float's mark bit.
7520 (init_alloc_once): Init free_ablock.
7521
7522 * lisp.h (struct Lisp_Float): Remove unused field `type'.
7523
3ef06d12
SM
75242003-06-27 Stefan Monnier <monnier@cs.yale.edu>
7525
7526 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
7527 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
7528 (allocate_buffer): Move.
7529 (string_bytes): Don't mask markbit of `size_byte'.
7530 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
7531 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
7532 Use the `size' field of buffers (rather than the `name' field) for
7533 the mark bit, as is done for all other vectorlike objects.
7534 Use the new macros to access the mark bit of vectorlike objects.
7535
e81043aa
RS
75362003-06-26 Richard M. Stallman <rms@gnu.org>
7537
7538 * puresize.h (BASE_PURESIZE): Increment base size.
7539
7540 * xdisp.c (fast_find_position): Enable Gerd's new definition.
7541
7542 * xterm.c (xim_initialize): Undo previous change.
7543
2d0834cc
SM
75442003-06-26 Stefan Monnier <monnier@cs.yale.edu>
7545
7546 * alloc.c (survives_gc_p): Simplify.
7547
7548 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
7549
7550 * window.c (Fset_window_dedicated_p): Simplify.
7551 (display_buffer_1): Don't raise the win from which minibuf was entered.
7552 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
7553 (Fminibuffer_selected_window): Simplify.
7554
7555 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
7556
7557 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
7558 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
7559
7560 * insdel.c (check_markers, adjust_markers_for_delete)
7561 (adjust_markers_for_insert, adjust_markers_for_replace)
7562 (prepare_to_modify_buffer, RESTORE_VALUE):
7563 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
7564 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
7565 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
7566 * alloc.c (Fmake_marker, free_marker, gc_sweep):
7567 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
7568 * editfns.c (save_excursion_restore, transpose_markers):
7569 * window.c (delete_window):
7570 * xdisp.c (message_dolog): Update for new types.
7571
d54ae3d8
JD
75722003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7573
a5f696ac
JD
7574 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
7575 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 7576 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
7577
7578 * frame.c (make_frame): Initialize default_face_done_p.
7579
7580 * frame.h (struct frame): Add default_face_done_p.
7581
d54ae3d8
JD
7582 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
7583 will be defined.
7584
2336fe58
SM
75852003-06-25 Stefan Monnier <monnier@cs.yale.edu>
7586
7587 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
7588 Initialize the new field `gcmarkbit'.
7589 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
7590 (mark_interval_tree): Don't mark the tree separately from the nodes.
7591 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
7592 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
7593 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
7594
7595 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
7596 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
7597 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
7598 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
7599 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
7600
bcea31c2
DL
76012003-06-24 Dave Love <fx@gnu.org>
7602
7603 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
7604
7605 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
7606 from gnulib.
7607
2601f59e
RS
76082003-06-21 Richard M. Stallman <rms@gnu.org>
7609
7610 * fileio.c (Fwrite_region): Alternate messages
7611 for append and partial write.
7612
7613 * keyboard.c (read_key_sequence): When converting upcase fn key to
7614 downcase, update fkey and keytran so `backspace' gets translated.
7615
7616 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
7617
7618 * process.c (wait_reading_process_input): Don't signal SIGIO
7619 in batch mode.
7620
b5d2c621
KH
76212003-06-17 Kenichi Handa <handa@m17n.org>
7622
7623 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
7624 composite.h.
7625
7626 * xselect.c: Don't include charset.h, coding.h, composite.h.
7627 (Qforeign_selection): New variable.
7628 (syms_of_xselect): Intern and static it.
7629 (selection_data_to_lisp_data): Return a unibyte string made from
7630 data with `foreign-selection' text property.
7631
6793bc63
SM
76322003-06-15 Stefan Monnier <monnier@cs.yale.edu>
7633
7634 * termhooks.h (EVENT_INIT): New macro.
7635
7636 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
7637
7638 * alloc.c (mark_kboards): Move to keyboard.c.
7639
7640 * keyboard.c (record_asynch_buffer_change, read_avail_input):
7641 * xterm.c (x_dispatch_event):
7642 * xmenu.c (find_and_call_menu_selection):
7643 * xdisp.c (handle_tool_bar_click):
7644 * w32menu.c (menubar_selection_callback):
7645 * sysdep.c (kbd_input_ast, read_input_waiting):
7646 * msdos.c (dos_rawgetc):
7647 * macterm.c (mac_check_for_quit_char):
7648 * macmenu.c (menubar_selection_callback):
7649 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
7650 data to kbd_buffer_store_event.
7651
b3ea810c
KS
76522003-06-15 Kim F. Storm <storm@cua.dk>
7653
7654 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 7655 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 7656
b8f75eda
KG
76572003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
7658
7659 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
7660
ba92ce48
KH
76612003-06-12 Kenichi Handa <handa@m17n.org>
7662
7663 * fileio.c (Fwrite_region): Save and restore restriction.
7664
b80263be
DL
76652003-06-12 Dave Love <fx@gnu.org>
7666
7667 * alloca.c (alloca): Declare arg as size_t.
7668
6793bc63
SM
7669 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
7670 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 7671
b23c0a83
DL
76722003-06-11 Dave Love <fx@gnu.org>
7673
7674 * search.c (shrink_regexp_cache): Use xrealloc.
7675 (syms_of_search): Use xmalloc.
7676
700e47c2
KS
76772003-06-10 Kim F. Storm <storm@cua.dk>
7678
7679 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
7680 Adjust phys_cursor.x to be relative to window box, rather than
7681 text area before checking -- to ensure cursor is redrawn when
7682 exposing window.
7683 Note: This also fixes a similar (older) bug if display margins
7684 are present.
7685
f11aa0b2
KH
76862003-06-06 Kenichi Handa <handa@m17n.org>
7687
7688 * coding.c (encoding_buffer_size): If coding->type is
7689 coding_type_ccl, double magnification on CRLF encoding.
7690
3d143690
JR
76912003-06-06 Jason Rumney <jasonr@gnu.org>
7692
7693 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
7694 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
7695
7696 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
7697 Mac too.
7698
f16205ca
DL
76992003-06-05 Dave Love <fx@gnu.org>
7700
b23c0a83
DL
7701 * strftime.c: Merge changes from gnulib.
7702
f16205ca
DL
7703 * mktime.c (__mktime_internal): Merge changes from gnulib
7704 involving year 69 and dst2.
7705
7706 Changes to merge with gnulib version and be consistent with the
7707 autoconf test:
7708
6793bc63
SM
7709 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
7710 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
7711 [HAVE_LOCALE_H]: Include locale.h.
7712 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
7713
9b87a0bc
KS
77142003-06-05 Kim F. Storm <storm@cua.dk>
7715
7716 * window.c (coordinates_in_window): Convert X and Y to window
7717 relative coordinates inside mode-line and header-line parts.
7718 Convert X and Y to margin area relative coordinates inside left
7719 and right display margin parts.
7720
5a8a15ec
JR
77212003-06-05 Jason Rumney <jasonr@gnu.org>
7722
7723 * w32fns.c (add_system_logical_colors_to_map): New function.
7724 (Fx_open_connection): Use it.
7725
01ed8ff1
SM
77262003-06-04 Stefan Monnier <monnier@cs.yale.edu>
7727
7728 * process.c (allocate_pty): Revert part of the previous patch.
7729 (Faccept_process_output): Simplify.
7730
b427b65d
JR
77312003-06-04 Jason Rumney <jasonr@gnu.org>
7732
7733 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
7734
7735 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
7736 (lispy_mouse_wheel_names): Remove.
7737 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
7738 Always define drag_and_drop_syms.
7739
7740 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
7741 WHEEL_EVENT events.
7742
914a8c47
SM
77432003-06-03 Stefan Monnier <monnier@cs.yale.edu>
7744
01ed8ff1
SM
7745 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
7746
914a8c47
SM
7747 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
7748
adcb132c
JD
77492003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7750
7751 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
7752 menu item label.
7753
be781fa7
RS
77542003-06-03 Richard M. Stallman <rms@gnu.org>
7755
7756 * window.c (Fwindow_edges): Doc fix.
7757 (Fwindow_pixel_edges, Fwindow_inside_edges)
7758 (Fwindow_inside_pixel_edges): New functions.
7759 (syms_of_window): defsubr them.
7760
7761 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
7762 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
7763
914a8c47
SM
77642003-06-02 Stefan Monnier <monnier@cs.yale.edu>
7765
7766 * dispnew.c (Fsit_for): Don't lie about the number of args.
7767
5b07197a
DL
77682003-06-02 Dave Love <fx@gnu.org>
7769
7770 * callproc.c: Use HAVE_FCNTL_H, not USG5.
7771 (syms_of_callproc) <process-environment>: Doc fix.
7772
7773 * doc.c: Use HAVE_FCNTL_H, not USG5.
7774
7775 * xfaces.c (font_rescale_ratio): Fix for K&R.
7776
7777 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
7778
7779 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
7780
7781 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
7782
7783 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
7784 (xg_create_frame_widgets): Use ENCODE_UTF_8.
7785
d7107586 7786 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
7787
7788 * xmenu.c (ENCODE_MENU_STRING): New.
7789 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
7790 Use it.
7791
7792 * coding.h (ENCODE_UTF_8): New.
7793 (Qutf_8): Declare.
7794
7795 * coding.c (Qutf_8): New.
7796 (syms_of_coding): Intern it.
7797
7798 * fns.c: Doc fixes.
7799
7335b336
KH
78002003-06-02 Kenichi Handa <handa@m17n.org>
7801
7802 * buffer.c (Fset_buffer_multibyte): Fix previous change.
7803
914a8c47
SM
78042003-06-01 Stefan Monnier <monnier@cs.yale.edu>
7805
7806 * lread.c (openp): Make sure STR is a string.
7807
9862c135
JR
78082003-06-01 David Ponce <david@dponce.com>
7809
cab27d04 7810 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
7811 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
7812
7813 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
7814 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
7815 (discard_mouse_events): Discard WHEEL_EVENT events too.
7816 (lispy_wheel_names, wheel_syms): New.
7817 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 7818 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 7819 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
7820
7821 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
7822 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7823 WHEEL_EVENT events.
7824
f984e73e
JPW
78252003-05-31 John Paul Wallington <jpw@gnu.org>
7826
7827 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
7828 timer are in lisp/emacs-lisp.
7829
1efcd78f
KH
78302003-05-31 Kenichi Handa <handa@m17n.org>
7831
458c8af4
KH
7832 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
7833 region when a buffer is changed to unibyte.
7834
1efcd78f
KH
7835 * charset.h (VALID_LEADING_CODE_P): New macro.
7836 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
7837
778e2804
KH
7838 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
7839 is nonzero, accept multibyte form of eight-bit-control chars.
7840 (decode_composition_emacs_mule): Likewise.
7841 (decode_coding_emacs_mule): Likewise.
7842 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
7843 multibyte form of eight-bit-control chars.
7844
7845 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
7846 (Finsert_file_contents): If coding-system-for-read is bound to
7847 Qauto_save_coding, use the coding system emacs-mule with special
7848 setting for recovering a file.
7849 (choose_write_coding_system): On auto saving, use the coding
7850 system emacs-mule with special setting for auto saving.
7851 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
7852
034060e4
KH
78532003-05-30 Kenichi Handa <handa@m17n.org>
7854
7855 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
7856 properly before calling ccl_driver.
7857
778e2804 7858 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 7859
cab27d04 7860 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
7861 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
7862 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
7863
595f5aa5
GM
78642003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
7865
7866 * xfaces.c (realize_default_face): Do not abort if lface is
7867 non-existent - reverts change from 2003-05-19.
7868
103e0180
KH
78692003-05-29 Kenichi Handa <handa@m17n.org>
7870
7871 * coding.c (decode_coding_iso2022): Pay attention to the byte
7872 sequence of CTEXT extended segment, and retain those bytes as is.
7873
78742003-05-28 Kenichi Handa <handa@m17n.org>
7875
cab27d04 7876 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
7877 of CODING_REPLACEMENT_CHARACTER.
7878 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
7879 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
7880 check this flag on encoding.
cab27d04
SM
7881 (encode_coding_sjis_big5):
7882 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
7883 (Fset_terminal_coding_system_internal):
7884 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
7885 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
7886
7887 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
7888 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
7889 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
7890
ff6a3bfb 78912003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 7892
ff6a3bfb
RS
7893 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
7894
7895 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 7896
1963c428
KS
78972003-05-28 Kim F. Storm <storm@cua.dk>
7898
7899 * xdisp.c (expose_window): Fix error in calculation of
7900 window relative coordinates of area to redisplay.
7901
2b5d4601
JR
79022003-05-27 Jason Rumney <jasonr@gnu.org>
7903
7904 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
7905
1c64a4a2
JB
79062003-05-27 David Ponce <david@dponce.com>
7907
7908 Handle W32 mouse wheel events as mouse click events, like in X.
7909
7910 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
7911 MOUSE_WHEEL_EVENT anymore.
7912
7913 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
7914 Scrolling down/up the mouse wheel is respectively mapped to mouse
7915 button 4 and 5.
7916 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7917 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
7918 WM_MOUSEWHEEL events.
7919
2d031b89
AS
79202003-05-27 Andreas Schwab <schwab@suse.de>
7921
20464fdf
AS
7922 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
7923
2d031b89
AS
7924 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
7925 partially visible line.
7926
7927 * alloc.c (Fgarbage_collect): Fix last change.
7928
97bc76d4
JPW
79292003-05-26 John Paul Wallington <jpw@gnu.org>
7930
7931 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
7932
56613f06
SM
79332003-05-25 Stefan Monnier <monnier@cs.yale.edu>
7934
7935 * window.c (Fset_window_buffer): Add type of `keep_margins'.
7936 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
7937
7938 * window.h (window_box_text_cols): Declare.
7939
7940 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
7941 (x_draw_vertical_border): Remove unused var `f'.
7942
7943 * xfaces.c (build_scalable_font_name): Remove `unused var
7944 pixel_size' warning.
7945
7946 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
7947
7948 * unexelf.c (unexec): Remove `unused var n' warning.
7949
7950 * strftime.c (my_strftime_localtime_r): Remove `defined but
7951 unused' warning.
7952
7953 * process.c (allocate_pty): Remove `unused var stb' and
7954 `cp might be used uninitialized' warnings.
7955
7956 * dispnew.c (mode_line_string): Remove unused var `f'.
7957
7958 * coding.c (find_safe_codings): Remove unused var `i'.
7959
7960 * bytecode.c (Fbyte_code): Remove `unused val' warning.
7961
7962 * buffer.c (Fkill_buffer): Remove unused var `list'.
7963
7964 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
7965
93421a1f
JD
79662003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7967
7968 * frame.c (make_frame): Condition want_fullscreen with
7969 HAVE_WINDOW_SYSTEM.
7970
c4b8aebc
JB
79712003-05-25 Juanma Barranquero <lektu@terra.es>
7972
7973 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
7974 (Fwindow_scroll_bars): Fix typo in docstring.
7975
0416870b
KS
79762003-05-24 Kim F. Storm <storm@cua.dk>
7977
7978 The following changes serve several purposes:
7979
7980 1) Swap the position of fringes and display margins in windows, i.e.
7981 the fringes are now displayed between the margins and the text area
7982 (by default).
7983
7984 2) Allow fringe and scroll bar parameters to be set per-buffer and
7985 per-window (like display margins). Such settings are now stored
7986 in window configurations, preserved when frames are resized, and
9018a88e 7987 copied when windows are split vertically or horizontally.
0416870b
KS
7988 Several bugs related to display margins have been fixed.
7989
7990 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 7991
0416870b
KS
7992 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
7993 rather than FRAME_WIDTH (FRAME_FONT (f)).
7994
7995 5) Introduce a consistent naming of variables, members and macros
7996 depending on whether their value is measured in pixels or in
7997 canonical columns/lines. Pixel dimensions are named *_width and
7998 *_height, while canonical columns/lines are named *_cols and
7999 *_lines. Pixel positions are named *_x and *_y, while column/line
8000 positions are named *_col and *_line.
8001
8002 6) Consolidate more of the X, W32, and MAC gui code by moving
8003 common data into struct frame, and generalize it for the non-gui
8004 case by using suitable defaults.
8005
8006 7) Cleanup and consolidate the macros controlling frame and window
8007 layout into frame.h and window.h, and generalize the use of the
8008 various window_box_* functions (enhanced to handle the new fringe
8009 position and the per-window fringe and scroll bar settings).
8010
8011 * frame.h (struct frame): Rename members height to text_lines,
8012 width to text_cols, window_height to total_lines, window_width to
8013 total_cols, new_height to new_text_lines, new_width to
8014 new_text_cols. All uses changed.
8015 (struct frame): New members which consolidate common members of
8016 x_output, w32_output, and mac_output structures: left_pos,
8017 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
8018 win_gravity, size_hint_flags, border_width, internal_border_width,
8019 line_height, fringe_cols, left_fringe_width, right_fringe_width,
8020 want_fullscreen. All uses changed.
8021 (struct frame): New member column_width contaning the canonical
8022 column width, analogue to line_height. All uses changed.
8023 (struct frame): Rename members scroll_bar_pixel_width to
8024 config_scroll_bar_width, and scroll_bar_cols to
8025 config_scroll_bar_cols. All uses changed.
8026 (struct frame): New member scroll_bar_actual_width which
8027 consolidates and renames the vertical_scroll_bar_extra member of
8028 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 8029 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
8030 from x/w32/macterm.h files. All uses changed. Also change code
8031 which referred to f->output_data...->pixel_height.
cab27d04 8032 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 8033 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 8034 which referred to f->output_data...->pixel_width.
cab27d04 8035 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 8036 Also change code which referred to f->height.
cab27d04 8037 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
8038 Also change code which referred to f->width.
8039 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
8040 to update new_text_lines and new_text_cols members directly.
cab27d04 8041 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 8042 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 8043 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
8044 FRAME_SCROLL_BAR_COLS. All uses changed.
8045 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 8046 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
8047 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
8048 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
8049 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
8050 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
8051 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
8052 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
8053 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
8054 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
8055 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
8056 Unconditionally return line_height member (it now has proper value
8057 also for non-window frames).
8058 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
8059 return new column_width member (rather than the default font width).
8060 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 8061 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
8062 from x/w32/macterm.h files. Unconditionally return corresponding
8063 member of frame structure (they now have proper values also for
8064 non-window frames).
cab27d04 8065 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
8066 Calculate return value from left and right widths.
8067 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
8068 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
8069 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
8070 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
8071 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
8072 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
8073 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 8074 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 8075 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 8076 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 8077 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 8078 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 8079 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 8080 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 8081 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 8082 consolidated from x/mac/w32term.h.
cab27d04 8083 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 8084 consolidated from x/mac/w32term.h.
cab27d04 8085 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 8086 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 8087 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
8088 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
8089
8090 * window.h (struct window): Rename members left to left_col,
8091 top to top_line, height to total_lines, width to total_cols,
8092 left_margin_width to left_margin_cols, right_margin_width to
8093 right_margin_cols, orig_height to orig_total_lines, orig_top to
8094 orig_top_line. All uses changed.
8095 (struct window): New members left_fringe_width, right_fringe_width,
8096 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
8097 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
8098 New macros primarily used to simplify other macros.
8099 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
8100 referred to XINT (w->width).
8101 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
8102 referred to XINT (w->height).
8103 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
8104 referred to XINT (w->width) * canon_x_unit.
8105 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
8106 referred to XINT (w->height) * canon_y_unit.
8107 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
8108 referred to XINT (w->left).
cab27d04 8109 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
8110 all uses and code that referred to XINT (w->left) + XINT (w->width).
8111 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
8112 referred to XINT (w->top).
8113 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
8114 referred to XINT (w->top) + XINT (w->height).
8115 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
8116 referred to XINT (w->left) * canon_x_unit.
8117 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
8118 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
8119 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
8120 referred to XINT (w->top) * canon_y_unit.
8121 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
8122 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
8123 (WINDOW_LEFTMOST_P): New macro.
cab27d04 8124 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 8125 All uses changed.
cab27d04 8126 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 8127 All uses changed.
cab27d04 8128 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
8129 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
8130 Do not exclude left fringe width.
cab27d04 8131 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
8132 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
8133 Do not exclude fringe widths.
8134 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
8135 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
8136 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
8137 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
8138 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
8139 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
8140 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
8141 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
8142 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
8143 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
8144 New macros. Change code which referenced corresponding
8145 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
8146 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
8147 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
8148 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
8149 allow per-window scroll-bar settings.
8150 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
8151 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
8152 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
8153 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
8154 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
8155 FRAME_SCROLL_BAR_WIDTH.
8156 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 8157 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 8158 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 8159 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 8160 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 8161 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 8162 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
8163 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
8164 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
8165 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
8166 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
8167 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 8168 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 8169 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
8170 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
8171 (window_from_coordinates): Update prototype.
8172 (Fset_window_buffer): Update EXFUN.
8173 (set_window_buffer): Update prototype.
9018a88e 8174
0416870b 8175 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 8176 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
8177 changed.
8178 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
8179 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
8180 internal_border_width is now set to 0 for non-window frames.
8181 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
8182 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
8183 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
8184 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
8185 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
8186 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
8187 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
8188 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
8189 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 8190 Move to window.h and renamed [see window.h changes].
0416870b
KS
8191 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
8192 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
8193 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
8194 Use WINDOW_TOTAL_LINES.
0416870b
KS
8195 (frame_update_line_height): Remove prototype.
8196
8197 * buffer.h (struct buffer): Rename members measured in columns:
8198 left_margin_width to left_margin_cols, right_margin_width to
8199 right_margin_cols. All uses changed.
8200 New members left_fringe_width, right_fringe_width,
8201 fringes_outside_margins for per-buffer fringe settings.
8202 New members scroll_bar_width and vertical_scroll_bar_type for
8203 per-buffer scroll bar settings.
8204
8205 * buffer.c (init_buffer_once): Set buffer_defaults and
8206 buffer_local_flags for new buffer-local variables
8207 left_fringe_width, right_fringe_width, fringes_outside_margins,
8208 scroll_bar_width, and vertical_scroll_bar_type.
8209 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
8210 default-* variables for them.
8211
8212 * dispnew.c: Make (many) trivial substitutions for renamed and
8213 new macros in dispextern.h, frame.h and window.h.
8214 (mode_line_string): No need to adjust width for mode lines, as it
8215 is already adjusted by the caller.
8216 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 8217
0416870b
KS
8218 * frame.c: Make (many) trivial substitutions for renamed and
8219 new macros in dispextern.h, frame.h and window.h.
8220 (make_frame): Initialize left_fringe_width, right_fringe_width,
8221 fringe_cols, scroll_bar_actual_width, border_width,
8222 internal_border_width, column_width, line_height, x_pixels_diff,
8223 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
8224 members with values suitable for a non-window frames.
8225
8226 * gtkutil.c: Make (many) trivial substitutions for renamed and
8227 new macros in dispextern.h, frame.h and window.h.
9018a88e 8228
0416870b
KS
8229 * indent.c: Make (few) trivial substitutions for renamed and
8230 new macros in dispextern.h, frame.h and window.h.
8231
8232 * keyboard.c: Make (many) trivial substitutions for renamed and
8233 new macros in dispextern.h, frame.h and window.h.
8234 (make_lispy_event): Use window positions returned from
8235 window_from_coordinates when constructing the lisp event for
8236 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
8237 (incorrect) values locally.
8238 (make_lispy_movement): Use window positions returned from
8239 window_from_coordinates when constructing the lisp event, rather
8240 than calculating (incorrect) values locally.
8241
8242 * scroll.c: Make (some) trivial substitutions for renamed and
8243 new macros in dispextern.h, frame.h and window.h.
8244
8245 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
8246 scroll-bars.
8247
8248 * sysdep.c: Make (few) trivial substitutions for renamed and
8249 new macros in dispextern.h, frame.h and window.h.
8250
8251 * term.c: Make (some) trivial substitutions for renamed and
8252 new macros in dispextern.h, frame.h and window.h.
8253
8254 * widget.c: Make (few) trivial substitutions for renamed and
8255 new macros in dispextern.h, frame.h and window.h.
8256
8257 * window.c: Make (many) trivial substitutions for renamed and
8258 new macros in dispextern.h, frame.h and window.h.
8259 (make_window): Initialize new members
8260 left_margin_cols, right_margin_cols, left_fringe_width,
8261 right_fringe_width, fringes_outside_margins, scroll_bar_width,
8262 and vertical_scroll_bar_type.
cab27d04 8263 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 8264 and per-window fringes and scroll-bars.
0416870b 8265 Fix bug related to incorrectly adjusting coordinates by
9018a88e 8266 frame's internal_border_width (the effect normally negible since
0416870b
KS
8267 the internal_border_width is typically 0 or 1 pixel, but very
8268 noticeable for an internal_border_width of e.g. 25 pixels).
8269 Upon successful return (other than ON_NOTHING), the coordinates
8270 are now always properly converted to window relative for the
8271 given display element.
8272 (window_from_coordinates): Add new parameters wx and wy to
8273 return the window relative x and y position in the returned
8274 window and part. A null arg means, don't return the position.
8275 All callers changed.
8276 (adjust_window_margins): New function which may reduce the width
8277 of the display margins if a window's text area is too small after
8278 resizing or splitting windows.
8279 (size_window): Fix bug that did not account for display margin
8280 widths when checking the minimum width of a window; use
8281 adjust_window_margins.
8282 (set_window_buffer): Call Fset_window_fringes and
8283 Fset_window_scroll_bars to setup per-window elements.
8284 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
8285 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
8286 (e.g. after splitting a window or resizing the frame).
8287 All callers changed.
0416870b
KS
8288 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
8289 (Fsplit_window): Duplicate original window's display margin,
8290 fringe, and scroll-bar settings; then call Fset_window_buffer with
8291 KEEP_MARGINS non-nil. This fixes a bug which caused a split
8292 window to only preserve the display margins in one of the windows.
c4b8aebc 8293 When splitting horizontally, call adjust_window_margins on both
0416870b 8294 windows to ensure that the text area of the new windows is non too
f9711de4 8295 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
8296 width of the split window was less than the width of the display
8297 margins.
cab27d04 8298 (window_box_text_cols): Rename from window_internal_width.
9018a88e 8299 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
8300 Fix bug that caused vertical separator to be subtracted also on
8301 window frames. Fix another bug that did not reduce the returned
8302 value by the columns used for display margins.
8303 (window_scroll_line_based): Fix bug related to scrolling too much
8304 when display margins are present (implicitly fixed by the fix to
8305 window_box_text_cols).
8306 (scroll_left, scroll_right): Fix bug related to scrolling too far
8307 by default when display margins are present (implicitly fixed by
8308 the fix to window_box_text_cols).
8309 (struct saved_window): Rename members left to left_col, top to
8310 top_line, width to total_cols, height to total_lines, orig_top to
8311 orig_top_line, orig_height to orig_total_lines. All uses changed.
8312 New members left_margin_cols, right_margin_cols,
8313 left_fringe_width, right_fringe_width, fringes_outside_margins,
8314 scroll_bar_width, and vertical_scroll_bar_type for saving
8315 per-window display elements.
8316 (Fset_window_configuration): Restore display margins, fringes,
8317 and scroll bar settings. This fixes a bug which caused display
8318 margins to be discarded when saving and restoring a window
8319 configuration.
8320 (save_window_save): Save display margins, fringes, and scroll bar
8321 settings. This fixes a bug which caused display margins to be
8322 discarded when saving and restoring a window configuration.
8323 (Fset_window_margins): Do nothing if display margins are not
8324 really changed. Otherwise, call adjust_window_margins to ensure
8325 the text area doesn't get too narrow. This fixes a bug which
f9711de4 8326 could cause Emacs to trap if setting display margins wider than
0416870b
KS
8327 the width of the window.
8328 (Fset_window_fringes): New defun to allow user to specifically set
8329 this window's fringe widths and position vs. display margins.
cab27d04 8330 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
8331 (Fset_window_scroll_bars): New defun to allow user to specifically
8332 set this window's scroll bar width and position.
8333 (Fwindow_scroll_bars): New defun to return window's actual scroll
8334 bar settings.
8335 (compare_window_configurations): Also compare display margins,
8336 fringes, and scroll bar settings.
8337 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
8338
8339 * xdisp.c: Make (many) trivial substitutions for renamed and
8340 new macros in dispextern.h, frame.h and window.h.
8341 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 8342 and new fringe vs. display margin position. Note that returned
0416870b
KS
8343 value is no longer guaranteed to be a whole multiple of the frame
8344 column width, since per-window fringes may now be any width.
8345 (window_box_left_offset): New function like window_box_left, but
8346 value is relative to left border of window (rather than frame).
8347 (window_box_right_offset): New function like window_box_right,
8348 but value is relative to left border of window.
8349 (window_box_left): Adapt to per-window fringes and scroll bars,
8350 and new fringe vs. display margin position. Simplify by using
8351 WINDOW_LEFT_EDGE_X and window_box_left_offset.
8352 (window_box): Allow null args for unnecessary return values;
8353 change/simplify relevant callers.
8354 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
8355 and new fringe vs. display margin position.
8356 Use window_box_left_offset and window_box_right_offset
0416870b 8357 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
8358 scroll bars, and new fringe vs. display margin position.
8359 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
8360 (draw_fringe_bitmap): Rework to handle per-window fringes and new
8361 fringe vs. display margin position.
8362 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
8363 (redisplay_window): Adapt to per-window scroll bars.
8364 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
8365 bars, and new fringe vs. display margin position.
8366 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 8367 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
8368 bars, and new fringe vs. display margin position. Fix bug which
8369 increased total width of full_width rows by width of scroll bars
8370 although window's total width already includes that.
8371 (x_fix_overlapping_area): Simplify using window_box_left_offset.
8372 (expose_area): Simplify using window_box_left_offset.
8373 (x_draw_vertical_border): Handle per-window scroll bar settings,
8374 mixing windows with left, right and no scroll bars.
8375
8376 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
8377 where it's used in x_list_fonts (for clarity).
8378 (frame_update_line_height): Remove unused function; functionality
8379 is now done directly when setting the default font in x_set_font.
8380
8381 * xfns.c: Make (many) trivial substitutions for renamed and
8382 new macros in dispextern.h, frame.h and window.h.
8383
8384 * xmenu.c: Make (some) trivial substitutions for renamed and
8385 new macros in dispextern.h, frame.h and window.h.
8386
8387 * xterm.h (struct x_output): Move members left_pos, top_pos,
8388 border_width, pixel_height, pixel_width, line_height,
8389 internal_border_width, vertical_scroll_bar_extra,
8390 left_fringe_width, right_fringe_width, fringe_cols,
8391 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8392 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
8393 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8394 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8395 (PIXEL_WIDTH, PIXEL_HEIGHT)
8396 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 8397 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
8398 frame.h and renamed [see frame.h changes].
8399 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8400 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 8401 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 8402 and renamed [see frame.h changes].
9018a88e 8403
0416870b
KS
8404 * xterm.c: Make (several) trivial substitutions for renamed and
8405 new macros in dispextern.h, frame.h and window.h.
cab27d04 8406 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
8407 (scroll_run): Adapt to new fringe position.
8408 (glyph_rect): Use window coordinates returned from
8409 window_from_coordinates rather than frame_to_window_pixel_xy.
8410 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8411 scroll-bars.
8412 (handle_one_xevent): Simplify a USE_GTK conditional.
8413 (x_clip_to_row): Remove superfluous whole_line_p arg and code
8414 (fringes are now inside margins, i.e. always in the clipping area).
8415 All callers changed.
8416 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8417 directly, then call compute_fringe_widths. Don't call
8418 frame_update_line_height.
8419
8420 * w32term.h (struct w32_output): Move members left_pos, top_pos,
8421 border_width, pixel_height, pixel_width, line_height,
8422 internal_border_width, vertical_scroll_bar_extra,
8423 left_fringe_width, right_fringe_width, fringe_cols,
8424 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8425 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
8426 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8427 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8428 (PIXEL_WIDTH, PIXEL_HEIGHT)
8429 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 8430 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
8431 frame.h and renamed [see frame.h changes].
8432 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8433 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 8434 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 8435 and renamed [see frame.h changes].
9018a88e 8436
0416870b
KS
8437 * w32term.c: Make (several) trivial substitutions for renamed and
8438 new macros in dispextern.h, frame.h and window.h.
cab27d04 8439 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
8440 (glyph_rect): Use window coordinates returned from
8441 window_from_coordinates rather than frame_to_window_pixel_xy.
8442 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8443 scroll-bars.
8444 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
8445 (fringes are now inside margins, i.e. always in the clipping area).
8446 All callers changed.
8447 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8448 directly, then call compute_fringe_widths. Don't call
8449 frame_update_line_height.
8450
8451 * w32console.c: Make (few) trivial substitutions for renamed and
8452 new macros in dispextern.h, frame.h and window.h.
8453
8454 * w32fns.c: Make (many) trivial substitutions for renamed and
8455 new macros in dispextern.h, frame.h and window.h.
8456
8457 * w32menu.c: Make (few) trivial substitutions for renamed and
8458 new macros in dispextern.h, frame.h and window.h.
8459
8460 * macterm.h (struct mac_output): Move members left_pos, top_pos,
8461 border_width, pixel_height, pixel_width, line_height,
8462 internal_border_width, vertical_scroll_bar_extra,
8463 left_fringe_width, right_fringe_width, fringe_cols,
8464 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8465 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
8466 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8467 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8468 (PIXEL_WIDTH, PIXEL_HEIGHT)
8469 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 8470 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
8471 frame.h and renamed [see frame.h changes].
8472 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8473 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 8474 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 8475 and renamed [see frame.h changes].
9018a88e 8476
0416870b
KS
8477 * macterm.c: Make (several) trivial substitutions for renamed and
8478 new macros in dispextern.h, frame.h and window.h.
cab27d04 8479 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
8480 (glyph_rect): Use window coordinates returned from
8481 window_from_coordinates rather than frame_to_window_pixel_xy.
8482 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8483 scroll-bars.
8484 (x_clip_to_row): Remove superfluous whole_line_p arg and code
8485 (fringes are now inside margins, i.e. always in the clipping area).
8486 All callers changed.
8487 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8488 directly, then call compute_fringe_widths. Don't call
8489 frame_update_line_height.
8490
8491 * macfns.c: Make (several) trivial substitutions for renamed and
8492 new macros in dispextern.h, frame.h and window.h.
9018a88e 8493 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
8494
8495 * macmenu.c: Make (few) trivial substitutions for renamed and
8496 new macros in dispextern.h, frame.h and window.h.
8497
8498 * msdos.h (struct x_output): Remove members left_pos, top_pos,
8499 and line_height, and use corresponding new members in struct
8500 frame. All uses changed.
8501 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
8502 superseeded by corresponding macros in frame.h.
8503
8504 * msdos.c: Make (several) trivial substitutions for renamed and
8505 new macros in dispextern.h, frame.h and window.h.
8506 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 8507 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
8508 (internal_terminal_init): No need to initialize line_height here;
8509 it now defaults to 1.
8510
9018a88e
SM
85112003-05-24 Stefan Monnier <monnier@cs.yale.edu>
8512
8513 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
8514 dropping `down' events.
8515
016bd3c0
AS
85162003-05-24 Andreas Schwab <schwab@suse.de>
8517
8518 * coding.c (find_safe_codings): Fix last change.
8519
4dacadcc
TTN
85202003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
8521
8522 * xfns.c (x_window): Fix typo from 2003-05-21 change.
8523
319830ce
SM
85242003-05-23 Stefan Monnier <monnier@cs.yale.edu>
8525
9018a88e
SM
8526 * xdisp.c (display_mode_element): Increase max depth.
8527 Simplify the error handling code. Use a different error string
8528 for the case where we hit the depth limit.
8529
319830ce
SM
8530 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
8531
8532 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
8533
85342003-05-21 Stefan Monnier <monnier@cs.yale.edu>
8535
8536 * intervals.c (get_local_map): Don't get char-property of previous
8537 point any more: get_pos_property already does it and better.
8538
c67de8ba
DL
85392003-05-21 Dave Love <fx@gnu.org>
8540
8541 [Merged from unicode branch.]
8542
8543 * xfns.c (x_window, x_window): Use use_xim.
8544
8545 * xterm.c (use_xim): Initialize.
8546 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
8547 (x_term_init): Maybe set use_xim.
8548
8549 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
8550
edd3ff1d
JR
85512003-05-21 Jason Rumney <jasonr@gnu.org>
8552
8553 * unexw32.c (_start): Remove _fmode initialization.
8554
8555 * emacs.c (main) [WINDOWSNT]: Move it here.
8556
463f55ee
DL
85572003-05-20 Dave Love <fx@gnu.org>
8558
8559 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
8560
af253914
RS
85612003-05-19 Richard M. Stallman <rms@gnu.org>
8562
8563 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
8564 as value for QCfont attribute.
8565 (realize_default_face): lface should already exist; crash if not.
8566 Specify 0 for FORCE_P when calling set_lface_from_font_name.
8567
8568 * frame.c (Fignore_event): Doc fix.
8569
1d211019
KH
85702003-05-19 Kenichi Handa <handa@m17n.org>
8571
8572 * coding.c (decode_coding_string): Handle post-read-conversion
8573 even if the coding doesn't require decoding.
8574
4dd68254
RS
85752003-05-18 Richard M. Stallman <rms@gnu.org>
8576
8577 * callproc.c (Fcall_process_region): Doc fix.
8578
14d87dc9
SM
85792003-05-17 Stefan Monnier <monnier@cs.yale.edu>
8580
deca5d96
SM
8581 * lread.c (Fload): Print a message if package is obsolete.
8582
14d87dc9
SM
8583 * window.c (Fselect_window): Add optional `norecord' arg.
8584 (select_window_1): Fold into Fselect_window.
8585 (select_window_norecord): New function.
8586 (temp_output_buffer_show): Use it. Preserve current buffer.
8587
8588 * window.h (Fselect_window): Update declaration.
8589
8590 * window.c (delete_window, Fother_window, Fset_window_configuration):
8591 * minibuf.c (read_minibuf):
8592 * macterm.c (x_new_focus_frame):
8593 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
8594 * callint.c (Fcall_interactively):
8595 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
8596
8597 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
8598
78f52183
DK
85992003-05-17 David Kastrup <dak@gnu.org>
8600
8601 * process.c (read_process_output): Back out change from 2003-03-09.
8602
14d87dc9
SM
86032003-05-17 Stefan Monnier <monnier@cs.yale.edu>
8604
8605 * editfns.c (get_pos_property): Don't assume that `object' = nil.
8606
8607 * textprop.c (text_property_stickiness): New arg `buffer'.
8608
8609 * intervals.h (text_property_stickiness): New arg `buffer'.
8610 (get_pos_property): Declare.
8611
8612 * intervals.c (get_local_map): Use get_pos_property, to obey
8613 stickiness and empty overlays.
8614 (create_root_interval, graft_intervals_into_buffer): Use BEG.
8615 (merge_properties, intervals_equal, merge_properties_sticky):
8616 Use XCAR, XCDR.
8617 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
8618
1fd1cc2f
RS
86192003-05-17 Richard M. Stallman <rms@gnu.org>
8620
4f9f637a
RS
8621 * minibuf.c (read_minibuf): If buffer is empty, record the default
8622 in the history.
8623 (Fminibuffer_complete_word): When deleting the overlap, take account
8624 of its real position.
8625
8626 * fns.c (map_char_table): Fix previous change.
8627
1fd1cc2f
RS
8628 * syntax.c (find_defun_start):
8629 When open_paren_in_column_0_is_defun_start,
8630 return beginning of buffer.
8631
8632 * lisp.h (map_char_table): Declare added arg.
8633
8634 * fns.c (map_char_table): New arg TABLE gets the master table.
8635 All calls changed.
8636 Process default and inheritance, resorting to Faref if necessary.
8637
8638 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
8639 (Faccessible_keymaps): Pass new arg to map_char_table.
8640
8641 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
8642
8643 * casetab.c (set_case_table): Pass new arg to map_char_table.
8644
8645 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
8646
8647 * lisp.h (specbinding_func): New typedef.
8648 (struct specbinding): Use specbinding_func, to put the `volatile'
8649 in the right place.
8650
8651 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
8652 to avoid GCC warning.
14d87dc9 8653
b6189c3b 86542003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 8655
14d87dc9 8656 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 8657
35fb885d
SM
86582003-05-15 Stefan Monnier <monnier@cs.yale.edu>
8659
8660 * keyboard.c (apply_modifiers): Don't fill the other cache.
8661
9a274fbd
SM
86622003-05-14 Stefan Monnier <monnier@cs.yale.edu>
8663
c55b5fad
SM
8664 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
8665
9a274fbd
SM
8666 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
8667 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
8668 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
8669 (Fset_window_configuration, Fcurrent_window_configuration)
8670 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
8671 (Fpos_visible_in_window_p, mark_window_cursors_off)
8672 (window_internal_height, window_internal_width, Frecenter)
8673 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
8674 (replace_buffer_in_all_windows, init_window_once, init_window)
8675 (syms_of_window, keys_of_window): Move from lisp.h.
8676 * lisp.h: Move window.c declarations to window.h.
8677
8678 * bytecode.c: Include window.h.
8679 * emacs.c: Include window.h.
8680
14d87dc9 8681 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
8682 (keyremap): Add `parent' field.
8683 (keyremap_step): Use it. Remove `parent' argument.
8684 (read_key_sequence): Setup and use the new `parent' field.
8685
fd93e331
SM
86862003-05-11 Stefan Monnier <monnier@cs.yale.edu>
8687
8688 * keyboard.c (adjust_point_for_property): Ensure termination.
8689
1c4001a1
SM
86902003-05-10 Stefan Monnier <monnier@cs.yale.edu>
8691
8692 * keyboard.c (follow_key): Remove dead variable `did_meta'.
8693 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
8694 duplicated handling of function-key-map and key-translation-map
8695 in read_key_sequence.
8696 (read_key_sequence): Use them.
8697
8698 * keyboard.c (adjust_point_for_property): Try harder to move point
8699 to the non-sticky end of an invisible property.
8700
8701 * xdisp.c (single_display_prop_intangible_p): Make `space' display
8702 property intangible as well.
8703
780379b1
AS
87042003-05-10 Andreas Schwab <schwab@suse.de>
8705
8706 * xmenu.c (single_menu_item): Change last parameter to void* to
8707 avoid warning.
8708
ca2de342
RS
87092003-05-09 Richard M. Stallman <rms@gnu.org>
8710
8711 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
8712 Bind Qinhibit_modification_hooks to t so there will be no GC.
8713 Rename local `tem' to `save_deactivate_mark'.
8714
8715 * eval.c (specpdl_ptr): Declare volatile.
8716 (unbind_to): Copy the whole binding and decrement specpdl_ptr
8717 before doing the work of unbinding it.
8718
8719 * lisp.h (struct specbinding): Declare elements volatile.
8720 (specpdl_ptr): Declare volatile.
8721
8722 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
8723
8724 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
8725 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
8726
347003be
DL
87272003-05-08 Dave Love <fx@gnu.org>
8728
8729 * coding.c (Vlast_coding_system_used): Doc fix.
8730
5adcec23
JR
87312003-05-07 Jason Rumney <jasonr@gnu.org>
8732
8733 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
8734 when system does not support them.
8735
5fe3b8a4
SM
87362003-05-05 Stefan Monnier <monnier@cs.yale.edu>
8737
8738 * fileio.c (Qwrite_region_annotate_functions): New var.
8739 (build_annotations): Use it to process the global part of the hook.
8740 (syms_of_fileio): Init and staticpro it.
8741
8742 * keyboard.c (safe_run_hooks_error): Display a message instead of
8743 silently ignoring the error.
8744
87452003-05-03 Stefan Monnier <monnier@cs.yale.edu>
8746
8747 * keyboard.c (input_available_signal): Mark static.
8748 (menu_bar_items): Use map_keymap.
8749 (menu_bar_one_keymap): Remove.
8750 (menu_bar_item): Adjust arglist (for use in map_keymap).
8751 Properly hide a second binding when not both are keymaps.
8752
8753 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
8754 (single_keymap_panes): Use it and map_keymap.
8755 (single_menu_item): Use skp as well.
8756
8757 * keymap.h (map_keymap_function_t): New type.
8758 (map_keymap): Declare.
8759
8760 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
8761 (map_keymap_call, Fmap_keymap): New functions.
8762 (syms_of_keymap): Defsubr map-keymap.
8763
4b1b4443
JD
87642003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8765
8766 * gtkutil.c (create_dialog, make_widget_for_menu_item)
8767 (make_menu_item, create_menus, xg_update_menu_item): Don't call
8768 ..._with_mnemonic functions for menu items.
8769
1f816871
KH
87702003-05-01 Kenichi Handa <handa@m17n.org>
8771
8772 * coding.c (coding_system_accept_latin_extra_p): Delete this
8773 function.
8774 (find_safe_codings): Pay attention to
8775 the property tranlsation-table-for-encode of each codings.
8776 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
8777
5ed6ba5b
SM
87782003-05-01 Stefan Monnier <monnier@cs.yale.edu>
8779
8780 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
8781
32c06229
SM
87822003-04-30 Stefan Monnier <monnier@cs.yale.edu>
8783
8784 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
8785
8786 * lisp.h (CHECK): Wrap args in parenthesis.
8787 (specbind): Fix doc: symbol = Qnil is not supported any more.
8788
8789 * bytecode.c (Fbyte_code) <unwind-protect>:
8790 Use Fprogn rather than 0 and Qnil.
8791
8792 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
8793 `double', and `triple' modifiers as well.
8794
ed3c3314
RS
87952003-04-30 Richard M. Stallman <rms@gnu.org>
8796
8797 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
8798
8799 * alloc.c (abort_on_gc): New variable.
8800 (Fgarbage_collect): Abort if abort_on_gc is set.
8801
8802 * lisp.h (abort_on_gc): Add decl.
8803
8804 * eval.c (Fsignal): Clear abort_on_gc.
8805
8806 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 8807 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
8808
8809 * xdisp.c (move_it_vertically_backward): Do the final big else
8810 even if nlines is 0.
8811
8812 * xdisp.c (redisplay_internal): Finish the per-frame loop
8813 even if redisplay is suspended by input.
8814
0b325c12
AC
88152003-04-24 Andrew Choi <akochoi@shaw.ca>
8816
8817 * macterm.c (x_list_fonts): Return all fonts that match if
8818 maxnames = -1.
8819
4e837cd0
KH
88202003-04-25 Kenichi Handa <handa@m17n.org>
8821
8822 * syntax.c (skip_chars): Fix previous change.
8823
9af7511a
KH
88242003-04-24 Kenichi Handa <handa@m17n.org>
8825
8826 * syntax.c (skip_chars): Make the code faster by using the common
8827 technique of *p, *stop, and *endp.
8828
e3b2c21f
JD
88292003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8830
8831 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 8832 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
8833 being updated.
8834
32c06229
SM
88352003-04-19 Stefan Monnier <monnier@cs.yale.edu>
8836
8837 * eval.c (Fapply): Undo last change and add a comment about why.
8838
c6464167
MB
88392003-04-18 Miles Bader <miles@gnu.org>
8840
8841 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
8842 pickier PARSE_MULTIBYTE_SEQ.
8843
e509f168
SM
88442003-04-17 Stefan Monnier <monnier@cs.yale.edu>
8845
8846 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
8847 Use XCDR, XCAR, CONSP.
8848 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
8849 (Fapply): Remove unnecessary GCPRO.
8850
8851 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
8852
8853 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
8854
8855 * buffer.h: Don't hardcode BEG==1.
8856
8857 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
8858
5ceea398
RS
88592003-04-16 Richard M. Stallman <rms@gnu.org>
8860
8861 * xdisp.c (try_window, try_window_reusing_current_matrix):
8862 When at end of window, set window_end_pos to Z-ZV.
8863
8864 * buffer.c (Foverlay_recenter): Doc fix.
8865
e509f168
SM
88662003-04-14 Stefan Monnier <monnier@cs.yale.edu>
8867
8868 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
8869
d243e605
AC
88702003-04-14 Andrew Choi <akochoi@shaw.ca>
8871
8872 * macterm.c (mac_check_for_quit_char): Don't check more often than
8873 once a second.
8874
6901b111
SM
88752003-04-11 Stefan Monnier <monnier@cs.yale.edu>
8876
8877 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
8878 specially, so that they can't hide an implicit switch-frame event.
8879 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
8880 (head_table): Use switch-frame as event_kind for select-window.
8881 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
8882
8883 * editfns.c (Fformat): Lisp_Object/int mixup.
8884 (format2): Remove unused var numargs.
8885
e301806f 88862003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 8887
6901b111 8888 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
8889 (Qafter_insert_file_set_coding): New variable.
8890 (syms_of_fileio): Initialize and staticpro it. Delete declaration
8891 for after-insert-file-adjust-coding-function.
8892 (Finsert_file_contents): Call Qafter_insert_file_set_coding
8893 instead of Vafter_insert_file_adjust_coding_function.
8894
38914424
KH
88952003-04-11 Kenichi Handa <handa@m17n.org>
8896
8897 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
8898
8899 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
8900 string. Callers changed.
8901
89022003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 8903
6901b111 8904 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 8905 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
8906 (Finsert_file_contents):
8907 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
8908 decode-format.
8909
f979dc05
JD
89102003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8911
8912 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
8913 get GtkAdjustment as widget now is a GtkRange.
8914
8915 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
8916 GtkRange to avoid memory leak.
8917
f8c6b4c2 89182003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 8919
50ebc53d
KH
8920 * xfaces.c (Vface_font_rescale_alist): New variable.
8921 (struct font_name): New member rescale_ratio.
8922 (font_rescale_ratio): New function.
6901b111 8923 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
8924 (better_font_p): On comparing point sized, pay attention to
8925 recale_ratio member of fonts.
8926 (build_scalable_font_name): Reflect font->rescale_ratio in the
8927 font name.
6901b111 8928 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 8929
cb98871c
KH
8930 * lread.c (read1): Before calling index, check if the 2nd
8931 arguemnt is in ASCII range.
8932
4773b8ca
RS
89332003-04-08 Richard M. Stallman <rms@gnu.org>
8934
b0ada147
RS
8935 * fileio.c (Ffile_symlink_p): Doc fix.
8936
8937 * editfns.c (Fformat): Translate positions of text properties
8938 in the format string to apply them to the result.
8939
4773b8ca
RS
8940 * fileio.c (Finsert_file_contents): Doc fix.
8941 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
8942
89432003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 8944
4773b8ca
RS
8945 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
8946
e8f25745 89472003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 8948
e8f25745
ST
8949 * mac.c (init_mac_osx_environment): Switch libexec and bin so
8950 that self-contained application finds libexec files.
8951
f8c6b4c2 89522003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 8953
6901b111
SM
8954 * coding.c (code_convert_region_unwind):
8955 Set Vlast_coding_system_used to the argument.
2310d84c
KH
8956 (code_convert_region): If post-read-conversion function changed
8957 the value of last-coding-sytem, keep the new value in
8958 coding->symbol so that it won't be overridden.
8959 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
8960 (coding_system_accept_latin_extra_p): New function.
8961 (find_safe_codings): Pay attention to characters registered in
8962 latin-extra-code-table.
2310d84c 8963
39c9a034
TTN
89642003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
8965
8966 * Makefile.in (md5.o): Add missing dependency info.
8967
eb67c5d6
RS
89682003-04-06 Richard M. Stallman <rms@gnu.org>
8969
8970 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
8971
8972 * marker.c (verify_bytepos): New function.
8973
8974 * intervals.c (set_intervals_multibyte_1): When becoming
8975 multibyte, adjust right and left child sizes to a whole set of
8976 characters. If an interval gets zero total-length, delete it.
8977 If an interval consists of just its children, delete one of them.
8978
8979 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
8980 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 8981
eb67c5d6
RS
8982 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
8983 All calls deleted.
8984 (lisp_malloc): Do the work here directly.
8985
b1f81fc5
JB
89862003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
8987
8988 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
8989 char tables.
8990
89912003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
8992
8993 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
8994 destructively change "%S" to "%s".
8995
774666fb
MB
89962003-04-03 Miles Bader <miles@gnu.org>
8997
8998 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
8999 always set.
9000
19c37f01
DL
90012003-04-01 Dave Love <fx@gnu.org>
9002
9003 * xfns.c (xpm_lookup_color): Grok "opaque".
9004
2f4b24c3
AC
90052003-03-31 Andrew Choi <akochoi@shaw.ca>
9006
9007 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
9008 parent window ID.
9009
9010 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
9011
9012 * macterm.h (struct mac_output): Define x_pixels_diff and
9013 y_pixels_diff.
b1f81fc5 9014
9443fcf6
JB
90152003-03-31 Juanma Barranquero <lektu@terra.es>
9016
9017 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
9018 blockinput.h and files included from it.
9019
e072891b
KS
90202003-03-31 Kim F. Storm <storm@cua.dk>
9021
9022 The following changes consolidates the common code related to
9023 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
9024 files into frame.c.
9443fcf6 9025
e072891b
KS
9026 * frame.c: Include blockinput.h.
9027 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
9028 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
9029 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
9030 related vars here.
9031 (struct frame_parm_table, frame_parms): New table for describing
9032 frame parameters and their associated Q-variable.
9033 The order of the parameters corresponds to the sequence of the
9034 frame_parm_handlers table in redisplay_interface.
9035 (x_fullscreen_move, x_set_frame_parameters)
9036 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
9037 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
9038 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9039 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
9040 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
9041 Generic functions for processing of frame parameters.
9042 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
9043 (display_x_get_resource, x_get_resource_string): Functions for
9044 generic access to X resources.
9045 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
9046 (x_default_parameter, Fx_parse_geometry): Functions for generic
9047 access to frame parameters.
6901b111
SM
9048 (x_figure_window_size): Generic calculation of frame size.
9049 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
9050 (syms_of_frame): Intern and staticpro frame parameter variables.
9051 Defvar_lisp Vx_resource_class and Vx_resource_name here.
9052 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 9053
e072891b
KS
9054 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
9055 parameter related vars defined in frame.c.
9056 (EMACS_CLASS): Define here.
9057 (enum FULLSCREEN_*): Define here.
9058 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
9059 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
9060 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
9061 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
9062 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
9063 (x_set_visibility, x_set_autoraise, x_set_autolower)
9064 (x_set_unsplittable, x_set_vertical_scroll_bars)
9065 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
9066 (x_figure_window_size): Add prototypes.
9067
9068 * dispextern.h (frame_parm_handler): New typedef.
9069 (struct redisplay_interface): New member frame_parm_handlers.
9070 (enum resource_types): Move declaration here.
9071 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
9072 (x_default_parameter): Add prototypes.
9073
9074 * window.c: Remove extern decl for frame parameter vars.
9075 (change_window_heights): New generic function;
9076 replaces x_change_window_heights. All users changed.
9077
9078 * window.h (change_window_heights): Add prototype.
9079
9080 * xfaces.c: Remove extern decl for frame parameter vars.
9081
9082 * xterm.h (EMACS_CLASS): Remove. Use generic define.
9083 (struct w32_display_info): Fix type of xrdb member.
9084 (enum FULLSCREEN_*): Remove.
9085 Remove prototypes for generic functions (in frame.h).
9086
9087 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9088 parameters now defined in frame.h and frame.c.
f63fd14e 9089 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
9090 (enum x_frame_parms): Remove (bogus, unused enum).
9091 (check_x_display_info): Make non-static (for frame.c).
9092 (struct x_frame_parm_table, x_frame_parms): Remove.
9093 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9094 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9095 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9096 (x_change_window_heights, x_set_autoraise, x_set_autolower)
9097 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9098 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9099 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9100 Remove. Use generic functions instead.
9101 (enum resource_types): Remove.
9102 (x_set_scroll_bar_default_width): New global function (for frame.c).
9103 (Fx_create_frame): Depend on x_figure_window_size to add space for
9104 toolbar and setup size_hint_flags.
9105 (x_frame_parm_handlers): New table for redisplay_interface.
9106 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 9107
e072891b 9108 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 9109 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
9110 (x_redisplay_interface): Add x_frame_parm_handlers member.
9111
9112 * w32gui.h (XrmDatabase): New (dummy) typedef.
9113
9114 * w32term.h (EMACS_CLASS): Remove. Use generic define.
9115 (struct w32_display_info): Fix type of xrdb member.
9116 (enum FULLSCREEN_*): Remove.
9117 (x_fullscreen_adjust): Remove prototype.
9118
9119 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9120 parameters now defined in frame.h and frame.c.
f63fd14e 9121 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
9122 (enum x_frame_parms): Remove (bogus, unused enum).
9123 (check_x_display_info): Make non-static (for frame.c).
9124 (struct x_frame_parm_table, x_frame_parms): Remove.
9125 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9126 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9127 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9128 (x_change_window_heights, x_set_autoraise, x_set_autolower)
9129 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9130 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9131 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9132 Remove. Use generic functions instead.
9133 (enum resource_types): Remove.
9134 (x_set_scroll_bar_default_width): New global function (for frame.c).
9135 (Fx_create_frame): Depend on x_figure_window_size to add space for
9136 toolbar and setup size_hint_flags.
9137 (w32_frame_parm_handlers): New table for redisplay_interface.
9138 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 9139
e072891b
KS
9140 * w32term.c: Remove unnecessary extern declarations.
9141 (x_fullscreen_adjust): Remove. Use generic instead.
9142 (x_redisplay_interface): Add w32_frame_parm_handlers member.
9143
9144 * w32reg.c (x_get_string_resource): Use XrmDatabase.
9145
9146 * macgui.h (XrmDatabase): New (dummy) typedef.
9147
9148 * macterm.h (EMACS_CLASS): Remove.
9149 (struct mac_display_info): Add xrdb member.
9150 (struct mac_output): Add want_fullscreen member.
9151
9152 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9153 parameters now defined in frame.h and frame.c.
f63fd14e 9154 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
9155 (check_x_display_info): Make non-static (for frame.c).
9156 (struct x_frame_parm_table, x_frame_parms): Remove.
9157 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9158 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9159 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9160 (x_change_window_heights, x_set_autoraise, x_set_autolower)
9161 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9162 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9163 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9164 Remove. Use generic functions instead.
9165 (enum resource_types): Remove.
9166 (x_set_scroll_bar_default_width): New global function (for frame.c).
9167 (mac_frame_parm_handlers): New table for redisplay_interface.
9168 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 9169
e072891b
KS
9170 * macterm.c: Remove unnecessary extern declarations.
9171 (x_redisplay_interface): Add mac_frame_parm_handlers member.
9172
3e6a560b
KS
9173 * Makefile.in (frame.o): Add dependency on blockinput.h and files
9174 included from it (atimer.h and systime.h).
9175
7b7b454e
AS
91762003-03-30 Andreas Schwab <schwab@suse.de>
9177
9178 * xdisp.c (x_insert_glyphs): Fix swapped width and height
9179 parameters for shift_glyphs_for_insert.
9180
9181 * macterm.c (x_redisplay_interface): Add missing entry for
9182 draw_vertical_window_border.
9183
beb402de
KG
91842003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
9185
9186 * fileio.c (Fexpand_file_name): In the no-handler case, after
9187 expanding, look again for a handler and invoke it. This is needed
9188 for filenames like "/foo/../user@host:/bar/../baz" -- the first
9189 expansion produces "/user@host:/bar/../baz" which needs to be
9190 expanded again for the finame result "/user@host:/baz".
9191
b676f356
JD
91922003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9193
9194 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
9195 of area to be redrawn for better performance.
9196
3c671a56
SM
91972003-03-28 Stefan Monnier <monnier@cs.yale.edu>
9198
9199 * xterm.c (take_vertical_position_into_account): Remove.
9200 (xt_action_hook): Call set_vertical_scroll_bar if needed.
9201 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
9202 (xm_scroll_callback, x_create_toolkit_scroll_bar)
9203 (x_set_toolkit_scroll_bar_thumb): Simplify.
9204 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
9205 (XTread_socket): Remove unused var.
9206 (x_make_frame_invisible): Replace goto with else.
9207
9208 * xdisp.c (set_vertical_scroll_bar): New fun.
9209 (redisplay_window): Use it.
9210
84f2e615
RS
92112003-03-26 Richard M. Stallman <rms@gnu.org>
9212
9213 * xdisp.c (update_tool_bar): Recompute tool bar if
9214 update_mode_lines is set. Set w->update_mode_line
9215 only if the tool bar contents actually change.
9216 (update_menu_bar): Undo previous change.
9217
70b6104c
JD
92182003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9219
5fd6f727
JD
9220 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
9221 (xg_frame_set_char_size): Calculate scroll bar width before frame
9222 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
9223 (xg_separator_p): Check for all documented separator types.
9224 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
9225 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
9226
70b6104c
JD
9227 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
9228 so tool bar gets updated.
9229
d9b36d19
SM
92302003-03-26 Stefan Monnier <monnier@cs.yale.edu>
9231
9232 * data.c (store_symval_forwarding): Re-instate part of the code
9233 that was deleted with too much enthusiasm.
9234
92352003-03-25 Stefan Monnier <monnier@cs.yale.edu>
9236
9237 * data.c (store_symval_forwarding): Delete special read-only
9238 hack for type == -1, since we now use ->constant instead.
9239 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
9240
9241 * buffer.c (overlays_in): Declare static.
9242 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
9243 `constant' field rather than the variable's `type' field.
9244
365fa1b3
AC
92452003-03-24 Andrew Choi <akochoi@shaw.ca>
9246
9247 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
9248
9249 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
9250
9251 * fns.c [MAC_OSX]: Do not redefine vector.
9252
9253 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
9254
9255 * macgui.h: Remove definition of No_Cursor.
9256
d9b36d19 9257 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
9258
9259 * xdisp.c: Define No_Cursor.
9260 (x_write_glyphs, notice_overwritten_cursor)
9261 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
9262 (note_mouse_highlight): Remove Mac-specific code.
9263 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 9264
c0bcce6f
JPW
92652003-03-24 John Paul Wallington <jpw@gnu.org>
9266
9267 * xdisp.c (redisplay_window): If mini window's buffer is not
9268 empty, then redisplay it like other windows.
9269
a526b96c
KS
92702003-03-23 Kim F. Storm <storm@cua.dk>
9271
9272 * w32term.c (w32_draw_window_cursor): Fix last change.
9273
37ab321e
KH
92742003-03-23 Kenichi Handa <handa@m17n.org>
9275
a526b96c
KS
9276 * alloc.c (make_string_from_bytes, make_specified_string):
9277 Add `const' for the arg CONTENTS.
37ab321e
KH
9278
9279 * lisp.h (make_string_from_bytes, make_specified_string):
9280 Prototypes adjusted.
9281
7863d625
JD
92822003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9283
a526b96c 9284 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 9285
7863d625
JD
9286 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
9287 (XG_SB_RANGE): New define.
9288
9289 * gtkutil.c (xg_fixed_handle_expose): New function.
9290 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
9291 expose events.
9292 (xg_update_scrollbar_pos): Take two more arguments, left and width
9293 of scroll bar including borders.
9294 Clear left and right part outside scroll bar separately as some
9295 themes have bars that are not an even number of pixels.
d9b36d19 9296 Don't set reallocate_redraws, don't call
7863d625
JD
9297 gdk_window_process_all_updates.
9298 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
9299 so no need to change it. Calculate size and value with XG_SB_RANGE.
9300
d9b36d19
SM
9301 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
9302 Pass left and width of scroll bar including borders to
7863d625
JD
9303 xg_update_scrollbar_pos.
9304
af0ad939
TTN
93052003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
9306
9307 * Makefile.in: Make sure space precedes end-of-line backslashes.
9308
b22139fd
KS
93092003-03-22 Kim F. Storm <storm@cua.dk>
9310
9311 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
9312 Add generic versions here. Remove system specific versions
9313 defined elsewhere.
9314
9315 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
9316 Add prototypes.
9317
6e6410cf
KS
9318 * xterm.h (STORE_NATIVE_RECT): New macro.
9319
5c9cc435
KS
93202003-03-21 Kim F. Storm <storm@cua.dk>
9321
00c64fab
SM
9322 * xdisp.c (get_glyph_string_clip_rect):
9323 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
9324
9325 * dispextern.h (struct redisplay_interface): Add active_p
9326 argument to draw_window_cursor member. All uses changed.
9327
acd37560
KS
93282003-03-21 Kim F. Storm <storm@cua.dk>
9329
9330 The following changes consolidate code related to writing and
9331 inserting glyphs, exposing frame, the tool bar, the mouse face,
9332 the output cursor, and help echo from xterm.c, w32term.c and
9333 macterm.c into xdisp.c. It also generalizes the use of the
9334 window_part enum instead of using numeric values throughout.
af0ad939 9335
acd37560
KS
9336 * xdisp.c: Consolidate gui-independent code here.
9337 Include keymap.h.
9338 (Qhelp_echo): Import.
9339 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
9340 (help_echo_string, help_echo_window, help_echo_object)
9341 (previous_help_echo_string, help_echo_pos): Declare here.
9342 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
9343 (estimate_mode_line_height): Define here. Handle windowing
9344 systems directly (without using estimate_mode_line_height_hook).
9345 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
9346 (update_window_cursor, update_cursor_in_window_tree)
9347 (fast_find_position, fast_find_string_pos)
9348 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
9349 (expose_area, expose_line, expose_overlaps, expose_window)
9350 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
9351 declared static as they are only used locally in xdisp.c.
9352 (draw_glyphs): Rename from x_draw_glyphs and make static.
9353 (tool_bar_item_info, notice_overwritten_cursor): Make static.
9354 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
9355 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 9356 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
9357 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
9358 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
9359 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
9360 (note_mouse_highlight, x_clear_window_mouse_face)
9361 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
9362 (x_intersect_rectangles): New generic functions for use by xdisp.c
9363 and GUI front-ends.
9364 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
9365 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
9366
9367 * dispextern.h (Display_Info): Generic typedef for *_display_info.
9368 (NativeRectangle): Generic typedef for rectangle type.
9369 (enum window_part): Move here from window.c.
9370 (struct redisplay_interface): New members flush_display_optional,
9371 define_frame_cursor, clear_frame_area, draw_window_cursor,
9372 draw_vertical_window_border, shift_glyphs_for_insert.
9373 Rename member clear_mouse_face to clear_window_mouse_face.
9374 (estimate_mode_line_height_hook): Remove hook.
9375 (auto_raise_tool_bar_buttons_p): Don't declare extern.
9376 (tool_bar_item_info): Remove prototype.
9377 (help_echo_string, help_echo_window, help_echo_object)
9378 (previous_help_echo_string, help_echo_pos)
9379 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
9380 (x_stretch_cursor_p, output_cursor): Declare extern.
9381 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
9382 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
9383 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
9384 (display_and_set_cursor, set_output_cursor, x_cursor_to)
9385 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
9386 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
9387 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
9388 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
9389 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
9390 Add prototypes.
9391 (mode_line_string, marginal_area_string): Fix prototypes.
9392
9393 * window.c (enum window_part): Move to dispextern.h.
9394 (coordinates_in_window): Use enum window_part member names
9395 instead of numbers to describe return value.
9396 (struct check_window_data): Change part member to window_part.
9397 (check_window_containing): Return window_part unaltered.
9398 (window_from_coordinates): Change part arg from int to enum
9399 window_part. Allow part arg to be null. All users changed.
9400
9401 * window.h (window_from_coordinates): Fix prototype.
9402
9403 * term.c (estimate_mode_line_height): Move to xdisp.c.
9404
9405 * keyboard.c (make_lispy_event): Use enum window_part.
9406
9407 * dispnew.c (mode_line_string, marginal_area_string): Use enum
9408 window_part instead of int in arg list. Users changed.
9409
9410 * xterm.h (No_Cursor): Declare as None for X.
9411 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 9412
acd37560
KS
9413 * xterm.c: Remove consolidated defines and code.
9414 (BETWEEN): Remove unused macro.
9415 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
9416 (x_define_frame_cursor, x_clear_frame_area)
9417 (x_draw_window_cursor): New X-specific functions for RIF.
9418 (x_redisplay_interface): Add new members.
9419
9420 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
9421
9422 * w32term.h (struct w32_output): Remove cross_cursor member.
9423
9424 * w32term.c: Remove consolidated defines and code.
9425 (BETWEEN): Remove unused macro.
9426 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
9427 (w32_define_frame_cursor, w32_clear_frame_area)
9428 (w32_draw_window_cursor): New W32-specific functions for RIF.
9429 (w32_redisplay_interface): Add new members.
9430
a64387ee 9431 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
9432 (XRectangle): Add X compatible rectangle type.
9433 (NativeRectangle): Declare as RECT for W32.
9434 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
9435
9436 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
9437
9438 * w32console.c: Remove consolidated defines and code.
af0ad939 9439
acd37560
KS
9440 * msdos.h (Display_Info): Add generic typedef.
9441
9442 * msdos.c: Remove consolidated defines and code.
9443 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
9444
9445 * macterm.h (struct mac_output): Replace member cross_cursor by
9446 hand_cursor.
9447 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
9448
9449 * macterm.c: Remove consolidated defines and code.
9450 (BETWEEN): Remove unused macro.
9451 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
9452 (mac_define_frame_cursor, mac_clear_frame_area)
9453 (mac_draw_window_cursor): New Mac-specific functions for RIF.
9454 (x_redisplay_interface): Add new members.
9455
9456 * macgui.h (No_Cursor): Define as 0 for Mac.
9457 (XRectangle): Add X compatible rectangle type.
9458 (NativeRectangle): Declare as Rect for Mac.
9459 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
9460
204ccab1
KS
9461 * macfns.c (x_set_mouse_color): Setup hand_cursor.
9462 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 9463
9443fcf6 9464 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
9465 included from it. Add dependency on keymap.h.
9466
9467 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
9468
8ba01a70 94692003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
9470
9471 * fileio.c (Fexpand_file_name): Fix previous change.
9472
8ba01a70 94732003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
9474
9475 * fileio.c (Ffile_name_directory): Reconstruct file name by
9476 make_specified_string.
9477 (Ffile_name_nondirectory, Ffile_name_as_directory)
9478 (Fdirectory_file_name, Fexpand_file_name)
9479 (Fsubstitute_in_file_name): Likewise.
9480 (Fread_file_name): Compare decoded homedir with DIR and
9481 DEFAULT_FILENAME.
9482
9483 * alloc.c (make_specified_string): If NCHARS is negative, count
9484 the number of characters.
9485
19536747
JD
94862003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9487
de38ae5a
JD
9488 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
9489 all widgets.
9490
19536747
JD
9491 * gtkutil.h: Removed xg_ignore_next_thumb.
9492
37ab321e 94932003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
9494
9495 * coding.c (Vchar_coding_system_table): Remove this variable.
9496 (Vcoding_system_safe_chars): New variable.
9497 (intersection): Remove this function.
9498 (find_safe_codings): Don't use Vchar_coding_system_table, but try
9499 all codings in SAFE_CODINGS.
00c64fab 9500 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
9501 find_safe_codings. Get generic coding systems from
9502 Vcoding_system_safe_chars.
9503 (Fdefine_coding_system_internal): New function.
9504 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
9505 Initialize and staticpro Vcoding_system_safe_chars.
9506
17097258
JD
95072003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9508
2a2071c3
JD
9509 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
9510 equal old values before updating.
9511
17097258
JD
9512 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
9513
9514 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
9515
95162003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9517
9518 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
9519 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
9520 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
9521 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
9522 (xg_create_scroll_bar): Pass bar to button event callback.
9523 (xg_find_top_left_in_fixed): New function.
9524 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
9525 whole scroll bar area. Get old position with
9526 xg_find_top_left_in_fixed, calculate and only clear needed areas.
9527 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
9528 dragging is in progress. Calculate whole as for Motif.
9529 Remove code that saved last values. Call gtk_range functions to
9530 set scroll bar sizes.
9531
9532 * gtkutil.h: Removed xg_ignore_next_thumb.
9533
8cb9dfbf
JB
95342003-03-17 Juanma Barranquero <lektu@terra.es>
9535
9536 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
9537 and files included from it.
9538
00c64fab
SM
95392003-03-18 Stefan Monnier <monnier@cs.yale.edu>
9540
9541 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
9542 multiple occurrences of the same keymap under different prefixes.
9543 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
9544
c45bb3b2
JR
95452003-03-16 Jason Rumney <jasonr@gnu.org>
9546
9547 * w32gui.h: Use HDC for Display.
9548
9549 * w32term.c (w32_encode_char): Prevent double-byte chars from
9550 crashing Emacs.
9551
9552 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
9553 as binary.
9554
2a6d0874
JB
95552003-03-16 Juanma Barranquero <lektu@terra.es>
9556
9557 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
9558
03eb5fab
KS
95592003-03-16 Kim F. Storm <storm@cua.dk>
9560
9561 The following changes consolidate some of the gui-independent
9562 parts of the processing and drawing of "glyph strings" from
9563 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 9564
03eb5fab
KS
9565 * dispextern.h (struct glyph): Reduce face_id member from 22 to
9566 21 bits (this reduces number of faces from 4M to 2M).
9567 Replace W32 specific w32_font_type member (2 bits) by generic
9568 font_type member (3 bits) for portability.
9569 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
9570 (enum draw_glyphs_face): Define here.
9571 (struct glyph_string): Define here. Merge W32 and X versions.
9572 (struct redisplay_interface): New members per_char_metric,
9573 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
9574 (VCENTER_BASELINE_OFFSET): Define here.
9575 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
9576 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
9577
9578 * xdisp.c: Consolidate gui-independent "glyph string" code here.
9579 (dump_glyph_string): Moved here.
9580 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
9581 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
9582 (fill_composite_glyph_string, fill_glyph_string)
9583 (fill_image_glyph_string, fill_stretch_glyph_string)
9584 (left_overwritten, left_overwriting, right_overwritten)
9585 (right_overwriting, get_char_face_and_encoding)
9586 (set_glyph_string_background_width, compute_overhangs_and_x)
9587 (append_glyph, append_composite_glyph, produce_image_glyph)
9588 (take_vertical_position_into_account, append_stretch_glyph)
9589 (produce_stretch_glyph): New generic functions (based on X version).
9590 Call platform specific functions through rif.
9591 (INIT_GLYPH_STRING): New macro, hides W32 details.
9592 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
9593 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
9594 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
9595 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
9596 (notice_overwritten_cursor):
9597 Generic functions exported to platform modules. Users changed.
9598
9599 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
9600 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
9601 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 9602 New macros for consolidated code.
2a6d0874 9603
03eb5fab
KS
9604 * xterm.c: Remove consolidated defines and code.
9605 (x_per_char_metric, x_encode_char)
9606 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
9607 (x_redisplay_interface): Add new members.
9608
9609 * w32gui.h (Display): Add dummy typedef for consolidation.
9610 (XChar2b): Define alias for wchar_t for consolidation.
9611 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9612
9613 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 9614 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
9615 New macros for consolidation.
9616
fad49844 9617 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
9618 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
9619 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
9620 (w32_per_char_metric): Change font_type arg to int for RIF.
9621 (w32_encode_char): Return int according to RIF requirements.
9622 (w32_compute_glyph_string_overhangs): Adapt to RIF.
9623 (w32_get_glyph_overhangs): New function for RIF. Uses generic
9624 x_get_glyph_overhangs.
9625 (w32_redisplay_interface): Add new members.
9626
9627 * macgui.h (XChar2b): Move typedef here for consolidation.
9628 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9629
9630 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
9631 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
9632 consolidation.
9633
9634 * macterm.c: Remove consolidated defines and code.
9635 (mac_per_char_metric): New function for RIF.
00c64fab 9636 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
9637 (mac_compute_glyph_string_overhangs): Adapt for RIF.
9638 (x_redisplay_interface): Add new members.
9639
00c64fab
SM
96402003-03-15 Stefan Monnier <monnier@cs.yale.edu>
9641
9642 * keymap.c (Vmenu_events): New var.
9643 (syms_of_keymap): Initialize it.
9644 (where_is_internal): Check more carefully what is a menu event.
9645
225c7a07
RS
96462003-03-14 Richard M. Stallman <rms@gnu.org>
9647
9648 * lread.c (read1): After #!, exit loop on eof.
9649
cea9be54
JD
96502003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9651
9ea0e54d
JD
9652 * gtkutil.h: Add declaration for xg_frame_cleared.
9653
0cb35f4e
JD
9654 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
9655
cea9be54
JD
9656 * gtkutil.c (struct xg_last_sb_pos): New structure.
9657 (handle_fixed_child): New function.
9658 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
9659 and force a redraw on them.
9660 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
9661 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
9662 so we can avoid unneeded redraws.
9663 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
9664 and force a redraw on the scroll bar.
9665 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
9666 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 9667 (xg_frame_cleared): New function.
cea9be54 9668
20b853f3
KH
96692003-03-13 Kenichi Handa <handa@m17n.org>
9670
9671 * coding.c (Fdetect_coding_region): Fix docstring.
9672 (Fdetect_coding_string): Fix docstring.
9673
7a555aff
AS
96742003-03-13 Andreas Schwab <schwab@suse.de>
9675
25cc0080
AS
9676 * gtkutil.c: Add prototype for create_menus.
9677
30225431
AS
9678 * data.c (long_to_cons): Fix type of top.
9679
9680 * xselect.c (selection_data_to_lisp_data): Use int instead of
9681 long for an integer of size 4.
9682
7a555aff 9683 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 9684 (xg_tool_bar_help_callback): Likewise.
7a555aff 9685
a3e4741f
AS
96862003-03-12 Andreas Schwab <schwab@suse.de>
9687
9688 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
9689
9668be7c
KS
96902003-03-12 Kim F. Storm <storm@cua.dk>
9691
03eb5fab 9692 The following changes consolidate the fringe handling from
9668be7c 9693 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 9694
9668be7c
KS
9695 * xdisp.c: Consolidate fringe handling code here.
9696 (left_bits, right_bits, continued_bits, continuation_bits)
9697 (ov_bits, zv_bits): Define fringe bitmaps.
9698 (fringe_bitmaps): New array holding fringe bitmaps.
9699 (draw_fringe_bitmap): Draw a specific bitmap; call display
9700 specific drawing routine via rif->draw_fringe_bitmap.
9701 (draw_row_fringe_bitmaps): Generic replacement for
9702 x_draw_row_fringe_bitmaps; all callers changed.
9703 (compute_fringe_widths): Generic replacement for
9704 x_compute_fringe_widths; all callers changed.
9705
9706 * dispextern.h (enum fringe_bitmap_type): Define here.
9707 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
9708 (fringe_bitmaps): Declare extern.
9709 (struct redisplay_interface): New member draw_fringe_bitmap.
9710 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
9711
9712 * xterm.c: Remove generic fringe code.
9713 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9714 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9715
9716 * w32term.c: Remove generic fringe code.
9717 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
9718 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 9719
9668be7c
KS
9720 * macterm.c: Remove generic fringe code.
9721 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9722 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9723
00a88f32
SM
97242003-03-11 Stefan Monnier <monnier@cs.yale.edu>
9725
9726 * print.c (Fprin1_to_string): Return unibyte string if possible.
9727
1d1de695
DK
97282003-03-09 David Kastrup <dak@gnu.org>
9729
9730 * process.c (read_process_output): We have allocated enough space
9731 for readmax and carryover, so actually use the alloted space.
9732
257f40f2
JD
97332003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9734
9735 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
9736 toolkit scrollbar click.
9737
9738 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
9739 for USE_GTK.
9740 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
9741 also.
9742 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
9743 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 9744
78819ebb 9745 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
9746
9747 * gtkutil.c (xg_get_scroll_id_for_window): New function.
9748 (xg_tool_bar_item_expose_callback): New function.
9749 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
9750 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
9751 on the tool bar widget.
9752 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
9753 to expose on the tool bar item widgets.
9754
15213141
JD
97552003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9756
26b74a0b 9757 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 9758 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
9759 deleted from the image cache).
9760
15213141
JD
9761 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
9762 the event isn't for a frame (i.e. for dialogs).
9763
20b853f3 97642003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
9765
9766 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
9767 composition components reaches the limit, terminate composing.
9768 (COMPOSITION_OK): New macro.
00a88f32 9769 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
9770 composition is found.
9771 (coding_restore_composition): Adjust the number of composition
9772 components if it is not sane.
9773
c9029fe5
JB
97742003-03-06 Juanma Barranquero <lektu@terra.es>
9775
9776 * w32term.h (struct w32_display_info): Add xrdb member to support
9777 passing resources via -xrm on Windows.
9778
9779 * w32term.c (w32_make_rdb): New function.
9780 (w32_term_init): Use it to initialize xrdb member of w32_display_info
9781 struct. Delete leftover code.
9782
9783 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
9784 for resources passed on the command line.
9785
9786 * w32reg.c (w32_get_rdb_resource): New function.
9787 (x_get_string_resource): Use it, so resources passed with -xrm
9788 supercede the ones in the registry.
9789
9d00001f
JD
97902003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9791
9792 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
9793 instead of x_top_window_to_frame.
9794
ca2417b9
JD
97952003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9796
9797 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
9798 when restarting Emacs.
9799
5b20caf0
RS
98002003-03-03 Richard M. Stallman <rms@gnu.org>
9801
9802 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
9803 to run kill-buffer-query-functions.
9804 (Qkill_buffer_query_functions): New var.
9805 (syms_of_buffer): Init and staticpro it.
9806
58e91b77
JD
98072003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9808
9809 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
9810
932357b4
KS
98112003-02-25 Kim F. Storm <storm@cua.dk>
9812
9813 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
9814 If centering point failed to make whole line visible and vscroll
9815 is non-zero, disable vscroll and try centering point again.
9816
9817 * lread.c (read1): Accept `single space' syntax like (? x).
9818
bb8db7e1
JD
98192003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9820
9821 * keyboard.c (cancel_hourglass_unwind): Surround with
9822 #ifdef HAVE_X_WINDOWS
9823
47d77aab
KH
98242003-02-25 Kenichi Handa <handa@m17n.org>
9825
9826 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
9827 process only when "subprocesses" is defined.
9828
6a097c0c
SM
98292003-02-24 Stefan Monnier <monnier@cs.yale.edu>
9830
9831 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
9832
0b063c27
JB
98332003-02-24 Juanma Barranquero <lektu@terra.es>
9834
d1135afc
JB
9835 * callint.c (fix_command): Declare as static void and move before
9836 Fcall_interactively.
9837
0b063c27
JB
9838 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
9839 (syms_of_xdisp): Don't initialize Qwhen.
9840
0af912f0
JD
98412003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9842
9843 * keyboard.c (cancel_hourglass_unwind): New function.
9844 (command_loop_1): Cancel hourglass with unwind-protect.
9845
120d0a23
RS
98462003-02-23 Richard M. Stallman <rms@gnu.org>
9847
9848 * callint.c (fix_command): New subroutine, from Fcall_interactively.
9849 Detect (when ... (region-beginning)) etc.
9850 (Fcall_interactively): Call fix_command.
9851 (Qif, Qwhen): New variables.
9852 (syms_of_callint): Init and staticpro them.
0b063c27 9853
120d0a23
RS
9854 * regex.c (print_partial_compiled_pattern): Output to stderr.
9855
4ece81a6
KG
98562003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9857
9858 * dired.c (directory_files_internal): Don't expand directory.
9859 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
9860 instead. From Lars Hansen <larsh@math.ku.dk>.
9861
e52bd6b7
SM
98622003-02-22 Stefan Monnier <monnier@cs.yale.edu>
9863
9864 * fns.c (string_to_multibyte): Remove unused var i.
9865 (Flanginfo): Fix int/Lisp_Object mixup.
9866 (void_call2): New fun.
9867 (Fmap_char_table): Use it in place of call2.
9868
9869 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
9870
9871 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
9872
9873 * keymap.c (copy_keymap_1): Make it static.
9874
9875 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
9876
c33ef7c4
JB
98772003-02-22 David Ponce <david@dponce.com>
9878
9879 * lread.c (Fload): Don't check STRING_MULTIBYTE.
9880
16782258
JD
98812003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9882
9883 * process.h: Removed subtty field from struct Lisp_Process.
9884
9885 * process.c (create_process): Remove setting of subtty.
9886 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
9887 (Fprocess_running_child_p, process_send_signal):
9888 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
9889 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
9890
3abeca61
KG
98912003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
9892
9893 * keymap.c (Fdefine_key): Doc fix.
9894
92a8ce63
JB
98952003-02-21 Juanma Barranquero <lektu@terra.es>
9896
9897 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
9898
9899 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
9900 POLLING_PROBLEM_IN_SELECT.
9901
9902 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
9903 Delete #undef of POLLING_PROBLEM_IN_SELECT.
9904
9905 * s/hpux10-20.h: New file.
9906
e52bd6b7
SM
9907 * process.c (wait_reading_process_input):
9908 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 9909
20f1ef2e
KH
99102003-02-20 Kenichi Handa <handa@m17n.org>
9911
32d0a9dc
KH
9912 * fontset.c (check_fontset_name): If NAME is nil, return the
9913 default fontset.
9914 (override_font_info): New function.
e52bd6b7 9915 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
9916 (Ffontset_info): If FONTSET is not the default fontset, merge
9917 FONTSET onto the copy of the default fontset, and work on that
9918 copy. Document that NAME nil means the default fontset.
9919 (Ffontset_font): Document that NAME nil means the default fontset.
9920
20f1ef2e
KH
9921 * process.c (setup_process_coding_systems): If the process's
9922 in/out descriptor is -1, do nothing.
9923
77d1daf2
AS
99242003-02-19 Andreas Schwab <schwab@suse.de>
9925
e52bd6b7
SM
9926 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
9927 Add prototypes.
77d1daf2 9928
f9a45bb3
KH
99292003-02-19 Kenichi Handa <handa@m17n.org>
9930
9931 * xfaces.c (try_alternative_families): Try all scalable fonts if
9932 Vscalable_fonts_allowed is not Qt.
9933
72ecb43c
JD
99342003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9935
9936 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
9937
ee5be7c3
JD
99382003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9939
9940 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
9941 names.
9942
9943 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 9944 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
9945 x_face_list_fonts.
9946 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
9947 (Fx_list_fonts): Set maxnames to -1 to get all font names.
9948
4cd519a7
KS
99492003-02-18 Kim F. Storm <storm@cua.dk>
9950
068f9882
KS
9951 * lread.c (read1): Fix last change.
9952 "`" is not always special. Allow "?" after a character constant.
4cd519a7 9953
7290a344
AC
99542003-02-18 Andrew Choi <akochoi@shaw.ca>
9955
9956 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
9957
1f7fa69b
AS
99582003-02-18 Andreas Schwab <schwab@suse.de>
9959
9960 * window.c (window_scroll_pixel_based): Move outside a
9961 multi-glyph character before setting new window start.
9962
9963 * xdisp.c (in_display_vector_p): New function.
9964 * dispextern.h (in_display_vector_p): Declare.
9965
23e21195
KS
99662003-02-18 Kim F. Storm <storm@cua.dk>
9967
9968 * lread.c (read1): Fix and relax read syntax.
9969 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
9970 Only recognize "," after dotted-pair dot if inside backquote.
9971 Never include "`" or "," (inside backquote) in a symbol.
9972 Allow dotted-pair dot after a character constant.
9973 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 9974
f098b121
JD
99752003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9976
9977 * gtkutil.c (xg_tool_bar_expose_callback): New function.
9978 (xg_create_tool_bar): Force style of tool bar to be horizontal with
9979 icons. Set name of tool bar to emacs-toolbar.
9980 (update_frame_tool_bar): Connect expose event to
9981 xg_tool_bar_expose_callback.
9982
63020c46
RS
99832003-02-17 Richard M. Stallman <rms@gnu.org>
9984
9985 * keyboard.c (this_command_key_count_reset): New variable.
9986 Initiatize to 0 where this_command_key_count is set.
9987 (read_char): Save and restore this_command_key_count_reset
9988 around input method code.
9989 (read_char): If this_command_key_count_reset, echo reread commands.
9990 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
9991
fb4452cc
KH
99922003-02-17 Kenichi Handa <handa@m17n.org>
9993
9994 * fns.c (string_to_multibyte): Always return a multibyte string.
9995
bd11cc09
JR
99962003-02-16 Jason Rumney <jasonr@gnu.org>
9997
e52bd6b7
SM
9998 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
9999 Negative max_fonts parameter means list all.
bd11cc09 10000
4cdf4bde
DL
100012003-02-14 Dave Love <fx@gnu.org>
10002
10003 * fns.c (Flanginfo): Doc fix.
10004
023b93f6
KS
100052003-02-13 Kim F. Storm <storm@cua.dk>
10006
37cd4238
KS
10007 * lread.c (read_escape): Interpret \s as a SPACE character, except
10008 for \s-X in a character constant which still is the super modifier.
10009 (read1): Signal an `invalid read syntax' error if a character
10010 constant is immediately followed by a digit or symbol character.
10011
140a6b7e
KS
10012 * search.c (Fmatch_data): Doc fix. Explicitly state that
10013 match-data is undefined if last search failed.
10014
3419757d 10015 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
10016 All uses changed.
10017
7d5c86e5
JB
100182003-02-12 Juanma Barranquero <lektu@terra.es>
10019
10020 * eval.c (Fdefmacro): Fix typo.
10021
295fff2c
KS
100222003-02-12 Kim F. Storm <storm@cua.dk>
10023
10024 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
10025 macro is a string, convert meta modifiers in string when copying
10026 the string into a vector.
10027
60f3202d
KS
100282003-02-11 Kim F. Storm <storm@cua.dk>
10029
10030 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
10031
61cb0b53
KH
100322003-02-11 Kenichi Handa <handa@m17n.org>
10033
10034 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
10035
7392e23c
KS
100362003-02-10 Kim F. Storm <storm@cua.dk>
10037
10038 * process.c: Doc fixes.
10039 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
10040
ce4254bd
KH
100412003-02-10 Kenichi Handa <handa@m17n.org>
10042
9c7a329a
KH
10043 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
10044
ce4254bd
KH
10045 * process.c (QCfilter_multibyte): New variable.
10046 (setup_process_coding_systems): New function.
e52bd6b7
SM
10047 (Fset_process_buffer, Fset_process_filter):
10048 Call setup_process_coding_systems.
ce4254bd
KH
10049 (Fstart_process): Initialize the member `filter_multibyte' of
10050 struct Lisp_Process.
10051 (create_process): Call setup_process_coding_systems.
10052 (Fmake_network_process): New keyward `:filter-multibyte'.
10053 Initialize the member `filter_multibyte' of struct Lisp_Process.
10054 Call setup_process_coding_systems.
10055 (server_accept_connection): Call setup_process_coding_systems.
10056 (read_process_output): If the process has a filter, decide the
10057 multibyteness of a string to given to the filter by
10058 `filter_multibyte' member of the process. If the process doesn't
10059 have a filter and the result of conversion is unibyte, use
10060 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
10061 multibyte form.
10062 (Fset_process_coding_system): Call setup_process_coding_systems.
10063 (Fset_process_filter_multibyte): New function.
10064 (Fprocess_filter_multibyte_p): New function.
10065 (syms_of_process): Intern and staticpro QCfilter_multibyte.
10066 Defsubr Sset_process_filter_multibyte and
10067 Sprocess_filter_multibyte_p.
10068
10069 * process.h (struct Lisp_Process): New member filter_multibyte.
10070
10071 * lisp.h (setup_process_coding_systems): Add prototype.
10072
10073 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
10074 process, update coding systems for the process.
10075
b08d5f59
KH
100762003-02-09 Kenichi Handa <handa@m17n.org>
10077
10078 * fns.c (string_to_multibyte): New function.
10079 (Fstring_to_multibyte): New function.
10080 (syms_of_fns): Defsubr it.
10081
0dfd93c0
AS
100822003-02-08 Andreas Schwab <schwab@suse.de>
10083
10084 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
10085 instead of the substitution.
10086
7b76ca1c
JD
100872003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10088
10089 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
10090
10091 * xmenu.c (menu_position_func): Adjust menu popup position so that
10092 the menu is fully visible.
7b76ca1c 10093
2436a4e4
JD
100942003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10095
10096 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
10097 (x_make_frame_invisible, x_wm_set_icon_position):
10098 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
10099
10100 * xfns.c (x_set_name, x_set_title): Ditto.
10101
37d1e680
RS
101022003-02-04 Richard M. Stallman <rms@gnu.org>
10103
10104 * keyboard.c (echo_now): Update before_command_echo_length.
10105 (Freset_this_command_lengths): Reset this_command_key_count etc.
10106 immediately rather than arranging to do it later.
10107 (before_command_key_count_1, before_command_echo_length_1)
10108 (before_command_restore_flag): Vars deleted.
10109 (add_command_key): Don't handle before_command_restore_flag.
10110 (read_char, record_menu_key): Don't update before_command_key_count or
10111 before_command_echo_length.
10112 (read_char): Don't handle before_command_restore_flag.
10113
10114 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
10115 in direct-output clauses if it wouldn't be called in the ordinary case.
10116
578846a3
KS
101172003-02-04 Kim F. Storm <storm@cua.dk>
10118
10119 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
10120
49853a4d
JD
101212003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10122
10123 * gtkutil.c (remove_from_container): Copying list is not needed.
10124 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
10125 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
10126 on list returned from gtk_container_get_children to avoid memory leak.
10127
8b53dc06
JR
101282003-02-01 Jason Rumney <jasonr@gnu.org>
10129
5d54d177
JR
10130 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
10131 local malloc.
10132 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
10133 definitions in xpm.h.
10134 (init_xpm_functions): New function.
f63fd14e 10135 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
10136 (init_external_image_libraries): Try to load libXpm.dll.
10137
8b53dc06
JR
10138 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
10139 timestamp.
10140
b222e415
DL
101412003-01-31 Dave Love <fx@gnu.org>
10142
10143 * syntax.c (Fskip_chars_forward)
10144 (open-paren-in-column-0-is-defun-start): Doc fix.
10145
c60ee5e7
JB
101462003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
10147
10148 * fileio.c: Support // at start of name for Cygwin (just added proper
10149 preprocessor tests).
10150
10151 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
10152
10153 * Makefile.in: Use @EXEEXT@ for Cygwin.
10154
10155 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
10156
10157 * s/cygwin.h: Added for Cygwin port.
10158
53b37591
JB
101592003-01-31 Juanma Barranquero <lektu@terra.es>
10160
10161 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
10162 when including gif_lib.h.
fe929957 10163 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
10164 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
10165 Windows. Disable color table lookups. Call library functions
53b37591 10166 through pointers determined at runtime.
fe929957
JB
10167 (init_external_image_libraries): Try to load libungif.dll and
10168 libtiff.dll.
53b37591 10169
45415a8f
KH
101702003-01-31 Kenichi Handa <handa@m17n.org>
10171
10172 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 10173 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 10174
a97e4138
JD
101752003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10176
e52bd6b7 10177 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 10178
6eed9bed
DL
101792003-01-30 Dave Love <fx@gnu.org>
10180
10181 * alloc.c (Vgc_elapsed, gcs_done): New variables.
10182 (Fgarbage_collect): Use them.
10183 (init_alloc, syms_of_alloc): Set them up.
10184
100dcd40
JB
101852003-01-30 Juanma Barranquero <lektu@terra.es>
10186
10187 * w32fns.c (init_external_image_libraries): Add missing operator.
10188
fbd852af
JR
101892003-01-29 Jason Rumney <jasonr@gnu.org>
10190
10191 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
10192 an alternative name for jpeg.dll.
10193
8a2d8020
KH
101942003-01-29 Kenichi Handa <handa@m17n.org>
10195
10196 * xdisp.c (set_cursor_from_row): Pay attention to string display
10197 properties.
10198
058c18c7
AC
101992003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
10200
10201 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
10202 <escape>.
10203 (keycode_to_xkeysym_table): Reformat and add more comments.
10204 (XTread_socket): Drop special case for backspace.
10205
385f11cf
AC
102062003-01-28 Andrew Choi <akochoi@shaw.ca>
10207
10208 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
10209 values in old-style RGB specs.
10210
c922a224
JB
102112003-01-27 Juanma Barranquero <lektu@terra.es>
10212
10213 * w32fns.c (init_external_image_libraries): Try alternate names for the
10214 jpeg dll.
10215
0a1d6de0
JD
102162003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10217
10218 * gtkutil.c (create_dialog, xg_separator_p)
10219 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
10220 before calling strcmp or strlen.
10221
a97e4138 102222003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
10223
10224 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
10225 and handle image load failure.
10226
28908312
JR
102272003-01-26 Jason Rumney <jasonr@gnu.org>
10228
10229 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
10230 New functions.
f63fd14e
JB
10231 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
10232 Disable color table lookups. Call jpeg library functions
28908312
JR
10233 through pointers determined at runtime.
10234 (init_external_image_libraries): Try to load jpeg.dll.
10235
84e47416
RS
102362003-01-25 Richard M. Stallman <rms@gnu.org>
10237
10238 * lisp.h: Declare format2 instead of format1.
10239
10240 * fileio.c (barf_or_query_if_file_exists):
10241 Call format2 instead of format1.
10242
10243 * editfns.c (format2): New function, replaces format1
10244 but takes exactly two Lisp Objects as format args.
10245
10246 * buffer.c (Fkill_buffer): Call format2 instead of format1.
10247
a97e4138 102482003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
10249
10250 * xterm.h: Change to return value of x_dispatch_event to int.
10251
10252 * xterm.c (x_filter_event): New function.
10253 (event_handler_gdk, XTread_socket): Call x_filter_event.
10254 (x_dispatch_event): Change to return value of finish.
10255 (event_handler_gdk): Use return value from x_dispatch_event.
10256
10257 * xfns.c (x_window): Call create_frame_xic for GTK version to
10258 initialize input methods.
10259
10260 * gtkutil.h: Add (void) prototypes.
10261
10262 * gtkutil.c (create_menus): Remove code that puts the help menu to
10263 the right.
10264
54eefef1
JR
102652003-01-25 Jason Rumney <jasonr@gnu.org>
10266
10267 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
10268 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
10269 (png_load): Adjust colors for Windows. Use Windows
10270 bitmaps. Disable color table lookups.
c262430d
JR
10271 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
10272 (init_png_functions): New function.
10273 (png_read_from_memory, png_load): Call png library functions
10274 through pointers determined at runtime.
10275 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
10276 (init_external_image_libraries): New function.
10277 (init_xfns): Call it.
54eefef1 10278
1a9e275b
AS
102792003-01-24 Andreas Schwab <schwab@suse.de>
10280
10281 * minibuf.c (Fminibuffer_message): Verify type of parameter.
10282
a97e4138 102832003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
10284
10285 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
10286 of static initializer.
10287
422eec7e
DL
102882003-01-24 Dave Love <fx@gnu.org>
10289
10290 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
10291 architectures.
10292
10293 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
10294 Use __alignof__.
10295
2a026b04
KH
102962003-01-24 Kenichi Handa <handa@m17n.org>
10297
10298 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 10299 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
10300 (command_loop_1): Call adjust_point_for_property with proper
10301 second arg.
10302
a18bb28d
JR
103032003-01-22 Jason Rumney <jasonr@gnu.org>
10304
10305 Sync changes with xterm.c and xfns.c.
10306
10307 * w32term.c (x_draw_glyph_string_foreground)
10308 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10309
10310 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
10311 phys_cursor's hpos is overwritten. This is still not completely
10312 correct, as it doesn't really make sense to use hpos at all to
10313 get the cursor glyph (as that is relative to the width of the
10314 characters on the line, which may have changed during the update).
10315
10316 * w32term.c (notice_overwritten_cursor): Handle the special case
10317 of the cursor being in the first blank non-text line at the
10318 end of a window.
10319
10320 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
10321 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
10322 Compute from the x position returned by x_draw_glyphs.
10323
10324 (x_display_and_set_cursor): Don't set phys_cursor_width here,
10325 except for NO_CURSOR and system caret, to make phys_cursor_width
10326 contain what its name suggests.
10327 (notice_overwritten_cursor): Consider the cursor image erased if
10328 the output area intersects the cursor image in y-direction.
10329
6a097c0c
SM
10330 * w32term.c (note_mode_line_or_margin_highlight): Rename from
10331 note_mode_line_highlight and extend.
a18bb28d
JR
10332
10333 * w32term.c (last_window): New variable.
10334 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
10335 (note_mouse_movement): Remove reimplemented code in #if 0.
10336
10337 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
10338 not update_mode_lines, and always set it to 1.
10339
ac6e47ef
JR
103402003-01-21 Jason Rumney <jasonr@gnu.org>
10341
10342 * w32fns.c (IDC_HAND): Define it if system headers don't.
10343
103442003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
10345
10346 * w32term.h (struct w32_output): New member hand_cursor.
10347 (WM_EMACS_SETCURSOR): New message definition.
10348
10349 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
10350 function w32_define_cursor.
10351 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
10352 position, change member name output_data.x to output_data.w32 and
10353 add function w32_define_cursor.
10354 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
10355 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
10356 (w32_initialize_display_info):
10357 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
10358
10359 * w32fns.c (Vx_hand_shape): New variable.
10360 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
10361 WM_EMACS_SETCURSOR.
10362 (x-create-frame): Setup Cursor types.
10363
ceb39a17
JB
103642003-01-21 David Ponce <david@dponce.com>
10365
ac6e47ef 10366 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 10367 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 10368 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 10369 2002-09-30.)
ac6e47ef
JR
10370 (w32_draw_relief_rect): Declare all args.
10371 (w32_define_cursor): New.
10372
10373 * w32fns.c (w32_load_cursor): New function.
10374 (w32_init_class): Use it.
10375 (x_put_x_image): Declare all args.
10376
b6189c3b 103772003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
10378
10379 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
10380
a97e4138 103812003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
10382
10383 * gtkutil.c: Must include stdio.h before termhooks.h
10384
83fc9c63
DL
103852003-01-21 Dave Love <fx@gnu.org>
10386
10387 * alloc.c (Fgc_status): Print zombie list.
10388 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
10389 Fix assignment of zombies.
10390 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
10391 Don't take car of non-cons.
10392
10393 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10394
10395 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10396
fe04b8c8
JR
103972003-01-20 David Ponce <david@dponce.com>
10398
10399 * w32menu.c (digest_single_submenu): Declare all args.
10400
10401 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
10402 changes in xmenu.c:
10403
10404 (parse_single_submenu): Use individual keymap's prompt
10405 string as pane name, if there is one.
10406 (set_frame_menubar): Save menu_items_n_panes from each call to
10407 parse_single_submenu and use it when calling digest_single_submenu.
10408
539e69a9
ST
104092003-01-20 Steven Tamm <steventamm@mac.com>
10410
10411 * macterm.c (XTread_socket): Checks for valid, visible window
10412 before sending a scroll-wheel event.
10413
675d000f
RS
104142003-01-20 Richard M. Stallman <rms@gnu.org>
10415
10416 * xdisp.c (redisplay_window): If mini window's buffer is not
10417 a minibuffer, then redisplay it like other windows.
10418
a97e4138 104192003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
10420
10421 * gtkutil.c (xg_create_frame_widgets): Check if there is an
10422 external tool bar before setting tool bar height.
10423
048addec
JD
104242003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10425
10426 * xterm.c (handle_one_xevent): Surround popup_activated
10427 with #ifdef:s for non-toolkit version.
10428
10429 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
10430 (gtkutil.o): New file.
10431 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
10432 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
10433
10434 * gtkutil.c: New file for GTK version.
10435
10436 * gtkutil.h: New file for GTK version.
10437
10438 * xterm.h: Add xt_or_gtk_widget.
10439 Include gtk files for USE_GTK.
10440 (struct x_output): Add toolbar_height.
10441 (struct x_output): Add GTK widgets and Gdk size_hints.
10442 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
10443 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
10444 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
10445
10446 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 10447 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
10448 (note_mouse_highlight): Check popup_activated for USE_GTK.
10449 (xt_action_hook): Don't compile if USE_GTK.
10450 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
10451 (xg_scroll_callback): New function.
10452 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
10453 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
10454 for USE_GTK.
10455 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
10456 xg_show_scroll_bar for USE_GTK.
10457 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
10458 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
10459 (event_handler_gdk): New function for USE_GTK.
10460 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
10461 (handle_one_xevent): Make sure widget is mapped before
10462 calling x_real_positions for USE_GTK.
10463 (XTread_socket): Add GTK event loop for USE_GTK.
10464 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
10465 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
10466 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
10467 (x_iconify_frame): Add code for USE_GTK.
10468 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
10469 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
10470 is in gtkutil.c.
10471 (x_term_init): Add initialization for GTK.
10472 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
10473
10474 * xmenu.c: Include gtkutil.h for USE_GTK.
10475 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
10476 (single_menu_item, single_menu_item, Fx_popup_dialog):
10477 Check for USE_GTK.
048addec
JD
10478 (popup_widget_loop): New function for USE_GTK.
10479 (x_activate_menubar): Add code for USE_GTK.
10480 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
10481 (menu_highlight_callback, menubar_selection_callback):
10482 Add USE_GTK versions.
048addec
JD
10483 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
10484 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
10485 (free_frame_menubar): Only compile if not USE_GTK. GTK version
10486 is in gtkutil.c.
10487 (popup_selection_callback): New version for USE_GTK.
10488 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 10489 one USE_X_TOOLKIT version.
048addec
JD
10490 (xmenu_show): Call create_and_show_popup_menu.
10491 (dialog_selection_callback): New version for USE_GTK.
10492 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 10493 one USE_X_TOOLKIT version.
048addec
JD
10494 (xdialog_show): Call create_and_show_dialog.
10495
10496 * xfns.c: Include gtkutil for USE_GTK.
10497 (x_window_to_frame, x_any_window_to_frame)
10498 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
10499 (x_top_window_to_frame): Add code for USE_GTK.
10500 (x_set_background_color): Call xg_set_background_color for GTK.
10501 (x_set_menu_bar_lines): Check for USE_GTK.
10502 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
10503 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
10504 (x_window): Call xg_create_frame_widgets for USE_GTK.
10505 (Fx_create_frame): Check for USE_GTK
10506 (Fx_file_dialog): New implementation for USE_GTK.
10507
10508 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
10509 (update_menu_bar): Add check for USE_GTK.
10510 (update_tool_bar): Add check for USE_GTK and external tool bar.
10511 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
10512 (redisplay_internal): Add check for USE_GTK and popup_activated.
10513 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
10514 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
10515 (display_menu_bar): Add check for USE_GTK
10516
78819ebb 10517 * lisp.h (Vx_resource_name): Declare extern.
048addec 10518
a64387ee 10519 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
10520 for USE_GTK.
10521 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
10522
10523 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
10524 (FRAME_EXTERNAL_TOOL_BAR): New macro.
10525 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
10526
10527 * fileio.c (Fread_file_name): Add check for USE_GTK.
10528
6bdb309a
SM
10529 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
10530 Add check for USE_GTK.
048addec
JD
10531
10532 * config.in: Added HAVE_GTK
10533
10534 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
10535
105362003-01-18 Stefan Monnier <monnier@cs.yale.edu>
10537
10538 * charset.h (Funibyte_char_to_multibyte): Export.
10539
105402003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10541
10542 * xmenu.c (mouse_position_for_popup): New function.
10543 (Fx_popup_menu): Call mouse_position_for_popup for X and
10544 mouse_position_hook for others.
10545
105462003-01-17 Kim F. Storm <storm@cua.dk>
10547
10548 * editfns.c (Finsert): Mention `string-make-multibyte' and
10549 `string-as-multibyte' in doc string.
10550
105512003-01-17 Kenichi Handa <handa@m17n.org>
10552
10553 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 10554
048addec
JD
10555 * editfns.c (Fformat): Convert an unibyte char argument that is
10556 formatted by "%c" to multibyte if the total result must be a
10557 multibyte string.
cd7df9c0 10558
048addec 105592003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 10560
048addec
JD
10561 * process.c (set-process-filter): Document unibyte/multibyte-ness
10562 of string argument.
56210ecd 10563
048addec 105642003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 10565
048addec 10566 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 10567
048addec
JD
10568 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
10569 (re_search_2): Likewise.
6df8b9fe 10570
048addec 105712003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 10572
048addec
JD
10573 * xdisp.c (message_dolog): Fix bug of the case that *Message*
10574 buffer is unibyte.
292ddc31 10575
048addec 105762003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 10577
048addec 10578 * fns.c (Fsubstring): Clarify doc string.
292ddc31 10579
048addec
JD
10580 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
10581 (Fprevious_char_property_change)
10582 (Fnext_single_char_property_change)
10583 (Fprevious_single_char_property_change, Fnext_property_change)
10584 (Fnext_single_property_change, Fprevious_property_change)
10585 (Fprevious_single_property_change, Fadd_text_properties)
10586 (Fput_text_property, Fset_text_properties)
10587 (Fremove_text_properties, Fremove_list_of_text_properties)
10588 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 10589
048addec 105902003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 10591
048addec
JD
10592 * process.h (struct Lisp_Process): New member plist replaces old
10593 member private_vars. All uses changed.
63e4e4c6 10594
048addec 10595 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 10596 (QCplist): Rename from QCvars. Change all uses.
048addec 10597 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 10598 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 10599 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 10600 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 10601
048addec 106022003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 10603
6bdb309a 10604 * m/delta.h: Remove (obsolete).
e833850f 10605
048addec 106062003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 10607
048addec
JD
10608 * fileio.c (Fdelete_directory, Fdelete_file): Document the
10609 behaviour in front of symlinks.
10610 (Fdelete_file): Raise an error on directories.
817cb127 10611
048addec 106122003-01-13 Dave Love <fx@gnu.org>
817cb127 10613
048addec 10614 * fns.c (Freverse): Use QUIT.
3e8cf2ea 10615
048addec 106162003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 10617
048addec
JD
10618 * minibuf.c (minibuffer_completion_contents):
10619 Error if point is inside prompt.
3e8cf2ea 10620
048addec
JD
10621 * keyboard.c (command_loop_1): Don't redisplay directly
10622 if there's a post-command-hook.
3e8cf2ea 10623
048addec
JD
10624 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
10625 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 10626
048addec 106272003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 10628
048addec 10629 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 10630
048addec
JD
10631 * process.c (QCvars): New variable.
10632 (syms_of_process): Intern and staticpro it.
10633 (Fset_process_contact): Removed function.
10634 (Fprocess_variable, Fset_process_variable): New functions.
10635 (syms_of_process): Defsubr them.
10636 (Fstart_process): Initialize private_vars plist to nil.
10637 (Fmake_network_process): New arg :vars to setup the private
10638 variables for new network process.
10639 (server_accept_connection): Copy server's private variables to
10640 client process.
2c10f029 10641
048addec
JD
10642 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
10643 crashes). Code rewritten and simplified. Now directly aligns the
10644 pointer and recalculates pure_bytes_used, rather than aligning the
10645 size and adjusting the pointer.
b8a76c6c 10646
048addec 106472003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 10648
048addec
JD
10649 * process.c (Fset_process_contact): New function.
10650 (syms_of_process): defsubr it.
10651 (make-network-process): Update doc.
3a8d0899 10652
048addec 106532003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 10654
048addec
JD
10655 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
10656 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 10657
048addec 106582003-01-10 Dave Love <fx@gnu.org>
4abc7470 10659
048addec 10660 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 10661
048addec 106622003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 10663
048addec
JD
10664 * process.c (Fmake_network_process): Convert new port number
10665 to host byte order for `:service t' case. From Mario Lang.
bf338245 10666
048addec 106672003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 10668
048addec
JD
10669 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
10670 instead of XtAppProcessEvent.
bf338245 10671
048addec
JD
10672 * xterm.c (handle_one_xevent): New function.
10673 (x_dispatch_event): New function.
10674 (XTread_socket): Call handle_one_xevent.
bf338245 10675
048addec 10676 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 10677
048addec
JD
10678 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
10679 call XQueryPointer to get coordinates.
10680 (popup_get_selection): Do not set popup_activated_flag to zero,
10681 let popup_deactivate_callback do that. Needed for Motif.
10682 Call x_dispatch_event instead of XtDispatchEvent.
10683 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 10684
048addec 106852003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 10686
6bdb309a 10687 * process.c (server_accept_connection): Fix recording of new
048addec
JD
10688 connection's local address in :local property of contact info.
10689 (Fmake_network_process): Record local network address for new
10690 client processes in :local property of contact info.
6bdb309a 10691 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 10692
048addec 106932003-01-07 Dave Love <fx@gnu.org>
00e3ab56 10694
048addec 10695 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 10696
048addec 106972003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 10698
048addec 10699 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 10700
048addec
JD
10701 * eval.c (Fuser_variable_p): Doc change. For custom variables,
10702 use the same test as for custom-variable-p.
8c6d74c6 10703
048addec 107042003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 10705
048addec
JD
10706 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
10707 Count LAST_LINE_MISFIT in scroll margin for end of window.
10708 Move label too_near_end before setting SCROLL_MARGIN_POS.
10709 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 10710
048addec
JD
10711 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
10712 scroll_conservatively case. If scrolling that much doesn't change
10713 STARTP, move it down one line.
e833850f 10714
048addec
JD
10715 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
10716 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 10717
048addec
JD
10718 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
10719 selected frame.
8c6d74c6 10720
048addec 10721 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 10722 (syms_of_keymap): Staticpro them.
048addec
JD
10723 (Fapropos_internal): Initialize them and clear them out.
10724 Don't GCPRO them.
8c6d74c6 10725
048addec
JD
10726 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
10727 Doc fixes.
8c6d74c6 10728
048addec
JD
10729 * lisp.h: New misc type Lisp_Save_Value.
10730 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
10731 (XSAVE_VALUE): New macro.
10732 (struct Lisp_Save_Value): New data type.
10733 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 10734 (make_save_value): Declare.
8c6d74c6 10735
048addec 10736 * alloc.c (make_save_value): New function.
8c6d74c6 10737
048addec
JD
10738 * xterm.c (x_catch_errors): Save dpy using make_save_value.
10739 (x_catch_errors_unwind): Call XSync.
8c6d74c6 10740
048addec 107412003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 10742
048addec 10743 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 10744
048addec
JD
10745 * keyboard.c (command_loop_1): Call adjust_point_for_property
10746 in direct action cases for Qforward_char and Qbackward_char.
10747 Set already_adjusted so it won't be done twice.
8c6d74c6 10748
b6189c3b 107492002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 10750
048addec
JD
10751 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
10752 type definition of size_t.
8c609cff 10753
048addec 107542003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 10755
048addec
JD
10756 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
10757 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 10758
048addec 107592002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 10760
048addec
JD
10761 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
10762 to default to t.
fa634a5e 10763
048addec 107642002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 10765
048addec 10766 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 10767
048addec 107682002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 10769
048addec
JD
10770 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
10771 allow building in a different directory than source. Uses some
10772 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 10773
048addec 107742002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 10775
048addec
JD
10776 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
10777 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
10778 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
10779 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 10780
048addec 107812002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 10782
048addec
JD
10783 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
10784 <scroll-down-aggressively>: Doc fix.
2155ecf3 10785
048addec
JD
10786 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
10787 string as pane name, if there is one.
10788 (set_frame_menubar): Save menu_items_n_panes from each call to
10789 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 10790
048addec
JD
10791 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
10792 Don't try to make last line fully visible if it is past end of window.
61f1d295 10793
048addec 107942002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 10795
048addec
JD
10796 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
10797 (mac_menu_show): Add support for hierarchical popup menus.
10798 (add_menu_item): Remove indentation support.
10799 (fill_submenu, fill_menu): Create hierarchical menus
10800 instead of using indentation.
0b17a217 10801
048addec 108022002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 10803
048addec
JD
10804 * xdisp.c (try_cursor_movement): Don't call try_window here.
10805 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 10806
048addec 10807 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 10808
048addec 108092002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 10810
048addec
JD
10811 * macterm.c (XTread_socket): Call KeyTranslate for control and
10812 meta to deal correctly shifted non-alpha characters, like C-S-5
10813 being treated like C-%. Does not look for shift key to deal
10814 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 10815
048addec 108162002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 10817
048addec
JD
10818 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
10819 If it is non-nil, run timers. Use an unwind-protect to requeue
10820 the events that were read ahead.
10821 (popup_get_selection_unwind): New subroutine.
10822 (popup_get_selection_queue): File-scope variable now holds that queue.
10823 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
10824 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
10825 Use an unwind-protect to pop down the dialog box.
10826 (xdialog_show_unwind): New subroutine implements that.
f02cac82 10827
048addec
JD
10828 * xdisp.c (row_containing_pos): Change exit test using last_y.
10829 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 10830
048addec
JD
10831 * lread.c (load_error_handler): New function.
10832 (Fload): Handle errors in Fsubstitute_in_file_name.
10833 Don't expect Fsignal to return.
f02cac82 10834
048addec
JD
10835 * eval.c: Errors and throws work right with interrupt blocking.
10836 (struct catchtag): New elt interrupt_input_blocked.
10837 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
10838 (internal_catch, Fcondition_case, internal_condition_case)
10839 (internal_condition_case_1, internal_condition_case_2): Save it.
10840 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 10841
048addec 10842 * editfns.c (Fformat): Add parens.
f02cac82 10843
048addec
JD
10844 * dired.c (file_name_completion): Fix that change.
10845 Delete special quit-handling code; just use QUIT.
f02cac82 10846
b6189c3b 108472002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 10848
048addec
JD
10849 * dired.c (file_name_completion): Close directory on error
10850 just as in directory_files_internal.
1a590729 10851
048addec 108522002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 10853
048addec
JD
10854 * window.c (Fset_window_configuration): Set old_point to correct
10855 value when new_current_buffer == current_buffer.
f02cac82 10856
048addec 108572002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 10858
048addec
JD
10859 Revisited my earlier fix for the following entry in etc/PROBLEMS:
10860 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10861 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 10862
048addec
JD
10863 These changes were in part based upon suggestions made by Peter
10864 'Luna' Runestig [peter@runestig.com].
9785d95b 10865
048addec
JD
10866 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
10867 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 10868 g_b_init_get_sid_identifier_authority ): Add several static
048addec 10869 global variables.
9785d95b 10870
048addec
JD
10871 * w32.c (globals_of_w32): New function. Used to initialize those
10872 global variables that must always be initialized on startup even
10873 when the global variable initialized is non zero. Its primary
10874 purpose at this time is to set the global variables
10875 g_b_init_is_windows_9x, g_b_init_open_process_token,
10876 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
10877 g_b_init_get_sid_identifier_authority to 0 on startup.
10878 Called from main.
9785d95b 10879
048addec
JD
10880 * w32.c (is_windows_9x): Perform initialization only if
10881 g_b_init_is_windows_9x is equal to 0. On initialization set
10882 g_b_init_is_windows_9x equal to 1.
2308af15 10883
048addec
JD
10884 * w32.c (open_process_token): Perform initialization only if
10885 g_b_init_open_process_token is equal to 0. On initialization set
10886 g_b_init_open_process_token equal to 1.
2308af15 10887
048addec
JD
10888 * w32.c (get_token_information): Perform initialization only if
10889 g_b_init_get_token_information is equal to 0. On initialization
10890 set g_b_init_get_token_information equal to 1.
9785d95b 10891
048addec
JD
10892 * w32.c (lookup_account_sid): Perform initialization only if
10893 g_b_init_lookup_account_sid is equal to 0. On initialization
10894 set g_b_init_lookup_account_sid equal to 1.
9785d95b 10895
048addec
JD
10896 * w32.c (get_sid_identifier_authority): Perform initialization
10897 only if g_b_init_get_sid_identifier_authority is equal to 0.
10898 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 10899
f63fd14e 10900 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
10901 those global variables that must always be initialized on startup
10902 even when the global variable initialized is non zero.
10903 Its primary purpose at this time is to initialize the global variable
10904 track_mouse_event_fn.
9785d95b 10905
a64387ee 10906 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 10907 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 10908
048addec 10909 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 10910
f63fd14e 10911 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
10912 initialize those global variables that must always be initialized
10913 on startup even when the global variable initialized is non zero.
10914 Its primary purpose at this time is to initialize the global
10915 variables get_menu_item_info and set_menu_item_info.
9785d95b 10916
048addec
JD
10917 * w32menu.c (initialize_frame_menubar): Remove initialization of
10918 get_menu_item_info and set_menu_item_info.
9785d95b 10919
048addec 10920 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 10921
048addec
JD
10922 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
10923 Declare them.
9785d95b 10924
048addec
JD
10925 * emacs.c (main): Call globals_of_w32 prior to calling
10926 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
10927 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
10928 is defined.
9785d95b 10929
048addec
JD
10930 * w32term.c (x_update_window_begin): Fix Windows API error
10931 detected by BoundsChecker. Test to determine if
10932 w32_system_caret_hwnd is NULL prior to attempting to use
10933 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 10934
048addec
JD
10935 * w32term.c (x_update_window_end): Fix Windows API error
10936 detected by BoundsChecker. Test to determine if
10937 w32_system_caret_hwnd is NULL prior to attempting to use
10938 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 10939
048addec 109402002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 10941
048addec
JD
10942 * coding.c (coding_system_require_warning): New variable.
10943 (syms_of_coding): DEFVAR it.
b6da19ef 10944
048addec 10945 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 10946
048addec
JD
10947 * fileio.c (choose_write_coding_system): Even if
10948 Vcoding_system_for_write is non-nil, if
10949 coding_system_require_warning is nonzero, call
10950 Vselect_safe_coding_system_function.
bfcf6dbe 10951
048addec 109522002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 10953
048addec
JD
10954 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
10955 (lisp): Add font-core.
2c568af5 10956
048addec 109572002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 10958
048addec
JD
10959 * textprop.c (text_read_only): New arg `propval'.
10960 (get_char_property_and_overlay): Remove unused var `next_overlay'.
10961 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 10962
048addec 109632002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 10964
048addec 10965 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 10966
048addec 109672002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 10968
048addec
JD
10969 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
10970 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
10971 Be more careful about when help_events are generated.
96720f09 10972
048addec 109732002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 10974
048addec
JD
10975 * macterm.c (mac_check_for_quit_char): Correctly set the
10976 modifiers of the event to 0.
10977 * mac.c (sys_select): Duplicate rfds before calling select to
10978 ensure that rfds survive the while loop.
e5ae1c49 10979
048addec 109802002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 10981
048addec
JD
10982 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
10983 row_containing_pos returned NULL.
2eb46b2d 10984
048addec 109852002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 10986
6bdb309a 10987 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 10988 non-blocking.
6bdb309a 10989 (sys_select): Fix sys_select to not use a timeout larger than
048addec 10990 the one given.
b11f1d8a 10991
048addec 109922002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 10993
048addec 10994 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 10995
048addec 109962002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 10997
048addec
JD
10998 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
10999 as the last thing.
a4ac5b17 11000
048addec 110012002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 11002
048addec 11003 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 11004
048addec 110052002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 11006
048addec
JD
11007 * editfns.c (Fformat): Handle precision in string conversion
11008 specifiers like libc functions do (ie, print at most that many
11009 characters).
85cce843 11010
048addec 110112002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 11012
048addec
JD
11013 * xdisp.c (row_containing_pos): Check more carefully
11014 whether charpos is really in the row before returning it.
0d4d26a7 11015
048addec 110162002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 11017
048addec 11018 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 11019
048addec
JD
11020 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
11021 each stack frame. This may change as it could be time consuming.
0d4d26a7 11022
048addec
JD
11023 * macterm.c (mac_check_for_quit_char, quit_char_comp)
11024 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 11025 (mac_initialize): Add code to check for pressing of quit_char
048addec 11026 in the OS event queue.
b11f1d8a 11027
048addec
JD
11028 * mac.c (sys_select): Call mac_check_for_quit_char every second
11029 while blocking on select.
0d4d26a7 11030
048addec
JD
11031 * mac.c (sys_read): Use sys_select to test for input first
11032 before calling read, to allow C-g to break.
9252f7bc 11033
048addec 110342002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 11035
048addec 11036 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 11037
048addec 11038 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 11039
048addec 11040 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 11041
048addec
JD
11042 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
11043 autoload.
9252f7bc 11044
048addec 11045 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 11046
048addec 11047 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 11048
048addec 110492002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 11050
048addec 11051 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 11052
048addec 110532002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 11054
048addec 11055 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 11056
048addec 11057 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 11058
048addec 11059 * alloca.c: Don't use #error.
02d588e2 11060
048addec 110612002-12-03 Dave Love <fx@gnu.org>
02d588e2 11062
048addec
JD
11063 * buffer.c (Qucs_set_table_for_input): New.
11064 (Fget_buffer_create): Use it.
11065 (Qset_buffer_major_mode_hook): Deleted.
11066 (Fset_buffer_major_mode): Revert previous change.
11067 (init_buffer_once): Intern ucs-set-table-for-input.
11068 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
11069 Add &Qucs_set_table_for_input.
451e2697 11070
048addec 110712002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 11072
048addec
JD
11073 * callint.c (Fcall_interactively): Use next_event only if less
11074 than key_count.
72742a99 11075
048addec 110762002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 11077
048addec
JD
11078 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
11079 names to 255 characters.
72742a99 11080
048addec
JD
11081 * macterm.c (XTread_socket): If all frames have been collapsed,
11082 expand the first one before handling drag-and-drop events.
72742a99 11083
048addec
JD
11084 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
11085 which is detected by autoconf.
40e6ff95 11086
048addec 110872002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 11088
048addec
JD
11089 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
11090 offset in two hints table to allow prebinding to be redone and
11091 allow the executable to be stripped.
c02138c6 11092
048addec 110932002-11-29 Dave Love <fx@gnu.org>
c02138c6 11094
048addec
JD
11095 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
11096 already provided.
0e47bbf7 11097
048addec 110982002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 11099
048addec
JD
11100 * xdisp.c (start_display): Check more intelligently for
11101 whether the line is continued.
11102 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 11103
048addec 111042002-11-28 Dave Love <fx@gnu.org>
44129dcb 11105
048addec
JD
11106 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
11107 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 11108
048addec 111092002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 11110
048addec
JD
11111 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
11112 more descriptive error output from lread.c:Fload upon most require
11113 cycles during boostrapping.
1637fd2c 11114
048addec 111152002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 11116
048addec
JD
11117 * fileio.c (Finsert_file_contents): Give a more appropriate error
11118 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 11119
048addec
JD
11120 * dired.c (Ffile_attributes): Don't return negative file sizes for
11121 files bigger than 2Gb when off_t is 32 bit.
540c2788 11122
048addec 111232002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 11124
048addec 11125 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 11126
048addec
JD
11127 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
11128 Test GETPGRP_VOID instead.
11129 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 11130
048addec
JD
11131 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
11132 Don't define.
11133 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 11134
048addec 11135 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 11136
048addec 111372002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 11138
048addec
JD
11139 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
11140 supported.
4042a81a 11141
048addec 111422002-11-25 Dave Love <fx@gnu.org>
4042a81a 11143
048addec 11144 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 11145
048addec 11146 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 11147
048addec 111482002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 11149
048addec 11150 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 11151
048addec 111522002-11-24 Steven Tamm <steventamm@mac.com>
82122254 11153
048addec
JD
11154 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
11155 determine the size of pointers alloced in unexed space instead
11156 of using possibly invalid emacs_zone pointers. This fixes the
11157 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 11158
048addec 111592002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 11160
048addec 11161 * search.c (Fstring_match): Doc fix.
c1ee53bc 11162
048addec
JD
11163 * callint.c (Fcall_interactively): If a command fails because
11164 `*' detects a read-only buffer, but RECORD_FLAG is set,
11165 record it anyway if the args don't actually do tty input.
5598c32e 11166
048addec 111672002-11-22 Dave Love <fx@gnu.org>
5598c32e 11168
048addec 11169 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 11170
048addec
JD
11171 * keyboard.c (interrupt_signal): Provide forward declaration.
11172 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 11173
048addec 11174 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 11175
048addec 111762002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 11177
048addec
JD
11178 * eval.c (interactive_p): Skip any number of bytecode
11179 and special form frames, in any order.
516eea8e 11180
048addec 111812002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 11182
048addec
JD
11183 * w32fns.c (convert_mono_to_color_image): New function.
11184 (xbm_load, xbm_load_image): Use it when foreground or background
11185 is explicitly set.
04dbfa08 11186
048addec 111872002-11-19 Dave Love <fx@gnu.org>
04dbfa08 11188
048addec 11189 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 11190
048addec 111912002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 11192
048addec
JD
11193 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
11194 (XPutPixel): Swap blue and red.
11195 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
11196 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
11197 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
11198 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 11199
048addec 112002002-11-18 Dave Love <fx@gnu.org>
d824beee 11201
048addec 11202 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 11203
048addec 11204 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 11205
048addec 11206 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 11207
048addec
JD
11208 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
11209 malloc, realloc, calloc.
d824beee 11210
048addec
JD
11211 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
11212 (bcmp): Don't define.
d824beee 11213
048addec 11214 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 11215
048addec 11216 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 11217
048addec 11218 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 11219
048addec 11220 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 11221
048addec
JD
11222 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
11223 Don't include alloca.h.
d824beee 11224
048addec 11225 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 11226
048addec 11227 * regex.c (_GNU_SOURCE): Don't define.
1998560a 11228
048addec 11229 * process.c (_GNU_SOURCE): Don't define.
1998560a 11230
048addec 11231 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 11232
048addec 112332002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 11234
048addec 11235 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 11236
048addec 112372002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 11238
048addec
JD
11239 * dispextern.h (struct face): Add `overstrike' field.
11240 * xterm.c (x_draw_glyph_string_foreground)
11241 (x_draw_composite_glyph_string_foreground): Implement overstriking.
11242 * xfaces.c (load_face_font): Set `face->overstrike' based on
11243 result from choose_face_font.
11244 (best_matching_font, choose_face_font): Add `needs_overstrike'
11245 argument, and use it to return whether overstriking is desirable
11246 for this face/font combo.
11247 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 11248
048addec 112492002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 11250
048addec
JD
11251 This change is my fix for the following entry in etc/PROBLEMS:
11252 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
11253 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 11254
048addec
JD
11255 * w32.c: Added wrapper functions around the win32 API functions
11256 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
11257 GetSidIdentifierAuthority. These wrapper functions serve two
11258 purposes:
11259 1. They ensure that the wrapped function can never be called
11260 when Emacs is running on an operating system on which they are
11261 not supported (Microsoft Windows 95 / 98 / ME).
11262 2. They call the wrapped functions via function pointers rather
11263 than calling them directly. This avoids taking advantage of the
11264 undocumented fact that although these functions are not supported
11265 in the 9x branch of Microsoft Windows, the functions do exist in
11266 the version of advapi32.dll that is found in the 9x branch of
11267 Microsoft Windows.
f60ae425 11268
6bdb309a 11269 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
11270 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
11271 and GetSidIdentifierAuthority with calls to the newly added
11272 wrapper functions.
f60ae425 11273
048addec
JD
11274 * w32.h: Added extern declarations for the following functions:
11275 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
11276 syms_of_w32menu, and void syms_of_fontset.
f60ae425 11277
6bdb309a 11278 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
11279 function pointer track_mouse_event_fn in the handler for the
11280 WM_SETFOCUS message.
3582b6a3 11281
6bdb309a 11282 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
11283 reinitialize the function pointers set_menu_item_info and
11284 get_menu_item_info.
f60ae425 11285
048addec 112862002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 11287
048addec
JD
11288 * sound.c: Added a partial implementation of play-sound-internal
11289 for Microsoft Windows. Added various #ifdef / #else / #endif
11290 code blocks to separate the code that will compile under
11291 Microsoft Windows from the code that is specific to Gnu/Linux.
11292 Moved several blocks of code around to make this separation of code
11293 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 11294
048addec 11295 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 11296
048addec
JD
11297 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
11298 added support for play-sound-internal under Windows would be
11299 included in the build of Emacs.
517f42a0 11300
048addec 113012002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 11302
048addec 11303 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 11304
048addec 11305 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 11306
048addec 113072002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 11308
048addec
JD
11309 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
11310 (adjust_point_for_property): Move out of display and invisible even if
11311 we were already inside before (in case a property was added while
11312 we weren't looking). Be more careful when handling invisible props.
11313 Skip invisible text as if it really wasn't there at all.
aab83f91 11314
048addec 113152002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 11316
048addec
JD
11317 * w32term.c (x_draw_image_foreground)
11318 (w32_draw_image_foreground_1): Use standard copy and invert
11319 operations to draw images.
aab83f91 11320
048addec
JD
11321 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
11322 depth of 1.
11323 (xbm_read_bitmap_data): Invert bits as xbm is read in.
11324 (XPutPixel): Don't invert bits here.
a4478a76 11325
048addec 113262002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 11327
048addec
JD
11328 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
11329 (w32_draw_image_foreground_1): Handle image masks.
11330 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 11331
048addec
JD
11332 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
11333 (x_from_xcolors): Adjust RGB values for W32.
11334 (image_background, image_background_transparent)
11335 (postprocess_image, x_to_xcolors, x_disable_image)
11336 (x_build_heuristic_mask): Adapt for W32 and enable.
11337 (x_create_x_image_and_pixmap): Mark images with palettes as such.
11338 (xbm_load): Remove unused variable.
03670a65 11339
048addec 113402002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 11341
048addec 11342 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 11343
048addec 113442002-11-14 Dave Love <fx@gnu.org>
59daa29a 11345
048addec 11346 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 11347
048addec
JD
11348 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
11349 * xmenu.c (unuse_menu_items, digest_single_submenu):
11350 * xfns.c (x_put_x_image):
11351 * xdisp.c (message2_nolog, set_message):
11352 * undo.c (record_point):
11353 * terminfo.c (tparam):
11354 * syntax.c (scan_sexps_forward):
11355 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
11356 * composite.c (update_compositions):
11357 * cm.c (calccost, cmgoto):
11358 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 11359
048addec 11360 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 11361
048addec
JD
11362 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
11363 Don't declare.
59daa29a 11364
048addec 11365 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 11366
048addec
JD
11367 * fns.c (Fcopy_sequence): Doc fix.
11368 (Fmap_char_table): Cast `call2'.
3947677c 11369
048addec
JD
113702002-11-14 Francesco Potorti` <pot@gnu.org>
11371
11372 * s/sol2-8.h: New file.
11373
113742002-11-14 Kim F. Storm <storm@cua.dk>
11375
11376 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
11377 dependency on `risky-local-variable' and the :propertize form.
11378
113792002-11-12 Stefan Monnier <monnier@cs.yale.edu>
11380
11381 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
11382
11383 * syntax.c (scan_sexps_forward): Undo last patch.
11384 Use a more obvious fix: check eob before updating the syntax table.
11385
113862002-11-09 Stefan Monnier <monnier@cs.yale.edu>
11387
11388 * syntax.c (scan_sexps_forward): Update syntax table before reading
11389 a char rather than after so we don't update the table past eob.
11390
113912002-11-09 Dave Love <fx@gnu.org>
11392
11393 * buffer.c (Fset_buffer_major_mode): Fix last change.
11394
11395 * regex.c (regexec): Fix pmatch declaration.
11396
11397 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
11398
11399 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
11400 to self-inserting characters.
11401 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
11402
11403 * coding.c (Vtranslation_table_for_input): New.
11404 (syms_of_coding): DEFVAR it.
11405
114062002-11-08 Juanma Barranquero <lektu@terra.es>
11407
11408 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
11409 window.
11410
114112002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11412
6bdb309a 11413 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
11414 cp, and i.
11415
114162002-11-06 Dave Love <fx@gnu.org>
11417
11418 * buffer.c (Qset_buffer_major_mode_hook): New.
11419 (Fset_buffer_major_mode): Use it.
11420
114212002-11-06 Richard M. Stallman <rms@gnu.org>
11422
11423 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
11424 and stop_polling.
11425
11426 * process.c (wait_reading_process_input):
11427 Test POLLING_PROBLEM_IN_SELECT, not hpux.
11428 Avoid initialization for auto Lisp_Object var.
11429
11430 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
11431
11432 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
11433
114342002-11-05 Richard M. Stallman <rms@gnu.org>
11435
11436 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
11437
11438 * callint.c (Fcall_interactively): New local filter_specs.
11439 (Fcall_interactively): Check for progn as well as let.
11440 Add a gcpro.
11441 (Qprogn): New variable.
11442 (syms_of_callint): Staticpro and init Qprogn.
11443
114442002-11-04 John Paul Wallington <jpw@shootybangbang.com>
11445
11446 * lread.c (Feval_buffer): Doc fix.
11447
114482002-11-04 Dave Love <fx@gnu.org>
11449
11450 * keyboard.c (read_char): Always translate iff
11451 Vkeyboard_translate_table is a char table and c is valid.
11452
11453 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
11454 and fix C types.
11455
114562002-11-03 Stefan Monnier <monnier@cs.yale.edu>
11457
11458 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
11459
11460 * editfns.c (get_pos_property): Don't hardcode Qfield.
11461
11462 * keyboard.c (adjust_point_for_property): Handle `display' prop on
11463 overlays. Also handle `invisible' prop.
11464
114652002-11-02 Stefan Monnier <monnier@cs.yale.edu>
11466
11467 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
11468 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
11469
114702002-11-01 Andreas Schwab <schwab@suse.de>
11471
11472 * editfns.c (Fmessage): Revert last change to properly handle %%.
11473
114742002-11-01 Stefan Monnier <monnier@cs.yale.edu>
11475
11476 * xmenu.c (unuse_menu_items): New fun.
11477 (menu_items_inuse): New var.
11478 (syms_of_xmenu): Initialize it.
11479 (init_menu_items): Use it to detect re-entrance.
11480 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
11481 (Fx_popup_menu): Remove spurious XSETFRAME.
11482
11483 * editfns.c (find_field): Make an exception for nil fields.
11484
114852002-11-01 Dave Love <fx@gnu.org>
11486
11487 * m/gec63.h: Deleted.
11488
114892002-10-31 Dave Love <fx@gnu.org>
11490
11491 * xterm.c (XTread_socket): Fix last change.
11492 (xaw_scroll_callback): Cast call_data to long to avoid warning.
11493
114942002-10-31 Stefan Monnier <monnier@cs.yale.edu>
11495
11496 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
11497
114982002-10-30 Stefan Monnier <monnier@cs.yale.edu>
11499
11500 * editfns.c (overlays_around, get_pos_property): New funs.
11501 (find_field): Use them.
11502 Also be careful not to modify POS before its last use.
11503 (Fmessage): Don't Fformat if there's nothing to format.
11504
115052002-10-30 Dave Love <fx@gnu.org>
11506
11507 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
11508 [HAVE_PTY_H]; Include pty.h.
11509
11510 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
11511
11512 * xterm.c (Qeql): Declare.
11513 (Vx_keysym_table): New.
11514 (syms_of_xterm): Initialize it.
11515 (XTread_socket): Use it. Deal with ASCII keysyms.
11516 (XSetIMValues) [HAVE_X11R6]: Prototype.
11517
11518 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
11519 (lispy_kana_keys): Comment out.
11520 (make_lispy_event) [XK_kana_A]: Comment out.
11521 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
11522 Fix sprintf call.
11523
11524 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
11525 regexp.h change).
11526 (TERMINFO, LIBS_TERMCAP): Define.
11527
11528 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
11529 (bcmp): Define conditional on HAVE_BCMP.
11530 (NO_SIOCTL_H): Don't define.
11531 (TIOCSIGSEND): Don't make conditional on IRIX6.
11532
11533 * s/sol2-5.h: Don't include strings.h.
11534 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
11535
11536 * s/irix6-0.h (IRIX6): Don't define.
11537 (bcopy, bcmp, bzero): Don't undef.
11538
11539 * s/irix6-5.h: Don't include strings.h.
11540 (IRIX6): Don't define.
11541 (bcopy, bcmp, bzero): Don't undef.
11542
11543 * syntax.c (Fforward_comment): Doc fix.
11544
115452002-10-29 Kim F. Storm <storm@cua.dk>
11546
11547 * process.c (Fsignal_process): Allow PROCESS to be specified by
11548 name in addition to pid (as integer or string).
11549
115502002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
11551
11552 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
11553 environments.
11554
115552002-10-27 Kim F. Storm <storm@cua.dk>
11556
11557 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
11558
11559 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
11560
11561 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
11562
11563 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
11564
115652002-10-26 Richard M. Stallman <rms@gnu.org>
11566
11567 * editfns.c (Fformat): Detect invalid format letters for floats.
11568
115692002-10-25 Kenichi Handa <handa@m17n.org>
11570
11571 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
11572 (x_set_title): Likewise.
11573
115742002-10-25 Juanma Barranquero <lektu@terra.es>
11575
11576 * macgui.h:
11577 * w32gui.h: Remove definition of XColor.
11578
11579 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
11580
115812002-10-24 Kim F. Storm <storm@cua.dk>
11582
11583 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
11584 Callers changed (supply dummy arg).
11585
11586 * lisp.h (get_window_cursor_type): Update prototype.
11587
11588 * w32term.c (x_display_and_set_cursor): Get active_cursor from
11589 get_window_cursor_type to track system caret.
11590
115912002-10-24 Kim F. Storm <storm@cua.dk>
11592
11593 * process.c (Fformat_network_address): New function.
11594 (syms_of_process): Defsubr it.
11595 (list_processes_1): Use it to format :local/:remote address if
f9711de4 11596 service/host is not set; before Emacs would crash in that case.
048addec
JD
11597 (Fmake_network_process): Don't use Ffind_operation_coding_system
11598 to setup coding system if host or service is not set.
11599
116002002-10-23 Juanma Barranquero <lektu@terra.es>
11601
11602 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
11603
11604 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
11605 COLORREF.
11606
11607 * macgui.h:
11608 * w32gui.h: Add definition of XColor.
11609
11610 * macfns.c:
11611 * w32fns.c:
11612 * xfaces.c: Remove definition of XColor.
11613
116142002-10-22 Stefan Monnier <monnier@cs.yale.edu>
11615
11616 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
11617
11618 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
11619 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
11620 window if it is dedicated.
11621 (Fshrink_window): Add preserve_before as was done for enlarge_window.
11622 (Vspecial_display_function): Update docstring.
11623
11624 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
11625 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
11626 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
11627
116282002-10-21 Stefan Monnier <monnier@cs.yale.edu>
11629
11630 * casefiddle.c (casify_region): Don't treat a prefix char as part
11631 of a word when at the beginning.
11632
116332002-10-17 Juanma Barranquero <lektu@terra.es>
11634
11635 * lread.c (syms_of_lread): Fix typos.
11636
116372002-10-17 Dave Love <fx@gnu.org>
11638
11639 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
11640
116412002-10-16 Richard M. Stallman <rms@gnu.org>
11642
11643 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
11644
116452002-10-14 Juanma Barranquero <lektu@terra.es>
11646
11647 * w16select.c (syms_of_win16select): Fix docstring for
11648 `selection-coding-system'.
11649
11650 * w32select.c (syms_of_w32select): Likewise.
11651
116522002-10-14 Stefan Monnier <monnier@cs.yale.edu>
11653
11654 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
11655 a backslash-quoted char.
11656 (scan_lists, scan_sexps_forward): Pacify the compiler.
11657
116582002-10-13 Richard M. Stallman <rms@gnu.org>
11659
11660 * window.c (window_scroll): Set immediate_quit.
11661
11662 * print.c (print): When backquote form is the car of a list,
11663 output in old style. Use old_backquote_output to output all
11664 comma forms inside it in old style too.
11665
11666 * buffer.h (struct buffer): Move `undo_list' down below `name'.
11667
116682002-10-11 Markus Rost <rost@math.ohio-state.edu>
11669
11670 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
11671 batch mode).
11672
11673 * lread.c (Fload): Doc fix (load-suffixes).
11674
116752002-10-10 Steven Tamm <steventamm@mac.com>
11676
11677 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
11678 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
11679 Also switch the default to Qnil from Qt.
11680
116812002-10-08 Kenichi Handa <handa@m17n.org>
11682
11683 * coding.c (code_convert_region): When we need more GAP for
11684 conversion, pay attention to the case that coding->produced is not
11685 greater than coding->consumed.
11686
116872002-10-07 Richard M. Stallman <rms@gnu.org>
11688
11689 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
11690
116912002-10-06 Andrew Choi <akochoi@shaw.ca>
11692
11693 * macmenu.c (mac_menu_show): Add j to count menu items; match
11694 menu_item_selection to it to find selected item.
11695
116962002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11697
11698 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
11699 cases. The correct fix is to pass ReparentNotify to Xt.
11700 The shell widget interprets ConfigureNotify differently depending
11701 on if it has been reparented or not.
11702
117032002-10-05 Markus Rost <rost@math.ohio-state.edu>
11704
11705 * editfns.c (Fformat_time_string): Doc fix.
11706
117072002-10-05 John Paul Wallington <jpw@shootybangbang.com>
11708
11709 * fns.c (Flength): Doc fix.
11710
117112002-10-04 Stefan Monnier <monnier@cs.yale.edu>
11712
11713 * keyboard.c (keyremap): New struct.
11714 (read_key_sequence): Use it: globally replace keytran_foo with
11715 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
11716 keytran_next and fkey_next to just `next'.
11717
117182002-10-04 Steven Tamm <steventamm@mac.com>
11719
11720 * macterm.c (keycode_to_xkeysym_table): Change return to be
11721 treated like an X keysym.
11722
117232002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11724
11725 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
11726 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
11727 This is to also handle x/y changes that occur because of a resize.
11728
117292002-10-02 John Paul Wallington <jpw@shootybangbang.com>
11730
11731 * frame.c (Vdelete_frame_functions): New variable.
11732 (syms_of_frame): Initialize and defvar it.
11733 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
11734 it when frame's `tooltip' parameter is non-nil.
11735
11736 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
11737
11738 * w32fns.c (x_create_tip_frame): Likewise.
11739
11740 * macfns.c (x_create_tip_frame): Likewise.
11741
117422002-09-30 Kenichi Handa <handa@m17n.org>
11743
11744 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
11745 -1 before calling ccl_driver.
11746
11747 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
11748 Only when it is non-nil, handle composition sequence.
11749 (setup_coding_system) <0>: Don't force composition handling.
11750
11751 * Makefile.in (lisp, shortlisp): Add utf-16.elc
11752
117532002-09-29 Richard M. Stallman <rms@gnu.org>
11754
11755 * search.c (Freplace_match): Adjust match data for the substitution
11756 just made in the buffer.
11757
11758 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
11759 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
11760
117612002-09-27 Richard M. Stallman <rms@gnu.org>
11762
11763 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
11764 (read_char): Use them. Do all exits thru the end of the function.
11765
117662002-09-27 Kenichi Handa <handa@etl.go.jp>
11767
11768 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
11769 is nil.
11770
117712002-09-26 Richard M. Stallman <rms@gnu.org>
11772
11773 * regex.h (__restrict_arr): Don't define if already defined.
11774
11775 * coding.c (run_pre_post_conversion_on_str):
11776 Save and restore Vdeactivate_mark.
11777
117782002-09-26 John Paul Wallington <jpw@shootybangbang.com>
11779
11780 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
11781
117822002-09-26 Kenichi Handa <handa@etl.go.jp>
11783
11784 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
11785 nonzero, try face's family at first. Otherwise try FAMILY at first.
11786 (choose_face_font): If C is a single byte char or latin-1, call
11787 try_font_list with PREFER_FACE_FAMILY 1.
11788
117892002-09-21 Richard M. Stallman <rms@gnu.org>
11790
11791 * window.c (select_window_1): Don't select frame.
11792 Set frame's selected window only when frame itself is selected.
11793 (Fselect_window): Doc fix.
11794
117952002-09-18 Kim F. Storm <storm@cua.dk>
11796
11797 * process.c (make-network-process): Doc fix (there is no
11798 network-server-log-function hook).
11799
118002002-09-18 Richard M. Stallman <rms@gnu.org>
11801
11802 * print.c (print): Clear out the unused parts of Vprint_number_table.
11803 (syms_of_print): Doc fix for `print-number-table'.
11804
11805 * unexelf.c (unexec): Undo previous change.
11806
118072002-09-17 Andreas Schwab <schwab@suse.de>
11808
11809 * m/alpha.h [LINUX]: Don't define DATA_START.
11810
118112002-09-16 Dave Love <fx@gnu.org>
11812
11813 * unexelf.c (unexec): Deal with .got, reinstating change from
11814 25-08-1999.
11815
118162002-09-13 Richard M. Stallman <rms@gnu.org>
11817
11818 * s/sol2-6.h (UNEXEC): Comment out definition.
11819
11820 * unexsol.c (unexec): Don't downcase first letter of error msg.
11821
11822 * xfaces.c (Fcolor_supported_p): Just one arg is required.
11823
118242002-09-12 Markus Rost <rost@math.ohio-state.edu>
11825
11826 * unexsol.c: Include buffer.h, charset.h, coding.h.
11827
118282002-09-11 Richard M. Stallman <rms@gnu.org>
11829
11830 * unexsol.c: Don't use report_file_error; do it by hand
11831 using dlerror.
11832
11833 * process.c (wait_reading_process_input, both versions):
11834 Before calling turn_on_atimers, call stop_polling.
11835
11836 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
11837
11838 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
11839 we go to too_near_end, call clear_glyph_matrix.
11840 (redisplay_window): After make_cursor_line_fully_visible,
11841 call clear_glyph_matrix and bypass `goto done'.
11842
11843 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
11844 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
11845
118462002-09-10 Richard M. Stallman <rms@gnu.org>
11847
11848 * fileio.c (Fdo_auto_save): Catch error making directory.
11849 Only call push_message if we need to.
11850 At the same time, make an unwind-protect to pop it.
11851 Rename local message_p to old_message_p.
11852 (do_auto_save_make_dir, do_auto_save_eh): New functions.
11853 (do_auto_save_unwind): Don't call pop_message.
11854
11855 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
11856
11857 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
11858
11859 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
11860
11861 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
11862
118632002-09-10 Stefan Monnier <monnier@cs.yale.edu>
11864
11865 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
11866 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
11867 (re_match_2_internal): Be more careful with infinite loops.
11868
118692002-09-10 Kim F. Storm <storm@cua.dk>
11870
11871 * macros.c (end_kbd_macro): New function.
11872 (Fend_kbd_macro): Use it.
11873
11874 * macros.h (end_kbd_macro): Declare extern.
11875
11876 * keyboard.c (Fdiscard_input): If defining keyboard macro,
11877 end and save it instead of discarding it.
11878
118792002-09-09 Markus Rost <rost@math.ohio-state.edu>
11880
11881 * s/sol2-6.h: Fix typo. Add comment.
11882
118832002-09-09 Richard M. Stallman <rms@gnu.org>
11884
11885 * regex.c (regnum_t): Use signed int, not unsigned int.
11886
11887 * s/sol2-6.h: New file.
11888
11889 * s/sol2-5.h (UNEXEC): Definition deleted.
11890
118912002-09-08 Kim F. Storm <storm@cua.dk>
11892
11893 * macros.c (executing_macro_index): Change type to EMACS_INT.
11894 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
11895
11896 * macros.h (executing_macro_index): Change type to EMACS_INT.
11897
118982002-09-06 Richard M. Stallman <rms@gnu.org>
11899
11900 * casetab.c (set_case_table): Make canon table point to eqv table.
11901
119022002-09-06 Juanma Barranquero <lektu@terra.es>
11903
11904 * coding.c (syms_of_coding): Fix spacing.
11905
11906 * composite.c (Fcompose_region_internal)
11907 (Fcompose_string_internal): Likewise.
11908
11909 * data.c (Flsh): Likewise.
11910
11911 * fontset.c (Fset_fontset_font): Likewise.
11912
11913 * macfns.c (Fx_server_max_request_size): Likewise.
11914
11915 * w16select.c (syms_of_win16select): Likewise.
11916
11917 * w32select.c (syms_of_w32select): Likewise.
11918
11919 * xselect.c (syms_of_xselect): Likewise.
11920
119212002-09-05 Richard M. Stallman <rms@gnu.org>
11922
11923 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
11924 call EXTEND_RANGE_TABLE and return a proper value.
11925 (set_image_of_range): Don't call set_image_of_range_1
11926 if no TRANSLATE or if range includes all of Latin-1.
11927 Only call it for the Latin-1 part of the range.
11928 For other cases, make two separate ranges,
11929 one for the original specified characters and one for
11930 their case-conversions.
11931
119322002-09-04 Richard M. Stallman <rms@gnu.org>
11933
11934 * s/sol2-5.h (UNEXEC): Use unexsol.o.
11935
11936 * window.c (displayed_window_lines): Correct for one-off bug
11937 in HEIGHT on non-window displays.
11938
11939 * regex.c (set_image_of_range_1): New function.
11940 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
11941 Return a value to indicate running out of memory.
11942 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
11943 (extend_range_table_work_area): New subroutine.
11944 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
11945 Different calling conventions, and used from set_image_of_range{,_1}.
11946 (IMMEDIATE_QUIT_CHECK): Definitions moved.
11947
119482002-09-04 Juanma Barranquero <lektu@terra.es>
11949
11950 * makefile.w32-in: All dependencies updated.
11951
119522002-09-01 Richard M. Stallman <rms@gnu.org>
11953
11954 * unexsol.c: New file.
11955
11956 * xfns.c (Qbox): Declare external, don't define.
11957
11958 * xdisp.c (redisplay_window) <force-start case>:
11959 If point is on semi-visible last line, reposition
11960 it at previous line.
11961
11962 * alloc.c (display_malloc_warning): Use display-warning.
11963 (malloc_warning_1): Function deleted.
11964
11965 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
11966
11967 * lread.c (read1): Handle #! by skipping the line.
11968
119692002-08-31 Richard M. Stallman <rms@gnu.org>
11970
11971 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
11972 Don't include LDFLAGS.
11973 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
11974
119752002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
11976
11977 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
11978 member of x_display_info unless we compile for some window system.
11979
119802002-08-31 Kim F. Storm <storm@cua.dk>
11981
11982 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
11983 (get_window_cursor_type): Don't use them.
11984 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
11985
119862002-08-30 Kenichi Handa <handa@etl.go.jp>
11987
11988 * xdisp.c (get_next_display_element): Fix previous change.
11989
119902002-08-30 Andrew Choi <akochoi@shaw.ca>
11991
11992 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
11993 (expose_window): Use it to fix the display of overlapping
11994 rows (merge code from xterm.c).
11995
11996 * macfns.c (Qbox): Add extern declaration.
11997
119982002-08-30 Juanma Barranquero <lektu@terra.es>
11999
12000 * w32fns.c (Qbox): Make extern.
12001 (syms_of_w32fns): Remove initialization of Qbox.
12002
120032002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
12004
12005 * xfns.c (Fx_open_connection): Fix error message.
12006
120072002-08-30 Kim F. Storm <storm@cua.dk>
12008
12009 The following changes consolidates the handling of the cursor
12010 type in xdisp.c, moving duplicate code and functionality from
12011 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
12012
12013 * frame.h (enum text_cursor_kinds): Consolidated here.
12014 Added DEFAULT_CURSOR value.
12015 (struct frame) <desired_cursor, cursor_width>
12016 <blink_off_cursor, blink_off_cursor_width>: New fields.
12017 Consolidated from output_x, output_w32 and output_mac structs.
12018 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12019 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
12020
12021 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
12022 Variables consolidated here.
12023 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
12024 (Vcursor_in_non_selected_windows): Renamed from
12025 cursor_in_non_selected_windows and changed to Lisp_Object.
12026 (syms_of_xdisp): Define and staticpro new and moved variables.
12027 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
12028 consolidated here. Recognize Qhollow setting.
12029 (set_frame_cursor_types): New function to set frame cursor types
12030 based on the frame parameters.
12031 (get_window_cursor_type): New function to calculate new cursor
12032 type and width for the specified window. Based on duplicated
12033 code consolidated here.
12034 Enhancements: cursor-in-non-selected-windows may be a cursor type,
12035 check buffer-local alternate-cursor-type and blink-cursor-alist
12036 before using built-in blink off methods.
12037
12038 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
12039
12040 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
12041 (get_specified_cursor_type, get_window_cursor_type)
12042 (set_frame_cursor_types): Added prototypes.
12043
12044 * macfns.c (x_specified_cursor_type): Removed.
12045 (x_set_cursor_type): Use set_frame_cursor_types.
12046 (Qbar, Qbox): Removed.
12047 (syms_of_macfns): Don't intern or staticpro them.
12048
12049 * macterm.c (x_specified_cursor_type): Remove prototype.
12050 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12051 (x_display_and_set_cursor): Use get_window_cursor_type.
12052 Remove unused local variables cursor_non_selected, active_cursor.
12053 Redraw cursor if hbar cursor width changes.
12054 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
12055
12056 * macterm.h (enum text_cursor_kinds): Removed.
12057 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
12058 <blink_off_cursor, blink_off_cursor_width>: Members removed.
12059 (FRAME_DESIRED_CURSOR): Macro removed.
12060
12061 * w32fns.c (Vblink_cursor_alist): Removed.
12062 (Qbar, Qhbar, Qbox, Qhollow): Removed.
12063 (syms_of_w32fns): Don't intern, staticpro, or define them.
12064 (x_specified_cursor_type): Removed.
12065 (x_set_cursor_type): Use set_frame_cursor_types.
12066
12067 * w32term.c (x_specified_cursor_type): Remove prototype.
12068 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12069 (x_display_and_set_cursor): Use get_window_cursor_type.
12070 Remove unused local variables cursor_off_state.
12071 Redraw cursor if hbar cursor width changes.
12072 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
12073
12074 * w32term.h (enum text_cursor_kinds): Removed.
12075 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
12076 <blink_off_cursor, blink_off_cursor_width>: Members removed.
12077 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12078 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
12079 (struct w32_display_info) <x_highlight_frame>: Renamed member from
12080 w32_highlight_frame.
12081
12082 * xfns.c (Vblink_cursor_alist): Removed.
12083 (Qbar, Qhbar, Qbox, Qhollow): Removed.
12084 (syms_of_xfns): Don't intern, staticpro, or define them.
12085 (x_specified_cursor_type): Removed.
12086 (x_set_cursor_type): Use set_frame_cursor_types.
12087
12088 * xterm.c (x_specified_cursor_type): Remove prototype.
12089 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12090 (x_display_and_set_cursor): Use get_window_cursor_type.
12091 Remove unused local variables cursor_off_state.
12092 Redraw cursor if hbar cursor width changes.
12093
12094 * xterm.h (enum text_cursor_kinds): Removed.
12095 (struct output_x) <current_cursor, desired_cursor, cursor_width>
12096 <blink_off_cursor, blink_off_cursor_width>: Members removed.
12097 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12098 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
12099 (x_specified_cursor_type): Remove prototype.
12100
121012002-08-28 Richard M. Stallman <rms@gnu.org>
12102
12103 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
12104 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
12105 (Vblink_cursor_alist): New variable.
12106 (syms_of_w32fns): Initialize and defvar it.
12107 (x_specified_cursor_type): Recognize Qbox for filled box.
12108 Exceptions are hollow boxes.
12109 (Qbox, Qhollow): New variables.
12110 (syms_of_w32fns): Initialize and staticpro them.
12111
12112 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
12113 New macros.
12114 (struct w32_output): New fields blink_off_cursor,
12115 blink_off_cursor_width.
12116 (FRAME_CURSOR_WIDTH): New macro.
12117
12118 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
12119 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
12120
12121 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
12122 for bar cursor.
12123
12124 * w32term.c (expose_overlaps): New function.
12125 (expose_window): Use it to fix the display of overlapping rows.
12126
121272002-08-28 Simon Josefsson <jas@extundo.com>
12128
12129 * xfns.c (Fx_open_connection): Improve help when X connection
12130 fails, xhost is insecure and xauth is better.
12131
121322002-08-28 Juanma Barranquero <lektu@terra.es>
12133
12134 * makefile.w32-in: Add missing dependencies on w32term.h and
12135 composite.h.
12136
12137 * emacs.c (USAGE1): Add missing newline.
12138
121392002-08-27 Andrew Choi <akochoi@shaw.ca>
12140
12141 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
12142
121432002-08-27 Richard M. Stallman <rms@gnu.org>
12144
12145 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
12146 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
12147 (Vblink_cursor_alist): New variable.
12148 (syms_of_xfns): Initialize and defvar it.
12149 (x_specified_cursor_type): Recognize Qbox for filled box.
12150 Exceptions are hollow boxes.
12151 (Qbox, Qhollow): New variables.
12152 (syms_of_xfns): Initialize and staticpro them.
12153
12154 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
12155 New macros.
12156 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
12157
12158 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
12159 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
12160
12161 * emacs.c (main): Handle --script.
12162 (USAGE1): Mention --script.
12163 (standard_args): Define sort order for --script.
12164
121652002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
12166
12167 * xdisp.c (redisplay_updating_p): Variable removed.
12168 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
12169 New variables.
12170 (init_iterator): Don't free realized faces if
12171 inhibit_free_realized_faces is set.
12172 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
12173 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
12174 initialize Qinhibit_free_realized_faces.
12175
12176 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
12177 when iterator is adding glyphs to a glyph matrix.
12178
121792002-08-27 Kenichi Handa <handa@etl.go.jp>
12180
12181 * xdisp.c (get_next_display_element): In unibyte case, don't use
12182 octal form for such eight-bit characters that can be converted to
12183 multibyte char.
12184
121852002-08-26 Kim F. Storm <storm@cua.dk>
12186
b6189c3b
KS
12187 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
12188 foreground and background colors. From Joe Buehler.
048addec
JD
12189
121902002-08-26 Miles Bader <miles@gnu.org>
12191
12192 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
12193
121942002-08-25 Andrew Choi <akochoi@shaw.ca>
12195
12196 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
12197 defined instead of MAC_OSX.
12198
12199 * s/darwin.h (select): Define select to sys_select only if
12200 HAVE_CARBON is defined.
12201 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
12202 (DONT_REOPEN_PTY): #def it.
12203
12204 * macterm.c (XTread_socket): Remove code to call
12205 SendEventToEventTarget for keys with command modifiers when
12206 mac_command_key_is_meta is nil.
12207
122082002-08-24 Andreas Schwab <schwab@suse.de>
12209
12210 * eval.c (Fdefvar): Fix last change.
12211
122122002-08-23 Richard M. Stallman <rms@gnu.org>
12213
12214 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
12215 Record variables in load history as (defvar . VAR).
12216 (Fdefvar): Don't record in load history if no initial value.
12217 (Qdefvar): New variable.
12218 (syms_of_eval): Init and staticpro it.
12219
12220 * lread.c (syms_of_lread): Doc fix.
12221 (build_load_history): Use Fmember to see if a definition
12222 is already in the Vload_history element.
12223
12224 * process.c (Fstart_process): Remove /: from program name.
12225
12226 * emacs.c (decode_env_path): Don't add /: if file name handler
12227 has a `safe-magic' property.
12228
12229 * callproc.c (Fcall_process): Remove /: from program name.
12230
122312002-08-23 Stefan Monnier <monnier@cs.yale.edu>
12232
12233 * regex.c (PATFETCH): Remove the translating fetch.
12234 (PATFETCH_RAW): Rename to PATFETCH.
12235 (set_image_of_range): New fun.
12236 (SET_RANGE_TABLE_WORK_AREA): Use it.
12237 (regex_compile): Don't translate the pattern chars so eagerly.
12238 Only do it when inserting an `exactn' bytecode or when handling
12239 a char-range.
12240 (mutually_exclusive_p): Avoid empty statement.
12241
122422002-08-22 Kim F. Storm <storm@cua.dk>
12243
12244 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
12245 end up on a partially visible line; this reverts a specific part
12246 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
12247 display error which has been reported several times now.
12248 However it introduces the problem that changes was supposed to fix.
12249 See my comments in the source if you want to debug this further.
12250
122512002-08-20 Kenichi Handa <handa@etl.go.jp>
12252
12253 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
12254
122552002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
12256
12257 * msdos.c (croak): Add `void' to definition.
12258
c1380aa6 12259 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
12260 Don't define them, they are defined in msdos.c.
12261
12262 * mem-limits.h [MSDOS]: Declare etext.
12263
12264 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
12265 `const' since CORRECT_DIR_SEPS modifies its target.
12266
122672002-08-19 Kim F. Storm <storm@cua.dk>
12268
2fb0ce67 12269 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
12270 KEEP-RECORD to avoid clearing lossage when we just want to clear
12271 the current key sequence (kmacro needs this).
12272
122732002-08-19 Kenichi Handa <handa@localhost>
12274
12275 * composite.c (run_composition_function): Call FUNC if it is fboundp.
12276
12277 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
12278 cons, return Qnil.
12279
122802002-08-17 Richard M. Stallman <rms@gnu.org>
12281
12282 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
12283
12284 * sysdep.c [!VMS]: Include sys/files.h.
12285
12286 * editfns.c (save_restriction_restore): Defend from unchained marker.
12287
12288 * buffer.c (overlays_at): Handle extending vec uniformly.
12289 (overlays_in): Handle extending vec from length 0 as in overlays_at.
12290
122912002-08-15 Andrew Choi <akochoi@shaw.ca>
12292
12293 * mac.c (init_mac_osx_environment): New function.
12294
12295 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
12296
122972002-08-14 Kim F. Storm <storm@cua.dk>
12298
12299 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
12300 executing macro before appending to it (when used from Lisp).
12301 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
12302 which is called prior to each iteration of macro (for kmacro.el).
12303 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
12304
12305 * lisp.h (Fexecute_kbd_macro): Update prototype.
12306
12307 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
12308
123092002-08-14 Kenichi Handa <handa@etl.go.jp>
12310
12311 * xselect.c (QUTF8_STRING): New variable.
12312 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
12313 (x_atom_to_symbol): Likewise.
12314 (x_get_local_selection): New argument local_request. If it is
12315 nonzero, call handler_fn with the second arg nil.
12316 (x_handle_selection_request): Call x_get_local_selection with
12317 local_request 0.
12318 (lisp_data_to_selection_data): Don't encode the string here.
12319 (Fx_get_selection_internal): Call x_get_local_selection with
12320 local_request 1.
12321 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
12322
12323 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
12324
12325 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
12326
123272002-08-13 Richard M. Stallman <rms@gnu.org>
12328
12329 * minibuf.c (Fminibufferp): New function.
12330 (syms_of_minibuf): Defsubr it.
12331 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
12332
123332002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
12334
12335 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
12336
123372002-08-12 Richard M. Stallman <rms@gnu.org>
12338
12339 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
12340 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
12341 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
12342 already.
12343
12344 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
12345
123462002-08-11 Andrew Choi <akochoi@shaw.ca>
12347
12348 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
12349 (Vmac_pass_command_to_system): New variable.
12350 (Vmac_pass_control_to_system): New variable.
12351 (do_mouse_moved): Check wp with is_emacs_window.
12352 (XTread_socket): Check window_ptr with is_emacs_window.
12353 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
12354 events back to Mac Toolbox for processing, depending on values of
12355 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
12356 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
12357 Vmac_pass_control_to_system.
12358
123592002-08-10 Kenichi Handa <handa@etl.go.jp>
12360
12361 * coding.c (unencodable_char_position): New function.
12362 (Funencodable_char_position): New function.
12363 (syms_of_coding): Defsubr Funencodable_char_position.
12364
123652002-08-10 Andrew Choi <akochoi@shaw.ca>
12366
12367 * mac.c (sys_select) [MAC_OSX]: New function.
12368
12369 * macterm.c (MakeMeTheFrontProcess): New function.
12370 (mac_initialize): Call MakeMeTheFrontProcess.
12371
12372 * s/darwin.h: Define select to sys_select.
12373
123742002-08-09 Richard M. Stallman <rms@gnu.org>
12375
12376 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
12377
123782002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
12379
12380 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
12381 end of the buffer.
12382
123832002-08-08 Ken Raeburn <raeburn@mit.edu>
12384
12385 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
12386
12387 * puresize.h (BASE_PURESIZE): Increase to 910000.
12388
123892002-08-08 Kenichi Handa <handa@etl.go.jp>
12390
12391 * coding.c (Ffind_operation_coding_system): For write-region, if
12392 VISIT is a filename, make it the target.
12393
123942002-08-07 Richard M. Stallman <rms@gnu.org>
12395
12396 * alloc.c (mark_object): Detect long lists for debugging.
12397 (mark_object_loop_halt): New variable.
12398
12399 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
12400
12401 * data.c (Fmake_variable_frame_local): Doc fix.
12402
124032002-08-01 David Ponce <david@dponce.com>
12404
12405 * w32menu.c (local_heap, local_alloc, local_free): New macros.
12406 (malloc_widget_value, free_widget_value)
12407 (w32_free_submenu_strings): Use them.
12408
12409 (push_submenu_start, push_submenu_end, push_left_right_boundary)
12410 (push_menu_pane, push_menu_item, single_keymap_panes)
12411 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
12412 (single_submenu, set_frame_menubar)
12413 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
12414
12415 (Fx_popup_menu): Don't show pop up menu until preceding one is
12416 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
12417
12418 * w32menu.c: Changes adapted from xmenu.c
12419 (set_frame_menubar): First parse all submenus,
12420 then make widget_value trees from them.
12421 Don't allocate any widget_value objects
12422 until we are done with the parsing.
12423 (parse_single_submenu): New function.
12424 (digest_single_submenu): New function.
12425 (single_submenu): Function deleted, replaced by those two.
12426
124272002-08-04 Andrew Choi <akochoi@shaw.ca>
12428
12429 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
12430 returns a valid window pointer before proceeding for keyDown and
12431 autoKey events.
12432
124332002-08-03 Andrew Choi <akochoi@shaw.ca>
12434
12435 * macterm.c (USE_CARBON_EVENTS): New macro.
12436 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
12437 (x_iconify_frame): Call CollapseWindow.
12438 (Vmac_reverse_ctrl_meta): New variable.
12439 (Vmac_wheel_button_is_mouse_2): New variable.
12440 (init_mac_drag_n_drop): New function.
12441 (mac_do_receive_drag): New function.
12442 (mac_handle_service_event): New function.
12443 (init_service_handler): New function.
12444 (mac_to_emacs_modifiers): New function.
12445 (mac_event_to_emacs_modifiers): New function.
12446 (mac_get_mouse_btn): New function.
12447 (mac_convert_event_ref): New function.
12448 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
12449 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
12450 mac_get_mouse_btn.
12451 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
12452
12453 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
12454 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
12455 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
12456 TOOL_BAR_EVENT for MAC_OS as well.
12457 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
12458 as for WINDOWS_NT.
12459 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
12460
12461 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
12462
124632002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
12464
12465 * xdisp.c (forward_to_next_line_start): Fix a condition that
12466 lead to a newline being skipped.
12467
124682002-08-02 Andrew Choi <akochoi@shaw.ca>
12469
12470 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
12471
124722002-08-01 Richard M. Stallman <rms@gnu.org>
12473
12474 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
12475
124762002-07-31 Andrew Choi <akochoi@shaw.ca>
12477
12478 * macfns.c: #undef init_process before #define-ing it.
12479
12480 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
12481 HAVE_CARBON is defined.
12482
124832002-07-31 Richard M. Stallman <rms@gnu.org>
12484
12485 * xmenu.c (set_frame_menubar): First parse all submenus,
12486 then make widget_value trees from them.
12487 Don't allocate any widget_value objects
12488 until we are done with the parsing.
12489 (parse_single_submenu): New function.
12490 (digest_single_submenu): New function.
12491 (single_submenu): Function deleted, replaced by those two.
12492
124932002-07-30 Juanma Barranquero <lektu@terra.es>
12494
12495 * w32proc.c (syms_of_ntproc): Fix docstring of
12496 `w32-get-true-file-attributes'.
12497
124982002-07-28 Richard M. Stallman <rms@gnu.org>
12499
12500 * s/hpux8.h (HPUX8): Define this before including hpux.h.
12501 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
12502
12503 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
12504
12505 * keyboard.c (make_lispy_event):
12506 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
12507 Explicitly clear up_modifier in event->modifiers.
12508
125092002-07-27 Richard M. Stallman <rms@gnu.org>
12510
12511 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
12512
12513 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
12514 for bar cursor.
12515
125162002-07-26 Kenichi Handa <handa@etl.go.jp>
12517
12518 * coding.c (detect_coding_iso2022): While checking a byte sequence
12519 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
12520 it in the normal loop.
12521
125222002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
12523
12524 * xterm.c (expose_overlaps): New function.
12525 (expose_window): Use it to fix the display of overlapping rows.
12526
12527 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
12528
125292002-07-23 Ken Raeburn <raeburn@gnu.org>
12530
12531 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
12532 since it only depends on XUINT.
12533
12534 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
12535 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
12536 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
12537 Macros deleted.
3947677c 12538
77d1daf2
AS
12539 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
12540 its value over other approaches.
12541 * sysdep.c (start_of_data): Don't define the function if a macro
12542 form has been defined.
8a8e19a3 12543
048addec
JD
125442002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
12545
12546 * xdisp.c (redisplay_updating_p): New variable.
12547 (init_iterator): Don't free realized faces when
12548 redisplay_updating_p is set.
12549 (redisplay_internal): Set redisplay_updating_p while updating
12550 the display.
12551
125522002-07-23 Richard M. Stallman <rms@gnu.org>
12553
12554 * editfns.c (Fmessage): Treat "" like nil.
12555
125562002-07-23 Kenichi Handa <handa@etl.go.jp>
12557
12558 * xdisp.c (face_before_or_after_it_pos):
12559 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
12560
125612002-07-22 Juanma Barranquero <lektu@terra.es>
12562
12563 * callproc.c (init_callproc) [DOS_NT]:
12564 Initialize Vshared_game_score_directory to nil.
12565 (syms_of_callproc) [DOS_NT]: Likewise.
12566
125672002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
12568
12569 * xdisp.c (display_line): Replace an abort with xassert.
12570
125712002-07-21 Richard M. Stallman <rms@gnu.org>
12572
12573 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
12574 and END_UNCHANGED when setting buffer_unchanged_p.
12575 Use current_matrix_up_to_date_p to decide whether to use
12576 try_cursor_movement.
12577
12578 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
12579
12580 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
12581
12582 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
12583 Set to nil if dir does not exist.
12584 (syms_of_callproc): Init unconditionally and simply.
12585
12586 * buffer.c (Fbuffer_list): Doc fix.
12587
125882002-07-21 Ken Raeburn <raeburn@gnu.org>
12589
12590 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
12591
12592 * buffer.c (mmap_realloc): When shrinking, make sure number of
12593 pages to unmap is rounded towards zero.
12594
12595 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
12596 (XSETINT): Deleted.
12597
12598 * m/att3b.h (XINT): Don't define.
12599 (VALBITS, VALMASK, XTYPE): Deleted.
12600 (DATA_SEG_BITS): Define.
12601 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
12602 ARRAY_MARK_FLAG): Deleted.
12603 (DATA_SEG_BITS): Define.
12604 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
12605 (DATA_SEG_BITS): Define.
12606
126072002-07-20 Richard M. Stallman <rms@gnu.org>
12608
12609 * print.c (print_error_message): New args CONTEXT and CALLER.
12610 Calls changed.
12611
12612 * lisp.h (print_error_message): Declare new args.
12613
12614 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
12615 and CONTEXT to print_error_message, don't print them here.
12616 For a Quit, don't use Vsignaling_function.
12617 Call message_log_maybe_newline.
12618
12619 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
12620
126212002-07-20 Kim F. Storm <storm@cua.dk>
12622
12623 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
12624
126252002-07-19 Ken Raeburn <raeburn@gnu.org>
12626
12627 * bytecode.c (struct byte_stack): Pointers into byte string now
12628 point to const.
12629 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
12630 const.
12631 * charset.h (BCOPY_SHORT): Source pointer now points to const.
12632 * coding.c (encode_eol, detect_coding, detect_eol):
12633 (decode_coding, encode_coding, detect_coding_system):
12634 Source strings now treated as const.
12635 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
12636 modify Lisp string contents.
12637 * coding.h (decode_coding, encode_coding, detect_coding,
12638 detect_eol): Declarations updated.
12639 * composite.c (compose_chars_in_text): Treat Lisp string contents
12640 as const.
12641 * dispnew.c (safe_bcopy): Source pointer now points to const.
12642 * lisp.h (STRING_COPYIN): New macro.
12643 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
12644 (internal_with_output_to_temp_buffer): Declarations updated.
12645 * print.c (temp_output_buffer_setup):
12646 (internal_with_output_to_temp_buffer): Buffer name argument is now
12647 pointer to const.
12648 * sound.c (struct sound_device): Function pointer field "write"
12649 buffer argument now points to const.
12650 (vox_write): Buffer argument points to const.
12651 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
12652 contents as const.
12653 * sysdep.c (emacs_write): Buffer pointer now const.
12654 * term.c (encode_terminal_code): Buffer pointer now const.
12655 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
12656 (x_face_list_fonts, x_update_menu_appearance):
12657 (hash_string_case_insensitive): Treat Lisp string contents as const.
12658
126592002-07-19 Juanma Barranquero <lektu@terra.es>
12660
048addec
JD
12661 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
12662
12663 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
12664 (Ffile_name_as_directory): Fix argument name in docstring.
12665 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
12666
126672002-07-18 Richard M. Stallman <rms@gnu.org>
12668
12669 * data.c (Fdefalias): Doc fix.
12670
126712002-07-17 Dave Love <fx@gnu.org>
12672
12673 * intervals.h (text_property_stickiness): Use P_.
12674
12675 * ccl.c: Remove `emacs' conditionals.
12676 (ccl_backtrace_table): Fix size spec.
12677 (ccl_driver): Fix type errors.
12678
126792002-07-16 Ken Raeburn <raeburn@gnu.org>
12680
12681 * alloc.c (xstrdup, make_string, make_unibyte_string)
12682 (make_multibyte_string, build_string): String pointer args now
12683 point to const.
12684 * charset.c (find_charset_in_text, c_string_width):
12685 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
12686 * fileio.c (report_file_error):
12687 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
12688 (count_combining_before, count_combining_after, insert_1_both):
12689 (insert, insert_and_inherit, insert_string):
12690 (insert_before_markers, insert_before_markers_and_inherit):
12691 * lread.c (intern, oblookup, hash_string):
12692 * minibuf.c (temp_echo_area_glyphs):
12693 * search.c (fast_c_string_match_ignore_case):
12694 * sysdep.c (emacs_open, set_file_times):
12695 * xfaces.c (xstricmp):
12696 * xdisp.c (store_frame_title, string_char_and_length):
12697 (message_dolog, message2, message2_nolog, set_message): Likewise.
12698 (set_message_1): Cast message string argument to const pointer.
12699 * editfns.c (general_insert_function): Insertion function now
12700 takes pointer to const for input data.
12701 * charset.h (find_charset_in_text, c_string_width):
12702 (parse_str_as_multibyte): Declarations updated.
12703 * dispextern.h (xstricmp): Declaration updated.
12704 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
12705 (count_size_as_multibyte, count_combining_before):
12706 (count_combining_after, insert_1, insert_1_both, message_dolog):
12707 (insert, insert_and_inherit, insert_before_markers)
12708 (insert_before_markers_and_inherit, set_message, message2):
12709 (message2_dolog, build_string, make_string, make_unibyte_string):
12710 (make_multibyte_string, intern, oblookup, report_file_error):
12711 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
12712 (emacs_open, xstrdup): Declarations updated.
12713 * systime.h (set_file_times): Declaration updated.
12714
12715 * charset.c (find_charset_in_text, lisp_string_width): Use const
12716 for pointer to lisp string data.
12717 * charset.h (FETCH_STRING_CHAR_ADVANCE):
12718 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
12719 * coding.c (Ffind_coding_systems_region_interval):
12720 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
12721 (Fmake_directory_internal, Fdelete_directory):
12722 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
12723 * fontset.c (font_family_registry, fs_query_fontset):
12724 (list_fontsets):
12725 * frame.c (Fframe_parameter):
12726 * keyboard.c (cmd_error_internal):
12727 * keymap.c (Fdescribe_buffer_bindings):
12728 * lread.c (complete_filename_p, openp):
12729 * minibuf.c (Fminibuffer_complete_word):
12730 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
12731 (face_before_or_after_it_pos, next_element_from_string):
12732 (get_overlay_arrow_glyph_row, display_mode_element):
12733 (decode_mode_spec_coding):
12734 * xterm.c (same_x_server): Likewise.
12735
12736 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
12737 settings of non-existent fields.
12738
12739 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
12740 copy a lisp value.
12741
12742 * lread.c (Fintern_soft): Use string macros instead of
12743 Lisp_String fields.
12744 * keyboard.c (echo_char, parse_modifiers_uncached):
12745 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
12746 * textprop.c (validate_interval_range, interval_of): Likewise.
12747
12748 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
12749
12750 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12751 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
12752 XSTRING()->size_byte.
12753
12754 * lisp.h (SDATA, SREF): Produce rvalue.
12755 (SSET): New macro.
12756 * alloc.c (make_event_array): Use SSET for storing into a string.
12757 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
12758 a string.
12759 * casefiddle.c (casify_object): Use SSET.
12760 * charset.h (FETCH_STRING_CHAR_ADVANCE)
12761 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
12762 address of string contents.
12763 * data.c (Faref): Use SDATA.
12764 (Faset): Use SDATA, SSET.
12765 * dired.c (directory_files_internal): Use SSET.
12766 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
12767 (Fread_file_name): Use SREF, SSET.
12768 * fns.c (concat): Use SSET.
12769 (concat, Fdelete): Use SDATA.
12770 * insdel.c (insert_from_string_1): Use SDATA.
12771 * keyboard.c (Fevent_convert_list): Use SREF.
12772 * lread.c (Fload): Use SDATA, SSET.
12773 * macfns.c (validate_x_resource_name): Use SSET.
12774 * process.c (status_message): Use SSET.
12775 * search.c (wordify): Use SDATA.
12776 (Freplace_match): Use SREF.
12777 * w32fns.c (validate_x_resource_name): Use SSET.
12778 * xfns.c (validate_x_resource_name): Use SSET.
12779 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
12780
127812002-07-16 Richard M. Stallman <rms@gnu.org>
12782
12783 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
12784
12785 * xdisp.c (reconsider_clip_changes):
12786 Don't test prevent_redisplay_optimizations_p.
12787 (redisplay_internal): Test prevent_redisplay_optimizations_p
12788 along with clip_changed in some cases.
12789 (try_window_id): Likewise.
12790 (redisplay_window): New local var buffer_unchanged_p.
12791
12792 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
12793
12794 * process.c (create_process): Test USG_SUBTTY_WORKS.
12795 (process_send_signal): Clean up handling of GID.
12796 Detect errors in ioctls meant to set GID.
12797
12798 * window.c (temp_output_buffer_show):
12799 Don't set prevent_redisplay_optimizations_p.
12800
128012002-07-15 Juanma Barranquero <lektu@terra.es>
12802
12803 * eval.c (Fdefvaralias): Add docstring argument.
12804
128052002-07-15 Ken Raeburn <raeburn@gnu.org>
12806
12807 * lisp.h (STRING_INTERVALS): Produce rvalue.
12808 (STRING_SET_INTERVALS): New macro.
12809 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
12810 * fns.c (Fstring_as_multibyte): Likewise.
12811 * intervals.c (balance_possible_root_interval, delete_interval)
12812 (create_root_interval, copy_intervals_to_string): Likewise.
12813 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
12814 instead of 0.
12815
128162002-07-14 Ken Raeburn <raeburn@gnu.org>
12817
12818 * lisp.h (STRING_SET_CHARS): New macro.
12819 (SCHARS, SBYTES): Produce rvalues.
12820 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
12821 * fns.c (concat): Likewise.
12822 * lread.c (read_vector): Likewise.
12823
3419757d 12824 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 12825 (STRING_SET_UNIBYTE): New macro.
3419757d 12826 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
12827 length of -1) changed to use STRING_SET_UNIBYTE.
12828 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
12829 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
12830 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
12831 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
12832 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
12833 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
12834 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
12835 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
12836 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
12837 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
12838 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
12839 STRING_BYTES or indirection changed to SCHARS, SBYTES,
12840 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
12841 unchanged for now.
12842
128432002-07-13 Kim F. Storm <storm@cua.dk>
12844
12845 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
12846
128472002-07-12 Richard M. Stallman <rms@gnu.org>
12848
12849 * fileio.c (Fwrite_region): Doc fix.
12850
12851 * print.c (print_error_message): Don't handle Vsignaling_function here.
12852
12853 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
12854 (command_loop_1): Avoid certain actions after memory-full error.
12855
12856 * eval.c (Fsignal): Don't call cancel_hourglass.
12857 For a memory-full error, don't call Vsignal_hook_function
12858 and don't set Vsignaling_function.
12859
12860 * process.c (process_send_signal): Add abort call.
12861
128622002-07-11 Markus Rost <rost@math.ohio-state.edu>
12863
12864 * keymap.c (Fkey_binding): Fix typo.
12865
128662002-07-11 Richard M. Stallman <rms@gnu.org>
12867
12868 * alloc.c (Vmemory_full): New variable.
3419757d 12869 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
12870 Uses changed.
12871 (syms_of_alloc): Defvar them.
12872 (memory_full, buffer_memory_full): Set Vmemory_full.
12873
12874 * lisp.h (Vmemory_full): Add declaration.
12875 (current_column, indented_beyond_p): Change declaration.
12876
12877 * indent.c (last_known_column): Declare as double, not float.
12878 (current_column, current_column_1, string_display_width)
12879 (position_indentation): Return `double'.
12880 (indented_beyond_p): Arg `column' is `double'. Callers changed.
12881
12882 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
12883 (back_to_previous_visible_line_start)
12884 (reseat_at_next_visible_line_start, next_element_from_buffer):
12885 Use `double', not `float', when calling indented_beyond_p.
12886
3419757d 12887 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
12888
12889 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
12890
128912002-07-11 Juanma Barranquero <lektu@terra.es>
12892
12893 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
12894 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
12895 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
12896 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
12897 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
12898 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
12899
129002002-07-10 Juanma Barranquero <lektu@terra.es>
12901
d814862a
JB
12902 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
12903 All callers changed.
048addec
JD
12904
129052002-07-09 Stefan Monnier <monnier@cs.yale.edu>
12906
12907 * data.c (Fdefalias): Add an optional `docstring' argument.
12908 (set_internal, Fsetq_default): Use XCAR/XCDR.
12909
12910 * composite.c (HASH_VALUE, HASH_KEY):
12911 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
12912
129132002-07-09 Kenichi Handa <handa@etl.go.jp>
12914
12915 * callproc.c (Fcall_process): Fix previous change.
12916
129172002-07-07 Stefan Monnier <monnier@cs.yale.edu>
12918
12919 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
12920 Add support for hash-tables.
12921 (Ftry_completion): Return t even if the string appears multiple times.
12922
12923 * fns.c (Fnconc): Use XCDR.
12924 (Fprovide): Use CONSP and XCDR.
12925 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12926 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
12927 (Fmake_hash_table): Accept `:size nil'.
12928 (Fmakehash): Delete: moved to subr.el.
12929 (syms_of_fns): Don't defsubr makehash.
12930
12931 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
12932 (HASH_TABLE_SIZE): Move from fns.c.
12933
129342002-07-07 Richard M. Stallman <rms@gnu.org>
12935
12936 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
12937 Instead just return 0 when there is something to be done.
12938 (try_scrolling): If make_cursor_line_fully_visible returns 0,
12939 retry scrolling as if cursor were off the bottom.
12940 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
12941 return CURSOR_MOVEMENT_MUST_SCROLL.
12942 (redisplay_window): If make_cursor_line_fully_visible returns 0,
12943 go to try_to_scroll.
12944
12945 * buffer.c (Fbuffer_local_value): Store current value into its binding
12946 so we get the up-to-date value for the binding that is loaded.
12947
12948 * eval.c (Fdefmacro): Doc fix.
12949
129502002-07-05 Dave Love <fx@gnu.org>
12951
12952 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
12953 correctly.
12954
12955 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
12956 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
12957 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
12958 CCL_LookupCharConstTbl.
12959 (syms_of_ccl): Defvar translation-hash-table-vector.
12960
129612002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12962
12963 * xdisp.c: Remove unused variable `face'.
12964
129652002-07-04 Juanma Barranquero <lektu@terra.es>
12966
12967 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
12968 obsolescence information.
12969
129702002-07-03 Andrew Choi <akochoi@shaw.ca>
12971
12972 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
12973 pattern. Search cache first.
12974 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
12975 for Japanese font.
12976 (XLoadQueryFont): Use it.
12977
129782002-07-02 Richard M. Stallman <rms@gnu.org>
12979
12980 * keymap.c (Fdefine_key): Doc fix.
12981
12982 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
12983
129842002-07-02 Juanma Barranquero <lektu@terra.es>
12985
12986 * keymap.c (syms_of_keymap): Fix typo.
12987
129882002-07-01 Andrew Choi <akochoi@shaw.ca>
12989
12990 * s/darwin.h: Define POSIX_SIGNALS.
12991
12992 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
12993 and FSRefMakePath to convert FSSpec returned with Apple Event to
12994 Posix pathname.
12995 (mac_initialize) [TARGET_API_MAC_CARBON]:
12996 Call init_required_apple_events and disable the `Quit' menu item
12997 provided automatically by the Carbon Toolbox.
12998
129992002-07-01 Dave Love <fx@gnu.org>
13000
13001 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
13002 for K&R.
13003
13004 * xterm.c: Fix prototype for K&R.
13005
13006 * term.c (costs_set): Declare static, non-initialized for pcc.
13007
130082002-07-01 Richard M. Stallman <rms@gnu.org>
13009
13010 * keyboard.c (timer_last_idleness_start_time): New variable.
13011 (timer_start_idle): Set that.
13012 (read_key_sequence): Use that to reset timer_idleness_start_time
13013 to previous value.
13014
13015 * window.c (Frecenter): With arg, set optional_new_start.
13016
13017 * xdisp.c (redisplay_internal): Make optional_new_start really work.
13018
13019 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
13020 buffer for completion.
13021
130222002-06-29 Ken Raeburn <raeburn@gnu.org>
13023
13024 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
13025
130262002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13027
13028 * keyboard.c (readable_filtered_events): New function that filters
13029 FOCUS_IN_EVENT depending on parameter.
13030 (readable_events): Calls readable_filtered_events, not filtering
13031 FOCUS_IN_EVENT.
13032 (get_filtered_input_pending): New function, filtering parameter passed
13033 to readable_filtered_events.
13034 (get_input_pending): Calls get_filtered_input_pending, not filtering
13035 FOCUS_IN_EVENT.
13036 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
13037 FOCUS_IN_EVENT.
13038
13039 * xterm.h (struct x_output): Add focus_state.
13040
13041 * xterm.c (x_focus_changed): New function.
13042 (x_detect_focus_change): New function.
13043 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
13044 EnterNotify and LeaveNotify to track X focus changes.
13045
130462002-06-28 Andreas Schwab <schwab@suse.de>
13047
13048 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
13049
130502002-06-27 Kim F. Storm <storm@cua.dk>
13051
13052 * xdisp.c: (mode_line_string_list, mode_line_string_face)
13053 (mode_line_string_face_prop): New variables.
13054 (store_mode_line_string): New function.
13055 (display_mode_element): Use store_mode_line_string to
13056 add mode-line string elements to mode_line_string_list
13057 when mode_line_string_list is non-nil.
13058 (Fformat_mode_line): Now returns propertized string by
13059 default. New arg NO-PROPS to ignore properties.
13060 (decode_mode_spec): Only add two dashes for %- in propertized
13061 mode-line string.
13062 (syms_of_xdisp): Init and staticpro mode_line_string_list.
13063
130642002-06-27 Stefan Monnier <monnier@cs.yale.edu>
13065
13066 * minibuf.c (minibuffer_completion_contents): Add return type.
13067
130682002-06-27 Juanma Barranquero <lektu@terra.es>
13069
13070 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
13071
130722002-06-26 Juanma Barranquero <lektu@terra.es>
13073
13074 * fileio.c (read_file_name_cleanup): Add missing return.
13075
130762002-06-26 Richard M. Stallman <rms@gnu.org>
13077
13078 * window.c (Frecenter): Don't set force_start flag.
13079
13080 * minibuf.c (do_completion, Fminibuffer_complete_word)
13081 (Fminibuffer_completion_help): Complete just the text before point.
13082 (minibuffer_completion_contents): New function.
13083
13084 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
13085
13086 * frame.c (frames_bury_buffer): Function deleted.
13087
130882002-06-25 Miles Bader <miles@gnu.org>
13089
13090 * callint.c (Fcall_interactively): When checking to see if doprnt hit
13091 the end of callint_message, allow for a terminating '\0'.
13092
130932002-06-24 Juanma Barranquero <lektu@terra.es>
13094
13095 * w32select.c: Include composite.h
13096
13097 * w16select.c: Likewise.
13098
130992002-06-24 Kenichi Handa <handa@etl.go.jp>
13100
13101 * callproc.c (Fcall_process): If code detection is necessary,
13102 call detect_coding directly here.
13103
13104 * coding.c (detect_eol): Preserve coding->cmp_data.
13105
13106 * w16select.c (Fw16_get_clipboard_data):
13107 * w32fns.c (w32_to_x_font):
13108 * w32select.c (Fw32_get_clipboard_data):
13109 * xselect.c (selection_data_to_lisp_data):
13110 * xterm.c (XTread_socket): Disable composition handling.
13111
131122002-06-24 Stefan Monnier <monnier@cs.yale.edu>
13113
13114 * print.c (temp_output_buffer_setup): Kill all local variables.
13115
131162002-06-22 Stefan Monnier <monnier@cs.yale.edu>
13117
13118 * lread.c (Fread): Remove redundant and imprecise declaration.
13119
13120 * xfns.c (check_x_display_info): Use check_x_frame.
13121
13122 * .gdbinit (xprintsym): Use the new `xname' field.
13123 (xsymbol): Use it.
13124
131252002-06-22 Jason Rumney <jasonr@gnu.org>
13126
13127 * w32fns.c (file_dialog_callback): New function.
13128 (Fx_file_dialog): Allow selecting directories as well as files.
13129
131302002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13131
13132 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 13133 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
13134
131352002-06-17 Andrew Choi <akochoi@shaw.ca>
13136
13137 * macterm.c (mac_scroll_area): Set foreground and backcolor to
13138 black and white before scrolling. Restore frame background and
13139 foreground color after scrolling.
13140 (do_window_update): Call XClearWindow before calling expose_frame.
13141 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
13142 FRAME_FOREGROUND_PIXEL of frame.
13143
13144 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
13145 test Mac command key as <ALT> key.
13146
131472002-06-17 Stefan Monnier <monnier@cs.yale.edu>
13148
13149 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
13150
13151 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
13152 Lookup keys in function-key-map immediately so that key-translation-map
13153 can be applied earlier.
13154 Remove function_key_possible and key_translation_possible, replaced
13155 by checking `keytran_start < t'.
13156
13157 * .gdbinit (xsymbol): Use the new `xname' field.
13158
131592002-06-17 Andrew Choi <akochoi@shaw.ca>
13160
13161 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
13162 test Mac command key as <ALT> key.
13163
13164 * mac.c (do_applescript): Call initialize_applescript if necessary
13165 when first called. Dispose of result_desc only when there is no error.
13166 (Fdo_applescript): Use %d format specifier instead of %ld.
13167
131682002-06-16 Andrew Choi <akochoi@shaw.ca>
13169
13170 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
13171 of FrontWindow for cases keyDown and autoKey.
13172
13173 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
13174 Vdefault_fontset to Monaco with mac-roman coding.
13175
13176 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
13177 init_process before and after inclusion of Carbon/Carbon.h, resp.
13178
13179 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
13180 cursor_gc.
13181 (add_font_name_table_entry): New function.
13182 (init_font_name_table): Use add_font_name_table_entry; add italic,
13183 bold, and bold-italic entries for truetype fonts.
13184
13185 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
13186 for Mac too.
13187 (try_font_list) [MAC_OS]: If no font matches given registry, try
13188 fonts with any registry matching face_family.
13189 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
13190
13191 * s/darwin.h: If autoconf detects the Ncurses library, define
13192 LIBS_TERMCAP to -lncurses to use it.
13193
131942002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
13195
13196 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
13197
131982002-06-15 Richard M. Stallman <rms@gnu.org>
13199
13200 * window.c (Fset_window_configuration): Explicitly preserve
13201 the point value that new_current_buffer had at the start.
13202
132032002-06-14 Juanma Barranquero <lektu@terra.es>
13204
13205 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
13206 Fix typos.
13207
132082002-06-14 Kim F. Storm <storm@cua.dk>
13209
13210 * insdel.c (insert_1_both, insert_from_string_1)
13211 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
13212 insert happened in the end_unchanged region. Otherwise, the
13213 redisplay may be confused and duplicate the last line in the
13214 buffer [seen after save-buffer when require-final-newline==t].
13215
132162002-06-13 Jason Rumney <jasonr@gnu.org>
13217
13218 * w32.c (init_environment): Remove EMACSLOCKDIR.
13219 (stat): Swap _S_IFDIR and _S_IFREG.
13220
132212002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13222
13223 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
13224 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
13225 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
13226 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
13227 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
13228 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
13229 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
13230 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
13231 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
13232 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
13233 SELECTION_REQUEST_EVENT, selection_clear_event to
13234 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
13235 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
13236 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
13237 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
13238 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
13239 no_event to NO_EVENT.
13240
132412002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13242
13243 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
13244
132452002-06-12 Stefan Monnier <monnier@cs.yale.edu>
13246
13247 * intervals.c (textget): Don't forget to `return'.
13248 (lookup_char_property): Use XCAR/XCDR.
13249
132502002-06-12 Juanma Barranquero <lektu@terra.es>
13251
13252 * xdisp.c (Fformat_mode_line): Fix typo.
13253
132542002-06-12 Kim F. Storm <storm@cua.dk>
13255
13256 * xdisp.c (Fformat_mode_line): New function.
13257 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
13258 (store_frame_title_char, store_frame_title): Use unconditionally.
13259 (init_xdisp): Defsubr Fformat_mode_line.
13260 Initialize frame_title_buf etc. unconditionally.
13261
132622002-06-11 Stefan Monnier <monnier@cs.yale.edu>
13263
13264 * keyboard.c (read_key_sequence):
13265 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
13266 things through those maps after downcasing events.
13267 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
13268 applies after function-key-map.
13269 Make sure that keytran can be done in the middle in the sequence.
13270 Be careful not to throw away events past the one we downcase.
13271
13272 * lread.c (read_integer): Remove unused var `tem'.
13273 (read1): Fix int/Lisp_Object mixup.
13274
13275 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
13276
132772002-06-11 Richard M. Stallman <rms@gnu.org>
13278
13279 * keyboard.c (readable_events): Ignore any number of
13280 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
13281
132822002-06-09 Miles Bader <miles@gnu.org>
13283
13284 * xfaces.c (Ftty_supports_face_attributes_p): New function.
13285 (parse_rgb_list, tty_lookup_color): New functions.
13286 (tty_defined_color): Use `tty_lookup_color' to do all the work.
13287 (color_distance, Fcolor_distance): New functions.
13288 (TTY_SAME_COLOR_THRESHOLD): New macro.
13289 (Qtty_color_standard_values): New variable.
13290 (syms_of_xfaces): Initialize new vars & functions.
13291
132922002-06-08 Colin Walters <walters@verbum.org>
13293
13294 * textprop.c (Vchar_property_alias_alist): New variable.
13295 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
13296
13297 * intervals.c (lookup_char_property): New function for looking up
13298 overlay and text properties, created from textget.
13299 (textget): Use it.
13300
13301 * intervals.h (lookup_char_property): Declare.
13302 (Vchar_property_alias_alist): Declare.
13303
13304 * buffer.c (Foverlay_get): Use lookup_char_property.
13305
133062002-06-07 Sam Steingold <sds@gnu.org>
13307
13308 * xselect.c (lisp_data_to_selection_data): Fix last change:
13309 *data_ret is not a Lisp string, while unibyte_string is.
13310
133112002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
13312
13313 * xselect.c (lisp_data_to_selection_data): Fix last change:
13314 set size_ret.
13315
133162002-06-07 Andreas Schwab <schwab@suse.de>
13317
13318 * m/amdx86-64.h: New file.
13319
133202002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
13321
13322 * fns.c (Fstring_make_unibyte): Doc fix.
13323
13324 * xselect.c (lisp_data_to_selection_data): If the requested type
13325 is STRING, call string_make_unibyte to encode the selected text
13326 as a string.
13327
13328 * window.c (Fset_window_hscroll): Doc fix.
13329
133302002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13331
13332 * fileio.c (choose_write_coding_system):
13333 Call select-safe-coding-system properly.
13334
133352002-06-03 Richard M. Stallman <rms@gnu.org>
13336
13337 * xdisp.c (message_with_string): Error if STRING is not a string.
13338
13339 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
13340
13341 * fileio.c (choose_write_coding_system): Pass FILE arg to
13342 Vselect_safe_coding_system_function.
13343
133442002-06-03 Ken Raeburn <raeburn@gnu.org>
13345
13346 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
13347
133482002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
13349
13350 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
13351 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
13352 * keymap.c (describe_command): Likewise.
13353 * minibuf.c (read_minibuf): Likewise.
13354
13355 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
13356 Cast `current_column' return value to int.
13357 (back_to_previous_visible_line_start)
13358 (reseat_at_next_visible_line_start, next_element_from_buffer):
13359 Cast `indented_beyond_p' 3rd arg to float.
13360
13361 * indent.c (last_known_column): Now a float.
13362 (current_column_1, position_indentation, current_column)
13363 (string_display_width): Return float.
13364 (Fcurrent_column): Cast `current_column' return value to int.
13365 (Fcurrent_indentation): Cast `position_indentation' retval to int.
13366 (indented_beyond_p): Third arg now a float.
13367 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
13368
13369 * lisp.h (current_column): Now returns float.
13370 (indented_beyond_p): 3rd arg now a float.
13371
133722002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
13373
13374 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
13375 is Qcompound_text_with_extensions.
13376
13377 * xselect.c (lisp_data_to_selection_data): Always set selection
13378 type as string if x_encode_text returns streingp non-NULL.
13379
13380 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
13381
133822002-05-30 Richard M. Stallman <rms@gnu.org>
13383
13384 * window.c (Fset_window_configuration): Correct the handling
13385 of point in current buffer, to work with multiple windows.
13386
133872002-05-29 Colin Walters <walters@verbum.org>
13388
13389 * lread.c (Fread_from_string): Don't depend on order of evaluation
13390 for C function parameters.
13391
133922002-05-28 Richard M. Stallman <rms@gnu.org>
13393
13394 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
13395 way for blinked-off state and for a nonselected window.
13396
13397 * window.c (window_scroll_pixel_based): Don't call Fbolp;
13398 instead, see if the new start pos is at beginning of line.
13399
13400 * fileio.c (Fwrite_region): If START is a string, don't
13401 make any annotations.
13402
13403 * eval.c (syms_of_eval): Doc fix.
13404
134052002-05-28 Colin Walters <walters@debian.org>
13406
13407 * emacs.c (USAGE1): Add --no-splash.
13408 (standard_args): Ditto.
13409
134102002-05-28 Colin Walters <walters@gnu.org>
13411
13412 * lread.c (readchar_count): New variable.
13413 (readchar): Increment it.
13414 (unreadchar): Decrement it.
13415 (read_multibyte): Decrement it.
13416 (Vread_with_symbol_positions): New variable.
13417 (Vread_symbol_positions_list): New variable.
13418 (read_internal_start): New function, created from Fread and
13419 Fread_from_string. Handle Vread_symbol_positions_list and
13420 Vread_with_symbol_positions.
13421 (readevalloop, Fread, Fread_from_string): Use it.
13422 (read1): Use readchar_count to add symbol positions to
13423 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
13424 (syms_of_lread): DEFVAR_LISP and initialize them.
13425
13426 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
13427 (substitute_object_recurse, substitute_object_in_subtree)
13428 (substitute_in_interval): Prototype.
13429 (read_multibyte): Return c if it's less than zero.
13430
134312002-05-28 Kim F. Storm <storm@cua.dk>
13432
13433 * fileio.c (Fread_file_name_internal): Added brute-force
13434 speed up for using predicate file-directory-p.
13435
134362002-05-28 Kim F. Storm <storm@cua.dk>
13437
13438 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
13439 New variables.
13440 (syms_of_fileio): DEFVAR_LISP them.
13441 (read_file_name_cleanup): New unwind function.
13442 (Fread_file_name_internal): Only return completions satifying
13443 Vread_file_name_predicate. Temporarily unwind protect and rebind
13444 default-directory while checking completions against the predicate.
13445 (Fread_file_name): Added PREDICATE argument. Specbind it to
13446 Vread_file_name_predicate during completion.
13447 Call Vread_file_name_function to read the file name if non-nil.
13448
13449 * lisp.h (Fread_file_name): Now has 6 args.
13450
13451 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
13452 predicate for Fread_file_name when reading directory name.
13453 Supply Qnil for predicate in other calls to Fread_file_name.
13454
134552002-05-26 Miles Bader <miles@gnu.org>
13456
13457 * term.c (tty_capable_p): New function.
13458 * dispextern.h (tty_capable_p): New function declaration.
13459 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
13460 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
13461
134622002-05-23 Stefan Monnier <monnier@cs.yale.edu>
13463
13464 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
13465 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
13466 (Vwrite_region_annotate_functions): Docstring fix.
13467
134682002-05-23 Kim F. Storm <storm@cua.dk>
13469
13470 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
13471 phys_cursor's hpos is overwritten. This is still not completely
13472 correct, as it doesn't really make sense to use hpos at all to
13473 get the cursor glyph (as that is relative to the width of the
13474 characters on the line, which may have changed during the update).
13475
134762002-05-22 Jason Rumney <jasonr@gnu.org>
13477
13478 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
13479 Lisp_Object.
13480 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
13481 Use modified enumfont_t struct.
13482
13483 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13484
13485 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
13486 Handle the `hbar' cursor type.
13487 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13488
13489 * w32fns.c (Qhbar): New variable.
13490 (x_specified_cursor_type): Use it.
13491
134922002-05-21 Ken Raeburn <raeburn@gnu.org>
13493
13494 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
13495 now, when the address is needed.
13496
134972002-05-21 Colin Walters <walters@gnu.org>
13498
13499 * Makefile.in (shortlisp): Add font-core.el.
13500
135012002-05-20 Richard M. Stallman <rms@gnu.org>
13502
13503 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
13504
13505 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
13506 equivalent key bindings here.
13507
135082002-05-20 Ken Raeburn <raeburn@gnu.org>
13509
13510 Change symbol structure to contain a lisp object for the symbol
13511 name:
13512 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
13513 object field named "xname".
13514 (SYMBOL_NAME): New macro.
13515 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
13516 name field.
13517 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
13518 (mark_object, gc_sweep): Use symbol xname field and XSTRING
13519 instead of name field.
13520 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
13521 SYMBOL_NAME instead of XSYMBOL and name field.
13522 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
13523 instead of XSYMBOL and name field.
13524 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
13525 and SYMBOL_NAME instead of XSYMBOL and name field.
13526 * coding.c (Fread_coding_system, code_convert_region1)
13527 (code_convert_string1, code_convert_string_norecord)
13528 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
13529 XSYMBOL and name field.
13530 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
13531 (Fmake_variable_buffer_local, Fmake_local_variable)
13532 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
13533 of XSYMBOL and name field.
13534 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
13535 XSYMBOL and name field.
13536 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
13537 instead of XSYMBOL and name field.
13538 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
13539 XSYMBOL and name field.
13540 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
13541 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13542 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
13543 instead of XSYMBOL and name field.
13544 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
13545 (parse_modifiers, apply_modifiers, Fevent_convert_list)
13546 (parse_solitary_modifier, Fexecute_extended_command):
13547 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13548 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
13549 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
13550 of XSYMBOL and name field.
13551 (describe_command, describe_translation): Use SYMBOL_NAME and
13552 assignment instead of XSYMBOL and name field and XSETSTRING.
13553 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
13554 instead of XSYMBOL and name field.
13555 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
13556 name field and XSETSTRING.
13557 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
13558 of XSYMBOL and name field.
13559 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
13560 assignment instead of XSYMBOL and name field and XSETSTRING.
13561 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
13562 XSTRING instead of XSYMBOL and name field.
13563 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
13564 and XSTRING instead of XSYMBOL and name field.
13565 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
13566 and XSTRING instead of XSYMBOL and name field.
13567 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
13568 XSTRING instead of XSYMBOL and name field.
13569 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
13570 of XSYMBOL and name field.
13571 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
13572 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13573
135742002-05-19 Ken Raeburn <raeburn@gnu.org>
13575
13576 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
13577 and XCDR real rvalues in most configurations.
13578
13579 * buffer.c (fix_overlays_in_range, fix_overlays_before):
13580 Don't take the address of the cdr part of a cons cell; instead, track
13581 the parent cell and call XSETCDR, or set the variable for the head
13582 of the list if we haven't started down the list yet.
13583
135842002-05-19 Richard M. Stallman <rms@gnu.org>
13585
13586 * doc.c (reread_doc_file): Don't ask for confirmation.
13587
135882002-05-18 Jason Rumney <jasonr@gnu.org>
13589
13590 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
13591 (xbm_load_image): Use it.
13592 (xbm_load): Ditto.
13593 (xbm_read_bitmap_data): Reverted to xfns.c version.
13594 From David Ponce <david@dponce.com>.
13595
135962002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
13597
13598 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
13599 2.02 and later.
13600
136012002-05-16 Juanma Barranquero <lektu@terra.es>
13602
13603 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
13604
136052002-05-15 Stefan Monnier <monnier@cs.yale.edu>
13606
13607 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
13608 meaningful test.
13609 (read_char_minibuf_menu_prompt): Fix typo.
13610
136112002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
13612
13613 * eval.c (Fcommandp): Doc fix.
13614
136152002-05-13 Stefan Monnier <monnier@cs.yale.edu>
13616
13617 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
13618 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
13619 (Fset_keymap_parent): Gcpro a bit more.
13620 (access_keymap): Gcpro around meta_map call and around the main loop.
13621 (get_keyelt): Gcpro when following indirect references.
13622 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
13623 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
13624 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
13625 Remove useless ad-hoc remap code.
13626
136272002-05-13 Richard M. Stallman <rms@gnu.org>
13628
13629 * search.c (search_buffer): Give up boyer moore search if inverse
13630 translation change charset_base.
13631
136322002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
13633
13634 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
13635 characters is carried over from the previous block of text, adjust
13636 coding->produced to account for the extra character.
13637
136382002-05-11 Andreas Schwab <schwab@suse.de>
13639
13640 * coding.c (intersection): Keep the elements of the returned list
13641 in the same order as in the first list.
13642
136432002-05-11 Kim F. Storm <storm@cua.dk>
13644
3419757d 13645 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
13646 only update cmm_size if realloc actually succeeds.
13647 Testing with initial size of 2 elements revealed that using
13648 realloc on GNU/Linux would cause a random trap in xmalloc
13649 later on, so I rewrote the code to use malloc/bcopy/free instead
13650 of realloc.
13651
136522002-05-10 Jason Rumney <jasonr@gnu.org>
13653
13654 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
13655
136562002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
13657
13658 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
13659 parens, to ensure correct evaluation order.
13660
136612002-05-10 Kim F. Storm <storm@cua.dk>
13662
13663 * keymap.c (Vemulation_mode_map_alists): New variable.
13664 (syms_of_keymap): DEFVAR_LISP it.
13665 (current_minor_maps): Process keymap alists in that list before
13666 minor-mode-overriding-map-alist and minor-mode-map-alist.
13667
136682002-05-09 Richard M. Stallman <rms@gnu.org>
13669
13670 * search.c (Freplace_match): Doc fix.
13671
136722002-05-09 Kim F. Storm <storm@cua.dk>
13673
13674 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13675 Enlarge cursor rectangle drawn around image with non-zero relief.
13676
13677 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
13678 Enlarge cursor rectangle drawn around image with non-zero relief.
13679
13680 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13681 Enlarge cursor rectangle drawn around image with non-zero relief.
13682
136832002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
13684
13685 * xselect.c (lisp_data_to_selection_data): Don't set selection
13686 type if comes from the Lisp object's car. If the selection
13687 contains a pure ASCII text, always return QSTRING as its type.
13688
136892002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13690
13691 * mac.c (mac-cut-function): Doc fix.
13692
136932002-05-05 Richard M. Stallman <rms@gnu.org>
13694
13695 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
13696
136972002-05-04 Jason Rumney <jasonr@gnu.org>
13698
13699 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
13700 for event-click-count.
13701
13702 * process.c (init_process): Only add server subfeature if we can
13703 use non-blocking I/O.
13704
137052002-05-04 Andrew Choi <akochoi@shaw.ca>
13706
13707 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
13708 repeatedly.
13709
137102002-05-03 Jason Rumney <jasonr@gnu.org>
13711
13712 * process.c (Fmake_network_process): Only support server sockets
13713 when we can make them non-blocking.
13714
13715 * s/ms-w32.h (HAVE_SELECT): Define.
13716
13717 * w32.h (FILE_NDELAY): New flag.
13718
13719 * w32.c (sys_getpeername, fcntl): New functions.
13720 (_sys_read_ahead): Temporarily block on non-blocking sockets.
13721
13722 * w32proc.c: include sys/file.h.
13723
137242002-05-03 Colin Walters <walters@verbum.org>
13725
13726 * callproc.c (Vgame_score_directory): Renamed to
13727 Vshared_game_score_directory.
13728
137292002-04-30 Richard M. Stallman <rms@gnu.org>
13730
13731 * s/gnu.h [emacs]: Include stdio.h.
13732 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
13733
13734 * eval.c (do_autoload): Error if called while preparing to dump.
13735
13736 * fns.c (Frequire): Error if need to load while preparing to dump.
13737
137382002-04-28 Colin Walters <walters@verbum.org>
13739
13740 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
13741 Default to "~/.emacs.d/games".
13742
137432002-04-29 Stefan Monnier <monnier@cs.yale.edu>
13744
13745 * lread.c (openp): Change arg exec_only to predicate.
13746 (build_load_history): Use XCAR/XCDR.
13747 (Flocate_file_internal): New fun.
13748 (syms_of_lread): Defsubr it.
13749 (Fload): Update call to openp.
13750
13751 * lisp.h (openp): Update prototype.
13752
13753 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
13754 * w32proc.c (sys_spawnve):
13755 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
13756 * w32.c (check_windows_init_file):
13757 * sound.c (Fplay_sound_internal):
13758 * process.c (Fstart_process):
13759 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
13760 * mac.c (run_mac_command):
13761 * emacs.c (init_cmdargs):
13762 * callproc.c (Fcall_process): Update call to openp.
13763
13764 * textprop.c (remove_properties): Don't use XCAR without CONSP.
13765
13766 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
13767
137682002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13769
13770 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
13771 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
13772
137732002-04-28 Richard M. Stallman <rms@gnu.org>
13774
13775 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
13776
13777 * eval.c (Fcommandp): New arg for_call_interactively.
13778 * lisp.h (Fcommandp): Declare new arg.
13779
137802002-04-28 Jason Rumney <jasonr@gnu.org>
13781
13782 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
13783
13784 * w32.c (stat, fstat): Use file index information to generate
13785 inodes for directories where available.
13786
137872002-04-26 Andrew Choi <akochoi@shaw.ca>
13788
13789 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
13790 [HAVE_CARBON]: Include Mac object files.
13791
13792 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
13793 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
13794 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
13795 MAC_OSX, and MAC_OS instead of macintosh.
13796
13797 * editfns.c [MAC_OS8]: Include stdio.h.
13798
13799 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
13800
13801 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
13802 Apple Monaco.
13803
78819ebb 13804 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
13805 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
13806 calling select.
13807
13808 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
13809
13810 * tparam.c [MAC_OSX]: Don't define BC and UP.
13811
13812 * config.in [HAVE_CARBON]: Add.
13813
13814 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
13815 Move here from mac/src and mac/inc.
13816
13817 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
13818
138192002-04-26 Gerd Moellmann <gerd@gnu.org>
13820
13821 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
13822 Compute phys_cursor_width from the x position returned
13823 by x_draw_glyhs, which is cheaper.
13824 (x_display_and_set_cursor): Compute the buffer-local value
13825 of `cursor-in-non-selected-windows' only when needed.
13826
138272002-04-25 Gerd Moellmann <gerd@gnu.org>
13828
13829 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
13830 cursor on a stretch glyph has a width that depends on
13831 x_stretch_cursor_p.
13832
138332002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13834
13835 * abbrev.c (abbrev-start-location): Doc fix.
13836
13837 * indent.c (Fvertical_motion): Fix last change.
13838
138392002-04-25 Gerd Moellmann <gerd@gnu.org>
13840
13841 * indent.c (Fvertical_motion): Move to the start of the line
13842 containing PT before moving up or down.
13843
138442002-04-24 Gerd Moellmann <gerd@gnu.org>
13845
13846 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
13847 case of writing a whole row, more or less analogous to the case of
13848 writing only parts of a row.
13849
13850 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
13851 0 for NO_CURSOR.
13852
13853 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
13854
138552002-04-23 Colin Walters <walters@verbum.org>
13856
13857 * buffer.c (syms_of_buffer): Doc fix.
13858
138592002-04-23 Gerd Moellmann <gerd@gnu.org>
13860
13861 * xterm.c (notice_overwritten_cursor): Handle the special case
13862 of the cursor being in the first blank non-text line at the
13863 end of a window.
13864
13865 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
13866 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
13867 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
13868 bar cursors only, to make phys_cursor_width contain what its name
13869 suggests.
13870 (notice_overwritten_cursor): Consider the cursor image erased if
13871 the output area intersects the cursor image in y-direction.
13872
138732002-04-23 Simon Marshall <simon@gnu.org>
13874
13875 * xfns.c (x_set_mouse_color): Change default for cross_cursor
13876 to XC_hand2.
13877
138782002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13879
13880 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
13881
138822002-04-22 Kim F. Storm <storm@cua.dk>
13883
13884 * textprop.c (remove_properties): Fixed trap for malformed plist.
13885
138862002-04-22 Richard M. Stallman <rms@gnu.org>
13887
13888 * cmds.c (Fend_of_line): Handle intangible text in mid line.
13889
13890 * window.c (make_window): Initialize height_fixed_p,
13891 last_cursor_off_p, and p->cursor_off_p slots.
13892
138932002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13894
13895 * fns.c (use-dialog-box): Doc fix.
13896
138972002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13898
13899 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
13900 variables `row', `i' and `area'.
13901 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
13902 toolkit library.
13903
139042002-04-19 Stefan Monnier <monnier@cs.yale.edu>
13905
13906 * xfaces.c (clear_font_table): Don't free the default font of
13907 a frame even if it's on another display.
13908 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
13909 that could be Qt.
13910
139112002-04-19 Juanma Barranquero <lektu@terra.es>
13912
13913 * indent.c (Fmove_to_column): Remove unused local variable
13914 `next_boundary_byte'.
13915 (current_column_1): Likewise.
13916
139172002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
13918
13919 * msdos.c (Qhbar): New variable.
13920 (syms_of_msdos): Intern and staticpro it.
13921 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
13922 cursor type.
13923
139242002-04-19 Dave Lambert <dlambert@acm.org>
13925
13926 Theses change implement an underscore-like (`hbar') cursor.
13927
13928 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13929
13930 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
13931 Handle the `hbar' cursor type.
13932 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13933
13934 * xfns.c (Qhbar): New variable.
13935 (syms_of_xfns): Intern and staticpro it.
13936 (x_specified_cursor_type): Handle `hbar' cursor.
13937
13938 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
13939 not defined.
13940
139412002-04-18 Richard M. Stallman <rms@gnu.org>
13942
13943 * textprop.c (remove_properties): New arg LIST allows scanning
13944 either a list or a plist.
13945 (interval_has_some_properties_list): New function, like
13946 interval_has_some_properties using list instead of plist.
13947 All callers changed.
13948 (Fremove_list_of_text_properties): New function.
13949 (syms_of_textprop): Defsubr it.
13950
139512002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13952
13953 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
13954
139552002-04-17 Juanma Barranquero <lektu@terra.es>
13956
13957 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
13958
139592002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
13960
13961 * window.c (coordinates_in_window): Don't report on margin area
13962 if its width is zero.
13963
139642002-04-16 Jason Rumney <jasonr@gnu.org>
13965
13966 * w32fns.c (Fx_file_dialog): Decode file name before using.
13967
13968 * w32term.c (construct_drag_n_drop): Likewise.
13969
139702002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
13971
13972 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
13973 store load-history in pure space.
13974
13975 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
13976
139772002-04-16 Stefan Monnier <monnier@cs.yale.edu>
13978
13979 * xterm.c (Qlatin_1, Qutf_8): New vars.
13980 (syms_of_xterm): Initialize them.
13981 (XTread_socket): Eliminate incorrect optimization that tried to avoid
13982 decoding the output of X*LookupString.
13983 Always use latin-1 to decode the output of XLookupString.
13984 Try Xutf8LookupString if XmbLookupString failed.
13985
13986 * region-cache.c (new_region_cache): Use BEG.
13987
139882002-04-16 Gerd Moellmann <gerd@gnu.org>
13989
13990 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
13991 configuration files.
13992 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
13993 returns 0.
13994
139952002-04-15 Andreas Schwab <schwab@suse.de>
13996
13997 * config.in: Regenerated using autoheader.
13998
13999 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
14000 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
14001 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
14002 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
14003 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
14004 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
14005 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
14006 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
14007 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
14008 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
14009 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
14010 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
14011 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
14012 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
14013 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
14014 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
14015 STACK_DIRECTION, now set by autoconf.
14016
140172002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14018
14019 * dispnew.c (marginal_area_string): Sort arguments.
14020
14021 * dispextern.h (marginal_area_string): Add prototype.
14022
140232002-04-13 Richard M. Stallman <rms@gnu.org>
14024
14025 * fileio.c (Finsert_file_contents):
14026 Don't call temp_output_buffer_setup--do just part, by hand.
14027
14028 * coding.c (run_pre_post_conversion_on_str):
14029 Don't call temp_output_buffer_setup--do just part, by hand.
14030
14031 * keyboard.c (command_loop_1): Don't call start_hourglass
14032 or cancel_hourglass when executing a macro.
14033
14034 * marker.c (count_markers): New function.
14035
14036 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
14037 grow without limit. Move recently used elements to the front.
14038
140392002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
14040
14041 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
14042
140432002-04-12 Gerd Moellmann <gerd@gnu.org>
14044
14045 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
14046 rows marginal areas.
14047 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
14048 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
14049
14050 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
14051
140522002-04-12 Dave Love <fx@gnu.org>
14053
14054 * dispnew.c (marginal_area_string): New.
14055
14056 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
14057 (Qleft_margin, Qright_margin): Declare.
14058 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
14059
14060 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
14061 note_mode_line_highlight and extended.
14062
14063 * keyboard.c (Qleft_margin, Qright_margin): Declare.
14064 (make_lispy_event): Deal with mouse events in margins.
14065
140662002-04-12 Stefan Monnier <monnier@cs.yale.edu>
14067
14068 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
14069
14070 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
14071 than deactivating the mark if tmm is set to `lambda'.
14072 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
14073 Use a single event for HELP_EVENT.
14074 (Fexecute_extended_command): Save last_point_position.
14075
140762002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14077
14078 * lisp.h (Fpropertize): Add prototype.
14079
14080 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
14081
140822002-04-10 Colin Walters <walters@verbum.org>
14083
14084 * config.in: Add HAVE_SHARED_GAME_DIR.
14085
14086 * callproc.c: (Vgame_score_directory): New variable.
14087 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
14088
140892002-04-10 Richard M. Stallman <rms@gnu.org>
14090
14091 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
14092
140932002-04-09 Stefan Monnier <monnier@cs.yale.edu>
14094
14095 * minibuf.c (read_minibuf): Use empty_string.
14096 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
14097 Short-circuit the search as soon as it "failed".
14098 (Fall_completions): Allow lambda forms and lists of strings for alist.
14099 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
14100 when require_match is nil.
14101 (Ftest_completion): Rename from `test_completion' and export to elisp.
14102 Call the predicate also when alist is a list.
14103 Obey Vcompletion_regexp_list.
14104 (do_completion, Fminibuffer_complete_and_exit): Use it.
14105 (Fassoc_string): Rename from `assoc_for_completion'.
14106 Allow list of strings as well and export to elisp.
14107
141082002-04-08 Stefan Monnier <monnier@cs.yale.edu>
14109
14110 * puresize.h (BASE_PURESIZE): Increase to 900KB.
14111
141122002-04-08 Juanma Barranquero <lektu@terra.es>
14113
14114 * w32.c (sys_accept): Don't hide variable `s'.
14115
141162002-04-05 Gerd Moellmann <gerd@gnu.org>
14117
14118 * callint.c (Fcall_interactively): Use INTEGERP instead of
14119 NUMBERP for checking Vhistory_length.
14120
141212002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14122
14123 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
14124 Doc fix to reflect it.
14125
141262002-04-04 Richard M. Stallman <rms@gnu.org>
14127
14128 * xdisp.c (display_mode_element): New arg RISKY.
14129 Disregard text props found or specified within a variable
14130 that isn't marked risky-local-variable.
14131 (Qrisky_local_variable): New variable.
14132 (syms_of_xdisp): Init and staticpro it.
14133
141342002-04-04 Stefan Monnier <monnier@cs.yale.edu>
14135
14136 * undo.c (record_point): New fun.
14137 (record_delete, record_insert): Use it.
14138
141392002-04-03 Juanma Barranquero <lektu@terra.es>
14140
14141 * doc.c (Fdocumentation): Add missing parentheses.
14142 (Fdocumentation_property): Likewise.
14143
141442002-04-03 Stefan Monnier <monnier@cs.yale.edu>
14145
14146 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
14147 data is 0, just return nil.
14148
141492002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
14150
14151 * msdos.c (syms_of_msdos): Fix last change with
14152 mouse_autoselect_window.
14153
141542002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14155
14156 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
14157 mouse_autoselect_window.
14158
141592002-04-02 Stefan Monnier <monnier@cs.yale.edu>
14160
14161 * keyboard.c (make_lispy_event): Handle unknown keysyms together
14162 with system-specific keysyms. Use it also for unknown function keys.
14163
14164 * doc.c (reread_doc_file): Return whether reload was attempted.
14165 (Fdocumentation, Fdocumentation_property): Don't try to reload
14166 if the doc is 0 and only ask once.
14167
14168 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
14169
141702002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
14171
14172 * keyboard.c (read_char): If the event was Qselect_window,
14173 restore timer_idleness_start_time to its previous value.
14174
14175 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
14176
141772002-04-01 Stefan Monnier <monnier@cs.yale.edu>
14178
14179 * region-cache.c (new_region_cache): Use BEG.
14180
14181 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
14182 Use BEG and BEG_BYTE.
14183
14184 * doc.c (get_doc_string): Return nil if the location is wrong.
14185 (reread_doc_file): New fun.
14186 (Fdocumentation, Fdocumentation_property):
14187 Call it if get_doc_string fails.
14188 (Fsnarf_documentation): Make it work for a dumped Emacs.
14189
14190 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
14191 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
14192
14193 * charset.c (Fstring): Allow 0 arguments.
14194
14195 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
14196
14197 * process.c (DATAGRAM_CONN_P, list_processes_1)
14198 (Fprocess_datagram_address, Fset_process_datagram_address)
14199 (Fset_network_process_options, server_accept_connection):
14200 Fix some int/Lisp_Object confusions (thank you union types).
14201
142022002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14203
14204 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
14205
14206 * w32term.c: Likewise.
14207 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
14208
14209 * keyboard.c (Qselect_window): New symbol.
14210 (head_table): Use it.
14211 (keys_of_keyboard): Bound select-window event to handle-select-window.
14212 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
14213
14214 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
14215 (last_window): New variable.
14216 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
14217 (note_mouse_movement): Remove reimplemented code in #if 0.
14218 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
14219 Emacs windows.
14220
14221 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
14222
142232002-03-31 Gerd Moellmann <gerd@gnu.org>
14224
14225 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
14226 Callers changed.
14227
142282002-03-30 Richard M. Stallman <rms@gnu.org>
14229
14230 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
14231 loop whenever it stops making progress.
14232
14233 * widget.c (set_frame_size): Don't call change_frame_size.
14234
142352002-03-30 Gerd Moellmann <gerd@gnu.org>
14236
14237 * dispnew.c (direct_output_for_insert):
14238 Call mark_window_display_accurate.
14239
142402002-03-29 Jason Rumney <jasonr@gnu.org>
14241
14242 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
14243
142442002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
14245
14246 * Makefile.in (lread.o): Depend on coding.h.
14247
14248 * lread.c (openp, Fload): Encode the file name before passing it
14249 to `stat', `access', and `emacs_open'.
14250 (openp): GCPRO the encoded file name. Don't recompute Lisp
14251 strings unnecessarily.
14252
142532002-03-29 Kim F. Storm <storm@cua.dk>
14254
14255 * fns.c (Flax_plist_put): Doc fix.
14256
142572002-03-28 Miles Bader <miles@gnu.org>
14258
14259 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
14260
142612002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14262
14263 * process.c (set-network-process-options): Add usage.
14264 (make-network-process): Doc fix.
14265
142662002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
14267
14268 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
14269
142702002-03-26 Richard M. Stallman <rms@gnu.org>
14271
14272 * fns.c (Fsubstring_no_properties): New function.
14273 (Flax_plist_get, Flax_plist_put): New functions.
14274 (syms_of_fns): defsubr them.
14275
14276 * xdisp.c (update_menu_bar): Test only update_mode_lines;
14277 don't test or alter w->update_mode_line.
14278
14279 * window.c (Fdisplay_buffer): Doc fix.
14280
142812002-03-24 Richard M. Stallman <rms@gnu.org>
14282
14283 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
14284
142852002-03-24 Gerd Moellmann <gerd@gnu.org>
14286
14287 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
14288 (Fdefmacro): Handle `(declare ...)'.
14289 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
14290 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
14291
142922002-03-24 Jason Rumney <jasonr@gnu.org>
14293
14294 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
14295 (xbm_file_p): Add prototypes.
14296 (xbm_format, xbm_image_p): Sync with xfns.c.
14297 (reflect_byte): New function.
14298 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
14299 (xbm_load_image): Create bitmaps with a depth of 1.
14300 (init_xfns): Enable XBM images.
14301
143022002-03-23 Jason Rumney <jasonr@gnu.org>
14303
14304 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
14305 correctly. Do not pass up_modifier to keyboard buffer.
14306
14307 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
14308
143092002-03-22 Stefan Monnier <monnier@cs.yale.edu>
14310
14311 * Makefile.in (bootstrapclean): New target.
14312 (bootstrap-temacs, bootstrap-doc): Remove.
14313 (bootstrap-emacs): Use a bog-standard `temacs'.
14314 Don't bother to build a DOC file.
14315
14316 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
14317
14318 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
14319 in temacs even if !CANNOT_DUMP.
14320 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
14321
14322 * alloc.c (check_pure_size): Only output a warning.
14323
143242002-03-22 Jason Rumney <jasonr@gnu.org>
14325
14326 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
14327 supported.
14328
14329 * w32term.c (zv_bits): Declare as short, for word alignment.
14330 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
14331 (syms_of_w32term): Define x-use-underline-position-properties.
14332
14333 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
14334 (clear_image_cache): Block input, fix logic, clear matrices in
14335 all frames that share this cache.
14336
143372002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
14338
14339 * emacs.c (main): Update the Copyright year in the blurb printed
14340 by "emacs --version".
14341
14342 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
14343
14344 * xterm.c (XTread_socket): If XK_ISO_Lock and
14345 XK_ISO_Last_Group_Lock are defined, handle keysyms between
14346 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
14347
143482002-03-21 Kim F. Storm <storm@cua.dk>
14349
14350 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
14351 menu-bar bindings in keymap and local-map properties _are_ used.
14352 But try keymap property first in accordance with 2002-01-03 patch.
14353 Added comment describing why this is not always reliable.
14354 (tool_bar_items): Ditto for tool-bar.
14355
143562002-03-21 Jason Rumney <jasonr@gnu.org>
14357
14358 * w32fns.c (x_clear_image_1): Disable color table code.
14359
143602002-03-21 Kim F. Storm <storm@cua.dk>
14361
14362 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
14363 removed the wrong version of the DEFUN macro; fixed it.
14364
14365 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
14366 Fmember rather than Fmemq).
14367 (Fprovide): Check that subfeatures is a list.
14368
14369 * process.c (QCfeature, QCdatagram): Removed variables.
14370 (QCtype, Qdatagram): New variables.
14371 (network_process_featurep): Removed function.
14372 (Fmake_network_process): Removed :feature check.
14373 Use :type 'datagram instead of :datagram t to create a datagram
14374 socket. This allows us to add other connection types (e.g. raw
14375 sockets) later in a consistent manner.
14376 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
14377 supported subfeatures for feature make-network-process.
14378 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
14379 Intern and staticpro QCtype and Qdatagram.
14380 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
14381
14382 * xfns.c: (QCtype): Remove duplicate declaration and
14383 initialization (is now declared in process.c).
14384
14385 * w32fns.c: (QCtype): Remove duplicate declaration and
14386 initialization (is now declared in process.c).
14387
143882002-03-21 Richard M. Stallman <rms@gnu.org>
14389
14390 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
14391 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
14392 when jumping to `fail' to avoid undoing reg changes in the
14393 last iteration of the loop.
14394 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
14395
14396 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
14397 Depend on process.h.
14398
143992002-03-20 Jason Rumney <jasonr@gnu.org>
14400
14401 Most of the following changes are still conditional on HAVE_IMAGES
14402 which is not set by default on Windows.
14403
14404 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
14405
14406 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
14407 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
14408 (four_corners_best, x_clear_image_1, x_clear_image)
14409 (x_alloc_image_color, postprocess_image)
14410 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
14411 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
14412 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
14413
14414 * w32gui.h (struct XImage): Define.
14415
14416 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
14417 extract mouse co-ordinates.
14418
144192002-03-20 Jason Rumney <jasonr@gnu.org>
14420
14421 * w32.c (init_winsock): Dynamically load new server and UDP
14422 socket functions.
14423 (socket_to_fd): New function.
14424 (sys_socket): Use it.
14425 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
14426 (sys_recvfrom, sys_sendto): New wrapper functions.
14427
14428 * process.c (QCfamily, QCfilter): Remove duplicate declaration
14429 and initialization.
14430
14431 * makefile.w32-in (LIBS): Remove $(WSOCK32).
14432
144332002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
14434
14435 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
14436 Don't use "sun" as a variable, it's a predefined constant on Sun
14437 machines.
14438
144392002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14440
14441 * bytecode.c (Fbyte_code): Revert last change.
14442
144432002-03-19 Kim F. Storm <storm@cua.dk>
14444
14445 * makefile.w32-in (LIBS): Add $(WSOCK32).
14446 From David Ponce <dponce@voila.fr>.
14447
144482002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14449
14450 * process.c (wait_reading_process_input): Move variables `pname'
14451 and `pnamelen' down where they are used.
14452
14453 * bytecode.c (Fbyte_code): Discard unused computed value to
14454 prevent gcc warning.
14455
14456 * lisp.h (Fplist_member): Add prototype.
14457
144582002-03-18 Kim F. Storm <storm@cua.dk>
14459
14460 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
14461 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
14462
14463 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
14464 Remove explicit GNU_LINUX settings for datagram support.
14465
144662002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14467
14468 * process.c (Fmake_network_process): Remove unused variable `sa'.
14469 Doc fix. Add usage:.
14470 (set_socket_options): Remove unused variables `optnum' and `opttype'.
14471
144722002-03-17 Richard M. Stallman <rms@gnu.org>
14473
14474 * xdisp.c (cursor_type_changed): New variable.
14475 (redisplay_internal): Redisplay all windows if cursor_type_changed.
14476 Clear it when clearing windows_or_buffers_changed.
14477 (try_cursor_movement, redisplay_window, try_window_id)
14478 (try_window_reusing_current_matrix): Test cursor_type_changed
14479 along with windows_or_buffers_changed.
14480
14481 * window.h (cursor_type_changed): New variable.
14482
14483 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
14484 not update_mode_lines, and always set it to 1.
14485
14486 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
14487 if no frames needed redrawing.
14488
144892002-03-17 Kim F. Storm <storm@cua.dk>
14490
14491 The following changes add support for network server processes,
14492 datagram connections, and local (unix) sockets.
14493
14494 * process.h (struct Lisp_Process): New member log.
14495 Doc fix: Member command used to indicate stopped network process.
14496 Doc fix: Member childp contains plist for network process.
14497 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
14498
14499 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
14500 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
14501 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
14502 New variables.
14503 (NETCONN1_P): New macro.
14504 (DATAGRAM_SOCKETS): New conditional symbol.
14505 (datagram_address): New array.
14506 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
14507 (status_message): Use concat3.
14508 (Fprocess_status): Add `listen' status to doc string. Return `stop'
14509 for a stopped network process.
14510 (Fset_process_buffer): Update contact plist for network process.
14511 (Fset_process_filter): Ditto. Don't enable input for stopped
14512 network processes. Server must listen, even if filter is t.
14513 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
14514 New functions.
14515 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
14516 (Fprocess_contact): Added KEY argument. Handle datagrams.
14517 (list_processes_1): Optionally show only processes with the query
14518 on exit flag set. Dynamically adjust column widths. Omit tty
14519 column if not needed. Report stopped network processes.
14520 Identify server and datagram network processes.
14521 (Flist_processes): New optional arg `query-only'.
14522 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
14523 (conv_lisp_to_sockaddr, set_socket_options)
14524 (network_process_featurep, unwind_request_sigio): New helper functions.
14525 (Fprocess_datagram_address, Fset_process_datagram_address):
14526 (Fset_network_process_options): New lisp functions.
14527 (Fopen_network_stream): Removed. Now defined in simple.el.
14528 (Fmake_network_process): New lisp function. Code is based on previous
14529 Fopen_network_stream, but heavily reworked with new property list based
14530 argument list, support for datagrams, server processes, and local
14531 sockets in addition to old client-only functionality.
14532 (server_accept_connection): New function.
14533 (wait_reading_process_input): Use it to handle incoming connects.
14534 Do not enable input on a new connection if process is stopped.
f63fd14e 14535 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
14536 (send_process): Handle datagram sockets.
14537 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
14538 network process is indicated by setting command field to t .
14539 (Fprocess_send_eof): No-op if datagram connection.
14540 (Fstatus_notify): Don't read input for a stream server socket or a
14541 stopped network process.
14542 (init_process): Initialize datagram_address array.
14543 (syms_of_process): Intern and staticpro new variables, defsubr new
14544 functions.
14545
145462002-03-16 Jason Rumney <jasonr@gnu.org>
14547
14548 * w32fns.c (w32_to_all_x_charsets): Return correct type in
14549 startup case.
14550
145512002-03-16 Richard M. Stallman <rms@gnu.org>
14552
14553 * xdisp.c (redisplay_internal, redisplay_windows):
14554 Use list_of_error to call internal_condition_case_1.
14555 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
14556 so as to catch all errors with no possibility of debugger redisplay.
14557 (list_of_error): New variable.
14558 (syms_of_xdisp): Init and staticpro it.
14559
14560 * print.c (print_object): Delete `\ ' from printed rep of frame.
14561
145622002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
14563
14564 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
14565 until its implementation is fixed.
14566
145672002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14568
14569 * xfns.c (png_load): Remove unused variable `gamma_str'.
14570
145712002-03-14 Richard M. Stallman <rms@gnu.org>
14572
14573 * xfns.c (x_real_positions): Handle failure in XQueryTree.
14574
145752002-03-14 Miles Bader <miles@gnu.org>
14576
14577 * intervals.c (adjust_for_invis_intang): New function.
14578 (set_point_both): Use `adjust_for_invis_intang' to do most of the
14579 work for dealing with invisible+intangible regions. Do so before
14580 and after both forward and backward movements, to handle both
14581 front-sticky and rear-sticky cases.
14582 * textprop.c (text_property_stickiness): Function moved here from
14583 `editfns.c'.
14584 * intervals.h (text_property_stickiness): New declaration.
14585 * editfns.c (char_property_eq): Function removed.
14586 (text_property_stickiness): Function moved to `textprop.c'.
14587
145882002-03-13 Jason Rumney <jasonr@gnu.org>
14589
14590 * config.in: Add STRFTIME_NO_POSIX2.
14591
14592 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
14593 and %OX when underlying strftime does not.
14594
145952002-03-13 Stefan Monnier <monnier@cs.yale.edu>
14596
14597 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
14598 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
14599 line) to avoid annoying flicker.
14600 (xm_scroll_callback): Get rid of the now unnecessary kludge.
14601 (XTread_socket): Mark it static.
14602
14603 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
14604
146052002-03-13 Kim F. Storm <storm@cua.dk>
14606
14607 * puresize.h (BASE_PURESIZE): Increase to 775000.
14608
146092002-03-12 Juanma Barranquero <lektu@terra.es>
14610
14611 * editfns.c (syms_of_editfns): Fix typo.
14612
146132002-03-12 Gerd Moellmann <gerd@gnu.org>
14614
14615 * xsmfns.c: Include stdio.h because termhooks.h needs it.
14616 Include termopt.h for interrupt_input.
14617
146182002-03-11 Andreas Schwab <schwab@suse.de>
14619
14620 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
14621
146222002-03-11 Gerd Moellmann <gerd@gnu.org>
14623
14624 * xterm.c (note_mouse_movement): Put code for
14625 x_autoselect_window_p in #if 0.
14626
14627 * lread.c (Fload): Don't assume that message_with_string uses the
14628 string it is given like a C string.
14629
146302002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14631
78819ebb 14632 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec
JD
14633
14634 * xterm.c: (XTread_socket): Add call to x_session_check_input and
14635 x_session_have_connection.
14636 (x_initialize): Add call to x_session_initialize.
14637
14638 * termhooks.h (enum event_kind): Add save_session_event.
14639
14640 * keyboard.c: Add Emacs event save_session_event.
14641
14642 * emacs.c (main): Add call to syms_of_xsmfns.
14643
78819ebb 14644 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
14645
14646 * config.in: Add HAVE_X_SM.
14647
14648 * Makefile.in (LIBXT): Add -lSM -lICE
14649 if HAVE_X_SM and not USE_X_TOOLKIT.
14650 (XOBJ): New file xsmfns.c added.
14651
14652 * xsmfns.c: New file for X session management.
14653
146542002-03-09 Jason Rumney <jasonr@gnu.org>
14655
14656 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
14657 read-only when setting modified time.
14658
146592002-03-08 Gerd Moellmann <gerd@gnu.org>
14660
14661 * xdisp.c (move_it_vertically_backward): At the end of the function,
14662 when moving forward by lines, treat terminal frames specially.
14663
14664 * keyboard.c (echo_char): Make sure to add a separator between
14665 keys even if echo_dash hasn't been called.
14666
14667 * xdisp.c: Use new string macros.
14668 (update_echo_area): Pass number of bytes to message3 instead of
14669 number of chars.
14670 (set_message_1): Don't access a string's size_byte directly.
14671 (decode_mode_spec_coding): Use number of bytes of eoltype string
14672 instead number of chars.
14673
14674 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
14675
146762002-03-08 Juanma Barranquero <lektu@terra.es>
14677
14678 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
14679 24-bit.
14680
146812002-03-06 Jason Rumney <jasonr@gnu.org>
14682
14683 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
14684
146852002-03-06 Gerd Moellmann <gerd@gnu.org>
14686
14687 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
14688 (cancel_echoing, echo_length, echo_truncate): Changed to
14689 work with new kboard definition.
14690 (echo_now): Use message3_nolog instead of message2_nolog.
14691
14692 * alloc.c (mark_kboards): Mark echo_string.
14693
14694 * keyboard.h (ECHOBUFSIZE): Removed.
14695 (struct kboard): Member echoptr removed, member echobuf renamed
14696 to echo_string.
14697
14698 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
14699 message3 instead of message2 to display the message using STRING's
14700 text properties.
14701
147022002-03-05 Andreas Schwab <schwab@suse.de>
14703
14704 * xdisp.c (hscroll_margin): Change to EMACS_INT.
14705
147062002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
14707
14708 * frame.c (default-frame-alist): Explain that setting it doesn't
14709 affect existing frames.
14710
147112002-03-05 Stefan Monnier <monnier@cs.yale.edu>
14712
14713 * indent.c (skip_invisible): Fix my brain fart.
14714
14715 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
14716
147172002-03-04 Stefan Monnier <monnier@cs.yale.edu>
14718
14719 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
14720 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
14721 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
14722 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
14723 and variables to use EMACS_INT instead of just int.
14724
14725 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
14726
147272002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
14728
14729 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
14730 environment, pass it down with corrected value.
14731
147322002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14733
14734 * lread.c (read_filtered_event): Do not call start_hourglass
14735 before returning.
14736
147372002-03-04 Juanma Barranquero <lektu@terra.es>
14738
14739 * w32term.c (x_display_and_set_cursor): Fix typo.
14740
147412002-03-03 Richard M. Stallman <rms@gnu.org>
14742
14743 * fileio.c (Fmake_temp_name): Doc fix.
14744
147452002-03-03 Gary Wong <gtw@gnu.org>
14746
14747 * termcap.c [!emacs]: Replace ospeed for building standalone
14748 libtermcap, for binary compatibility.
14749
14750 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
14751
147522002-03-03 Richard M. Stallman <rms@gnu.org>
14753
14754 * xrdb.c (file_p): Rename arg `path' to `filename'.
14755
14756 * abbrev.c (Fexpand_abbrev): Increment plist as use count
14757 only if it is an integer.
14758
14759 * xfns.c (png_load): Set screen_gamma based on f->gamma.
14760 If png_get_sRGB gives an answer, call png_set_gamma
14761 using the default image gamma value.
14762
14763 * lread.c (read1): When reading from a file, default string to
14764 multibyte only if it has some multibyte characters.
14765
14766 * print.c (print_object): Output multibyte chars 128...255
14767 using \x even if ! print_escape_multibyte.
14768
14769 * xdisp.c (display_mode_element): Move the places where
14770 bytepos, charpos, this, and lisp_string are set.
14771 Use lisp_string to set bytepos.
14772
14773 * xdisp.c (redisplay_internal):
14774 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
14775
14776 * xdisp.c (display_mode_element): Merge properties specified with
14777 :propertize onto those that come with the string.
14778
147792002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
14780
14781 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
14782 automatic-hscrolling. Users changed.
14783 <hscroll-margin>: Renamed from automatic-hscroll-margin.
14784 Users changed.
14785 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
14786
147872002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14788
14789 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
14790
147912002-03-02 Kim F. Storm <storm@cua.dk>
14792
14793 * window.c (Fminibuffer_selected_window): New function.
14794 (syms_of_window): Defsubr it.
14795
147962002-03-01 Kim F. Storm <storm@cua.dk>
14797
14798 * window.h (struct window): New member phys_cursor_width.
14799
14800 * window.c (make_window, replace_window): Init phys_cursor_width.
14801
14802 * xterm.c (x_display_and_set_cursor): Blink box cursor using
14803 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14804
14805 * w32term.c (x_display_and_set_cursor): Blink box cursor using
14806 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
14807
14808 * lisp.h (GCPRO6): New macro.
14809
14810 * process.c (Fopen_network_stream): Use GCPRO6.
14811
148122002-03-01 Kim F. Storm <storm@cua.dk>
14813
14814 * process.c (Qconnect, Qfailed): New variables.
14815 (syms_of_process): Intern and staticpro them.
14816 (Fprocess_status): Document connect and failed return values.
14817 [NON_BLOCKING_CONNECT]: New conditional.
14818 (connect_wait_mask, num_pending_connects): New variables.
14819 (status_message): Convert Qfailed status.
14820 (Fopen_network_stream): Added support for non-blocking connect.
14821 New optional args: filter, sentinel, non_blocking. Doc updated.
14822 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
14823 (deactivate_process): Handle pending non-blocking connect.
14824 (wait_reading_process_input): Poll for status of non-blocking
14825 connects. Exec sentinel directly when connect succeeds.
14826 (status_notify): Don't read process output if not yet connected.
14827
148282002-02-28 Kim F. Storm <storm@cua.dk>
14829
14830 * window.c: (minibuf_selected_window): Renamed from
14831 Vminibuf_selected_window. Users changed.
14832 (syms_of_window): Staticpro it.
14833
148342002-02-26 Kim F. Storm <storm@cua.dk>
14835
14836 The following changes add a new Vminibuf_selected_window variable
14837 which is similar to Vminibuf_scroll_window, but which is only set
14838 on entry to the minibuffer (from a non-minibuffer window):
14839
14840 * window.c: (Vminibuf_selected_window): New variable.
14841 (struct save_window_data): New member minibuf_selected_window.
14842 (Fset_window_configuration): Restore Vminibuf_selected_window.
14843 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
14844 Set minibuf_scroll_window member to nil if minibuf_level is 0.
14845 (compare_window_configurations): Compare minibuf_selected_window.
14846
14847 * window.h: (Vminibuf_selected_window): Declare extern.
14848
14849 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
14850 entry to minibuffer or on entry from a non-minibuffer window.
14851
14852 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
14853 Vminibuf_selected_window instead of Vminibuf_scroll_window.
14854
14855 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
14856 instead of Vminibuf_scroll_window when deciding in which window
14857 the region should be highlighted. Consequently, the region remains
14858 highlighteded even when a completion buffer is also displayed.
14859
148602002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
14861
14862 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
14863
14864 * xselect.c (Qcompound_text_with_extensions): Renamed from
14865 Qcompound_text_no_extensions.
14866 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
14867
148682002-02-26 Juanma Barranquero <lektu@terra.es>
14869
14870 * w32proc.c (syms_of_ntproc): Doc fix.
14871
148722002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14873
14874 * intervals.h: Include "dispextern.h" unconditionally.
14875
148762002-02-24 Jason Rumney <jasonr@gnu.org>
14877
14878 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
14879 and disp-table.elc.
14880 (lisp): Add emacs-lisp/backquote.elc.
14881
148822002-02-24 Kim F. Storm <storm@cua.dk>
14883
3419757d 14884 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
14885 The validation of the event type was too strict as it didn't
14886 allow string events; buffer names are used in bindings for
14887 menu-bar-select-buffer (see `menu-bar-update-buffers').
14888
148892002-02-23 Kim F. Storm <storm@cua.dk>
14890
14891 The following changes rework my patch of 2002-02-06 which
14892 added command remapping by entering the commands directly into
14893 the keymaps. Now, command remapping uses an explicit `remap'
14894 prefix in the keymaps, i.e. [remap COMMAND].
14895
14896 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 14897 (is_command_symbol): Remove function.
048addec
JD
14898 (Fdefine_key): No longer accept a symbol for KEY.
14899 Added validation of [remap COMMAND] argument for KEY.
14900 The DEF is no longer required to be a symbol when remapping a command.
14901 (Fremap_command): New function to remap command through keymaps.
14902 (Flookup_key): Perform command remapping initiated by
14903 Fremap_command directly for speed.
14904 (Fkey_binding): Use Fremap_command for command remapping.
14905 (where_is_internal): Handle new command remapping representation.
14906 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
14907 staticpro them. Defsubr Fremap_command.
14908
14909 * keymap.h (Fremap_command): Declare extern.
14910 (is_command_symbol): Remove extern.
14911
14912 * keyboard.c (command_loop_1): Use Fremap_command for command
14913 remapping; now try command remapping for all symbols.
14914
149152002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14916
14917 * coding.h (run_pre_post_conversion_on_str): Add prototype.
14918
149192002-02-23 Jason Rumney <jasonr@gnu.org>
14920
14921 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
14922 on the string before encoding it.
14923 (Fw32_get_clipboard_data): Run post-read-conversion on the string
14924 after decoding it.
14925
14926 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
14927
149282002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14929
14930 * w32term.c (enter_timestamp): Remove unused static variable to
14931 prevent warning.
14932
14933 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
14934
149352002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
14936
14937 * w16select.c (Fw16_get_clipboard_data): Fix last change.
14938
14939 * xselect.c (selection_data_to_lisp_data): Fix last change.
14940
149412002-02-22 Jason Rumney <jasonr@gnu.org>
14942
14943 * w32term.h (struct w32_output): New member menu_command_in_progress.
14944
14945 * w32menu.c (menubar_selection_callback): Free the menu and
14946 clear the menu_command_in_progress flag.
14947
14948 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
14949 (menu_free_timer): New variable.
14950 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
14951 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
14952 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
14953 menu command is in progress.
14954 <WM_COMMAND>: Set the menu_command_in_progress flag.
14955 Kill any menu_free_timer that is running.
14956
14957 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
14958 Call ExtTextOutA rather than ExtTextOut.
14959
149602002-02-22 Eli Zaretskii <eliz@gnu.org>
14961
14962 * puresize.h (BASE_PURESIZE): Increase to 755000.
14963
149642002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14965
14966 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
14967 on the string before encoding it.
14968 (Fw16_get_clipboard_data): Run post-read-conversion on the string
14969 after decoding it.
14970
149712002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14972
14973 Support for ICCCM Extended Segments in X selections:
14974
14975 * xselect.c <Qcompound_text_no_extensions>: New variable.
14976 (syms_of_xselect): Intern and staticpro it.
14977 (selection_data_to_lisp_data): Run post-read-conversion on decoded
14978 selection text.
14979 (lisp_data_to_selection_data): If next-selection-coding-system is
14980 compound-text-no-extensions, set the type of selection to be
14981 compound-text.
14982
14983 * xterm.h (x_encode_text): Update prototype.
14984
14985 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
14986 callers changed. If SELECTIONP is non-zero, run the
14987 pre-write-conversion function before encoding the selection text.
14988
149892002-02-21 Kim F. Storm <storm@cua.dk>
14990
14991 * frame.c (syms_of_frame): Change mouse-highlight default to t.
14992
14993 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
14994 Correct composing of language-change event.
14995
149962002-02-20 Kim F. Storm <storm@cua.dk>
14997
14998 * keyboard.c (menu_bar_items): Don't include keymap or local-map
14999 bindings at PT when building menu (the menu is not updated often
15000 enough for this to work reliable).
15001 (tool_bar_items): Likewise.
15002 (current_active_maps): Removed unused (and buggy) function.
15003
150042002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15005
15006 * xfns.c (gif_load): Use correct width and height for GIF images.
15007
150082002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
15009
15010 * floatfns.c (Fatan): Accept an optional second arg and call
15011 atan2 if passed 2 args.
15012
150132002-02-18 Jason Rumney <jasonr@gnu.org>
15014
15015 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
15016
150172002-02-17 Jason Rumney <jasonr@gnu.org>
15018
15019 * w32term.c (x_autoselect_window_p): New variable.
15020 (syms_of_w32term): DEFVAR_BOOL and initialize it.
15021 (note_mouse_movement): Use it.
15022
15023 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
15024
15025 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
15026
15027 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
15028 New variables.
15029 (syms_of_w32fns): Intern and staticpro them.
15030 (x_frame_parms) <"fullscreen">: New parameter.
15031 (x_fullscreen_move, x_set_fullscreen): New functions.
15032 (x_set_frame_parameters): Support Qfullscreen.
15033 (x_real_positions): Save x/y_pixels_diff frame params.
15034 (x_figure_window_size): Support full-screen frames.
15035 (Fx_create_frame): Default the fullscreen parameter.
15036
15037 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
15038 (x_fullscreen_adjust): New functions.
15039 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
15040 fullscreen. Call x_check_fullscreen_move, and set the
15041 want_fullscreen member of output_data.w32
15042 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
15043
15044 * w32term.h: New enum for FULLSCREEN_* constants.
15045 (struct w32_output): New members want_fullscreen, x_pixels_diff,
15046 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
15047 (x-fullscreen-adjust): New prototype.
15048
150492002-02-17 Kim F. Storm <storm@cua.dk>
15050
15051 * frame.c: (Vmouse_highlight): New variable.
15052 (syms_of_frame): DEFVAR_LISP it.
15053
15054 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 15055
048addec 15056 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 15057
048addec
JD
15058 * xterm.c (disable_mouse_highlight): Removed variable.
15059 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
15060 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15061 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
15062 and on after keyboard input.
15063 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 15064
048addec 15065 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 15066
048addec
JD
15067 * msdos.c (disable_mouse_highlight): Removed variable.
15068 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15069 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
15070 (internal_terminal_init): Initialize mouse_face_hidden.
15071 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
15072 and on after keyboard input.
4f1b1854 15073
048addec 15074 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 15075
048addec
JD
15076 * w32term.c (disable_mouse_highlight): Removed variable.
15077 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
15078 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15079 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
15080 and on after keyboard input.
15081 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 15082
048addec 150832002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 15084
048addec
JD
15085 * msdos.c (last_mouse_window): New variable.
15086 (dos_rawgetc): Fix last change--if the mouse is in the same window
15087 as recorded in last_mouse_window, don't select this window.
5cb6905d 15088
048addec 15089 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 15090
048addec
JD
15091 * msdos.c (x_autoselect_window_p): New variable.
15092 (syms_of_msdos): Defvar it.
15093 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
15094 which the last mouse movement occured, unless it is already selected.
437dfb9f 15095
048addec
JD
15096 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
15097 New variables.
15098 (syms_of_xdisp): DEVFAR them.
15099 (hscroll_window_tree): Use automatic_hscroll_margin and
15100 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 15101
048addec 151022002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 15103
048addec
JD
15104 * xterm.c (x-autoselect-window): New variable.
15105 (note_mouse_movement): Use it.
9f696a00 15106
048addec 15107 * keyboard.c: Do not include "systime.h" twice.
d57966d7 15108
048addec 151092002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 15110
bfa02563 15111 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 15112
048addec 15113 * alloc.c (NSTATICS): Increase to 1280.
74779f52 15114
048addec 151152002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 15116
048addec 15117 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 15118
048addec
JD
15119 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
15120 (Vx_super_keysym): New variables.
15121 (syms_of_xterm): DEFVAR_LISP them.
15122 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
15123 variables to determine which keys to use for the various modifiers.
a474d59c 15124
048addec 151252002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 15126
048addec
JD
15127 * window.c: (Vmode_line_in_non_selected_windows): Removed.
15128 (mode_line_in_non_selected_windows): New variable.
15129 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 15130
048addec
JD
15131 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
15132 Use mode_line_in_non_selected_windows.
15133 (mode_line_in_non_selected_windows): Declare extern.
15134 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 15135
048addec 151362002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 15137
048addec
JD
15138 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
15139 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
15140 (Fclear_this_command_keys): Doc fixes.
2d10309f 15141
048addec
JD
15142 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
15143 (update_face_from_frame_parameter): Increment face_change_count
15144 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 15145
048addec
JD
15146 * xdisp.c (QCpropertize): New variable.
15147 (mode_line_proptrans_alist): New variable.
15148 (display_mode_element): New arg PROPS; all calls changed.
15149 Implement this, for strings.
15150 Handle literal output of strings by sharing the
15151 main-line code for strings, using local var `literal'.
15152 Handle :propertize feature.
15153 (syms_of_xdisp): Initialze and staticpro QCpropertize and
15154 mode_line_proptrans_alist.
0b1e6b54 15155
048addec 151562002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 15157
048addec
JD
15158 * window.c: (Vmode_line_in_non_selected_windows): New variable.
15159 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 15160
048addec
JD
15161 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
15162 (CURRENT_MODE_LINE_FACE_ID): Use it.
15163 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 15164
048addec
JD
15165 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
15166 to get mode line face.
e17144de 15167
048addec 151682002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 15169
048addec
JD
15170 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
15171 variables; cus-start.el doesn't need them anymore.
44368f8f 15172
048addec 151732002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 15174
048addec
JD
15175 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
15176 reduction. This fixes a display problem where stray newlines were
15177 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 15178
048addec 151792002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 15180
048addec 15181 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 15182
048addec 15183 * xdisp.c (display_mode_lines): Fix last change.
453c5510 15184
048addec 151852002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 15186
048addec
JD
15187 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
15188 match each other.
15189 (w32_load_system_font): Prevent Cleartype fonts from loading.
15190 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 15191
048addec 151922002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 15193
048addec
JD
15194 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
15195 (CURRENT_MODE_LINE_HEIGHT): Use it.
15196 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 15197
048addec
JD
15198 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
15199 (pos_visible_p, handle_face_prop): Likewise.
15200 (display_mode_lines): Likewise, but for the real selected window.
15201 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 15202
048addec
JD
15203 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
15204 in non-selected windows.
15205 (realize_basic_faces): Realize it.
15206 (syms_of_term): Intern and staticpro it.
308dd672 15207
048addec 152082002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 15209
048addec
JD
15210 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
15211 Changed mail addresses to emacs-devel@gnu.org.
308dd672 15212
048addec 152132002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 15214
048addec
JD
15215 * fileio.c (Fsubstitute_in_file_name): If the file name includes
15216 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 15217
048addec 15218 * floatfns.c (Fround): Doc fix.
3c1e6b46 15219
048addec 152202002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 15221
048addec 15222 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 15223
048addec 152242002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 15225
048addec 15226 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 15227
048addec 152282002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 15229
048addec
JD
15230 * keymap.c (where_is_internal): Only check whether definition is
15231 remapped if it fulfills is_command_symbol.
0065bb74 15232
048addec 152332002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 15234
048addec 15235 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 15236
048addec 15237 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 15238
048addec 152392002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 15240
048addec
JD
15241 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
15242 defining command remapping. Doc updated.
15243 (Flookup_key): Remap command through keymap if KEY is a symbol.
15244 (is_command_symbol): New function.
15245 (Fkey_binding): Use it. New optional argument NO-REMAP.
15246 Doc updated. Callers changed. Perform command remapping via
15247 recursive call unless that arg is non-nil.
15248 (where_is_internal): New argument no_remap. Callers changed.
15249 Call recursively to find original key bindings for a remapped
15250 comand unless that arg is non-nil.
15251 (Fwhere_is_internal): New optional argument NO-REMAP.
15252 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 15253
048addec 15254 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 15255 (is_command_symbol): Add prototype.
0d8466cc 15256
048addec
JD
15257 * keyboard.c (Vthis_original_command): New variable.
15258 (syms_of_keyboard): DEFVAR_LISP it.
15259 (command_loop_1): Set it, and perform command remapping.
15fff01d 15260
048addec 152612002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 15262
048addec 15263 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 15264
048addec 152652002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 15266
048addec 15267 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 15268
048addec 152692002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 15270
048addec 15271 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 15272
048addec 152732002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 15274
048addec 15275 * filelock.c (S_ISLNK): Define if not defined.
3a232704 15276
048addec 152772002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 15278
048addec 15279 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 15280
048addec
JD
15281 * lread.c (read1): Redesign strategy for force_multibyte and
15282 force_singlebyte. Now is_multibyte records whether read_buffer
15283 is multibyte. Encountering any multibyte character makes it so.
4e02881b 15284
048addec 152852002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 15286
048addec
JD
15287 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
15288 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 15289
048addec 152902002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 15291
048addec
JD
15292 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
15293 latter never being defined on GNU/Linux.
749f499f 15294
048addec 152952002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 15296
048addec
JD
15297 * xfaces.c (realize_default_face): Don't set the weight and slant of
15298 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 15299
048addec 153002002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 15301
048addec
JD
15302 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
15303 Call cancel_hourglass unconditionally.
d0fd26dd 15304
048addec
JD
15305 * eval.c (Fsignal): Remove duplicated declaration of
15306 the variable `display_hourglass_p'.
b4c45162 15307
048addec 153082002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 15309
048addec 15310 * editfns.c (region_limit): Nicer error message.
c95eaa61 15311
048addec
JD
15312 * coding.c (decode_composition_emacs_mule):
15313 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 15314
048addec
JD
15315 * callint.c (check_mark): New arg to specify clearer error message.
15316 Callers changed.
c95eaa61 15317
048addec 153182002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 15319
048addec 15320 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 15321
048addec 153222002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 15323
048addec
JD
15324 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
15325 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
15326 Fix doc-strings.
c95eaa61 15327
048addec 153282002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 15329
048addec 15330 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 15331
048addec
JD
15332 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
15333 and scroll_up_aggressively.
c95eaa61 15334
048addec 153352002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 15336
048addec 15337 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 15338
048addec 153392002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 15340
048addec
JD
15341 * textprop.c (Fnext_property_change, Fnext_single_property_change)
15342 (Fprevious_property_change, Fprevious_single_property_change):
15343 Stay within the narrowed-buffer boundaries.
e2c3786a 15344
048addec 153452002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 15346
048addec
JD
15347 * term.c (Ftty_display_color_cells): New function.
15348 (syms_of_term): Defsubr it.
15349 (Ftty_display_color_cells, Ftty_display_color_p): Change the
15350 argument name to DISPLAY. Doc fix.
bf794306 15351
048addec
JD
15352 * dispextern.h: Add prototype for set_tty_color_mode and
15353 tty_setup_colors.
bf794306 15354
048addec 153552002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 15356
048addec
JD
15357 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
15358 If region left to draw is not what was expected, mark the frame as
15359 garbaged.
62582985 15360
048addec
JD
15361 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
15362 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 15363
048addec 153642002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 15365
048addec
JD
15366 * w32term.c (x_update_window_begin): Only hide caret if
15367 w32_use_visible_system_caret is set.
15368 (x_update_window_end): Only show caret if
15369 w32_use_visible_system_caret is set.
15370 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 15371
048addec 15372 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 15373
048addec 153742002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 15375
048addec
JD
15376 * unexelf.c (unexec): Define n so as to cause compilation error
15377 for the code where people have often written n instead of nn.
1e9a6186 15378
048addec 15379 * .gdbinit (hookpost-run): Defined.
1e9a6186 15380
048addec 153812002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 15382
048addec 15383 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 15384
048addec 153852002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 15386
048addec
JD
15387 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
15388 if fullscreen is being set.
7c75be36 15389
048addec 153902002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 15391
048addec
JD
15392 * minibuf.c (Fminibuffer_contents)
15393 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
15394 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 15395
048addec 153962002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 15397
048addec 15398 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 15399
048addec 154002002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 15401
048addec
JD
15402 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
15403 height before comparison.
15404 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 15405
048addec 154062002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 15407
048addec
JD
15408 * w32term.c (w32_system_caret_width): Remove.
15409 (w32_use_visible_system_caret): New user flag.
15410 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
15411 Windows reports a screen reader running.
15412 (x_update_window_begin): Hide the system caret.
15413 (x_update_window_end): Show the system caret.
15414 (x_display_and_set_cursor): Don't draw a cursor when
15415 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 15416
048addec
JD
15417 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
15418 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
15419 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
15420 the user requests it. Use system default width when creating.
15421 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 15422
048addec
JD
15423 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
15424 New window messages.
905cc05a 15425
048addec 154262002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 15427
048addec 15428 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 15429
048addec 154302002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 15431
048addec 15432 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 15433
048addec 154342002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 15435
048addec 15436 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 15437
048addec 154382002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 15439
048addec
JD
15440 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
15441 that Windows returns. If a double check fails, try to guess how
15442 ExtTextOut is going to act.
4d0fa4f3 15443
048addec
JD
15444 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
15445 in place of stricmp.
15446 (w32_list_synthesized_fonts): Removed.
15447 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
15448 (struct enumfont_t): New element; list.
15449 (enum_font_cb2): List all style and charset variations of a font.
15450 (Fw32_select_font): New optional argument; include_proportional.
15451 Exclude vertical fonts. Exclude proportional fonts unless
15452 include_proportional is non-nil.
15453 (w32_enable_synthesized_fonts): Change to a boolean.
15454 (Fw32_send_sys_command): Doc fix.
493faf20 15455
048addec 154562002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 15457
048addec
JD
15458 * dispnew.c (update_frame): Move the variable `tem' to the block
15459 where it is used.
4971e491 15460
048addec 154612002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 15462
048addec
JD
15463 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
15464 call to face-set-after-frame-default.
4971e491 15465
048addec 154662002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 15467
048addec
JD
15468 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
15469 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 15470
048addec 154712002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 15472
048addec
JD
15473 * window.c (enlarge_window): When exceeding size of parent,
15474 directly delete all the siblings instead of trying to resize it.
201c831a 15475
048addec 154762002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 15477
048addec 15478 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 15479
048addec 154802002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 15481
048addec 15482 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 15483
048addec 154842002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 15485
048addec
JD
15486 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
15487 is invisible. This can happen if cursor is on top line of a
15488 window, and we switch to a buffer with a header line.
d77fbc16 15489
048addec 15490 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 15491
048addec 154922002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 15493
048addec
JD
15494 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
15495 `dont_resize' only when used.
61e3b944 15496
048addec 15497 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 15498
048addec 154992002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 15500
048addec
JD
15501 * xdisp.c (display_mode_element): When computing charpos, depend
15502 on multibyteness of elt, not the text in field.
8af01033 15503
048addec 155042002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 15505
048addec
JD
15506 * buffer.c (Fkill_all_local_variables):
15507 Increment `update_mode_lines' only once.
7363986a 15508
048addec 155092002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 15510
048addec
JD
15511 * lisp.h (adjust_after_replace_noundo)
15512 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 15513
048addec 15514 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 15515
048addec 155162002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 15517
048addec
JD
15518 Support for the --color command-line argument and tty-color-mode
15519 frame parameter:
f1a85b89 15520
048addec
JD
15521 * term.c (tty_default_color_capabilities, tty_setup_colors)
15522 (set_tty_color_mode): New functions.
15523 (term_init): Call tty_default_color_capabilities.
15524 (Qtty_color_mode_alist): New variable.
15525 (syms_of_term): Intern and staticpro it.
f1a85b89 15526
048addec
JD
15527 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
15528 frames.
15529 (do_switch_frame): For termcap frames, switch the tty
15530 color mode as specified by the frame's parameters.
15531 (Qtty_color_mode): New variable.
15532 (syms_of_frame): Intern and staticpro it.
3a62677f 15533
048addec
JD
15534 * emacs.c (USAGE2): Add the --color option.
15535 (standard_args): Ditto.
72244db2 15536
048addec
JD
155372002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15538
15539 * xterm.h (struct x_output): New members want_fullscreen,
15540 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
15541 y_pixels_outer_diff.
15542 New enum for FULLSCREEN_* constants.
15543 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
15544 is NULL.
15545 (x_fullscreen_adjust): Add prototype.
3a62677f 15546
048addec
JD
15547 * emacs.c (USAGE2): Add the new full-screen arguments.
15548 (standard_args): Ditto.
3a62677f 15549
048addec
JD
15550 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
15551 New variables.
15552 (syms_of_xfns): Intern and staticpro them.
15553 (x_frame_parms) <"fullscreen">: New parameter.
15554 (x_fullscreen_move, x_set_fullscreen): New functions.
15555 (x_set_frame_parameters): Support for Qfullscreen.
15556 (x_real_positions): More accurate computation of the frame position.
15557 (x_figure_window_size): Support full-screen frames.
15558 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 15559
048addec
JD
15560 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
15561 (XTread_socket) <Expose>: Call x_check_fullscreen.
15562 <ConfigureNotify>: Don't resize to fullscreen.
15563 Call x_check_fullscreen_move, and set the want_fullscreen member of
15564 output_data.x.
3a62677f 15565
048addec 155662002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 15567
048addec
JD
15568 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
15569 for mice with more than 3 buttons.
b8523839 15570
048addec
JD
15571 * w32term.c (parse_button): New parameter xbutton. Callers changed.
15572 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 15573
048addec
JD
15574 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
15575 (syms_of_w32fns): DEFVAR_BOOL it.
15576 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 15577
048addec 155782002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 15579
048addec 15580 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 15581
048addec 155822002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 15583
048addec 15584 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 15585
048addec 155862002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 15587
048addec
JD
15588 * .gdbinit (xbuffer): Remove address operator since data is now a
15589 pointer.
c93674bb 15590
048addec 155912002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 15592
048addec 15593 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 15594
048addec 15595 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 15596
048addec 155972002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 15598
048addec
JD
15599 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
15600 when checking for multiple frames.
91175673 15601
048addec 156022002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 15603
048addec
JD
15604 * window.c (delete_window): Rewrite the code for changing the
15605 selected window to handle the case where WINDOW is not a leaf.
91175673 15606
048addec 156072002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 15608
048addec
JD
15609 * process.c (send_process): Set src_multibyte to 1 after the call
15610 top setup_coding_system, not before the call.
e0fead5d 15611
048addec 156122002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 15613
048addec
JD
15614 * xmenu.c (set_frame_menubar, xmenu_show):
15615 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 15616
048addec
JD
15617 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
15618 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 15619
048addec 156202002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 15621
048addec 15622 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 15623
048addec 15624 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 15625
048addec 15626 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 15627
048addec 156282002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 15629
048addec
JD
15630 * insdel.c (make_gap_larger): Make sure buffer size does not
15631 overflow range of int.
62854fe2 15632
048addec 156332002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 15634
048addec
JD
15635 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15636 OVERLAPS_P.
656f46bb 15637
048addec 15638 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 15639
048addec
JD
15640 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
15641 to the left or to the right of the pointer, put it against
15642 the left screen edge.
15643 (x_frame_parms): Add missing braces around initializer.
036e218d 15644
048addec
JD
15645 * w32term.c (x_setup_relief_colors): Don't compute an image's
15646 background color if it doesn't have a Pixmap.
15647 (notice_overwritten_cursor): Don't depend on
15648 output_cursor and updated_area. Compare pixel coordinates with
15649 window's cursor pixel coordinates.
15650 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15651 Call notice_overwritten_cursor with new arg list.
15652 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15653 unconditionally.
15654 (x_draw_image_relief): Use predefined macro instead of
15655 constant when the value of `tool_bar_button_relief' is negative.
036e218d 15656
048addec 15657 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 15658
048addec 156592002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 15660
048addec 15661 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 15662
048addec 156632002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 15664
048addec
JD
15665 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
15666 (Fkey_binding): Try the `keymap' property map first.
15667 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
15668 minor mode bindings.
90647b07 15669
048addec 156702002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 15671
3419757d 15672 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 15673
048addec 156742002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 15675
048addec
JD
15676 * keyboard.c (read_key_sequence): Handle the keymap property
15677 before minor mode maps.
9fbc32aa 15678
048addec
JD
15679 * editfns.c (Fformat): Update thissize from field_width
15680 based on the actual width, in the string case.
036e218d 15681
048addec 156822002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 15683
048addec
JD
15684 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
15685 when used as truth value to prevent gcc warnings.
9fbc32aa 15686
048addec
JD
15687 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
15688 * w32proc.c: Include <config.h>.
9fbc32aa 15689
048addec 156902002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 15691
048addec
JD
15692 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
15693 not EMACS_INT, to make them compatible with DEFVAR_INT.
15694 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 15695
048addec 156962002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 15697
048addec
JD
15698 * print.c (print_object): Test print_escape_nonascii only for
15699 unibyte strings.
15700 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
15701 when outputting to a multibyte buffer.
9fbc32aa 15702
048addec 157032001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 15704
048addec
JD
15705 * print.c (print_object): In multibyte string, use hex escapes.
15706 Use octal only for unibyte strings.
15707 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 15708
048addec
JD
15709 * lread.c (read_escape): New arg BYTEREP for reporting whether
15710 escape forces unibyte or multibyte.
15711 (read1): When reading a string, take note of that info.
0142178a 15712
048addec 157132001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 15714
048addec
JD
15715 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
15716 comparison to test lisp value returned by Fget.
d4824a5d 15717
048addec 157182001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 15719
048addec 15720 * lisp.h (max_specpdl_size): Add declaration.
b1356234 15721
048addec 15722 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 15723
048addec
JD
15724 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
15725 Handle modifier bits. Correct typo in error message.
99e380ee 15726
048addec 157272001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 15728
048addec
JD
15729 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
15730 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
15731 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
15732 Update calls to Fdefine_abbrev.
15733 (write_abbrev): Update for changed data format.
15734 Don't list "system" abbrevs.
15735 (Fexpand_abbrev): Update use count with new data format.
15736 (describe_abbrev): Update for changed data format.
15737 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 15738
048addec 15739 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 15740
048addec 15741 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 15742
048addec
JD
15743 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
15744 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 15745
048addec
JD
15746 * keymap.c (Flookup_key): Error message if key has wrong data type.
15747 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
15748 (exclude_key): New variable.
59a86c99 15749
048addec 157502001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 15751
048addec
JD
15752 * xterm.c (x_setup_relief_colors): Don't compute an image's
15753 background color if it doesn't have a Pixmap.
eb77a5f4 15754
048addec
JD
15755 * xterm.c (notice_overwritten_cursor): Don't depend on
15756 output_cursor and updated_area. Compare pixel coordinates with
15757 window's cursor pixel coordinates.
15758 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15759 Call notice_overwritten_cursor with new arg list.
15760 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15761 unconditionally.
eb77a5f4 15762
048addec
JD
15763 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
15764 height of the cursor line to the amount to scroll.
eb77a5f4 15765
048addec 157662001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 15767
048addec
JD
15768 * intervals.c (set_point_both): The position after an invisible,
15769 intangible character is not an acceptable stopping point.
bb313871 15770
048addec 157712001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 15772
048addec
JD
15773 * window.c (enlarge_window): In new preserve_before code, convert
15774 CURBEG from lisp object to integer before doing arithmetic.
6052529b 15775
048addec 157762001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 15777
048addec 15778 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 15779
048addec 157802001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 15781
048addec
JD
15782 * keyboard.c (record_char): Ignore duplicate help-echo events only
15783 separated by mouse-movement. When tracking mouse, only record
15784 first and last mouse-movement event in same window.
15785 Don't record mouse-movement events in keyboard macros.
3ce081f5 15786
048addec 157872001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 15788
048addec
JD
15789 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
15790 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 15791
048addec
JD
15792 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
15793 instead of Fstring_as_unibyte.
9fabb2f5 15794
048addec 157952001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 15796
048addec 15797 The following changes remove mocklisp support:
9fabb2f5 15798
048addec 15799 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 15800
048addec
JD
15801 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
15802 `Qmocklisp' and `Qmocklisp_arguments'.
15803 Remove prototype of syms_of_mocklisp.
2fa0eedf 15804
048addec 15805 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 15806
048addec
JD
15807 * callint.c: Do not include mocklisp.h.
15808 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 15809
048addec
JD
15810 * eval.c: Remove variables `Qmocklisp_arguments',
15811 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
15812 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
15813 Do not test for mocklisp case.
15814 (Fwhile): Remove unused variable `tem'.
15815 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 15816
048addec 15817 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 15818
048addec 15819 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 15820
048addec 15821 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 15822
048addec 158232001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 15824
048addec
JD
15825 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
15826 to the left or to the right of the pointer, put it against
15827 the left screen edge.
6108b49c 15828
048addec 158292001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 15830
048addec
JD
15831 * Makefile.in (distclean): Remove .gdbinit if we are building
15832 outside the source tree.
5eea19a4 15833
048addec 158342001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 15835
048addec 15836 * w32.c (emacs_root_dir): New function.
5eea19a4 15837
048addec 15838 * msdos.c (emacs_root_dir): New function.
5eea19a4 15839
048addec
JD
15840 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
15841 of the current drive as the fallback for default_directory.
438e57dd 15842
048addec
JD
15843 * dired.c (file_name_completion): Run the elements of
15844 completion-ignored-extensions through ENCODE_FILE.
438e57dd 15845
048addec
JD
15846 * lisp.h (scmp): Remove prototype, since it's now a static
15847 function private to dired.c.
c88e5347 15848
048addec 158492001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 15850
048addec
JD
15851 * dired.c (scmp): Function moved from minibuf.c.
15852 Delete multibyte handling--used only on encoded strings.
59ce1461 15853
048addec 15854 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 15855
048addec 15856 * fns.c (merge): Add QUIT call.
59ce1461 15857
048addec 158582001-12-18 Dave Love <fx@gnu.org>
8727d588 15859
048addec
JD
15860 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
15861 language/georgian.el.
8727d588 15862
048addec 158632001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 15864
048addec
JD
15865 * Makefile.in (lisp, shortlisp): Synchronize with changes to
15866 lisp/Makefile.in:DONTCOMPILE.
cc63037e 15867
048addec 158682001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 15869
048addec
JD
15870 * xdisp.c (window_box_height): Do not return negative values.
15871 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 15872
048addec 15873 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 15874
048addec 15875 * term.c (keys): Likewise.
deece6f5 15876
048addec 15877 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 15878
048addec 158792001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 15880
048addec
JD
15881 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
15882 patch (COMPOSING_P, not COMPOSING).
28ff4293 15883
048addec 158842001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 15885
048addec 15886 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 15887
048addec
JD
15888 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
15889 before calling decode_coding.
9b46de40 15890
048addec 15891 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 15892
048addec
JD
15893 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
15894 instead of only for COMPOSITION_DISABLED.
9b46de40 15895
048addec 158962001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 15897
048addec 15898 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 15899
048addec 15900 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 15901
048addec
JD
15902 * buffer.h (struct buffer): New field `display_error_modiff'.
15903 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 15904
048addec 15905 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 15906
048addec
JD
15907 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
15908 Call redisplay_window, but not if display_error_modiff field says no.
15909 (redisplay_window_error): New function.
15910 (displayed_buffer): New variable.
15911 (redisplay_internal, redisplay_windows): Call the new functions
15912 instead of redisplay_window directly.
2cd23960 15913
048addec 159142001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 15915
048addec 15916 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 15917
048addec 159182001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 15919
048addec 15920 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 15921 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 15922 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 15923
048addec 159242001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 15925
048addec
JD
15926 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
15927 parameter have a numeric value all the time.
f6fa0866 15928
048addec 15929 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 15930
048addec 159312001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 15932
048addec 15933 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 15934
048addec
JD
15935 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
15936 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 15937
048addec 159382001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 15939
048addec
JD
15940 * xdisp.c (move_it_vertically_backward): Change heuristic
15941 for the case that we didn't move far enough initially.
91c153e2 15942
048addec
JD
15943 * window.c (Frecenter): Simplify computation in the case of window
15944 system frames and ARG < 0; use window_box_height.
65b7d3e7 15945
048addec 159462001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 15947
048addec
JD
15948 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
15949 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 15950
048addec 159512001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 15952
048addec
JD
15953 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
15954 arg is negative.
be676094 15955
048addec 159562001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 15957
048addec
JD
15958 * m/hp800.h: Split the __hpux conditional into the parts
15959 that are right for GNU/Linux too and the parts that are not.
15960 Use the former if GNU_LINUX.
15961 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 15962
048addec 15963 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 15964
048addec 159652001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 15966
048addec
JD
15967 * macros.c, msdos.c, w16select.c: Change doc-string comments to
15968 `new style' [w/`doc:' keyword].
032a857d 15969
048addec 159702001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 15971
048addec
JD
15972 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
15973 before using.
b6270150 15974
048addec 159752001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 15976
048addec
JD
15977 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
15978 keyword].
98cbb9fa 15979
048addec 159802001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 15981
048addec 15982 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 15983
048addec 15984 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 15985
048addec 159862001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 15987
048addec 15988 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 15989 Add comment to explain where the struct came from.
048addec
JD
15990 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
15991 (add_menu_item): Process pop-up menus first to avoid memory leak.
15992 (add_menu_item, w32_menu_display_help): Use `help' field as
15993 Lisp_Object.
15994 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 15995
048addec 159962001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 15997
048addec 15998 * COPYING: Moved back.
fa336b91 15999
048addec
JD
16000 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
16001 Add parentheses around && within ||.
077907d4 16002
048addec 16003 * indent.c (compute_motion): Likewise.
aa2af83a 16004
048addec 16005 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 16006
048addec
JD
16007 * coding.c (setup_coding_system, shrink_encoding_region)
16008 (Fdecode_sjis_char): Likewise.
60a653f1 16009
048addec 160102001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 16011
048addec
JD
16012 * xdisp.c (display_mode_element): Don't read past end of string if
16013 it ends with '%'.
60a653f1 16014
048addec
JD
16015 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
16016 can hold.
60a653f1 16017
048addec
JD
16018 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
16019 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
16020 type changed to Lisp_Object.
16021 (syms_of_data): DEFVAR_LISP them.
60a653f1 16022
048addec 160232001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 16024
048addec
JD
16025 * callproc.c (init_callproc): Set Vdata_directory based on the source
16026 location whenever Emacs was run uninstalled.
60a653f1 16027
048addec 160282001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 16029
048addec
JD
16030 * config.in (HAVE_WORKING_VFORK): New #undefs.
16031 * process.c (create_process):
16032 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
16033 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
16034 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
16035 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
16036 * m/intel386.h (HAVE_VFORK): Likewise.
16037 * m/mips-siemens.h (HAVE_VFORK): Likewise.
16038 * m/mips.h (HAVE_VFORK): Likewise.
16039 * s/freebsd.h (vfork): Remove #define.
16040 * s/lynxos.h (HAVE_VFORK): Remove #undef.
16041 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 16042
048addec 160432001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 16044
048addec
JD
16045 * s/hpux10.h (random): Add undef.
16046 (HAVE_RANDOM): Define it just once.
60a653f1 16047
048addec 160482001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16049
048addec 16050 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 16051
048addec 160522001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 16053
048addec
JD
16054 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
16055 scroll bars of the frame before deleting the frame itself. If the
16056 frame has a widget, delete the frame with XtDestroyWidget, and do
16057 not call XDestroyWindow before that.
60a653f1 16058
048addec 160592001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 16060
048addec 16061 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 16062
048addec 16063 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 16064
048addec 160652001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 16066
048addec
JD
16067 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
16068 excessively large.
60a653f1 16069
048addec
JD
16070 * insdel.c (make_gap_larger): New function.
16071 (make_gap_smaller): New function.
16072 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
16073 Call make_gap_smaller if arg is negative.
60a653f1 16074
048addec 160752001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16076
048addec
JD
16077 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
16078 Pass a dummy argument when calling interrupt_signal.
16079 (parse_menu_item): Mark disabled items before checking for empty def.
16080 (read_char_minibuf_menu_prompt): Make safety more visible.
16081 (read_key_sequence): Add a `first_unbound' variable.
16082 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
16083 unbound prefix as soon as we can detect it.
60a653f1 16084
048addec
JD
16085 * doc.c (Fsnarf_documentation): Add prototype.
16086 (get_doc_string): Handle negative arguments.
16087 (Fdocumentation): Use AREF and ASIZE.
16088 Move the calls to get_doc_string to a single place.
16089 Don't confuse an interactive-spec for a docstring reference.
16090 (Fdocumentation_property): Take advantage of the fact that
16091 get_doc_string now ignores the sign of the docstring position.
60a653f1 16092
048addec 16093 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 16094
048addec 160952001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16096
a64387ee 16097 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 16098
048addec 160992001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16100
048addec
JD
16101 * xterm.c (x_draw_image_relief): Use predefined macro instead of
16102 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 16103
048addec 161042001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 16105
048addec
JD
16106 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
16107 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 16108
048addec 16109 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 16110
048addec 161112001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16112
048addec 16113 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 16114
048addec 161152001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 16116
048addec 16117 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 16118
048addec 161192001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 16120
f63fd14e 16121 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 16122
048addec
JD
16123 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
16124 [!WM_MOUSELEAVE]: Define.
60a653f1 16125
048addec
JD
16126 * w32menu.c (current_popup_menu, get_menu_item_info):
16127 (set_menu_item_info): New vars.
16128 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
16129 (w32_menu_show): Set current_popup_menu.
16130 (add_menu_item): Allocate new strings for owner-drawn menu items
16131 and help strings.
16132 Use owner-draw for disabled menu items again.
16133 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
16134 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 16135
048addec
JD
16136 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
16137 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
16138 <WM_EXITMENULOOP>: Free menu strings.
16139 <WM_MOUSELEAVE>: Stop tracking mouse.
16140 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 16141
048addec
JD
16142 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
16143 and mouse face.
60a653f1 16144
048addec 161452001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 16146
048addec
JD
16147 The following changes add left-fringe and right-fringe
16148 frame parameters to adjust fringe widths, or remove one or
16149 both fringes.
60a653f1 16150
048addec
JD
16151 * frame.h (struct frame): Remove trunc_area_pixel_width and
16152 trunc_area_cols fields.
16153 (Qleft_fringe, Qright_fringe): Declare.
16154 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 16155
048addec
JD
16156 * frame.c (Qleft_fringe, Qright_fringe): New vars.
16157 (syms_of_frame): Initialize them.
60a653f1 16158
048addec
JD
16159 * window.c (coordinates_in_window): Handle separate left and right
16160 fringe widths.
60a653f1 16161
048addec
JD
16162 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
16163 and fringe_cols fields.
16164 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
16165 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
16166 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
16167 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
16168 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
16169 (x_compute_fringe_widths): Add prototype.
60a653f1 16170
048addec
JD
16171 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
16172 fill fringe evenly with small dashes.
f63fd14e 16173 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
16174 clip the new ZV bitmap to avoid jitter between rows.
16175 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
16176 background. Don't draw fringe bitmaps if fringe width is zero.
16177 (x_compute_fringe_widths): New function.
16178 (x_new_font, x_set_window_size_1): Use it.
60a653f1 16179
048addec
JD
16180 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
16181 (x_set_frame_parameters): Process `font' parameter before other
16182 parameters as fringe widths depend on it.
16183 (x_set_fringe_width): New function.
16184 (x_figure_window_size): Use x_compute_fringe_widths.
16185 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
16186 parameters.
60a653f1 16187
048addec
JD
16188 * widget.c (set_frame_size): Use x_compute_fringe_widths.
16189 (EmacsFrameSetCharSize): Ditto.
60a653f1 16190
048addec
JD
16191 * w32term.h: Merged changes from xterm.h.
16192 * w32term.c: Merged changes from xterm.c.
16193 * w32fns.c: Merged changes from xfns.c.
60a653f1 16194
048addec 161952001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16196
048addec 16197 * COPYING: Removed.
60a653f1 16198
048addec 161992001-11-29 Dave Love <fx@gnu.org>
60a653f1 16200
048addec
JD
16201 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
16202 extra extra slot.
16203 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 16204
048addec 162052001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16206
048addec
JD
16207 * fileio.c (file-name-coding-system)
16208 (default-file-name-coding-system): Doc fix (links to referenced
16209 variables added).
60a653f1 16210
048addec 162112001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16212
048addec
JD
16213 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
16214 Add dummy uses of gcproN variables.
60a653f1 16215
048addec
JD
16216 * category.c (describe_category, describe_category_1)
16217 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
16218 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 16219
048addec 162202001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 16221
048addec 16222 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 16223
048addec
JD
16224 * Makefile.in (lispdir): New variable, referring to build dir.
16225 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 16226
048addec 162272001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 16228
048addec
JD
16229 * w32menu.c (w32_menu_display_help): Actually add the new argument
16230 OWNER.
60a653f1 16231
048addec 162322001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 16233
048addec
JD
16234 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
16235 menu items. From David Ponce <dponce@wanadoo.fr>.
16236 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
16237 conditionally.
f63fd14e 16238 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 16239 help event in the owner frame's keyboard buffer.
60a653f1 16240
048addec
JD
16241 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
16242 (Fx_show_tip): Don't subtract last width from row width.
16243
16244 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
16245 (w32_read_socket): Use EQ to compare frames.
60a653f1 16246
048addec 162472001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 16248
048addec
JD
16249 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
16250 OVERLAPS_P.
60a653f1 16251
048addec 162522001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16253
048addec
JD
16254 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
16255 `gcpro3' and `gcpro4'.
60a653f1 16256
048addec 16257 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 16258
048addec 162592001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16260
048addec 16261 * ccl.c: Use AREF and ASIZE.
60a653f1 16262
048addec 162632001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16264
048addec
JD
16265 * lisp.h (run_hook_list_with_args): Remove.
16266 (LIST_END_P): Fix call to wrong_type_argument.
16267 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 16268
048addec 162692001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16270
048addec
JD
16271 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
16272 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 16273
048addec
JD
16274 * eval.c: Use AREF and ASIZE.
16275 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 16276
048addec
JD
16277 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
16278 which match the end of the file-name.
16279 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
16280 is not a valid env var, but leave it as is instead.
60a653f1 16281
048addec
JD
16282 * keymap.c (access_keymap): Handle t bindings like nil bindings.
16283 Make nil bindings in char-tables transparent.
16284 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 16285
048addec 162862001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 16287
048addec
JD
16288 * textprop.c (set_text_properties_1): Allow START, END in either order.
16289 Do nothing if range is empty.
60a653f1 16290
048addec 16291 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 16292
048addec
JD
16293 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
16294 (clean): Not here.
60a653f1 16295
048addec 162962001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16297
048addec
JD
16298 * textprop.c (set_text_properties_1): Clearly mark that the
16299 interval should not be empty.
60a653f1 16300
048addec
JD
16301 * intervals.c (graft_intervals_into_buffer):
16302 Don't call set_text_properties_1 on an empty interval.
60a653f1 16303
048addec 163042001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 16305
048addec 16306 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 16307
048addec
JD
16308 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
16309 don't lose the data in it.
60a653f1 16310
048addec 163112001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 16312
048addec 16313 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 16314
c62aec78 16315 * buffer.c (Fkill_buffer): Likewise.
60a653f1 16316
c62aec78 16317 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 16318
048addec 163192001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16320
048addec 16321 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 16322
048addec 163232001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 16324
048addec
JD
16325 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
16326 Niemitalo <kon@iki.fi>.
60a653f1 16327
048addec 163282001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 16329
048addec 16330 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 16331
048addec
JD
16332 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
16333 (Fx_show_tip): Block input during frame creation.
16334 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 16335
048addec 163362001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 16337
048addec
JD
16338 * lread.c (Fload): Detect recursive load error for more than 3
16339 nestings of the same file.
16340 (Vrecursive_load_depth_limit): Variable deleted.
16341 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 16342
048addec 163432001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 16344
048addec
JD
16345 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
16346 mouse position if either left or top is not specified.
60a653f1 16347
048addec
JD
16348 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
16349 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
16350 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
16351 (my_create_tip_window): Assign tip_window.
16352 (x_create_tip_frame): Use same defaults as X.
16353 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 16354 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 16355
048addec
JD
16356 * w32term.c (x_after_update_window_line): Doc fix.
16357 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
16358 frames.
16359 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 16360
048addec
JD
16361 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
16362 for all Windowed systems.
60a653f1 16363
048addec 163642001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 16365
048addec
JD
16366 * msdos.c (IT_clear_screen): If the frame's faces are not yet
16367 realized, use the initial screen colors to clear the screen.
60a653f1 16368
048addec 163692001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16370
048addec
JD
16371 * textprop.c (Fset_text_properties): Remove unused variables
16372 `unchanged', `prev_changed', `s' and `len'.
60a653f1 16373
048addec
JD
16374 * search.c (Freplace_match): Remove unused variable `inslen'.
16375
16376 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
16377
163782001-11-22 Jason Rumney <jasonr@gnu.org>
16379
16380 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
16381 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
16382 (my_create_tip_window): New function.
16383 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
16384 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
16385
163862001-11-20 Jason Rumney <jasonr@gnu.org>
16387
16388 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
16389 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
16390
16391 * w32fns.c (Vw32_system_coding_system): Remove.
16392 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
16393
163942001-11-19 Stefan Monnier <monnier@cs.yale.edu>
16395
16396 * fileio.c (Fwrite_region): Move choose_write_coding_system to
16397 after build_annotations.
16398
16399 * syntax.c (describe_syntax): Add dummy arg.
16400 (describe_syntax_1): Update call to describe_vector.
16401
16402 * category.c (describe_category): Add dummy arg.
16403 (describe_category_1): Update call to describe_vector.
16404
16405 * keymap.c (Fdescribe_vector): Add `describer' parameter.
16406 (describe_command, describe_translation): Add dummy second param.
16407 (describe_map): Call elt_describer with two arguments.
16408 (describe_vector_princ): Add `fun' parameter.
16409 Call it instead of the hardcoded `princ'.
16410 (describe_vector): Add arg `args'.
16411 Pass it as a new second argument to elt_describer.
60a653f1 16412
048addec 16413 * keymap.h (describe_vector): Update prototype.
60a653f1 16414
048addec
JD
16415 * frame.c: Don't include keymap.h any more.
16416 (keys_of_frame): Remove.
60a653f1 16417
048addec 16418 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 16419
048addec 16420 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 16421
048addec 164222001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 16423
048addec
JD
16424 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
16425 if defined, 0 otherwise.
16426 (MAP_FAILED): Define if not defined and use it to test mmap failure.
16427 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 16428
048addec 164292001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 16430
048addec 16431 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 16432
048addec 164332001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 16434
048addec
JD
16435 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
16436 (x_draw_bar_cursor): If the background color of the glyph under
16437 the cursor equals the frame's cursor color, use the glyph's
16438 foreground color for drawing the bar cursor.
16439 (x_after_update_window_line): Clear internal border in different
16440 circumstances.
16441 (w32_set_vertical_scroll_bar): Check for width and height > 0.
16442 (w32_draw_relief_rect): Correct relief by 1 pixel.
16443 (x_set_glyph_string_background_width):
16444 Set extends_to_end_of_line_p if the row's fill_line_p is set and
16445 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
16446 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
16447 if cursor_in_non_selected_windows is false.
16448 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
16449 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
16450 Notice if cursor gets overwritten.
16451 (notice_overwritten_cursor): Renamed from
16452 note_overwritten_text_cursor. Rewritten to take glyph widths
16453 into account, and to take X positions as parameters.
16454 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
16455 around call to x_draw_glyphs.
16456 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16457 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16458 color to use for image glyph reliefs.
16459 (x_draw_image_relief): Accept zero tool_bar_button_relief.
16460 (glyph_rect): Remove unused variable `area'.
60a653f1 16461
048addec
JD
16462 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
16463 some items.
16464 (x_set_internal_border_width): Set frame garbaged when window
16465 doesn't exist yet.
16466 (Fx_create_frame): Accept zero tool_bar_button_relief.
16467 (x_clear_image_1, four_corners_best, image_background)
16468 (image_background_transparent): New functions.
16469 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
16470 (gs_format): Add `:background' entry.
16471 (lookup_image): Set IMG's background color if specified.
16472 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16473 when appropriate.
16474 (x_clear_image_1): Reset `background_valid' and
16475 `background_transparent_valid' fields.
16476 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16477 calculating it here. Set IMG's background_transparent field.
16478 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16479 (enum png_keyword_index): Add PNG_BACKGROUND.
16480 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16481 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16482 (enum gif_keyword_index): Add GIF_BACKGROUND.
16483 (enum gs_keyword_index): Add GS_BACKGROUND.
16484 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
16485 Pre-calculate image background color where necessary.
16486 (x_create_x_image_and_pixmap, xbm_load, gs_load):
16487 Use display info's n_cbits entry for screen depth.
16488 (Fx_show_tip): Remove unused variables `buffer', `top',
16489 `left', `max_width' and `max_height'.
60a653f1 16490
048addec 16491 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 16492
048addec 164932001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 16494
048addec 16495 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 16496
048addec 164972001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16498
048addec 16499 * frame.c (Fframe_live_p): Doc fix.
60a653f1 16500
048addec 165012001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 16502
048addec
JD
16503 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
16504 (message_dolog_marker3): New static variables hold three markers.
16505 (syms_of_xdisp): Initialize and staticpro them.
16506 (message_dolog): Use message_dolog_marker1..3 instead of
16507 allocating markers each time. Unchain them when done.
60a653f1 16508
048addec 165092001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 16510
048addec 16511 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 16512
048addec 165132001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 16514
048addec 16515 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 16516
048addec 165172001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 16518
048addec 16519 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 16520
048addec 165212001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 16522
048addec 16523 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 16524
048addec 165252001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 16526
048addec
JD
16527 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
16528 with invalid position.
60a653f1 16529
048addec 165302001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 16531
048addec 16532 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 16533
048addec
JD
16534 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
16535 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
16536 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 16537
048addec 16538 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 16539
048addec 165402001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16541
048addec
JD
16542 * fileio.c (build_annotations): Split off the tail.
16543 (build_annotations_2): New fun. Extracted from build_annotations.
16544 (Fwrite_region): Split the call to build_annotations into two
16545 calls to build_annotations and build_annotations_2.
077907d4 16546
048addec 165472001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 16548
048addec
JD
16549 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
16550 clear_waiting_for_input with argument.
1756e2fb 16551
048addec 16552 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 16553
048addec 16554 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 16555
048addec 16556 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 16557
048addec 16558 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 16559
048addec 165602001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 16561
048addec
JD
16562 * fileio.c (choose_write_coding_system): New fun, extracted
16563 from Fwrite_region.
16564 (Fwrite_region): Use it.
fa336b91 16565
048addec
JD
16566 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
16567 (funcall_lambda, run_hook_with_args): Make static and add prototype.
16568 (ml_apply, find_handler_clause): Add prototype.
fa336b91 16569
048addec 165702001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 16571
048addec 16572 * config.in: Add #undef HAVE_COFF_H.
fa336b91 16573
048addec
JD
16574 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
16575 Required for ISC 4.1.
fa336b91 16576
048addec 165772001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 16578
048addec
JD
16579 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
16580 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 16581
048addec 165822001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 16583
048addec
JD
16584 The following changes are made to clean up the various internal
16585 references to the fringes to actually use the term `fringe' for
16586 them. Previously, they were called `flags areas', `bitmap areas',
16587 `left/right side of windows', or implicitly as `flags' or
16588 `bitmaps':
fa336b91 16589
048addec 16590 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 16591 Comments fixed. Use renamed symbols.
06e8f738 16592
f63fd14e 16593 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 16594
048addec
JD
16595 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
16596 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
16597 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 16598
048addec 16599 * msdos.c: Comment fix.
9ce647f4 16600
048addec 16601 * w32fns.c: Use renamed symbols.
9b784ab8 16602
f63fd14e 16603 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
16604 (fringe_bitmap_type): Renamed from bitmap_type.
16605 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16606 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
16607 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 16608
f63fd14e 16609 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
16610 (fringes_extra): Renamed from flags_areas_extra.
16611 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16612 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16613 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16614 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16615 (FRAME_X_LEFT_FRINGE_WIDTH):
16616 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16617 (FRAME_X_RIGHT_FRINGE_WIDTH):
16618 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 16619
048addec 16620 * widget.c: Use renamed symbols.
9f7e52b4 16621
f63fd14e 16622 * window.c: Comment fixes. Use renamed symbols.
048addec 16623 (coordinates-in-window-p): Doc fix.
fa336b91 16624
f63fd14e 16625 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 16626
048addec 16627 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 16628
048addec 16629 * xfns.c: Use renamed symbols.
89512fcd 16630
f63fd14e 16631 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
16632 (fringe_bitmap_type): Renamed from bitmap_type.
16633 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16634 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
16635 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 16636
f63fd14e 16637 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
16638 (fringes_extra): Renamed from flags_areas_extra.
16639 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16640 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16641 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16642 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16643 (FRAME_X_LEFT_FRINGE_WIDTH):
16644 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16645 (FRAME_X_RIGHT_FRINGE_WIDTH):
16646 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
16647
166482001-11-15 Jason Rumney <jasonr@gnu.org>
16649
16650 * w32menu.c (add-menu-item): Make help_echo and radio buttons
16651 work for most menu items. From David Ponce
16652 <david.ponce@wanadoo.fr>.
16653
166542001-11-15 Gerd Moellmann <gerd@gnu.org>
16655
16656 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
16657 Some x_set_* function expect to be called even if old and new
16658 value are equal.
16659
16660 * xdisp.c (build_desired_tool_bar_string): Accept zero
16661 tool_bar_button_relief.
16662
16663 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
16664
16665 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
16666
16667 * xterm.c (x_draw_bar_cursor): If the background color of the
16668 glyph under the cursor equals the frame's cursor color, use
16669 the glyph's foreground color for drawing the bar cursor.
16670
16671 * dispnew.c (direct_output_forward_char): Fix character/byte
16672 position comparison.
7d18891d 16673
048addec 166742001-11-15 Miles Bader <miles@gnu.org>
d2936d21 16675
048addec
JD
16676 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
16677 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
16678 Update arguments to find_field.
16679 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
16680 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
16681 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
16682 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 16683
048addec 166842001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 16685
048addec 16686 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 16687
048addec
JD
16688 * dispextern.h (image_background, image_background_transparent):
16689 Conditionalize on HAVE_X_WINDOWS.
7d18891d 16690
048addec 166912001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 16692
048addec 16693 * print.c (Fprin1_to_string): Doc fix.
7d18891d 16694
048addec 16695 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 16696
048addec 16697 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 16698
048addec 16699 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 16700
048addec 16701 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 16702
048addec 16703 * eval.c (syms_of_eval): Doc fix.
7d18891d 16704
048addec 16705 * coding.c (syms_of_coding): Doc fix.
7d18891d 16706
048addec 16707 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 16708
048addec 16709 * dispnew.c (syms_of_display): Doc fix.
9474c847 16710
048addec 16711 * category.c (Fget_unused_category): Doc fix.
9474c847 16712
048addec 16713 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 16714
048addec 167152001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 16716
048addec 16717 * print.c (prin1, print): Doc fix.
e3059a5d 16718
048addec 167192001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 16720
048addec
JD
16721 * fontset.h: Remove declarations of variables
16722 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 16723
048addec
JD
16724 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
16725 `Vclip_large_size_font'.
eae936e2 16726
048addec 167272001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 16728
048addec 16729 * w32fns.c: Doc fix.
ddb67bdc 16730
048addec 167312001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 16732
048addec 16733 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 16734
048addec 16735 * fns.c: Doc fix.
6e1b91d7 16736
048addec 16737 * emacs.c: Doc fix.
1c1d3d69 16738
048addec 16739 * coding.c: Doc fix.
1c1d3d69 16740
048addec
JD
16741 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
16742 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
16743 `new style' [w/`doc:' keyword].
b6f4c7ba 16744
048addec 167452001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 16746
048addec
JD
16747 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
16748 LeaveNotify events. Only FocusIn and FocusOut do that now.
16749 (x_display_and_set_cursor): Do display hollow cursors in active
16750 minibuffer windows when they are not selected.
b6f4c7ba 16751
048addec 167522001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 16753
048addec 16754 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
16755 * w32term.c: Change doc-string comments to `new style'
16756 [w/`doc:' keyword]. Doc fixes.
a89f435d 16757
048addec
JD
16758 * w32fns.c: Don't define max.
16759 (Fx_open_connection): Only execute once.
a4cd0cd7 16760
048addec 167612001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 16762
048addec
JD
16763 * ccl.c: Change macros to use do-while block instead of if-else.
16764 Use braces to follow GNU Coding Standards.
eafb659a 16765
048addec 167662001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 16767
048addec 16768 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 16769
048addec 16770 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 16771
048addec
JD
16772 * insdel.c (replace_range): Use adjust_markers_for_replace
16773 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 16774
78819ebb 16775 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 16776
048addec
JD
16777 * textprop.c (set_text_properties_1): New subroutine
16778 broken out of set_text_properties.
16779 (set_text_properties): Use set_text_properties_1.
91823618 16780
048addec
JD
16781 * intervals.c (graft_intervals_into_buffer):
16782 Use set_text_properties_1 to clear out properties.
91823618 16783
048addec
JD
16784 * search.c (Freplace_match): Use replace_range to insert
16785 and delete. Don't request property inheritance from
16786 surrounding text.
86928dfb 16787
048addec 167882001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 16789
048addec 16790 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 16791 vertical fonts. Allow them if face name is explicitly specified.
048addec 16792 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 16793
048addec 167942001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 16795
048addec
JD
16796 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
16797 instead of malloc/free.
a78e0303 16798
048addec 167992001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 16800
048addec
JD
16801 * xfaces.c (merge_face_vectors): Use braces to follow GNU
16802 Coding Standards.
16803 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 16804
048addec 16805 * buffer.c (Fbury_buffer): Likewise.
0c99b139 16806
048addec 16807 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 16808
048addec
JD
16809 * coding.c (encode_coding): Use precomputed value of `src'.
16810 (encode_coding): Remove unused variable `src_end'.
16811 (code_convert_region): Remove unused variables `count'.
830ddd77 16812
048addec 168132001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 16814
048addec
JD
16815 * w32term.c (x_display_and_set_cursor): Do not move system caret
16816 if cursor_glyph is NULL.
55c6d645 16817
048addec 168182001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 16819
048addec 16820 * keymap.c (access_keymap): Fix compilation error.
5de38842 16821
048addec 168222001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 16823
048addec 16824 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 16825
048addec 168262001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 16827
048addec
JD
16828 * intervals.c (graft_intervals_into_buffer):
16829 Remove #ifdef'd-out code.
16830 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 16831
048addec
JD
16832 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
16833 code (eval-current-buffer).
16834 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 16835
048addec 168362001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 16837
048addec 16838 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 16839
048addec 168402001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 16841
048addec 16842 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 16843
048addec
JD
16844 * keyboard.c (make_lispy_event): Check integerness and fix
16845 Lisp_Object/int mixup.
17893c65 16846
048addec 168472001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 16848
048addec 16849 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 16850
048addec
JD
16851 * fontset.c (fontset_font_pattern): Remove unused variable
16852 `family_registry'.
d5360cc7 16853
048addec 16854 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 16855
048addec 168562001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 16857
048addec 16858 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 16859
048addec
JD
16860 * buffer.c (Fkill_buffer): Don't delete auto save file
16861 if buffer is modified.
d9d54213 16862
048addec 168632001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 16864
048addec
JD
16865 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
16866 CHECK_NUMBER_CDR.
b116830b 16867
048addec 168682001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 16869
048addec 16870 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 16871
048addec 168722001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 16873
048addec 16874 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 16875
048addec 168762001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 16877
048addec 16878 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 16879
048addec 168802001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 16881
048addec
JD
16882 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
16883 the program image directly.
982f6c7e 16884
048addec 168852001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 16886
048addec 16887 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 16888
048addec 168892001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 16890
048addec
JD
16891 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
16892 and CHECK_BUFFER.
d31053f9 16893
048addec
JD
16894 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
16895 (record_char): Likewise.
d31053f9 16896
048addec
JD
16897 * keyboard.c (make_lispy_event): Don't insist a drag event must
16898 move to a different buffer position. Instead, check for moving at
16899 least double_click_fuzz.
982f6c7e 16900
048addec 16901 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 16902
048addec 16903 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 16904
048addec
JD
16905 * indent.c (current_column_1, Fmove_to_column): Separate the code
16906 for display-table glyphs from the code for buffer text, to fix
16907 bugs in the former.
830047fd 16908
048addec 169092001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 16910
048addec
JD
16911 * buffer.c (Fbuffer_local_value): New function.
16912 (syms_of_buffer): Defsubr it.
2df5238c 16913
048addec
JD
16914 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
16915 value of `cursor-in-non-selected-windows'.
4e397688 16916
048addec
JD
16917 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
16918 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
16919 (syms_of_xdisp): Initialize it.
48b0f3ae 16920
048addec 169212001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 16922
048addec 16923 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 16924
048addec
JD
16925 * coding.c: Change doc-string comments to `new style' [w/`doc:'
16926 keyword].
3ecaf7e5 16927
048addec
JD
16928 * eval.c (top_level_value, top_level_set): Remove commented and
16929 #ifdef'd-out code.
16930 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 16931
048addec 169322001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 16933
048addec 16934 * xfns.c: Include unistd.h, if it exists.
8db2e33b 16935
048addec 16936 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 16937
048addec 16938 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 16939
048addec 169402001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 16941
048addec
JD
16942 * lisp.h (CHECK_STRING_CAR): New macro.
16943 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
16944 treating XCAR and XCDR as lvalues.
16945 (openp): Use CHECK_STRING_CAR.
16946 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 16947
048addec 169482001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 16949
048addec
JD
16950 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
16951 (SIGMASKTYPE): Define.
1b1acc13 16952
048addec 16953 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 16954
048addec 169552001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 16956
048addec
JD
16957 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
16958 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
16959 Fix typos in comments.
6cb16f95 16960
048addec
JD
16961 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
16962 and #ifdef'd-out code.
16963 Fix and reindent comments.
6cb16f95 16964
048addec 16965 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 16966
048addec
JD
16967 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
16968 argument `i' in macros.
6cb16f95 16969
048addec
JD
16970 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
16971 `i' in macros.
7e9d3c2f 16972
048addec
JD
16973 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
16974 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
16975 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
16976 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
16977 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
16978 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
16979 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
16980 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
16981 in macros.
7e9d3c2f 16982
048addec
JD
16983 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
16984 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
16985 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
16986 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
16987 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
16988 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
16989 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
16990 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
16991 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
16992 (remove unused second argument).
7e9d3c2f 16993
048addec 169942001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 16995
048addec
JD
16996 * syntax.c (describe_syntax): New wrapper.
16997 (Finternal_describe_syntax_value): Rename from describe_syntax.
16998 Don't insert space at front and \n at the end.
16999 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 17000
048addec
JD
17001 * regex.c (re_wctype): Try to fix some warnings.
17002 (regcomp, regexec): Don't forget the __restrict.
9ba48103 17003
048addec 170042001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 17005
048addec 17006 * textprop.c (Fget_char_property): Doc fix.
9ba48103 17007
048addec 170082001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 17009
048addec 17010 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 17011
048addec 17012 * data.c (Fsetq_default): Ditto.
c22e59e1 17013
048addec 17014 * callint.c (Finteractive): Ditto.
9271ed2c 17015
048addec 170162001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 17017
048addec
JD
17018 * macros.c: Don't include keymap.h any more.
17019
170202001-11-01 Richard M. Stallman <rms@gnu.org>
17021
17022 * data.c (Fmake_local_variable): Doc fix.
17023
17024 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
17025 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 17026
048addec 17027 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
17028 bindings along with or instead of the buffer local map.
17029 Make the overriding maps override what they should.
17030
f00691a3 170312001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
17032
17033 * window.c (grow_mini_window): Fix typo in comment.
17034
27188d11
GM
170352001-11-01 Gerd Moellmann <gerd@gnu.org>
17036
7b49b9d2
GM
17037 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
17038 (XTset_vertical_scroll_bar): Likewise.
17039
43f7c3ea
GM
17040 * xfns.c (x_build_heuristic_mask): Use four_corners_best
17041 instead of IMAGE_BACKGROUND.
c22e59e1 17042
b350c2e5
GM
17043 * xfns.c (four_corners_best): Reindent.
17044
c22e59e1 17045 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
17046 Handle :box so that it is possible to specify sexprs.
17047
bf00d461
EZ
170482001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
17049
17050 * s/hpux11.h: New file.
17051
f00691a3 170522001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 17053
2b209b97
PJ
17054 * emacs.c (USAGE1): Show command line option --no-window-system
17055 instead of --no-windows in usage.
17056 (standard_args): Rename --no-windows to --no-window-system.
17057 (bug_reporting_address): Follow Emacs coding conventions.
17058
9dbc9081
PJ
17059 * eval.c (Fcommandp): Doc fix.
17060 Change doc-string comments to `new style' [w/`doc:' keyword].
17061
4e10df59
PJ
17062 * frame.c (Fframe_live_p): Doc fix.
17063
17064 * buffer.c (selective-display-ellipses): Doc fix.
17065
dd387b25
GM
170662001-10-31 Gerd Moellmann <gerd@gnu.org>
17067
fe957e65
GM
17068 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
17069
dd387b25
GM
17070 * xfaces.c (realize_x_face): If C is not a single-byte character,
17071 set the face's colors_copied_bitwise_p instead of the defaulted_p
17072 members which have a different meaning.
17073 (free_face_colors): Do nothing for a face whose colors have been
17074 copied bitwise.
17075
c22e59e1 17076 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 17077
f00691a3 170782001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 17079
687784e8
PJ
17080 * marker.c, mocklisp.c: Change doc-string comments to `new style'
17081 [w/`doc:' keyword].
2e1280f8 17082
b9d9a9b9
GM
170832001-10-31 Gerd Moellmann <gerd@gnu.org>
17084
17085 * fns.c (require_unwind): Return Lisp_Object.
17086
f00691a3 170872001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 17088
fa1361cb
PJ
17089 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
17090 (last-input-char): Revert doc-string to be the same as the
17091 doc-string of `last-input-event'.
17092
6c465a15 17093 * xdisp.c: Fix typos in comments.
48400103 17094
eafa3196
GM
170952001-10-31 Gerd Moellmann <gerd@gnu.org>
17096
17097 * window.c (grow_mini_window): Handle case that the root
17098 window is already smaller than the nominal mininum height.
17099
747d3f2a
SM
171002001-10-30 Stefan Monnier <monnier@cs.yale.edu>
17101
bf9bb76f
SM
17102 * emacs.c (main): Don't call keys_of_macros any more.
17103
17104 * lisp.h (keys_of_macros): Remove.
17105
17106 * macros.c (keys_of_macros): Remove.
17107
747d3f2a
SM
17108 * xfaces.c (Fface_attribute_relative_p): Declare args.
17109
5e905a57
JR
171102001-10-30 Jason Rumney <jasonr@gnu.org>
17111
17112 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
17113 (enum_font_cb2): Ignore fonts with vertical orientation.
17114
3a426197
RS
171152001-10-30 Richard M. Stallman <rms@gnu.org>
17116
17117 * keyboard.c (Finput_pending_p): Doc fix.
17118
a742d646
GM
171192001-10-30 Gerd Moellmann <gerd@gnu.org>
17120
259cf6bc
GM
17121 * xterm.c (x_after_update_window_line): Don't run the code
17122 clearing in borders for rows whose visible height is 0.
17123
3f99f948
GM
17124 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
17125 resized_p flag is set. If not set, use the much less flickering
17126 method previously used.
17127
17128 * dispnew.c (change_frame_size_1): Set frame's resized_p.
17129
17130 * frame.h (struct frame) <resized_p>: New member.
17131
b4a3be43
GM
17132 * lread.c (to_multibyte): Ensure read_buffer is at least twice
17133 as large as the number of bytes to convert.
747d3f2a 17134
a742d646
GM
17135 * lread.c (to_multibyte): New function.
17136 (read1): Use it.
17137
cacbb9e9
EZ
171382001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
17139
17140 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
17141
99cb6b2f
GM
171422001-10-30 Gerd Moellmann <gerd@gnu.org>
17143
327f42ee 17144 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
17145 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
17146 if the row's fill_line_p is set and drawing the last glyph with
17147 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 17148
99cb6b2f
GM
17149 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
17150
8e8223e2
SM
171512001-10-29 Stefan Monnier <monnier@cs.yale.edu>
17152
17153 * xmenu.c: Include coding.h and charset.h.
17154 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
17155 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
17156 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
17157 Explicitly set wv->help. Use `TRUE' rather than `True'.
17158 (menu_help_callback): Use empty_string.
17159
17160 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
17161 (Fx_popup_dialog): Explicitly init f.
17162 (w32_menu_display_help): Use empty_string.
17163
4d083a8f
RS
171642001-10-29 Richard M. Stallman <rms@gnu.org>
17165
b2304472
RS
17166 * fns.c (Frequire): Detect recursive try to require the same
17167 feature 3 or more levels deep, and get error.
17168 (require_unwind): New subroutine.
17169 (require_nesting_list): New variable.
17170 (syms_of_fns): Init and staticpro it.
17171
4d083a8f
RS
17172 * print.c (print_object): Clarify indication of insertion type.
17173
2fe41216
EZ
171742001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
17175
90480000
EZ
17176 * coding.c (syms_of_coding): Document that locale-coding-system is
17177 used for decoding input on X.
17178
2fe41216
EZ
17179 * window.c (Fscroll_left, Fscroll_right): Doc fix.
17180
f00691a3 171812001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
17182
17183 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
17184 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
17185
60ebcfe8
GM
171862001-10-29 Gerd Moellmann <gerd@gnu.org>
17187
9a7bdceb
GM
17188 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
17189 use NO_CURSOR if cursor_in_non_selected_windows is false.
17190
3f08fcd2
GM
17191 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
17192 the slant attribute if FRAME is t.
17193
0ccfdad2
GM
17194 * xfns.c (x_set_internal_border_width): Set frame garbaged
17195 when X window doesn't exist yet.
17196
ef253080
GM
17197 * xterm.c (x_after_update_window_line): Clear internal border
17198 in different circumstances.
b116830b 17199
60ebcfe8
GM
17200 * xterm.c (XTread_socket) <KeyPress>: Don't use
17201 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
17202 <handa@etl.go.jp>.
17203
73d25f9c
EZ
172042001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
17205
17206 * m/ibms390.h: New file. From Adam Thornton
17207 <athornton@sinenomine.net>.
17208
cac1daf0
GM
172092001-10-28 Gerd Moellmann <gerd@gnu.org>
17210
053b3256 17211 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 17212
cac1daf0
GM
17213 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
17214 a loop counter.
17215
f00691a3 172162001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 17217
f9711de4 17218 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 17219
4707d2d0
PJ
17220 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
17221 keyword].
17222 Fix typos in comments.
b116830b 17223
d883731c
PJ
17224 * emacs.c (bug_reporting_address): New function.
17225 Use it when displaying usage message.
17226
04012254
PJ
17227 * minibuf.c (read_minibuf): Remove unused external declaration of
17228 variable `Qread_only'.
17229
13b1a09c
PJ
17230 * keymap.c (access_keymap): Remove unused variable `charset'.
17231
5bbf4378
MB
172322001-10-28 Miles Bader <miles@gnu.org>
17233
17234 * xfaces.c (merge_face_heights): Handle TO being relative as well.
17235 Remove #ifdef'd-out code.
17236 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
17237 (syms_of_xfaces): Initialize them.
17238
1ce1e4ee
JR
172392001-10-27 Jason Rumney <jasonr@gnu.org>
17240
17241 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
17242 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
17243 position using the system caret.
17244
17245 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
17246 (w32_system_caret_height, w32_system_caret_x)
17247 (w32_system_caret_y): New variables for tracking system caret.
17248 (w32_initialize): Initialize them.
c2d53558 17249 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 17250
c2d53558
SM
17251 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
17252 New messages types.
1ce1e4ee
JR
17253
17254 * w32term.c (note_mouse_highlight): Clear old help_echo.
17255
f00691a3 172562001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 17257
bb4600a4
PJ
17258 * xterm.c: Fix typo in a comment.
17259
7db35a48
PJ
17260 * emacs.c: Fix typos in comments.
17261 Remove unnecessary spaces.
17262 Change doc-string comments to `new style' [w/`doc:' keyword].
17263 (USAGE2): Fix typos in usage string.
17264
a7248e4f
PJ
17265 * xterm.c: Fix typo in a comment.
17266
4e30ce42
PJ
17267 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
17268 emacs.c.
17269
62725a92
GM
172702001-10-27 Gerd Moellmann <gerd@gnu.org>
17271
798dbe1f 17272 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 17273 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
17274 farther backward when target_y was not reached.
17275
62725a92
GM
17276 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
17277 Display errno only if non-zero.
17278 (sound_warning): New function.
17279 (vox_configure): Don't treat failing to set sample rate as error.
17280 (various places): Improve error messages.
17281
d4e34d24
EZ
172822001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
17283
944e6f60
EZ
17284 * fileio.c (Faccess_file): Run the argument filename through
17285 Fexpand_file_name, before using it.
17286
d4e34d24
EZ
17287 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
17288 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
17289
38d2af0c
GM
172902001-10-26 Gerd Moellmann <gerd@gnu.org>
17291
da80a8d5
GM
17292 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
17293
38d2af0c
GM
17294 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
17295 Fix clearing in the case of scroll bars on the right.
c2d53558 17296
45de4a6f 172972001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
17298
17299 * w32gui.h (XImage): Add a dummy typedef.
17300
fbd5ceb2
GM
173012001-10-26 Gerd Moellmann <gerd@gnu.org>
17302
c2d53558 17303 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 17304
b23236fb
EZ
173052001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
17306
17307 * frame.c (Fframe_parameter): Fix last change.
17308
5d991fc4
EZ
17309 * fileio.c: Revert last change (which removed old commented-out
17310 version of expand-file-name). Add a comment that explains why
17311 this old version should not be removed.
17312
879eadc3
GM
173132001-10-25 Gerd Moellmann <gerd@gnu.org>
17314
75700ff2
GM
17315 * frame.c (Fframe_parameter): Fix a bug whereby some
17316 ``artificial'' frame parameters, like `minibuffer' were not
17317 obtained by calling Fframe_parameters.
17318
dfe92a6a
GM
17319 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
17320 cursor differently.
17321
879eadc3
GM
17322 * xdisp.c (move_it_vertically_backward): Compute line height
17323 differently. Add heuristic to try to be more compatible to 20.x.
17324
e1010ebe
SM
173252001-10-25 Stefan Monnier <monnier@cs.yale.edu>
17326
d73a471b
SM
17327 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
17328
d6da5a06
GM
17329 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
17330 boolean.
e1010ebe 17331
f66bd220
MB
173322001-10-25 Miles Bader <miles@gnu.org>
17333
17334 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
17335 BG is a pointer to a structure, not a structure.
17336 (gif_format, png_format): Add missing commas.
17337
d436d538
RS
173382001-10-24 Richard M. Stallman <rms@gnu.org>
17339
17340 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 17341 (syms_of_xfaces): Defsubr it.
d436d538 17342
f00691a3 173432001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
17344
17345 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
17346 variable `area'.
17347
f00691a3 173482001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 17349
c2d53558 17350 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 17351
e2a57b34
MB
173522001-10-25 Miles Bader <miles@gnu.org>
17353
17354 * dispextern.h (struct image): Add `background',
17355 `background_valid', and `background_transparent' fields.
17356 (image_background, image_background_transparent): New declarations.
17357 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
17358 * xfns.c (image_background, image_background_transparent)
17359 (four_corners_best): New functions.
c2d53558 17360 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
17361 (gs_format): Add `:background' entry.
17362 (lookup_image): Set IMG's background color if specified.
17363 (pbm_load, xbm_load_image, png_load): Set IMG's background field
17364 when appropriate.
17365 (x_clear_image_1): Reset `background_valid' and
17366 `background_transparent_valid' fields.
17367 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
17368 calculating it here. Set IMG's background_transparent field.
17369 (enum xpm_keyword_index): Add XPM_BACKGROUND.
17370 (enum png_keyword_index): Add PNG_BACKGROUND.
17371 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
17372 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
17373 (enum gif_keyword_index): Add GIF_BACKGROUND.
17374 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 17375 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
17376 Pre-calculate image background color where necessary.
17377 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
17378 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
17379 color to use for image glyph reliefs.
17380
b547b6e8
GM
173812001-10-24 Gerd Moellmann <gerd@gnu.org>
17382
d9e3b8c6
GM
17383 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
17384 in full-width rows.
c2d53558 17385
b547b6e8
GM
17386 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
17387 Fix clearing of area not covered by scroll bar.
17388
f00691a3 173892001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
17390
17391 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
17392 and `real_start'.
c2d53558 17393 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
17394 (glyph_rect): Remove unused variable `area'.
17395
76cb5e06
GM
173962001-10-24 Gerd Moellmann <gerd@gnu.org>
17397
bdbdebff 17398 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
17399
17400 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
17401 (row_containing_pos): Take additional argument DY.
17402 Treat rows ending in middle of char differently.
62e33982
GM
17403 (display_line): Handle tabs on window systems differently.
17404
17405 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
17406 with additional argument.
17407
17408 * dispextern.h (row_containing_pos): Adjust prototype.
17409
76cb5e06
GM
17410 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
17411 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
17412 (try_window_id, try_window_reusing_current_matrix)
17413 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 17414 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 17415
f00691a3 174162001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 17417
c9e60620
PJ
17418 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
17419 gnuemacs).
17420 (HAVE_BOXES): Fix typo in comment.
17421 (push_menu_pane): Fix typo in comment.
17422
3b552d56
PJ
17423 * xdisp.c: (display_prop_string_p): Remove unused local declaration
17424 of `Qwhen'.
17425 (single_display_prop_string_p): Remove unused local declarations
17426 of `Qwhen' and `Qmargin'.
17427 (string_buffer_position): Remove unused variable `around'.
17428 (store_frame_title): Remove unused variable `width'.
17429
15c565ac
PJ
17430 * window.c: Don't define max.
17431 (coordinates_in_window): Remove unused variable `uy'.
17432
a8818eb9
PJ
17433 * widget.c: Don't define max.
17434
996fee11
PJ
17435 * process.c: Don't define max.
17436 (create_process): Remove unused variable `buffer'.
17437
496e1a5b
GM
174382001-10-23 Gerd Moellmann <gerd@gnu.org>
17439
c2d53558 17440 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 17441
5905ae8b
EZ
174422001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
17443
17444 * xfaces.c (Finternal_set_lisp_face_attribute)
17445 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
17446 frame is on a windowed display.
17447
24db49fb
GM
174482001-10-23 Gerd Moellmann <gerd@gnu.org>
17449
c2d53558
SM
17450 * dispnew.c (sync_window_with_frame_matrix_rows):
17451 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
17452 of marginal areas.
17453
c2d53558 17454 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 17455
f0487f05
EZ
174562001-10-23 Andreas Schwab <schwab@suse.de>
17457
17458 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
17459 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
17460
f0a48a01
GM
174612001-10-23 Gerd Moellmann <gerd@gnu.org>
17462
c2d53558 17463 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
17464 REAL_END. Notice if cursor gets overwritten.
17465 (notice_overwritten_cursor): Take X positions as parameters.
17466 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
17467 around call to x_draw_glyphs.
17468
f00691a3 174692001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 17470
fc11dff0
PJ
17471 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
17472 instead of C) and usage.
a50a10a0 17473
fc11dff0
PJ
17474 * editfns.c (char-to-string): Fix argument names (use CHAR instead
17475 of C) and usage.
a50a10a0
PJ
17476
17477 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
17478 `left', `max_width' and `max_height'.
17479
8738febd
GM
174802001-10-23 Gerd Moellmann <gerd@gnu.org>
17481
17482 * xdisp.c (display_line): For a tab continued to the next line,
17483 set row's ends_in_middle_of_char_p.
17484
653c329b
GM
174852001-10-22 Gerd Moellmann <gerd@gnu.org>
17486
17487 * xdisp.c (display_line): Fix computation of continuation lines
17488 width for TABs.
17489
f00691a3 174902001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 17491
7ba51063
PJ
17492 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
17493 `Qlaplace'.
17494
f958c5ac
PJ
17495 * fileio.c: Remove unused code.
17496
eb360291
MB
174972001-10-22 Miles Bader <miles@gnu.org>
17498
17499 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
17500 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
17501 Remove `DOC_STRINGS_IN_COMMENTS' cases.
17502
98515cf0
JR
175032001-10-21 Jason Rumney <jasonr@gnu.org>
17504
17505 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
17506
93026d88
EZ
175072001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
17508
17509 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
17510 (Finsert_string): Avoid the multi-line string literals warning.
17511
c9a95b79
MB
175122001-10-22 Miles Bader <miles@gnu.org>
17513
17514 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
17515 (Fdocumentation): Don't use it.
17516 (syms_of_doc): Don't initialize it.
17517
17518 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
17519 * print.c (Fwith_output_to_temp_buffer): Likewise.
17520 * window.c (Fsave_window_excursion): Likewise.
c2d53558 17521 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 17522 (Fsave_restriction): Likewise.
c2d53558
SM
17523 * eval.c (Frun_hooks, Frun_hook_with_args)
17524 (Frun_hook_with_args_until_failure)
17525 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
17526 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
17527 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
17528 (Funwind_protect, Fcondition_case): Likewise.
17529 * coding.c (Ffind_operation_coding_system): Likewise.
17530 * keyboard.c (Ftrack_mouse): Likewise.
17531
a3b10252
MB
175322001-10-21 Miles Bader <miles@gnu.org>
17533
c2d53558 17534 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
17535 (Fmake_hash_table): Add usage: string to doc string.
17536 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 17537 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
17538 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
17539 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
17540 (Fml_prefix_argument_loop): Likewise.
17541
f00691a3 175422001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 17543
c2d53558 17544 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 17545
c6f73eec
PJ
17546 * sysdep.c (init_sys_modes): Change doc-string comments to `new
17547 style' [w/`doc:' keyword].
17548
17549 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
17550 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
17551 comments to `new style' [w/`doc:' keyword].
17552
3cf3436e
JR
175532001-10-21 Jason Rumney <jasonr@gnu.org>
17554
17555 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
17556
c169b8f1
JR
17557 * w32term.c (remember_mouse_glyph): New function.
17558 (w32_mouse_position): Use it.
17559 (note_mouse_movement): If the mouse moved off the glyph, remember
17560 its new position.
c2d53558 17561
4fdd691b
JR
17562 * w32term.h (struct w32_output): Correct spelling of x_compatible.
17563 (w32_display_info): Add mouse_face_overlay.
17564
c169b8f1
JR
17565 * w32term.c (notice_overwritten_cursor): Renamed from
17566 note_overwritten_text_cursor. Rewritten to take glyph widths into
17567 account.
17568 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
17569 (fast_find_string_pos): New function.
17570 (fast_find_position): Return the correct vpos. Add parameter
17571 STOP. In the final row, stop before glyphs having STOP as object.
17572 Don't consider glyphs that are not from a buffer.
17573 (fast_find_position) [0]: Add a presumably more correct version
17574 for after 21.1.
17575 (expose_window_tree, expose_frame): Don't compute intersections here.
17576 (expose_window): Do it here instead.
17577 (expose_window_tree, expose_window, expose_line): Return 1 when
17578 overwriting mouse-face.
17579 (expose_window): If W is the window currently being updated, mark
17580 the frame garbaged.
17581 (expose_frame): If mouse-face was overwritten, redo it.
17582 (x_use_underline_position_properties): New variable.
17583 (syms_of_xterm): DEFVAR_BOOL it.
17584 (x_draw_glyph_string): Add comment to use it in future.
17585 (x_draw_glyph_string): Restore clipping after drawing box.
17586 Fix a computation of the underline position.
17587 (w32_get_glyph_string_clip_rect): Minor cleanup.
17588 (x_fill_stretch_glyph_string): Remove an assertion.
17589 (x_produce_glyphs): Don't convert multibyte characters
17590 to unibyte characters in unibyte buffers.
17591 (cursor_in_mouse_face_p): New function.
17592 (x_draw_stretch_glyph_string): Use it to choose a different GC
17593 when drawing a cursor within highlighted text. Don't draw
17594 background again if it has already been drawn.
17595 (x_draw_glyph_string_box): Don't draw a full-width
17596 box just because the glyph row's full_width_p flag is set.
17597 (x_draw_glyphs): Fix computation of rightmost x for
17598 full-width rows.
17599 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
17600 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 17601 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
17602 (x_update_window_end): Handle overwritten mouse face
17603 also for tool bar windows.
17604 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
17605 DRAW is DRAW_IMAGE_RAISED.
17606 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
17607 actually redrawn. Make the function static.
17608 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
17609 optimize away highlighting if we pass over that same overlay again.
17610 (note_mouse_highlight): Call mouse_face_overlay_overlaps
17611 to detect a case where we have to highlight a different region
17612 despite not having left the currently highlighted region.
17613 Set mouse_face_overlay in the x_display_info. Avoid changing the
17614 mouse pointer shape when show_mouse_face has already done it, or
17615 there is no need. Handle mouse-face and help-echo in strings.
17616 (glyph_rect): New function.
17617 (w32_mouse_position): Use it to raise the threshold for mouse
17618 movement event generation.
17619 (w32_initialize_display_info): Initialize the x_display_info's
17620 mouse_face_overlay.
17621 (w32_set_vertical_scroll_bar): Don't clear a zero height
17622 or width area.
17623 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
17624 a widget to zero height.
17625
3cf3436e 17626 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 17627 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
17628 equivalents in menu_items.
17629 (w32_menu_show): Don't overwrite an item's name with its key
17630 description in case the description is a multibyte string.
17631 (single_submenu): Some cleanup.
17632
17633 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
17634 (postprocess_image): New function.
17635 (lookup_image): Call it for all image types except PostScript.
17636 (x_kill_gs_process): Call postprocess_image.
17637 (tiff_error_handler, tiff_warning_handler): New functions.
17638 (tiff_load): Install them as handlers.
17639 (x_kill_gs_process): Recognize if someone has cleared the image
17640 cache under us.
17641 (valid_image_p): Protect better against invalid image
17642 specifications. Previous code could signal an error.
17643 (Fx_hide_tip, Fshow_tip): Doc fix.
17644 (Fv_max_tooltip_size): New variable.
17645 (syns_of_xfns): DEFVAR_LISP it.
17646 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 17647 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
17648 window_width. Use a maximum tooltip size specified by
17649 Vx_max_tooltip_size, if that has valid contents.
17650 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
17651 Make sure the tooltip is completely visible.
17652 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
17653 (Fx_create_frame): Adjust the frame's height for presence
17654 of the tool bar before calling x_figure_window_size.
17655 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
17656 when the window gets smaller.
17657 (x_set_foreground_color): Set frame's cursor_pixel.
17658 (x_set_foreground_color, x_set_background_color): Cleaned up.
17659 (x_set_font): Handle case of x_new_fontset returning the same name
17660 as before, although there was a change in fontsets.
17661
386ca361
MB
176622001-10-21 Miles Bader <miles@gnu.org>
17663
c2d53558 17664 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
17665 (Flogxor): Add usage: string to doc string.
17666 * charset.c (Fstring): Likewise.
17667 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
17668 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
17669
f00691a3 176702001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 17671
03be2694
PJ
17672 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
17673
17674 * alloc.c: Reindent DEFUNs with doc: keywords.
17675
17676 * abbrev.c (Finsert_abbrev_table_description): Reindent.
17677
14ff1ee0
PJ
17678 * frame.c: Change doc-string comments to `new style' [w/`doc:'
17679 keyword].
17680
2f147815 17681See ChangeLog.9 for earlier changes.
6922b018
KH
17682
17683;; Local Variables:
49b3bd82 17684;; coding: iso-2022-7bit
6922b018 17685;; End:
2a34a036 17686
2f147815 17687 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
17688 Copying and distribution of this file, with or without modification,
17689 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
17690
17691;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4